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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var QY,A4y,aU6,fF,Fi,TWC,dfC,VY,kC,FJb,GXA,BWY,CF,XeY,SbU,o9,MA6,VAJ,kXe,HFe,oCC,tA9,j99,e6f,h6y,vCJ,Av,c4A,d9,z6b,Gr,weA,BM,XL,ZFF,y4C,jW,Ry,DfJ,AvY,QyA,WM,fKf,aKA,T9b,FjY,b$9,EL,B9X,XM4,lKW,dx,Kjf,i$J,Jve,VWy,O$f,Tn,UxY,bO,LjA,MWb,tWb,jyX,RNX,SF,hNF,eNF,Wje,v1J,E1Y,cvi,zNX,Z$4,yvJ,$xi,syW,AMy,TxF,Fly,dNi,tM,Gnb,SNy,UNi,MFy,JMC,Kl4,VFJ,ise,jF,xxY,gx,eF,Wd,Os4,vd,IrX,nq6,knW,uO,Hsi,COY,oqU,rMU,tFy,jtf,R7A,gqe,xq,h7C,vqF,sN,xNF,uK4,QV,YNe,Nxy,cMU,sty,AsA,QTi,GYU,ai6,phF,XhJ,S$i,Lwe,MdY,VdF,Hp4,jTJ,
hxb,zxJ,O$,uc9,ysy,Y$9,qs,ts,RT,g$,w$,un,fFf,dL4,Fyi,pa6,XaJ,TO,Sii,FT,GO,Ba,pN,Ly4,MxJ,lFY,KyW,iNy,VxX,ONA,nmi,kOf,HNe,LN,Ui,CMy,qiy,om6,roW,txY,jDC,RZi,gmC,nN,ID,Ha,CN,oD,hZW,to,vm4,waJ,jx,uT4,ZNA,yoF,gi,YiY,DLX,$L9,ex,mLC,Wa,btJ,f06,va,TQ6,a0b,d1C,FK9,GHF,BQb,zO,plf,Pwy,wi,Xlb,SXb,uM,ZF,yw,Ym,U1f,M2J,LKA,DF,KKF,ity,J34,si,A3,QE,bw,ft,ak,V2y,Otf,kHW,I0A,HtA,CwA,qXJ,o5b,t2i,r3e,jki,RKb,g5i,eK6,dQ,hKW,WKb,pt,v5f,S2,Lt,E5A,zKX,wl6,uuX,y3W,YX6,D1F,m1A,ATe,QL4,bKe,f4C,a4Y,Tvy,BvF,Kt,pof,PmA,XoX,SOC,
Uui,LTX,l4Y,o$A,tY4,rTY,g$J,e_b,q1,h_y,E$6,z_F,woW,ul9,ZKe,yTC,YOy,Dui,$ui,sLX,mu9,xuf,Ak6,Q7C,bzF,fDb,aDA,TY4,dz4,FMb,GI9,X_J,p_W,LMb,S7Y,Uzy,KMb,izJ,Jk9,MBb,Oz4,lDy,kIF,uw,IDi,Z0,D0,Hz4,q7X,oAF,j7Y,z4b,gAf,R4f,h4Y,vAY,e4b,DzU,Zzf,$zC,NYC,s7W,mzX,AzJ,bH4,Q8y,fRC,aRJ,TN9,dqF,GVf,pGU,Pde,XGA,Uq4,SpY,HHX,mK,CdY,oQC,t69,rzb,j8C,RgA,egU,hgJ,WRy,dv,Fl,vQ9,uFC,pK,Po,Dq9,NNb,F9A,LK,prA,Pu9,L9y,SoJ,UQf,VO,MtU,gRX,hoX,W9e,vRb,ERJ,xQb,c$F,zoA,ue9,ZJf,Yo9,y$Y,NeC,tT,RL,mQJ,Ale,Qx6,b4F,fge,agC,dgb,GpX,FkY,Z4,
Y$,D4,mT,nTb,kpf,Ak,H4F,IgU,ebW,hbY,WkF,ETY,wE6,Z4y,yl4,YSX,Dg9,NOC,mgi,AqU,a7,buY,To4,d3Y,FSC,GDX,pvf,aly,Q4W,BoF,dY,Xv6,Mni,U3F,B_,KSU,Jqe,Vnf,OuW,nkW,SB,kDf,HuX,IlY,Cvy,okC,Mz,hJF,vkb,x3X,zJX,Jk,ude,nz,I7,kA,D3U,wvi,$3y,qz,Aj6,rY,jB,ffA,dHY,G9b,BK9,ptC,R7,P0F,gY,XtA,UH6,LLC,Mc9,lfC,ike,v_,JjC,VcU,xA,wY,k94,IfA,Hk9,ZD,owY,tc4,jNY,s7,EwX,xH6,h2J,z26,wtX,uv6,a8,dN,FF,DHF,$HF,pH,NKy,sNe,mHU,AxA,b1X,fyA,aye,TGi,QiC,dW6,S6,GLF,pRF,Up,BG6,PhY,F7f,XRJ,Mq,UWi,L74,MUf,lyC,i14,K7f,JxX,nfy,VUJ,Iyb,rxC,Rzb,
gfe,hzY,Efb,vfF,W7A,xWf,zz4,uMe,wR6,yxi,DWX,$WU,NGb,siW,aV6,fV6,T2W,dBi,rN,j6,FEe,B2Y,PiU,UBX,MTy,LEW,A$,lVb,pny,koW,HDi,CiX,qli,Fe,o_i,rQA,g_i,WEf,hnA,cQi,znF,wnC,u5F,yQU,sF6,Ylb,$B4,N2J,mBX,AHJ,bO9,QXJ,a5W,f5y,iu,TsF,FOF,G7A,XOX,CJ,qQ,SrJ,UeY,oO,KOe,RO,ge,et,OOF,h$,I5C,Eo,HOW,CgF,qrb,oL9,zP,t$X,rH4,jX9,gLe,hmJ,ELi,cHY,m9,zmW,wOe,ug6,ZOU,yHW,YrW,DeX,$eA,bC,meA,AEf,QzU,bTb,fkb,akW,T6U,djW,FWe,GxF,B6i,pYe,PBJ,p4,nr9,kxi,PE,XH,S7,IkC,HTe,CBJ,qYJ,orW,tLy,rEJ,hMf,WWW,vrJ,Er4,xjY,lC,iC,Jl,V7,kT,Ix,HE,
zMC,qg,uZX,ox,ZTA,yEC,tl,YYW,DjC,$je,Tnf,F54,Xjy,MKY,L5J,dJA,lwe,Juy,gli,HcF,El4,qcA,vlW,xJX,hl,zBF,vE,usJ,ZcW,YcU,DJb,$J4,s_C,cE,A8A,QPJ,b0y,f3b,a3b,TFW,d7y,mJX,BFF,p8b,Pe6,wO,l3C,KXe,MMW,J8Y,VMy,nzX,key,O04,r8F,RU4,eUA,WXi,fu,w89,zUi,D7f,NFA,sPC,m79,AfJ,QY6,bEU,Sn,PcW,S49,B_9,GZy,Xzi,ac9,L4e,HEY,K44,iE9,JfX,hvW,voY,evF,uSF,goi,fcF,wzW,lcW,Ic4,W4A,UMb,dMF,T_9,F4X,pzi,Rve,tq,TzW,FmJ,GGy,Bz4,pLY,i6i,IbF,H6F,wo,qhJ,ry9,eQY,gsJ,WmJ,vsY,xIe,zQJ,cye,wLA,Aj,u7F,Z6Y,Yhf,yyy,Qu,Ace,mIX,s$C,ahC,Qbb,TLb,fhe,
dle,fk,FPe,PpU,BLe,pie,Sse,MQb,Fv,iS4,lhW,JcX,kkb,IhJ,qsA,tQ4,Pt,Xv,gBW,eSY,Sc,U8,hSU,Lk,MH,WP9,l0,vBC,Kk,EB9,xl6,Jj,cce,zSC,wiC,uGX,ZSX,Ys6,ycC,$lY,mlf,sbW,AbJ,QcX,DlA,b7f,Tyb,aNe,NLF,dr6,FUY,IN,Gb4,pZb,By4,P6J,XZy,Urb,SCA,LUW,oN,lNy,KU9,MOf,Jby,VOW,O7U,H7Y,oGb,gGW,vGA,tj,cbe,zi9,rK,wZ9,ec,hj,$r6,RN,E8,NyU,scY,ArX,QIJ,feX,TAU,dPy,F_A,G0Y,PTy,M1X,UPe,pDY,leJ,K_C,wK,L_f,ief,yu,Jrb,V1A,Oef,nUb,CTb,k0Y,HeA,rre,jIY,W_9,hjF,xPC,yri,Y2J,$PW,sI6,mPC,QBW,bw9,fW6,Th4,d_6,FQX,pki,U_y,LQC,PGy,lWF,iwJ,KQC,MEb,
JdX,OwW,nEb,kNY,IWU,HwX,dG,FM,p1,XM,oE4,tEy,RuF,hub,SU,Uv,WQU,L1,x_9,cdy,zuy,lh,YJX,sBy,A1U,QHi,bG9,f7y,a7F,Fpi,ih,GsA,P9A,Jx,X2W,LpY,MVi,l7W,UYi,npC,HGF,ksf,C9y,tV6,jH4,gpb,vpY,Wpy,zVf,Ii,w2C,utC,HR,ZGe,C1,y1i,Y39,DYW,Nri,$YY,sHi,mYb,APC,Qje,GfA,pXW,XXi,P1y,TdY,fuC,UAi,Mp9,Vp9,Oo9,Iu9,rPi,R9F,rG,gHF,h9C,WI6,EHi,wX6,yPY,$AF,NdJ,sjJ,mAJ,aQJ,AVX,GSb,BPJ,pBy,XBb,gG,S16,L26,M_b,lQi,K2A,iUF,JVb,V_C,n4F,kSY,vR,IQU,HU4,q1A,xf,CIe,t_i,g4Y,wG,e$y,h$J,W2b,x$e,cVW,v4y,wBy,Y1A,D$W,$$C,$f,NPC,Q1b,bnC,AQ,Tbf,fmy,
amW,Gde,Bbi,pTi,UFi,lmA,MbA,Lfy,Kf6,J2b,Vbi,HnW,OnF,C_U,o7i,q0X,ekF,v7A,xFy,zkA,y2X,A7y,bbe,fOC,F6i,B7X,RF,zo,L66,ibA,K6i,VIY,ObU,kyA,ntC,IOb,HbJ,w2,ScF,MIy,J7f,lO6,x_,otF,tIF,r7i,jJe,Rti,gtY,etC,ht4,W6F,vt9,bg,EtY,fO,xX9,c7W,zty,wpU,ds,uzy,Yzf,$XU,N7J,a6b,d84,Fr6,Gc9,pV6,P3U,lg,Sq6,U8e,LrU,Mu9,l69,KrX,JhW,OYY,kci,I6e,rh6,ojb,jAJ,eOW,hOF,kL,Wri,vjb,Eje,zOb,uki,wVe,yh4,D8C,qe,NEW,sAU,$8y,m8F,AYy,b24,aX9,fXC,Tl4,QR6,dkF,FcX,GmY,BlU,p1f,P$9,X1f,SZb,UkW,lXW,M3y,Kci,JYX,i2i,oX,V3Y,kmY,qZF,O2F,rYW,jRe,
R5Y,ggU,WcW,uEb,Z2b,YZU,Dke,z7,mki,fBA,dOY,ws,p36,Bkb,P7b,y4,X3J,SkF,UO4,MNf,lBW,KdC,iWJ,VNe,OWF,jaU,qkW,tNY,g3A,RGA,eGy,hGb,v34,xO4,zGe,uIi,r9J,gZW,hab,WD9,vZ6,EZY,xbY,za4,wJy,y9F,Yn6,DbY,$be,Nu9,s3F,mb6,AFe,fJA,FxU,d6,FZ,Gx,BY,GvA,XZ,pb6,iVC,IJA,nX9,cFe,z0f,wbJ,Xbi,KxA,Lxf,ZV4,yFe,YEY,VGi,$C4,sEe,ACA,f_y,a_Y,Iz,qj,oz,PVb,pF4,LZX,M4J,I_b,CVe,oJA,t46,RRW,eRe,gJU,vJ9,x6b,YP6,ZaW,zRC,yCi,wFe,D6y,m6b,uB,G$Y,Twf,pmi,PtJ,S9X,U0e,yK,Ltb,Kty,JSW,VyA,nKf,O_W,$r,oKf,bN,rSi,jZY,a_,RpA,gKF,epe,hpJ,WtW,vKX,EK9,
x09,cSC,zp4,wmW,uRW,Z_9,ySi,Y9J,TU,D0W,$0X,NwY,sZy,m06,AZe,QuY,b8X,fnY,anf,Tqe,doX,Fs,GBX,pKW,XKC,LGU,KGF,i8A,JZW,O86,kBi,In9,H8W,Lc,rZi,ouC,juJ,RF6,gu9,WG4,vu6,EuF,cZJ,qJ,wKY,Hj,Z8U,yZi,o_,YMy,DoC,$oF,Nq9,R_,Qni,fHX,GAJ,F06,pyF,PLW,xl,XyA,Swi,L04,lHi,K0W,J_C,V0A,M0U,OB6,CLf,r_Y,jnW,cj,Rsy,gO9,EOi,esY,W0U,vOC,ZBY,c_e,y_W,D2e,N59,sn9,m2f,AO6,Qgf,bfy,apy,TmW,dnJ,Fne,G_W,p7C,X7J,Lnf,if9,OfF,k_4,CE6,Dw,qAF,o04,tzF,rOi,jgi,g0i,eWb,hWX,Wnb,v0U,E0i,xnY,cOb,zWU,w7W,umF,yOe,Zfb,$nX,sgb,sc,mni,b9C,QKy,Tt4,
dEC,FiY,GMF,PZi,UEb,SRF,pg9,l9f,Mk6,O9Y,KiY,Te,JKY,oIy,I9C,H99,CZi,qRW,tkU,jKU,rKW,dF,Fp,EIb,gIC,vIX,Wie,eIF,hIy,zIf,uqF,yK9,Z9J,Nt6,$EF,A6Y,Qhb,fP6,aP4,ble,Tay,FAb,dDX,Baf,XxF,L0,SIe,UDC,lP9,Ol6,qIb,le,tZ6,gxF,vxy,WAX,eXe,hXb,OG,zXi,Ex4,xDe,wxe,Zl4,ux9,DDe,$DU,she,mDi,AAJ,QfU,bXF,aAb,TDU,eM,Fhf,W8,G39,XfJ,Sa6,ze,Umy,MXJ,IAi,Yz,JAb,k3W,VXC,OXC,Rwf,tXA,gaC,ewF,$z,Whe,vaC,EaF,hwb,mX,xmC,N7,uB4,sfC,mmA,A0Y,Qq6,bCf,fMU,FY9,Tf9,dSF,aMA,BfC,Xc6,LYC,MHe,KYy,VHy,iCW,J09,OC6,kKy,IMC,HCC,ClU,qTJ,oDX,r0C,FS,
R3X,h3Y,e3W,vDU,WYi,EDY,xSA,c0X,GZ,wc9,Qwf,mSf,aay,TVi,PbA,XSi,SWi,URe,L$C,Mwi,idF,JnJ,Vw6,OdU,IaC,Hdy,CbF,qWA,onW,tw6,rnb,jwY,RYb,gne,eYf,W$Y,vn6,EnC,cnC,wSA,YW9,ynW,ZdW,uQi,swf,$R4,ABX,bMW,fEJ,aEb,Hz,TX6,d4i,Fvy,Pk9,G8i,XWY,BXF,SgC,tf,U4y,Lv6,MCX,pW6,lEX,OMY,k8f,RY,Cky,el,ocA,tCi,rBW,qgb,j5f,Rf9,gcF,ef4,hf9,vcJ,Ec6,x4Y,cBf,uPW,wWY,$4f,zf4,hf,NXi,ZMY,D44,AWi,bRb,Fq6,TZY,dyf,a2C,f2Y,Gtf,BZi,yR,XP4,UyX,Lq9,Mm9,l2Y,KqW,nWC,JWf,iRe,VmF,gWF,jUA,ORA,rWJ,cWY,zyU,wPU,uyf,ZRy,yW6,Ym9,Dy4,sUJ,AaC,bPJ,aZy,
TIi,dGF,puY,BIY,PU4,S6A,SJ,MRF,lZ4,Kbb,iPJ,L6,MI,OPC,IZX,raA,ePf,hPY,Wb6,v9C,E9X,xGY,zPA,u2e,wuy,ZPY,Y6C,DGJ,$GU,NIY,smy,mGe,Oh,AD9,FgX,GF9,aoA,fo4,dTy,T0A,Mrf,SjA,loY,Kgy,iIF,JDA,VrJ,OIY,nY9,IoX,CfU,oY6,rDe,RTi,WgC,vYY,EYU,zTY,cDb,xTW,wU6,uDy,yDF,Yje,DTC,$TX,ty,spA,mT9,AeF,bjW,QMA,fCb,TM9,Ghf,BMe,pCX,PWU,XCJ,LHW,Mff,S_e,UvC,nby,khJ,Hj4,CW4,q_C,oby,tff,reJ,gbA,eqU,WHJ,EbC,vb4,xvA,xs,ceX,zqb,wC4,uAF,Dv4,Y_W,sMC,mvY,b5F,aGU,TJX,dwF,Fey,G4J,BJF,p44,P5y,X4e,SFU,LeA,UwX,Mje,lGb,Ke9,i5i,J5X,VjF,O5F,k4C,
IGb,niF,Ys,C5W,qFf,oiy,tjA,j2e,giF,eCA,hCy,WeU,viW,Eie,c5e,zCb,uXX,y5F,DwA,mwW,NJ4,$wY,s2b,AiW,Q6J,bgf,Tg4,dUW,Fu6,GwA,pNF,P2F,XN4,UUX,Suy,LuU,Mh9,lYi,KuY,VhA,OgC,neJ,kwb,IY4,Hge,C2U,th6,riX,dL,hhX,Wue,Ee4,zh4,ciA,wNC,u4X,FG,Bi,yiF,Yui,XG,SQ,s6C,DU4,$U6,QsJ,bxJ,fdX,adU,GQX,pAF,P8b,XA6,SU9,U5e,M8b,ldX,KaC,ixW,JNy,V8J,OxX,Ml,nd6,kQb,KS,IdC,HxW,C8X,qUy,ode,t8i,V3,Os,rNy,jse,nS,Rc4,gdF,ecY,hcX,vdX,Ed4,cNX,yNA,ZxY,uUf,YUY,D5A,Qo6,ss9,m5Y,NCF,AR6,Ib,aqC,TTW,daF,F1b,Gi6,p9y,X9A,L1X,ih9,lqF,Hi,Mab,kib,Hhb,
CXi,qDJ,oNf,ta9,jo4,RLF,gNW,eLi,W14,vNF,ENy,cRX,zLe,ujy,ZhF,NTF,maA,soX,QdJ,diA,F3X,GCC,BHi,XwA,L3y,jQ,MS6,ltX,K3A,iQC,VSi,OQ9,nVW,kCy,HQb,q5U,oVC,tSC,gL,rw9,jdy,e19,h1y,eQ,hc,EVX,W3e,z1F,xi6,wwJ,ZQF,xB,ywJ,Y5e,NH9,miU,ci,Qv4,br6,fv4,ave,TUA,d9F,FzW,BUW,SK9,U9J,lvb,Lzf,MeA,Kz9,Ory,irA,Veb,n2b,kgX,Ivi,qKb,o2Y,tee,jv6,RDY,E2A,v29,ZrJ,D9b,ss,$9Y,qp9,NUA,svC,AGi,fIF,aIe,Poi,Xsf,SdW,UhY,Lsi,MDY,KsX,iyf,VD6,nFJ,JGy,Oye,IIX,kRJ,oFe,Co4,tD6,rGC,jGe,Rei,gFU,he9,ee9,xhX,ws4,cG6,u3y,ZyJ,yG9,dy,Ydb,Dhy,Gb,NpY,
$hi,sG4,mhb,Q0J,bvY,ase,TBy,dtU,FCf,Gq6,PDf,Ut6,lsF,Mg6,KCU,ivU,OvY,j0y,HvU,ghe,elY,WCU,vhX,zlW,wQW,Zvi,ymf,YQY,$t6,NBi,s0W,mty,AI6,QQ4,bZb,a$f,FNy,GJf,BRf,pIC,PjA,XIe,SVU,M5f,LN9,JIX,V5i,OZY,nvC,kJf,HZi,I$b,qVe,RE4,Ev9,WNA,xZY,cIY,zEX,u8X,ry,yIW,eO,DZ9,NRU,sQ6,fL6,T4C,B4A,PPU,XqC,Ud9,LFf,Mif,KFW,JpA,ViX,nyb,HAF,ILf,klX,xG,qyY,CPb,oyi,tiJ,rpF,jey,RdX,gyU,edJ,WFJ,vy6,EyC,xdi,cpF,zdA,wqy,uVW,ZAi,Yyf,DdJ,fTF,aTC,Tj9,FVA,G2U,BjA,X66,YG,KVY,iiy,Jgb,VoJ,Oiy,DN,$G,yO,Nr,mU,toe,Rr4,erU,g6A,QF,hrC,WVW,v6J;
_.A4=function(A,Q){if(Error.captureStackTrace)Error.captureStackTrace(this,_.A4);else{var b=Error().stack;b&&(this.stack=b)}A&&(this.message=String(A));Q!==void 0&&(this.cause=Q)};
QY=function(){throw Error("E");};
A4y=function(A,Q){Q=String.fromCharCode.apply(null,Q);return A==null?Q:A+Q};
aU6=function(A){var Q=!1;Q=Q===void 0?!1:Q;if(Q9X){if(Q&&(bFY?!A.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(A)))throw Error("F");A=(fUX||(fUX=new TextEncoder)).encode(A)}else{for(var b=0,f=new Uint8Array(3*A.length),a=0;a<A.length;a++){var T=A.charCodeAt(a);if(T<128)f[b++]=T;else{if(T<2048)f[b++]=T>>6|192;else{if(T>=55296&&T<=57343){if(T<=56319&&a<A.length){var G=A.charCodeAt(++a);if(G>=56320&&G<=57343){T=(T-55296)*1024+G-56320+65536;f[b++]=T>>18|
240;f[b++]=T>>12&63|128;f[b++]=T>>6&63|128;f[b++]=T&63|128;continue}else a--}if(Q)throw Error("F");T=65533}f[b++]=T>>12|224;f[b++]=T>>6&63|128}f[b++]=T&63|128}}A=b===f.length?f:f.subarray(0,b)}return A};
fF=function(A){_.by.setTimeout(function(){throw A;},0)};
_.TX=function(A,Q){return A.lastIndexOf(Q,0)==0};
Fi=function(A,Q){var b=A.length-Q.length;return b>=0&&A.indexOf(Q,b)==b};
_.Be=function(A){return/^[\s\xa0]*$/.test(A)};
_.Pe=function(A,Q){return A.indexOf(Q)!=-1};
_.Xi=function(A,Q){return _.Pe(A.toLowerCase(),Q.toLowerCase())};
_.LF=function(A,Q){var b=0;A=SA(String(A)).split(".");Q=SA(String(Q)).split(".");for(var f=Math.max(A.length,Q.length),a=0;b==0&&a<f;a++){var T=A[a]||"",G=Q[a]||"";do{T=/(\d*)(\D*)(.*)/.exec(T)||["","","",""];G=/(\d*)(\D*)(.*)/.exec(G)||["","","",""];if(T[0].length==0&&G[0].length==0)break;b=TWC(T[1].length==0?0:parseInt(T[1],10),G[1].length==0?0:parseInt(G[1],10))||TWC(T[2].length==0,G[2].length==0)||TWC(T[2],G[2]);T=T[3];G=G[3]}while(b==0)}return b};
TWC=function(A,Q){return A<Q?-1:A>Q?1:0};
_.Mf=function(){var A=_.by.navigator;return A&&(A=A.userAgent)?A:""};
dfC=function(A){if(!KF||!J4)return!1;for(var Q=0;Q<J4.brands.length;Q++){var b=J4.brands[Q].brand;if(b&&_.Pe(b,A))return!0}return!1};
VY=function(A){return _.Pe(_.Mf(),A)};
kC=function(){return KF?!!J4&&J4.brands.length>0:!1};
FJb=function(){return kC()?!1:VY("Opera")};
GXA=function(){return kC()?!1:VY("Trident")||VY("MSIE")};
BWY=function(){return kC()?dfC("Microsoft Edge"):VY("Edg/")};
CF=function(){return VY("Firefox")||VY("FxiOS")};
_.peA=function(){return VY("Safari")&&!(_.qf()||(kC()?0:VY("Coast"))||FJb()||(kC()?0:VY("Edge"))||BWY()||(kC()?dfC("Opera"):VY("OPR"))||CF()||VY("Silk")||VY("Android"))};
_.qf=function(){return kC()?dfC("Chromium"):(VY("Chrome")||VY("CriOS"))&&!(kC()?0:VY("Edge"))||VY("Silk")};
_.Py9=function(){return VY("Android")&&!(_.qf()||CF()||FJb()||VY("Silk"))};
XeY=function(A){var Q={};A.forEach(function(b){Q[b[0]]=b[1]});
return function(b){return Q[b.find(function(f){return f in Q})]||""}};
SbU=function(A){var Q=_.Mf();if(A==="Internet Explorer"){if(GXA())if((A=/rv: *([\d\.]*)/.exec(Q))&&A[1])Q=A[1];else{A="";var b=/MSIE +([\d\.]+)/.exec(Q);if(b&&b[1])if(Q=/Trident\/(\d.\d)/.exec(Q),b[1]=="7.0")if(Q&&Q[1])switch(Q[1]){case "4.0":A="8.0";break;case "5.0":A="9.0";break;case "6.0":A="10.0";break;case "7.0":A="11.0"}else A="7.0";else A=b[1];Q=A}else Q="";return Q}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");b=[];for(var a;a=f.exec(Q);)b.push([a[1],a[2],a[3]||void 0]);
Q=XeY(b);switch(A){case "Opera":if(FJb())return Q(["Version","Opera"]);if(kC()?dfC("Opera"):VY("OPR"))return Q(["OPR"]);break;case "Microsoft Edge":if(kC()?0:VY("Edge"))return Q(["Edge"]);if(BWY())return Q(["Edg"]);break;case "Chromium":if(_.qf())return Q(["Chrome","CriOS","HeadlessChrome"])}return A==="Firefox"&&CF()||A==="Safari"&&_.peA()||A==="Android Browser"&&_.Py9()||A==="Silk"&&VY("Silk")?(Q=b[2])&&Q[1]||"":""};
_.Ufe=function(A){if(kC()&&A!=="Silk"){var Q=J4.brands.find(function(b){return b.brand===A});
if(!Q||!Q.version)return NaN;Q=Q.version.split(".")}else{Q=SbU(A);if(Q==="")return NaN;Q=Q.split(".")}return Q.length===0?NaN:Number(Q[0])};
o9=function(){return KF?!!J4&&!!J4.platform:!1};
_.LJ6=function(){return o9()?J4.platform==="Android":VY("Android")};
MA6=function(){return VY("iPhone")&&!VY("iPod")&&!VY("iPad")};
_.t4=function(){return MA6()||VY("iPad")||VY("iPod")};
_.lUW=function(){return o9()?J4.platform==="macOS":VY("Macintosh")};
_.KJy=function(){return o9()?J4.platform==="Windows":VY("Windows")};
_.iFA=function(){return o9()?J4.platform==="Chrome OS":VY("CrOS")};
_.rW=function(A){return A[A.length-1]};
_.R9=function(A,Q,b){Q=_.J4W(A,Q,b);return Q<0?null:typeof A==="string"?A.charAt(Q):A[Q]};
_.J4W=function(A,Q,b){for(var f=A.length,a=typeof A==="string"?A.split(""):A,T=0;T<f;T++)if(T in a&&Q.call(b,a[T],T,A))return T;return-1};
VAJ=function(A){for(var Q=_.gW,b=typeof A==="string"?A.split(""):A,f=A.length-1;f>=0;f--)if(f in b&&Q.call(void 0,b[f],f,A))return f;return-1};
_.ve=function(A,Q){return _.eA(A,Q)>=0};
_.OF9=function(A,Q){_.ve(A,Q)||A.push(Q)};
_.Eb=function(A,Q){Q=_.eA(A,Q);var b;(b=Q>=0)&&_.nCb(A,Q);return b};
_.nCb=function(A,Q){Array.prototype.splice.call(A,Q,1)};
_.xC=function(A){var Q=A.length;if(Q>0){for(var b=Array(Q),f=0;f<Q;f++)b[f]=A[f];return b}return[]};
_.zX=function(A,Q){for(var b=1;b<arguments.length;b++){var f=arguments[b];if(_.ce(f)){var a=A.length||0,T=f.length||0;A.length=a+T;for(var G=0;G<T;G++)A[a+G]=f[G]}else A.push(f)}};
_.IUb=function(A,Q,b,f){Array.prototype.splice.apply(A,kXe(arguments,1))};
kXe=function(A,Q,b){return arguments.length<=2?Array.prototype.slice.call(A,Q):Array.prototype.slice.call(A,Q,b)};
HFe=function(A,Q){Q=Q||A;for(var b=0,f=0,a={};f<A.length;){var T=A[f++],G=_.ZU(T)?"o"+_.YC(T):(typeof T).charAt(0)+T;Object.prototype.hasOwnProperty.call(a,G)||(a[G]=!0,Q[b++]=T)}Q.length=b};
_.qb9=function(A,Q,b){b=b||_.Cye;for(var f=0,a=A.length,T;f<a;){var G=f+(a-f>>>1);var p=b(Q,A[G]);p>0?f=G+1:(a=G,T=!p)}return T?f:-f-1};
_.DU=function(A,Q,b){if(!_.ce(A)||!_.ce(Q)||A.length!=Q.length)return!1;var f=A.length;b=b||oCC;for(var a=0;a<f;a++)if(!b(A[a],Q[a]))return!1;return!0};
_.Cye=function(A,Q){return A>Q?1:A<Q?-1:0};
oCC=function(A,Q){return A===Q};
tA9=function(A,Q,b){Q=Array.prototype.splice.call(A,Q,1);Array.prototype.splice.call(A,b,0,Q[0])};
j99=function(A){return r4C[A]||""};
e6f=function(A){if(!R6y)return _.$C(A);A=gC4.test(A)?A.replace(gC4,j99):A;A=atob(A);for(var Q=new Uint8Array(A.length),b=0;b<A.length;b++)Q[b]=A.charCodeAt(b);return Q};
h6y=function(A,Q){A.__closure__error__context__984382||(A.__closure__error__context__984382={});A.__closure__error__context__984382.severity=Q};
_.mJ=function(A){A=Error(A);h6y(A,"warning");return A};
vCJ=function(A,Q){if(A!=null){var b;var f=(b=WJJ)!=null?b:WJJ={};b=f[A]||0;b>=Q||(f[A]=b+1,A=Error(),h6y(A,"incident"),fF(A))}};
Av=function(A,Q,b){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(b===void 0?0:b)&&Symbol.for&&A?Symbol.for(A):A!=null?Symbol(A):Symbol():Q};
c4A=function(A,Q){ay||_.Tr in A||ECy(A,xfJ);A[_.Tr]|=Q};
d9=function(A,Q){ay||_.Tr in A||ECy(A,xfJ);A[_.Tr]=Q};
z6b=function(A){if(4&A)return 512&A?512:1024&A?1024:0};
Gr=function(A){c4A(A,34);return A};
weA=function(A){c4A(A,32);return A};
BM=function(){return typeof BigInt==="function"};
XL=function(A,Q){return Q===void 0?A.copyOnWrite!==p$&&!!(2&(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Tr]|0)):!!(2&Q)&&A.copyOnWrite!==p$};
_.qx=function(A,Q){if(A!=null)if(typeof A==="string")A=A?new Vp(A,Iy):_.C$();else if(A.constructor!==Vp)if(uiY&&A!=null&&A instanceof Uint8Array)A=A.length?new Vp(new Uint8Array(A),Iy):_.C$();else{if(!Q)throw Error();A=void 0}return A};
ZFF=function(A,Q){if(typeof Q!=="number"||Q<0||Q>=A.length)throw Error();};
y4C=function(A,Q,b){var f=Q&128?0:-1,a=A.length,T;if(T=!!a)T=A[a-1],T=T!=null&&typeof T==="object"&&T.constructor===Object;var G=a+(T?-1:0);for(Q=Q&128?1:0;Q<G;Q++)b(Q-f,A[Q]);if(T){A=A[a-1];for(var p in A)!isNaN(p)&&b(+p,A[p])}};
jW=function(A){return A&128?tv:void 0};
Ry=function(A){A.isGuard_doNotManuallySetPrettyPlease=!0;return A};
DfJ=function(){var A=YbC;return Ry(function(Q){for(var b in A)if(Q===A[b]&&!/^[0-9]+$/.test(b))return!0;return!1})};
_.g9=function(A){var Q=A;if($f4(Q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(Q))throw Error(String(Q));}else if(NWi(Q)&&!Number.isSafeInteger(Q))throw Error(String(Q));return s99?BigInt(A):A=mfJ(A)?A?"1":"0":$f4(A)?A.trim()||"0":String(A)};
AvY=function(A,Q){if(A.length>Q.length)return!1;if(A.length<Q.length||A===Q)return!0;for(var b=0;b<A.length;b++){var f=A[b],a=Q[b];if(f>a)return!1;if(f<a)return!0}};
QyA=function(A){var Q=A>>>0;eW=Q;hv=(A-Q)/4294967296>>>0};
WM=function(A){if(A<0){QyA(-A);var Q=_.F(b$9(eW,hv));A=Q.next().value;Q=Q.next().value;eW=A>>>0;hv=Q>>>0}else QyA(A)};
fKf=function(A,Q){var b=Q*4294967296+(A>>>0);return Number.isSafeInteger(b)?b:_.vM(A,Q)};
aKA=function(A,Q){var b=Q&2147483648;b&&(A=~A+1>>>0,Q=~Q>>>0,A==0&&(Q=Q+1>>>0));A=fKf(A,Q);return typeof A==="number"?b?-A:A:b?"-"+A:A};
_.vM=function(A,Q){Q>>>=0;A>>>=0;if(Q<=2097151)var b=""+(4294967296*Q+A);else BM()?b=""+(BigInt(Q)<<BigInt(32)|BigInt(A)):(b=(A>>>24|Q<<8)&16777215,Q=Q>>16&65535,A=(A&16777215)+b*6777216+Q*6710656,b+=Q*8147497,Q*=2,A>=1E7&&(b+=A/1E7>>>0,A%=1E7),b>=1E7&&(Q+=b/1E7>>>0,b%=1E7),b=Q+T9b(b)+T9b(A));return b};
T9b=function(A){A=String(A);return"0000000".slice(A.length)+A};
_.dxf=function(A,Q){Q&2147483648?BM()?A=""+(BigInt(Q|0)<<BigInt(32)|BigInt(A>>>0)):(Q=_.F(b$9(A,Q)),A=Q.next().value,Q=Q.next().value,A="-"+_.vM(A,Q)):A=_.vM(A,Q);return A};
FjY=function(A){if(A.length<16)WM(Number(A));else if(BM())A=BigInt(A),eW=Number(A&BigInt(4294967295))>>>0,hv=Number(A>>BigInt(32)&BigInt(4294967295));else{var Q=+(A[0]==="-");hv=eW=0;for(var b=A.length,f=Q,a=(b-Q)%6+Q;a<=b;f=a,a+=6)f=Number(A.slice(f,a)),hv*=1E6,eW=eW*1E6+f,eW>=4294967296&&(hv+=Math.trunc(eW/4294967296),hv>>>=0,eW>>>=0);Q&&(Q=_.F(b$9(eW,hv)),A=Q.next().value,Q=Q.next().value,eW=A,hv=Q)}};
b$9=function(A,Q){Q=~Q;A?A=~A+1:Q+=1;return[A,Q]};
EL=function(A){return Array.prototype.slice.call(A)};
_.x1=function(A,Q){throw Error(Q===void 0?"unexpected value "+A+"!":Q);};
_.cM=function(A){if(A!=null&&typeof A!=="number")throw Error("L`"+typeof A+"`"+A);return A};
_.GrU=function(A){if(A==null||typeof A==="number")return A;if(A==="NaN"||A==="Infinity"||A==="-Infinity")return Number(A)};
B9X=function(A){if(A!=null&&typeof A!=="boolean")throw Error("M`"+_.uY(A)+"`"+A);return A};
_.pMy=function(A){if(A==null||typeof A==="boolean")return A;if(typeof A==="number")return!!A};
_.yp=function(A){switch(typeof A){case "bigint":return!0;case "number":return ZK(A);case "string":return PYA.test(A);default:return!1}};
_.DK=function(A){if(!ZK(A))throw _.mJ("enum");return A|0};
_.Nx=function(A){return A==null?A:ZK(A)?A|0:void 0};
XM4=function(A){if(typeof A!=="number")throw _.mJ("int32");if(!ZK(A))throw _.mJ("int32");return A|0};
_.mj=function(A){return A==null?A:XM4(A)};
_.AM=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return ZK(A)?A|0:void 0};
_.SLY=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return ZK(A)?A>>>0:void 0};
lKW=function(A){var Q=0;Q=Q===void 0?0:Q;if(!_.yp(A))throw _.mJ("int64");var b=typeof A;switch(Q){case 512:switch(b){case "string":return bO(A);case "bigint":return String(at(64,A));default:return UxY(A)}case 1024:switch(b){case "string":return LjA(A);case "bigint":return _.g9(at(64,A));default:return MWb(A)}case 0:switch(b){case "string":return bO(A);case "bigint":return _.g9(at(64,A));default:return Tn(A)}default:return _.x1(Q,"Unknown format requested type for int64")}};
dx=function(A){return A==null?A:lKW(A)};
Kjf=function(A){if(A[0]==="-")return!1;var Q=A.length;return Q<20?!0:Q===20&&Number(A.substring(0,6))<184467};
i$J=function(A){var Q=A.length;return A[0]==="-"?Q<20?!0:Q===20&&Number(A.substring(0,7))>-922337:Q<19?!0:Q===19&&Number(A.substring(0,6))<922337};
Jve=function(A){if(A<0){WM(A);var Q=_.vM(eW,hv);A=Number(Q);return Gn(A)?A:Q}Q=String(A);if(Kjf(Q))return Q;WM(A);return fKf(eW,hv)};
VWy=function(A){if(i$J(A))return A;FjY(A);return _.dxf(eW,hv)};
O$f=function(A){if(Kjf(A))return A;FjY(A);return _.vM(eW,hv)};
Tn=function(A){A=Bd(A);Gn(A)||(WM(A),A=aKA(eW,hv));return A};
_.n1e=function(A){A=Bd(A);return A>=0&&Gn(A)?A:Jve(A)};
UxY=function(A){A=Bd(A);if(Gn(A))A=String(A);else{var Q=String(A);i$J(Q)?A=Q:(WM(A),A=_.dxf(eW,hv))}return A};
_.kre=function(A){A=Bd(A);if(A>=0&&Gn(A))A=String(A);else{var Q=String(A);Kjf(Q)?A=Q:(WM(A),A=_.vM(eW,hv))}return A};
bO=function(A){var Q=Bd(Number(A));if(Gn(Q))return String(Q);Q=A.indexOf(".");Q!==-1&&(A=A.substring(0,Q));return VWy(A)};
LjA=function(A){var Q=Bd(Number(A));if(Gn(Q))return _.g9(Q);Q=A.indexOf(".");Q!==-1&&(A=A.substring(0,Q));return BM()?_.g9(at(64,BigInt(A))):_.g9(VWy(A))};
MWb=function(A){return Gn(A)?_.g9(Tn(A)):_.g9(UxY(A))};
_.IKC=function(A){return Gn(A)?_.g9(_.n1e(A)):_.g9(_.kre(A))};
_.H$i=function(A){var Q=Bd(Number(A));if(Gn(Q)&&Q>=0)return String(Q);Q=A.indexOf(".");Q!==-1&&(A=A.substring(0,Q));return O$f(A)};
_.CY4=function(A){var Q=Bd(Number(A));if(Gn(Q)&&Q>=0)return _.g9(Q);Q=A.indexOf(".");Q!==-1&&(A=A.substring(0,Q));return BM()?_.g9((0,_.ps)(64,BigInt(A))):_.g9(O$f(A))};
_.o1Y=function(A){if(A==null)return A;if(typeof A==="bigint")return qLb(A)?A=Number(A):(A=at(64,A),A=qLb(A)?Number(A):String(A)),A;if(_.yp(A))return typeof A==="number"?Tn(A):bO(A)};
tWb=function(A,Q){Q=Q===void 0?!1:Q;var b=typeof A;if(A==null)return A;if(b==="bigint")return String(at(64,A));if(_.yp(A))return b==="string"?bO(A):Q?UxY(A):Tn(A)};
_.rvi=function(A){var Q=typeof A;if(A==null)return A;if(Q==="bigint")return _.g9(at(64,A));if(_.yp(A))return Q==="string"?LjA(A):MWb(A)};
jyX=function(A){if(A==null)return A;var Q=typeof A;if(Q==="bigint")return String(at(64,A));if(_.yp(A)){if(Q==="string")return bO(A);if(Q==="number")return Tn(A)}};
RNX=function(A){if(A==null)return A;var Q=typeof A;if(Q==="bigint")return String((0,_.ps)(64,A));if(_.yp(A)){if(Q==="string")return _.H$i(A);if(Q==="number")return _.n1e(A)}};
_.Pd=function(A){if(typeof A!=="string")throw Error();return A};
SF=function(A){if(A!=null&&typeof A!=="string")throw Error();return A};
_.MN=function(A){return A==null||typeof A==="string"?A:void 0};
hNF=function(A,Q,b,f){if(A!=null&&A[lO]===JM)return A;if(!Array.isArray(A))return b?f&2?Q[g1U]||(Q[g1U]=eNF(Q)):new Q:void 0;b=A[_.Tr]|0;f=b|f&32|f&2;f!==b&&d9(A,f);return new Q(A)};
eNF=function(A){A=new A;Gr(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
Wje=function(A,Q,b){A=Q?XM4(A):_.AM(A);return A==null?b?0:void 0:A|0};
v1J=function(A){return A};
E1Y=function(A){return A};
cvi=function(A,Q,b,f,a,T){A=hNF(A,f,b,T);a&&(A=xxY(A));return A};
zNX=function(A){return[A,this.get(A)]};
Z$4=function(){return wMJ||(wMJ=new Vx(Gr([]),void 0,void 0,void 0,uLC))};
yvJ=function(A){var Q=It(Hd);return Q?A[Q]:void 0};
$xi=function(A,Q){var b=b===void 0?!1:b;if(It(YLY)&&It(Hd)&&void 0===YLY){var f=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=f[Hd];if(!a)return;if(a=a.reviveUnknownFields)try{a(f,Q,DxJ);return}catch(T){fF(T)}}b&&(A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(b=It(Hd))&&b in A&&(A=A[b])&&delete A[Q])};
syW=function(A,Q){var b=It(Hd),f;ay&&b&&((f=A[b])==null?void 0:f[Q])!=null&&vCJ(N99,3)};
AMy=function(A,Q){Q<100||vCJ(mxY,1)};
TxF=function(A,Q,b,f){var a=f!==void 0;f=!!f;var T=It(Hd),G;!a&&ay&&T&&(G=A[T])&&QtX(G,AMy);T=[];var p=A.length;G=4294967295;var P=!1,U=!!(Q&64),L=U?Q&128?0:-1:void 0;if(!(Q&1)){var M=p&&A[p-1];M!=null&&typeof M==="object"&&M.constructor===Object?(p--,G=p):M=void 0;if(U&&!(Q&128)&&!a){P=!0;var l;G=((l=bsF)!=null?l:v1J)(G-L,L,A,M,void 0)+L}}Q=void 0;for(l=0;l<p;l++){var J=A[l];if(J!=null&&(J=b(J,f))!=null)if(U&&l>=G){var n=l-L,t=void 0;((t=Q)!=null?t:Q={})[n]=J}else T[l]=J}if(M)for(var g in M)p=M[g],
p!=null&&(p=b(p,f))!=null&&(l=+g,J=void 0,U&&!Number.isNaN(l)&&(J=l+L)<G?T[J]=p:(l=void 0,((l=Q)!=null?l:Q={})[g]=p));Q&&(P?T.push(Q):T[G]=Q);a&&It(Hd)&&(A=yvJ(A))&&A instanceof fr9&&(T[Hd]=ary(A));return T};
Fly=function(A){A[0]=dNi(A[0]);A[1]=dNi(A[1]);return A};
dNi=function(A){switch(typeof A){case "number":return Number.isFinite(A)?A:""+A;case "bigint":return qLb(A)?Number(A):""+A;case "boolean":return A?1:0;case "object":if(Array.isArray(A)){var Q=A[_.Tr]|0;return A.length===0&&Q&1?void 0:TxF(A,Q,dNi)}if(A!=null&&A[lO]===JM)return Gnb(A);if(A instanceof Vp){Q=A.JSC$8761_value_;if(Q==null)A="";else if(typeof Q==="string")A=Q;else{if(R6y){for(var b="",f=0,a=Q.length-10240;f<a;)b+=String.fromCharCode.apply(null,Q.subarray(f,f+=10240));b+=String.fromCharCode.apply(null,
f?Q.subarray(f):Q);Q=btoa(b)}else Q=_.Cs(Q);A=A.JSC$8761_value_=Q}return A}if(A instanceof Vx)return A=A.size!==0?Array.from(ot.prototype.entries.call(A),Fly):void 0,A;return}return A};
tM=function(A,Q){if(Q){bsF=Q==null||Q===v1J||Q[BxA]!==pdb?v1J:Q;try{return Gnb(A)}finally{bsF=void 0}}return Gnb(A)};
Gnb=function(A){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return TxF(A,A[_.Tr]|0,dNi)};
SNy=function(A){switch(typeof A){case "boolean":return POF||(POF=[0,void 0,!0]);case "number":return A>0?void 0:A===0?XdC||(XdC=[0,void 0]):[-A,void 0];case "string":return[0,A];case "object":return A}};
UNi=function(A,Q,b){return A=_.rx(A,Q[0],Q[1],b?1:2)};
_.rx=function(A,Q,b,f){f=f===void 0?0:f;if(A==null){var a=32;b?(A=[b],a|=128):A=[];Q&&(a=a&-8380417|(Q&1023)<<13)}else{if(!Array.isArray(A))throw Error("O");a=A[_.Tr]|0;if(LlC&&1&a)throw Error("P");2048&a&&!(2&a)&&MFy();if(a&256)throw Error("Q");if(a&64)return f!==0||a&2048||d9(A,a|2048),A;if(b&&(a|=128,b!==A[0]))throw Error("R");a:{b=A;a|=64;var T=b.length;if(T){var G=T-1,p=b[G];if(p!=null&&typeof p==="object"&&p.constructor===Object){Q=a&128?0:-1;G-=Q;if(G>=1024)throw Error("T");for(var P in p)T=
+P,T<G&&(b[T+Q]=p[P],delete p[P]);a=a&-8380417|(G&1023)<<13;break a}}if(Q){P=Math.max(Q,T-(a&128?0:-1));if(P>1024)throw Error("U");a=a&-8380417|(P&1023)<<13}}}a|=64;f===0&&(a|=2048);d9(A,a);return A};
MFy=function(){if(LlC)throw Error("S");vCJ(lrC,5)};
JMC=function(A,Q){if(typeof A!=="object")return A;if(Array.isArray(A)){var b=A[_.Tr]|0;return A.length===0&&b&1?void 0:Kl4(A,b,Q)}if(A!=null&&A[lO]===JM)return ise(A);if(A instanceof Vx){Q=A.arrayState;if(Q&2)return A;if(!A.size)return;b=Gr(Array.from(ot.prototype.entries.call(A)));if(A.valueCtor)for(A=0;A<b.length;A++){var f=b[A],a=f[1];a==null||typeof a!=="object"?a=void 0:a!=null&&a[lO]===JM?a=ise(a):Array.isArray(a)?a=Kl4(a,a[_.Tr]|0,!!(Q&32)):a=void 0;f[1]=a}return b}if(A instanceof Vp)return A};
Kl4=function(A,Q,b){if(Q&2)return A;!b||4096&Q||16&Q?A=jF(A,Q,!1,b&&!(Q&16)):(c4A(A,34),Q&4&&Object.freeze(A));return A};
VFJ=function(A,Q,b){A=new A.constructor(Q);b&&(A.copyOnWrite=p$);A.noLegacyNull=p$;return A};
ise=function(A){var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=Q[_.Tr]|0;return XL(A,b)?A:Os4(A,Q,b)?VFJ(A,Q):jF(Q,b)};
jF=function(A,Q,b,f){f!=null||(f=!!(34&Q));A=TxF(A,Q,JMC,f);f=32;b&&(f|=2);Q=Q&8380609|f;d9(A,Q);return A};
xxY=function(A){var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=Q[_.Tr]|0;return XL(A,b)?Os4(A,Q,b)?VFJ(A,Q,!0):new A.constructor(jF(Q,b,!1)):A};
gx=function(A){if(A.copyOnWrite!==p$)return!1;var Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Q=jF(Q,Q[_.Tr]|0);c4A(Q,2048);A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=Q;A.copyOnWrite=void 0;A.noLegacyNull=void 0;return!0};
eF=function(A){if(!gx(A)&&XL(A,A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Tr]|0))throw Error();};
Wd=function(A,Q){Q===void 0&&(Q=A[_.Tr]|0);Q&32&&!(Q&4096)&&d9(A,Q|4096)};
Os4=function(A,Q,b){return b&2?!0:b&32&&!(b&4096)?(d9(Q,b|2),A.copyOnWrite=p$,!0):!1};
vd=function(A,Q,b,f,a){var T=b+(a?0:-1),G=A.length-1;if(G>=1+(a?0:-1)&&T>=G){var p=A[G];if(p!=null&&typeof p==="object"&&p.constructor===Object)return p[b]=f,Q}if(T<=G)return A[T]=f,Q;if(f!==void 0){var P;G=((P=Q)!=null?P:Q=A[_.Tr]|0)>>13&1023||536870912;b>=G?f!=null&&(T={},A[G+(a?0:-1)]=(T[b]=f,T)):A[T]=f}return Q};
_.cd=function(A,Q,b,f,a){var T=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=T[_.Tr]|0;f=XL(A,G)?1:f;a=!!a||f===3;f===2&&gx(A)&&(T=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=T[_.Tr]|0);A=nq6(T,Q);var p=A===EN?7:A[_.Tr]|0,P=knW(p,G);var U=4&P?!1:!0;if(U){4&P&&(A=EL(A),p=0,P=xq(P,G),G=vd(T,G,Q,A));for(var L=0,M=0;L<A.length;L++){var l=b(A[L]);l!=null&&(A[M++]=l)}M<L&&(A.length=M);b=(P|4)&-513;P=b&=-1025;P&=-4097}P!==p&&(d9(A,P),2&P&&Object.freeze(A));return A=IrX(A,P,T,
G,Q,f,U,a)};
IrX=function(A,Q,b,f,a,T,G,p){var P=Q;T===1||(T!==4?0:2&Q||!(16&Q)&&32&f)?uO(Q)||(Q|=!A.length||G&&!(4096&Q)||32&f&&!(4096&Q||16&Q)?2:256,Q!==P&&d9(A,Q),Object.freeze(A)):(T===2&&uO(Q)&&(A=EL(A),P=0,Q=xq(Q,f),f=vd(b,f,a,A)),uO(Q)||(p||(Q|=16),Q!==P&&d9(A,Q)));2&Q||!(4096&Q||16&Q)||Wd(b,f);return A};
nq6=function(A,Q,b){A=Zr(A,Q,b);return Array.isArray(A)?A:EN};
knW=function(A,Q){2&Q&&(A|=2);return A|1};
uO=function(A){return!!(2&A)&&!!(4&A)||!!(256&A)};
Hsi=function(A){return _.qx(A,!0)};
COY=function(A,Q){var b=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=b[_.Tr]|0;a:{var a=f;f=XL(A,f);!f&&gx(A)&&(b=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=b[_.Tr]|0);var T=Zr(b,Q);A=!1;if(T==null){if(f){Q=Z$4();break a}T=[]}else if(T.constructor===Vx)if(T.arrayState&2&&!f)T=Array.from(ot.prototype.entries.call(T));else{Q=T;break a}else Array.isArray(T)?A=!!((T[_.Tr]|0)&2):T=[];if(f){if(!T.length){Q=Z$4();break a}A||(A=!0,Gr(T))}else if(A){A=!1;f=T;f=EL(f);for(T=0;T<
f.length;T++){var G=f[T]=EL(f[T]);Array.isArray(G[1])&&(G[1]=Gr(G[1]))}T=f}!A&&a&32&&weA(T);f=new Vx(T,void 0,Wje,Wje);a=vd(b,a,Q,f);A||Wd(b,a);Q=f}return Q};
_.Yq=function(A,Q,b,f){eF(A);var a=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=a[_.Tr]|0;if(b==null)return vd(a,T,Q),A;var G=b===EN?7:b[_.Tr]|0,p=G,P=uO(G),U=P||Object.isFrozen(b);P||(G=0);U||(b=EL(b),p=0,G=xq(G,T),U=!1);G|=5;var L;P=(L=z6b(G))!=null?L:0;for(L=0;L<b.length;L++){var M=b[L],l=f(M,P);Object.is(M,l)||(U&&(b=EL(b),p=0,G=xq(G,T),U=!1),b[L]=l)}G!==p&&(U&&(b=EL(b),G=xq(G,T)),d9(b,G));vd(a,T,Q,b);return A};
_.Dr=function(A,Q,b,f,a){eF(A);var T=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vd(T,T[_.Tr]|0,Q,(f==="0"?Number(b)===0:b===f)?void 0:b,a);return A};
_.qNe=function(A,Q,b){if(Q&2)throw Error();var f=jW(Q),a=nq6(A,b,f),T=a===EN?7:a[_.Tr]|0,G=knW(T,Q);if(2&G||uO(G)||16&G)a=EL(a),T=0,G=xq(G,Q),vd(A,Q,b,a,f);G&=-13;G!==T&&d9(a,G);return a};
oqU=function(A){if(ay){var Q;return(Q=A[$q])!=null?Q:A[$q]=new Map}if($q in A)return A[$q];Q=new Map;Object.defineProperty(A,$q,{value:Q});return Q};
rMU=function(A,Q,b,f,a){var T=oqU(A),G=tFy(T,A,Q,b,a);G!==f&&(G&&(Q=vd(A,Q,G,void 0,a)),T.set(b,f));return Q};
tFy=function(A,Q,b,f,a){var T=A.get(f);if(T!=null)return T;for(var G=T=0;G<f.length;G++){var p=f[G];Zr(Q,p,a)!=null&&(T!==0&&(b=vd(Q,b,T,void 0,a)),T=p)}A.set(f,T);return T};
jtf=function(A,Q,b,f,a){var T=!1;f=Zr(A,f,a,function(G){var p=hNF(G,b,!1,Q);T=p!==G&&p!=null;return p});
if(f!=null)return T&&!XL(f)&&Wd(A,Q),f};
R7A=function(A,Q,b,f,a,T,G,p){var P=XL(A,b);T=P?1:T;G=!!G||T===3;P=p&&!P;(T===2||P)&&gx(A)&&(Q=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=Q[_.Tr]|0);A=nq6(Q,a);var U=A===EN?7:A[_.Tr]|0,L=knW(U,b);if(p=!(4&L)){var M=A,l=b,J=!!(2&L);J&&(l|=2);for(var n=!J,t=!0,g=0,e=0;g<M.length;g++){var x=hNF(M[g],f,!1,l);if(x instanceof f){if(!J){var D=XL(x);n&&(n=!D);t&&(t=D)}M[e++]=x}}e<g&&(M.length=e);L|=4;L=t?L&-4097:L|4096;L=n?L|8:L&-9}L!==U&&(d9(A,L),2&L&&Object.freeze(A));if(P&&!(8&L||!A.length&&
(T===1||(T!==4?0:2&L||!(16&L)&&32&b)))){uO(L)&&(A=EL(A),L=xq(L,b),b=vd(Q,b,a,A));f=A;P=L;for(U=0;U<f.length;U++)M=f[U],L=xxY(M),M!==L&&(f[U]=L);P|=8;L=P=f.length?P|4096:P&-4097;d9(A,L)}return A=IrX(A,L,Q,b,a,T,p,G)};
gqe=function(A){A==null&&(A=void 0);return A};
xq=function(A,Q){return A=(2&Q?A|2:A&-3)&-273};
_.e7X=function(A,Q,b,f,a){eF(A);Q=_.cd(A,Q,a,2,!0);var T;a=(T=z6b(Q===EN?7:Q[_.Tr]|0))!=null?T:0;Q.push(b(f,a));return A};
h7C=function(A,Q,b,f,a,T,G){eF(A);var p=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=R7A(A,p,p[_.Tr]|0,b,Q,2,!0);if(T&&G)a!=null||(a=A.length-1),ZFF(A,a),A.splice(a,T),A.length||(A[_.Tr]&=-4097);else{if(T){if(typeof a!=="number"||a<0||a>A.length)throw Error();}else f=f!=null?f:new b;a!=void 0?A.splice(a,T,f):A.push(f);a=b=A===EN?7:A[_.Tr]|0;(f=XL(f))?(b&=-9,A.length===1&&(b&=-4097)):b|=4096;b!==a&&d9(A,b);f||Wd(p)}};
vqF=function(A,Q){if(typeof A==="string")return new NN(e6f(A),Q);if(Array.isArray(A))return new NN(new Uint8Array(A),Q);if(A.constructor===Uint8Array)return new NN(A,!1);if(A.constructor===ArrayBuffer)return A=new Uint8Array(A),new NN(A,!1);if(A.constructor===Vp)return Q=WlF(A)||new Uint8Array(0),new NN(Q,!0,A);if(A instanceof Uint8Array)return A=A.constructor===Uint8Array?A:new Uint8Array(A.buffer,A.byteOffset,A.byteLength),new NN(A,!1);throw Error();};
sN=function(){var A=function(){throw Error();};
Object.setPrototypeOf(A,A.prototype);return A};
xNF=function(A,Q){var b=b===void 0?Eqi:b;return new As(A,Q,b)};
uK4=function(A,Q,b,f,a){Q=cMU(Q,f);Q!=null&&(b=_.z7A(A,b),a(Q,A),_.wdU(A,b))};
QV=function(A,Q,b,f){var a=f[A];if(a)return a;a={};a.binaryFields=f;a.messageMetadata=SNy(f[0]);var T=f[1],G=1;T&&T.constructor===Object&&(a.extensions=T,T=f[++G],typeof T==="function"&&(a.isMessageSet=!0,ZsW!=null||(ZsW=T),yMJ!=null||(yMJ=f[G+1]),T=f[G+=2]));for(var p={};T&&YNe(T);){for(var P=0;P<T.length;P++)p[T[P]]=T;T=f[++G]}for(P=1;T!==void 0;){typeof T==="number"&&(P+=T,T=f[++G]);var U=void 0;if(T instanceof As)var L=T;else L=DNU,G--;T=void 0;if((T=L)==null?0:T.$$isMsg){T=f[++G];U=f;var M=G;
typeof T==="function"&&(T=T(),U[M]=T);U=T}T=f[++G];M=P+1;typeof T==="number"&&T<0&&(M-=T,T=f[++G]);for(;P<M;P++){var l=p[P];U?b(a,P,L,U,l):Q(a,P,L,l)}}return f[A]=a};
YNe=function(A){return Array.isArray(A)&&!!A.length&&typeof A[0]==="number"&&A[0]>0};
Nxy=function(A){return Array.isArray(A)?A[0]instanceof As?A:[$NY,A]:[A,void 0]};
cMU=function(A,Q){if(A instanceof _.fp)return A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(A))return UNi(A,Q,!1)};
sty=function(A,Q,b,f){var a=b.$$binaryReaderFn;A[Q]=f?function(T,G,p){return a(T,G,p,f)}:a};
AsA=function(A,Q,b,f,a){var T=b.$$binaryReaderFn,G,p;A[Q]=function(P,U,L){return T(P,U,L,p||(p=QV(mNW,sty,AsA,f).messageMetadata),G||(G=QTi(f)),a)}};
QTi=function(A){var Q=A[bp6];if(Q!=null)return Q;var b=QV(mNW,sty,AsA,A);Q=b.isMessageSet?function(f,a){return ZsW(f,a,b)}:function(f,a){for(;fiy(a)&&a.nextWireType_!=4;){var T=a.nextField_,G=b[T];
if(G==null){var p=b.extensions;p&&(p=p[T])&&(p=ai6(p),p!=null&&(G=b[T]=p))}if(G==null||!G(a,f,T)){p=a;G=p.fieldCursor_;T$X(p);if(p.discardUnknownFields)var P=void 0;else{var U=p.decoder_.cursor_-G;p.decoder_.cursor_=G;P=dsY(p.decoder_,U)}U=p=G=void 0;var L=f;P&&((G=(p=(U=L[Hd])!=null?U:L[Hd]=new fr9)[T])!=null?G:p[T]=[]).push(P)}}if(f=yvJ(f))f.reviveUnknownFields=b.binaryFields[FwA];return!0};
A[bp6]=Q;A[FwA]=GYU.bind(A);return Q};
GYU=function(A,Q,b,f){var a=this[mNW],T=this[bp6],G=UNi(void 0,a.messageMetadata,!1),p=yvJ(A);if(p){var P=!1,U=a.extensions;if(U){a=function(n,t,g){if(g.length!==0)if(U[t])for(n=_.F(g),t=n.next();!t.done;t=n.next()){t=B$y(t.value);try{P=!0,T(G,t)}finally{t.free()}}else f==null||f(A,t,g)};
if(Q==null)QtX(p,a);else if(p!=null){var L=p[Q];L&&a(p,Q,L)}if(P){var M=A[_.Tr]|0;if(M&2&&M&2048&&(b==null||!b.reviveIntoImmutable))throw Error();var l=jW(M),J=function(n,t){if(Zr(A,n,l)!=null)switch(b==null?void 0:b.resolutionBehavior){case 1:return;default:throw Error();}t!=null&&(M=vd(A,M,n,t,l));delete p[n]};
Q==null?y4C(G,G[_.Tr]|0,function(n,t){J(n,t)}):J(Q,Zr(G,Q,l))}}}};
ai6=function(A){A=Nxy(A);var Q=A[0].$$binaryReaderFn;if(A=A[1]){var b=QTi(A),f=QV(mNW,sty,AsA,A).messageMetadata;return function(a,T,G){return Q(a,T,G,f,b)}}return Q};
phF=function(A,Q,b){A[Q]=b.$$binaryWriterFn};
XhJ=function(A,Q,b,f){var a,T,G=b.$$binaryWriterFn;A[Q]=function(p,P,U){return G(p,P,U,T||(T=QV(PnU,phF,XhJ,f).messageMetadata),a||(a=S$i(f)))}};
S$i=function(A){var Q=A[UsJ];if(!Q){var b=QV(PnU,phF,XhJ,A);Q=function(f,a){return Lwe(f,a,b)};
A[UsJ]=Q}return Q};
Lwe=function(A,Q,b){y4C(A,A[_.Tr]|0,function(f,a){if(a!=null){var T=MdY(b,f);T?T(Q,a,f):f<500||vCJ(lie,3)}});
(A=yvJ(A))&&QtX(A,function(f,a,T){aT(Q,Q.encoder_.end());for(f=0;f<T.length;f++)aT(Q,WlF(T[f])||new Uint8Array(0))})};
MdY=function(A,Q){var b=A[Q];if(b)return b;if(b=A.extensions)if(b=b[Q]){b=Nxy(b);var f=b[0].$$binaryWriterFn;if(b=b[1]){var a=S$i(b),T=QV(PnU,phF,XhJ,b).messageMetadata;b=A.isMessageSet?yMJ(T,a):function(G,p,P){return f(G,p,P,T,a)}}else b=f;
return A[Q]=b}};
_.Kwb=function(A,Q,b){if(Array.isArray(Q)){var f=Q[_.Tr]|0;if(f&4)return Q;for(var a=0,T=0;a<Q.length;a++){var G=A(Q[a]);G!=null&&(Q[T++]=G)}T<a&&(Q.length=T);b&&(d9(Q,(f|5)&-1537),f&2&&Object.freeze(Q));return Q}};
_.TY=function(A,Q,b){return new As(A,Q,b)};
_.ipW=function(A,Q,b){return new As(A,Q,b)};
_.d$=function(A,Q,b){vd(A,A[_.Tr]|0,Q,b,jW(A[_.Tr]|0))};
VdF=function(A,Q,b){Q=_.GrU(Q);Q!=null&&(_.GY(A,b,1),A=A.encoder_,b=JsY||(JsY=new DataView(new ArrayBuffer(8))),b.setFloat64(0,+Q,!0),eW=b.getUint32(0,!0),hv=b.getUint32(4,!0),_.Bh(A,eW),_.Bh(A,hv))};
_.pp=function(A,Q,b){Q=jyX(Q);if(Q!=null){switch(typeof Q){case "string":Opf(Q)}if(Q!=null)switch(_.GY(A,b,0),typeof Q){case "number":A=A.encoder_;WM(Q);n8C(A,eW,hv);break;case "bigint":b=BigInt.asUintN(64,Q);b=new kYY(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));n8C(A.encoder_,b.JSC$8805_lo,b.JSC$8805_hi);break;default:b=Opf(Q),n8C(A.encoder_,b.JSC$8805_lo,b.JSC$8805_hi)}}};
Hp4=function(A,Q,b){Q=_.AM(Q);Q!=null&&Q!=null&&(_.GY(A,b,0),_.IiX(A.encoder_,Q))};
_.q$C=function(A,Q,b){Cnf(A,b,RNX(Q))};
_.o8y=function(A,Q,b){Q=_.pMy(Q);Q!=null&&(_.GY(A,b,0),A.encoder_.JSC$8807_buffer_.push(Q?1:0))};
_.rsb=function(A,Q,b){Q=_.MN(Q);Q!=null&&tdY(A,b,aU6(Q))};
jTJ=function(A,Q,b,f,a){Q=cMU(Q,f);Q!=null&&(b=_.z7A(A,b),a(Q,A),_.wdU(A,b))};
_.RxY=function(A,Q,b){Q=Q==null||typeof Q=="string"||Q instanceof Vp?Q:void 0;Q!=null&&tdY(A,b,vqF(Q,!0).buffer)};
_.g8A=function(A,Q,b){Q=_.AM(Q);Q!=null&&(Q=parseInt(Q,10),_.GY(A,b,0),_.IiX(A.encoder_,Q))};
_.Ph=function(A,Q){return function(b,f){var a={treatNewDataAsImmutable:!0};f&&Object.assign(a,f);b=B$y(b,void 0,void 0,a);try{var T=new A,G=T.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;QTi(Q)(G,b);var p=T}finally{b.free()}return p}};
_.Xc=function(A){return function(Q){return exy(Q,A)}};
hxb=function(A){return function(){return exy(this,A)}};
_.WwU=function(A){return Ry(function(Q){return Q instanceof A&&!XL(Q)})};
_.Sd=function(A){return function(Q){return v8e(A,Q)}};
zxJ=function(A,Q){return E8X({child:A,origin:Q||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:xsi,getPayloadCase:function(b){return b.getPayloadCase()},
createInitMessage:function(b){var f=new U$,a=new csW;b=_.Lp(a,1,b);return _.Ms(f,5,Kp,b)}})};
O$=function(A){return{valueOf:A}.valueOf()};
uc9=function(){var A=null;if(!whA)return A;try{var Q=function(b){return b};
A=whA.createPolicy("goog#html",{createHTML:Q,createScript:Q,createScriptURL:Q})}catch(b){}return A};
ysy=function(){ZpF===void 0&&(ZpF=uc9());return ZpF};
_.k8=function(A){var Q=ysy();A=Q?Q.createScriptURL(A):A;return new np(A)};
_.IT=function(A){if(A instanceof np)return A.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Hh=function(A){return Object.isFrozen(A)&&Object.isFrozen(A.raw)};
Y$9=function(A){return A.toString().indexOf("`")===-1};
qs=function(A){return new _.Cp($s9,A)};
ts=function(A){return A instanceof _.Cp};
_.r$=function(A){if(ts(A))return A.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
RT=function(A){return new N$b(function(Q){return Q.substr(0,A.length+1).toLowerCase()===A+":"})};
g$=function(A,Q){Q=Q===void 0?sTX:Q;if(ts(A))return A;for(var b=0;b<Q.length;++b){var f=Q[b];if(f instanceof N$b&&f.isValid(A))return qs(A)}};
_.hs=function(A,Q){Q=Q===void 0?sTX:Q;return g$(A,Q)||ed};
_.vh=function(A){var Q=window;if(typeof MediaSource!=="undefined"&&A instanceof MediaSource||typeof Q.ManagedMediaSource!=="undefined"&&A instanceof Q.ManagedMediaSource)return qs(URL.createObjectURL(A));Q=A.type;Q.toLowerCase()==="application/octet-stream"?Q=!0:(Q=Q.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),Q=(Q==null?void 0:Q.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(Q[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(Q[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(Q[1])||/^font\/[\w-]+$/i.test(Q[1])));if(!Q)throw Error("Z");return qs(URL.createObjectURL(A))};
_.mse=function(A){for(var Q=_.E$.apply(1,arguments),b=[A[0]],f=0;f<Q.length;f++)b.push(String(Q[f])),b.push(A[f+1]);return qs(b.join(""))};
_.QDJ=function(A){if(!AoF){a:{var Q=document.createElement("a");try{Q.href=A}catch(b){A=void 0;break a}A=Q.protocol;A=A===":"||A===""?"https:":A}return A}try{Q=new URL(A)}catch(b){return"https:"}return Q.protocol};
_.x8=function(A){A instanceof _.Cp?A=_.r$(A):A=bNA.test(A)?A:void 0;return A};
_.ch=function(A,Q){Q=_.x8(Q);Q!==void 0&&(A.href=Q)};
w$=function(A){var Q=ysy();A=Q?Q.createHTML(A):A;return new zY(A)};
un=function(A){if(A instanceof zY)return A.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Zi=function(A,Q){A.src=_.IT(Q).toString()};
fFf=function(A,Q){A.setAttribute("sandbox","");for(var b=0;b<Q.length;b++)A.sandbox.supports&&!A.sandbox.supports(Q[b])||A.sandbox.add(Q[b])};
_.TiC=function(A,Q,b){A.removeAttribute("srcdoc");switch(Q){case 0:if(b instanceof np)throw new aFX("TrustedResourceUrl",0);fFf(A,[]);Q=_.x8(b);Q!==void 0&&(A.src=Q);break;case 1:if(!(b instanceof np))throw new aFX(typeof b,1);fFf(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Zi(A,b);break;case 2:if(b instanceof np)throw new aFX("TrustedResourceUrl",2);fFf(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
Q=_.x8(b);Q!==void 0&&(A.src=Q);break;default:_.x1(Q)}};
_.Y8=function(A,Q,b,f){Q=_.x8(Q);return Q!==void 0?A.open(Q,b,f):null};
_.Di=function(A){A=A===void 0?document:A;var Q,b;A=(b=(Q=A).querySelector)==null?void 0:b.call(Q,"script[nonce]");return A==null?"":A.nonce||A.getAttribute("nonce")||""};
_.Ns=function(A){var Q=ysy();A=Q?Q.createScript(A):A;return new _.$8(A)};
dL4=function(A){if(A instanceof _.$8)return A.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
Fyi=function(A){var Q=_.Di(A.ownerDocument);Q&&A.setAttribute("nonce",Q)};
_.s$=function(A,Q){A.textContent=dL4(Q);Fyi(A)};
_.mw=function(A,Q){A.src=_.IT(Q);Fyi(A)};
_.Ao=function(A,Q){if(A.nodeType===1&&/^(script|style)$/i.test(A.tagName))throw Error("Z");A.innerHTML=un(Q)};
_.Qw=function(A,Q,b,f){if(A.length===0)throw Error("Z");A=A.map(function(T){if(T instanceof GOX)T=T.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return T});
var a=b.toLowerCase();if(A.every(function(T){return a.indexOf(T)!==0}))throw Error("aa`"+b);
Q.setAttribute(b,f)};
_.bM=function(A,Q,b){if(Q instanceof np)A.href=_.IT(Q).toString(),A.rel=b;else{if(BiW.indexOf(b)===-1)throw Error("ba`"+b);Q=_.x8(Q);Q!==void 0&&(A.href=Q,A.rel=b)}};
pa6=function(A){if(A instanceof aD)return A.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.PMY=function(A,Q){Q=_.x8(Q);Q!==void 0&&(A.href=Q)};
XaJ=function(A,Q){A&&(Q=A.indexOf(Q),0<=Q&&A.splice(Q,1))};
TO=function(A){return typeof A==="function"};
Sii=function(A){return A instanceof di||A&&"closed"in A&&TO(A.remove)&&TO(A.add)&&TO(A.unsubscribe)};
FT=function(){};
GO=function(A){ULC(function(){throw A;})};
Ba=function(A){return A};
pN=function(){return Ly4(_.E$.apply(0,arguments))};
Ly4=function(A){return A.length===0?Ba:A.length===1?A[0]:function(Q){return A.reduce(function(b,f){return f(b)},Q)}};
MxJ=function(A){var Q;return(Q=A!=null?A:void 0)!=null?Q:Promise};
lFY=function(A,Q){return new Pa(function(b){var f=0;return Q.schedule(function(){f===A.length?b.complete():(b.next(A[f++]),b.closed||this.schedule())})})};
KyW=function(A,Q){if(!A)throw Error("ca");return new Pa(function(b){var f=new di;f.add(Q.schedule(function(){var a=A[Symbol.asyncIterator]();f.add(Q.schedule(function(){var T=this;a.next().then(function(G){G.done?b.complete():(b.next(G.value),T.schedule())})}))}));
return f})};
iNy=function(A,Q,b){Q=Q.schedule(function(){try{b.call(this)}catch(f){A.error(f)}},0);
A.add(Q)};
VxX=function(A,Q){return new Pa(function(b){var f;b.add(Q.schedule(function(){f=A[JoU]();iNy(b,Q,function(){var a=f.next(),T=a.value;a.done?b.complete():(b.next(T),this.schedule())})}));
return function(){var a;return TO((a=f)==null?void 0:a.return)&&f.return()}})};
ONA=function(A,Q){return new Pa(function(b){var f=new di;f.add(Q.schedule(function(){var a=A[XT]();f.add(a.subscribe({next:function(T){f.add(Q.schedule(function(){return b.next(T)}))},
error:function(T){f.add(Q.schedule(function(){return b.error(T)}))},
complete:function(){f.add(Q.schedule(function(){return b.complete()}))}}))}));
return f})};
nmi=function(A,Q){return new Pa(function(b){return Q.schedule(function(){return A.then(function(f){b.add(Q.schedule(function(){b.next(f);b.add(Q.schedule(function(){return b.complete()}))}))},function(f){b.add(Q.schedule(function(){return b.error(f)}))})})})};
kOf=function(A){return new TypeError("da`"+(A!==null&&typeof A==="object"?"an invalid object":"'"+A+"'"))};
HNe=function(A,Q){if(A!=null){if(TO(A[XT]))return ONA(A,Q);if(IFb(A))return lFY(A,Q);if(TO(A==null?void 0:A.then))return nmi(A,Q);if(Symbol.asyncIterator&&TO(A==null?void 0:A[Symbol.asyncIterator]))return KyW(A,Q);if(TO(A==null?void 0:A[JoU]))return VxX(A,Q)}throw kOf(A);};
LN=function(A,Q){return Q?HNe(A,Q):Ui(A)};
Ui=function(A){if(A instanceof Pa)return A;if(A!=null){if(TO(A[XT]))return CMy(A);if(IFb(A))return qiy(A);if(TO(A==null?void 0:A.then))return om6(A);if(Symbol.asyncIterator&&TO(A==null?void 0:A[Symbol.asyncIterator]))return txY(A);if(TO(A==null?void 0:A[JoU]))return roW(A)}throw kOf(A);};
CMy=function(A){return new Pa(function(Q){var b=A[XT]();if(TO(b.subscribe))return b.subscribe(Q);throw new TypeError("ea");})};
qiy=function(A){return new Pa(function(Q){for(var b=0;b<A.length&&!Q.closed;b++)Q.next(A[b]);Q.complete()})};
om6=function(A){return new Pa(function(Q){A.then(function(b){Q.closed||(Q.next(b),Q.complete())},function(b){return Q.error(b)}).then(null,GO)})};
roW=function(A){return new Pa(function(Q){for(var b=A[JoU]();!Q.closed;){var f=b.next(),a=f.value;f.done?Q.complete():Q.next(a)}return function(){return TO(b==null?void 0:b.return)&&b.return()}})};
txY=function(A){return new Pa(function(Q){jDC(A,Q).catch(function(b){return Q.error(b)})})};
jDC=function(A,Q){var b,f,a,T,G,p;return _.B(function(P){switch(P.nextAddress){case 1:_.ML(P,2,3),T=_.lM(A);case 5:return P.yield(T.next(),8);case 8:f=P.yieldResult;if(f.done){P.jumpTo(3);break}G=f.value;Q.next(G);P.jumpTo(5);break;case 3:_.KN(P);_.iM(P,9);if(!f||f.done||!(a=T.return)){P.jumpTo(9);break}return P.yield(a.call(T),9);case 9:_.KN(P,0,0,1);if(b)throw b.error;_.Jo(P,10,1);break;case 10:_.Jo(P,4);break;case 2:p=_.Vw(P);b={error:p};P.jumpTo(3);break;case 4:Q.complete(),_.Oi(P)}})};
RZi=function(A,Q){return Q?lFY(A,Q):qiy(A)};
gmC=function(A){return TO(A[A.length-1])?A.pop():void 0};
nN=function(A){var Q=A[A.length-1];return Q&&TO(Q.schedule)?A.pop():void 0};
ID=function(){var A=_.E$.apply(0,arguments),Q=nN(A);return Q?lFY(A,Q):RZi(A)};
Ha=function(A){var Q=TO(A)?A:function(){return A};
return new Pa(function(b){return b.error(Q())})};
CN=function(A){return function(Q){if(TO(Q==null?void 0:Q.lift))return Q.lift(function(b){try{return A(b,this)}catch(f){this.error(f)}});
throw new TypeError("fa");}};
oD=function(){return CN(function(A,Q){var b=null;A._refCount++;var f=new qL(Q,void 0,void 0,void 0,function(){if(!A||A._refCount<=0||0<--A._refCount)b=null;else{var a=A._connection,T=b;b=null;!a||T&&a!==T||a.unsubscribe();Q.unsubscribe()}});
A.subscribe(f);f.closed||(b=A.connect())})};
hZW=function(){var A=eZF;var Q=Q===void 0?0:Q;return CN(function(b,f){f.add(A.schedule(function(){return b.subscribe(f)},Q))})};
to=function(A){return CN(function(Q,b){var f=0;Q.subscribe(new qL(b,function(a){b.next(A.call(void 0,a,f++))}))})};
vm4=function(A){return to(function(Q){return WyY(Q)?A.apply(null,_.ri(Q)):A(Q)})};
waJ=function(A){if(A.length===1){var Q=A[0];if(Emy(Q))return{args:Q,keys:null};if(Q&&typeof Q==="object"&&xLF(Q)===coe)return A=zZY(Q),{args:A.map(function(b){return Q[b]}),
keys:A}}return{args:A,keys:null}};
jx=function(){var A=_.E$.apply(0,arguments),Q=nN(A),b=gmC(A);A=waJ(A);var f=A.args,a=A.keys;if(f.length===0)return LN([],Q);Q=new Pa(uT4(f,Q,a?function(T){for(var G={},p=0;p<T.length;p++)G[a[p]]=T[p];return G}:Ba));
return b?Q.pipe(vm4(b)):Q};
uT4=function(A,Q,b){b=b===void 0?Ba:b;return function(f){ZNA(Q,function(){for(var a=A.length,T=Array(a),G=a,p=A.map(function(){return!1}),P=!0,U={i$jscomp$216:0};U.i$jscomp$216<a;U={i$jscomp$216:U.i$jscomp$216},U.i$jscomp$216++)ZNA(Q,function(L){return function(){LN(A[L.i$jscomp$216],Q).subscribe(new RD(f,function(M){T[L.i$jscomp$216]=M;
P&&(p[L.i$jscomp$216]=!0,P=!p.every(Ba));P||f.next(b(T.slice()))},function(){return--G===0}))}}(U),f)},f)}};
ZNA=function(A,Q,b){A?b.add(A.schedule(Q)):Q()};
yoF=function(A,Q,b,f){var a=[],T=0,G=0,p=!1,P=function(U){T++;Ui(b(U,G++)).subscribe(new qL(Q,function(L){Q.next(L)},void 0,function(){T--;
for(var L={};a.length&&T<f;L={bufferedValue:void 0})L.bufferedValue=a.shift(),P(L.bufferedValue);!p||a.length||T||Q.complete()}))};
A.subscribe(new qL(Q,function(U){return T<f?P(U):a.push(U)},void 0,function(){p=!0;
!p||a.length||T||Q.complete()}));
return function(){a=null}};
gi=function(A,Q){var b=b===void 0?Infinity:b;if(TO(Q))return gi(function(f,a){return to(function(T,G){return Q(f,T,a,G)})(Ui(A(f,a)))},b);
typeof Q==="number"&&(b=Q);return CN(function(f,a){return yoF(f,a,A,b)})};
YiY=function(A){A=A===void 0?Infinity:A;return gi(Ba,A)};
DLX=function(){var A=_.E$.apply(0,arguments);return YiY(1)(RZi(A,nN(A)))};
$L9=function(A){return new Pa(function(Q){Ui(A()).subscribe(Q)})};
ex=function(A,Q,b){if(TO(b)){var f=b;b=void 0}if(f)return ex(A,Q,b).pipe(vm4(f));f=_.F(TO(A.addEventListener)&&TO(A.removeEventListener)?NiJ.map(function(G){return function(p){return A[G](Q,p,b)}}):TO(A.addListener)&&TO(A.removeListener)?sD4.map(mLC(A,Q)):TO(A.on)&&TO(A.off)?A3Y.map(mLC(A,Q)):[]);
var a=f.next().value,T=f.next().value;return!a&&IFb(A)?gi(function(G){return ex(G,Q,b)})(RZi(A)):new Pa(function(G){if(!a)throw new TypeError("ga");
var p=function(){var P=_.E$.apply(0,arguments);return G.next(1<P.length?P:P[0])};
a(p);return function(){return T(p)}})};
mLC=function(A,Q){return function(b){return function(f){return A[b](Q,f)}}};
Wa=function(){var A=_.E$.apply(0,arguments),Q=nN(A);var b=typeof A[A.length-1]==="number"?A.pop():Infinity;return A.length?A.length===1?Ui(A[0]):YiY(b)(RZi(A,Q)):ho};
btJ=function(A){return A.length===1&&QkX(A[0])?A[0]:A};
f06=function(){var A=btJ(_.E$.apply(0,arguments));return CN(function(Q,b){var f=[Q].concat(_.ri(A)),a=function(){if(!b.closed)if(f.length>0){try{var T=Ui(f.shift())}catch(p){a();return}var G=new qL(b,void 0,FT,FT);b.add(T.subscribe(G));G.add(a)}else b.complete()};
a()})};
va=function(A){return CN(function(Q,b){var f=0;Q.subscribe(new qL(b,function(a){return A.call(void 0,a,f++)&&b.next(a)}))})};
TQ6=function(){var A=_.E$.apply(0,arguments);A=btJ(A);return A.length===1?Ui(A[0]):new Pa(a0b(A))};
a0b=function(A){return function(Q){for(var b=[],f={i$jscomp$219:0};b&&!Q.closed&&f.i$jscomp$219<A.length;f={i$jscomp$219:f.i$jscomp$219},f.i$jscomp$219++)b.push(Ui(A[f.i$jscomp$219]).subscribe(new qL(Q,function(a){return function(T){if(b){for(var G=0;G<b.length;G++)G!==a.i$jscomp$219&&b[G].unsubscribe();b=null}Q.next(T)}}(f))))}};
d1C=function(){var A=_.E$.apply(0,arguments),Q=gmC(A),b=btJ(A);return b.length?new Pa(function(f){var a=b.map(function(){return[]}),T=b.map(function(){return!1});
f.add(function(){a=T=null});
for(var G={sourceIndex$jscomp$1:0};!f.closed&&G.sourceIndex$jscomp$1<b.length;G={sourceIndex$jscomp$1:G.sourceIndex$jscomp$1},G.sourceIndex$jscomp$1++)Ui(b[G.sourceIndex$jscomp$1]).subscribe(new qL(f,function(p){return function(P){a[p.sourceIndex$jscomp$1].push(P);a.every(function(U){return U.length})&&(P=a.map(function(U){return U.shift()}),f.next(Q?Q.apply(null,_.ri(P)):P),a.some(function(U,L){return!U.length&&T[L]})&&f.complete())}}(G),void 0,function(p){return function(){T[p.sourceIndex$jscomp$1]=
!0;
!a[p.sourceIndex$jscomp$1].length&&f.complete()}}(G)));
return function(){a=T=null}}):ho};
FK9=function(A){var Q,b,f;return!!A&&typeof A.active==="boolean"&&typeof((Q=A.clock)==null?void 0:Q.now)==="function"&&((b=A.clock)==null?void 0:b.timeline)!==void 0&&!((f=A.lastMeasurement)==null||!f.timestamp)&&typeof A.equivalentTo==="function"&&typeof A.extrapolateToNow==="function"&&typeof A.extrapolateToTime==="function"&&typeof A.map==="function"&&typeof A.joinWith==="function"};
GHF=function(A){function Q(b){return typeof b==="boolean"||typeof b==="string"||typeof b==="number"||b===void 0||b===null}
return Q(A)?!0:Array.isArray(A)?A.every(Q):typeof A==="object"?Object.keys(A).every(function(b){return typeof b==="string"})&&Object.values(A).every(function(b){return Array.isArray(b)?b.every(Q):Q(b)}):!1};
BQb=function(A){if(GHF(A))return A;if(FK9(A))return{lastMeasurement:{value:BQb(A.lastMeasurement.value),timestamp:Ei(A.lastMeasurement.timestamp,new ca(0,A.lastMeasurement.timestamp.timeline))},active:A.active};try{return JSON.parse(JSON.stringify(A))}catch(Q){}return String(A)};
zO=function(A,Q){return function(b){return new Pa(function(f){return b.subscribe(function(a){A.timeExecution(Q,function(){f.next(a)})()},function(a){A.timeExecution(Q,function(){f.error(a)})()},function(){A.timeExecution(Q,function(){f.complete()})()})})}};
plf=function(A,Q){var b=!1;return new Pa(function(f){var a=A.setTimeout(function(){b=!0;f.next(!0);f.complete()},Q);
return function(){b||A.clearTimeout(a)}})};
Pwy=function(A){A=A.global;if(A.fetchLater)return A.fetchLater.bind(A)};
wi=function(A){return CN(function(Q,b){var f=null,a=!1,T;f=Q.subscribe(new qL(b,void 0,function(G){T=Ui(A(G,wi(A)(Q)));f?(f.unsubscribe(),f=null,T.subscribe(b)):a=!0}));
a&&(f.unsubscribe(),f=null,T.subscribe(b))})};
Xlb=function(A,Q,b){return function(f,a){var T=b,G=Q,p=0;f.subscribe(new qL(a,function(P){var U=p++;G=T?A(G,P,U):(T=!0,P);a.next(G)},void 0,void 0))}};
SXb=function(A){A=A===void 0?null:A;return CN(function(Q,b){var f=!1;Q.subscribe(new qL(b,function(a){f=!0;b.next(a)},void 0,function(){f||b.next(A);
b.complete()}))})};
uM=function(){return CN(function(A,Q){A.subscribe(new qL(Q,FT))})};
ZF=function(A){return CN(function(Q,b){Q.subscribe(new qL(b,function(){return b.next(A)}))})};
yw=function(A){return A<=0?function(){return ho}:CN(function(Q,b){var f=0;
Q.subscribe(new qL(b,function(a){++f<=A&&(b.next(a),A<=f&&b.complete())}))})};
Ym=function(A){var Q=Q===void 0?Ba:Q;var b;A=(b=A)!=null?b:U1f;return CN(function(f,a){var T,G=!0;f.subscribe(new qL(a,function(p){var P=Q(p);if(G||!A(T,P))G=!1,T=P,a.next(p)}))})};
U1f=function(A,Q){return A===Q};
M2J=function(A){A=A===void 0?LKA:A;return CN(function(Q,b){var f=!1;Q.subscribe(new qL(b,function(a){f=!0;b.next(a)},void 0,function(){return f?b.complete():b.error(A())}))})};
LKA=function(){return new l0i};
DF=function(){var A=_.E$.apply(0,arguments);return function(Q){return DLX(Q,ID.apply(null,_.ri(A)))}};
KKF=function(A){return CN(function(Q,b){var f=0;Q.subscribe(new qL(b,function(a){A.call(void 0,a,f++,Q)||(b.next(!1),b.complete())},void 0,function(){b.next(!0);
b.complete()}))})};
ity=function(){return CN(function(A,Q){var b=[];A.subscribe(new qL(Q,function(f){b.push(f);1<b.length&&b.shift()},void 0,function(){for(var f=_.F(b),a=f.next();!a.done;a=f.next())Q.next(a.value);
Q.complete()},function(){b=null}))})};
J34=function(A,Q){var b=arguments.length>=2;return function(f){return f.pipe(A?va(function(a,T){return A(a,T,f)}):Ba,ity(),b?SXb(Q):M2J(function(){return new l0i}))}};
si=function(A){var Q=TO(A)?A:function(){return A};
return TO()?CN(function(b,f){var a=Q();(void 0)(a).subscribe(f).add(b.subscribe(a))}):function(b){var f=new NL(b,Q);
TO(b==null?void 0:b.lift)&&(f.lift=b.lift);f.source=b;f.subjectFactory=Q;return f}};
A3=function(A){var Q=new my(A,void 0,void 0);return function(b){return si(function(){return Q})(b)}};
QE=function(A,Q){return CN(Xlb(A,Q,arguments.length>=2))};
bw=function(){var A=_.E$.apply(0,arguments),Q=nN(A);return CN(function(b,f){(Q?DLX(A,b,Q):DLX(A,b)).subscribe(f)})};
ft=function(A){return CN(function(Q,b){var f=null,a=0,T=!1;Q.subscribe(new qL(b,function(G){var p;(p=f)==null||p.unsubscribe();p=a++;Ui(A(G,p)).subscribe(f=new qL(b,function(P){return b.next(P)},void 0,function(){f=null;
T&&!f&&b.complete()}))},void 0,function(){(T=!0,!f)&&b.complete()}))})};
ak=function(A,Q){Q=Q===void 0?!1:Q;return CN(function(b,f){var a=0;b.subscribe(new qL(f,function(T){var G=A(T,a++);(G||Q)&&f.next(T);!G&&f.complete()}))})};
V2y=function(A,Q,b){var f=TO(A)||Q||b?{next:A,error:Q,complete:b}:A;return f?CN(function(a,T){a.subscribe(new qL(T,function(G){var p;(p=f.next)==null||p.call(f,G);T.next(G)},function(G){var p;
(p=f.error)==null||p.call(f,G);T.error(G)},function(){var G;
(G=f.complete)==null||G.call(f);T.complete()}))}):Ba};
Otf=function(){var A=_.E$.apply(0,arguments),Q=gmC(A);return CN(function(b,f){for(var a=A.length,T=Array(a),G=A.map(function(){return!1}),p=!1,P={i$jscomp$229:0};P.i$jscomp$229<a;P={i$jscomp$229:P.i$jscomp$229},P.i$jscomp$229++)Ui(A[P.i$jscomp$229]).subscribe(new qL(f,function(U){return function(L){T[U.i$jscomp$229]=L;
p||G[U.i$jscomp$229]||(G[U.i$jscomp$229]=!0,(p=G.every(Ba))&&(G=null))}}(P),void 0,FT));
b.subscribe(new qL(f,function(U){p&&(U=[U].concat(_.ri(T)),f.next(Q?Q.apply(null,_.ri(U)):U))}))})};
kHW=function(A){try{return!!A&&A.location.href!=null&&n5Y(A,"foo")}catch(Q){return!1}};
I0A=function(A){var Q=[],b=0,f;for(f in A)Q[b++]=f;return Q};
HtA=function(A,Q){for(var b in A)if(A[b]==Q)return!0;return!1};
CwA=function(A,Q,b){for(var f in A)if(Q.call(b,A[f],f,A))return f};
qXJ=function(A){if(!A||typeof A!=="object")return A;if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);if(A instanceof Date)return new Date(A.getTime());var Q=Array.isArray(A)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(A)||A instanceof DataView?{}:new A.constructor(A.length),b;for(b in A)Q[b]=qXJ(A[b]);return Q};
o5b=function(A){var Q=arguments.length;if(Q==1&&Array.isArray(arguments[0]))return o5b.apply(null,arguments[0]);if(Q%2)throw Error("ka");for(var b={},f=0;f<Q;f+=2)b[arguments[f]]=arguments[f+1];return b};
t2i=function(A){var Q=arguments.length;if(Q==1&&Array.isArray(arguments[0]))return t2i.apply(null,arguments[0]);for(var b={},f=0;f<Q;f++)b[arguments[f]]=!0;return b};
_.TH=function(A){return new GOX(A[0].toLowerCase())};
r3e=function(A){for(var Q=_.E$.apply(1,arguments),b=A[0],f=0;f<A.length-1;f++)b+=String(Q[f]),b+=A[f+1];Q=document.implementation.createHTMLDocument("");f=Q.createElement("style");Q.head.appendChild(f);Q=f.sheet;Q.insertRule(b,0);if(Q.cssRules.length===1&&(b=Q.cssRules[0],b instanceof CSSStyleRule))return new aD(b.cssText.replace(/</g,"\\3C "))};
jki=function(A){try{return new URL(A,window.document.baseURI)}catch(Q){return new URL("about:invalid")}};
RKb=function(A,Q){var b=Q.createRange();b.selectNode(Q.body);A=w$(A);return b.createContextualFragment(un(A))};
g5i=function(A){A=A.nodeName;return typeof A==="string"?A:"FORM"};
eK6=function(A){A=A.nodeType;return A===1||typeof A!=="number"};
dQ=function(A,Q,b){A.setAttribute(Q,b)};
hKW=function(A){return A.parts.map(function(Q){var b=Q.descriptor;return""+Q.url+(b?" "+b:"")}).join(" , ")};
_.GH=function(A){var Q=_.E$.apply(1,arguments);if(Q.length===0)return _.k8(A[0]);for(var b=A[0],f=0;f<Q.length;f++)b+=encodeURIComponent(Q[f])+A[f+1];return _.k8(b)};
_.Bl=function(A,Q){A=_.IT(A).toString();var b=A.split(/[?#]/),f=/[?]/.test(A)?"?"+b[1]:"";return WKb(b[0],f,/[#]/.test(A)?"#"+(f?b[2]:b[1]):"",Q)};
WKb=function(A,Q,b,f){function a(G,p){G!=null&&(Array.isArray(G)?G.forEach(function(P){return a(P,p)}):(Q+=T+encodeURIComponent(p)+"="+encodeURIComponent(G),T="&"))}
var T=Q.length?"&":"?";f.constructor===Object&&(f=Object.entries(f));Array.isArray(f)?f.forEach(function(G){return a(G[1],G[0])}):f.forEach(a);
return _.k8(A+Q+b)};
pt=function(A,Q,b,f){this.top=A;this.right=Q;this.bottom=b;this.left=f};
v5f=function(A){A=A.global;if(A.PendingGetBeacon)return A.PendingGetBeacon};
S2=function(A){return function(Q){return Q.pipe(E5A(A,si(new Pl)))}};
Lt=function(A){return function(Q){return Q.pipe(E5A(A,A3(1)))}};
E5A=function(A,Q){function b(f){return new Pa(function(a){return f.subscribe(function(T){M1(A,function(){return void a.next(T)},3)},function(T){M1(A,function(){return void a.error(T)},3)},function(){M1(A,function(){return void a.complete()},3)})})}
return pN(b,hZW(),Q,oD(),b)};
zKX=function(A){var Q=x1A(A);return Q===null?new lw(null):Q.pipe(to(function(b){b=b.serialize();if(c3i)b=_.by.btoa(b);else{for(var f=[],a=0,T=0;T<b.length;T++){var G=b.charCodeAt(T);G>255&&(f[a++]=G&255,G>>=8);f[a++]=G}b=_.Cs(f)}return b}),yw(1),Lt(A.queue))};
wl6=function(A){var Q=Q===void 0?{}:Q;if(typeof Event==="function")return new Event(A,Q);if(typeof document!=="undefined"){var b=document.createEvent("CustomEvent");b.initCustomEvent(A,Q.bubbles||!1,Q.cancelable||!1,Q.detail);return b}throw Error();};
uuX=function(A){return typeof A==="string"?document.getElementById(A):A};
y3W=function(A){var Q=!1;Q=Q===void 0?!1:Q;if(A.tagName==="IMG"){if(A.complete&&(!A.naturalWidth||!A.naturalHeight))return!0;var b;if(Q&&((b=A.style)==null?void 0:b.display)==="none")return!0}var f,a;return Zte.test((f=A.getAttribute("width"))!=null?f:"")&&Zte.test((a=A.getAttribute("height"))!=null?a:"")};
YX6=function(A,Q){if(A.tagName==="IMG")return A.naturalWidth&&A.naturalHeight?!0:!1;try{if(A.readyState)var b=A.readyState;else{var f,a;b=(f=A.contentWindow)==null?void 0:(a=f.document)==null?void 0:a.readyState}return b==="complete"}catch(T){return Q===void 0?!1:Q}};
D1F=function(A){A||(A=function(Q,b,f){Q.addEventListener(b,f)});
return A};
m1A=function(A,Q){var b=$19();b=b===void 0?new NQ4:b;if(A=uuX(A)){var f=D1F(f);for(var a=!1,T=function(g){a||(a=!0,Q(g))},G,p=2,P=0;P<skb.length;++P)if(skb[P]===A.tagName){p=3;
G=[A];break}G||(G=A.querySelectorAll(skb.join(",")));var U=0,L=0,M=!0,l=A=!1;P={};for(var J=0;J<G.length;P={isImg:void 0},J++){var n=G[J];if(!y3W(n))if(P.isImg=n.tagName==="IMG",YX6(n,b.crossDomainLoadedDefault))A=!0,P.isImg&&(M=!0);else{U++;var t=function(g){return function(e){U--;!U&&M&&T(p);g.isImg&&(e=e&&e.type==="error",L--,e||(M=!0),!L&&l&&M&&T(p))}}(P);
f(n,"load",t);P.isImg&&(L++,f(n,"error",t))}}L===0&&(M=!0);G=null;G=_.by.document.readyState==="complete";if(U===0&&!A&&G)p=5;else if(U||!A){f(_.by,"load",function(){!b.pendingImagesBlockLoad||!L&&M?T(4):l=!0});
return}T(p)}};
ATe=function(A,Q,b){if(A)for(var f=0;A!=null&&f<500&&!b(A);++f)A=Q(A)};
QL4=function(A,Q){ATe(A,function(b){try{return b===b.parent?null:b.parent}catch(f){}return null},Q)};
bKe=function(A,Q){if(A.tagName=="IFRAME")Q(A);else{A=A.querySelectorAll("IFRAME");for(var b=0;b<A.length&&!Q(A[b]);++b);}};
f4C=function(A){return(A=A.ownerDocument)&&(A.parentWindow||A.defaultView)||null};
a4Y=function(A,Q,b){try{var f=JSON.parse(b.data)}catch(G){}if(typeof f==="object"&&f&&f.type==="creativeLoad"){var a=f4C(A);if(b.source&&a){var T;QL4(b.source,function(G){try{if(G.parent===a)return T=G,!0}catch(p){}});
T&&bKe(A,function(G){if(G.contentWindow===T)return Q(f),!0})}}};
Tvy=function(A){return typeof A==="string"?document.getElementById(A):A};
BvF=function(){var A={};return A[0]=_.GH(duy,"current"),A[1]=_.GH(FTF),A[2]=_.GH(Gzi),A};
Kt=function(A,Q){return A.left===Q.left&&A.top===Q.top&&A.width===Q.width&&A.height===Q.height};
pof=function(A,Q){return{left:Math.max(A.left,Q.left),top:Math.max(A.top,Q.top),width:Math.max(0,Math.min(A.left+A.width,Q.left+Q.width)-Math.max(A.left,Q.left)),height:Math.max(0,Math.min(A.top+A.height,Q.top+Q.height)-Math.max(A.top,Q.top))}};
PmA=function(A,Q){return{left:Math.round(A.left+Q.x),top:Math.round(A.top+Q.y),width:A.width,height:A.height}};
XoX=function(A,Q,b){if(A&&Q!==null&&Q!=Q.top){if(!Q.top)return new _.iw(-12245933,-12245933);Q=Q.top}try{return(b===void 0?0:b)?(new _.iw(Q.innerWidth,Q.innerHeight)).round():_.J3(Q).round()}catch(f){return new _.iw(-12245933,-12245933)}};
SOC=function(A,Q,b){try{if(A){if(!Q.top)return new pt(-12245933,-12245933,-12245933,-12245933);Q=Q.top}var f=XoX(A,Q,b),a=f.height,T=f.width;if(T===-12245933)return new pt(T,T,T,T);var G=VE(OX(Q.document)),p=G.x,P=G.y;return new pt(P,p+T,P+a,p)}catch(U){return new pt(-12245933,-12245933,-12245933,-12245933)}};
Uui=function(A){var Q;return(Q=A.google_tag_data)!=null?Q:A.google_tag_data={}};
LTX=function(A){var Q,b;return typeof((Q=A.navigator)==null?void 0:(b=Q.userAgentData)==null?void 0:b.getHighEntropyValues)==="function"};
l4Y=function(A){if(!LTX(A))return null;var Q=Uui(A);if(Q.uach_promise)return Q.uach_promise;A=A.navigator.userAgentData.getHighEntropyValues(MY6).then(function(b){Q.uach!=null||(Q.uach=b);return b});
return Q.uach_promise=A};
o$A=function(A){var Q;return KTf(iKA(JTy(VYy(OKF(n$6(kz4(I4J(HK4(new Cmf,A.architecture||""),A.bitness||""),A.mobile||!1),A.model||""),A.platform||""),A.platformVersion||""),A.uaFullVersion||""),((Q=A.fullVersionList)==null?void 0:Q.map(function(b){var f=new qOf;f=_.nt(f,1,b.brand);return _.nt(f,2,b.version)}))||[]),A.wow64||!1)};
tY4=function(A){var Q,b;return(b=(Q=l4Y(A))==null?void 0:Q.then(function(f){return o$A(f)}))!=null?b:null};
rTY=function(A,Q){return new Pa(function(b){var f=!1,a=Array(Q.length);a.fill(void 0);var T=new Set,G=new Set,p=function(M,l){A.running?(a[l]=M,T.add(l),f||(f=!0,M1(A,function(){f=!1;b.next(_.xC(a))},1))):b.error(new Ct(l))},P=function(M,l){G.add(l);
T.add(l);M1(A,function(){b.error(M)},1)},U=function(M){G.add(M);
M1(A,function(){G.size===Q.length&&b.complete()},1)},L=Q.map(function(M,l){return M.subscribe(function(J){return void p(J,l)},function(J){return void P(J,l)},function(){return void U(l)})});
return function(){L.forEach(function(M){return void M.unsubscribe()})}})};
g$J=function(A,Q,b){function f(){if(Q.debugChannel){var g=Q.debugChannel,e=g.next;var x={creativeId:Q.debugNames.getName(b),requiredSignals:a,signals:Object.assign({},T),hasPrematurelyCompleted:G,errorMessage:p,erroredSignalKey:P};x={specMajor:2,specMinor:0,specPatch:0,timestamp:Ei(Q.timeProvider.now(),new ca(0,Q.timeProvider.timeline)),instanceId:Q.debugNames.getName(Q.symbol),creativeState:x};e.call(g,x)}}
for(var a=Object.keys(A),T={},G=!1,p=null,P=null,U={},L=new Set,M=[],l=[],J=_.F(a),n=J.next(),t={};!n.done;t={key$jscomp$396:void 0},n=J.next())t.key$jscomp$396=n.value,n=A[t.key$jscomp$396],n instanceof lw?(U[t.key$jscomp$396]=n.value,L.add(t.key$jscomp$396),Q.debugChannel&&(T[String(t.key$jscomp$396)]=BQb(n.value))):(n=n.pipe(Ym(function(g,e){return FK9(g)||FK9(e)?!1:g===e}),to(function(g){return function(e){Q.debugChannel&&(T[String(g.key$jscomp$396)]=BQb(e),f());
var x={};return x[g.key$jscomp$396]=e,x}}(t)),wi(function(g){return function(e){if(e instanceof Ct)throw new jLY(String(g.key$jscomp$396));
throw e;}}(t)),V2y(function(g){return function(){L.add(g.key$jscomp$396)}}(t),function(g){return function(e){P=String(g.key$jscomp$396);
p=String(e);f()}}(t),function(g){return function(){L.has(g.key$jscomp$396)||(G=!0,f())}}(t))),l.push(t.key$jscomp$396),M.push(n));
(A=Object.keys(T).length>0)&&f();J=rTY(Q.queue,M).pipe(wi(function(g){if(g instanceof Ct)throw new R_6(String(l[g.inputObservableIndex]));throw g;}),to(function(g){return Object.freeze(Object.assign.apply(Object,[{},
U].concat(_.ri(g))))}));
return(M=M.length>0)&&A?Wa(ID(Object.freeze(U)),J):M?J:ID(Object.freeze(U))};
e_b=function(A,Q,b,f,a){return A.performanceMonitor.timeExecution.bind(A.performanceMonitor)(733,function(){var T={};try{return Q.pipe(wi(function(G){f(Object.assign({},T,{error:G}));return ho}),gi(function(G){try{var p=b(A,G)}catch(U){return f(Object.assign({},T,{error:U instanceof Error?U:String(U)})),ho}var P={};
return g$J(p,A,G.symbol).pipe(V2y(function(U){P=U}),A3(1),oD()).pipe(a,wi(function(U){f(Object.assign({},P,{error:U}));
return ho}),DF(void 0),to(function(){return!0}))})).pipe(QE(function(G){return G+1},0),wi(function(G){f(Object.assign({},T,{error:G}));
return ho}))}catch(G){return f(Object.assign({},T,{error:G})),ho}})()};
q1=function(A){var Q=new Map;if(typeof A!=="object"||A===null)return Q;Object.values(A).forEach(function(b){b&&typeof b.extrapolateToNow==="function"&&(Q.has(b.clock.timeline)||Q.set(b.clock.timeline,b.clock.now()))});
return Q};
h_y=function(A,Q){return typeof A==="string"?encodeURIComponent(A):typeof A==="number"?String(A):Array.isArray(A)?A.map(function(b){return h_y(b,Q)}).join(","):A instanceof ca?A.toString():A&&typeof A.extrapolateToNow==="function"?h_y(A.extrapolateUsingTimestampMap(Q).value,Q):A===!0?"1":A===!1?"0":A===void 0||A===null?null:A instanceof WTi?v$i(A):[A.top,
A.left,A.top+A.height,A.left+A.width].join()};
E$6=function(A,Q){A=Object.entries(A).map(function(b){var f=_.F(b);b=f.next().value;f=f.next().value;f=h_y(f,Q);return f===null?"":b+"="+f}).filter(function(b){return b!==""});
return A.length?A.join("&"):""};
z_F=function(A,Q){var b=xuf,f=cTC;Q=Q===void 0?.01:Q;return function(a){Q>0&&Math.random()<=Q&&(A.global.HTMLFencedFrameElement&&A.global.fence&&typeof A.global.fence.reportEvent==="function"&&A.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(A.performanceMonitor.timedFunctionContext),errorEscapedQueryId:a.escapedQueryId}),b(Object.assign({},a,{payloadMapper:function(){return function(T){try{return f(Object.assign({},T))}catch(G){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),q1(a)).forEach(function(T){A.beaconFactory.makeBeacon(T).sendNow()}))}};
woW=function(){var A=_.E$.apply(0,arguments);return function(Q){var b=Q.pipe(A3(1),oD());Q=A.map(function(f){return b.pipe(f,DF(!0))});
return jx(Q).pipe(yw(1),uM())}};
ul9=function(){var A=_.E$.apply(0,arguments);return function(Q){var b=Q.pipe(A3(1),oD());Q=A.map(function(f){return b.pipe(f,DF(!0))});
return Wa.apply(null,_.ri(Q)).pipe(yw(1),uM())}};
ZKe=function(A,Q){return function(b){var f=b.pipe(A3(1),oD());b=f.pipe(A,DF(!0));f=f.pipe(pN(Q,A3(),oD()),DF(!0));b=jx([b,f]);return TQ6(b,f).pipe(yw(1),uM())}};
yTC=function(A,Q,b){b(!0)};
YOy=function(A,Q){return pN(ft(function(b){var f=A(b),a=Q(b),T={};return f&&a&&T?new Pa(function(G){a(f,T,function(p){G.next(Object.assign({},b,{canEmit:p}));G.complete()});
return function(){}}):ok}),va(function(b){return b.canEmit}))};
Dui=function(A){var Q={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(b){return b.pipe(ft(function(f){return new Pa(function(a){function T(){p.disconnect();P.unsubscribe()}
var G=A.MutationObserver;if(G&&f.ref!==void 0){var p=new G(function(U){a.next(U)});
p.observe(f.ref,Q);var P=f.JSC$9302_released.subscribe(T);return T}})}))}};
$ui=function(A){if(A.measurementDeferralState===3)return null;if(A.timeOnScreenReason!==void 0){var Q=A.creativeFound===!1?"n":null;if(Q!==null)return Q}return A.geometricMeasurementErrors instanceof t3?"msf":A.contextValidationErrors instanceof rQ?"c":A.contextVisibilityKnown===!1?"pv":A.geometricMeasurementErrors||A.contextValidationErrors?"x":null};
sLX=function(A,Q){return A.replace(NvU,function(b,f){try{var a=_.j2.get(Q,f);if(a==null||a.toString()==null)return b;a=a.toString();if(a==""||!_.Be(a==null?"":String(a)))return encodeURIComponent(a).replace(/%2C/g,",")}catch(T){}return b})};
mu9=function(A,Q){var b=Object.assign({},A),f=A.userAgentClientHints;b=(delete b.userAgentClientHints,b);b=A.payloadMapper(b);var a=E$6(b,Q);return _.Rk(A.urlPrefixes,function(T){var G="";typeof f==="string"&&(G="&"+E$6({uach:f},Q));var p={};return sLX(T,(p.VIEWABILITY=a,p))+G})};
xuf=function(A,Q){var b=A.payloadMapper(A),f=E$6(b,Q);return f?_.Rk(A.urlPrefixes,function(a){a=a.indexOf("?")>=0?a:a+"?";a="?&".indexOf(a.slice(-1))>=0?a:a+"&";return a+f}):A.urlPrefixes};
Ak6=function(){return pN(va(function(A){return A!==void 0}),to(function(A){return A}))};
Q7C=function(A){return pN(to(function(){return!0}),bw(!1),Lt(A))};
bzF=function(A){return A.length<=0?ho:jx(A.map(function(Q){var b=0;return Q.pipe(to(function(f){return{index:b++,value:f}}))})).pipe(va(function(Q){return Q.every(function(b){return b.index===Q[0].index})}),to(function(Q){return Q.map(function(b){return b.value})}))};
fDb=function(A,Q){A.currentState&&(A.previousState=A.currentState);A.currentState=Q;A.previousState&&A.previousState.value?(Q=Math.max(0,Ei(Q.timestamp,A.previousState.timestamp)),A.totalTime+=Q,A.consecutiveTime+=Q):A.consecutiveTime=0;return A};
aDA=function(){return pN(QE(fDb,{totalTime:0,consecutiveTime:0}),to(function(A){return A.totalTime}))};
TY4=function(){return pN(QE(fDb,{totalTime:0,consecutiveTime:0}),to(function(A){return A.consecutiveTime}))};
dz4=function(A,Q){return function(b){return bzF(Q.map(function(f){return b.pipe(A(f))}))}};
FMb=function(){var A;return pN(V2y(function(Q){return void(A=Q.timestamp)}),TY4(),to(function(Q){return{timestamp:A,
value:Math.round(Q)}}))};
GI9=function(A,Q){return Kt(A.topWindowViewportExternalGeometry,Q.topWindowViewportExternalGeometry)&&Kt(A.elementGeometry,Q.elementGeometry)&&Kt(A.exposedViewportLocalGeometry,Q.exposedViewportLocalGeometry)&&Kt(A.intersectionGeometry,Q.intersectionGeometry)&&A.elementGeometrySourceName===Q.elementGeometrySourceName&&A.measurementRequests===Q.measurementRequests&&A.viewportGeometrySourceName===Q.viewportGeometrySourceName&&A.viewportLocalAppOffset.x===Q.viewportLocalAppOffset.x&&A.viewportLocalAppOffset.y===
Q.viewportLocalAppOffset.y};
X_J=function(A,Q){return function(b){return function(f){var a=f.pipe(si(new Pl),oD());f=b.element.pipe(Ym());a=a.pipe(to(function(T){return T.value}));
return jx([f,a,Q]).pipe(to(function(T){var G=_.F(T);T=G.next().value;var p=G.next().value;G=G.next().value;if(T.ref===void 0)var P={top:0,left:0,width:0,height:0};else{P=T.ref.getBoundingClientRect();var U=T.ref,L=A.global,M=new _.gQ(0,0),l=e2(_.h3(U));if(n5Y(l,"parent")){do{if(l==L)var J=_.Wl(U);else J=BYf(U),J=new _.gQ(J.left,J.top);M.x+=J.x;M.y+=J.y}while(l&&l!=L&&l!=l.parent&&(U=l.frameElement)&&(l=l.parent))}P={top:M.y,left:M.x,width:P.width,height:P.height}}P=PmA(P,p.viewportLocalAppOffset);
L=pof(P,p.exposedViewportLocalGeometry);M=A.timeProvider.now();l=Object;U=l.assign;if(G!==2||A.inCrossDomainIframe||L.width<=0||L.height<=0)var n=!1;else try{var t=A.document.elementFromPoint(L.left+L.width/2,L.top+L.height/2);n=t?!p_W(t,T):!1}catch(g){n=!1}return{timestamp:M,value:U.call(l,{},p,{elementGeometrySourceName:"geo",intersectionGeometry:n?P46.intersectionGeometry:L,elementGeometry:P})}}),S2(A.queue))}}};
p_W=function(A,Q,b){b=b===void 0?0:b;return A.ref===void 0||Q.ref===void 0?!1:A.ref===Q.ref||_.vl(Q.ref,function(f){return f===A.ref})?!0:Q.ref.ownerDocument&&Q.ref.ownerDocument.defaultView&&Q.ref.ownerDocument.defaultView===Q.ref.ownerDocument.defaultView.top?!1:b<10&&Q.ref.ownerDocument&&Q.ref.ownerDocument.defaultView&&Q.ref.ownerDocument.defaultView.frameElement?p_W(A,new EX(Q.ref.ownerDocument.defaultView.frameElement),b+1):!0};
LMb=function(A){return function(Q){return Q.pipe(A.ResizeObserver?S7Y(A):Uzy(A),A3(1),oD())}};
S7Y=function(A){return function(Q){return Q.pipe(ft(function(b){var f=A.ResizeObserver;if(!f||b.ref===void 0)return ID(P46.elementGeometry);var a=(new Pa(function(T){function G(){b.ref!==void 0&&p.unobserve(b.ref);p.disconnect();P.unsubscribe()}
if(b.ref===void 0)return T.complete(),function(){};
var p=new f(function(U){U.forEach(function(L){T.next(L)})});
p.observe(b.ref);var P=b.JSC$9302_released.subscribe(G);return G})).pipe(zO(A.performanceMonitor,736),to(function(T){return T.contentRect}));
return Wa(ID(b.ref.getBoundingClientRect()),a)}),Ym(Kt))}};
Uzy=function(A){return function(Q){var b=Q.pipe(Dui(A)),f=A.onResize;b=Wa(Q.pipe(to(function(){return wl6("resize")})),b,f);
return jx(Q,b).pipe(zO(A.performanceMonitor,737),to(function(a){a=_.F(a).next().value;return a.ref===void 0?void 0:a.ref.getBoundingClientRect()}),Ak6(),Ym(Kt))}};
KMb=function(A,Q){var b=MBb(A,Q).pipe(A3(1),oD());return function(f){return function(a){a=a.pipe(ft(function(T){return T.element}),Ym());
return jx([b,a]).pipe(ft(function(T){var G=_.F(T);T=G.next().value;G=G.next().value;return lDy(A,T.intersectionObserver,LMb(A),T.observations,f,T.flushRecords,G)}),S2(A.queue))}}};
izJ=function(A){return to(function(Q){return Q.value.viewportGeometrySourceName!=="nio"?Q:Object.assign({},Q,{value:Object.assign({},Q.value,{exposedViewportLocalGeometry:x5(A,!0),topWindowViewportExternalGeometry:x5(A,!0)})})})};
Jk9=function(A,Q){return ID(Q).pipe(A,to(function(){return Q}))};
MBb=function(A,Q){return A.timeProvider.timeline!==VBY?Ha(new t3(2)):A.MutationObserver?typeof IntersectionObserver==="undefined"?Ha(new t3(0)):(new Pa(function(b){var f=new Pl,a=new cl(f.next.bind(f),{threshold:[].concat(_.ri(Q))});b.next({observations:f.pipe(zO(A.performanceMonitor,735)),intersectionObserver:a,flushRecords:function(T){T=a.takeRecords(T);T.length>0&&f.next(T)}})})).pipe(yw(1),A3(1),oD()):Ha(new t3(1))};
Oz4=function(A){return HNe(A.sort(function(Q,b){return Q.time-b.time}),eZF)};
lDy=function(A,Q,b,f,a,T,G){return new Pa(function(p){function P(){n||(n=!0,G.ref!==void 0&&Q.unobserve(a,G.ref),L.unsubscribe(),J.unsubscribe(),l.unsubscribe(),t.unsubscribe())}
if(G.ref!==void 0){nAy(Q,a);Q.observe(a,G.ref);var U=new zH({timestamp:A.timeProvider.now(),value:Object.assign({},P46,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),L=f.pipe(gi(function(g){return Oz4(g)}),va(function(g){return g.target===G.ref}),to(function(g){return{timestamp:new ca(g.time,VBY),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:g.rootBounds||wQ,topWindowViewportExternalGeometry:g.rootBounds||x5(A,!0),measurementRequests:M,elementGeometrySourceName:"nio",intersectionGeometry:g.intersectionRect,elementGeometry:g.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:g.isIntersecting,isV2Visible:g.isVisible}}}),si(U),oD()).subscribe(p),M=new Pl,l=M.subscribe(function(){T(a);
p.next({timestamp:A.timeProvider.now(),value:U.value.value});G.ref!==void 0&&(Q.unobserve(a,G.ref),Q.observe(a,G.ref))}),J=Jk9(b,G).subscribe(function(){M.next()}),n=!1,t=G.JSC$9302_released.subscribe(function(){return P()});
return P}})};
kIF=function(A,Q){var b=A.getOnBackgrounded().pipe(to(function(){return"b"}));
return TQ6(Q,b).pipe(yw(1),Lt(A.queue))};
uw=function(A){return function(Q){var b;return Q.pipe(V2y(function(f){return void(b=f.timestamp)}),to(function(f){return f.value}),A,to(function(f){return{timestamp:b,
value:f}}))}};
IDi=function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.elementGeometry.width*A.elementGeometry.height)};
Z0=function(A,Q,b){b=b===void 0?function(f,a){return f===a}:b;
return A.timestamp.equals(Q.timestamp)&&b(A.value,Q.value)};
D0=function(A,Q){return Q.pipe(to(function(b){return new Y5(A.timeProvider,{timestamp:A.timeProvider.now(),value:b})}))};
Hz4=function(A){return function(Q){return Q.pipe(Otf(A),to(function(b){var f=_.F(b);b=f.next().value;f=f.next().value;var a=b.value;return{timestamp:b.timestamp,value:a>=1?!0:a<=0?!1:a>=f}}))}};
q7X=function(){return pN(va(function(A,Q){return Q>0}),C4b,bw(-1),Ym())};
oAF=function(A,Q,b){return A?jx([Q,b]).pipe(va(function(f){var a=_.F(f);f=a.next().value;a=a.next().value;return f.timestamp.equals(a.timestamp)}),to(function(f){var a=_.F(f);
f=a.next().value;a=a.next().value;return f.value>a.value?f:a})):Q};
j7Y=function(A){return function(Q){var b=Q.pipe(tBW),f=Q.pipe(rkY);return A instanceof Pa?A.pipe(ft(function(a){return oAF(a,b,f)})):oAF(A.value,b,f)}};
z4b=function(A,Q,b,f){var a=f.geometryIsOccluded,T=f.exposureThreshold,G=f.wasLargeAdAtRender,p=f.allowLargeAdThreshold,P=f.largeAdExposureThreshold,U=f.mayUseViewportShareExposure,L=f.hasMeasurementStarted;f=f.useIntersectionObserverV2;Q=R4f(A,b,Q);b=gAf(A,b);f=e4b(Q,f);var M=h4Y(A,a,U,Q),l=M.pipe(to(function(u){return u.value}),Ym(),Lt(A),QE(function(u,y){return Math.max(u,y)},0)),J=M.pipe(to(function(u){return u.value}),q7X(),Lt(A)),n=Q.pipe(WMe,to(function(u){return u.value}),yw(2),Ym(),Lt(A));
G=vAY(A,Q,G,p);var t=G.pipe(bw(!1),Ym(),to(function(u){return u?P:T}));
p=M.pipe(Hz4(t),Ym(),Lt(A));var g=jx([p,Q]).pipe(va(function(u){var y=_.F(u);u=y.next().value;y=y.next().value;return u.timestamp.equals(y.timestamp)}),to(function(u){var y=_.F(u);
u=y.next().value;y=y.next().value;return{visible:u.value,geometry:y.value.elementGeometry}}),QE(function(u,y){return!y.visible&&u.visible?u:y},{visible:!1,
geometry:wQ}),to(function(u){return u.geometry}),bw(wQ),Lt(A),Ym(Kt));
U=U instanceof Pa?U.pipe(Ym(),ZF()):ok;t=jx([U,t]).pipe(ZF());var e=Q.pipe(va(function(u){return u.value.viewportGeometrySourceName!=="ns"&&u.value.elementGeometrySourceName!=="ns"}),QE(function(u){return u+1},0),bw(0),Lt(A)),x=b.pipe(ZF(!0),bw(!1),Lt(A));
x=jx([L,x]).pipe(to(function(u){var y=_.F(u);u=y.next().value;y=y.next().value;return u&&!y}),Lt(A));
var D=Q.pipe(EA9,Ym()),w=D.pipe(to(function(u){return u.value}),QE(function(u,y){return Math.max(u,y)},0),Ym(),Lt(A));
A=D.pipe(to(function(u){return u.value}),q7X(),Lt(A));
return{shouldResetExposureSignals:U,shouldResetViewabilitySignals:t,geometrySignals:{readyGeometryWithDefault:Q,measurementStrategy:Q.pipe(xzW),creativePosition:g.pipe(Ym(Kt)),visible:p.pipe(Ym(Z0)),timestampedExposure:M.pipe(Ym(Z0)),maximumExposure:l,minimumExposure:J,browserSize:Q.pipe(ckY,Ym(_.DU)),timestampedScreenShare:D,maxScreenShare:w,minScreenShare:A,geometricMeasurementErrors:b,measurementRequests:Q.pipe(to(function(u){return u.value.measurementRequests})),
isLargeAd:G,geometryIsOccluded:a,hasMeasurementStarted:L,geometryMeasurable:x,validMeasurementCount:e,loadTimeExposure:n,v2VisibilityBitVector:f}}};
gAf=function(A,Q){return Q.pipe(va(function(){return!1}),to(function(b){return b}),wi(function(b){return $5(new lw(b),A)}))};
R4f=function(A,Q,b){return Q.pipe(f06(ok),Lt(A)).pipe(Ym(function(f,a){return Z0(f,a,GI9)}),bw({timestamp:b.now(),
value:P46}),Lt(A))};
h4Y=function(A,Q,b,f){b=f.pipe(j7Y(b),uw(to(function(a){return Math.round(a*100)/100})),Lt(A));
return Q instanceof lw?b:jx([b,Q]).pipe(to(function(a){var T=_.F(a);a=T.next().value;T=T.next().value;return{timestamp:T.timestamp.maximum(a.timestamp),value:T.value?0:a.value}}),Ym(Z0),Lt(A))};
vAY=function(A,Q,b,f){Q=[Q.pipe(to(function(a){return a.value.elementGeometry.width*a.value.elementGeometry.height>=242500}))];
b instanceof Pa&&Q.push(b.pipe(to(function(a){return!!a})));
b=jx(Q);return f?b.pipe(to(function(a){return a.some(function(T){return T})}),bw(!1),Ym(),Lt(A)):$5(new lw(!1),A)};
e4b=function(A,Q){A=jx([A,Q]).pipe(to(function(a){var T=_.F(a);a=T.next().value;if(T.next().value&&a.value.isIntersecting)return a.value.isV2Visible}),Ym());
var b=A.pipe(to(function(a){return a===void 0?!0:a}),QE(function(a,T){return a||!T},!1)),f=A.pipe(QE(function(a,T){return T===void 0?a:T?!1:a!=null?a:!0},void 0),to(function(a){return!!a}));
return jx([Q,d1C(A,b,f)]).pipe(to(function(a){var T=_.F(a);a=T.next().value;var G=_.F(T.next().value);T=G.next().value;var p=G.next().value;G=G.next().value;var P=0;if(!a)return 0;if(T===void 0)return 16;T&&(P|=1);T||(P|=2);p&&(P|=4);G&&(P|=8);return P}))};
DzU=function(A,Q,b,f,a){var T=w_6.timeThresholdMs;var G=G===void 0?new u_F(Q,f):G;return(new Pa(function(p){var P=b.pipe(bw(void 0),ft(function(){return Zzf(a)})).pipe(to(function(U){var L=U.value;
U=U.timestamp;var M=L.visible;L=L.consecutiveViewTime;var l=L>=T;l||!M?ykW(G):(U=Math.max(0,Ei(Q.now(),U)),Y7f(G,Math.max(0,T-L-U)));return l}),QE(function(U,L){return L||U},!1),Ym()).subscribe(p);
return function(){G.dispose();P.unsubscribe()}})).pipe(ak(function(p){return!p},!0),Lt(A))};
Zzf=function(A){return bzF([A,A.pipe(FMb())]).pipe(to(function(Q){var b=_.F(Q);Q=b.next().value;b=b.next().value;return{timestamp:Q.timestamp,value:{visible:Q.value,consecutiveViewTime:b.value}}}),Ym(function(Q,b){return Z0(Q,b,function(f,a){return f.consecutiveViewTime===a.consecutiveViewTime&&f.visible===a.visible})}))};
$zC=function(){return pN(TY4(),QE(function(A,Q){return Math.max(A,Q)},0),to(function(A){return Math.round(A)}))};
NYC=function(A){return pN(Hz4(ID(A)),$zC())};
s7W=function(A,Q){return Q instanceof Pa?Q.pipe(ft(function(b){return(b=b?15:null)?Ha(new t3(b)):A})):(Q=Q.value?15:null)?Ha(new t3(Q)):A};
mzX=function(A){var Q=new t3(13);if(A.length<1)return{chain:ho,capturedErrors:ho};var b=new Pl,f=A[0];return{chain:A.slice(1).reduce(function(a,T){return a.pipe(wi(function(G){b.next(G);return T}))},f).pipe(wi(function(a){b.next(a);
return Ha(Q)}),si(new Pl),oD()),
capturedErrors:b}};
AzJ=function(A,Q){var b=A.pipe(si(new Pl),oD());return ft(function(f){return b.pipe(Q(f))})};
bH4=function(A,Q){if(A.inCrossDomainIframe)return Ha(new t3(6));var b=new Pl;return Wa(ID({}),Q,b).pipe(to(function(){return{timestamp:A.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Q8y(A),topWindowViewportExternalGeometry:x5(A,!0),measurementRequests:b,viewportLocalAppOffset:{x:0,y:0}}}}),S2(A.queue))};
Q8y=function(A){var Q=x5(A,!1);if(!A.inIframe||!kHW(A.global.parent)||A.global.parent===A.global)return Q;var b=new N1(A.global.parent,A.debugChannel);b.beaconFactory=A.beaconFactory;b=Q8y(b);A=A.global.frameElement.getBoundingClientRect();return pof(PmA(pof(b,A),{x:Q.left-A.left,y:Q.top-A.top}),Q)};
fRC=function(A){if(A.prerendering)return 3;var Q;return(Q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[A.visibilityState||A.webkitVisibilityState||A.mozVisibilityState||""])!=null?Q:0};
aRJ=function(A){return A.document.JSC$9313_onVisibilityChange.pipe(to(function(Q){return Q==="visible"}),Ym(),Lt(A.queue))};
TN9=function(A,Q,b){var f;return Q.pipe(Ym(),ft(function(a){return b.pipe(to(function(){if(!f){f=!0;try{a.next()}finally{f=!1}}return!0}))}),bw(!1),Lt(A.queue))};
dqF=function(A){return pN(uw(to(function(Q){return Q>=1?!0:Q<=0?!1:Q>=A})),aDA(),to(function(Q){return Math.round(Q)}))};
GVf=function(A,Q,b,f,a){var T=FRf;if(T.length>1)for(var G=0;G<T.length-1;G++)if(T[G]<T[G+1])throw Error();G=a.pipe(bw(void 0),ft(function(){return b.pipe(FMb())}),Ym(),Lt(A));
a=a.pipe(bw(void 0),ft(function(){return b.pipe($zC())}),Ym(),Lt(A));
return{totalMeasurementTime:f.pipe(bw(void 0),ft(function(){return Q.pipe(to(function(p){return{timestamp:p.timestamp,value:!0}}),aDA())}),Ym(),Lt(A)),
totalUnviewedTime:f.pipe(bw(void 0),ft(function(){return Q.pipe(to(function(p){return{timestamp:p.timestamp,value:p.value===0}}),aDA())}),Ym(),Lt(A)),
maxTimeOnScreen:f.pipe(bw(void 0),ft(function(){return Q.pipe(dz4(NYC,T))}),Ym(_.DU),Lt(A)),
timeOnScreen:f.pipe(bw(void 0),ft(function(){return Q.pipe(dz4(dqF,T),to(function(p){return p.map(function(P,U){return U>0?P-p[U-1]:P})}))}),Ym(_.DU),Lt(A)),
maxConsecutiveViewTime:a,consecutiveViewTime:G.pipe(Ym(Z0),Lt(A))}};
pGU=function(A){var Q=!0;Q=Q===void 0?!1:Q;return pN(ft(function(b){return BNX(A.document,b,Q)}),Lt(A.queue))};
Pde=function(A,Q,b){var f=b.pipe(to(function(a){return{value:a,timestamp:A.timeProvider.now()}}),Ym(Z0));
return Q instanceof Pa?Q.pipe(Ym(),ft(function(a){return a?$5(new lw({value:!1,timestamp:A.timeProvider.now()}),A.queue):f})):Q.value===!1?f:new lw(!1)};
XGA=function(A,Q,b,f,a,T,G){var p=w_6;Q=Q instanceof Pa?Q.pipe(bw(!1),Ym()):Q;var P=!A.isMobile();b=Pde(A,b,f);A=G.measurableCreative.pipe(Q7C(A.queue));return Object.assign({},p,{geometryIsOccluded:b,wasLargeAdAtRender:a,allowLargeAdThreshold:P,mayUseViewportShareExposure:Q,hasMeasurementStarted:A,useIntersectionObserverV2:T})};
Uq4=function(A,Q,b,f,a,T){var G=1;T=T===void 0?!0:T;G=G===void 0?.01:G;var p=p===void 0?A.timeProvider.intervalObservable(100).pipe(Lt(A.queue)):p;return A.performanceMonitor.timeExecution(916,function(){return SpY(A,Q.pipe(S2(A.queue)),b.pipe(S2(A.queue)),f,a,T,G,p)})()};
SpY=function(A,Q,b,f,a,T,G,p){var P=aRJ(A).pipe(to(function(L){return!L})),U=new LRC(A,[new M6A(A,FRf),
new lR9(A,p)]);p=woW(KR9,iH4);return e_b(A,Q,function(L,M){var l=$5(new lw(M.element),L.queue).pipe(pGU(L),Lt(L.queue)),J={loadedElement:l,shouldMeasure:l.pipe(ZF(!0)),measurableCreative:l.pipe(to(function(u){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:$5(new lw(u),L.queue)})})),
creativeSearchResult:$5(new lw("mue"),L.queue)},n=new lw(!1),t=new lw(!1),g=new lw(17),e=new lw(!1),x=new lw(!1),D=$5(sX,L.queue);n=U.buildGeometrySource(J,{inApp:n,useV2:!1,requestSource:$5(g,L.queue)}).geometrySource;J=XGA(L,e,t,P,x,D,J);t=z4b(L.queue,L.timeProvider,n,J);J=t.geometrySignals;e=t.shouldResetViewabilitySignals;t=GVf(L.queue,J.timestampedExposure,J.visible,t.shouldResetExposureSignals,e);e=DzU(L.queue,L.timeProvider,e,J.measurementRequests,J.visible);x=b.pipe(va(function(u){return u===
M.element.ref}),to(function(){return"ur"}));
D=plf(L.timeProvider,a).pipe(ZF("t"));x=kIF(L,Wa(x,D));D=TN9(L,J.measurementRequests,x.pipe(va(function(u){return u!==null})));
n=x.pipe(va(function(u){return u!==null}),to(function(){return fRC(L.global.document)===1}));
var w=Jz9(L.document);return Object.assign({},{beaconFactory:new lw(L.beaconFactory),context:new lw(L),inferredPingId:new lw("lidar2"),timeOnScreenPingId:new lw("lidartos"),binaryContext:new lw(17),binaryVersion:new lw(f),requestSource:g,contextValidationErrors:new lw(L.validate()?null:new rQ),contextVisibilityKnown:new lw(w),payloadMapper:new lw(cTC),endOfSessionReason:x,timeOnScreenReason:x,requestMeasurementOnEndOfSession:D,hasImpressionFired:V6W,crossDomainIframeState:new lw(L.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:sX,inFetchLaterBeaconExperiment:sX,isTurtlex:sX,turtlexReportEventData:new lw(""),reportFencedFrameEvent:ok,isViewableAttributionEnabled:sX,inViewableAttributionExperiment:new lw(0),fetchBeaconFactory:ok,supportsPendingBeacon:sX,supportsFetchLater:sX,emit:new lw(yTC),beginToRenderEvent:new lw(Symbol()),activeViewUnmeasurableEvent:new lw(Symbol()),activeViewViewableEvent:new lw(Symbol()),creativeFound:V6W,immediateUrlPrefixes:new lw(M.immediateUrls),timeOnScreenUrlPrefixes:new lw(M.timeOnScreenUrls),
cpmavUrls:ok,viewableRelayUrls:ok,measurementDeferralState:new lw(2),urlSerializer:new lw(mu9),viewUrlSerializer:new lw(OHb),isCreativeLoaded:l.pipe(Q7C(L.queue)),pageVisible:P.pipe(to(function(u){return!u})),
eosPageVisible:n,timestampedExposureHistory:J.timestampedExposure.pipe(QE(function(u,y){u.push(y);return u},[]))},J,{viewable:D0(L,e),
maxTimeOnScreen:D0(L,t.maxTimeOnScreen),timeOnScreen:D0(L,t.timeOnScreen),maxConsecutiveViewTime:D0(L,t.maxConsecutiveViewTime),consecutiveViewTime:t.consecutiveViewTime.pipe(to(function(u){return new Y5(L.timeProvider,u)})),
totalMeasurementTime:D0(L,t.totalMeasurementTime),totalUnviewedTime:D0(L,t.totalUnviewedTime),userAgentClientHints:zKX(L),clientOrderPingCounter:new lw(new WTi)})},z_F(A,G),ul9(T?ZKe(p,nQb):ZKe(p,kVi),IRU))};
HHX=function(A){var Q=_.E$.apply(1,arguments).filter(Boolean).join("&");if(!Q)return A;var b=A.match(/[?&]adurl=/);return b?A.slice(0,b.index+1)+Q+"&"+A.slice(b.index+1):A+(A.indexOf("?")<0?"?":"&")+Q};
mK=function(A,Q){return Q?"&"+A+"="+encodeURIComponent(Q):""};
CdY=function(){try{var A,Q;return!!((A=window)==null?0:(Q=A.top)==null?0:Q.location.href)&&!1}catch(b){return!0}};
_.AT=function(A){A&&typeof A.dispose=="function"&&A.dispose()};
_.QO=function(A){for(var Q=0,b=arguments.length;Q<b;++Q){var f=arguments[Q];_.ce(f)?_.QO.apply(null,f):_.AT(f)}};
oQC=function(){var A=qp9();A=A===void 0?"bevasrsg":A;return new Promise(function(Q){var b=window===window.top?window:CdY()?window:window.top,f=b[A],a;((a=f)==null?0:a.bevasrs)?Q(new bm(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),b[A]=f),f.nqfbel.push(function(T){Q(new bm(T))}))})};
t69=function(A){var Q={c:A.lN,e:A.kIh,mc:A.fDP,me:A.znr};A.mX&&(Q.co={c:A.mX.gLr,a:A.mX.jAE,s:A.mX.cVy});return Q};
rzb=function(A){var Q,b,f={lN:A.c,kIh:A.e,fDP:(Q=A.mc)!=null?Q:!1,znr:(b=A.me)!=null?b:!1};A.co&&(f.mX={gLr:A.co.c,jAE:A.co.a,cVy:A.co.s});return f};
j8C=function(A){return function(){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(A(),2);Q=b.yieldResult;return b.return({f:function(){return Q.rus()},
c:function(f){return Q.cfb(f)},
m:function(f){return Q.rH(rzb(f))},
mws:function(f){return Q.tfG(rzb(f))}})})}};
RgA=function(A,Q){var b=qp9();b=b===void 0?"bevasrsg":b;Q={s:function(T){var G;return A.snapshot(Object.assign({},T.c&&{lN:T.c},T.s&&{pMA:T.s},{iI8:(G=T.p)!=null?G:!0}))},
e:function(T){var G;return void((G=A.q4x)==null?void 0:G.call(A,T))},
c:function(T,G){return A.q8g(T,G)},
p:A.auf,l:function(){return A.z1h()},
wpc:Q?j8C(Q):void 0};var f=window===window.top?window:CdY()?window:window.top,a=f[b];if(a){a.bevasrs=Q;if(a.nqfbel!==void 0)for(b=_.F(a.nqfbel),f=b.next();!f.done;f=b.next())f=f.value,f(Q);a.nqfbel=void 0}else a={},a=(a.bevasrs=Q,a.nqfbel=void 0,a),f[b]=a};
egU=function(A){var Q=Q===void 0?51:Q;var b=[];_.fK(A,gQb,6,_.aL()).forEach(function(f){_.Tz(f,2)<=Q&&b.push(_.Tz(f,1))});
return b};
hgJ=function(A){var Q=Q===void 0?51:Q;var b=[];_.fK(A,gQb,6,_.aL()).forEach(function(f){_.Tz(f,2)>Q&&b.push(_.Tz(f,1))});
return b};
WRy=function(A){A.then(function(){},function(){})};
dv=function(A){return{fieldType:1,fieldName:A}};
Fl=function(A){return{fieldType:2,fieldName:A}};
_.Gz=function(A){return{fieldType:3,fieldName:A}};
vQ9=function(){function A(){a[0]=1732584193;a[1]=4023233417;a[2]=2562383102;a[3]=271733878;a[4]=3285377520;L=U=0}
function Q(M){for(var l=G,J=0;J<64;J+=4)l[J/4]=M[J]<<24|M[J+1]<<16|M[J+2]<<8|M[J+3];for(J=16;J<80;J++)M=l[J-3]^l[J-8]^l[J-14]^l[J-16],l[J]=(M<<1|M>>>31)&4294967295;M=a[0];var n=a[1],t=a[2],g=a[3],e=a[4];for(J=0;J<80;J++){if(J<40)if(J<20){var x=g^n&(t^g);var D=1518500249}else x=n^t^g,D=1859775393;else J<60?(x=n&t|g&(n|t),D=2400959708):(x=n^t^g,D=3395469782);x=((M<<5|M>>>27)&4294967295)+x+e+D+l[J]&4294967295;e=g;g=t;t=(n<<30|n>>>2)&4294967295;n=M;M=x}a[0]=a[0]+M&4294967295;a[1]=a[1]+n&4294967295;a[2]=
a[2]+t&4294967295;a[3]=a[3]+g&4294967295;a[4]=a[4]+e&4294967295}
function b(M,l){if(typeof M==="string"){M=unescape(encodeURIComponent(M));for(var J=[],n=0,t=M.length;n<t;++n)J.push(M.charCodeAt(n));M=J}l||(l=M.length);J=0;if(U==0)for(;J+64<l;)Q(M.slice(J,J+64)),J+=64,L+=64;for(;J<l;)if(T[U++]=M[J++],L++,U==64)for(U=0,Q(T);J+64<l;)Q(M.slice(J,J+64)),J+=64,L+=64}
function f(){var M=[],l=L*8;U<56?b(p,56-U):b(p,64-(U-56));for(var J=63;J>=56;J--)T[J]=l&255,l>>>=8;Q(T);for(J=l=0;J<5;J++)for(var n=24;n>=0;n-=8)M[l++]=a[J]>>n&255;return M}
for(var a=[],T=[],G=[],p=[128],P=1;P<64;++P)p[P]=0;var U,L;A();return{reset:A,update:b,digest:f,digestString:function(){for(var M=f(),l="",J=0;J<M.length;J++)l+="0123456789ABCDEF".charAt(Math.floor(M[J]/16))+"0123456789ABCDEF".charAt(M[J]%16);return l}}};
uFC=function(A,Q){Q=Q===void 0?EQ6:Q;if(!xq4){var b;A=(b=A.navigator)==null?void 0:b.userAgentData;if(!A||typeof A.getHighEntropyValues!=="function"||A.brands&&typeof A.brands.map!=="function")return Promise.reject(Error("ua"));czy((A.brands||[]).map(function(a){var T=new zgC;T=_.nt(T,1,a.brand);return _.nt(T,2,a.version)}));
typeof A.mobile==="boolean"&&_.Bo(wGU,2,A.mobile);xq4=A.getHighEntropyValues(Q)}var f=new Set(Q);return xq4.then(function(a){var T=wGU.clone();f.has("platform")&&_.nt(T,3,a.platform);f.has("platformVersion")&&_.nt(T,4,a.platformVersion);f.has("architecture")&&_.nt(T,5,a.architecture);f.has("model")&&_.nt(T,6,a.model);f.has("uaFullVersion")&&_.nt(T,7,a.uaFullVersion);return T.serialize()}).catch(function(){return wGU.serialize()})};
pK=function(A,Q,b,f){this.initialValue_=A;this.maxValue_=Q;this.currBaseValue_=this.currValue_=A;this.randomFactor_=b||0;this.backoffFactor_=f||2};
Po=function(A){this.src=A;this.listeners={};this.typeCount_=0};
Dq9=function(){for(var A;A=ZHX.remove();){try{A.fn.call(A.scope)}catch(Q){fF(Q)}yzX.put(A)}Ypb=!1};
_.$qA=function(A){switch(A){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}};
NNb=function(A){switch(A){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""}};
_.s8W=function(){};
F9A=function(A,Q,b,f){A=mqC(A$f(QOy(new _.Xl(1828,"0"),A),new bJY));Q.length&&f1J(A,a1A(new TeX,Q));f!==void 0&&(A.destinationUrl=f);A.disableWithCredentials();var a=new dQe(1828,"","",!1,"",A.build());_.SY(a,A);var T=new UO({flush:function(G){try{a.flush(G)}catch(p){b(p)}}});
T.addOnDisposeCallback(function(){setTimeout(function(){try{T.snapshotAndFlush()}finally{a.dispose()}})});
T.invocationLimit=1E5;T.flushInterval=3E4;T.JSC$9729_flushTimer.setInterval(3E4);return T};
LK=function(){var A,Q,b;return(b=(A=globalThis.performance)==null?void 0:(Q=A.now)==null?void 0:Q.call(A))!=null?b:Date.now()};
prA=function(A,Q){if(A.disable)return new GP6;Q=Q?egU(Q):[];A={nj:A.nj,szB:A.fIU,utO:A.cSp,destinationUrl:A.destinationUrl,cUS:A.cUS,eof:A.eof};Q=Q===void 0?[]:Q;return new BeJ(A,Q)};
Pu9=function(A){if(!A)return null;A=_.Mu(A,2);return A===null||A===void 0?null:w$(A)};
_.Xr9=function(A){if(!A)return null;A=_.Mu(A,4);return A===null||A===void 0?null:_.k8(A)};
L9y=function(A,Q){return Q?SoJ(Q):A?UQf(A):Promise.resolve()};
SoJ=function(A){return new Promise(function(Q,b){var f=_.KK("SCRIPT"),a=_.Xr9(A);_.mw(f,a);f.onload=function(){_.im(f);Q()};
f.onerror=function(){_.im(f);b(Error("Fa"))};
(JT("HEAD")[0]||document.documentElement).appendChild(f)})};
UQf=function(A){return new Promise(function(Q){var b=_.KK("SCRIPT");if(A){var f=_.Mu(A,6);f=f===null||f===void 0?null:_.Ns(f)}else f=null;_.s$(b,f);(JT("HEAD")[0]||document.documentElement).appendChild(b);_.im(b);Q()})};
VO=function(A,Q,b){var f,a=new Promise(function(T){f=setTimeout(T,Q)});
return Promise.race([A.finally(function(){return void clearTimeout(f)}),
a.then(b)])};
MtU=function(A,Q){try{return globalThis.sessionStorage.setItem(A,Q),!0}catch(b){return!1}};
gRX=function(A,Q,b,f){Q=Q===void 0?0:Q;b=b===void 0?A.length:b;var a=0;for(f&&(a=gRX(f));Q<b;Q++)f=typeof A==="string"?A.charCodeAt(Q):A[Q],a=eoU(31,a)+f|0;return a};
hoX=function(A,Q){return[gRX(A,0,A.length>>1,Q),gRX(A,A.length>>1)]};
W9e=function(A){var Q=_.F(hoX(A,OO));A=Q.next().value;Q=Q.next().value;return A.toString(16)+Q.toString(16)};
vRb=function(A,Q){var b=hoX(Q);A=new Uint32Array(A.buffer);Q=A[0];var f=_.F(b);b=f.next().value;f=f.next().value;for(var a=1;a<A.length;a+=2){for(var T=Q,G=a,p=b,P=f,U=0;U<22;U++)G=G>>>8|G<<24,G+=T|0,G^=p+38293,T=T<<3|T>>>29,T^=G,P=P>>>8|P<<24,P+=p|0,P^=U+38293,p=p<<3|p>>>29,p^=P;T=[T,G];A[a]^=T[0];a+1<A.length&&(A[a+1]^=T[1])}};
ERJ=function(A,Q,b,f,a){var T=(4-(OO.length+b.length)%4)%4,G=new Uint8Array(4+T+OO.length+4+b.length),p=new DataView(G.buffer),P=0;p.setUint32(P,Math.random()*4294967295);P=P+4+T;G.set(OO,P);P+=OO.length;p.setUint32(P,a);G.set(b,P+4);vRb(G,f);return A.insert(Q,function(U){return void globalThis.sessionStorage.removeItem(U)})?MtU(Q,_.Cs(G))?"s":"t":"i"};
xQb=function(A,Q){var b=globalThis.sessionStorage.getItem(A);if(!b)return["m"];try{var f=_.$C(b);vRb(f,Q)}catch(a){return globalThis.sessionStorage.removeItem(A),["c"]}for(Q=4;Q<7&&f[Q]===0;)Q++;for(b=0;b<OO.length;b++)if(f[Q++]!==OO[b])return globalThis.sessionStorage.removeItem(A),["d"];b=(new DataView(f.buffer)).getUint32(Q);return Math.floor(Date.now()/1E3)>=b?(globalThis.sessionStorage.removeItem(A),["e"]):["a",new Uint8Array(f.buffer,Q+4)]};
c$F=function(A){return globalThis.TextEncoder?(new TextEncoder).encode(A):_.nK(A)};
zoA=function(A){var Q=A,b;return function(){if(Q){var f=Q;Q=void 0;b=f.apply(this,arguments)}return b}};
ue9=function(A){return Ry(function(Q){if(Q instanceof A)return!0;var b,f,a=Q==null?void 0:(b=Q.ownerDocument)==null?void 0:(f=b.defaultView)==null?void 0:f[A.name];return wrJ(a)&&Q instanceof a})};
_.Ho=function(A,Q,b){_.k$.call(this);this.JSC$9942_listener_=A;this.JSC$9942_interval_=Q||0;this.handler_=b;this.callback_=(0,_.IL)(this.JSC$9944_doAction_,this)};
_.CK=function(A){A=ZJf(A);return _.k8(A)};
ZJf=function(A){return A===null?"null":A===void 0?"undefined":A};
Yo9=function(A){if(A&&A.focus)if(A!==document.activeElement)A.focus();else return y$Y(function(){return _.B(function(Q){document.activeElement&&document.activeElement.blur();return Q.return(y$Y(function(){A.focus()}))})})};
_.DQ6=function(A){var Q=Q===void 0?5:Q;setTimeout(function(){var b;return _.B(function(f){f.nextAddress==1&&(b=document.activeElement);if(f.nextAddress!=5)return(document.activeElement===b||document.activeElement===document.body)&&Q>=0&&A?f.yield(Yo9(A),5):f.jumpTo(0);if(document.activeElement===A)return f.return();A=A.parentElement;--Q;return f.jumpTo(2)})},15)};
y$Y=function(A){return new Promise(function(Q){requestAnimationFrame(function(){Q(A())})})};
NeC=function(A){if(_.qu)A(_.qu);else{var Q;((Q=$Qy)!=null?Q:$Qy=[]).push(A)}};
tT=function(){!_.qu&&_.oL&&_.sO6(_.oL());return _.qu};
_.sO6=function(A){_.qu=A;var Q;(Q=$Qy)==null||Q.forEach(NeC);$Qy=void 0};
_.rv=function(A){_.qu&&_.qu.beforeLoadModuleCode(A)};
_.jY=function(){_.qu&&_.qu.JSC$10929_setLoaded()};
RL=function(A){return qLb(A)?Number(A):String(A)};
mQJ=function(A){this.action=A;this.wfv=!1};
Ale=function(A,Q){mQJ.call(this,"set-drive-options");this.appId=A;this.appOrigin=Q};
Qx6=function(A){mQJ.call(this,"visibility");this.visible=A};
b4F=function(A,Q,b){gv.call(this,A,Q,b)};
fge=function(A){eY.call(this,A)};
agC=function(A){A=A&&A.getWindow()||window;return A.gadgets&&A.gadgets.rpc};
dgb=function(A,Q){var b=Q&&Q.getWindow()||window;if(agC(Q))A();else if(TOb)TOb.push(A);else var f=TOb=[A],a=b.setInterval(function(){if(agC(Q)){b.clearInterval(a);for(var T=0;T<f.length;T++)f[T]();TOb=null}},100)};
GpX=function(A,Q){var b=new hT(A);_.SY(Q,b);var f={passive:!1};Q.listen(b,"mousewheel",function(a){return void FkY(A,a)},f).listen(A,"scroll",function(a){return void FkY(A,a)},f)};
FkY=function(A,Q){var b;a:{for(b=Q.target;b;){if(b.nodeType==1){var f=_.Wo(b,"overflowY");if(f=="auto"||f=="scroll")break a}b=b.parentNode}b=null}if(!b||!_.vo(A,b)||b.scrollHeight==b.clientHeight||Q.deltaY>0&&Math.abs(b.scrollTop-(b.scrollHeight-b.clientHeight))<=1||Q.deltaY<0&&b.scrollTop==0)Q.preventDefault(),Q.stopPropagation()};
Z4=function(A,Q,b,f,a,T,G,p,P){p=p===void 0?!1:p;P=P===void 0?!1:P;gv.call(this,void 0,void 0,void 0);gv.call(this,T?T+" picker modal-dialog":"picker modal-dialog",!0,b);_.EO(A,"protocol");this.iframeManager_=new BOW;this.targetId_=x$();this.rpcToken_=x$();A=_.co(A);_.zz(A,"hostId");b=_.zz(A,"parent");this.useGapi_=!P&&!0||(b==null?void 0:b.includes("onepick.corp.google.com"));p&&_.wv(A,"fv2","true");this.setUrl(A.toString());this.preferredDialogWidth_=f;this.preferredDialogHeight_=a;f!==void 0||
a!==void 0?f=!0:(f=_.zz(_.co(A.toString()),"hostId"),pE9||(pE9=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),f=!pE9.has(f));this.autoSizeDialog_=f;this.JSC$10132_gadgetsDomHelper_=G||this.JSC$10083_dom_;Q&&(G=this.JSC$10132_gadgetsDomHelper_,Q=_.zz(_.co(this.JSC$10134_url_),"grugl")=="true"?PCC:XEX,agC(G)||(G=G||OX(document),f=G.createElement("SCRIPT"),_.mw(f,Q),f.type="text/javascript",G.JSC$9268_document_.body.appendChild(f)));
A=A.toString();Q=null;G=A.indexOf("/picker?");G>-1?Q=A.substring(0,G+8-1):Fi(A,"/picker")&&(Q=A);Q&&this.setRelayUrl(Q+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(A=this.buttons_,A.JSC$10117_element_=this.buttonEl_,A.render()):_.Ao(this.buttonEl_,SSi),_.um(this.buttonEl_,!!this.buttons_))};
_.lgX=function(A){var Q=Q===void 0?UgC:Q;var b=_.YC(A),f=function(T){T=_.F(T);T.next();T=yO(T);return Q(b,T)},a=function(T){var G=_.F(T);
T=G.next().value;G=yO(G);return A.apply(T,G)};
return function(){var T=_.E$.apply(0,arguments),G=this||_.by,p=Lk9.get(G);p||(p={},Lk9.set(G,p));return M7F(p,[this].concat(_.ri(T)),a,f)}};
Y$=function(A){var Q={};A=A.replace(/\r/g,"").split("\n");for(var b=0;b<A.length;b++){var f=A[b],a=f.indexOf(":");a<0||(Q[f.substring(0,a)]=f.substring(a+2,f.length))}return Q};
D4=function(A,Q,b){b=b===void 0?function(){}:b;
return A?Q():b()};
_.i4A=function(A){var Q;return((Q=Kk4.documentOverride)!=null?Q:A).__wizdispatcher};
_.Nu=function(A){var Q=$$;$$=A;return Q};
_.V7J=function(A){return A===Jl9||(A==null?void 0:A.name)==="\u0275NotFound"};
_.sO=function(A,Q){var b;if((b=A)==null?0:b.isDisposed)throw Error("jb`"+String(A.debugName));for(;A!==void 0;){b=A;if(b.retrieve)return b.retrieve(Q,{optional:!0});A=A.parent}return Jl9};
mT=function(A){return{"\u0275prov":{providedIn:"root",token:Symbol(A),factory:void 0,value:void 0}}};
_.O49=function(A){var Q=$$;if(!Q){switch(A===void 0?3:A){case 0:A=Error("ib");break;case 1:A=Error("kb");break;case 2:A=Error("lb");break;default:A=Error("mb")}throw A;}return Q};
nTb=function(A){var Q=_.Nu(A);A={};return A[Symbol.dispose]=function(){_.Nu(Q)},A};
kpf=function(A,Q){A.disposables||(A.disposables=[]);A.disposables.push(Q)};
Ak=function(A){var Q=$$;Q&&!Q.isDisposed&&(kpf(Q,A),A.parent=Q)};
H4F=function(A){if(A.disposables){for(var Q=_.F(A.disposables),b=Q.next();!b.done;b=Q.next())b=b.value,typeof b==="function"?b():IgU(b);A.disposables.length=0}};
IgU=function(A){if(!A.isDisposed){A.isDisposed=!0;var Q;(Q=A[Symbol.dispose])==null||Q.call(A);delete A.parent;H4F(A)}};
ebW=function(A){var Q={retrieve:function(b){switch(b.\u0275prov.token){case CC6.\u0275prov.token:var f=A.asyncDeps;break;case _.qSb.\u0275prov.token:f=A.rootElement;break;case oTY.\u0275prov.token:f=A.modelRootElement;break;case t7J.\u0275prov.token:f=A.appContext;break;case rlC.\u0275prov.token:f=A.rendererData;break;case jxJ.\u0275prov.token:f=A.injectingConstructor;break;case Rby.\u0275prov.token:f=A.dispatcher}if(f)b=f;else a:{for(f=Q.parent;f;){var a=f;if(a.retrieve){b=a.retrieve(b);break a}f=
f.parent}f=b.\u0275prov.token;a=gT9[f];a!==void 0?b=a:(a=b.\u0275prov.providedIn,b.\u0275prov.factory?(b=b.\u0275prov.factory(),f&&a==="root"&&(gT9[f]=b)):b=Jl9)}return b}};
Ak(Q);return Q};
hbY=function(){var A=_.O49(1),Q=_.sO(A,t7J);_.V7J(Q)&&(A=_.sO(A,Rby),_.V7J(A)||A.getOptionalAppContext())};
WkF=function(A){if(typeof document!=="undefined"&&document&&document.getElementById&&(A=document.getElementById(A))){var Q=A.tagName.toUpperCase();if(Q=="SCRIPT"||Q=="LINK")return A}return null};
ETY=function(A,Q){if((A=A===void 0?"":A)&&Q)throw Error("sb");var b="";var f=_.by._F_jsUrl;(A=Q||WkF(A))&&(b=A.src?A.src:A.getAttribute("href"));if(f&&b){if(f!=b)throw Error("tb`"+f+"`"+b);b=f}else b=f||b;if(!vTe(b))throw Error("ub");return b};
wE6=function(){if(!xge){xge=!0;try{var A=ETY(_.by._F_jsUrl?"":"base-js")}catch(f){return}var Q=clY(zbW(A)),b=Object.keys(Q);b.length!==0&&NeC(function(f){for(var a=_.F(b),T=a.next();!T.done;T=a.next()){T=T.value;for(var G=_.F(Object.keys(Q[T])),p=G.next();!p.done;p=G.next())f.addExtraEdge(T,p.value)}})}};
Z4y=function(){var A=Object.assign({},uH6);Object.getOwnPropertyNames(uH6).forEach(function(Q){Qd[Q]!==void 0&&(A[Q]=Qd[Q])});
return A};
yl4=function(A,Q){if(Qd.enablePerformanceTiming){var b,f;(f=(b=performance).mark)==null||f.call(b,A+"Start__"+Q)}};
YSX=function(A,Q){if(Qd.enablePerformanceTiming){var b,f;(f=(b=performance).measure)==null||f.call(b,A+"__"+Q,A+"Start__"+Q)}};
Dg9=function(A,Q,b){var f;return A&&Q?A+"__"+Q:(f=A!=null?A:Q)!=null?f:b};
NOC=function(A,Q){var b=Object.create($g9);b.debugName=Q;!$$||Ak(b);Q=_.Nu(b);try{A(b)}finally{_.Nu(Q)}return function(){return void IgU(b)}};
mgi=function(A){return b4(A)&&sxW in A};
AqU=function(A,Q){return Object.is(A,Q)};
a7=function(A){var Q=fz;fz=A;return Q};
buY=function(A){if(TI)throw Error("Z");if(fz!==null){var Q=fz.producersTail;if(Q===void 0||Q.producer!==A){var b=void 0,f=fz.recomputing;if(f&&(b=Q!==void 0?Q.nextProducer:fz.producers,b!==void 0&&b.producer===A)){fz.producersTail=b;b.lastReadVersion=A.version;return}var a=A.consumersTail,T;if(!(T=a===void 0||a.consumer!==fz)){if(f){a:{T=fz;f=T.producersTail;if(f!==void 0){T=T.producers;do{if(T===a){f=!0;break a}if(T===f)break;T=T.nextProducer}while(T!==void 0)}f=!1}f=!f}T=f}T&&(f=dY(fz),b={producer:A,
consumer:fz,nextProducer:b,prevConsumer:a,lastReadVersion:A.version,nextConsumer:void 0},fz.producersTail=b,Q!==void 0?Q.nextProducer=b:fz.producers=b,f&&Q4W(A,b))}}};
To4=function(A){if(!dY(A)||A.dirty)if(A.dirty||A.lastCleanEpoch!==flY)(A.producerMustRecompute(A)||aly(A))&&A.producerRecomputeValue(A),A.dirty=!1,A.lastCleanEpoch=flY};
d3Y=function(A){if(A.consumers!==void 0){var Q=TI;TI=!0;try{for(var b=A.consumers;b!==void 0;b=b.nextConsumer){var f=b.consumer;f.dirty||(A=void 0,f.dirty=!0,d3Y(f),(A=f.consumerMarkedDirty)==null||A.call(f,f))}}finally{TI=Q}}};
FSC=function(){var A;return((A=fz)==null?void 0:A.consumerAllowSignalWrites)!==!1};
GDX=function(A){A&&(A.producersTail=void 0,A.recomputing=!0);return a7(A)};
pvf=function(A,Q){a7(Q);if(A){A.recomputing=!1;Q=A.producersTail;var b=Q!==void 0?Q.nextProducer:A.producers;if(b!==void 0){if(dY(A)){do b=BoF(b);while(b!==void 0)}Q!==void 0?Q.nextProducer=void 0:A.producers=void 0}}};
aly=function(A){for(A=A.producers;A!==void 0;A=A.nextProducer){var Q=A.producer,b=A.lastReadVersion;if(b!==Q.version)return!0;To4(Q);if(b!==Q.version)return!0}return!1};
Q4W=function(A,Q){var b=A.consumersTail,f=dY(A);b!==void 0?(Q.nextConsumer=b.nextConsumer,b.nextConsumer=Q):(Q.nextConsumer=void 0,A.consumers=Q);Q.prevConsumer=b;A.consumersTail=Q;if(!f)for(A=A.producers;A!==void 0;A=A.nextProducer)Q4W(A.producer,A)};
BoF=function(A){var Q=A.producer,b=A.nextProducer,f=A.nextConsumer,a=A.prevConsumer;A.nextConsumer=void 0;A.prevConsumer=void 0;f!==void 0?f.prevConsumer=a:Q.consumersTail=a;if(a!==void 0)a.nextConsumer=f;else if(Q.consumers=f,!dY(Q))for(A=Q.producers;A!==void 0;)A=BoF(A);return b};
dY=function(A){return A.consumerIsAlwaysLive||A.consumers!==void 0};
Xv6=function(A){var Q=Object.create(Pv6);Q.computation=A;A=function(){To4(Q);buY(Q);if(Q.value===F_)throw Q.error;return Q.value};
A[GI]=Q;return A};
Mni=function(A,Q){var b=Object.create(St6);b.value=A;Q!==void 0&&(b.equal=Q);A=function(){buY(b);return b.value};
A[GI]=b;return[A,function(f){return U3F(b,f)},
function(f){FSC()||LSU(b);U3F(b,f(b.value))}]};
U3F=function(A,Q){FSC()||LSU(A);if(!A.equal(A.value,Q)){A.value=Q;A.version++;flY++;d3Y(A);var b;(b=llW)==null||b(A)}};
B_=function(A){var Q=a7(null);try{return A()}finally{a7(Q)}};
_.pz=function(A,Q,b){b=b===void 0?"":b;A=Mni(A,Q==null?void 0:Q.equals);var f=A[0],a=f[GI];a.debugName=Dg9(Q==null?void 0:Q.debugName,b,"[signal]");if(!Qd.enablePerformanceTiming)return A;var T=A[1],G=A[2];return[f,function(p){KSU(function(){return void T(p)},a)},
function(p){KSU(function(){return void G(p)},a)}]};
KSU=function(A,Q){yl4("signalSet",Q.debugName);try{A()}finally{YSX("signalSet",Q.debugName)}};
Jqe=function(A,Q){var b=_.F(_.pz(A,void 0,"cPpJzc"));A=b.next().value;b=b.next().value;A[iuX]=b;A[P_]=Q;return A};
Vnf=function(A){return!!A&&typeof A==="object"&&Object.getPrototypeOf(A)===Object.prototype};
OuW=function(A){return typeof A==="function"&&iuX in A&&typeof A[iuX]==="function"};
nkW=function(A,Q){Object.defineProperty(A,P_,{get:function(){return Q}})};
SB=function(A,Q){if(X_(A)){var b=A.map(function(T){return SB(T,Q)});
nkW(b,Q);return b}if(Vnf(A)){b={};A=_.F(Object.entries(A));for(var f=A.next();!f.done;f=A.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;b[f]=SB(a,Q)}nkW(b,Q);return b}return Jqe(A,Q)};
kDf=function(A){if(X_(A))return A.map(function(a){return kDf(a)});
if(Vnf(A)){var Q={};A=_.F(Object.entries(A));for(var b=A.next();!b.done;b=A.next()){var f=_.F(b.value);b=f.next().value;f=f.next().value;Q[b]=kDf(f)}return Q}return OuW(A)?A():A};
HuX=function(){var A={height:0,width:0};if(!Vnf(A))throw Error("Gb");var Q=Symbol("Hb");return[SB(A,Q),function(b,f){if(b[P_]===Q)if(typeof f==="function"){var a=[].concat(_.ri(kDf(b)));f=f(a)||a;IlY(b,[].concat(_.ri(f)))}else IlY(b,f);else throw Error("Ib");}]};
IlY=function(A,Q){if(OuW(A))A[iuX](Q);else if(X_(A)&&X_(Q))Q=SB(Q,A[P_]),A.length=0,A.push.apply(A,_.ri(Q));else if((Vnf(A)||X_(A))&&(X_(Q)||typeof Q==="object"&&Q!==null)){Q=_.F(Object.entries(Q));for(var b=Q.next();!b.done;b=Q.next()){var f=_.F(b.value);b=f.next().value;f=f.next().value;var a=A,T=a[b];Object.hasOwn(A,b)?IlY(T,f):a[b]=SB(f,A[P_])}}else throw Error("Jb");};
Cvy=function(A){return Object.create(Object.assign({},U7,A))};
okC=function(){var A;return(A=qtX)!=null?A:qtX=Cvy({consumerAllowSignalWrites:!0})};
_.Lz=function(A,Q,b){b=b===void 0?"":b;A=Xv6(A);var f=A[GI];f.debugName=Dg9(Q==null?void 0:Q.debugName,b,"[computed]");(Q==null?void 0:Q.equals)!=null&&(f.equal=Q.equals);return A};
Mz=function(A){var Q=a7(tnW);try{A()}finally{a7(Q)}};
hJF=function(A){if(!A.isDisposed)switch(A.effectType){case l4:rqe.schedule(A);break;case j4e:RJ9.schedule(A);break;case gk6:eJi.schedule(A);break;default:_.x1(A.effectType)}};
vkb=function(A){WS9.push(A);return function(){var Q=WS9.indexOf(A);Q!==-1&&WS9.splice(Q,1)}};
x3X=function(){if(Kz>0)Qd.flushRenderEffectsDuringRender&&rqe.flush();else for(var A=_.F(EkF),Q=A.next();!Q.done;Q=A.next())Q.value.flush()};
zJX=function(A){i4=!0;try{for(var Q=_.F(A),b=Q.next();!b.done;b=Q.next()){for(var f=b.value,a=[f],T=f;T.parent!==void 0;)T=T.parent,cqy(T)&&A.has(T)&&a.push(T);for(;a.length>0;){var G=a.pop();A.delete(G);G.run()}}}finally{i4=!1}};
Jk=function(A){Kz--;if(A){A=_.F(EkF);for(var Q=A.next();!Q.done;Q=A.next())Q.value.clear()}else Kz>0||i4&&!Qd.flushRenderEffectsDuringRender||x3X()};
ude=function(A,Q,b){var f=wvi(A);Vd={name:b?f+" ("+b+")":f,isReactive:A.componentType!==O7,parent:Vd};A=Q();Vd=Vd.parent;return A};
nz=function(){var A=Vd;return A?A.isReactive:!1};
I7=function(A,Q,b){var f=Vd;Q&&(Vd=Q);try{return b==null?A():A.call(b)}catch(T){A=T;kA(A,Vd);if(A!==ZuF){yqU=Vd;Q=[];for(b=$$;b;){var a=void 0;Q.push((a=b.debugName)!=null?a:"[context]");a=void 0;b=(a=b.parent)!=null?a:null}YtW=Q.reverse()}ZuF=A;throw A;}finally{Vd=f}};
kA=function(A,Q){try{var b=D3U(Q);if(b&&!A.componentStack&&(A.componentStack=b,Qd.enableComponentStacksInErrorMessages)){var f=A.message+"\n\nComponent stack: "+b;A.stack&&(A.stack=A.stack.replace(A.message,f));A.message=f}}catch(a){}};
D3U=function(A){if(b4(A)&&A.name!==void 0&&A.isReactive!==void 0&&A.parent!==void 0||A===null){for(var Q=0,b="";Q<20&&A;)b+=A.name+" > ",A=A.parent,Q++;A=b.slice(0,-3)}else if(Qd.enableContextBasedComponentStacks){a:{for(A=A===void 0?$$:A;A;){if(mgi(A))break a;Q=void 0;A=(Q=A.parent)!=null?Q:null}A=null}A=A.getComponentStack().slice(0,20).join(" > ")}else A="";return A};
wvi=function(A){return A.debugName||A.name||"[component]"};
$3y=function(A,Q,b){Q=Object.create(Q);A&&(Q.effectFn=A);b&&(Q.debugName=b);Ak(Q);Q.componentStack=Vd;return Q};
_.H_=function(A,Q){A=$3y(A,No9,Q);hJF(A)};
_.Cz=function(A){var Q=$$;if(Q){var b=Vd;kpf(Q,function(){var f=a7(okC());try{I7(function(){return void A()},b)}catch(a){throw Qd.enableContextBasedComponentStacks&&kA(a),a;
}finally{a7(f)}})}};
qz=function(A,Q){var b={};(Q===void 0||Q)&&Ak(b);Q=_.Nu(b);try{A(b)}finally{_.Nu(Q)}return function(){return void IgU(b)}};
_.o7=function(A){return typeof A==="function"?A():(A==null?0:A[s4F])?A.get():A};
_.tk=function(A,Q){A=$3y(A,m3b,Q);hJF(A)};
Aj6=function(A){if($$)throw Error("nb");qz(A,!1)};
rY=function(A,Q){A=_.Nu(A);try{return B_(Q)}finally{_.Nu(A)}};
jB=function(A,Q){var b=D3U(yqU),f,a;var T=(a=(f=YtW)==null?void 0:f.slice())!=null?a:[];Q={componentStack:b,contextTrace:T,errorSeverity:3,featureFlags:Z4y(),tagName:Q};return[A,Q]};
ffA=function(A,Q,b){if(Object.hasOwnProperty.call(QN9,A)&&(A=QN9[A],Object.hasOwnProperty.call(A,Q)&&(A=A[Q],A instanceof Array))){for(var f=null,a=!1,T=0,G=A.length;T<G;++T){var p=A[T],P=p.contingentAttribute;if(!P)return p.contract;f===null&&(f={});P=Object.hasOwnProperty.call(f,P)?f[P]:f[P]=b(P);if(P===p.requiredValue)return p.contract;P==null&&(a=!0)}if(a)return null}Q=bk4[Q];return typeof Q==="number"?Q:null};
dHY=function(A,Q,b){var f=null;(A=afF[A])&&(f=A[Q]);return typeof f!=="number"&&((A=afF["*"])&&(f=A[Q]),typeof f!=="number")?!1:!0===TKb[f][String(b).toLowerCase()]};
G9b=function(A,Q){Q=ffA(A.toLowerCase(),Q,function(){var f;(f=Qd.handleError)==null||f.call.apply(f,[Qd].concat(_.ri(jB(Error("Ob"),A.toLowerCase()))))});
if(Q===null)return null;var b;return(b=FLA[Q])!=null?b:null};
BK9=function(A,Q,b){if(b===null||b===void 0)return b;Q=Q.toLowerCase();A=G9b(A,Q);return A===null?b:A(Q,b)};
ptC=function(){};
R7=function(A,Q){for(;A.length>Q;)A.pop()};
P0F=function(A){A=Array(A);R7(A,0);return A};
gY=function(A,Q,b){if(b==null)A.removeAttribute(Q);else{var f;(f=Q.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":Q.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?A.setAttributeNS(f,Q,b):A.setAttribute(Q,b)}};
XtA=function(A,Q,b){A[Q]=b};
UH6=function(A,Q,b){A=A.style;if(typeof b==="string")A.cssText=b;else{A.cssText="";for(var f in b)if(S8f.call(b,f)){Q=A;var a=f,T=b[f];a.indexOf("-")>=0?Q.setProperty(a,T):Q[a]=T}}};
LLC=function(A,Q,b){var f=typeof b;f==="object"||f==="function"?A[Q]=b:gY(A,Q,b)};
Mc9=function(){var A=new ptC;A[eB.default]=LLC;A.style=UH6;return A};
lfC=function(A,Q,b,f){(f[Q]||f[eB.default])(A,Q,b)};
ike=function(A,Q,b){Q=new KLe(Q,b);return A.__incrementalDOMData=Q};
v_=function(A,Q){if(A.__incrementalDOMData)return A.__incrementalDOMData;var b=A.nodeType===1?A.localName:A.nodeName,f=A.nodeType===1?A.getAttribute("key"):null;Q=ike(A,b,A.nodeType===1?f||Q:null);if(A.nodeType===1&&(A=A.attributes,b=A.length)){f=Q._attrsArr||(Q._attrsArr=P0F(b*2));for(var a=0,T=0;a<b;a+=1,T+=2){var G=A[a],p=G.value;f[T]=G.name;f[T+1]=p}}return Q};
JjC=function(A,Q,b,f,a){return Q==b&&f==a};
VcU=function(A){for(var Q=E7,b=xA();b!==A;){var f=b.nextSibling;Q.removeChild(b);c_.deleted.push(b);b=f}};
xA=function(){return zI?zI.nextSibling:E7.firstChild};
wY=function(){zI=xA()};
k94=function(A,Q,b){wY();var f;a:{if(f=zI){do{var a=f,T=A,G=Q,p=v_(a,G);if(OkA(a,T,p.nameOrCtor,G,p.key))break a}while(Q&&(f=f.nextSibling))}f=null}f||(A==="#text"?(b=u4.createTextNode(""),ike(b,"#text",null),A=b):(f=u4,a=E7,typeof A==="function"?f=new A:f=(a=A==="svg"?"http://www.w3.org/2000/svg":A==="math"?"http://www.w3.org/1998/Math/MathML":a==null||v_(a).nameOrCtor==="foreignObject"?null:a.namespaceURI)?f.createElementNS(a,A):f.createElement(A),ike(f,A,Q),A=f,b&&A.setAttribute("nonce",b)),c_.created.push(A),
f=A);b=f;if(b!==zI){if(nwW.indexOf(b)>=0)for(A=E7,Q=b.nextSibling,f=zI;f!==null&&f!==b;)a=f.nextSibling,A.insertBefore(f,Q),f=a;else E7.insertBefore(b,zI);zI=b}};
IfA=function(A,Q,b){k94(A,Q,b);E7=zI;zI=null;return E7};
Hk9=function(){VcU(null);zI=E7;E7=E7.parentNode};
ZD=function(){zI=E7.lastChild};
owY=function(A,Q){Q=Q===void 0?{}:Q;var b=Q.matches===void 0?JjC:Q.matches;return function(f,a,T){var G=c_,p=u4,P=nwW,U=yd,L=YA,M=zI,l=E7,J=OkA;u4=f.ownerDocument;c_=new C0y(f);OkA=b;yd=[];YA=[];zI=null;var n=E7=f.parentNode,t,g=q89.call(f);if((t=g.nodeType===11||g.nodeType===9?g.activeElement:null)&&f.contains(t)){for(g=[];t!==n;)g.push(t),t=t.parentNode||(n?t.host:null);n=g}else n=[];nwW=n;try{return A(f,a,T)}finally{f=c_,DD&&f.deleted.length>0&&DD(f.deleted),u4=p,c_=G,OkA=J,yd=U,YA=L,zI=M,E7=l,
nwW=P}}};
tc4=function(A,Q,b,f){$A.push(lfC);$A.push(A);$A.push(Q);$A.push(b);$A.push(f)};
jNY=function(A,Q,b){var f=YA;Q=Q._attrsArr||(Q._attrsArr=P0F(f.length));for(var a=!Q.length||!1,T=0;T<f.length;T+=2){var G=f[T];if(a)Q[T]=G;else if(Q[T]!==G)break;var p=f[T+1];if(a||Q[T+1]!==p)Q[T+1]=p,tc4(A,G,p,b)}if(T<f.length||T<Q.length){for(T=a=T;T<Q.length;T+=2)Nz[Q[T]]=Q[T+1];for(T=a;T<f.length;T+=2)a=f[T],G=f[T+1],Nz[a]!==G&&tc4(A,a,G,b),Q[T]=a,Q[T+1]=G,delete Nz[a];R7(Q,f.length);for(var P in Nz)tc4(A,P,void 0,b),delete Nz[P]}A=rjY;rjY=b=$A.length;for(P=A;P<b;P+=5)(0,$A[P])($A[P+1],$A[P+
2],$A[P+3],$A[P+4]);rjY=A;R7($A,A);R7(f,0)};
s7=function(A){k94("#text",null);var Q=zI;var b=v_(Q);if(b.text!==A){b=b.text=A;for(var f=1;f<arguments.length;f+=1)b=(0,arguments[f])(b);Q.data!==b&&(Q.data=b)}};
EwX=function(A,Q,b){if(b===!1&&R2b.has(Q))gY(A,Q,null);else if(Q!=="idomKey"&&Q!=="skip"&&Q!=="skipchildren"&&Q!=="children"&&Q!=="el")if(Q.startsWith("on")){if(Q[2]!==":")throw Error("Nb`"+Q);if(b===void 0||b===null){var f;(f=Qd.handleError)==null||f.call.apply(f,[Qd].concat(_.ri(jB(Error("Sb`"+Q),A.tagName))));A[Q]=void 0}else{var a=Q.slice(3);f=nz();if(a==="jsaction"){b=Array.isArray(b)?b:[b];b=_.F(b);for(var T=b.next();!T.done;T=b.next()){T=T.value;if(typeof T!=="object"||T===null||typeof T.selfReg!==
"function")throw Error("Vb`"+Q);T.selfReg(0,A,f?_.Cz:function(){})}}else{if(typeof b!=="object"||b===null)throw Error("Tb`"+Q+"`"+typeof b);
if(typeof b.getFn!=="function")throw Error("Ub`"+Q+"`"+Object.keys(b));if(b.selfReg)b.selfReg(0,A,a,f?_.Cz:function(){});
else if(f&&A["on"+a]===void 0){var G=b.getFn(0);A.addEventListener(a,G);_.Cz(function(){return void A.removeEventListener(a,G)})}else if(f||!gwA.includes(a))A["on"+a]=b.getFn(0)}}}else{if(Q.startsWith("data-")&&typeof b==="string")try{b=e2y(b)}catch(p){b="zSoyz"}typeof b!=="function"||A._disposeEffects!=null?((f=Q.startsWith("prop:"))&&(Q=Q.slice(5)),Qd.enableAttributeSanitization&&(f&&h2J(A.tagName)||(b=BK9(A.tagName,Q,b))),Q==="style"?("function"==typeof _.mM&&b instanceof _.mM&&(b=b.toString()),
WLW(A,Q,b)):f?A[Q]=b:vw6(A,Q,b)):(A._signalProps||(A._signalProps=[]),A._signalValues||(A._signalValues=[]),A._signalProps.push(Q))}};
xH6=function(A,Q,b){b=(b===void 0?{}:b).isReactive;if(Q==null?0:Q.el){var f=Q.el;if(typeof f==="function")f(A);else{var a;(a=f.onRender)==null||a.call(f,A);A._disposeRef||(A._disposeRef=function(){var T;(T=f.onUnmount)==null||T.call(f);delete A._disposeRef},b&&_.Cz(function(){var T;
(T=A._disposeRef)==null||T.call(A)}))}}};
h2J=function(A){return A.length>0&&A.includes("-")&&!cjy.includes(A.toLowerCase())};
z26=function(A){return b4(A)&&Az in A};
wtX=function(A){return z26(A)?A[Az].flattened:A};
uv6=function(A,Q){var b=_.E$.apply(2,arguments),f;Q=(f=Q)!=null?f:{};f={};return f.type=A,f.props=Q,f.children=b,f[Q6]=!0,f};
_.bd=function(A){return A.children};
a8=function(A){var Q=ZkX!==uv6;ZkX=A?yjY:uv6;return Q};
_.TV=function(A){return _.ZU(A)?"nodeType"in A:!1};
dN=function(){return document.createTextNode("")};
FF=function(A){A=document.createTextNode(String(A));A._isSignalTextNode=!0;return A};
DHF=function(A){return A!=null&&A.contentKind===BG||A instanceof zY||Y8C(A)};
$HF=function(A){var Q=document.createElement("div");if(Y8C(A)&&Pu9(A))_.Ao(Q,Pu9(A));else if(A instanceof zY)_.Ao(Q,A);else if(A!=null&&A.contentKind===BG){if(A.contentKind!==BG)throw Error("Rb");A=w$(A.toString());_.Ao(Q,A)}A=_.F(Q.childNodes);for(var b=A.next();!b.done;b=A.next())b.value._isSafeOrSanitizedHtmlNode=!0;return Q};
pH=function(A){A=typeof A;return A==="string"||A==="number"||A==="boolean"};
NKy=function(A){return A instanceof np||ts(A)||A instanceof aD||"function"==typeof _.mM&&A instanceof _.mM};
sNe=function(A,Q){var b=A.parentElement;if(!b)return Q;b.replaceChild(Q,A);return Q};
mHU=function(A,Q){var b=A[0].parentElement;if(b)if(A[0].previousSibling||A[A.length-1].nextSibling){b.insertBefore(Q,A[0]);for(var f=A.length-1;f>=0;f--)b.removeChild(A[f])}else b.textContent="",b.appendChild(Q);return Q};
AxA=function(A,Q){if(A[0].parentElement)for(var b=A[0].parentElement,f=Q.length,a=A.length,T=f,G=0,p=0,P=A[a-1].nextSibling,U=null;G<a||p<T;)if(A[G]===Q[p])G++,p++;else{for(;A[a-1]===Q[T-1];)a--,T--;if(a===G)for(var L=T<f?p?Q[p-1].nextSibling:Q[T-p]:P;p<T;){var M=Q[p++];b.insertBefore(M,L)}else if(T===p)for(;G<a;)L=A[G],U&&U.has(L)||b.removeChild(L),G++;else if(A[G]===Q[T-1]&&Q[p]===A[a-1])L=A[--a].nextSibling,b.insertBefore(Q[p++],A[G++].nextSibling),b.insertBefore(Q[--T],L),A[a]=Q[T];else{if(!U)for(U=
new Map,L=p;L<T;)U.set(Q[L],L++);L=U.get(A[G]);if(L==null)b.removeChild(A[G]),G++;else if(p<L&&L<T){M=G;for(var l=1,J=void 0;++M<a&&M<T&&(J=U.get(A[M]))!=null&&J===L+l;)l++;if(l>L-p)for(M=A[G];p<L;)b.insertBefore(Q[p++],M);else b.replaceChild(Q[p++],A[G++])}else G++}}return Q};
b1X=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("dc`"+A.length+"`"+A.map(QiC).join(", "));A=A[0]}if(A==null)return null;if(!(A instanceof _.$8)){var Q,b;if((Q=window)==null?0:(b=Q.trustedTypes)==null?0:b.isScript(A))throw Error("cc");if(String(A).trim().length===0)return null;throw Error("ec`"+QiC(A));}return A};
fyA=function(A,Q){Q=b1X(Q);Q!==null&&_.s$(A,Q)};
aye=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("fc`"+A.length+"`"+A.map(QiC).join(", "));A=A[0]}if(A==null)return null;if(!(A instanceof aD)){if(String(A).trim().length===0)return null;throw Error("gc`"+QiC(A));}return A};
TGi=function(A,Q){Q=aye(Q);Q!==null&&(A.textContent=pa6(Q))};
QiC=function(A){return"("+typeof A+") "+(A!=null&&typeof A==="object"?A.constructor.name:typeof A)+" "+A};
dW6=function(){};
S6=function(A,Q){Q=Q===void 0?{}:Q;var b=F7f();Qd.legacyTriggerSoyRendererEvents&&hbY();_.tk(function(){PG.setUp();Q.isControlFlowComponent&&Kz++;var f=b[0],a=b[Az].flattened,T=a8(!0);try{var G=A(),p=GLF(f,G,b);Array.isArray(p)||(b[Az].flattened=[p]);var P=b[Az].flattened;if(a&&(!Array.isArray(a)||a.length!==0)){var U=Array.isArray(a)?a[0]:a,L=U[XF],M=U._disposeEffects;U._disposeEffects=void 0;U=Array.isArray(P)?P[0]:P;U[XF]=L;U[XF]&&(U[XF].numNodes=U===P?1:P.length);U._disposeEffects=M}b[0]=p;Q.isControlFlowComponent&&
Jk(!1)}catch(l){throw Q.isControlFlowComponent&&Jk(!0),l;}finally{a8(T),PG.tearDown()}},Q.debugName);
return b};
GLF=function(A,Q,b){for(;typeof Q==="function";)Q=Q();if(Q!=null&&Q[Q6]){var f,a,T;(T=Qd.handleError)==null||T.call.apply(T,[Qd].concat(_.ri(jB(Error("hc`"+((f=Q.type)==null?void 0:f.TAG_NAME)),(a=Q.type)==null?void 0:a.TAG_NAME))))}if(A==null)return Q==null?dN():pH(Q)?FF(Q):NKy(Q)?FF(Q.toString()):_.TV(Q)?Q:Q.length===0?dN():BG6(Q,b);if(_.TV(A)){if(Q==null)return sNe(A,dN());if(pH(Q))return pRF(A,Q);if(NKy(Q))return pRF(A,Q.toString());if(_.TV(Q))return sNe(A,Q);if(Q.length===0)return sNe(A,dN());
Q=BG6(Q,b);AxA([A],b[Az].flattened);return Q}A=Up(A);if(Q==null)return mHU(A,dN());if(pH(Q))return mHU(A,FF(Q));if(NKy(Q))return mHU(A,FF(Q.toString()));if(_.TV(Q))return AxA(A,[Q])[0];if(Q.length===0)return mHU(A,dN());Q=BG6(Q,b);AxA(A,b[Az].flattened);return Q};
pRF=function(A,Q){A.nodeType===Node.TEXT_NODE?A.textContent!==String(Q)&&(A.textContent=String(Q)):A=sNe(A,FF(Q));return A};
Up=function(A,Q,b){return PhY(A,Q!=null?Q:[],b===void 0?!1:b)};
BG6=function(A,Q){var b=Up(A,void 0,!0);if(b.length===0)return dN();Q[Az].flattened=b;return A};
PhY=function(A,Q,b,f,a){Q=Q===void 0?[]:Q;b=b===void 0?!1:b;a=a===void 0?-1:a;if(A==null)return Q;if(A instanceof LH){var T=A.render();return PhY(T,Q,b,f,a)}if(_.TV(Q)&&Q.nodeType===Node.ELEMENT_NODE)switch(Q.tagName){case "SCRIPT":fyA(Q,A);return;case "STYLE":TGi(Q,A);return}pH(A)&&(A=FF(A),f&&b&&(f[a]=A));if(DHF(A)){b=$HF(A);b=Array.from(b.childNodes);b=_.F(b);for(T=b.next();!T.done;T=b.next())XRJ(Q,T.value);return Q}NKy(A)&&(A=FF(A.toString()),f&&b&&(f[a]=A));if(_.TV(A))return XRJ(Q,A);if(Array.isArray(A)){for(T=
0;T<A.length;T++)PhY(A[T],Q,b,A,T);return Q}if(typeof A==="function"){T=S6(function(){var p=A();return p!=null&&!pH(p)&&DHF(p)?(p=$HF(p),Array.from(p.childNodes)):p},{debugName:"qmF2ne",
debugFn:A})[0];if(Array.isArray(T)){b=_.F(T);for(T=b.next();!T.done;T=b.next())XRJ(Q,T.value);return Q}f&&b&&(f[a]=T);return XRJ(Q,T)}if(A!=null&&A[Q6]){f=A;a=a8(!0);var G=ZkX;try{T=G.apply(null,[f.type,f.props].concat(_.ri(f.children)))}finally{a8(a)}return PhY(T,Q,b)}(G=Qd.handleError)==null||G.call.apply(G,[Qd].concat(_.ri(jB(Error("ic")))));return Q};
F7f=function(A){var Q={};Q=Object.assign([],(Q[Az]={flattened:[]},Q));if(!A)return Q;Q[0]=BG6(A,Q);return Q};
XRJ=function(A,Q){Array.isArray(A)?A.push(Q):A.appendChild(Q);return A};
Mq=function(A){if(!Qd.enableLazyTsx)return A;if(Array.isArray(A)){for(var Q=0;Q<A.length;Q++)A[Q]=Mq(A[Q]);return A}return A instanceof LH?(A=A.render(),Mq(A)):A};
UWi=function(A,Q){var b,f,a=wvi(A),T=function(J){f=J;J=a8(!0);var n=a7(ld);yl4("render",a);try{b=Mq(A(Q))}finally{YSX("render",a),a7(n),a8(J)}};
T=Qd.enableContextPerComponent?NOC(T,a):qz(T,Qd.alwaysTrackContexts||!!$$);mgi(f);if(!Q.renderedFromIdom){var G=_.Nu(f);try{return Sve(A,Q,b),b}finally{_.Nu(G)}}!z26(b)&&Array.isArray(b)&&(b=F7f(b));var p=wtX(b);G=Array.isArray(p)?p[0]:p;var P=!1;if(G){var U,L=(U=Q==null?void 0:Q.idomKey)!=null?U:A;U=p!==G;G._disposeEffects=T;var M=G[XF]||{},l=z26(b)?b:M.sourceDynamicRange;Object.assign(M,{key:L,numNodes:U?p.length:1,context:f,higherOrder:!!G[XF],sourceDynamicRange:l});G[XF]=M}else P=!0;(function(){var J=
_.Nu(f);try{Sve(A,Q,p)}finally{_.Nu(J)}})();
P&&T();return b};
L74=function(A){var Q={},b;for(b in A)Q={prev$jscomp$23:void 0,next$jscomp$33:void 0},Q.prev$jscomp$23=KH[b],Q.next$jscomp$33=A[b],KH[b]=function(f){return function(){var a=_.E$.apply(0,arguments);f.prev$jscomp$23.apply(null,_.ri(a));f.next$jscomp$33.apply(null,_.ri(a))}}(Q)};
MUf=function(){if(nz())throw Error("jc");return id};
lyC=function(A,Q){if(!A.__unmounted&&Q){A.__unmounted=!0;try{A.didUnmount()}catch(a){var b,f;(f=Qd.handleError)==null||f.call.apply(f,[Qd].concat(_.ri(jB(a,(b=A.JSC$10158___type)==null?void 0:b.TAG_NAME))))}KH.didUnmount(A);A.el=null;Q.__instance&&delete Q.__instance}};
i14=function(A,Q,b){A._signalProps!=null&&A._disposeEffects==null&&((b===void 0?0:b)?A._disposeEffects=qz(function(){return void K7f(A,Q)},Qd.alwaysTrackContexts||!!$$):K7f(A,Q))};
K7f=function(A,Q){_.tk(function(){for(var b=A._signalProps,f=A._signalValues,a=0;a<b.length;a++){var T=b[a],G=Q[T]();f[a]!==G&&(f[a]=G,EwX(A,T,G))}},"e3YVbb")};
JxX=function(A,Q,b){var f,a=[];A._disposeEffects=qz(function(){_.tk(function(){var T=b();if(T===null||T===void 0)T="";if(pH(T)||T===null)f!=null||(f=document.createTextNode("")),f.parentNode!==A&&(f._isSignalTextNode=!0,A.insertBefore(f,Q)),f.textContent=String(T);else if(DHF(T)){for(var G=a.length>0?a[a.length-1].nextSibling:Q,p=_.F(a),P=p.next();!P.done;P=p.next())A.removeChild(P.value);T=$HF(T);a=Array.from(T.childNodes);T=_.F(a);for(p=T.next();!p.done;p=T.next())A.insertBefore(p.value,G)}else throw P=
(p=(G=Vd)==null?void 0:G.name)!=null?p:"unknown",Error("Zb`"+P+"`"+typeof T);},"VvDgC")},Qd.alwaysTrackContexts||!!$$)};
nfy=function(A,Q){var b=_.E$.apply(2,arguments);Q!=null||(Q={});return!Qd.enableLazyTsx||Vd!=null&&!nz()?VUJ(A,Q,b):new O14(A,Q,b)};
VUJ=function(A,Q,b){if(A===_.bd)return b;if(typeof A==="function")return Vd&&!nz()&&(Q.renderedFromIdom=!0),ude(A,function(){var T=kL9(A,Q,b);if(T)return T;b.length>0&&(Q.children=b.length===1?b[0]:b);if(A.componentType===O7){var G;NOC(function(){var p=Q;if(A.componentType!==O7)G=!1;else{p||(p={});var P=new Jz(p,A),U=a7(ld);try{var L=P.render(p)}finally{a7(U)}L instanceof HTMLElement?(L.__instance=P,P.el=L,P.JSC$10158___type=A,A.TAG_NAME=L.tagName.toLowerCase(),KH.didPatch(P),G=L):G=L}},A.name);
if(G)return G}return UWi(A,Q)},Q.debugInstance);
var f=Iyb(A,Q),a;for(a in Q)EwX(f,a,Q[a]);i14(f,Q);Up(b,f);xH6(f,Q,{isReactive:!0});H19(f,Q);return f};
Iyb=function(A,Q){A=(ChU.has(A.toLowerCase())?0:qv9.has(A.startsWith("svg:")?A.replace("svg:",""):A))?document.createElementNS("http://www.w3.org/2000/svg",A.startsWith("svg:")?A.replace("svg:",""):A):ofJ(A,Q)||document.createElement(A);A[tUi]=!0;return A};
rxC=function(A){if(A){var Q;(Q=A._disposeRef)==null||Q.call(A);var b;(b=A._disposeEffects)==null||b.call(A);A.__instance&&A.__instance instanceof V6&&(Q=A.__instance,lyC(Q,A),Q instanceof Jz&&Q.disposeEffects());for(Q=0;Q<A.childNodes.length;Q++)rxC(A.childNodes[Q])}};
Rzb=function(A){jiA.push(A)===1&&requestAnimationFrame(function(){setTimeout(function(){var Q=[].concat(_.ri(jiA));jiA=[];Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;try{for(var f=0;f<b.length;f++)rxC(b[f])}catch(a){f=b=void 0,(f=(b=Qd).handleError)==null||f.call.apply(f,[b].concat(_.ri(jB(a))))}}})})};
_.X=function(A,Q){return ZkX.apply(null,[A,Q].concat(_.ri(_.E$.apply(2,arguments))))};
gfe=function(A,Q){Q=Q===void 0?new Map:Q;A=_.F(A);for(var b=A.next();!b.done;b=A.next())if(b=b.value,!Q.has(b)){for(var f=[],a=b.producers;a!==void 0;a=a.nextProducer)f.push(a.producer);Q.set(b,f);gfe(f,Q)}return Q};
_.S=function(A){var Q=A.cond;if(Q===void 0)return A.else&&A.else();var b=_.Lz(function(){return!!Q()},void 0,"JHVi8"),f=function(){var a=Q();
if(!a){var T;(T=Qd.handleError)==null||T.call.apply(T,[Qd].concat(_.ri(jB(ezb.nonNullableCondIsNull()))))}return a};
return S6(function(){var a=b(),T;qz(function(){var G=a7(ld);try{T=Mq(a?A.then(f):A.else&&A.else())}finally{a7(G)}},!0);
return T},{debugName:A.debugInstance,
debugFn:A.then,isControlFlowComponent:!0})};
hzY=function(A){return _.S(A)};
_.Op=function(A){return A.keyBy==="INDEX"?W7A(A):vfF(A)};
Efb=function(A){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){var b=void 0;(b=Q.value)==null||b()}};
vfF=function(A){var Q=A.keyBy===void 0||A.keyBy==="REFERENCE",b=Q?function(L){return L}:A.keyBy,f=[],a=[],T=[],G=[],p=[],P=[],U=!0;
_.Cz(function(){Efb(G)});
return S6(function(){var L=A.each(),M=L.length;if(M===0){if(f.length===0&&!U)return T;Efb(G);f=L;a=[];for(L=0;L<f.length;L++)a.push(b(f[L]));T=[];G=[];p=[];P=[];A.fallback&&(G[0]=xWf(function(){T[0]=Mq(A.fallback())}));
U=!1;return T}for(var l=new cx6,J=f.length-1;J>=0;J--)l.push(a[J],J);J=Array(M);for(var n=Array(M),t=Array(M),g=Array(M),e=Array(Q?0:M),x={i$jscomp$445:0};x.i$jscomp$445<M;x={i$jscomp$445:x.i$jscomp$445,item$jscomp$104:void 0,key$jscomp$550:void 0},x.i$jscomp$445++){x.item$jscomp$104=L[x.i$jscomp$445];x.key$jscomp$550=b(x.item$jscomp$104);var D=l.pop(x.key$jscomp$550);D!=null?(t[x.i$jscomp$445]=T[D],n[x.i$jscomp$445]=a[D],J[x.i$jscomp$445]=G[D],g[x.i$jscomp$445]=p[D],Q||(e[x.i$jscomp$445]=P[D]),Mz(function(w){return function(){g[w.i$jscomp$445](w.i$jscomp$445);
if(!Q)e[w.i$jscomp$445](w.item$jscomp$104)}}(x)),delete G[D]):J[x.i$jscomp$445]=xWf(function(w){return function(){var u=_.F(_.pz(w.i$jscomp$445,void 0,"Fqk1zd")),y=u.next().value;
u=u.next().value;g[w.i$jscomp$445]=u;n[w.i$jscomp$445]=w.key$jscomp$550;if(Q)t[w.i$jscomp$445]=Mq(A.children(w.item$jscomp$104,y));else{var a9=_.F(_.pz(w.item$jscomp$104,void 0,"GBj5de"));u=a9.next().value;a9=a9.next().value;e[w.i$jscomp$445]=a9;t[w.i$jscomp$445]=Mq(A.children(u,y))}}}(x))}Efb(G);
f=L;a=n;T=t;G=J;p=g;P=e;U=!1;return t},{debugName:A.debugInstance,
debugFn:A.each,isControlFlowComponent:!0})};
W7A=function(A){var Q=[],b=[],f=[],a=[],T=!1;_.Cz(function(){for(var G=_.F(a),p=G.next();!p.done;p=G.next())p=p.value,p()});
return S6(function(){var G=A.each();T&&G.length>0&&(a.pop()(),Q.pop(),T=!1);for(var p=Array(G.length),P={i$jscomp$446:0};P.i$jscomp$446<G.length;P={i$jscomp$446:P.i$jscomp$446},P.i$jscomp$446++)if(P.i$jscomp$446<Q.length)Q[P.i$jscomp$446]!==G[P.i$jscomp$446]&&(Mz(function(L){return function(){return void b[L.i$jscomp$446](G[L.i$jscomp$446])}}(P)),Q[P.i$jscomp$446]=G[P.i$jscomp$446]),p[P.i$jscomp$446]=f[P.i$jscomp$446];
else{var U=xWf(function(L){return function(){Q[L.i$jscomp$446]=G[L.i$jscomp$446];var M=_.F(_.pz(G[L.i$jscomp$446],void 0,"JMMLmd")),l=M.next().value;M=M.next().value;b[L.i$jscomp$446]=M;p[L.i$jscomp$446]=Mq(A.children(l,L.i$jscomp$446))}}(P));
a[P.i$jscomp$446]=U}for(;Q.length>G.length;)Q.pop(),a.pop()(),b.pop();G.length===0&&!T&&A.fallback&&(P=xWf(function(){p[0]=Mq(A.fallback())}),a[0]=P,T=!0);
return f=p},{debugName:A.debugInstance,
isControlFlowComponent:!0})};
xWf=function(A){var Q=$$;return qz(function(b){var f=a7(ld);try{b.parent=Q,A(b)}finally{a7(f)}},!1)};
_.nH=function(A){return A};
_.kQ=function(A){return{isDefault:!0,children:A.children}};
_.I8=function(A){var Q=zz4(A),b=_.Lz(function(){return wR6(Q)},void 0,"F1PF4");
return S6(function(){var f=b(),a;qz(function(){var T=a7(ld);try{a=Mq(f())}finally{a7(T)}});
return a},{debugName:A.debugInstance,
isControlFlowComponent:!0})};
zz4=function(A){A=A.children;return Array.isArray(A)?A:[A]};
uMe=function(A){var Q=A.props;A=A.getChildren()[0];return Q.when?{when:Q.when,children:A}:{isDefault:!0,children:A}};
wR6=function(A){var Q=function(){return null};
A=_.F(A);for(var b=A.next();!b.done;b=A.next())if(b=b.value,b!=null&&b[Q6]&&(b=b.type===_.kQ?{isDefault:!0,children:b.children[0]}:{when:b.props.when,children:b.children[0]}),b instanceof LH&&(b=uMe(b)),b.isDefault)Q=b.children;else if(b.when())return b.children;return Q};
yxi=function(A){var Q=null,b,f={get value(){var T,G;(G=(T=a).validateGetValue)==null||G.call(T);return a.__value},set value(T){var G,p;(p=(G=a).validateSetValue)==null||p.call(G,T);a.__value=T;a.__hasBeenSet=!0}},a=(f.__value=null,f.__hasBeenSet=!1,f.__hasErrored=!1,f.onRender=function(T){if(b&&T!==b){b._disposeRef=void 0;var G;(G=Q)==null||G()}b=T;Q=A(T)||null},f.onUnmount=function(){var T;
(T=Q)==null||T();Q=a.value=null},f[_.Z1Y]=!0,f);
return a};
DWX=function(A){var Q=MUf();if(Q==null)throw _.YvF.PRIMITIVE_INVALID_HOOK_CALL();var b=Q.hookCounter++;Q.hooks||(Q.hooks=[]);var f=Q.hooks;f[b]||(f[b]={key:A,host:Q});if(A!==f[b].key){if(Q.JSC$10158___type){var a;A=(a=Q.JSC$10158___type)==null?void 0:a.name}else A=Q instanceof Jz?wvi(Q.functionComponent):"<"+Q.el.tagName.toLowerCase()+">";throw _.YvF.OUT_OF_ORDER_HOOK_CALL(A);}return f[b]};
$WU=function(A,Q){return!A||A.length!==(Q==null?void 0:Q.length)||A.some(function(b,f){return b!==Q[f]})};
NGb=function(A,Q){var b=DWX("onChange"),f=MUf();$WU(b.deps,Q)&&(b.deps=Q,b.pendingEffect=A,f.__syncEffects||(f.__syncEffects=[]),f.__syncEffects.push(b))};
_.HG=function(A,Q){var b=b===void 0?{}:b;b=b.appContext;var f=!!Qd.legacyTriggerSoyRendererEvents;PG.setUp();try{var a=siW(A,Q,b);f&&(Q=b,Q==null&&(Q=_.i4A(document).getAppContext()),Q.get(mWY).JSC$28832_getEventTarget().dispatchEvent(new AQ4(QFb,A,BG)));PG.log(A);return a}finally{PG.tearDown()}};
siW=function(A,Q,b){var f=I7(function(){var a=a7(ld);try{return qz(function(){var T=_.i4A(_.h3(A)),G;var p=ebW({rootElement:{value:A},appContext:b||(T==null?void 0:(G=T.getOptionalAppContext)==null?void 0:G.call(T)),dispatcher:T});T=_.Nu(p);p=a8(!0);Kz++;try{Up(Q(),A),Jk(!1)}catch(P){throw Jk(!0),P;}finally{a8(p),_.Nu(T)}},!1)}catch(T){throw Qd.enableContextBasedComponentStacks&&kA(T),T;
}finally{a7(a)}});
A[bD9]=!0;return function(){A.textContent="";f();A[bD9]=!1}};
_.CH=function(A){if(cqy(fz)){var Q;(Q=Qd.handleError)==null||Q.call.apply(Q,[Qd].concat(_.ri(jB(Error("Yb")))))}var b=$$,f=Vd;Promise.resolve().then(function(){if(b&&!b.isDisposed){var a=_.Nu(b);try{I7(function(){return void A()},f)}catch(T){throw Qd.enableContextBasedComponentStacks&&kA(T),T;
}finally{_.Nu(a)}}})};
_.qq=function(A,Q){NGb(function(){return B_(A)},Q)};
_.tz=function(A){nz()?_.CH(function(){B_(A)}):NGb(function(){return B_(A)},[])};
aV6=function(A){var Q=[].concat(_.ri(A));A.length=0;A=_.F(Q);for(Q=A.next();!Q.done;Q=A.next()){Q=Q.value;fV6(Q);var b=Q.pendingEffect;Q.pendingEffect=null;if(b=b==null?void 0:b())Q.pendingCleanup=b}};
fV6=function(A){var Q=A.pendingCleanup;A.pendingCleanup=null;Q==null||Q()};
T2W=function(A,Q){if(nz())return A();var b=DWX("useMemoInternal");$WU(b.deps,Q)&&(b.deps=Q,b.value=A());return b.value};
dBi=function(A,Q){return T2W(A,Q)};
rN=function(A){return T2W(A,[])};
j6=function(A){return rN(function(){return{value:A}})};
_.R8=function(A,Q){if(!A)return null;A=Object.keys(A);A=_.F(A);for(var b=A.next();!b.done;b=A.next()){b=b.value;var f=b.toLowerCase();if(f.indexOf(Q,f.length-Q.length)>-1)return b}return null};
_.e6=function(){var A=arguments,Q=_.gN;A.length>1?Q[A[0]]=A[1]:A.length===1&&Object.assign(Q,A[0])};
_.vG=function(A,Q){return A in _.gN?_.gN[A]:Q};
_.Ep=function(A,Q){return!!_.vG(A,Q)};
FEe=function(A){var Q=_.gN.EXPERIMENT_FLAGS;return Q?Q[A]:void 0};
B2Y=function(A){Go6.forEach(function(Q){return Q(A)})};
_.cG=function(A){return A&&window.yterr?function(){try{return A.apply(this,arguments)}catch(Q){_.xQ(Q)}}:A};
_.xQ=function(A){var Q=_.zV("yt.logging.errors.log");Q?Q(A,"ERROR",void 0,void 0,void 0,void 0,void 0):(Q=_.vG("ERRORS",[]),Q.push([A,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.e6("ERRORS",Q));B2Y(A)};
_.wN=function(A,Q,b,f,a){var T=_.zV("yt.logging.errors.log");T?T(A,"WARNING",Q,b,f,void 0,a):(T=_.vG("ERRORS",[]),T.push([A,"WARNING",Q,b,f,void 0,a]),_.e6("ERRORS",T))};
PiU=function(A,Q){Q=A.split(Q);for(var b={},f=0,a=Q.length;f<a;f++){var T=Q[f].split("=");if(T.length===1&&T[0]||T.length===2)try{var G=pny(T[0]||""),p=pny(T[1]||"");if(G in b){var P=b[G];Array.isArray(P)?_.zX(P,p):b[G]=[P,p]}else b[G]=p}catch(l){var U=l,L=T[0],M=String(PiU);U.args=[{key:L,value:T[1],query:A,method:Xn9===M?"unchanged":M}];Sl6.hasOwnProperty(L)||_.wN(U)}}return b};
UBX=function(A){var Q=[];_.j2.forEach(A,function(b,f){var a=_.ud(f);b=Array.isArray(b)?b:[b];_.ZR(b,function(T){T==""?Q.push(a):Q.push(a+"="+_.ud(T))})});
return Q.join("&")};
_.y6=function(A){A.charAt(0)==="?"&&(A=A.substring(1));return PiU(A,"&")};
_.YQ=function(A){return A.indexOf("?")!==-1?(A=(A||"").split("#")[0],A=A.split("?",2),_.y6(A.length>1?A[1]:A[0])):{}};
_.DR=function(A,Q){return LEW(A,Q||{},!0)};
MTy=function(A,Q){return LEW(A,Q||{},!1)};
LEW=function(A,Q,b){var f=A.split("#",2);A=f[0];f=f.length>1?"#"+f[1]:"";var a=A.split("?",2);A=a[0];a=_.y6(a[1]||"");for(var T in Q)if(b||!_.j2.containsKey(a,T))a[T]=Q[T];return _.$Q(A,a)+f};
A$=function(A){if(!Q)var Q=window.location.href;var b=_.Nq(A)[1]||null,f=_.sp(A);return b&&f?mR(A,Q):f?_.sp(Q)===f&&(Number(_.Nq(Q)[4]||null)||null)===(Number(_.Nq(A)[4]||null)||null):!0};
_.KEi=function(A){A=lVb(A);return A===null?!1:A[0]==="com"&&A[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
lVb=function(A){A=_.sp(A);return A!==null?A.split(".").reverse():null};
pny=function(A){return A&&A.match(iDJ)?A:Qb(A)};
_.bu=function(A){return new JQU(A)};
_.fJ=function(){VT9||(VT9=new ODy);return VT9};
koW=function(){var A=n_Y;return function(){var Q=_.fJ();Q.resolve(_.bu(A))||Q.addProvider({provide:A,useClass:A});return Q.resolve(A)}};
HDi=function(A){var Q=_.de,b,f;_.B(function(a){b=_.fJ();return(f=b.resolve(_.bu(Q)))?(A(f),a.return(Promise.resolve(f))):a.return(b.resolve(new IVb(Q)).then(function(T){A(T);return T}))})};
_.K=function(A){A=Fe(A);return typeof A==="string"&&A==="false"?!1:!!A};
_.GP=function(A,Q){A=Fe(A);return A===void 0&&Q!==void 0?Q:Number(A||0)};
CiX=function(A){A=Fe(A);return Array.isArray(A)?_.Rk(A,function(Q){return Number(Q||0)}):[Number(A||0)]};
_.Br=function(A){A=Fe(A);return A!==void 0?String(A):""};
_.pJ=function(A){A=Fe(A);return Array.isArray(A)?_.Rk(A,function(Q){return String(Q||"")}):[String(A||"")]};
qli=function(){return _.vG("EXPERIMENTS_TOKEN","")};
Fe=function(A){return _.vG("EXPERIMENT_FLAGS",{})[A]};
o_i=function(){for(var A=[],Q=_.vG("EXPERIMENTS_FORCED_FLAGS",{}),b=_.F(Object.keys(Q)),f=b.next();!f.done;f=b.next())f=f.value,A.push({key:f,value:String(Q[f])});b=_.vG("EXPERIMENT_FLAGS",{});f=_.F(Object.keys(b));for(var a=f.next();!a.done;a=f.next())a=a.value,a.startsWith("force_")&&Q[a]===void 0&&A.push({key:a,value:String(b[a])});return A};
rQA=function(){if(!tTb)return null;var A=tTb();return"open"in A?A:null};
_.jF6=function(A){switch(_.Pr(A)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Pr=function(A){return A&&"status"in A?A.status:-1};
_.Xe=function(A,Q){typeof A==="function"&&(A=_.cG(A));return window.setTimeout(A,Q)};
_.St=function(A,Q){typeof A==="function"&&(A=_.cG(A));return window.setInterval(A,Q)};
_.Uo=function(A){window.clearTimeout(A)};
g_i=function(A){A=_.YQ(A);for(var Q=_.F(Rn4),b=Q.next();!b.done;b=Q.next())if(A[b.value]!==void 0)return!0;return!1};
WEf=function(A,Q,b,f,a,T,G,p,P){b=b===void 0?"GET":b;f=f===void 0?"":f;p=p===void 0?!1:p;var U=rQA();if(!U)return null;var L=function(){(U&&"readyState"in U?U.readyState:0)===4&&Q&&_.cG(Q)(U)};
"onloadend"in U?U.addEventListener("loadend",L,!1):U.onreadystatechange=L;_.K("debug_forward_web_query_parameters")&&(A=en4(A,window.location.search));U.open(b,A,!0);T&&(U.responseType=T);G&&(U.withCredentials=!0);b=b==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(a=hnA(A,a))for(var M in a)U.setRequestHeader(M,a[M]),"content-type"===M.toLowerCase()&&(b=!1);b&&U.setRequestHeader("Content-Type","application/x-www-form-urlencoded");P&&"onprogress"in U&&(U.onprogress=function(){P(U.responseText)});
if(p&&"setAttributionReporting"in XMLHttpRequest.prototype){A={eventSourceEligible:!0,triggerEligible:!1};try{U.setAttributionReporting(A)}catch(l){_.wN(l)}}U.send(f);return U};
hnA=function(A,Q){Q=Q===void 0?{}:Q;var b=A$(A),f=_.vG("INNERTUBE_CLIENT_NAME"),a=_.K("web_ajax_ignore_global_headers_if_set"),T;for(T in v_U){var G=_.vG(v_U[T]),p=T==="X-Goog-AuthUser"||T==="X-Goog-PageId";T!=="X-Goog-Visitor-Id"||G||(G=_.vG("VISITOR_DATA"));var P;if(!(P=!G)){if(!(P=b||(_.sp(A)?!1:!0))){P=A;var U;if(U=_.K("add_auth_headers_to_remarketing_google_dot_com_ping")&&T==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY"))U=lVb(P),U=U===null?!1:U[1]==="google"?
!0:U[2]==="google"?U[0]==="au"&&U[1]==="com"?!0:U[0]==="uk"&&U[1]==="co"?!0:!1:!1;U&&(P=_.LJ(P)||"",P=P.split("/"),P="/"+(P.length>1?P[1]:""),U=P==="/pagead");P=U?!0:!1}P=!P}P||a&&Q[T]!==void 0||f==="TVHTML5_UNPLUGGED"&&p||(Q[T]=G)}"X-Goog-EOM-Visitor-Id"in Q&&"X-Goog-Visitor-Id"in Q&&delete Q["X-Goog-Visitor-Id"];if(b||!_.sp(A))Q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(b||!_.sp(A)){try{var L=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}L&&(Q["X-YouTube-Time-Zone"]=
L)}document.location.hostname.endsWith("youtubeeducation.com")||!b&&_.sp(A)||(Q["X-YouTube-Ad-Signals"]=UBX(E_A()));return Q};
_.xBi=function(A,Q){var b=_.sp(A);_.K("debug_handle_relative_url_for_query_forward_killswitch")||!b&&A$(A)&&(b=document.location.hostname);var f=_.LJ(A);f=(b=b&&(b.endsWith("youtube.com")||b.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!b||f)return A;var a=_.y6(Q),T={};_.ZR(Rn4,function(G){a[G]&&(T[G]=a[G])});
return MTy(A,T)};
cQi=function(A,Q){Q.method="POST";Q.postParams||(Q.postParams={});return _.MQ(A,Q)};
znF=function(A,Q){var b=_.vG("XSRF_FIELD_NAME"),f;Q.headers&&(f=Q.headers["Content-Type"]);return!Q.excludeXsrf&&(!_.sp(A)||Q.withCredentials||_.sp(A)===document.location.hostname)&&Q.method==="POST"&&(!f||f==="application/x-www-form-urlencoded")&&!(Q.postParams&&Q.postParams[b])};
_.MQ=function(A,Q){var b=Q.format||"JSON";A=wnC(A,Q);var f=u5F(A,Q),a=!1,T=ZD6(A,function(P){if(!a){a=!0;p&&_.Uo(p);var U=_.jF6(P),L=null,M=400<=P.status&&P.status<500,l=500<=P.status&&P.status<600;if(U||M||l)L=yQU(A,b,P,Q.convertToSafeHtml);U&&(U=Ylb(b,P,L));L=L||{};M=Q.context||_.by;U?Q.onSuccess&&Q.onSuccess.call(M,P,L):Q.onError&&Q.onError.call(M,P,L);Q.onFinish&&Q.onFinish.call(M,P,L)}},Q.method,f,Q.headers,Q.responseType,Q.withCredentials,!1,Q.onProgress);
f=Q.timeout||0;if(Q.onTimeout&&f>0){var G=Q.onTimeout;var p=_.Xe(function(){a||(a=!0,T.abort(),_.Uo(p),G.call(Q.context||_.by,T))},f)}return T};
wnC=function(A,Q){Q.includeDomain&&(A=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+A);var b=_.vG("XSRF_FIELD_NAME");if(Q=Q.urlParams)Q[b]&&delete Q[b],A=_.DR(A,Q);return A};
u5F=function(A,Q){var b=_.vG("XSRF_FIELD_NAME"),f=_.vG("XSRF_TOKEN"),a=Q.postBody||"",T=Q.postParams;znF(A,Q)&&(T||(T={}),T[b]=f);(_.K("ajax_parse_query_data_only_when_filled")&&T&&Object.keys(T).length>0||T)&&typeof a==="string"&&(a=_.y6(a),_.j2.extend(a,T),a=Q.postBodyFormat&&Q.postBodyFormat==="JSON"?JSON.stringify(a):_.lu(a));T=a||T&&!_.j2.isEmpty(T);!DBf&&T&&Q.method!=="POST"&&(DBf=!0,_.xQ(Error("Fc")));return a};
yQU=function(A,Q,b,f){var a=null;switch(Q){case "JSON":try{var T=b.responseText}catch(G){throw f=Error("Gc"),f.params=A,_.wN(f),G;}A=b.getResponseHeader("Content-Type")||"";T&&A.indexOf("json")>=0&&(T.substring(0,5)===")]}'\n"&&(T=T.substring(5)),a=JSON.parse(T));break;case "XML":if(A=(A=b.responseXML)?$B4(A):null)a={},_.ZR(A.getElementsByTagName("*"),function(G){a[G.tagName]=N2J(G)})}f&&sF6(a);
return a};
sF6=function(A){if(_.ZU(A))for(var Q in A)Q==="html_content"||Fi(Q,"_html")?A[Q]=w$(A[Q]):sF6(A[Q])};
Ylb=function(A,Q,b){if(Q&&Q.status===204)return!0;switch(A){case "JSON":return!!b;case "XML":return Number(b&&b.return_code)===0;case "RAW":return!0;default:return!!b}};
$B4=function(A){return A?(A=("responseXML"in A?A.responseXML:A).getElementsByTagName("root"))&&A.length>0?A[0]:null:null};
N2J=function(A){var Q="";_.ZR(A.childNodes,function(b){Q+=b.nodeValue});
return Q};
mBX=function(A){if(A.name==="JavaException")return!0;A=A.stack;return A.includes("chrome://")||A.includes("-extension://")||A.includes("webkit-masked-url://")};
AHJ=function(A){if(!A.stack)return!0;var Q=!A.stack.includes("\n");return Q&&A.stack.includes("ErrorType: ")||Q&&A.stack.includes("Anonymous function (Unknown script")||A.stack.toLowerCase()==="not available"||A.fileName==="user-script"||A.fileName.startsWith("user-script:")?!0:!1};
_.KJ=function(A){_.k$.call(this);this.JSC$10421_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!A};
bO9=function(A,Q){var b=A.length,f=0,a=function(){return A.charCodeAt(f++)};
do{var T=QXJ(a);if(T===Infinity)break;var G=T>>3;switch(T&7){case 0:T=QXJ(a);if(G===Q)return T;break;case 1:if(G===Q)return;f+=8;break;case 2:T=QXJ(a);if(G===Q)return A.substr(f,T);f+=T;break;case 5:if(G===Q)return;f+=4;break;default:return}}while(f<b)};
QXJ=function(A){var Q=A(),b=Q&127;if(Q<128)return b;Q=A();b|=(Q&127)<<7;if(Q<128)return b;Q=A();b|=(Q&127)<<14;if(Q<128)return b;Q=A();return Q<128?b|(Q&127)<<21:Infinity};
a5W=function(A,Q,b,f){if(A)if(Array.isArray(A)){var a=f;for(f=0;f<A.length&&!(A[f]&&(a+=f5y(f,A[f],Q,b),a>500));f++);f=a}else if(typeof A==="object")for(a in A){if(A[a]){var T=a;var G=A[a],p=Q,P=b;T=typeof G!=="string"||T!=="clickTrackingParams"&&T!=="trackingParams"?0:(G=bO9(atob(G.replace(/-/g,"+").replace(/_/g,"/")),2))?f5y(T+".ve",G,p,P):0;f+=T;f+=f5y(a,A[a],Q,b);if(f>500)break}}else b[Q]=iu(A),f+=b[Q].length;else b[Q]=iu(A),f+=b[Q].length;return f};
f5y=function(A,Q,b,f){b+="."+A;A=iu(Q);f[b]=A;return b.length+A.length};
iu=function(A){try{return(typeof A==="string"?A:String(JSON.stringify(A))).substr(0,500)}catch(Q){return"unable to serialize "+typeof A+" ("+Q.message+")"}};
TsF=function(A){switch(A){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}};
_.Vb=function(A,Q,b,f,a){_.J$.set(A,Q,{maxAge:b,path:"/",domain:f===void 0?"youtube.com":f,secure:a===void 0?!1:a})};
_.dey=function(A,Q,b){_.J$.remove(A,Q===void 0?"/":Q,b===void 0?"youtube.com":b)};
_.Oo=function(){if(_.K("embeds_web_enable_cookie_detection_fix")){if(!_.by.navigator.cookieEnabled)return!1}else if(!_.J$.isEnabled())return!1;if(!_.J$.isEmpty())return!0;_.K("embeds_web_enable_cookie_detection_fix")?_.J$.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.J$.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.J$.get("TESTCOOKIESENABLED")!=="1")return!1;_.J$.remove("TESTCOOKIESENABLED");return!0};
FOF=function(){var A=_.by.navigator;return A?A.connection:void 0};
G7A=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}};
_.pOf=function(){var A=FOF();if(A){var Q=BsF[A.type||"unknown"]||"CONN_UNKNOWN";A=BsF[A.effectiveType||"unknown"]||"CONN_UNKNOWN";Q==="CONN_CELLULAR_UNKNOWN"&&A!=="CONN_UNKNOWN"&&(Q=A);if(Q!=="CONN_UNKNOWN")return Q;if(A!=="CONN_UNKNOWN")return A}};
XOX=function(){var A=FOF();if(A!=null&&A.effectiveType)return Pgy.hasOwnProperty(A.effectiveType)?Pgy[A.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.kR=function(){try{return _.nJ(),!0}catch(A){return!1}};
_.nJ=function(A){if(_.vG("DATASYNC_ID")!==void 0)return _.vG("DATASYNC_ID");throw new _.IO("Datasync ID not set",A===void 0?"unknown":A);};
_.Hr=function(A){this.mechanism=A};
CJ=function(A){this.mechanism=A};
qQ=function(A){this.storage_=A;this.cachedIsStorageAvailable_=null};
SrJ=function(){var A=null;try{A=_.by.localStorage||null}catch(Q){}qQ.call(this,A)};
UeY=function(){var A=null;try{A=_.by.sessionStorage||null}catch(Q){}qQ.call(this,A)};
oO=function(A,Q){this.mechanism_=A;this.JSC$10523_prefix_=Q+"::"};
_.LOA=function(A){var Q=new SrJ;return Q.isAvailable()?A?new oO(Q,A):Q:null};
_.M$e=function(A){var Q=new UeY;return Q.isAvailable()?A?new oO(Q,A):Q:null};
KOe=function(){var A;return(A=l5A())==null?void 0:A.get("LAST_RESULT_ENTRY_KEY",!0)};
_.jt=function(A){iOU||(_.t$?_.t$.logError(A):(_.re.push({type:"ERROR",payload:A}),_.re.length>10&&_.re.shift()))};
RO=function(A,Q){iOU||(_.t$?_.t$.logEvent(A,Q):(_.re.push({type:"EVENT",eventType:A,payload:Q}),_.re.length>10&&_.re.shift()))};
ge=function(A){if(A.indexOf(":")>=0)throw Error("Nc");};
et=function(A){return A.substr(0,A.indexOf(":"))||A};
OOF=function(){return(JHW||V$Y)&&h$("applewebkit")&&!h$("version")&&(!h$("safari")||h$("gsa/"))};
h$=function(A){var Q=_.Mf();return Q?Q.toLowerCase().indexOf(A)>=0:!1};
I5C=function(A,Q,b,f){Q=et(Q);var a=A instanceof Error?A:Error("Oc`"+A);if(a instanceof Wr)return a;A={objectStoreNames:b,dbName:Q,dbVersion:f};if(a.name==="QuotaExceededError")return new Wr("QUOTA_EXCEEDED",A);if(_.vr&&a.name==="UnknownError")return new Wr("QUOTA_MAYBE_EXCEEDED",A);if(a instanceof nL4)return new Wr("MISSING_INDEX",Object.assign({},A,{objectStore:a.objectStore,index:a.index}));if(a.name==="InvalidStateError"&&k7W.some(function(T){return a.message.includes(T)}))return new Wr("EXECUTE_TRANSACTION_ON_CLOSED_DB",
A);
if(a.name==="AbortError")return new Wr("UNKNOWN_ABORT",A,a.message);a.args=[Object.assign({},A,{name:"IdbError",originalName:a.name})];a.level="WARNING";return a};
Eo=function(A,Q,b){var f=KOe();return new Wr("IDB_NOT_SUPPORTED",{context:{caller:A,publicName:Q,version:b,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})};
HOW=function(A){if(!A)throw Error();throw A;};
CgF=function(A){return A};
qrb=function(A,Q,b){var f=function(){try{A.removeEventListener("success",a),A.removeEventListener("error",T)}catch(G){}},a=function(){Q(A.result);
f()},T=function(){b(A.error);
f()};
A.addEventListener("success",a);A.addEventListener("error",T)};
oL9=function(A){return new Promise(function(Q,b){qrb(A,Q,b)})};
zP=function(A){return new xR(new cr(function(Q,b){qrb(A,Q,b)}))};
t$X=function(A,Q){return new xR(new cr(function(b,f){var a=function(){var T=A?Q(A):null;T?T.then(function(G){A=G;a()},f):b()};
a()}))};
rH4=function(A,Q,b){return new Promise(function(f,a){var T=Q!==void 0?self.indexedDB.open(A,Q):self.indexedDB.open(A);var G=b.blocked,p=b.blocking,P=b.terminated,U=b.upgrade,L=b.closed,M,l=function(){M||(M=new we(T.result,{closed:L}));return M};
T.addEventListener("upgradeneeded",function(J){try{if(J.newVersion===null)throw Error("Tc");if(T.transaction===null)throw Error("Uc");J.dataLoss&&J.dataLoss!=="none"&&RO("IDB_DATA_CORRUPTED",{reason:J.dataLossMessage||"unknown reason",dbName:et(A)});var n=l(),t=new uu(T.transaction);U&&U(n,function(g){return J.oldVersion<g&&J.newVersion>=g},t);
t.done.catch(function(g){a(g)})}catch(g){a(g)}});
T.addEventListener("success",function(){var J=T.result;p&&J.addEventListener("versionchange",function(){p(l())});
J.addEventListener("close",function(){RO("IDB_UNEXPECTEDLY_CLOSED",{dbName:et(A),dbVersion:J.version});P&&P()});
f(l())});
T.addEventListener("error",function(){a(T.error)});
G&&T.addEventListener("blocked",function(){G()})})};
jX9=function(A,Q,b){b=b===void 0?{}:b;return rH4(A,Q,b)};
_.yb=function(A,Q){Q=Q===void 0?{}:Q;var b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return _.ML(G,2),b=self.indexedDB.deleteDatabase(A),f=Q,(a=f.blocked)&&b.addEventListener("blocked",function(){a()}),G.yield(oL9(b),4);
if(G.nextAddress!=2)return _.Z1(G,0);T=_.Vw(G);throw I5C(T,A,"",-1);})};
gLe=function(A,Q){var b;return _.B(function(f){if(f.nextAddress==1)return f.yield(_.YR(RmY,Q),2);b=f.yieldResult;return f.return(_.D1(b,["databases"],{enableRetries:!0,mode:"readwrite"},function(a){var T=a.objectStore("databases");return T.get(A.actualName).then(function(G){if(G?A.actualName!==G.actualName||A.publicName!==G.publicName||A.userIdentifier!==G.userIdentifier:1)return T.put(A).then(function(){})})}))})};
_.$R=function(A,Q){var b;return _.B(function(f){if(f.nextAddress==1)return A?f.yield(_.YR(RmY,Q),2):f.return();b=f.yieldResult;return f.return(b.delete("databases",A))})};
_.emJ=function(A,Q){var b,f;return _.B(function(a){return a.nextAddress==1?(b=[],a.yield(_.YR(RmY,Q),2)):a.nextAddress!=3?(f=a.yieldResult,a.yield(_.D1(f,["databases"],{enableRetries:!0,mode:"readonly"},function(T){b.length=0;return NQ(T.objectStore("databases"),{},function(G){A(G.getValue())&&b.push(G.getValue());return G.continue()})}),3)):a.return(b)})};
hmJ=function(A,Q){return _.emJ(function(b){return b.publicName===A&&b.userIdentifier!==void 0},Q)};
ELi=function(){var A,Q,b,f;return _.B(function(a){switch(a.nextAddress){case 1:A=KOe();if((Q=A)==null?0:Q.hasSucceededOnce)return a.return(!0);var T;if(T=WO6)T=/WebKit\/([0-9]+)/.exec(_.Mf()),T=!!(T&&parseInt(T[1],10)>=600);T&&(T=/WebKit\/([0-9]+)/.exec(_.Mf()),T=!(T&&parseInt(T[1],10)>=602));if(T||so)return a.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return a.return(!1)}catch(G){return a.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return a.return(!1);
_.ML(a,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return a.yield(gLe(f,vLJ),4);case 4:return a.yield(_.$R("yt-idb-test-do-not-use",vLJ),5);case 5:return a.return(!0);case 2:return _.Vw(a),a.return(!1)}})};
cHY=function(){if(xeW!==void 0)return xeW;iOU=!0;return xeW=ELi().then(function(A){iOU=!1;var Q;if((Q=l5A())!=null&&Q.expiringStorage_){var b;Q={hasSucceededOnce:((b=KOe())==null?void 0:b.hasSucceededOnce)||A};var f;(f=l5A())==null||f.set("LAST_RESULT_ENTRY_KEY",Q,2592E3,!0)}return A})};
m9=function(){return _.zV("ytglobal.idbToken_")||void 0};
_.Q7=function(){var A=m9();return A?Promise.resolve(A):cHY().then(function(Q){(Q=Q?vLJ:void 0)&&_.Al("ytglobal.idbToken_",Q);return Q})};
zmW=function(A){if(!_.kR())throw A=new Wr("AUTH_INVALID",{dbName:A}),_.jt(A),A;var Q=_.nJ();return{actualName:A+":"+Q,publicName:A,userIdentifier:Q}};
wOe=function(A,Q,b,f){var a,T,G,p,P,U;return _.B(function(L){switch(L.nextAddress){case 1:return T=(a=Error().stack)!=null?a:"",L.yield(_.Q7(),2);case 2:G=L.yieldResult;if(!G)throw p=Eo("openDbImpl",A,Q),_.K("ytidb_async_stack_killswitch")||(p.stack=p.stack+"\n"+T.substring(T.indexOf("\n")+1)),_.jt(p),p;ge(A);P=b?{actualName:A,publicName:A,userIdentifier:void 0}:zmW(A);_.ML(L,3);return L.yield(gLe(P,G),5);case 5:return L.yield(jX9(P.actualName,Q,f),6);case 6:return L.return(L.yieldResult);case 3:return U=
_.Vw(L),_.ML(L,7),L.yield(_.$R(P.actualName,G),9);case 9:_.Z1(L,8);break;case 7:_.Vw(L);case 8:throw U;}})};
ug6=function(A,Q,b){b=b===void 0?{}:b;return wOe(A,Q,!1,b)};
ZOU=function(A,Q,b){b=b===void 0?{}:b;return wOe(A,Q,!0,b)};
yHW=function(A,Q){Q=Q===void 0?{}:Q;var b,f;return _.B(function(a){if(a.nextAddress==1)return a.yield(_.Q7(),2);if(a.nextAddress!=3){b=a.yieldResult;if(!b)return a.return();ge(A);f=zmW(A);return a.yield(_.yb(f.actualName,Q),3)}return a.yield(_.$R(f.actualName,b),0)})};
YrW=function(A,Q,b){A=A.map(function(f){return _.B(function(a){return a.nextAddress==1?a.yield(_.yb(f.actualName,Q),2):a.yield(_.$R(f.actualName,b),0)})});
return Promise.all(A).then(function(){})};
DeX=function(A){var Q=Q===void 0?{}:Q;var b,f;return _.B(function(a){if(a.nextAddress==1)return a.yield(_.Q7(),2);if(a.nextAddress!=3){b=a.yieldResult;if(!b)return a.return();ge(A);return a.yield(hmJ(A,b),3)}f=a.yieldResult;return a.yield(YrW(f,Q,b),0)})};
$eA=function(A,Q){Q=Q===void 0?{}:Q;var b;return _.B(function(f){if(f.nextAddress==1)return f.yield(_.Q7(),2);if(f.nextAddress!=3){b=f.yieldResult;if(!b)return f.return();ge(A);return f.yield(_.yb(A,Q),3)}return f.yield(_.$R(A,b),0)})};
bC=function(A,Q){return NsX(A,Q)};
meA=function(A){return _.YR(sXb(),A)};
AEf=function(A,Q,b,f){var a,T,G;return _.B(function(p){switch(p.nextAddress){case 1:return a={config:A,hashData:Q,timestamp:f!==void 0?f:(0,_.f4)()},p.yield(meA(b),2);case 2:return T=p.yieldResult,p.yield(T.clear("hotConfigStore"),3);case 3:return p.yield(T.put("hotConfigStore",a),4);case 4:return G=p.yieldResult,p.return(G)}})};
QzU=function(A,Q,b,f,a){var T,G,p;return _.B(function(P){switch(P.nextAddress){case 1:return T={config:A,hashData:Q,configData:b,timestamp:a!==void 0?a:(0,_.f4)()},P.yield(meA(f),2);case 2:return G=P.yieldResult,P.yield(G.clear("coldConfigStore"),3);case 3:return P.yield(G.put("coldConfigStore",T),4);case 4:return p=P.yieldResult,P.return(p)}})};
bTb=function(A){var Q,b;return _.B(function(f){return f.nextAddress==1?f.yield(meA(A),2):f.nextAddress!=3?(Q=f.yieldResult,b=void 0,f.yield(_.D1(Q,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(a){return _.ax(a.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(T){b=T.getValue()})}),3)):f.return(b)})};
fkb=function(A){var Q,b;return _.B(function(f){return f.nextAddress==1?f.yield(meA(A),2):f.nextAddress!=3?(Q=f.yieldResult,b=void 0,f.yield(_.D1(Q,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(a){return _.ax(a.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(T){b=T.getValue()})}),3)):f.return(b)})};
akW=function(){return _.B(function(A){return A.yield(DeX("ytGcfConfig"),0)})};
T6U=function(){return"INNERTUBE_API_KEY"in _.gN&&"INNERTUBE_API_VERSION"in _.gN};
_.Tp=function(){return{innertubeApiKey:_.vG("INNERTUBE_API_KEY"),innertubeApiVersion:_.vG("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.vG("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.vG("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.vG("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.vG("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.vG("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.vG("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.vG("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Ep("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Ep("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.vG("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.XYi=function(A){var Q={client:{hl:A.innertubeContextHostLanguage,gl:A.innertubeContextGeoLocation,clientName:A.innertubeContextClientName,clientVersion:A.innertubeContextClientVersion,configInfo:A.innertubeContextClientConfigInfo}};navigator.userAgent&&(Q.client.userAgent=String(navigator.userAgent));var b=_.by.devicePixelRatio;b&&b!=1&&(Q.client.screenDensityFloat=String(b));b=qli();b!==""&&(Q.client.experimentsToken=b);b=o_i();b.length>0&&(Q.request={internalExperimentFlags:b});djW(A,void 0,Q);
FWe(void 0,Q);GxF(void 0,Q);B6i(A,void 0,Q);pYe(void 0,Q);_.K("start_client_gcf")&&PBJ(void 0,Q);_.vG("DELEGATED_SESSION_ID")&&!_.K("pageid_as_header_web")&&(Q.user={onBehalfOfUser:_.vG("DELEGATED_SESSION_ID")});!_.K("fill_delegate_context_in_gel_killswitch")&&(A=_.vG("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(Q.user=Object.assign({},Q.user,{serializedDelegationContext:A}));A=_.vG("INNERTUBE_CONTEXT");var f;if(_.K("enable_persistent_device_token")&&(A==null?0:(f=A.client)==null?0:f.rolloutToken)){var a;
Q.client.rolloutToken=A==null?void 0:(a=A.client)==null?void 0:a.rolloutToken}f=Object;a=f.assign;A=Q.client;b={};for(var T=_.F(Object.entries(_.y6(_.vG("DEVICE","")))),G=T.next();!G.done;G=T.next()){var p=_.F(G.value);G=p.next().value;p=p.next().value;G==="cbrand"?b.deviceMake=p:G==="cmodel"?b.deviceModel=p:G==="cbr"?b.browserName=p:G==="cbrver"?b.browserVersion=p:G==="cos"?b.osName=p:G==="cosver"?b.osVersion=p:G==="cplatform"&&(b.platform=p)}Q.client=a.call(f,A,b);return Q};
djW=function(A,Q,b){A=A.innertubeContextClientName;if(A==="WEB"||A==="MWEB"||A===1||A===2)if(Q){b=_.dO(Q,SYb,96)||new SYb;var f=Ujb();f=Object.keys(LWC).indexOf(f);f=f===-1?null:f;f!==null&&_.FH(b,3,f);_.Lp(Q,96,b)}else b&&(b.client.mainAppWebInfo=(f=b.client.mainAppWebInfo)!=null?f:{},b.client.mainAppWebInfo.webDisplayMode=Ujb())};
FWe=function(A,Q){var b=_.zV("yt.embedded_player.embed_url");b&&(A?(Q=_.dO(A,MLX,7)||new MLX,_.nt(Q,4,b),_.Lp(A,7,Q)):Q&&(Q.thirdParty={embedUrl:b}))};
GxF=function(A,Q){var b;if(_.K("web_log_memory_total_kbytes")&&((b=_.by.navigator)==null?0:b.deviceMemory)){var f;b=(f=_.by.navigator)==null?void 0:f.deviceMemory;A?_.Gp(A,95,dx(b*1E6)):Q&&(Q.client.memoryTotalKbytes=""+b*1E6)}};
B6i=function(A,Q,b){if(A.appInstallData)if(Q){var f;b=(f=_.dO(Q,BE,62))!=null?f:new BE;_.nt(b,6,A.appInstallData);_.Lp(Q,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=A.appInstallData)};
pYe=function(A,Q){var b=_.pOf();b&&(A?_.FH(A,61,lkC[b]):Q&&(Q.client.connectionType=b));_.K("web_log_effective_connection_type")&&(b=XOX())&&(A?_.FH(A,94,KWA[b]):Q&&(Q.client.effectiveConnectionType=b))};
_.VL6=function(A,Q,b){b=b===void 0?{}:b;var f={};_.vG("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":_.vG("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":b.visitorData||_.vG("VISITOR_DATA","")};if(Q&&Q.includes("www.youtube-nocookie.com"))return f;Q=b.authorization||_.vG("AUTHORIZATION");Q||(A?Q="Bearer "+_.zV("gapi.auth.getToken")().access_token:(iTy.instance||(iTy.instance=new iTy),A=JEX(),_.K("pageid_as_header_web")||delete A["X-Goog-PageId"],f=Object.assign({},f,A)));Q&&(f.Authorization=Q);return f};
PBJ=function(A,Q){var b=OTX();if(b){var f=b.coldConfigData,a=b.coldHashData;b=b.hotHashData;if(A){var T;Q=(T=_.dO(A,BE,62))!=null?T:new BE;f=_.nt(Q,1,f);_.nt(f,3,a).setHotHashData(b);_.Lp(A,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},f&&(Q.client.configInfo.coldConfigData=f),a&&(Q.client.configInfo.coldHashData=a),b&&(Q.client.configInfo.hotHashData=b))}};
p4=function(A){for(var Q=A.length;--Q>=0;)A[Q]=0};
nr9=function(A,Q,b,f,a){this.static_tree=A;this.extra_bits=Q;this.extra_base=b;this.elems=f;this.max_length=a;this.has_stree=A&&A.length};
kxi=function(A,Q){this.dyn_tree=A;this.max_code=0;this.stat_desc=Q};
PE=function(A,Q){A.pending_buf[A.pending++]=Q&255;A.pending_buf[A.pending++]=Q>>>8&255};
XH=function(A,Q,b){A.bi_valid>16-b?(A.bi_buf|=Q<<A.bi_valid&65535,PE(A,A.bi_buf),A.bi_buf=Q>>16-A.bi_valid,A.bi_valid+=b-16):(A.bi_buf|=Q<<A.bi_valid&65535,A.bi_valid+=b)};
S7=function(A,Q,b){XH(A,b[Q*2],b[Q*2+1])};
IkC=function(A,Q){var b=0;do b|=A&1,A>>>=1,b<<=1;while(--Q>0);return b>>>1};
HTe=function(A,Q,b){var f=Array(16),a=0,T;for(T=1;T<=15;T++)f[T]=a=a+b[T-1]<<1;for(b=0;b<=Q;b++)a=A[b*2+1],a!==0&&(A[b*2]=IkC(f[a]++,a))};
CBJ=function(A){var Q;for(Q=0;Q<286;Q++)A.dyn_ltree[Q*2]=0;for(Q=0;Q<30;Q++)A.dyn_dtree[Q*2]=0;for(Q=0;Q<19;Q++)A.bl_tree[Q*2]=0;A.dyn_ltree[512]=1;A.opt_len=A.static_len=0;A.last_lit=A.matches=0};
qYJ=function(A){A.bi_valid>8?PE(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf);A.bi_buf=0;A.bi_valid=0};
orW=function(A,Q,b){qYJ(A);PE(A,b);PE(A,~b);US.arraySet(A.pending_buf,A.window,Q,b,A.pending);A.pending+=b};
tLy=function(A,Q,b,f){var a=Q*2,T=b*2;return A[a]<A[T]||A[a]===A[T]&&f[Q]<=f[b]};
rEJ=function(A,Q,b){for(var f=A.heap[b],a=b<<1;a<=A.heap_len;){a<A.heap_len&&tLy(Q,A.heap[a+1],A.heap[a],A.depth)&&a++;if(tLy(Q,f,A.heap[a],A.depth))break;A.heap[b]=A.heap[a];b=a;a<<=1}A.heap[b]=f};
hMf=function(A,Q,b){var f=0;if(A.last_lit!==0){do{var a=A.pending_buf[A.d_buf+f*2]<<8|A.pending_buf[A.d_buf+f*2+1];var T=A.pending_buf[A.l_buf+f];f++;if(a===0)S7(A,T,Q);else{var G=L4[T];S7(A,G+256+1,Q);var p=jze[G];p!==0&&(T-=RMX[G],XH(A,T,p));a--;G=a<256?Mg[a]:Mg[256+(a>>>7)];S7(A,G,b);p=gr9[G];p!==0&&(a-=eMW[G],XH(A,a,p))}}while(f<A.last_lit)}S7(A,256,Q)};
WWW=function(A,Q){var b=Q.dyn_tree,f=Q.stat_desc.static_tree,a=Q.stat_desc.has_stree,T=Q.stat_desc.elems,G,p=-1;A.heap_len=0;A.heap_max=573;for(G=0;G<T;G++)b[G*2]!==0?(A.heap[++A.heap_len]=p=G,A.depth[G]=0):b[G*2+1]=0;for(;A.heap_len<2;){var P=A.heap[++A.heap_len]=p<2?++p:0;b[P*2]=1;A.depth[P]=0;A.opt_len--;a&&(A.static_len-=f[P*2+1])}Q.max_code=p;for(G=A.heap_len>>1;G>=1;G--)rEJ(A,b,G);P=T;do G=A.heap[1],A.heap[1]=A.heap[A.heap_len--],rEJ(A,b,1),f=A.heap[1],A.heap[--A.heap_max]=G,A.heap[--A.heap_max]=
f,b[P*2]=b[G*2]+b[f*2],A.depth[P]=(A.depth[G]>=A.depth[f]?A.depth[G]:A.depth[f])+1,b[G*2+1]=b[f*2+1]=P,A.heap[1]=P++,rEJ(A,b,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1];G=Q.dyn_tree;P=Q.max_code;f=Q.stat_desc.static_tree;a=Q.stat_desc.has_stree;T=Q.stat_desc.extra_bits;var U=Q.stat_desc.extra_base,L=Q.stat_desc.max_length,M,l=0;for(M=0;M<=15;M++)A.bl_count[M]=0;G[A.heap[A.heap_max]*2+1]=0;for(Q=A.heap_max+1;Q<573;Q++){var J=A.heap[Q];M=G[G[J*2+1]*2+1]+1;M>L&&(M=L,l++);G[J*2+1]=M;if(!(J>
P)){A.bl_count[M]++;var n=0;J>=U&&(n=T[J-U]);var t=G[J*2];A.opt_len+=t*(M+n);a&&(A.static_len+=t*(f[J*2+1]+n))}}if(l!==0){do{for(M=L-1;A.bl_count[M]===0;)M--;A.bl_count[M]--;A.bl_count[M+1]+=2;A.bl_count[L]--;l-=2}while(l>0);for(M=L;M!==0;M--)for(J=A.bl_count[M];J!==0;)f=A.heap[--Q],f>P||(G[f*2+1]!==M&&(A.opt_len+=(M-G[f*2+1])*G[f*2],G[f*2+1]=M),J--)}HTe(b,p,A.bl_count)};
vrJ=function(A,Q,b){var f,a=-1,T=Q[1],G=0,p=7,P=4;T===0&&(p=138,P=3);Q[(b+1)*2+1]=65535;for(f=0;f<=b;f++){var U=T;T=Q[(f+1)*2+1];++G<p&&U===T||(G<P?A.bl_tree[U*2]+=G:U!==0?(U!==a&&A.bl_tree[U*2]++,A.bl_tree[32]++):G<=10?A.bl_tree[34]++:A.bl_tree[36]++,G=0,a=U,T===0?(p=138,P=3):U===T?(p=6,P=3):(p=7,P=4))}};
Er4=function(A,Q,b){var f,a=-1,T=Q[1],G=0,p=7,P=4;T===0&&(p=138,P=3);for(f=0;f<=b;f++){var U=T;T=Q[(f+1)*2+1];if(!(++G<p&&U===T)){if(G<P){do S7(A,U,A.bl_tree);while(--G!==0)}else U!==0?(U!==a&&(S7(A,U,A.bl_tree),G--),S7(A,16,A.bl_tree),XH(A,G-3,2)):G<=10?(S7(A,17,A.bl_tree),XH(A,G-3,3)):(S7(A,18,A.bl_tree),XH(A,G-11,7));G=0;a=U;T===0?(p=138,P=3):U===T?(p=6,P=3):(p=7,P=4)}}};
xjY=function(A){var Q=4093624447,b;for(b=0;b<=31;b++,Q>>>=1)if(Q&1&&A.dyn_ltree[b*2]!==0)return 0;if(A.dyn_ltree[18]!==0||A.dyn_ltree[20]!==0||A.dyn_ltree[26]!==0)return 1;for(b=32;b<256;b++)if(A.dyn_ltree[b*2]!==0)return 1;return 0};
lC=function(A,Q,b){A.pending_buf[A.d_buf+A.last_lit*2]=Q>>>8&255;A.pending_buf[A.d_buf+A.last_lit*2+1]=Q&255;A.pending_buf[A.l_buf+A.last_lit]=b&255;A.last_lit++;Q===0?A.dyn_ltree[b*2]++:(A.matches++,Q--,A.dyn_ltree[(L4[b]+256+1)*2]++,A.dyn_dtree[(Q<256?Mg[Q]:Mg[256+(Q>>>7)])*2]++);return A.last_lit===A.lit_bufsize-1};
iC=function(A,Q){A.msg=K4[Q];return Q};
Jl=function(A){for(var Q=A.length;--Q>=0;)A[Q]=0};
V7=function(A){var Q=A.state,b=Q.pending;b>A.avail_out&&(b=A.avail_out);b!==0&&(US.arraySet(A.output,Q.pending_buf,Q.pending_out,b,A.next_out),A.next_out+=b,Q.pending_out+=b,A.total_out+=b,A.avail_out-=b,Q.pending-=b,Q.pending===0&&(Q.pending_out=0))};
kT=function(A,Q){var b=A.block_start>=0?A.block_start:-1,f=A.strstart-A.block_start,a=0;if(A.level>0){A.strm.data_type===2&&(A.strm.data_type=xjY(A));WWW(A,A.l_desc);WWW(A,A.d_desc);vrJ(A,A.dyn_ltree,A.l_desc.max_code);vrJ(A,A.dyn_dtree,A.d_desc.max_code);WWW(A,A.bl_desc);for(a=18;a>=3&&A.bl_tree[cEW[a]*2+1]===0;a--);A.opt_len+=3*(a+1)+5+5+4;var T=A.opt_len+3+7>>>3;var G=A.static_len+3+7>>>3;G<=T&&(T=G)}else T=G=f+5;if(f+4<=T&&b!==-1)XH(A,Q?1:0,3),orW(A,b,f);else if(A.strategy===4||G===T)XH(A,2+(Q?
1:0),3),hMf(A,OS,n4);else{XH(A,4+(Q?1:0),3);b=A.l_desc.max_code+1;f=A.d_desc.max_code+1;a+=1;XH(A,b-257,5);XH(A,f-1,5);XH(A,a-4,4);for(T=0;T<a;T++)XH(A,A.bl_tree[cEW[T]*2+1],3);Er4(A,A.dyn_ltree,b-1);Er4(A,A.dyn_dtree,f-1);hMf(A,A.dyn_ltree,A.dyn_dtree)}CBJ(A);Q&&qYJ(A);A.block_start=A.strstart;V7(A.strm)};
Ix=function(A,Q){A.pending_buf[A.pending++]=Q};
HE=function(A,Q){A.pending_buf[A.pending++]=Q>>>8&255;A.pending_buf[A.pending++]=Q&255};
zMC=function(A,Q){var b=A.max_chain_length,f=A.strstart,a=A.prev_length,T=A.nice_match,G=A.strstart>A.w_size-262?A.strstart-(A.w_size-262):0,p=A.window,P=A.w_mask,U=A.prev,L=A.strstart+258,M=p[f+a-1],l=p[f+a];A.prev_length>=A.good_match&&(b>>=2);T>A.lookahead&&(T=A.lookahead);do{var J=Q;if(p[J+a]===l&&p[J+a-1]===M&&p[J]===p[f]&&p[++J]===p[f+1]){f+=2;for(J++;p[++f]===p[++J]&&p[++f]===p[++J]&&p[++f]===p[++J]&&p[++f]===p[++J]&&p[++f]===p[++J]&&p[++f]===p[++J]&&p[++f]===p[++J]&&p[++f]===p[++J]&&f<L;);
J=258-(L-f);f=L-258;if(J>a){A.match_start=Q;a=J;if(J>=T)break;M=p[f+a-1];l=p[f+a]}}}while((Q=U[Q&P])>G&&--b!==0);return a<=A.lookahead?a:A.lookahead};
qg=function(A){var Q=A.w_size,b;do{var f=A.window_size-A.lookahead-A.strstart;if(A.strstart>=Q+(Q-262)){US.arraySet(A.window,A.window,Q,Q,0);A.match_start-=Q;A.strstart-=Q;A.block_start-=Q;var a=b=A.hash_size;do{var T=A.head[--a];A.head[a]=T>=Q?T-Q:0}while(--b);a=b=Q;do T=A.prev[--a],A.prev[a]=T>=Q?T-Q:0;while(--b);f+=Q}if(A.strm.avail_in===0)break;a=A.strm;b=A.window;T=A.strstart+A.lookahead;var G=a.avail_in;G>f&&(G=f);G===0?b=0:(a.avail_in-=G,US.arraySet(b,a.input,a.next_in,G,T),a.state.wrap===
1?a.adler=wYe(a.adler,b,G,T):a.state.wrap===2&&(a.adler=C4(a.adler,b,G,T)),a.next_in+=G,a.total_in+=G,b=G);A.lookahead+=b;if(A.lookahead+A.insert>=3)for(f=A.strstart-A.insert,A.ins_h=A.window[f],A.ins_h=(A.ins_h<<A.hash_shift^A.window[f+1])&A.hash_mask;A.insert&&!(A.ins_h=(A.ins_h<<A.hash_shift^A.window[f+3-1])&A.hash_mask,A.prev[f&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=f,f++,A.insert--,A.lookahead+A.insert<3););}while(A.lookahead<262&&A.strm.avail_in!==0)};
uZX=function(A,Q){for(var b;;){if(A.lookahead<262){qg(A);if(A.lookahead<262&&Q===0)return 1;if(A.lookahead===0)break}b=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,b=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);b!==0&&A.strstart-b<=A.w_size-262&&(A.match_length=zMC(A,b));if(A.match_length>=3)if(b=lC(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){A.match_length--;
do A.strstart++,A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart;while(--A.match_length!==0);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+1])&A.hash_mask;else b=lC(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(b&&(kT(A,!1),A.strm.avail_out===0))return 1}A.insert=A.strstart<2?A.strstart:2;return Q===4?(kT(A,
!0),A.strm.avail_out===0?3:4):A.last_lit&&(kT(A,!1),A.strm.avail_out===0)?1:2};
ox=function(A,Q){for(var b,f;;){if(A.lookahead<262){qg(A);if(A.lookahead<262&&Q===0)return 1;if(A.lookahead===0)break}b=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,b=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);A.prev_length=A.match_length;A.prev_match=A.match_start;A.match_length=2;b!==0&&A.prev_length<A.max_lazy_match&&A.strstart-b<=A.w_size-262&&(A.match_length=zMC(A,b),A.match_length<=5&&(A.strategy===1||A.match_length===3&&
A.strstart-A.match_start>4096)&&(A.match_length=2));if(A.prev_length>=3&&A.match_length<=A.prev_length){f=A.strstart+A.lookahead-3;b=lC(A,A.strstart-1-A.prev_match,A.prev_length-3);A.lookahead-=A.prev_length-1;A.prev_length-=2;do++A.strstart<=f&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);while(--A.prev_length!==0);A.match_available=0;A.match_length=2;A.strstart++;if(b&&(kT(A,!1),A.strm.avail_out===0))return 1}else if(A.match_available){if((b=
lC(A,0,A.window[A.strstart-1]))&&kT(A,!1),A.strstart++,A.lookahead--,A.strm.avail_out===0)return 1}else A.match_available=1,A.strstart++,A.lookahead--}A.match_available&&(lC(A,0,A.window[A.strstart-1]),A.match_available=0);A.insert=A.strstart<2?A.strstart:2;return Q===4?(kT(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(kT(A,!1),A.strm.avail_out===0)?1:2};
ZTA=function(A,Q){for(var b,f,a,T=A.window;;){if(A.lookahead<=258){qg(A);if(A.lookahead<=258&&Q===0)return 1;if(A.lookahead===0)break}A.match_length=0;if(A.lookahead>=3&&A.strstart>0&&(f=A.strstart-1,b=T[f],b===T[++f]&&b===T[++f]&&b===T[++f])){for(a=A.strstart+258;b===T[++f]&&b===T[++f]&&b===T[++f]&&b===T[++f]&&b===T[++f]&&b===T[++f]&&b===T[++f]&&b===T[++f]&&f<a;);A.match_length=258-(a-f);A.match_length>A.lookahead&&(A.match_length=A.lookahead)}A.match_length>=3?(b=lC(A,1,A.match_length-3),A.lookahead-=
A.match_length,A.strstart+=A.match_length,A.match_length=0):(b=lC(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++);if(b&&(kT(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return Q===4?(kT(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(kT(A,!1),A.strm.avail_out===0)?1:2};
yEC=function(A,Q){for(var b;;){if(A.lookahead===0&&(qg(A),A.lookahead===0)){if(Q===0)return 1;break}A.match_length=0;b=lC(A,0,A.window[A.strstart]);A.lookahead--;A.strstart++;if(b&&(kT(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return Q===4?(kT(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(kT(A,!1),A.strm.avail_out===0)?1:2};
tl=function(A,Q,b,f,a){this.good_length=A;this.max_lazy=Q;this.nice_length=b;this.max_chain=f;this.func=a};
YYW=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 US.Buf16(1146);this.dyn_dtree=new US.Buf16(122);this.bl_tree=new US.Buf16(78);Jl(this.dyn_ltree);Jl(this.dyn_dtree);Jl(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new US.Buf16(16);this.heap=new US.Buf16(573);Jl(this.heap);this.heap_max=this.heap_len=0;this.depth=new US.Buf16(573);Jl(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};
DjC=function(A,Q){if(!A||!A.state||Q>5||Q<0)return A?iC(A,-2):-2;var b=A.state;if(!A.output||!A.input&&A.avail_in!==0||b.status===666&&Q!==4)return iC(A,A.avail_out===0?-5:-2);b.strm=A;var f=b.last_flush;b.last_flush=Q;if(b.status===42)if(b.wrap===2)A.adler=0,Ix(b,31),Ix(b,139),Ix(b,8),b.gzhead?(Ix(b,(b.gzhead.text?1:0)+(b.gzhead.hcrc?2:0)+(b.gzhead.extra?4:0)+(b.gzhead.name?8:0)+(b.gzhead.comment?16:0)),Ix(b,b.gzhead.time&255),Ix(b,b.gzhead.time>>8&255),Ix(b,b.gzhead.time>>16&255),Ix(b,b.gzhead.time>>
24&255),Ix(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),Ix(b,b.gzhead.os&255),b.gzhead.extra&&b.gzhead.extra.length&&(Ix(b,b.gzhead.extra.length&255),Ix(b,b.gzhead.extra.length>>8&255)),b.gzhead.hcrc&&(A.adler=C4(A.adler,b.pending_buf,b.pending,0)),b.gzindex=0,b.status=69):(Ix(b,0),Ix(b,0),Ix(b,0),Ix(b,0),Ix(b,0),Ix(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),Ix(b,3),b.status=113);else{var a=8+(b.w_bits-8<<4)<<8;a|=(b.strategy>=2||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6;b.strstart!==0&&(a|=
32);b.status=113;HE(b,a+(31-a%31));b.strstart!==0&&(HE(b,A.adler>>>16),HE(b,A.adler&65535));A.adler=1}if(b.status===69)if(b.gzhead.extra){for(a=b.pending;b.gzindex<(b.gzhead.extra.length&65535)&&(b.pending!==b.pending_buf_size||(b.gzhead.hcrc&&b.pending>a&&(A.adler=C4(A.adler,b.pending_buf,b.pending-a,a)),V7(A),a=b.pending,b.pending!==b.pending_buf_size));)Ix(b,b.gzhead.extra[b.gzindex]&255),b.gzindex++;b.gzhead.hcrc&&b.pending>a&&(A.adler=C4(A.adler,b.pending_buf,b.pending-a,a));b.gzindex===b.gzhead.extra.length&&
(b.gzindex=0,b.status=73)}else b.status=73;if(b.status===73)if(b.gzhead.name){a=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>a&&(A.adler=C4(A.adler,b.pending_buf,b.pending-a,a)),V7(A),a=b.pending,b.pending===b.pending_buf_size)){var T=1;break}T=b.gzindex<b.gzhead.name.length?b.gzhead.name.charCodeAt(b.gzindex++)&255:0;Ix(b,T)}while(T!==0);b.gzhead.hcrc&&b.pending>a&&(A.adler=C4(A.adler,b.pending_buf,b.pending-a,a));T===0&&(b.gzindex=0,b.status=91)}else b.status=91;if(b.status===
91)if(b.gzhead.comment){a=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>a&&(A.adler=C4(A.adler,b.pending_buf,b.pending-a,a)),V7(A),a=b.pending,b.pending===b.pending_buf_size)){T=1;break}T=b.gzindex<b.gzhead.comment.length?b.gzhead.comment.charCodeAt(b.gzindex++)&255:0;Ix(b,T)}while(T!==0);b.gzhead.hcrc&&b.pending>a&&(A.adler=C4(A.adler,b.pending_buf,b.pending-a,a));T===0&&(b.status=103)}else b.status=103;b.status===103&&(b.gzhead.hcrc?(b.pending+2>b.pending_buf_size&&V7(A),
b.pending+2<=b.pending_buf_size&&(Ix(b,A.adler&255),Ix(b,A.adler>>8&255),A.adler=0,b.status=113)):b.status=113);if(b.pending!==0){if(V7(A),A.avail_out===0)return b.last_flush=-1,0}else if(A.avail_in===0&&(Q<<1)-(Q>4?9:0)<=(f<<1)-(f>4?9:0)&&Q!==4)return iC(A,-5);if(b.status===666&&A.avail_in!==0)return iC(A,-5);if(A.avail_in!==0||b.lookahead!==0||Q!==0&&b.status!==666){f=b.strategy===2?yEC(b,Q):b.strategy===3?ZTA(b,Q):rO[b.level].func(b,Q);if(f===3||f===4)b.status=666;if(f===1||f===3)return A.avail_out===
0&&(b.last_flush=-1),0;if(f===2&&(Q===1?(XH(b,2,3),S7(b,256,OS),b.bi_valid===16?(PE(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):b.bi_valid>=8&&(b.pending_buf[b.pending++]=b.bi_buf&255,b.bi_buf>>=8,b.bi_valid-=8)):Q!==5&&(XH(b,0,3),orW(b,0,0),Q===3&&(Jl(b.head),b.lookahead===0&&(b.strstart=0,b.block_start=0,b.insert=0))),V7(A),A.avail_out===0))return b.last_flush=-1,0}if(Q!==4)return 0;if(b.wrap<=0)return 1;b.wrap===2?(Ix(b,A.adler&255),Ix(b,A.adler>>8&255),Ix(b,A.adler>>16&255),Ix(b,A.adler>>24&255),Ix(b,
A.total_in&255),Ix(b,A.total_in>>8&255),Ix(b,A.total_in>>16&255),Ix(b,A.total_in>>24&255)):(HE(b,A.adler>>>16),HE(b,A.adler&65535));V7(A);b.wrap>0&&(b.wrap=-b.wrap);return b.pending!==0?0:1};
$je=function(A){if(!(this instanceof $je))return new $je(A);A=this.options=US.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},A||{});A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new N6b;this.strm.avail_out=0;var Q=this.strm;var b=A.level,f=A.method,a=A.windowBits,T=A.memLevel,G=A.strategy;if(Q){var p=1;b===-1&&(b=6);a<0?(p=0,a=-a):a>15&&
(p=2,a-=16);if(T<1||T>9||f!==8||a<8||a>15||b<0||b>9||G<0||G>4)Q=iC(Q,-2);else{a===8&&(a=9);var P=new YYW;Q.state=P;P.strm=Q;P.wrap=p;P.gzhead=null;P.w_bits=a;P.w_size=1<<P.w_bits;P.w_mask=P.w_size-1;P.hash_bits=T+7;P.hash_size=1<<P.hash_bits;P.hash_mask=P.hash_size-1;P.hash_shift=~~((P.hash_bits+3-1)/3);P.window=new US.Buf8(P.w_size*2);P.head=new US.Buf16(P.hash_size);P.prev=new US.Buf16(P.w_size);P.lit_bufsize=1<<T+6;P.pending_buf_size=P.lit_bufsize*4;P.pending_buf=new US.Buf8(P.pending_buf_size);
P.d_buf=P.lit_bufsize;P.l_buf=3*P.lit_bufsize;P.level=b;P.strategy=G;P.method=f;if(Q&&Q.state){Q.total_in=Q.total_out=0;Q.data_type=2;b=Q.state;b.pending=0;b.pending_out=0;b.wrap<0&&(b.wrap=-b.wrap);b.status=b.wrap?42:113;Q.adler=b.wrap===2?0:1;b.last_flush=0;if(!szJ){f=Array(16);for(T=G=0;T<28;T++)for(RMX[T]=G,a=0;a<1<<jze[T];a++)L4[G++]=T;L4[G-1]=T;for(T=G=0;T<16;T++)for(eMW[T]=G,a=0;a<1<<gr9[T];a++)Mg[G++]=T;for(G>>=7;T<30;T++)for(eMW[T]=G<<7,a=0;a<1<<gr9[T]-7;a++)Mg[256+G++]=T;for(a=0;a<=15;a++)f[a]=
0;for(a=0;a<=143;)OS[a*2+1]=8,a++,f[8]++;for(;a<=255;)OS[a*2+1]=9,a++,f[9]++;for(;a<=279;)OS[a*2+1]=7,a++,f[7]++;for(;a<=287;)OS[a*2+1]=8,a++,f[8]++;HTe(OS,287,f);for(a=0;a<30;a++)n4[a*2+1]=5,n4[a*2]=IkC(a,5);mjF=new nr9(OS,jze,257,286,15);AuJ=new nr9(n4,gr9,0,30,15);Q_U=new nr9([],bcJ,0,19,7);szJ=!0}b.l_desc=new kxi(b.dyn_ltree,mjF);b.d_desc=new kxi(b.dyn_dtree,AuJ);b.bl_desc=new kxi(b.bl_tree,Q_U);b.bi_buf=0;b.bi_valid=0;CBJ(b);b=0}else b=iC(Q,-2);b===0&&(Q=Q.state,Q.window_size=2*Q.w_size,Jl(Q.head),
Q.max_lazy_match=rO[Q.level].max_lazy,Q.good_match=rO[Q.level].good_length,Q.nice_match=rO[Q.level].nice_length,Q.max_chain_length=rO[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=2,Q.match_available=0,Q.ins_h=0);Q=b}}else Q=-2;if(Q!==0)throw Error(K4[Q]);A.header&&(Q=this.strm)&&Q.state&&Q.state.wrap===2&&(Q.state.gzhead=A.header);if(A.dictionary){var U;typeof A.dictionary==="string"?U=fwY(A.dictionary):awJ.call(A.dictionary)==="[object ArrayBuffer]"?
U=new Uint8Array(A.dictionary):U=A.dictionary;A=this.strm;T=U;G=T.length;if(A&&A.state)if(U=A.state,Q=U.wrap,Q===2||Q===1&&U.status!==42||U.lookahead)Q=-2;else{Q===1&&(A.adler=wYe(A.adler,T,G,0));U.wrap=0;G>=U.w_size&&(Q===0&&(Jl(U.head),U.strstart=0,U.block_start=0,U.insert=0),b=new US.Buf8(U.w_size),US.arraySet(b,T,G-U.w_size,U.w_size,0),T=b,G=U.w_size);b=A.avail_in;f=A.next_in;a=A.input;A.avail_in=G;A.next_in=0;A.input=T;for(qg(U);U.lookahead>=3;){T=U.strstart;G=U.lookahead-2;do U.ins_h=(U.ins_h<<
U.hash_shift^U.window[T+3-1])&U.hash_mask,U.prev[T&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=T,T++;while(--G);U.strstart=T;U.lookahead=2;qg(U)}U.strstart+=U.lookahead;U.block_start=U.strstart;U.insert=U.lookahead;U.lookahead=0;U.match_length=U.prev_length=2;U.match_available=0;A.next_in=f;A.input=a;A.avail_in=b;U.wrap=Q;Q=0}else Q=-2;if(Q!==0)throw Error(K4[Q]);this._dict_set=!0}};
Tnf=function(A,Q){Q=Q||{};Q.gzip=!0;Q=new $je(Q);Q.push(A,!0);if(Q.err)throw Q.msg||K4[Q.err];return Q.result};
F54=function(A,Q){var b=dJA();b&&b.publish.call(b,A.toString(),A,Q)};
Xjy=function(A,Q,b){var f=dJA();if(!f)return 0;var a=f.subscribe(A.toString(),function(T,G){var p=_.zV("ytPubsub2Pubsub2SkipSubKey");p&&p==a||(p=function(){if(GUU[a])try{if(G&&A instanceof BnC&&A!=T)try{var P=A.dataClass,U=G;if(!U.args||!U.version)throw Error("Wc");try{if(!P.version_){var L=new P;P.version_=L.version}var M=P.version_}catch(l){}if(!M||U.version!=M)throw Error("Xc");try{G=Reflect.construct(P,_.xC(U.args))}catch(l){throw l.message="yt.pubsub2.Data.deserialize(): "+l.message,l;}}catch(l){throw l.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+A.toString()+": "+l.message,l;}Q.call(b||window,G)}catch(l){_.xQ(l)}},pje[A.toString()]?_.zV("yt.scheduler.instance")?_.j7.addLowPriorityJob(p):_.Xe(p,0):p())});
GUU[a]=!0;PNA[A.toString()]||(PNA[A.toString()]=[]);PNA[A.toString()].push(a);return a};
MKY=function(){var A=ScF,Q=Xjy(UJf,function(b){A.apply(void 0,arguments);L5J(Q)});
return Q};
L5J=function(A){var Q=dJA();Q&&(typeof A==="number"&&(A=[A]),_.ZR(A,function(b){Q.unsubscribeByKey(b);delete GUU[b]}))};
dJA=function(){return _.zV("ytPubsub2Pubsub2Instance")};
lwe=function(A,Q,b){b=b===void 0?{sampleRate:.1}:b;Math.random()<Math.min(.02,b.sampleRate/100)&&F54("meta_logging_csi_event",{timerName:A,timelineData:Q})};
_.K5A=function(A){return A?(A=A.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Ns(A):null:null};
_.Rx=function(A){return A?(A=A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.k8(A):null:null};
Juy=function(){icW||(icW=_.Rx(_.vG("WORKER_SERIALIZATION_URL")));return icW||void 0};
_.OcX=function(){var A=Juy();VKW||A===void 0||(VKW=new Worker(_.IT(A),void 0));return VKW};
_.nlU=function(){return typeof Worker==="function"&&Juy()?!0:!1};
_.CNy=function(){if(_.nlU()&&!kU4){var A=function(b){b=b.data;if(b.op==="gzippedGelBatch"){var f=Iwy.get(b.key);f&&(HcF(b.gzippedBatch,f.latencyPayload,f.url,f.options,f.sendFn),Iwy.delete(b.key))}},Q=_.OcX();
Q&&(Q.addEventListener("message",A),Q.onerror=function(){Iwy.clear()},kU4=!0)}};
gli=function(A,Q,b,f,a){a=a===void 0?!1:a;var T={startTime:(0,_.f4)(),ticks:{},infos:{}};if(gO)try{var G=qcA(Q);if(G!=null&&(G>olb||G<tK6))f(A,b);else{if(_.K("gzip_gel_with_worker")&&(_.K("initial_gzip_use_main_thread")&&!ruf||!_.K("initial_gzip_use_main_thread"))){kU4||_.CNy();var p=_.OcX();if(p&&!a){Iwy.set(j_A,{latencyPayload:T,url:A,options:b,sendFn:f});p.postMessage({op:"gelBatchToGzip",serializedBatch:Q,key:j_A});j_A++;return}}var P=Tnf(RBX(Q));HcF(P,T,A,b,f)}}catch(U){_.wN(U),f(A,b)}else f(A,
b)};
HcF=function(A,Q,b,f,a){ruf=!1;var T=(0,_.f4)();Q.ticks.gelc=T;e7++;_.K("disable_compression_due_to_performance_degredation")&&T-Q.startTime>=eBF&&(hBJ++,_.K("abandon_compression_after_N_slow_zips")?e7===_.GP("compression_disable_point")&&hBJ>W5U&&(gO=!1):gO=!1);vlW(Q);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=A;f.postParams=void 0;a(b,f)};
El4=function(A){var Q=Q===void 0?!1:Q;var b=b===void 0?!1:b;var f=(0,_.f4)(),a={startTime:f,ticks:{},infos:{}},T=Q?_.zV("yt.logging.gzipForFetch",!1):!0;if(gO&&T){if(!A.body)return A;try{var G=b?A.body:typeof A.body==="string"?A.body:JSON.stringify(A.body);T=G;if(!b&&typeof G==="string"){var p=qcA(G);if(p!=null&&(p>olb||p<tK6))return A;b=Q?{level:1}:void 0;T=Tnf(RBX(G),b);var P=(0,_.f4)();a.ticks.gelc=P;if(Q){e7++;if((_.K("disable_compression_due_to_performance_degredation")||_.K("disable_compression_due_to_performance_degradation_lr"))&&
P-f>=eBF)if(hBJ++,_.K("abandon_compression_after_N_slow_zips")||_.K("abandon_compression_after_N_slow_zips_lr")){Q=hBJ/e7;var U=W5U/_.GP("compression_disable_point");e7>0&&e7%_.GP("compression_disable_point")===0&&Q>=U&&(gO=!1)}else gO=!1;vlW(a)}}A.headers=Object.assign({},{"Content-Encoding":"gzip"},A.headers||{});A.body=T;return A}catch(L){return _.wN(L),A}}else return A};
qcA=function(A){try{return(new Blob(A.split(""))).size}catch(Q){return _.wN(Q),null}};
vlW=function(A){_.K("gel_compression_csi_killswitch")||!_.K("log_gel_compression_latency")&&!_.K("log_gel_compression_latency_lr")||lwe("gel_compression",A,{sampleRate:.1})};
xJX=function(){this.blockSize=-1};
hl=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var A=1;A<this.blockSize;++A)this.pad_[A]=0;this.total_=this.inbuf_=0;this.reset()};
zBF=function(A){A=Object.assign({},A);delete A.Authorization;var Q=_.cuy();if(Q){var b=new hl;b.update(_.vG("INNERTUBE_API_KEY"));b.update(Q);A.hash=_.Cs(b.digest(),3)}return A};
vE=function(){wj6||(wj6=new _.WE("yt.innertube"));return wj6};
usJ=function(A,Q,b,f){if(f)return null;f=vE().get("nextId",!0)||1;var a=vE().get("requests",!0)||{};a[f]={method:A,request:Q,authState:zBF(b),requestTime:Math.round((0,_.f4)())};vE().set("nextId",f+1,86400,!0);vE().set("requests",a,86400,!0);return f};
ZcW=function(A){var Q=vE().get("requests",!0)||{};delete Q[A];vE().set("requests",Q,86400,!0)};
YcU=function(A){var Q=vE().get("requests",!0);if(Q){for(var b in Q){var f=Q[b];if(!(Math.round((0,_.f4)())-f.requestTime<6E4)){var a=f.authState,T=zBF(_.VL6(!1));_.j2.equals(a,T)&&(a=f.request,"requestTimeMs"in a&&(a.requestTimeMs=Math.round((0,_.f4)())),yu4(A,f.method,a,{}));delete Q[b]}}vE().set("requests",Q,86400,!0)}};
DJb=function(A){var Q;return(A=A==null?void 0:(Q=A.error)==null?void 0:Q.code)&&A>=400&&A<=599?!1:!0};
$J4=function(A){var Q;A=A==null?void 0:(Q=A.error)==null?void 0:Q.code;return!(A!==400&&A!==415)};
s_C=function(){if(Nn4)return Nn4();var A={};Nn4=bC("LogsDatabaseV2",{objectStores:(A.LogsRequestsStore={addedAtVersion:2},A),shared:!1,upgrade:function(Q,b,f){b(2)&&ES(Q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});b(3);b(5)&&(f=f.objectStore("LogsRequestsStore"),f.JSC$10582_wrapped.indexNames.contains("newRequest")&&f.JSC$10582_wrapped.deleteIndex("newRequest"),xT(f,"newRequestV2",["status","interface","timestamp"]));b(7)&&Q.JSC$10567_wrapped.objectStoreNames.contains("sapisid")&&Q.JSC$10567_wrapped.deleteObjectStore("sapisid");
b(9)&&Q.JSC$10567_wrapped.objectStoreNames.contains("SWHealthLog")&&Q.JSC$10567_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Nn4()};
cE=function(A){return _.YR(s_C(),A)};
A8A=function(A,Q){var b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return b={startTime:(0,_.f4)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},G.yield(cE(Q),2);if(G.nextAddress!=3)return f=G.yieldResult,a=Object.assign({},A,{options:JSON.parse(JSON.stringify(A.options)),interface:_.vG("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),G.yield(f.put("LogsRequestsStore",a),3);T=G.yieldResult;b.ticks.tc=(0,_.f4)();mJX(b);return G.return(T)})};
QPJ=function(A,Q){var b,f,a,T,G,p,P,U,L;return _.B(function(M){if(M.nextAddress==1)return b={startTime:(0,_.f4)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},M.yield(cE(Q),2);if(M.nextAddress!=3)return f=M.yieldResult,a=_.vG("INNERTUBE_CONTEXT_CLIENT_NAME",0),T=[A,a,0],G=[A,a,(0,_.f4)()],p=IDBKeyRange.bound(T,G),P="prev",_.K("use_fifo_for_networkless")&&(P="next"),U=void 0,L=A==="NEW"?"readwrite":"readonly",_.K("use_readonly_for_get_most_recent_by_status_killswitch")&&(L="readwrite"),
M.yield(_.D1(f,["LogsRequestsStore"],{mode:L,enableRetries:!0},function(l){return _.ax(l.objectStore("LogsRequestsStore").index("newRequestV2"),{query:p,direction:P},function(J){J.getValue()&&(U=J.getValue(),A==="NEW"&&(U.status="QUEUED",J.update(U)))})}),3);
b.ticks.tc=(0,_.f4)();mJX(b);return M.return(U)})};
b0y=function(A,Q){var b;return _.B(function(f){if(f.nextAddress==1)return f.yield(cE(Q),2);b=f.yieldResult;return f.return(_.D1(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(a){var T=a.objectStore("LogsRequestsStore");return T.get(A).then(function(G){if(G)return G.status="QUEUED",T.put(G).then(function(){return G})})}))})};
f3b=function(A,Q,b,f){b=b===void 0?!0:b;var a;return _.B(function(T){if(T.nextAddress==1)return T.yield(cE(Q),2);a=T.yieldResult;return T.return(_.D1(a,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(G){var p=G.objectStore("LogsRequestsStore");return p.get(A).then(function(P){return P?(P.status="NEW",b&&(P.sendCount+=1),f!==void 0&&(P.options.compress=f),p.put(P).then(function(){return P})):xR.resolve(void 0)})}))})};
a3b=function(A,Q){var b;return _.B(function(f){if(f.nextAddress==1)return f.yield(cE(Q),2);b=f.yieldResult;return f.return(b.delete("LogsRequestsStore",A))})};
TFW=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(cE(A),2);Q=f.yieldResult;b=(0,_.f4)()-2592E6;return f.yield(_.D1(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(a){return NQ(a.objectStore("LogsRequestsStore"),{},function(T){if(T.getValue().timestamp<=b)return T.delete().then(function(){return T.continue()})})}),0)})};
d7y=function(){_.B(function(A){return A.yield(DeX("LogsDatabaseV2"),0)})};
mJX=function(A){_.K("nwl_csi_killswitch")||lwe("networkless_performance",A,{sampleRate:1})};
_.GeC=function(A){return _.YR(FXC(),A)};
BFF=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(_.GeC(A),2);Q=f.yieldResult;b=(0,_.f4)()-2592E6;return f.yield(_.D1(Q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(a){return NQ(a.objectStore("SWHealthLog"),{},function(T){if(T.getValue().timestamp<=b)return T.delete().then(function(){return T.continue()})})}),0)})};
p8b=function(A){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(_.GeC(A),2);Q=b.yieldResult;return b.yield(Q.clear("SWHealthLog"),0)})};
_.zp=function(A,Q,b,f,a,T,G){a=a===void 0?"":a;T=T===void 0?!1:T;G=G===void 0?!1:G;if(A)if(b&&!h$("cobalt"))_.wN(new _.IO("Legacy referrer-scrubbed ping detected")),A&&Pe6(A,void 0,{scrubReferrer:!0});else if(a)WEf(A,Q,"POST",a,f);else if(_.vG("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||G)WEf(A,Q,"GET","",f,void 0,T,G);else{b:{try{c:{var p=new X8C({url:A});if(p.urlParamValues_.dsh==="1")var P=null;else{var U=p.urlParamValues_.ae;if(U==="1"){var L=p.urlParamValues_.adurl;if(L)try{P={version:3,directUrl:decodeURIComponent(L),
asyncUrl:HHX(p.JSC$9418_url_,"act=1","ri=1",SGU(p))};break c}catch(n){}}P=U==="2"?{version:4,directUrl:HHX(p.JSC$9418_url_,"dct=1","suid="+p.suid_,""),asyncUrl:HHX(p.JSC$9418_url_,"act=1","ri=1","suid="+p.suid_)}:null}}if(P){var M=_.LJ(A);var l=!(!M||!M.endsWith("/aclk")||_.EO(A,"ri")!=="1");break b}}catch(n){}l=!1}if(l){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(A,"")){var J=!0;break b}}catch(n){}J=!1}J?(Q&&Q(),b=!0):b=!1}else b=!1;b||Pe6(A,Q)}};
Pe6=function(A,Q,b){b=b===void 0?{}:b;var f=new Image,a=""+U7J++;LXW[a]=f;f.onload=f.onerror=function(){Q&&LXW[a]&&Q();delete LXW[a]};
b.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=A};
wO=function(A,Q){MMW(A,Q==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
l3C=function(A){var Q;return((Q=document.featurePolicy)==null?0:Q.allowedFeatures().includes("attribution-reporting"))?A+"&nis=6":A+"&nis=5"};
KXe=function(A){if(!A)return!1;try{var Q;if(((Q=_.y6(A))==null?void 0:Q.asm)==="4")return!0}catch(b){_.xQ(b)}return!1};
MMW=function(A,Q){Q?(A=l3C(A),_.zp(A,void 0,void 0,void 0,"",!0,!0)):_.zp(A)};
J8Y=function(){i0X||(i0X=new _.WE("yt.offline"));return i0X};
VMy=function(A){if(_.K("offline_error_handling")){var Q=J8Y().get("errors",!0)||{};Q[A.message]={name:A.name,stack:A.stack};A.level&&(Q[A.message].level=A.level);J8Y().set("errors",Q,2592E3,!0)}};
nzX=function(A,Q,b,f){f=f===void 0?!1:f;Q=_.K("web_fp_via_jspb")?Object.assign({},Q):Q;_.K("use_cfr_monitor")&&O04(A,Q);if(_.K("use_request_time_ms_header"))Q.headers&&A$(A)&&(Q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.f4)())));else{var a;if((a=Q.postParams)==null?0:a.requestTimeMs)Q.postParams.requestTimeMs=Math.round((0,_.f4)())}b&&Object.keys(Q).length===0?_.zp(A):Q.compress?Q.postBody?(typeof Q.postBody!=="string"&&(Q.postBody=JSON.stringify(Q.postBody)),gli(A,Q.postBody,
Q,_.MQ,f)):gli(A,JSON.stringify(Q.postParams),Q,cQi,f):_.MQ(A,Q)};
key=function(A,Q){_.K("use_event_time_ms_header")&&A$(A)&&(Q.headers||(Q.headers={}),Q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.f4)())));return Q};
_.H04=function(){I3W||(I3W=new _.uC({logOfflineErrors:!0,enablePolling:!0}));return I3W};
O04=function(A,Q){var b=Q.onError?Q.onError:function(){};
Q.onError=function(a,T){Zg().requestComplete(A,!1);b(a,T)};
var f=Q.onSuccess?Q.onSuccess:function(){};
Q.onSuccess=function(a,T){Zg().requestComplete(A,!0);f(a,T)}};
_.CeA=function(){return _.sp(document.location.toString())!=="www.youtube-nocookie.com"};
_.tMi=function(){return _.zV("ytNetworklessLoggingInitializationOptions")?_.qGA.isNwlInitialized:_.oz6};
r8F=function(A,Q){if(_.K("polymer_on_demand_shady_dom")){var b;var f=(b=A.__shady_native_firstElementChild)!=null?b:A.firstElementChild}else f=A.firstElementChild;for(;f;){if(A=Q(f)?f:r8F(f,Q))return A;f=f.nextElementSibling}return null};
RU4=function(){var A=document;if("visibilityState"in A)return A.visibilityState;var Q=jP9+"VisibilityState";if(Q in A)return A[Q]};
_.gz6=function(A,Q){var b;y7(A,function(f){b=Q[f];return!!b});
return b};
_.Ng=function(A){var Q=eUA(A);Q?Q.focus(void 0):_.Dg(A)};
eUA=function(A){return(A=r8F(A,function(Q){return _.mk(Q)?hUf(Q)&&!!Q.offsetParent:!1}))?A:null};
_.Dg=function(A,Q){A.hasAttribute("tabindex")||A.setAttribute("tabindex","-1");A.focus(Q)};
WXi=function(A,Q,b,f){f=f===void 0?{}:f;A.addEventListener&&(Q!="mouseenter"||"onmouseenter"in document?Q!="mouseleave"||"onmouseenter"in document?Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"):Q="mouseout":Q="mouseover");return _.j2.findKey(Aq,function(a){var T=typeof a[4]==="boolean"&&a[4]==!!f,G=_.ZU(a[4])&&_.ZU(f)&&_.j2.equals(a[4],f);return!!a.length&&a[0]==A&&a[1]==Q&&a[2]==b&&(T||G)})};
_.bv=function(A,Q,b,f){f=f===void 0?{}:f;if(!A||!A.addEventListener&&!A.attachEvent)return"";var a=WXi(A,Q,b,f);if(a)return a;a=++vzy.count+"";var T=!(Q!="mouseenter"&&Q!="mouseleave"||!A.addEventListener||"onmouseenter"in document);var G=T?function(p){p=new Q_(p);if(!_.vl(p.relatedTarget,function(P){return P==A},!0))return p.currentTarget=A,p.type=Q,b.call(A,p)}:function(p){p=new Q_(p);
p.currentTarget=A;return b.call(A,p)};
G=_.cG(G);A.addEventListener?(Q=="mouseenter"&&T?Q="mouseover":Q=="mouseleave"&&T?Q="mouseout":Q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(Q="MozMousePixelScroll"),Ez4()||typeof f==="boolean"?A.addEventListener(Q,G,f):A.addEventListener(Q,G,!!f.capture)):A.attachEvent("on"+Q,G);Aq[a]=[A,Q,b,G,f];return a};
_.c8J=function(A,Q,b){var f=f===void 0?{}:f;var a=_.bv(A,Q,function(){_.x7F(a);b.apply(A,arguments)},f)};
_.x7F=function(A){A&&(typeof A=="string"&&(A=[A]),_.ZR(A,function(Q){if(Q in Aq){var b=Aq[Q],f=b[0],a=b[1],T=b[3];b=b[4];f.removeEventListener?Ez4()||typeof b==="boolean"?f.removeEventListener(a,T,b):f.removeEventListener(a,T,!!b.capture):f.detachEvent&&f.detachEvent("on"+a,T);delete Aq[Q]}}))};
fu=function(A){this.callback_=A;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(A=0;A<4;A++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.bv(window,"mousemove",(0,_.IL)(this.onMouseMove_,this));this.timerId_=_.St((0,_.IL)(this.checkPosition_,this),25)};
w89=function(){var A={};var Q=A.preferMobileEvents===void 0?!1:A.preferMobileEvents;A=A.enableScrollEventListener===void 0?!0:A.enableScrollEventListener;if(_.zV("_lact",window)==null){var b=parseInt(_.vG("LACT"),10);b=isFinite(b)?Date.now()-Math.max(b,0):-1;_.Al("_lact",b,window);_.Al("_fact",b,window);b==-1&&_.a4();_.bv(document,"keydown",_.a4);_.bv(document,"keyup",_.a4);_.bv(document,"mousedown",_.a4);_.bv(document,"mouseup",_.a4);Q?_.bv(window,"touchmove",function(){zUi("touchmove",200)},{passive:!0}):
(_.bv(window,"resize",function(){zUi("resize",200)}),A&&_.bv(window,"scroll",function(){zUi("scroll",200)}));
new fu(function(){zUi("mouse",100)});
_.bv(document,"touchstart",_.a4,{passive:!0});_.bv(document,"touchend",_.a4,{passive:!0})}};
zUi=function(A,Q){upC[A]||(upC[A]=!0,_.j7.addLowPriorityJob(function(){_.a4();upC[A]=!1},Q))};
_.a4=function(){_.zV("_lact",window)==null&&w89();var A=Date.now();_.Al("_lact",A,window);_.zV("_fact",window)==-1&&_.Al("_fact",A,window);(A=_.zV("ytglobal.ytUtilActivityCallback_"))&&A()};
_.TD=function(){var A=_.zV("_lact",window);return A==null?-1:Math.max(Date.now()-A,0)};
_.pu=function(A,Q,b){var f=_.Fd();if(f&&Q){var a=f.subscribe(A,function(){var T=arguments,G=function(){GD[a]&&Q.apply&&typeof Q.apply=="function"&&Q.apply(b||window,T)};
try{_.Z0b[A]?G():_.Xe(G,0)}catch(p){_.xQ(p)}},b);
GD[a]=!0;Bv[A]||(Bv[A]=[]);Bv[A].push(a);return a}return 0};
_.y8b=function(A){var Q=_.Fd();Q&&(typeof A==="number"?A=[A]:typeof A==="string"&&(A=[parseInt(A,10)]),_.ZR(A,function(b){Q.unsubscribeByKey(b);delete GD[b]}))};
_.YGC=function(A,Q){var b=_.Fd();b&&b.publish.apply(b,arguments)};
_.$7f=function(A){var Q=_.Fd();if(Q)if(Q.clear(A),A)D7f(A);else for(var b in Bv)D7f(b)};
_.Fd=function(){return _.by.ytPubsubPubsubInstance};
D7f=function(A){Bv[A]&&(A=Bv[A],_.ZR(A,function(Q){GD[Q]&&delete GD[Q]}),A.length=0)};
NFA=function(){var A,Q;return"h5vcc"in Pv&&((A=Pv.h5vcc.traceEvent)==null?0:A.traceBegin)&&((Q=Pv.h5vcc.traceEvent)==null?0:Q.traceEnd)?1:"performance"in Pv&&Pv.performance.mark&&Pv.performance.measure?2:0};
sPC=function(A){var Q=NFA();switch(Q){case 1:Pv.h5vcc.traceEvent.traceBegin("YTLR",A);break;case 2:Pv.performance.mark(A+"-start");break;case 0:break;default:_.x1(Q,"unknown trace type")}};
m79=function(A){var Q=NFA();switch(Q){case 1:Pv.h5vcc.traceEvent.traceEnd("YTLR",A);break;case 2:Q=A+"-start";var b=A+"-end";Pv.performance.mark(b);Pv.performance.measure(A,Q,b);break;case 0:break;default:_.x1(Q,"unknown trace type")}};
AfJ=function(A){var Q,b;(b=(Q=window).onerror)==null||b.call(Q,A.message,"",0,0,A)};
QY6=function(A){if(_.K("web_lifecycle_error_handling_killswitch"))return A();try{return A()}catch(Q){AfJ(Q)}};
bEU=function(A){return[A.auth===void 0?"undefined":A.auth,A.isJspb===void 0?"undefined":A.isJspb,A.cttAuthInfo===void 0?"undefined":A.cttAuthInfo,A.tier===void 0?"undefined":A.tier].join("/")};
_.V=function(A,Q){if(A)return A[Q.name]};
Sn=function(){var A=_.zV("yt.logging.ims");A||(A=new Xd,_.Al("yt.logging.ims",A));return A};
PcW=function(A,Q){if(A.endpoint==="log_event"){fcF(A);var b=ac9(A),f=T_9(A.payload)||"",a=dMF(f),T=200;if(a){if(a.enabled===!1&&!_.K("web_payload_policy_disabled_killswitch"))return;T=F4X(a.tier);if(T===400){GZy(A,Q);return}}Ut[b]=!0;b={cttAuthInfo:b,isJspb:!1,tier:T};Sn().storePayload(b,A.payload);B_9(Q,!1,b,pzi(f))}};
S49=function(A,Q,b){if(Q.endpoint==="log_event"){fcF(void 0,Q);var f=ac9(Q,!0),a=dMF(A),T=200;if(a){if(a.enabled===!1&&!_.K("web_payload_policy_disabled_killswitch"))return;T=F4X(a.tier);if(T===400){Xzi(A,Q,b);return}}Ut[f]=!0;f={cttAuthInfo:f,isJspb:!0,tier:T};Sn().storePayload(f,tM(Q.payload));B_9(b,!0,f,pzi(A))}};
B_9=function(A,Q,b,f){Q=Q===void 0?!1:Q;f=f===void 0?!1:f;A&&(Lu=new A);A=_.GP("tvhtml5_logging_max_batch_ads_fork")||_.GP("tvhtml5_logging_max_batch")||_.GP("web_logging_max_batch")||100;var a=(0,_.f4)(),T=UMb(Q,b.tier),G=T.lastDebounceQueueFromLogTimeMs;f&&(T.useVideoStatsEndPoint=!0);f=0;b&&(f=Sn().getSequenceCount(b));var p=function(){L4e({writeThenSend:!0},Q,b.tier)};
f>=1E3?p():f>=A?Mli||(Mli=lcW(function(){p();Mli=void 0},0)):a-G>=10&&(K44(Q,b.tier),T.lastDebounceQueueFromLogTimeMs=a)};
GZy=function(A,Q){if(A.endpoint==="log_event"){_.K("more_accurate_gel_parser")&&Sn().storePayload({isJspb:!1},A.payload);fcF(A);var b=ac9(A),f=new Map;f.set(b,[A.payload]);var a=T_9(A.payload)||"";Q&&(Lu=new Q);return new _.M3(function(T,G){Lu&&Lu.isReady()?iE9(f,Lu,T,G,{bypassNetworkless:!0},!0,pzi(a)):T()})}};
Xzi=function(A,Q,b){if(Q.endpoint==="log_event"){fcF(void 0,Q);var f=ac9(Q,!0),a=new Map;a.set(f,[tM(Q.payload)]);b&&(Lu=new b);return new _.M3(function(T){Lu&&Lu.isReady()?JfX(a,Lu,T,{bypassNetworkless:!0},!0,pzi(A)):T()})}};
ac9=function(A,Q){var b="";if(A.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(A.cttAuthInfo){if(Q===void 0?0:Q){Q=A.cttAuthInfo.token;b=A.cttAuthInfo;var f=new VlA;b.videoId?f.setVideoId(b.videoId):b.playlistId&&lv(f,2,OEW,SF(b.playlistId));noW[Q]=f}else Q=A.cttAuthInfo,b={},Q.videoId?b.videoId=Q.videoId:Q.playlistId&&(b.playlistId=Q.playlistId),kZY[A.cttAuthInfo.token]=b;b=A.cttAuthInfo.token}return b};
L4e=function(A,Q,b){A=A===void 0?{}:A;Q=Q===void 0?!1:Q;new _.M3(function(f,a){var T=UMb(Q,b),G=T.useVideoStatsEndPoint;T.useVideoStatsEndPoint=!1;Ic4(T.queueTimer);Ic4(T.queueMaxTimer);T.queueMaxTimer=0;Lu&&Lu.isReady()?b===void 0&&_.K("enable_web_tiered_gel")?HEY(f,a,A,Q,300,G):HEY(f,a,A,Q,b,G):(K44(Q,b),f())})};
HEY=function(A,Q,b,f,a,T){var G=Lu;b=b===void 0?{}:b;f=f===void 0?!1:f;a=a===void 0?200:a;T=T===void 0?!1:T;var p=new Map,P=new Map,U={isJspb:f,cttAuthInfo:void 0,tier:a},L={isJspb:f,cttAuthInfo:void 0};if(f){Q=_.F(Object.keys(Ut));for(a=Q.next();!a.done;a=Q.next())a=a.value,P=_.K("enable_web_tiered_gel")?Sn().smartExtractMatchingEntries({keys:[U,L],sizeLimit:1E3}):Sn().extractMatchingEntries({isJspb:!0,cttAuthInfo:a}),P.length>0&&p.set(a,P),(_.K("web_fp_via_jspb_and_json")&&b.writeThenSend||!_.K("web_fp_via_jspb_and_json"))&&
delete Ut[a];JfX(p,G,A,b,!1,T)}else{p=_.F(Object.keys(Ut));for(U=p.next();!U.done;U=p.next())U=U.value,L=_.K("enable_web_tiered_gel")?Sn().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:U,tier:a},{isJspb:!1,cttAuthInfo:U}],sizeLimit:1E3}):Sn().extractMatchingEntries({isJspb:!1,cttAuthInfo:U}),L.length>0&&P.set(U,L),(_.K("web_fp_via_jspb_and_json")&&b.writeThenSend||!_.K("web_fp_via_jspb_and_json"))&&delete Ut[U];iE9(P,G,A,Q,b,!1,T)}};
K44=function(A,Q){A=A===void 0?!1:A;Q=Q===void 0?200:Q;var b=function(){L4e({writeThenSend:!0},A,Q)},f=UMb(A,Q),a=f===Cci||f===q4W?5E3:ooy;
_.K("web_gel_timeout_cap")&&!f.queueMaxTimer&&(a=lcW(function(){b()},a),f.queueMaxTimer=a);
Ic4(f.queueTimer);a=_.vG("LOGGING_BATCH_TIMEOUT",_.GP("web_gel_debounce_ms",1E4));_.K("shorten_initial_gel_batch_timeout")&&tlU&&(a=rfy);a=lcW(function(){_.GP("gel_min_batch_size")>0?Sn().getSequenceCount({cttAuthInfo:void 0,isJspb:A,tier:Q})>=jYU&&b():b()},a);
f.queueTimer=a};
iE9=function(A,Q,b,f,a,T,G){a=a===void 0?{}:a;var p=Math.round((0,_.f4)()),P=A.size,U=Rve(G);A=_.F(A);var L=A.next();for(G={};!L.done;G={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},L=A.next()){var M=_.F(L.value);L=M.next().value;M=M.next().value;G.batchRequest=_.j2.unsafeClone({context:_.XYi(Q.config_||_.Tp())});if(!_.ce(M)&&!_.K("throw_err_when_logevent_malformed_killswitch")){f();break}G.batchRequest.events=M;
(M=kZY[L])&&goi(G.batchRequest,L,M);delete kZY[L];G.dangerousLogToVisitorSession=L==="visitorOnlyApprovedKey";evF(G.batchRequest,p,G.dangerousLogToVisitorSession);hvW(a);G.onSuccess$jscomp$3=function(l){_.K("start_client_gcf")&&_.j7.addLowPriorityJob(function(){return _.B(function(J){return J.yield(W4A(l),0)})});
P--;P||b()};
G.networkFailures=0;G.onError$jscomp$5=function(l){return function(){l.networkFailures++;if(a.bypassNetworkless&&l.networkFailures===1)try{yu4(Q,U,l.batchRequest,voY({writeThenSend:!0},l.dangerousLogToVisitorSession,l.onSuccess$jscomp$3,l.onError$jscomp$5,T)),tlU=!1}catch(J){_.xQ(J),f()}P--;P||b()}}(G);
try{yu4(Q,U,G.batchRequest,voY(a,G.dangerousLogToVisitorSession,G.onSuccess$jscomp$3,G.onError$jscomp$5,T)),tlU=!1}catch(l){_.xQ(l),f()}}};
JfX=function(A,Q,b,f,a,T){f=f===void 0?{}:f;var G=Math.round((0,_.f4)()),p={value:A.size},P=new Map([].concat(_.ri(A)));P=_.F(P);for(var U=P.next();!U.done;U=P.next()){var L=_.F(U.value).next().value,M=A.get(L);U=new Eof;var l=Q.config_||_.Tp(),J=new Ku,n=new xMA;_.nt(n,1,l.innertubeContextHostLanguage);_.nt(n,2,l.innertubeContextGeoLocation);_.FH(n,16,l.innertubeContextClientNameFieldNumber);_.nt(n,17,l.innertubeContextClientVersion);if(l.innertubeContextClientConfigInfo){var t=l.innertubeContextClientConfigInfo,
g=new BE;t.coldConfigData&&_.nt(g,1,t.coldConfigData);t.appInstallData&&_.nt(g,6,t.appInstallData);t.coldHashData&&_.nt(g,3,t.coldHashData);t.hotHashData&&g.setHotHashData(t.hotHashData);_.Lp(n,62,g)}(t=_.by.devicePixelRatio)&&t!=1&&_.Gp(n,65,_.cM(t));t=qli();t!==""&&_.nt(n,54,t);t=o_i();if(t.length>0){g=new cf9;for(var e=0;e<t.length;e++){var x=new iv;x.setKey(t[e].key);lv(x,2,zvC,SF(t[e].value));Jq(g,15,iv,x)}_.Lp(J,5,g)}djW(l,n);FWe(J);GxF(n);B6i(l,n);pYe(n);_.K("start_client_gcf")&&PBJ(n);_.vG("DELEGATED_SESSION_ID")&&
!_.K("pageid_as_header_web")&&(l=new V_,_.nt(l,3,_.vG("DELEGATED_SESSION_ID")));!_.K("fill_delegate_context_in_gel_killswitch")&&(t=_.vG("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(g=_.dO(J,V_,3)||new V_,l=J,t=_.nt(g,18,t),_.Lp(l,3,t));l=n;t=_.F(Object.entries(_.y6(_.vG("DEVICE",""))));for(g=t.next();!g.done;g=t.next())e=_.F(g.value),g=e.next().value,e=e.next().value,g==="cbrand"?_.nt(l,12,e):g==="cmodel"?_.nt(l,13,e):g==="cbr"?_.nt(l,87,e):g==="cbrver"?_.nt(l,88,e):g==="cos"?_.nt(l,18,
e):g==="cosver"?_.nt(l,19,e):g==="cplatform"&&_.FH(l,42,TsF(e));J.setClient(n);_.Lp(U,1,J);if(n=noW[L])a:{if(_.Mu(n,Ot(n,OEW,1)))J=1;else if(n.getPlaylistId())J=2;else break a;_.Lp(U,4,n);n=U.getContext()||new Ku;l=_.dO(n,V_,3)||new V_;t=new nu;t.setToken(L);_.FH(t,1,J);Jq(l,12,nu,t);_.Lp(n,3,l)}delete noW[L];L=L==="visitorOnlyApprovedKey";wzW()||_.kk(U,2,G);!L&&(J=_.vG("EVENT_ID"))&&(n=uSF(),l=new ZEU,_.nt(l,1,J),_.kk(l,2,n),_.Lp(U,5,l));hvW(f);if(_.K("jspb_serialize_with_worker")&&(J=_.OcX())&&
f.writeThenSend){_.yfF.set(Y49,{client:Q,resolve:b,networklessOptions:f,isIsolated:a,useVSSEndpoint:T,dangerousLogToVisitorSession:L,requestsOutstanding:p});J.postMessage({op:"gelBatchToSerialize",batchRequest:tM(U),clientEvents:M,key:Y49});Y49++;break}if(M){J=[];for(n=0;n<M.length;n++)try{J.push(new I4(M[n]))}catch(D){_.xQ(new _.IO("Transport failed to deserialize "+String(M[n])))}M=J}else M=[];M=_.F(M);for(J=M.next();!J.done;J=M.next())Jq(U,3,I4,J.value);M={startTime:(0,_.f4)(),ticks:{},infos:{}};
U=U.serialize();M.ticks.geljspc=(0,_.f4)();_.K("log_jspb_serialize_latency")&&lwe("gel_jspb_serialize",M,{sampleRate:.1});_.DMW(U,Q,b,f,a,T,L,p)}};
_.DMW=function(A,Q,b,f,a,T,G,p){f=f===void 0?{}:f;p=p===void 0?{value:0}:p;T=Rve(T);f=voY(f,G,function(P){_.K("start_client_gcf")&&_.j7.addLowPriorityJob(function(){return _.B(function(U){return U.yield(W4A(P),0)})});
p.value--;p.value||b()},function(){p.value--;
p.value||b()},a);
f.headers["Content-Type"]="application/json+protobuf";f.postBodyFormat="JSPB";f.postBody=A;yu4(Q,T,"",f);tlU=!1};
hvW=function(A){_.K("always_send_and_write")&&(A.writeThenSend=!1)};
voY=function(A,Q,b,f,a){A={retry:!0,onSuccess:b,onError:f,networklessOptions:A,dangerousLogToVisitorSession:Q,bypassMonitoring:!!a,headers:{},postBodyFormat:"",postBody:"",compress:_.K("compress_gel")||_.K("compress_gel_lr")};wzW()&&(A.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.f4)())));return A};
evF=function(A,Q,b){wzW()||(A.requestTimeMs=String(Q));_.K("unsplit_gel_payloads_in_logs")&&(A.unsplitGelPayloadsInLogs=!0);!b&&(Q=_.vG("EVENT_ID"))&&(b=uSF(),A.serializedClientEventId={serializedEventId:Q,clientCounter:String(b)})};
uSF=function(){var A=_.vG("BATCH_CLIENT_COUNTER")||0;A||(A=Math.floor(Math.random()*65535/2));A++;A>65535&&(A=1);_.e6("BATCH_CLIENT_COUNTER",A);return A};
goi=function(A,Q,b){if(b.videoId)var f="VIDEO";else if(b.playlistId)f="PLAYLIST";else return;A.credentialTransferTokenTargetId=b;A.context=A.context||{};A.context.user=A.context.user||{};A.context.user.credentialTransferTokens=[{token:Q,scope:f}]};
fcF=function(A,Q){var b=_.Br("il_payload_scraping")==="enable_il_payload_scraping";if(!_.zV("yt.logging.transport.enableScrapingForTest"))if(b)$MX=[],_.Al("yt.logging.transport.enableScrapingForTest",!0),_.Al("yt.logging.transport.scrapedPayloadsForTesting",$MX),_.Al("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Al("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Al("yt.logging.transport.scrapeClientEvent",!0);else return;b=_.zV("yt.logging.transport.scrapedPayloadsForTesting");var f=_.zV("yt.logging.transport.payloadToScrape");Q&&(Q=_.zV("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(Q.payload)())&&b.push(Q);Q=_.zV("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var a=0;a<f.length;a++)if(A&&A.payload[f[a]])if(Q)b.push(A.payload);else{var T=void 0;b.push(((T=A)==null?void 0:T.payload)[f[a]])}_.Al("yt.logging.transport.scrapedPayloadsForTesting",
b)};
wzW=function(){return _.K("use_request_time_ms_header")||_.K("lr_use_request_time_ms_header")};
lcW=function(A,Q){return _.K("transport_use_scheduler")===!1?_.Xe(A,Q):_.K("logging_avoid_blocking_during_navigation")||_.K("lr_logging_avoid_blocking_during_navigation")?_.Hv(_.j7,function(){if(_.N_i().currentState==="none")A();else{var b={};_.N_i().install((b.none={callback:A},b))}},Q):_.Hv(_.j7,A,Q)};
Ic4=function(A){_.K("transport_use_scheduler")?_.j7.cancelJob(A):_.Uo(A)};
W4A=function(A){var Q,b,f,a,T,G,p,P,U,L;return _.B(function(M){return M.nextAddress==1?(f=(Q=A)==null?void 0:(b=Q.responseContext)==null?void 0:b.globalConfigGroup,a=_.V(f,sYA),G=(T=f)==null?void 0:T.hotHashData,p=_.V(f,mM4),U=(P=f)==null?void 0:P.coldHashData,(L=_.fJ().resolve(_.bu(Cu)))?G?a?M.yield(Aye(L,G,a),2):M.yield(Aye(L,G),2):M.jumpTo(2):M.return()):U?p?M.yield(Q$C(L,U,p),0):M.yield(Q$C(L,U),0):M.jumpTo(0)})};
UMb=function(A,Q){Q=Q===void 0?200:Q;return A?Q===300?Cci:b6e:Q===300?q4W:fbb};
dMF=function(A){if(_.K("enable_web_tiered_gel")){A=abJ[A||""];var Q,b,f,a=_.fJ().resolve(_.bu(Cu))==null?void 0:(Q=q3())==null?void 0:(b=Q.loggingHotConfig)==null?void 0:(f=b.eventLoggingConfig)==null?void 0:f.payloadPolicies;if(a)for(Q=0;Q<a.length;Q++)if(a[Q].payloadNumber===A)return a[Q]}};
T_9=function(A){A=Object.keys(A);A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,abJ[Q])return Q};
F4X=function(A){switch(A){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}};
pzi=function(A){return A==="gelDebuggingEvent"};
Rve=function(A){return(A===void 0?0:A)&&_.K("vss_through_gel_video_stats")?"video_stats":"log_event"};
tq=function(A,Q,b,f){f=f===void 0?{}:f;var a={},T=Math.round(f.timestamp||(0,_.f4)());a.eventTimeMs=T<Number.MAX_SAFE_INTEGER?T:0;a[A]=Q;A=_.TD();a.context={lastActivityMs:String(f.timestamp||!isFinite(A)?-1:A)};f.sequenceGroup&&!_.K("web_gel_sequence_info_killswitch")&&(A=a.context,Q=f.sequenceGroup,Q={index:TzW(Q),groupKey:Q},A.sequence=Q,f.endOfSequence&&delete o4[f.sequenceGroup]);_.K("web_tag_automated_log_events")&&(a.context.automatedLogEventSource=f.automatedLogEventSource);(f.sendIsolatedPayload?
GZy:PcW)({endpoint:"log_event",payload:a,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},b)};
TzW=function(A){o4[A]=A in o4?o4[A]+1:0;return o4[A]};
_.R4=function(A,Q,b){b=b===void 0?{}:b;var f=ro;_.Ep("ytLoggingEventsDefaultDisabled",!1)&&ro===ro&&(f=null);tq(A,Q,f,b)};
_.go=function(){if(_.K("web_fp_via_jspb")){var A=!0;A=A===void 0?!1:A;var Q=dIy;dIy=[];if(Q){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,A?tq(b.payloadName,b.payload,ro,b.options):_.R4(b.payloadName,b.payload,b.options)}L4e(void 0,!0);if(!_.K("web_fp_via_jspb_and_json"))return}L4e(void 0,!1)};
FmJ=function(A,Q){var b;if((b=Q)==null?0:b.componentStack)return Q;if(A=A.componentStack)Q||(Q={}),Q.componentStack=A;return Q};
GGy=function(){_.ZR(_.vG("ERRORS")||[],function(A){_.en.apply(null,A)});
_.e6("ERRORS",[])};
_.hq=function(A){_.en(A)};
_.Wv=function(A){_.en(A,"WARNING")};
Bz4=function(A){A instanceof Error?_.en(A):(A=_.ZU(A)?JSON.stringify(A):String(A),A=new _.IO(A),A.name="RejectedPromiseError",_.Wv(A))};
pLY=function(A,Q,b,f,a,T){Q=Q===void 0?"Unknown file":Q;b=b===void 0?0:b;var G=!1,p=FEe("log_window_onerror_fraction");if(p&&Math.random()<p)G=!0;else{p=document.getElementsByTagName("script");for(var P=0,U=p.length;P<U;P++)if(p[P].src.indexOf("/debug-")>0){G=!0;break}}G&&(G=!1,a?G=!0:(typeof A==="string"?p=A:ErrorEvent&&A instanceof ErrorEvent?(G=!0,p=A.message,Q=A.filename,b=A.lineno,f=A.colno):(p="Unknown error",Q="Unknown file",b=0),a=new _.IO(p),a.name="UnhandledWindowError",a.message=p,a.fileName=
Q,a.lineNumber=b,isNaN(f)?delete a.columnNumber:a.columnNumber=f),_.K("wiz_enable_component_stack_propagation_killswitch")||(T=FmJ(a,T)),T&&_.xk(a,T),G?_.en(a):_.Wv(a))};
_.en=function(A,Q,b,f,a,T,G,p){T=T===void 0?{}:T;T.name=b||_.vG("INNERTUBE_CONTEXT_CLIENT_NAME",1);T.version=f||_.vG("INNERTUBE_CONTEXT_CLIENT_VERSION");b=T;Q=Q===void 0?"ERROR":Q;G=G===void 0?!1:G;Q=Q===void 0?"ERROR":Q;G=G===void 0?!1:G;if(A&&(A.hasOwnProperty("level")&&A.level&&(Q=A.level),_.K("console_log_js_exceptions")&&(f=[],f.push("Name: "+A.name),f.push("Message: "+A.message),A.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(A.params)),A.hasOwnProperty("args")&&f.push("Error args: "+
JSON.stringify(A.args)),f.push("File name: "+A.fileName),f.push("Stacktrace: "+A.stack),f=f.join("\n"),window.console.log(f,A)),!(PJ6>=5))){f=[];a=_.F(XLJ);for(T=a.next();!T.done;T=a.next()){T=T.value;try{T()&&f.push(T())}catch(g){}}f=[].concat(_.ri(ShA),_.ri(f));var P=UIe(A);a=P.message||"Unknown Error";T=P.name||"UnknownError";var U=P.stack||A.stacktrace||"Not available";if(U.startsWith(T+": "+a)){var L=U.split("\n");L.shift();U=L.join("\n")}L=P.lineNumber||"Not available";P=P.fileName||"Not available";
var M=0;if(A.hasOwnProperty("args")&&A.args&&A.args.length)for(var l=0;l<A.args.length&&!(M=a5W(A.args[l],"params."+l,b,M),M>=500);l++);else if(A.hasOwnProperty("params")&&A.params){var J=A.params;if(typeof A.params==="object")for(l in J){if(J[l]){var n="params."+l,t=iu(J[l]);b[n]=t;M+=n.length+t.length;if(M>500)break}}else b.params=iu(J)}if(f.length)for(l=0;l<f.length&&!(M=a5W(f[l],"params.context."+l,b,M),M>=500);l++);navigator.vendor&&!b.hasOwnProperty("vendor")&&(b["device.vendor"]=navigator.vendor);
l={message:a,name:T,lineNumber:L,fileName:P,stack:U,params:b,sampleWeight:1};b=Number(A.columnNumber);isNaN(b)||(l.lineNumber=l.lineNumber+":"+b);if(A.level==="IGNORED")A=0;else a:{A=Lm6();b=_.F(A.messageWeights);for(f=b.next();!f.done;f=b.next())if(f=f.value,l.message&&l.message.match(f.messageRegExp)){A=f.weight;break a}A=_.F(A.callbackWeights);for(b=A.next();!b.done;b=A.next())if(b=b.value,b.callback(l)){A=b.weight;break a}A=1}l.sampleWeight=A;A=_.F(MJf);for(b=A.next();!b.done;b=A.next())if(b=
b.value,b.patternsForType[l.name])for(a=_.F(b.patternsForType[l.name]),f=a.next();!f.done;f=a.next())if(T=f.value,f=l.message.match(T.regexp)){l.params["params.error.original"]=f[0];a=T.groups;T={};for(L=0;L<a.length;L++)T[a[L]]=f[L+1],l.params["params.error."+a[L]]=f[L+1];l.message=b.messageFn(T);break}l.params||(l.params={});A=Lm6();l.params["params.errorServiceSignature"]="msg="+A.messageWeights.length+"&cb="+A.callbackWeights.length;l.params["params.serviceWorker"]="false";_.by.document&&_.by.document.querySelectorAll&&
(l.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new cv(lbJ,"sample")).constructor!==cv&&(l.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(l);if(l.sampleWeight!==0&&!KmU.has(l.message)){if(G&&_.K("web_enable_error_204"))i6i(Q===void 0?"ERROR":Q,l);else{Q=Q===void 0?"ERROR":Q;Q==="ERROR"?(Jyf.publish("handleError",l),_.K("record_app_crashed_web")&&VJf===0&&l.sampleWeight===1&&(VJf++,G={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.K("report_client_error_with_app_crash_ks")||(G.systemHealth={crashData:{clientError:{logMessage:{message:l.message}}}}),_.R4("appCrashed",G)),O6y++):Q==="WARNING"&&Jyf.publish("handleWarning",l);if(_.K("kevlar_gel_error_routing")){G=Q;p=p===void 0?{}:p;b:{A=_.F(nsX);for(b=A.next();!b.done;b=A.next())if(h$(b.value.toLowerCase())){A=!0;break b}A=!1}if(A)p=void 0;else{b={stackTrace:l.stack};l.fileName&&(b.filename=l.fileName);A=l.lineNumber&&l.lineNumber.split?l.lineNumber.split(":"):[];A.length!==
0&&(A.length!==1||isNaN(Number(A[0]))?A.length!==2||isNaN(Number(A[0]))||isNaN(Number(A[1]))||(b.lineNumber=Number(A[0]),b.columnNumber=Number(A[1])):b.lineNumber=Number(A[0]));A={level:"ERROR_LEVEL_UNKNOWN",message:l.message,errorClassName:l.name,sampleWeight:l.sampleWeight};G==="ERROR"?A.level="ERROR_LEVEL_ERROR":G==="WARNING"&&(A.level="ERROR_LEVEL_WARNNING");b={isObfuscated:!0,browserStackInfo:b};p.pageUrl=window.location.href;p.kvPairs=[];_.vG("FEXP_EXPERIMENTS")&&(p.experimentIds=_.vG("FEXP_EXPERIMENTS"));
f=_.vG("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!FEe("web_disable_gel_stp_ecatcher_killswitch")&&f)for(a=_.F(Object.keys(f)),T=a.next();!T.done;T=a.next())T=T.value,p.kvPairs.push({key:T,value:String(f[T])});if(f=l.params)for(a=_.F(Object.keys(f)),T=a.next();!T.done;T=a.next())T=T.value,p.kvPairs.push({key:"client."+T,value:String(f[T])});f=_.vG("SERVER_NAME");a=_.vG("SERVER_VERSION");f&&a&&(p.kvPairs.push({key:"server.name",value:f}),p.kvPairs.push({key:"server.version",value:a}));p={errorMetadata:p,
stackTrace:b,logMessage:A}}p&&(_.R4("clientError",p),(G==="ERROR"||_.K("errors_flush_gel_always_killswitch"))&&_.go())}_.K("suppress_error_204_logging")||i6i(Q,l)}try{KmU.add(l.message)}catch(g){}PJ6++}}};
i6i=function(A,Q){var b=Q.params||{};A={urlParams:{a:"logerror",t:"jserror",type:Q.name,msg:Q.message.substr(0,250),line:Q.lineNumber,level:A,"client.name":b.name},postParams:{url:_.vG("PAGE_NAME",window.location.href),file:Q.fileName},method:"POST"};b.version&&(A["client.version"]=b.version);if(A.postParams){Q.stack&&(A.postParams.stack=Q.stack);Q=_.F(Object.keys(b));for(var f=Q.next();!f.done;f=Q.next())f=f.value,A.postParams["client."+f]=b[f];if(b=_.vG("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(Q=
_.F(Object.keys(b)),f=Q.next();!f.done;f=Q.next())f=f.value,A.postParams[f]=b[f];(b=_.vG("LAVA_VERSION"))&&(A.postParams["lava.version"]=b);b=_.vG("SERVER_NAME");Q=_.vG("SERVER_VERSION");b&&Q&&(A.postParams["server.name"]=b,A.postParams["server.version"]=Q)}_.MQ(_.vG("ECATCHER_REPORT_HOST","")+"/error_204",A)};
_.kGi=function(A,Q){Q=Q===void 0?"ERROR":Q;var b=b===void 0?{}:b;var f=_.zV("ytbin.polymer.shared.lib.tampering.info");f&&(f=f())&&(b["params.tamperingInfo"]=f.sort().join(","));_.en(A,Q,void 0,void 0,!0,b)};
_.xk=function(A){var Q=_.E$.apply(1,arguments);A.args||(A.args=[]);Array.isArray(A.args)&&A.args.push.apply(A.args,_.ri(Q))};
IbF=function(A){A.level="IGNORED"};
H6F=function(A,Q){ShA.push(A);Q();ShA.pop()};
wo=function(A,Q){for(var b in Q)Q.hasOwnProperty(b)&&(A=_.zD(A,b,Q[b]));return A};
_.CJ4=function(A,Q,b){b=b===void 0?!1:b;if(!A)return null;if(A.adInfoDialogEndpoint||A.backstageImageUploadEndpoint||A.confirmDialogEndpoint||A.clientActionEndpoint||A.createBackstagePostDialogEndpoint||A.createCommentReplyDialogEndpoint||A.flowEndpoint||A.guideBuilderEndpoint||A.liveChatDialogEndpoint||A.modalEndpoint||A.openPopupAction||A.shareEndpoint||A.shareEntityEndpoint||A.showLiveChatItemEndpoint||A.subscriptionManagerEndpoint||A.unlimitedCreateFamilyEndpoint||A.unlimitedFamilyFlowEndpoint||
A.updateCommentDialogEndpoint||A.updateCommentReplyDialogEndpoint||A.userFeedbackEndpoint||A.videoEditorEndpoint||A.ypcCancelSurveyEndpoint)return Q=_.GP("polymer_report_client_url_requested_rate"),!b&&Math.random()<Q&&_.Wv(new _.IO("urlForEndpoint used on client endpoint",A)),null;var f=_.GP("polymer_report_missing_web_navigation_endpoint_rate");if(A.liveChatEndpoint||A.liveChatReplayEndpoint)f=0;if(!A.commandMetadata&&!A.clickTrackingParams&&Math.random()<f){var a={},T;for(T in A)a[T]="1";_.Wv(new _.IO("Missing navigation data",
a))}a="";if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url)a=A.commandMetadata.webCommandMetadata.url;else if(A.searchEndpoint)Math.random()<f&&_.Wv(new _.IO("Should not manually handle search",A)),a="/results?search_query="+encodeURIComponent(A.searchEndpoint.query).replace(/%20/g,"+"),A.searchEndpoint.params&&(a+="&sp="+A.searchEndpoint.params);else if(A.watchEndpoint)Math.random()<f&&_.Wv(new _.IO("Should not manually handle watch",A)),a="/watch?v="+
A.watchEndpoint.videoId,A.watchEndpoint.playlistId&&(a+="&list="+A.watchEndpoint.playlistId),A.watchEndpoint.index&&(a+="&index="+A.watchEndpoint.index),A.watchEndpoint.startTimeSeconds&&(a+="&t="+A.watchEndpoint.startTimeSeconds);else if(A.browseEndpoint)f=A.browseEndpoint.browseId,(T=A.browseEndpoint.canonicalBaseUrl)?a=T:f&&(a=f.substr(0,2),a=a==="FE"?f==="FEwhat_to_watch"?"/":f==="FEmy_videos"?"/my_videos":"/feed/"+f.substr(2):a==="VL"?"/playlist?list="+f.substr(2):"/channel/"+f),a&&A.browseEndpoint.query&&
(a=wo(a+"/search",{query:A.browseEndpoint.query})),a&&A.browseEndpoint.params&&(a=wo(a,{params:A.browseEndpoint.params}));else{if(A.urlEndpoint)return A.urlEndpoint.url;A.signInEndpoint?(a="https://accounts.google.com/ServiceLogin",f={},_.j2.extend(f,Q||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),Q=f):A.uploadEndpoint?a="//www.youtube.com/upload":A.liveChatEndpoint?(a=A.liveChatEndpoint,f=_.j2.clone(a),_.ZU(a.continuation)&&(T=Object.keys(a.continuation)[0],
f.continuation=a.continuation[T].continuation),a=wo("/youtubei/v1/live_chat/get_live_chat",f)):A.liveChatReplayEndpoint?(a=_.j2.clone(A.liveChatReplayEndpoint),a.currentPlayerState&&(_.j2.extend(a,a.currentPlayerState),delete a.currentPlayerState),a=wo("/youtubei/v1/live_chat/get_live_chat_replay",a)):A.liveChatItemContextMenuEndpoint?a=wo("/youtubei/v1/live_chat/get_item_context_menu",A.liveChatItemContextMenuEndpoint):A.liveChatPurchaseMessageEndpoint?a=wo("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
A.liveChatPurchaseMessageEndpoint):A.openSuperStickerBuyFlowCommand?a=wo("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",A.openSuperStickerBuyFlowCommand):A.videoEditEndpoint?a=wo("/edit",{video_id:A.videoEditEndpoint.videoId}):A.liveDashboardEndpoint?a=A.liveDashboardEndpoint.videoId?wo("/live_dashboard",{v:A.liveDashboardEndpoint.videoId}):"/live_dashboard":A.signalNavigationEndpoint&&A.signalNavigationEndpoint.signal&&A.signalNavigationEndpoint.signal==="WEBCAM"?a="/webcam":A.getPdgBuyFlowCommand&&
(a=wo(A.getPdgBuyFlowCommand.buyflowApiPath,{params:A.getPdgBuyFlowCommand.params}))}return a||b?wo(a,Q||{}):(_.Wv(new _.IO("Error: Can't construct url for endpoint","keys:"+Object.keys(A).sort().join(","),A)),null)};
qhJ=function(A){if(A){if(A.browseEndpoint)return!!A.browseEndpoint.nofollow;if(A.watchEndpoint)return!!A.watchEndpoint.nofollow;if(A.urlEndpoint)return!!A.urlEndpoint.nofollow}return!1};
_.tJJ=function(A,Q){var b=Q+A,f=os4.get(b);if(f)return f;A=Q+"-"+A.replace(/([A-Z])/g,"-$1").toLowerCase();os4.set(b,A);return A};
ry9=function(A){var Q=_.R8(A,"action")||_.R8(A,"command")||_.R8(A,"endpoint");if(!Q)return null;Q=_.tJJ(Q,"yt");_.V(A,_.uv)&&(Q+="-"+_.V(A,_.uv).signal.toLowerCase().replace(/_/g,"-"));return Q};
eQY=function(A){try{var Q=Object.keys(A)}catch(a){return[]}for(var b=0;b<Q.length;b++){var f=Q[b];if(j$y.test(f)||RQA.test(f))return gsJ(A[f])}return[]};
gsJ=function(A){return A.command?[A.command]:A.onExecutionAction?[A.onExecutionAction]:A.onResponseReceivedCommand?[A.onResponseReceivedCommand]:A.updateFlowCommand?[A.updateFlowCommand]:A.clientActions?A.clientActions:A.action?[A.action]:A.actions||A.commands||A.onResponseReceivedActions||A.onResponseReceivedCommands||A.onResponseReceivedEndpoints||[]};
WmJ=function(A,Q){Q=Q===void 0?!1:Q;var b=_.fJ().resolve(_.bu(Zl));b||(b=new hQy,_.fJ().addProvider({provide:Zl,useValue:b}));return b&&A&&!_.j2.isEmpty(A)?b.getUrl(A,Q):""};
vsY=function(A,Q,b){b=b===void 0?"":b;if(Q){A.data=Q;var f=WmJ(Q);f?(_.ch(A,f),qhJ(Q)||!A$(f)?A.rel="nofollow":A.removeAttribute("rel"),_.V(Q,_.y_)&&_.V(Q,_.y_).target==="TARGET_NEW_WINDOW"?A.target="_blank":b?A.target=b:A.removeAttribute("target")):(A.removeAttribute("href"),A.removeAttribute("rel"),A.removeAttribute("target"))}};
_.N3=function(A,Q){var b=$$;if(nz())Ese(A,function(){var T=_.E$.apply(0,arguments);rY(b,function(){Q.apply(null,_.ri(T))})});
else{var f=_.Yk.getInstance(),a=j6(Q);NGb(function(){a.value=Q});
_.tz(function(){var T={},G=_.Dl(f,(T[A]=function(){var p=_.E$.apply(0,arguments);rY(b,function(){a.value.apply(a,_.ri(p))})},T));
return function(){var p={};_.$k(f,(p[A]="",p),G)}})}};
_.st=function(A,Q){return xIe(A,!1,Q)};
_.mS=function(A,Q){return xIe(A,!0,Q)};
xIe=function(A,Q,b){return nz()?cye(A,Q,b):zQJ(A,Q,b)};
zQJ=function(A,Q,b){return rN(function(){return cye(A,Q,b)})};
cye=function(A,Q,b){var f=yxi(function(a){f.value=a;var T=function(){var G=a7(null);try{return b==null?void 0:b(a)}finally{a7(G)}}();
return function(){T==null||T()}});
f.__expectedTagName=A;f.__optional=Q;f.isIdom=!nz();return f};
wLA=function(A){var Q=$$,b=Vd;return{getFn:function(){return function(f){Q.isDisposed||I7(function(){return B_(function(){return A(f)})},b)!==!0&&f.stopPropagation()}}}};
Aj=function(A){if(typeof A.children==="function")return A.children(),null;A=_.F(A.children);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q();return null};
u7F=function(A){var Q;return((Q=A.prototype)==null?void 0:Q.render)===void 0};
Z6Y=function(A){return A.items.map(A.children)};
Yhf=function(A,Q,b){b=b===void 0?!1:b;I7(function(){return yyy(A,Q,b)})};
yyy=function(A,Q,b){var f=null;Kz++;b=(b===void 0?0:b)?DIU:$I6;try{f=b(A,function(){Qu(Q)}),Jk(!1)}catch(a){throw Jk(!0),a;
}return f===null?A:f};
Qu=function(A){if(A!==void 0&&A!==null)if(A instanceof LH)for(var Q=E7;xA()!=null&&tUi in xA()&&Q.contains(xA());)wY();else if(Array.isArray(A))for(Q=_.F(A),A=Q.next();!A.done;A=Q.next())Qu(A.value);else if(A instanceof np||A instanceof aD||"function"==typeof _.mM&&A instanceof _.mM)s7(A.toString());else if(_.TV(A)){if(xA()!==A){var b,f;Q=(f=(b=Vd)==null?void 0:b.name)!=null?f:"unknown";throw Error("bc`"+A.tagName+"`"+Q);}wY()}else if(A!=null&&A.contentKind===BG||A instanceof zY||Y8C(A))for(Q=$HF(A),
Q=Array.from(Q.childNodes),Q=_.F(Q),A=Q.next();!A.done;A=Q.next())E7.appendChild(A.value),wY();else if(ts(A)&&(A=A.toString()),b=typeof A,b==="boolean"||b==="number"||b==="string")s7(A);else if(typeof A==="function"){Q=E7;var a=xA();a&&(a._isSignalTextNode||a._isSafeOrSanitizedHtmlNode)||JxX(Q,a,A);wY()}else if(A.type===Z6Y)Qu(A.type(Object.assign({},A.props,{children:A.children[0]})));else{KH.beforeVisit(A);if(typeof A.type==="string"){a:{A.__open||IfA(A.type,A.props.idomKey);a=E7;for(Q in A.props)if(A.props[Q]!==
NzW){var T=A.props[Q];b=YA;b.push(Q);b.push(T)}Q=Qd.attributes;Q=Q===void 0?b0:Q;T=E7;b=v_(T);jNY(T,b,Q);i14(a,A.props,!0);if((A.props.skip||A.props.skipchildren)&&E7.hasChildNodes())ZD();else{if(A.type==="style"&&aye(A.children)===null){ZD();Q=void 0;break a}Qu(A.children)}Hk9();A.__open&&(A.__open=!1);xH6(a,A.props);Q=a}return Q}if(A.type===_.bd)Qu(A.children);else if(!s$C(A)){Q=A;try{mIX(Q)}catch(G){A=G,(T=Qd.handleError)==null||T.call.apply(T,[Qd].concat(_.ri(jB(A,(a=Q.type)==null?void 0:a.TAG_NAME))))}Q.__open&&
(Hk9(),Q.__open=!1)}}};
Ace=function(A,Q){var b;u7F(A)?b=new Jz(Q,A):b=new A(Q);b.JSC$10158___type=A;b.__updateContext={nextState:b.state,isForced:!1};return b};
mIX=function(A){var Q=A.type,b=Q.TAG_NAME;if(Q===Aj)A.props.children=A.children,Q(A.props);else{A.children.length>0&&(A.props.children=A.children);var f;(f=A.props).idomKey||(f.idomKey=Q);if(b){var a=IfA(b,A.props.idomKey);A.__open=!0;var T=a.__instance}T||(T=Ace(Q,A.props),T.props=null,a&&(a.__instance=T,T.el=a));var G;b=((G=T.__updateContext)!=null?G:{nextState:T.state,isForced:!1}).nextState;T.__updateContext=void 0;Q.getDerivedStateFromProps&&(b=Q.getDerivedStateFromProps(A.props,b));T.props=
A.props;T.state=b;G=function(){var p=T;KH.beforeRender(p);var P=p.render(p.props);KH.afterRender(p,P);P?(p.props.idomKey&&(P.props.idomKey=p.props.idomKey),p=P):p=void 0;if(P=p)if(P.__open=A.__open,p=Qu(P),A.__open=P.__open,!Q.TAG_NAME)if(p)Q.TAG_NAME=p.tagName.toLowerCase(),p.__instance=T,T.el=p;else{var U;if((U=T.hooks)==null?0:U.length){var L;(L=Qd.handleError)==null||L.call.apply(L,[Qd].concat(_.ri(jB(Error("jd")))))}}T.didPatch();KH.didPatch(T)};
(b=T.functionComponent)?ude(b,G,T.props.debugInstance):G()}};
s$C=function(A){var Q=A.type;if(!u7F(Q)||Q===Aj||Q.componentType===O7)return!1;A.props.children=A.children.length>1?A.children:A.children[0];var b,f=(b=A.props.idomKey)!=null?b:A.type,a;if(xA()&&((a=xA()[XF])==null?void 0:a.key)===f){var T=xA(),G=T[XF];if(!G)throw Error("ac`"+T.tagName);var p;(p=G.updateSignalsFromIdomProps)==null||p.call(G,A.props);Qbb(G);return!0}if(bSJ.has(Q.name))throw p=Q.name,Q=(G=(T=Vd)==null?void 0:T.name)!=null?G:"unknown",Error("$b`"+p+"`"+Q);kL9(A.type,A.props,A.children);
A.props.renderedFromIdom=!0;(p=ude(A.type,function(){return UWi(A.type,A.props)},A.props.debugInstance))&&fhe(p);
return!0};
ahC=function(A){for(var Q=0;Q<Up(A).length;Q++)wY()};
Qbb=function(A){var Q=TLb();if(Q)ahC(Q);else for(var b=0;b<A.numNodes;b++)(Q=TLb())?ahC(Q):wY()};
TLb=function(){var A;return(A=xA()[XF])==null?void 0:A.sourceDynamicRange};
fhe=function(A){A=wtX(A);A=Array.isArray(A)?A:[A];A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())E7.insertBefore(Q.value,xA()),wY()};
dle=function(A){var Q=MUf(),b=rN(function(){return{value:typeof A==="function"?A():A}});
return[b.value,function(f){if(id!==null){var a;(a=Qd.handleError)==null||a.call.apply(a,[Qd].concat(_.ri(jB(Error("kd")))))}b.value=typeof f==="function"?f(b.value):f;Q.__updateContext={nextState:Q.state,isForced:!0};f=_.Nu(Q.effectContext);a=a8(!1);try{if(Q.el){var T,G={},p=(G.props=Q.props,G.type=Q.JSC$10158___type,G.children=(T=Q.props.children)!=null?T:[],G[Q6]=!0,G);try{Yhf(Q.el,p,!0)}catch(L){var P,U;(U=Qd.handleError)==null||U.call.apply(U,[Qd].concat(_.ri(jB(L,(P=Q.JSC$10158___type)==null?
void 0:P.TAG_NAME))))}}}finally{a8(a),_.Nu(f)}}]};
fk=function(A,Q){var b=$$,f=function(a){rY(b,function(){Q(a)})};
window.addEventListener(A,f,void 0);_.Cz(function(){window.removeEventListener(A,f,void 0)})};
_.T9=function(A){var Q=$$;return function(b){var f,a=(f=A.observer)!=null?f:_.fJ().resolve(aN);f=FPe(b);var T=[];A.showOption&&T.push(a.observe(b,function(){rY(Q,function(){A.visibilityCallback(!0,b)})},A.showOption));
A.hideOption&&T.push(a.observe(b,function(){rY(Q,function(){A.visibilityCallback(!1,b)})},A.hideOption));
A.prescanOption&&A.prescanCallback&&T.push(a.observe(b,function(){rY(Q,function(){A.prescanCallback()})},A.prescanOption));
var G;f.visibilityMonitorKeys=((G=f.visibilityMonitorKeys)!=null?G:[]).concat(T)}};
FPe=function(A){var Q;return(Q=A.polymerController)!=null?Q:A};
_.dK=function(A){A.componentType=O7};
PpU=function(A,Q){var b=Gkf;return _.X(_.bd,null,D4(Qd.enableLazyTsx,function(){return _.X(BLe,{id:b,value:A,children:Q})},function(){var f=pie(b,A);
Ak(f);f=_.Nu(f);try{return Q()}finally{_.Nu(f)}}))};
BLe=function(A){var Q=A.children;A=pie(A.id,A.value);Ak(A);A=_.Nu(A);try{return _.X(_.bd,null,Mq(Q()))}finally{_.Nu(A)}};
pie=function(A,Q){return Object.assign(Object.create(Xi4),{id:A,contextValue:Q})};
Sse=function(A){var Q,b=$$;_.tk(function(){var f=_.Nu(b),a=a8(!Q);try{if(Q)Yhf(Q,A.children(),!0);else if(Q=Mq(A.children()),!(Q instanceof Element))throw Error("ld");}finally{a8(a),_.Nu(f)}});
return Q};
_.Ul9=function(A,Q){var b;Q=qz(function(){var f=a8(!0);Kz++;try{b=Up(A()),Jk(!1)}catch(a){throw Jk(!0),a;}finally{a8(f)}},Q===void 0?!1:Q);
return[b,Q]};
MQb=function(A){A=A.buf.charCodeAt(A.pos++);return LPe[A]};
Fv=function(A){var Q=0,b=0;do{var f=MQb(A);Q|=(f&31)<<b;b+=5}while(f&32);return Q<0?Q+4294967296:Q};
iS4=function(A,Q,b){lhW(A,Q);A[Q][KPb].unshift(b)};
lhW=function(A,Q){if(!A[Q]||!A[Q][KPb]){var b=A[Q],f=b?[b]:[];A[Q]=function(){for(var a=_.F(f),T=a.next();!T.done;T=a.next())T.value.apply(this,arguments)};
A[Q][KPb]=f}};
JcX=function(A){if(!A)return[];var Q=[];A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=b.value,Array.isArray(b)?Q.push.apply(Q,_.ri(JcX(b))):Q.push(b);return Q};
_.Bt=function(A,Q){if(A&&VQe.test(A)||A==="//")return A;if(OSb===void 0){OSb=!1;try{var b=new URL("b","http://a");b.pathname="c%20d";OSb=b.href==="http://a/c%20d"}catch(f){}}Q||(Q=document.baseURI||window.location.href);if(OSb)try{return(new URL(A,Q)).href}catch(f){return A}G9||(G9=document.implementation.createHTMLDocument("temp"),G9.base=G9.createElement("base"),G9.head.appendChild(G9.base),G9.anchor=G9.createElement("a"),G9.body.appendChild(G9.anchor));G9.base.href=Q;G9.anchor.href=A;return G9.anchor.href||
A};
kkb=function(A,Q){return A.replace(nB9,function(b,f,a,T){return f+"'"+_.Bt(a.replace(/["']/g,""),Q)+"'"+T})};
IhJ=function(A){return A.substring(0,A.lastIndexOf("/")+1)};
qsA=function(){HS9=!1;for(var A=pk.length,Q=0;Q<A;Q++){var b=pk[Q];if(b)try{b()}catch(f){setTimeout(function(){throw f;})}}pk.splice(0,A);
Cp6+=A};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(A){console.log("["+A.is+"]: registered")};
tQ4=function(A){oBW.push(A)};
Pt=function(A){return rcC[A]||(rcC[A]=A.indexOf("-")<0?A:A.replace(jbC,function(Q){return Q[1].toUpperCase()}))};
Xv=function(A){return rcC[A]||(rcC[A]=A.replace(RS9,"-$1").toLowerCase())};
gBW=function(A,Q){var b=Q.parentInfo&&gBW(A,Q.parentInfo);if(b)for(A=b.firstChild,b=0;A;A=A.nextSibling){if(Q.parentIndex===b++)return A}else return A};
eSY=function(A,Q){A=A._methodHost||A;return function(b){if(A[Q])A[Q](b,b.detail);else console.warn("listener method `"+Q+"` not defined")}};
Sc=function(A){return A.indexOf(".")>=0};
U8=function(A){var Q=A.indexOf(".");return Q===-1?A:A.slice(0,Q)};
hSU=function(A,Q){return A.indexOf(Q+".")===0};
Lk=function(A,Q){return Q.indexOf(A+".")===0};
MH=function(A,Q,b){return Q+b.slice(A.length)};
WP9=function(A,Q){return A===Q||hSU(A,Q)||Lk(A,Q)};
l0=function(A){if(Array.isArray(A)){for(var Q=[],b=0;b<A.length;b++)for(var f=A[b].toString().split("."),a=0;a<f.length;a++)Q.push(f[a]);return Q.join(".")}return A};
vBC=function(A){return Array.isArray(A)?l0(A).split("."):A.toString().split(".")};
Kk=function(A,Q,b){Q=vBC(Q);for(var f=0;f<Q.length;f++){if(!A)return;A=A[Q[f]]}b&&(b.path=Q.join("."));return A};
EB9=function(A,Q,b){var f=vBC(Q),a=f[f.length-1];if(f.length>1){for(Q=0;Q<f.length-1;Q++)if(A=A[f[Q]],!A)return;A[a]=b}else A[Q]=b;return f.join(".")};
xl6=function(A,Q,b){var f=A[Q];if(!f)f=A[Q]={};else if(!A.hasOwnProperty(Q)&&(f=A[Q]=Object.create(A[Q]),b))for(var a in f)for(A=f[a],Q=f[a]=Array(A.length),b=0;b<A.length;b++)Q[b]=A[b];return f};
Jj=function(A,Q,b,f,a,T){if(Q){var G=!1,p=i0++,P;for(P in b){var U=a?U8(P):P;if(U=Q[U])for(var L=0,M=U.length,l=void 0;L<M&&(l=U[L]);L++)l.info&&l.info.lastRun===p||a&&!cce(P,l.trigger)||(l.info&&(l.info.lastRun=p),l.fn(A,P,b,f,l.info,a,T),G=!0)}return G}return!1};
cce=function(A,Q){if(Q){var b=Q.name;return b==A||!(!Q.structured||!hSU(b,A))||!(!Q.wildcard||!Lk(b,A))}return!0};
zSC=function(A,Q,b,f,a){Q=typeof a.method==="string"?A[a.method]:a.method;b=a.property;Q?Q.call(A,A.__data[b],f[b]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")};
wiC=function(A,Q,b,f){b={value:b,queueProperty:!0};f&&(b.path=f);(0,_.Vu)(A).dispatchEvent(new CustomEvent(Q,{detail:b}))};
uGX=function(A,Q,b,f,a,T){T=(f=(T?U8(Q):Q)!=Q?Q:null)?Kk(A,f):A.__data[Q];f&&T===void 0&&(T=b[Q]);wiC(A,a.eventName,T,f)};
ZSX=function(A,Q,b,f,a){b=A.__data[Q];O8&&(b=O8(b,a.attrName,"attribute",A));A._propertyToAttribute(Q,a.attrName,b)};
Ys6=function(A){var Q=A.constructor.__orderedComputedDeps;if(!Q){Q=new Map;for(var b=A.__computeEffects,f=ycC(A),a=f.counts,T=f.ready,G=f.total;f=T.shift();)Q.set(f,Q.size),(f=b[f])&&f.forEach(function(p){p=p.info.methodInfo;--G;--a[p]===0&&T.push(p)});
G!==0&&console.warn("Computed graph for "+A.localName+" incomplete; circular?");A.constructor.__orderedComputedDeps=Q}return Q};
ycC=function(A){var Q=A.__computeInfo,b={};A=A.__computeEffects;var f=[],a=0,T;for(T in Q){var G=Q[T];a+=b[T]=G.args.filter(function(P){return!P.literal}).length+(G.dynamicFn?1:0)}for(var p in A)Q[p]||f.push(p);
return{counts:b,ready:f,total:a}};
$lY=function(A,Q,b,f,a){Q=DlA(A,Q,b,f,a);if(Q===nk)return!1;a=a.methodInfo;if(A.__dataHasAccessor&&A.__dataHasAccessor[a])return A._setPendingProperty(a,Q,!0);A[a]=Q;return!1};
mlf=function(A,Q,b,f,a,T,G){b.bindings=b.bindings||[];f={kind:f,target:a,parts:T,literal:G,isCompound:T.length!==1};b.bindings.push(f);f.target&&f.kind!="attribute"&&f.kind!="text"&&!f.isCompound&&f.parts[0].mode==="{"&&(b=f.parts[0],T=b.negate,f.listenerEvent=b.event||Xv(a)+"-changed",f.listenerNegate=T);a=Q.nodeInfoList.length;for(b=0;b<f.parts.length;b++){var p=f.parts[b];p.compoundIndex=b;T=A;G=Q;var P=f,U=p,L=a;if(!U.literal)if(P.kind==="attribute"&&P.target[0]==="-")console.warn("Cannot set attribute "+
P.target+' because "-" is not a valid attribute starting character');else for(p=U.dependencies,P={index:L,binding:P,part:U,evaluator:T},U=0;U<p.length;U++)L=p[U],typeof L=="string"&&(L=NLF(L),L.wildcard=!0),T._addTemplatePropertyEffect(G,L.rootProperty,{fn:sbW,info:P,trigger:L})}};
sbW=function(A,Q,b,f,a,T,G){G=G[a.index];var p=a.binding,P=a.part;T&&P.source&&Q.length>P.source.length&&p.kind=="property"&&!p.isCompound&&G.__isPropertyEffectsClient&&G.__dataHasAccessor&&G.__dataHasAccessor[p.target]?(b=b[Q],Q=MH(P.source,p.target,Q),G._setPendingPropertyOrPath(Q,b,!1,!0)&&A._enqueueClient(G)):(Q=a.evaluator._evaluateBinding(A,P,Q,b,f,T),Q!==nk&&(p.isCompound&&(b=G.__dataCompoundStorage[p.target],b[P.compoundIndex]=Q,Q=b.join("")),p.kind==="attribute"||p.target!=="textContent"&&
(p.target!=="value"||G.localName!=="input"&&G.localName!=="textarea")||(Q=Q==void 0?"":Q),P=Q,O8&&(P=O8(P,p.target,p.kind,G)),p.kind=="attribute"?A._valueToNodeAttribute(G,P,p.target):(p=p.target,G.__isPropertyEffectsClient&&G.__dataHasAccessor&&G.__dataHasAccessor[p]?G.__readOnly&&G.__readOnly[p]||G._setPendingProperty(p,P)&&A._enqueueClient(G):A._setUnmanagedPropertyToNode(G,p,P))))};
AbJ=function(A,Q,b){if(b.listenerEvent){var f=b.parts[0];A.addEventListener(b.listenerEvent,function(a){var T=b.target,G=f.source,p=f.negate,P=a.detail,U=P&&P.path;U?(G=MH(T,G,U),a=P&&P.value):a=a.currentTarget[T];Q.__readOnly&&Q.__readOnly[G]||!Q._setPendingPropertyOrPath(G,p?!a:a,!0,!!U)||P&&P.queueProperty||Q._invalidateProperties()})}};
QcX=function(A,Q,b,f,a,T){T=Q.static||T&&(typeof T!=="object"||T[Q.methodName]);a={methodName:Q.methodName,args:Q.args,methodInfo:a,dynamicFn:T};for(var G=0,p=void 0;G<Q.args.length&&(p=Q.args[G]);G++)p.literal||A._addPropertyEffect(p.rootProperty,b,{fn:f,info:a,trigger:p});T&&A._addPropertyEffect(Q.methodName,b,{fn:f,info:a});return a};
DlA=function(A,Q,b,f,a){f=A._methodHost||A;var T=f[a.methodName];if(T)return A=A._marshalArgs(a.args,Q,b),A===nk?nk:T.apply(f,A);a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")};
b7f=function(A){for(var Q="",b=0;b<A.length;b++)Q+=A[b].literal||"";return Q};
Tyb=function(A){if(A=A.match(/([^\s]+?)\(([\s\S]*)\)/)){var Q={methodName:A[1],static:!0,args:fNC};return A[2].trim()?aNe(A[2].replace(/\\,/g,"&comma;").split(","),Q):Q}return null};
aNe=function(A,Q){Q.args=A.map(function(b){b=NLF(b);b.literal||(Q.static=!1);return b},this);
return Q};
NLF=function(A){A=A.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var Q={name:A,value:"",literal:!1},b=A[0];b==="-"&&(b=A[1]);b>="0"&&b<="9"&&(b="#");switch(b){case "'":case '"':Q.value=A.slice(1,-1);Q.literal=!0;break;case "#":Q.value=Number(A),Q.literal=!0}Q.literal||(Q.rootProperty=U8(A),Q.structured=Sc(A),Q.structured&&(Q.wildcard=A.slice(-2)==".*",Q.wildcard&&(Q.name=A.slice(0,-2))));return Q};
dr6=function(A,Q,b){A=Kk(A,b);A===void 0&&(A=Q[b]);return A};
FUY=function(A,Q,b,f){f={indexSplices:f};kw&&!A._overrideLegacyUndefined&&(Q.splices=f);A.notifyPath(b+".splices",f);A.notifyPath(b+".length",Q.length);kw&&!A._overrideLegacyUndefined&&(f.indexSplices=[])};
IN=function(A,Q,b,f,a,T){FUY(A,Q,b,[{index:f,addedCount:a,removed:T,object:Q,type:"splice"}])};
Gb4=function(A){A=kkb((A.body?A.body:A).textContent,A.baseURI);var Q=document.createElement("style");Q.textContent=A;return Q};
pZb=function(A){A=A.trim().split(/\s+/);for(var Q=[],b=0;b<A.length;b++)Q.push.apply(Q,_.ri(By4(A[b])));return Q};
By4=function(A){var Q=qH.import(A);if(!Q)return console.warn("Could not find style data in module named",A),[];if(Q._styles===void 0){A=[];A.push.apply(A,_.ri(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Q)));var b=Q.querySelector("template");b&&A.push.apply(A,_.ri(P6J(b,Q.assetpath)));Q._styles=A}return Q._styles};
P6J=function(A,Q){if(!A._styles){for(var b=[],f=A.content.querySelectorAll("style"),a=0;a<f.length;a++){var T=f[a],G=T.getAttribute("include");G&&b.push.apply(b,_.ri(pZb(G).filter(function(p,P,U){return U.indexOf(p)===P})));
Q&&(T.textContent=kkb(T.textContent,Q));b.push(T)}A._styles=b}return A._styles};
XZy=function(A){return(A=qH.import(A))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var Q=[];A=A.querySelectorAll("link[rel=import][type~=css]");for(var b=0;b<A.length;b++){var f=A[b];if(f.import){var a=f.import;if((f=f.hasAttribute("shady-unscoped"))&&!a._unscopedStyle){var T=Gb4(a);T.setAttribute("shady-unscoped","");a._unscopedStyle=T}else a._style||(a._style=Gb4(a));Q.push(f?a._unscopedStyle:a._style)}}return Q};
Urb=function(A){A=A.trim().split(/\s+/);for(var Q="",b=0;b<A.length;b++)Q+=SCA(A[b]);return Q};
SCA=function(A){var Q=qH.import(A);if(Q&&Q._cssText===void 0){var b=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Q),f=Q.querySelector("template");f&&(b+=LUW(f,Q.assetpath));Q._cssText=b||null}Q||console.warn("Could not find style data in module named",A);return Q&&Q._cssText||""};
LUW=function(A,Q){var b="";A=P6J(A,Q);for(Q=0;Q<A.length;Q++){var f=A[Q];f.parentNode&&f.parentNode.removeChild(f);b+=f.textContent}return b};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var Q="";A=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A);for(var b=0;b<A.length;b++)Q+=A[b].textContent;return Q};
oN=function(A,Q){return{index:A,removed:[],addedCount:Q}};
lNy=function(A,Q,b,f){var a=0,T=0,G=0,p=0,P=Math.min(Q-a,f-T);if(a==0&&T==0)a:{for(G=0;G<P;G++)if(A[G]!==b[G])break a;G=P}if(Q==A.length&&f==b.length){p=A.length;for(var U=b.length,L=0;L<P-G&&MOf(A[--p],b[--U]);)L++;p=L}a+=G;T+=G;Q-=p;f-=p;if(Q-a==0&&f-T==0)return[];if(a==Q){for(Q=oN(a,0);T<f;)Q.removed.push(b[T++]);return[Q]}if(T==f)return[oN(a,Q-a)];P=a;G=T;f=f-G+1;p=Q-P+1;Q=Array(f);for(U=0;U<f;U++)Q[U]=Array(p),Q[U][0]=U;for(U=0;U<p;U++)Q[0][U]=U;for(U=1;U<f;U++)for(L=1;L<p;L++)if(A[P+L-1]===
b[G+U-1])Q[U][L]=Q[U-1][L-1];else{var M=Q[U-1][L]+1,l=Q[U][L-1]+1;Q[U][L]=M<l?M:l}P=Q.length-1;G=Q[0].length-1;f=Q[P][G];for(A=[];P>0||G>0;)P==0?(A.push(2),G--):G==0?(A.push(3),P--):(p=Q[P-1][G-1],U=Q[P-1][G],L=Q[P][G-1],M=U<L?U<p?U:p:L<p?L:p,M==p?(p==f?A.push(0):(A.push(1),f=p),P--,G--):M==U?(A.push(3),P--,f=U):(A.push(2),G--,f=L));A.reverse();Q=void 0;P=[];for(G=0;G<A.length;G++)switch(A[G]){case 0:Q&&(P.push(Q),Q=void 0);a++;T++;break;case 1:Q||(Q=oN(a,0));Q.addedCount++;a++;Q.removed.push(b[T]);
T++;break;case 2:Q||(Q=oN(a,0));Q.addedCount++;a++;break;case 3:Q||(Q=oN(a,0)),Q.removed.push(b[T]),T++}Q&&P.push(Q);return P};
KU9=function(A,Q){return lNy(A,A.length,Q,Q.length)};
MOf=function(A,Q){return A===Q};
Jby=function(A){if(A instanceof i79)return A.value;throw Error("Cd`"+A);};
VOW=function(A,Q){for(var b in Q)b===null?A.style.removeProperty(b):A.style.setProperty(b,Q[b])};
O7U=function(A,Q){return(A=window.getComputedStyle(A).getPropertyValue(Q))?A.trim():""};
H7Y=function(A){requestAnimationFrame(function(){nGJ?nGJ(A):(kbF||(kbF=new Promise(function(Q){INJ=Q}),document.readyState==="complete"?INJ():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&INJ()})),kbF.then(function(){A&&A()}))})};
oGb=function(A){C6A=A&&A.shimcssproperties?!1:qCW||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
gGW=function(A){if(!(tOe.indexOf(A)>-1)&&A!=="touchend"&&rbf&&jc4&&RiA)return{passive:!0}};
vGA=function(A){for(var Q=eiF?["click"]:tOe,b=0,f;b<Q.length;b++)f=Q[b],A?(hiW.length=0,document.addEventListener(f,WUe,!0)):document.removeEventListener(f,WUe,!0)};
tj=function(A){var Q=A.type;return tOe.indexOf(Q)>-1?Q==="mousemove"?(Q=A.buttons===void 0?1:A.buttons,A instanceof window.MouseEvent&&!EG9&&(Q=xrF[A.which]||0),!!(Q&1)):(A.button===void 0?0:A.button)===0:!1};
cbe=function(A){if(A.type==="click"){if(A.detail===0)return!0;var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);if(!Q.nodeType||Q.nodeType!==Node.ELEMENT_NODE)return!0;Q=Q.getBoundingClientRect();var b=A.pageX;A=A.pageY;return!(b>=Q.left&&b<=Q.right&&A>=Q.top&&A<=Q.bottom)}return!1};
zi9=function(A,Q,b){A.movefn=Q;A.upfn=b;document.addEventListener("mousemove",Q);document.addEventListener("mouseup",b)};
rK=function(A){document.removeEventListener("mousemove",A.movefn);document.removeEventListener("mouseup",A.upfn);A.movefn=null;A.upfn=null};
wZ9=function(A,Q){for(var b=document.elementFromPoint(A,Q),f=b;f&&f.shadowRoot&&!window.ShadyDOM;){var a=f;f=f.shadowRoot.elementFromPoint(A,Q);if(a===f)break;f&&(b=f)}return b};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var Q=uw6(A);return Q.length>0?Q[0]:A.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var Q=A.type,b=A.currentTarget.__polymerGestures;if(b&&(b=b[Q])){if(!A.__polymerGesturesHandled&&(A.__polymerGesturesHandled={},Q.slice(0,5)==="touch")){var f=A.changedTouches[0];Q==="touchstart"&&A.touches.length===1&&(Z7A=f.identifier);if(Z7A!==f.identifier)return;rbf||(Q==="touchstart"||Q==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)}f=
A.__polymerGesturesHandled;if(!f.skip){for(var a=0,T;a<jc.length;a++)T=jc[a],b[T.name]&&!f[T.name]&&T.flow&&T.flow.start.indexOf(A.type)>-1&&T.reset&&T.reset();for(a=0;a<jc.length;a++)T=jc[a],b[T.name]&&!f[T.name]&&(f[T.name]=!0,T[Q](A))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var Q=A.changedTouches[0],b=A.type;if(b==="touchstart")ybb=Q.clientX,YCb=Q.clientY,Dre=!1;else if(b==="touchmove"&&!Dre){Dre=!0;b="auto";for(var f=uw6(A),a=0,T;a<f.length;a++)if(T=f[a],T.__polymerGesturesTouchAction){b=T.__polymerGesturesTouchAction;break}f=!1;a=Math.abs(ybb-Q.clientX);Q=Math.abs(YCb-Q.clientY);A.cancelable&&(b==="none"?f=!0:b==="pan-x"?f=Q>a:b==="pan-y"&&(f=a>Q));f?A.preventDefault():
RN("track")}};
ec=function(A,Q,b){return gK[Q]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,Q,b),!0):!1};
hj=function(A,Q,b){return gK[Q]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,Q,b),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,Q,b){var f=gK[Q],a=f.deps,T=f.name,G=A.__polymerGestures;G||(A.__polymerGestures=G={});for(var p=0,P,U;p<a.length;p++)P=a[p],eiF&&tOe.indexOf(P)>-1&&P!=="click"||((U=G[P])||(G[P]=U={_count:0}),U._count===0&&A.addEventListener(P,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,gGW(P)),U[T]=(U[T]||0)+1,U._count=(U._count||0)+1);A.addEventListener(Q,b);f.touchAction&&_.Wt(A,f.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,Q,b){var f=gK[Q],a=f.deps;f=f.name;var T=A.__polymerGestures;if(T)for(var G=0,p,P;G<a.length;G++)p=a[G],(P=T[p])&&P[f]&&(P[f]=(P[f]||1)-1,P._count=(P._count||1)-1,P._count===0&&A.removeEventListener(p,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,gGW(p)));A.removeEventListener(Q,b)};
$r6=function(A){jc.push(A);for(var Q=0;Q<A.emits.length;Q++)gK[A.emits[Q]]=A};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){for(var Q=0,b;Q<jc.length;Q++){b=jc[Q];for(var f=0,a;f<b.emits.length;f++)if(a=b.emits[f],a===A)return b}return null};
_.Wt=function(A,Q){rbf&&A instanceof HTMLElement&&vt.run(function(){A.style.touchAction=Q});
A.__polymerGesturesTouchAction=Q};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,Q,b){Q=new Event(Q,{bubbles:!0,cancelable:!0,composed:!0});Q.detail=b;(0,_.Vu)(A).dispatchEvent(Q);Q.defaultPrevented&&(A=b.preventer||b.sourceEvent)&&A.preventDefault&&A.preventDefault()};
RN=function(A){A=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A.info&&(A.info.prevent=!0)};
E8=function(A,Q,b,f){Q&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Q,A,{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:f,prevent:function(a){return RN(a)}})};
NyU=function(A,Q,b){if(A.prevent)return!1;if(A.started)return!0;b=Math.abs(A.y-b);return Math.abs(A.x-Q)>=5||b>=5};
scY=function(A,Q,b){if(Q){var f=A.moves[A.moves.length-2],a=A.moves[A.moves.length-1],T=a.x-A.x,G=a.y-A.y,p=0;if(f){var P=a.x-f.x;p=a.y-f.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Q,"track",{state:A.state,x:b.clientX,y:b.clientY,dx:T,dy:G,ddx:P,ddy:p,sourceEvent:b,hover:function(){return wZ9(b.clientX,b.clientY)}})}};
ArX=function(A,Q,b){var f=Math.abs(Q.clientX-A.x),a=Math.abs(Q.clientY-A.y),T=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b||Q);!T||mrY[T.localName]&&T.hasAttribute("disabled")||!(isNaN(f)||isNaN(a)||f<=25&&a<=25||cbe(Q))||A.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(T,"tap",{x:Q.clientX,y:Q.clientY,sourceEvent:Q,preventer:b})};
QIJ=function(A,Q,b,f,a){var T;a&&(T=typeof b==="object"&&b!==null)&&(f=A.__dataTemp[Q]);f=f!==b&&(f===f||b===b);T&&f&&(A.__dataTemp[Q]=b);return f};
feX=function(){if(xw&&!ct){if(!beW){beW=!0;var A=document.createElement("style");A.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(A)}return!0}return!1};
TAU=function(){return aei};
dPy=function(A,Q){aei=A;Object.setPrototypeOf(A,Q.prototype);new Q;aei=null};
F_A=function(A,Q){for(var b=0;b<Q.length;b++){var f=Q[b];if(!!A!=!!f.__hideTemplateChildren__)if(f.nodeType===Node.TEXT_NODE)A?(f.__polymerTextContent__=f.textContent,f.textContent=""):f.textContent=f.__polymerTextContent__;else if(f.localName==="slot")if(A)f.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Vu)((0,_.Vu)(f).parentNode).replaceChild(f.__polymerReplaced__,f);else{var a=f.__polymerReplaced__;a&&(0,_.Vu)((0,_.Vu)(a).parentNode).replaceChild(f,a)}else f.style&&(A?(f.__polymerDisplay__=
f.style.display,f.style.display="none"):f.style.display=f.__polymerDisplay__);f.__hideTemplateChildren__=A;f._showHideChildren&&f._showHideChildren(A)}};
G0Y=function(A){return(A=A.__dataHost)&&A._methodHost||A};
PTy=function(A,Q,b){var f=b.mutableData?BAA:z9;wK.mixin&&(f=wK.mixin(f));var a=function(){return f.apply(this,arguments)||this};
_.O(a,f);a.prototype.__templatizeOptions=b;a.prototype._bindTemplate(A);pDY(a,A,Q,b);return a};
M1X=function(A,Q,b,f){var a=b.forwardHostProp;if(a&&Q.hasHostProps){var T=A.localName=="template",G=Q.templatizeTemplateClass;if(!G){if(T){var p=b.mutableData?XDf:S2X;G=function(){return p.apply(this,arguments)||this};
_.O(G,p);G=Q.templatizeTemplateClass=G}else{var P=A.constructor;G=function(){return P.apply(this,arguments)||this};
_.O(G,P);G=Q.templatizeTemplateClass=G}var U=Q.hostProps,L;for(L in U)G.prototype._addPropertyEffect("_host_"+L,G.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:UPe(a)}),G.prototype._createNotifyingProperty("_host_"+L);u0&&f&&L_f(Q,b,f)}A.__dataProto&&Object.assign(A.__data,A.__dataProto);if(T)dPy(A,G),A.__dataTemp={},A.__dataPending=null,A.__dataOld=null,A._enableProperties();else{Object.setPrototypeOf(A,G.prototype);Q=Q.hostProps;for(var M in Q)M="_host_"+M,M in A&&(Q=A[M],delete A[M],A.__data[M]=
Q)}}};
UPe=function(A){return function(Q,b,f){A.call(Q.__templatizeOwner,b.substring(6),f[b])}};
pDY=function(A,Q,b,f){var a=b.hostProps||{},T;for(T in f.instanceProps){delete a[T];var G=f.notifyInstanceProp;G&&A.prototype._addPropertyEffect(T,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:leJ(G)})}if(f.forwardHostProp&&Q.__dataHost)for(var p in a)b.hasHostProps||(b.hasHostProps=!0),A.prototype._addPropertyEffect(p,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:K_C()})};
leJ=function(A){return function(Q,b,f){A.call(Q.__templatizeOwner,Q,b,f[b])}};
K_C=function(){return function(A,Q,b){A.__dataHost._setPendingPropertyOrPath("_host_"+Q,b[Q],!0,!0)}};
wK=function(A,Q,b){if(Zf&&!G0Y(A))throw Error("Id");b=b||{};if(A.__templatizeOwner)throw Error("Jd");A.__templatizeOwner=Q;var f=(Q?Q.constructor:z9)._parseTemplate(A),a=f.templatizeInstanceClass;a||(a=PTy(A,f,b),f.templatizeInstanceClass=a);var T=G0Y(A);M1X(A,f,b,T);b=function(){return a.apply(this,arguments)||this};
_.O(b,a);b.prototype._methodHost=T;b.prototype.__dataHost=A;b.prototype.__templatizeOwner=Q;b.prototype.__hostProps=f.hostProps;return b};
L_f=function(A,Q,b){b=b.constructor._properties;A=A.propertyEffects;Q=Q.instanceProps;for(var f in A)if(!(b[f]||Q&&Q[f]))for(var a=A[f],T=0;T<a.length;T++){var G=a[T].info.part;if(!G.signature||!G.signature.static){console.warn("Property '"+f+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
ief=function(A,Q){for(var b;Q;)if(b=Q.__dataHost?Q:Q.__templatizeInstance)if(b.__dataHost!=A)Q=b.__dataHost;else return b;else Q=(0,_.Vu)(Q).parentNode;return null};
yu=function(A){return A.localName==="slot"};
Jrb=function(){for(var A=Yw.prototype,Q="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),b={},f=0;f<Q.length;b={method$jscomp$33:void 0},f++)b.method$jscomp$33=Q[f],A[b.method$jscomp$33]=function(a){return function(){return this.node[a.method$jscomp$33].apply(this.node,arguments)}}(b)};
V1A=function(A,Q){for(var b={},f=0;f<Q.length;b={name$jscomp$421:void 0},f++)b.name$jscomp$421=Q[f],Object.defineProperty(A,b.name$jscomp$421,{get:function(a){return function(){return this.node[a.name$jscomp$421]}}(b),
configurable:!0})};
Oef=function(){for(var A=Yw.prototype,Q=["textContent","innerHTML","className"],b={},f=0;f<Q.length;b={name$jscomp$422:void 0},f++)b.name$jscomp$422=Q[f],Object.defineProperty(A,b.name$jscomp$422,{get:function(a){return function(){return this.node[a.name$jscomp$422]}}(b),
set:function(a){return function(T){this.node[a.name$jscomp$422]=T}}(b),
configurable:!0})};
nUb=function(){Df=document.documentElement.getAttribute("dir");Df=document.documentElement.getAttribute("dir");for(var A=0;A<$w.length;A++){var Q=$w[A];Q.__autoDirOptOut||Q.setAttribute("dir",Df)}};
CTb=function(){NH=!0;requestAnimationFrame(function(){NH=!1;k0Y(Ieb);setTimeout(function(){for(var A=0,Q=s8.length;A<Q;A++)HeA(s8.shift())})})};
k0Y=function(A){for(;A.length;)HeA(A.shift())};
HeA=function(A){var Q=A[0],b=A[1];A=A[2];try{b.apply(Q,A)}catch(f){setTimeout(function(){throw f;})}};
_.q29=function(A,Q,b){NH||CTb();Ieb.push([A,Q,b])};
_.mL=function(A,Q,b){NH||CTb();s8.push([A,Q,b])};
rre=function(A,Q){Q=Q===void 0?!1:Q;if(!oUY||!t1A||!oUY.handlesDynamicScoping)return null;var b=t1A.ScopingShim;if(!b)return null;var f=b.scopeForNode(A),a=(0,_.Vu)(A).getRootNode(),T=function(G){if((0,_.Vu)(G).getRootNode()===a){var p=Array.from(oUY.nativeMethods.querySelectorAll.call(G,"*"));p.push(G);for(G=0;G<p.length;G++){var P=p[G];if((0,_.Vu)(P).getRootNode()===a){var U=b.currentScopeForNode(P);U!==f&&(U!==""&&b.unscopeNode(P,U),b.scopeNode(P,f))}}}};
T(A);return Q?(Q=new MutationObserver(function(G){for(var p=0;p<G.length;p++)for(var P=G[p],U=0;U<P.addedNodes.length;U++){var L=P.addedNodes[U];L.nodeType===Node.ELEMENT_NODE&&T(L)}}),Q.observe(A,{childList:!0,
subtree:!0}),Q):null};
jIY=function(){document.body.removeAttribute("unresolved")};
W_9=function(A){var Q=A=A.replace(RjA,"").replace(gUW,""),b=new ejb;b.start=0;b.end=Q.length;for(var f=b,a=0,T=Q.length;a<T;a++)if(Q[a]==="{"){f.rules||(f.rules=[]);var G=f,p=G.rules[G.rules.length-1]||null;f=new ejb;f.start=a+1;f.parent=G;f.previous=p;G.rules.push(f)}else Q[a]==="}"&&(f.end=a+1,f=f.parent||b);return hjF(b,A)};
hjF=function(A,Q){var b=Q.substring(A.start,A.end-1);A.parsedCssText=A.cssText=b.trim();A.parent&&(b=Q.substring(A.previous?A.previous.end:A.parent.start,A.start-1),b=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(b),b=b.replace(vUU," "),b=b.substring(b.lastIndexOf(";")+1),b=A.parsedSelector=A.selector=b.trim(),A.atRule=b.indexOf("@")===0,A.atRule?b.indexOf("@media")===0?A.type=4:b.match(EUJ)&&(A.type=7,A.keyframesName=A.selector.split(vUU).pop()):b.indexOf("--")===
0?A.type=1E3:A.type=1);if(b=A.rules)for(var f=0,a=b.length,T=void 0;f<a&&(T=b[f]);f++)hjF(T,Q);return A};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){return A.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var Q=arguments[1],b=6-Q.length;b--;)Q="0"+Q;return"\\"+Q})};
xPC=function(A,Q,b){b=b===void 0?"":b;var f="";if(A.cssText||A.rules){var a=A.rules;if(a&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(a))for(var T=0,G=a.length,p=void 0;T<G&&(p=a[T]);T++)f=xPC(p,Q,f);else Q?Q=A.cssText:(Q=A.cssText,Q=Q.replace(cri,"").replace(zjU,""),Q=Q.replace(wDf,"").replace(uYy,"")),(f=Q.trim())&&(f="  "+f+"\n")}f&&(A.selector&&(b+=A.selector+" {\n"),b+=f,A.selector&&(b+="}\n\n"));return b};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){A=A[0];return!!A&&!!A.selector&&A.selector.indexOf("--")===0};
yri=function(A){if(A=Zeb[A])A._applyShimCurrentVersion=A._applyShimCurrentVersion||0,A._applyShimValidatingVersion=A._applyShimValidatingVersion||0,A._applyShimNextVersion=(A._applyShimNextVersion||0)+1};
Y2J=function(A){return A._applyShimCurrentVersion===A._applyShimNextVersion};
$PW=function(A){A._applyShimValidatingVersion=A._applyShimNextVersion;A._validating||(A._validating=!0,DPU.then(function(){A._applyShimCurrentVersion=A._applyShimNextVersion;A._validating=!1}))};
sI6=function(A){if(!A)return"";typeof A==="string"&&(A=W_9(A));return xPC(A,NAC)};
mPC=function(A){!A.__cssRules&&A.textContent&&(A.__cssRules=W_9(A.textContent));return A.__cssRules||null};
QBW=function(A,Q,b,f){if(A){var a=!1,T=A.type;if(f&&T===4){var G=A.selector.match(AdA);G&&(window.matchMedia(G[1]).matches||(a=!0))}T===1?Q(A):b&&T===7?b(A):T===1E3&&(a=!0);if((A=A.rules)&&!a)for(a=0,T=A.length,G=void 0;a<T&&(G=A[a]);a++)QBW(G,Q,b,f)}};
bw9=function(A,Q){var b=A.indexOf("var(");if(b===-1)return Q(A,"","","");a:{var f=0;var a=b+3;for(var T=A.length;a<T;a++)if(A[a]==="(")f++;else if(A[a]===")"&&--f===0)break a;a=-1}f=A.substring(b+4,a);b=A.substring(0,b);A=bw9(A.substring(a+1),Q);T=f.indexOf(",");if(T===-1)return Q(b,f.trim(),"",A);a=f.substring(0,T).trim();f=f.substring(T+1).trim();return Q(b,a,f,A)};
fW6=function(A){if(Ax!==void 0)return Ax;if(A.__cssBuild===void 0){var Q=A.getAttribute("css-build");if(Q)A.__cssBuild=Q;else{a:{Q=A.localName==="template"?A.content.firstChild:A.firstChild;if(Q instanceof Comment&&(Q=Q.textContent.trim().split(":"),Q[0]==="css-build")){Q=Q[1];break a}Q=""}if(Q!==""){var b=A.localName==="template"?A.content.firstChild:A.firstChild;b.parentNode.removeChild(b)}A.__cssBuild=Q}}return A.__cssBuild||""};
Th4=function(A,Q,b,f){for(var a=Q._noAccessors,T=Object.getOwnPropertyNames(Q),G=0;G<T.length;G++){var p=T[G];if(!(p in f))if(a)A[p]=Q[p];else{var P=Object.getOwnPropertyDescriptor(Q,p);P&&(P.configurable=!0,Object.defineProperty(A,p,P))}}for(var U in aWW)Q[U]&&(b[U]=b[U]||[],b[U].push(Q[U]))};
d_6=function(A,Q,b){Q=Q||[];for(var f=A.length-1;f>=0;f--){var a=A[f];a?Array.isArray(a)?d_6(a,Q):Q.indexOf(a)<0&&(!b||b.indexOf(a)<0)&&Q.unshift(a):console.warn("behavior is null, check for missing or 404 import")}return Q};
FQX=function(A,Q){for(var b in Q){var f=A[b],a=Q[b];A[b]=!("value"in a)&&f&&"value"in f?Object.assign({value:f.value},a):a}};
pki=function(A,Q,b){var f={},a=function(){return Q.apply(this,arguments)||this};
_.O(a,Q);a._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(G)for(var P=0,U;P<G.length;P++)U=G[P],U.properties&&this.createProperties(U.properties),U.observers&&this.createObservers(U.observers,U.properties);A.properties&&this.createProperties(A.properties);A.observers&&this.createObservers(A.observers,A.properties);this._prepareTemplate()}else Q._finalizeClass.call(this)};
a.prototype.created=function(){Q.prototype.created.call(this);var P=f.created;if(P)for(var U=0;U<P.length;U++)P[U].call(this)};
a.prototype._registered=function(){var P=a.prototype;if(!P.hasOwnProperty("__hasRegisterFinished")){P.__hasRegisterFinished=!0;Q.prototype._registered.call(this);xw&&p(P);P=Object.getPrototypeOf(this);var U=f.beforeRegister;if(U)for(var L=0;L<U.length;L++)U[L].call(P);if(U=f.registered)for(L=0;L<U.length;L++)U[L].call(P)}};
a.prototype._applyListeners=function(){Q.prototype._applyListeners.call(this);var P=f.listeners;if(P)for(var U=0;U<P.length;U++){var L=P[U];if(L)for(var M in L)this._addMethodEventListenerToNode(this,M,L[M])}};
a.prototype._ensureAttributes=function(){var P=f.hostAttributes;if(P)for(var U=P.length-1;U>=0;U--){var L=P[U],M;for(M in L)this._ensureAttribute(M,L[M])}Q.prototype._ensureAttributes.call(this)};
a.prototype.ready=function(){Q.prototype.ready.call(this);var P=f.ready;if(P)for(var U=0;U<P.length;U++)P[U].call(this)};
a.prototype.attached=function(){Q.prototype.attached.call(this);var P=f.attached;if(P)for(var U=0;U<P.length;U++)P[U].call(this)};
a.prototype.detached=function(){Q.prototype.detached.call(this);var P=f.detached;if(P)for(var U=0;U<P.length;U++)P[U].call(this)};
a.prototype.attributeChanged=function(P,U,L){Q.prototype.attributeChanged.call(this);var M=f.attributeChanged;if(M)for(var l=0;l<M.length;l++)M[l].call(this,P,U,L)};
_.Qr.Object.defineProperties(a,{properties:{configurable:!0,enumerable:!0,get:function(){var P={};if(G)for(var U=0;U<G.length;U++)FQX(P,G[U].properties);FQX(P,A.properties);return P}},
observers:{configurable:!0,enumerable:!0,get:function(){var P=[];if(G)for(var U=0,L;U<G.length;U++)L=G[U],L.observers&&(P=P.concat(L.observers));A.observers&&(P=P.concat(A.observers));return P}}});
if(b){Array.isArray(b)||(b=[b]);var T=Q.prototype.behaviors;var G=d_6(b,null,T);a.prototype.behaviors=T?T.concat(b):G}var p=function(P){if(G)for(var U=G,L=0;L<U.length;L++)Th4(P,U[L],f,GNi);Th4(P,A,f,Bhi)};
xw||p(a.prototype);a.generatedFrom=A;return a};
U_y=function(A){var Q=typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0};Q.fastInit===void 0&&(Q.fastInit=!0);return function(b){if(!Q.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==_.bh)throw Error("Nd");var f=b.prototype;f.is=Q.is;iS4(f,"created",function(){this.hostElement=this;this.polymerController=this});
PGy(f,b,Q.fastInit);Q.notifyObserversOnUndefined&&(f._overrideLegacyUndefined=!0);if(XkX)for(var a=_.F(Object.getOwnPropertyNames(f)),T=a.next();!T.done;T=a.next()){T=T.value;var G=Object.getOwnPropertyDescriptor(f,T);G.enumerable===!1&&(G.enumerable=!0,Object.defineProperty(f,T,G))}if("template"in b)var p=function(){return b.template};
else Q.template!==void 0&&(p=Q.template);if(p!==void 0){var P;Object.defineProperty(f,"_template",{get:function(){P===void 0&&(P=p());return P},
set:function(U){P=U},
configurable:!0,enumerable:!0})}Polymer(f);b[SJe]=f}};
LQC=function(A){A=A===void 0?{}:A;A.fastInit===void 0&&(A.fastInit=!0);return function(Q){if(!A.disableInheritanceCheck&&Object.getPrototypeOf(Q.prototype).constructor!==f1)throw Error("Od");PGy(Q.prototype,Q,A.fastInit)}};
PGy=function(A,Q,b){b=b===void 0?!1:b;MEb(Q);b?iS4(A,"created",function(){this.disableEnforceFastDefaultValuesCheck||lWF(Q,this)}):iS4(A,"ready",function(){for(var f={},a=_.F(JcX(this.behaviors)),T=a.next();!T.done;T=a.next())T=T.value,T.properties&&Object.assign(f,KQC(this,T.properties));
Object.assign(f,KQC(this,this.properties));lWF(Q,this);a=_.F(Object.keys(f));for(T=a.next();!T.done;T=a.next())T=T.value,this[T]=f[T]})};
lWF=function(A,Q){if(XkX){A=new A;for(var b=_.F(Object.getOwnPropertyNames(A)),f=b.next();!f.done;f=b.next())f=f.value,Q[f]=A[f];for(b=Q;b&&b!==Object.prototype;b=Object.getPrototypeOf(b)){f=_.F(Object.getOwnPropertyNames(b));for(var a=f.next();!a.done;a=f.next())a=a.value,A.hasOwnProperty(a)||Object.defineProperty(A,a,iwJ(Q,a))}}else A.apply(Q)};
iwJ=function(A,Q){return{get:function(){var b=A[Q];return b instanceof Function?b.bind(A):b},
set:function(b){A[Q]=b}}};
KQC=function(A,Q){if(!Q)return{};for(var b={},f=_.F(Object.keys(Q)),a=f.next();!a.done;a=f.next())if(a=a.value,!Q[a].readOnly){var T=A[a];T!==void 0&&(b[a]=T)}return b};
MEb=function(A){var Q=new A;A=A.prototype.properties||{};for(var b=_.F(Object.keys(A)),f=b.next();!f.done;f=b.next())if(f=f.value,Q.hasOwnProperty(f)){var a=A[f];typeof a==="function"&&(A[f]=a={type:a});Q[f]!=null&&a.type===Object&&(a.type=JdX(Q[f].constructor))}};
JdX=function(A){for(var Q=_.F(VEC),b=Q.next();!b.done;b=Q.next())if(b=b.value,A===b)return b;return Object};
OwW=function(A){return function(Q,b){Q.behaviors=Q.behaviors||[];Q.behaviors.push(A||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",Q,b).prototype:void 0));Object.defineProperty(Q,b,{get:function(){return this},
enumerable:!0,configurable:!0})}};
nEb=function(A){A=A===void 0?{}:A;return function(Q,b){Q.properties=Q.properties||{};A.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?A.type=JdX(Reflect.getMetadata("design:type",Q,b)):A.type=String);var f=A,a=Q.properties[b];Q.properties[b]=a?Object.assign({},a,f):f}};
kNY=function(A){return function(Q,b){Q.listeners=Q.listeners||{};Q.listeners[A]=b}};
IWU=function(){var A=_.E$.apply(0,arguments);if(A.length===0)throw Error("Pd");return function(Q,b){Q.observers=Q.observers||[];Q.observers.push(b+"("+A.join(",")+")")}};
HwX=function(){var A=_.E$.apply(0,arguments);return function(Q,b,f){var a=Object.getOwnPropertyDescriptor(Q,b).get,T="__compute__"+b;Object.defineProperty(Q,T,{value:a,enumerable:!0});Q.properties=Q.properties||{};a=Q.properties[b];a||(a={},Q.properties[b]=a);a.computed=T+"("+A.join(",")+")";f.get=void 0}};
_.TL=function(A,Q,b){_.k$.call(this);this.JSC$11200_id_=null;this.usingListeners_=!1;this.JSC$11200_listener_=A;this.handler_=b;this.JSC$11200_win_=Q||window;this.callback_=(0,_.IL)(this.JSC$11202_doAction_,this)};
dG=function(A){this.range_=A};
FM=function(A){this.range_=A};
p1=function(A,Q,b){_.k$.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=A;this.scrollTimer_=new _.GL(50);this.JSC$11279_eventHandler_=new _.BR(this);this.scrollDelta_=new _.gQ;this.containerIsActuallyContent_=A.tagName==="BODY"||A.tagName==="HTML";this.containerBounds_=CGX(A);this.containerIsActuallyContent_&&(A=_.J3(),this.containerBounds_.height=A.height,this.containerBounds_.width=A.width);this.margin_=Q||0;if(Q){if(Q=this.containerBounds_.clone(),A=this.margin_){var f=
Math.min(A,Q.height*.25);Q.top+=f;Q.height-=2*f;A=Math.min(A,Q.width*.25);Q.left+=A;Q.width-=2*A}}else Q=this.containerBounds_;this.scrollBounds_=Q;b||this.JSC$11279_eventHandler_.listen(_.h3(this.containerNode_),"mousemove",this.JSC$11281_onMouseMove);this.JSC$11279_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11281_onTick_)};
_.PR=function(A){this.mechanism=A};
XM=function(A,Q){this.JSC$11377_key_=A;this.JSC$11377_value_=Q};
oE4=function(A){if(A>=55296&&A<=57343||A>1114111)return"\ufffd";A in qJC&&(A=qJC[A]);var Q="";A>65535&&(A-=65536,Q+=String.fromCharCode(A>>>10&1023|55296),A=56320|A&1023);return Q+=String.fromCharCode(A)};
tEy=function(A,Q){return A<Q?1:-1};
RuF=function(){return function(A){return A.charAt(1)==="#"?A.charAt(2)==="X"||A.charAt(2)==="x"?oE4(parseInt(A.substr(3),16)):oE4(parseInt(A.substr(2),10)):jB4[A.slice(1,-1)]}};
hub=function(A){return A.slice(1,A.length-1).trim().replace(gEb,function(Q){return euC[Q]||" "})};
SU=function(A){return A===32||A===9};
Uv=function(A,Q){return Q<A.length?A.charCodeAt(Q):-1};
WQU=function(A){for(;A;){if(A._lastLineBlank)return!0;var Q=A.type;if(Q==="list"||Q==="item")A=A._lastChild;else break}return!1};
L1=function(A){if(vEi.test(A)){var Q=1,b=0,f=0;for(A[b]=="|"&&b++;b<A.length;){switch(A[b]){case "|":f=1;break;case " ":break;case "\t":break;default:f&&(f=0,Q++)}b++}return EEe.test(A)?-Q:Q}return 0};
x_9=function(A){return A=="table"||A=="row"||A=="cell"};
cdy=function(){return new MW("document",[[1,1],[0,0]])};
zuy=function(){};
lh=function(){var A={safe:!1};A=A||{};A.softbreak=A.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=A};
YJX=function(A,Q){var b="";if(A)if(A=A.toLowerCase(),A===" "||wkF.test(A))b="space";else if(uCJ.test(A))b="esc";else if(A.length==1){if(!Q||ZwX.test(A))b=A}else b=ydX.test(A)?A.replace("arrow",""):A=="multiply"?"*":A;return b};
sBy=function(A,Q){var b=A.hasModifiers;if(Q.key)b=YJX(Q.key,b);else if(Q.detail&&Q.detail.key)b=YJX(Q.detail.key,b);else{b=Q.keyIdentifier;var f="";b&&(b in D_b?f=D_b[b]:$_6.test(b)?(b=parseInt(b.replace("U+","0x"),16),f=String.fromCharCode(b).toLowerCase()):f=b.toLowerCase());(b=f)||(b=Q.keyCode,f="",Number(b)&&(b>=65&&b<=90?f=String.fromCharCode(32+b):b>=112&&b<=123?f="f"+(b-112+1):b>=48&&b<=57?f=String(b-48):b>=96&&b<=105?f=String(b-96):f=NhU[b]),b=f);b=b||""}return b===A.key&&(!A.hasModifiers||
!!Q.shiftKey===!!A.shiftKey&&!!Q.ctrlKey===!!A.ctrlKey&&!!Q.altKey===!!A.altKey&&!!Q.metaKey===!!A.metaKey)};
A1U=function(A){return A.length===1?{combo:A,key:A,event:"keydown"}:A.split("+").reduce(function(Q,b){var f=b.split(":");b=f[0];f=f[1];b in m_4?(Q[m_4[b]]=!0,Q.hasModifiers=!0):(Q.key=b,Q.event=f||"keydown");return Q},{combo:A.split(":").shift()})};
QHi=function(A){return A.trim().split(" ").map(function(Q){return A1U(Q)})};
bG9=function(A,Q){if(A&&A.fn){var b=A.fn;A.fn=function(){try{b.apply(this,arguments)}catch(f){if(f instanceof K1)console.warn("Argument '"+f.arg+"'"+(Q?" for method '"+Q+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw f;}}}return A};
f7y=function(){var A=_.E$.apply(0,arguments);return A.length===0?function(Q){return Q}:A.length===1?A[0]:A.reduce(function(Q,b){return function(){return Q(b.apply(null,_.ri(_.E$.apply(0,arguments))))}})};
a7F=function(){var A=_.E$.apply(0,arguments);return function(Q){return function(b,f){b=Q(b,f);var a=function(){throw Error("ze");},T={getState:b.getState,
dispatch:function(G){return a.apply(null,[G].concat(_.ri(_.E$.apply(1,arguments))))}};
f=A.map(function(G){return G(T)});
a=f7y.apply(null,_.ri(f))(b.dispatch);return Object.assign({},b,{dispatch:a})}}};
Fpi=function(A){Object.keys(A).forEach(function(Q){var b=A[Q];if(typeof b(void 0,{type:Trb})==="undefined")throw Error("Ae`"+Q);if(typeof b(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+dY6()})==="undefined")throw Error("Be`"+Q+"`"+Trb);})};
ih=function(A){for(var Q=Object.keys(A),b={},f=0;f<Q.length;f++){var a=Q[f];typeof A[a]==="function"&&(b[a]=A[a])}var T=Object.keys(b);try{Fpi(b)}catch(p){var G=p}return function(p,P){p=p===void 0?{}:p;if(G)throw G;for(var U=!1,L={},M=0;M<T.length;M++){var l=T[M],J=p[l],n=(0,b[l])(J,P);if(typeof n==="undefined")throw p=P&&P.type,Error("Ce`"+(p?'"'+String(p)+'"':"(unknown type)")+"`"+l);L[l]=n;U=U||n!==J}return(U=U||T.length!==Object.keys(p).length)?L:p}};
GsA=function(A,Q,b){function f(){if(L)throw Error("De");return p}
function a(J){if(typeof J!=="function")throw Error("Ee`"+typeof J);if(L)throw Error("Fe");var n=!0;U===P&&(U=P.slice());U.push(J);return function(){if(n){if(L)throw Error("Ge");n=!1;U===P&&(U=P.slice());var t=U.indexOf(J);U.splice(t,1);P=null}}}
function T(J){if(typeof J!=="object"||J===null)var n=!1;else{for(n=J;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);n=Object.getPrototypeOf(J)===n}if(!n)throw Error("He`"+typeof J);if(typeof J.type==="undefined")throw Error("Ie");if(L)throw Error("Je");try{L=!0,p=G(p,J)}finally{L=!1}n=P=U;for(var t=0;t<n.length;t++)(0,n[t])();return J}
if(typeof Q==="function"&&typeof b==="function"||typeof b==="function"&&typeof arguments[3]==="function")throw Error("Ke");typeof Q==="function"&&typeof b==="undefined"&&(b=Q,Q=void 0);if(typeof b!=="undefined"){if(typeof b!=="function")throw Error("Le`"+typeof b);return b(GsA)(A,Q)}if(typeof A!=="function")throw Error("Me`"+typeof A);var G=A,p=Q,P=[],U=P,L=!1;T({type:Trb});var M={},l=(M.dispatch=T,M.subscribe=a,M.getState=f,M.replaceReducer=function(J){if(typeof J!=="function")throw Error("Ne`"+
typeof J);G=J;T({type:Bri});return l},M[p2Y]=function(){var J={};
return J.subscribe=function(n){function t(){n.next&&n.next(f())}
if(typeof n!=="object"||n===null)throw new TypeError("Oe`"+typeof n);t();return{unsubscribe:a(t)}},J[p2Y]=function(){return this},J},M);
return l};
P9A=function(A){function Q(){a&&(a=!1,A());T&&f()}
function b(){requestAnimationFrame(Q)}
function f(){var p=Date.now();if(a){if(p-G<2)return;T=!0}else a=!0,T=!1,setTimeout(b,20);G=p}
var a=!1,T=!1,G=0;return f};
Jx=function(A){return typeof A==="number"?A:parseFloat(A)||0};
X2W=function(A){return _.E$.apply(1,arguments).reduce(function(Q,b){return Q+Jx(A["border-"+b+"-width"])},0)};
_.k=function(A,Q){Q=un(w$(Q));A.innerHTML=Q};
LpY=function(A){var Q=S3U;Q||(Q=UYi(),Q=S3U=_.j2.transpose(Q));Q=Q[A];return typeof Q==="string"?Q:_.Vr(A)};
MVi=function(A){A=String(A).toLowerCase();var Q=UYi()[A];return typeof Q==="string"?Q:_.Ov(A)};
l7W=function(A){A=A.toLowerCase();A=UYi()[A];return typeof A==="string"?A:null};
UYi=function(){if(!Kp4){for(var A=Object.assign({},iGY),Q=_.F(J1e),b=Q.next();!b.done;b=Q.next())b=b.value,A[b.toLowerCase()]=b;Kp4=A}return Kp4};
npC=function(A,Q){var b=window.customElements;return b&&b.get(A)||VVi[A]===!0?2:Q.name==="HTMLUnknownElement"?1:Q.name==="HTMLElement"&&OGy.test(A)?3:0};
HGF=function(A,Q){switch(Q){case "innerHTML":return ksf(A)===1?2:null;case "textContent":return A=ksf(A),A===1||A===6?1:null;default:var b,f;return(f=(b=I7C[A.localName])==null?void 0:b[Q])!=null?f:null}};
ksf=function(A){var Q=A.localName,b=npC(Q,A.constructor);switch(b){case 0:case 1:return C9y(Q,A);case 3:case 2:return 1;default:_.x1(b,"got an unknown element classification")}};
C9y=function(A,Q){var b=Object.hasOwnProperty.call(q3e,A)?q3e[A]:null;return b!==null?b:Object.hasOwnProperty.call(opA,A)&&Q instanceof SVGElement?opA[A]:null};
tV6=function(A,Q){return Q};
jH4=function(A){return(A=A.split(r1W,2))?{url:A[0],metadata:A[1]}:null};
gpb=function(A){var Q=String(A.url).replace(RVJ,encodeURIComponent);if(A=A.metadata){RVJ.lastIndex=0;if(RVJ.test(A))return null;Q+=" "+A}return Q};
vpY=function(A){function Q(U){var L=U.localName;if(!U.getAttribute("is")&&npC(L,U.constructor)===2){var M;return(M=P)!=null?M:P=document.createElement("polyresinuncustomized")}(U=p[L])||(U=p[L]=document.createElement(L));return U}
var b=A.reportHandler||void 0,f=A.safeTypesBridge||eVA,a=/^$/;if(A=A.allowedIdentifierPrefixes){A=_.F(A);for(var T=A.next();!T.done;T=A.next())a=new RegExp(a.source+"|^"+_.hV9(T.value))}b&&b(!1,"initResin",null);var G=Wpy(a,f,b),p={},P=null;return function(U,L,M){var l=U.nodeType;if(l!==Node.ELEMENT_NODE){if(l===Node.TEXT_NODE){L=U.parentElement;M=!L;if(L&&L.nodeType===Node.ELEMENT_NODE){l=L.localName;var J=npC(l,L.constructor);switch(J){case 0:case 1:L=C9y(l,L);M=L===1||L===6;break;case 3:case 2:M=
!0;break;default:_.x1(J,"got an unknown element classification")}}if(M)return function(e){return""+f(e,"STRING",e)}}return function(e){if(!e&&e!==document.all)return e;
b&&b(!0,"Failed to sanitize "+(U.parentElement&&U.parentElement.nodeName)+" #text node to value "+e,U.parentElement);return n1}}var n=U.localName;
l=Q(U);var t=null;switch(M){case "attribute":if(MVi(L)in l)break;return function(e){return e};
case "property":if(L in l){t=HGF(l,L);break}if((J=l7W(L))&&J in l)break;return function(e){return e};
default:_.x1(M,"got an unknown resin type, expected either 'property' or 'attribute'")}var g=M==="attribute"?L.toLowerCase():LpY(L);t||(t=ffA(n,g,function(e){var x=U.getAttribute(e);return!x||/[\[\{]/.test(e)?null:x}));
return function(e){var x=kf,D=null;if(!e&&e!==document.all)return e;if(t!=null){var w=G[t],u=w.safeType;D=w.safeReplacement;u&&(x=f(e,u,kf));x===kf&&(w.filterString?(x=String(f(e,"STRING",e)),x=w.filterString(n,g,x)):w.filterRaw&&(x=w.filterRaw(n,g,e,U)),x===D&&(x=kf))}x===kf&&(x=D||n1,b&&b(!0,"Failed to sanitize attribute of <"+n+">: <"+n+" "+g+'="'+e+'">',U));return x}}};
Wpy=function(A,Q,b){return[,{filterRaw:function(f,a,T){return T},
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:Ep6,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Ep6,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:n1,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:xYX,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(f,a,T){T=
String(T).toLowerCase();return dHY(f,a,T)?T:n1},
safeReplacement:n1,safeType:void 0},,{filterRaw:void 0,filterString:function(f,a,T){return A.test(T)?T:n1},
safeReplacement:n1,safeType:"CONSTANT"},{filterRaw:function(f,a,T,G){if(typeof T==="string")var p=(p=T.match(c19))?p.map(jH4).filter(Boolean):[];else if(Array.isArray(T))p=T;else return Ep6;var P=p;p=[];var U=[],L={};if(Array.isArray(P))for(var M=0,l=P.length;M<l;++M){var J=P[M],n=J&&J.url;if(n){var t=Q(n,"URL",L);if(t){var g=t!==L;(g?p:U).push({url:g?t:n,metadata:J.metadata})}}}else U.push(P);P=U.length?JSON.stringify(U):null;U=kf;if(p.length){if(!Array.isArray(p))throw Error();U=p.map(gpb).filter(Boolean).join(" , ")||
kf}P&&b&&b(!0,"Failed to sanitize attribute value of <"+f+">: <"+f+" "+a+'="'+T+'">: '+P,G);return U===kf?Ep6:U},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
zVf=function(A){var Q=vpY(A);return function(b,f,a,T){return T||T===document.all?Q(b,f,a)(T):T}};
Ii=function(A,Q){function b(){function a(p,P,U){for(P=Reflect.getMetadata("parameters",p)||[];P.length<=U;)P.push(null);P[U]=P[U]||[];P[U].push(G);Reflect.defineMetadata(P,p);return p}
var T=_.E$.apply(0,arguments);if(this instanceof b)return f.apply(this,T),this;var G=new (Function.prototype.bind.apply(b,[null].concat(_.ri(T))));a.annotation=G;return a}
var f=w2C(Q);b.prototype.toString=function(){return"@"+A};
return b.annotationCls=b};
w2C=function(A){return function(){var Q=_.E$.apply(0,arguments),b=this;A.forEach(function(f,a){a=Q[a];if(Array.isArray(f))b[f[0]]=a&&a!==void 0?a:f[1];else for(var T in f)b[T]=a&&a[T]!==void 0?a[T]:f[T]})}};
utC=function(A){return A!==void 0&&A!==null};
HR=function(A){if(typeof A==="string")return A;if(A===void 0||A===null)return""+A;if(A.overriddenName)return A.overriddenName;if(A.name)return A.name;A=A.toString();var Q=A.indexOf("\n");return Q===-1?A:A.substring(0,Q)};
ZGe=function(A){A.__forward_ref__=ZGe;A.toString=function(){return HR(this())};
return A};
C1=function(A){return typeof A==="function"&&A.hasOwnProperty("__forward_ref__")&&A.__forward_ref__===ZGe?A():A};
y1i=function(A){return A?A.map(function(Q){return new (Function.prototype.bind.apply(Q.type.annotationCls,[null].concat(_.ri(Q.args?Q.args:[]))))}):[]};
Y39=function(A){for(var Q=[],b=0;b<A.length;++b){if(Q.indexOf(A[b])>-1){Q.push(A[b]);break}Q.push(A[b])}return Q};
DYW=function(A){return A.length>1?" ("+Y39(A.slice().reverse()).map(function(Q){return HR(Q.token)}).join(" -> ")+")":""};
Nri=function(A,Q,b,f){if(f){var a=Error("Ve``"+(f instanceof Error?f.message:f));a.ngOriginalError=f}else a=Error();a.addKey=$YY;a.keys=[Q];a.injectors=[A];a.constructResolvingMessage=b;a.message=a.constructResolvingMessage();a.ngOriginalError=f;return a};
$YY=function(A,Q){this.injectors.push(A);this.keys.push(Q);this.message=this.constructResolvingMessage()};
sHi=function(A,Q){return Nri(A,Q,function(){return"No provider for "+HR(this.keys[0].token)+"!"+DYW(this.keys)})};
mYb=function(A,Q){return Nri(A,Q,function(){return"Cannot instantiate cyclic dependency!"+DYW(this.keys)})};
APC=function(A,Q,b){return Nri(A,b,function(){var f=HR(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+f+"!"+DYW(this.keys)+"."},Q)};
Qje=function(A,Q){for(var b=[],f=0,a=Q.length;f<a;f++){var T=Q[f];T&&T.length!=0?b.push(T.map(HR).join(" ")):b.push("?")}return Error("Ze`"+HR(A)+"`"+b.join(", ")+"`"+HR(A))};
GfA=function(A){var Q=void 0,b=void 0;if(A&&A.useClass!==void 0){Q=A.useClass;var f=C1(A.useClass);var a=boi.factory(f);f=fuC(f)}else A&&A.useExisting!==void 0?(a=function(T){return T},f=[auA(qW.get(C1(A.useExisting)))]):A&&A.useFactory!==void 0?(a=A.useFactory,f=TdY(A.useFactory,A.deps)):(b=A.useValue,a=function(){return A.useValue},f=dAi);
return new FIU(a,f,Q,b)};
pXW=function(A){return new BdF(qW.get(C1(A.provide)),[GfA(A)],A.multi)};
XXi=function(A){A=P1y(A,[]).map(pXW);for(var Q=new Map,b=0;b<A.length;b++){var f=A[b],a=Q.get(f.key.id);if(a){if(f.multiProvider!==a.multiProvider)throw Error("af`"+a+"`"+f);if(f.multiProvider)for(var T=0;T<f.resolvedFactories.length;T++)a.resolvedFactories.push(f.resolvedFactories[T]);else Q.set(f.key.id,f)}else a=void 0,f.multiProvider?a=new BdF(f.key,f.resolvedFactories.slice(),f.multiProvider):a=f,Q.set(f.key.id,a)}return Array.from(Q.values())};
P1y=function(A,Q){A.forEach(function(b){if(b instanceof SfY)Q.push({provide:b,useClass:b});else if(b&&typeof b=="object"&&b.provide!==void 0)Q.push(b);else if(b instanceof Array)P1y(b,Q);else throw Error("Ye`"+b);});
return Q};
TdY=function(A,Q){if(Q){var b=Q.map(function(f){return[f]});
return Q.map(function(f){return UAi(A,f,b)})}return fuC(A)};
fuC=function(A){var Q=boi.parameters(A);if(!Q)return[];if(Q.some(function(b){return b==null}))throw Qje(A,Q);
return Q.map(function(b){return UAi(A,b,Q)})};
UAi=function(A,Q,b){var f=null,a=!1;if(!Array.isArray(Q))return Q instanceof LI9?Mp9(Q.token,a,null):Mp9(Q,a,null);for(var T=null,G=0;G<Q.length;++G){var p=Q[G];if(p instanceof SfY)f=p;else if(p instanceof LI9)f=p.token;else if(p instanceof luU)a=!0;else if(p instanceof KIU||p instanceof io6)T=p}f=C1(f);if(f!=null)return Mp9(f,a,T);throw Qje(A,b);};
Mp9=function(A,Q,b){return new JP6(qW.get(C1(A)),Q,b)};
Vp9=function(A,Q){for(var b=Array(A.providers.length),f=0;f<A.providers.length;++f){var a=f;if(f<0||f>=A.providers.length)throw Error("$e`"+f);b[a]=Q(A.providers[f])}return b};
Oo9=function(A){return typeof A==="function"&&boi.parameters(A).every(function(Q){return!!Q})};
Iu9=function(A){var Q=nHy;kfb.get(A)||kfb.set(A,new Q);return kfb.get(A)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,Q){var b,f;if(A.contains(Q))return!0;A=_.oi(A).querySelectorAll("content,slot");for(b=0;b<A.length;++b){var a=_.oi(A[b]).getDistributedNodes();for(f=0;f<a.length;++f)if(a[f].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a[f],Q))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){A.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A)&&A.preventDefault();A.targetTouches&&(A=A.targetTouches[0],HoJ=A.pageX,C1e=A.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 A=0,Q=tx.length;A<Q;A++)document.addEventListener(tx[A],_._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 A=0,Q=tx.length;A<Q;A++)document.removeEventListener(tx[A],_._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(A){var Q=_.oi(A).rootTarget;A.type!=="touchmove"&&qfJ!==Q&&(qfJ=Q,oHe=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.oi(A).path));if(!oHe.length)return!0;if(A.type==="touchstart")return!1;A=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(oHe,A.deltaX,A.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){for(var Q=[],b=A.indexOf(tpX),f=0;f<=b;f++)if(A[f].nodeType===Node.ELEMENT_NODE){var a=A[f],T=a.style;T.overflow!=="scroll"&&T.overflow!=="auto"&&(T=window.getComputedStyle(a));T.overflow!=="scroll"&&T.overflow!=="auto"||Q.push(a)}return Q};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,Q,b){if(Q||b)for(var f=Math.abs(b)>=Math.abs(Q),a=0;a<A.length;a++){var T=A[a];if(f?b<0?T.scrollTop>0:T.scrollTop<T.scrollHeight-T.clientHeight:Q<0?T.scrollLeft>0:T.scrollLeft<T.scrollWidth-T.clientWidth)return T}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){var Q={deltaX:A.deltaX,deltaY:A.deltaY};"deltaX"in A||("wheelDeltaX"in A&&"wheelDeltaY"in A?(Q.deltaX=-A.wheelDeltaX,Q.deltaY=-A.wheelDeltaY):"wheelDelta"in A?(Q.deltaX=0,Q.deltaY=-A.wheelDelta):"axis"in A?(Q.deltaX=A.axis===1?A.detail:0,Q.deltaY=A.axis===2?A.detail:0):A.targetTouches&&(A=A.targetTouches[0],Q.deltaX=HoJ-A.pageX,Q.deltaY=C1e-A.pageY));return Q};
rPi=function(A){this.element=A;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
R9F=function(A){this.element=A;this.color=window.getComputedStyle(A).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");_.oi(this.waveContainer).appendChild(this.wave);jjy(this)};
rG=function(A,Q){for(var b in A)if(b.toLowerCase()===Q.toLowerCase())return A[b]};
gHF=function(A,Q){for(var b in A)if(b.toLowerCase()===Q.toLowerCase()){delete A[b];break}};
h9C=function(A){A=_.j2.clone(A);for(var Q=0;Q<e9F.length;++Q){var b=e9F[Q],f=rG(A,b);f&&(A["X-Goog-Upload-Header-"+b]=f,gHF(A,b))}return A};
WI6=function(A){A=_.j2.clone(A);gHF(A,"X-Goog-Upload-Status")};
EHi=function(A){return vHX.some(function(Q){return Q.test(A)})};
wX6=function(A,Q){var b;var f=(b=A.formContent)==null?void 0:b.locale;b=f==null?void 0:f.split("-")[0];f=f&&xA4.includes(f)?f:b&&xA4.includes(b)?b:void 0;f=(f!=null?f:"en").replaceAll("-","_").toLowerCase();var a;A=((a=A.initializationData)==null?0:a.useNightlyRelease)?"nightly":"live";var T;return(Q==null?0:(T=Q.getEnableAlohaBinarySplit)==null?0:T.call(Q))?_.GH(cPX,A):_.GH(z9i,A,f)};
yPY=function(A,Q,b,f){if(uhi&&Zoi===Q)return uhi;Zoi=Q;var a=wX6(A,f);return uhi=Q.feedbackV2GlobalObject?Promise.resolve(Q.feedbackV2GlobalObject):new Promise(function(T,G){var p=_.KK("SCRIPT");_.mw(p,a);p.onload=function(){Q.feedbackV2GlobalObject?T(Q.feedbackV2GlobalObject):G(Error("df"))};
p.onerror=function(){G(Error("ef`"+a.toString()))};
b.body.appendChild(p)})};
$AF=function(A,Q,b,f){if(Yf4&&DAU===Q)return Yf4;DAU=Q;var a=wX6(A,f);return Yf4=Q.feedbackV2GlobalObject?Promise.resolve(Q.feedbackV2GlobalObject):new Promise(function(T,G){var p=_.KK("SCRIPT");_.mw(p,a);p.onload=function(){Q.feedbackV2GlobalObject?T(Q.feedbackV2GlobalObject):G(Error("df"))};
p.onerror=function(){G(Error("ef`"+a.toString()))};
b.body.appendChild(p)})};
NdJ=function(A,Q,b,f,a){a=a===void 0?!0:a;var T,G,p,P,U;return _.B(function(L){switch(L.nextAddress){case 1:return T=Date.now(),L.yield(yPY(A,b,f,Q),2);case 2:G=L.yieldResult;if(!(a||((P=A.initializationData)==null?0:P.useNightlyRelease)||((U=A.initializationData)==null?0:U.isLocalServer))){p=G.initializeFeedbackClient(A,T,Q);L.jumpTo(3);break}return L.yield(G.initializeFeedbackClientAsync(A,T,Q),4);case 4:p=L.yieldResult;case 3:return p.initiateAloha(),L.return(p)}})};
sjJ=function(A,Q,b,f){var a,T,G;return _.B(function(p){if(p.nextAddress==1)return a=Date.now(),p.yield($AF(A,b,f.document,Q),2);if(p.nextAddress!=3)return T=p.yieldResult,p.yield(T.initializeFeedbackClientAsync(A,a,Q,f),3);G=p.yieldResult;G.initiateAloha();return p.return(G)})};
mAJ=function(A,Q,b){var f=!0;f=f===void 0?!0:f;var a,T,G,p,P,U,L,M,l,J;return _.B(function(n){a=b||_.by;if((T=Q)==null?0:(p=(G=T).getEnableAlohaBinarySplit)==null?0:p.call(G)){P=a;if(P.isFormOpened)throw U=Error("ff"),U.name="DuplicateFormError",U;P.isFormOpened=!0;A.callbacks=A.callbacks||{};L=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(t){P.isFormOpened=!1;L(t)};
try{return n.return(sjJ(A,Q,P,a))}catch(t){throw P.isFormOpened=!1,t;}}else{M=a;if(M.isFormOpened)throw l=Error("ff"),l.name="DuplicateFormError",l;M.isFormOpened=!0;A.callbacks=A.callbacks||{};J=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(t){M.isFormOpened=!1;J(t)};
try{return n.return(NdJ(A,Q,M,a.document,f))}catch(t){throw M.isFormOpened=!1,t;}}_.Oi(n)})};
aQJ=function(A,Q){return _.B(function(b){return b.return(new Promise(function(f){var a=AVX(Q!=null?Q:"")+"/aloha_form_properties?productId="+A;QW6(a,function(T){T=T.target;var G=null;try{var p=JSON,P=p.stringify;if(T.JSC$9738_xhr_){var U=T.JSC$9738_xhr_.responseText;U.indexOf(")]}'\n")==0&&(U=U.substring(5));var L=(0,_.jU)(U)}else L=void 0;G=v8e(bUA,P.call(p,L))}catch(M){P=new bUA,L=fQi(),L=_.Ri(L,13,!1),L=_.Ri(L,14,!0),L=_.Ri(L,15,!0),L=_.Ri(L,20,!1),G=_.Lp(P,1,L)}f(G)},"GET","",{},2E3,!0)}))})};
AVX=function(A){return EHi(A)?A:"https://www.google.com/tools/feedback"};
GSb=function(A){A=A.match(new RegExp(TPA,"gi"))||[];A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;a:{var b=_.F(d$J);for(var f=b.next();!f.done;f=b.next())if(f.value.test(Q)){b=!1;break a}b=!0}if(!b)a:{b=_.F(F2e);for(f=b.next();!f.done;f=b.next())if(f.value.test(Q)){b=!0;break a}b=!1}if(b)return!0}return!1};
BPJ=function(A,Q){var b={},f=Object.keys(A);f=_.F(f);for(var a=f.next();!a.done;a=f.next())a=a.value,b[a]=Q(a,A[a]);return b};
pBy=function(A){switch(A){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"}};
XBb=function(A){if(window.crypto&&window.crypto.getRandomValues)try{var Q=Array(A),b=new Uint8Array(A);window.crypto.getRandomValues(b);for(var f=0;f<Q.length;f++)Q[f]=b[f];return Q}catch(T){}Q=Array(A);for(b=0;b<A;b++){f=Date.now();for(var a=0;a<f%23;a++)Q[b]=Math.random();Q[b]=Math.floor(Math.random()*256)}if(PI9)for(b=1,f=0;f<PI9.length;f++)Q[b%A]^=Q[(b-1)%A]/4^PI9.charCodeAt(f),b++;return Q};
gG=function(A){A=XBb(A);for(var Q=[],b=0;b<A.length;b++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[b]&63));return Q.join("")};
S16=function(){var A=_.by.ytLoggingDocDocumentNonce_;A||(A=gG(16),_.Al("ytLoggingDocDocumentNonce_",A));return A};
L26=function(A){A&&_.R4("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:U$A,clientScreenNonce:A})};
M_b=function(A){return _.vG("client-screen-nonce-store",{})[A===void 0?0:A]};
lQi=function(A,Q){Q=Q===void 0?0:Q;var b=_.vG("client-screen-nonce-store");b||(b={},_.e6("client-screen-nonce-store",b));b[Q]=A};
K2A=function(A){A=A===void 0?0:A;return A===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+A};
iUF=function(A){return _.vG(K2A(A===void 0?0:A))};
_.hx=function(A){return(A=iUF(A===void 0?0:A))?new eU({veType:A,youtubeData:void 0,jspbYoutubeData:void 0}):null};
JVb=function(){var A=_.vG("csn-to-ctt-auth-info");A||(A={},_.e6("csn-to-ctt-auth-info",A));return A};
V_C=function(){return Object.values(_.vG("client-screen-nonce-store",{})).filter(function(A){return A!==void 0})};
_.WR=function(A){A=M_b(A===void 0?0:A);if(!A&&!_.Ep("USE_CSN_FALLBACK",!0))return null;A||(A="UNDEFINED_CSN");return A?A:null};
n4F=function(A){for(var Q=_.F(Object.values(OUi)),b=Q.next();!b.done;b=Q.next())if(_.WR(b.value)===A)return!0;return!1};
kSY=function(A,Q,b){var f=JVb();(b=_.WR(b))&&delete f[b];Q&&(f[A]=Q)};
vR=function(A){return JVb()[A]};
_.Ev=function(A,Q,b,f){b=b===void 0?0:b;if(A!==M_b(b)||Q!==_.vG(K2A(b)))if(kSY(A,f,b),lQi(A,b),_.e6(K2A(b),Q),Q=function(){setTimeout(function(){L26(A)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(Q)}catch(a){Q()}else Q()};
IQU=function(A,Q){Q=Q===void 0?"":Q;var b=[],f;for(f in A)if(A.hasOwnProperty(f)){var a=Q!==""?Q+"."+f:f;typeof A[f]==="object"?b.push.apply(b,_.ri(IQU(A[f],a))):b.push([a,A[f]])}b.sort();return b};
_.cR=function(A){var Q=_.E$.apply(1,arguments);if(!xf(A)||Q.some(function(f){return!xf(f)}))throw Error("gf");
Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())HU4(A,b.value)};
HU4=function(A,Q){for(var b in Q)if(xf(Q[b])){if(b in A&&!xf(A[b]))throw Error("hf");b in A||(A[b]={});HU4(A[b],Q[b])}else if(CIe(Q[b])){if(b in A&&!CIe(A[b]))throw Error("jf");b in A||(A[b]=[]);q1A(A[b],Q[b])}else A[b]=Q[b];return A};
q1A=function(A,Q){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,xf(b)?A.push(HU4({},b)):CIe(b)?A.push(q1A([],b)):A.push(b);return A};
xf=function(A){return typeof A==="object"&&!Array.isArray(A)};
CIe=function(A){return typeof A==="object"&&Array.isArray(A)};
t_i=function(A){for(var Q=_.F(Object.entries(o4J)),b=Q.next();!b.done;b=Q.next())if(b=_.F(b.value),b.next(),b=b.next().value,b==="SLI_STATUS_"+A)return b;return"SLI_STATUS_UNKNOWN"};
_.zL=function(A,Q,b,f){return rVb(A,Q,function(){return new _.jWJ(A,Q,b,f)})};
_.R$9=function(){return _.zL("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
g4Y=function(){return _.zL("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
wG=function(){return _.zL("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
e$y=function(){return _.zL("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
h$J=function(){return _.zL("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
W2b=function(){return _.zL("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
x$e=function(A){A&&(A.dataset?A.dataset[v4y()]="true":_.Qw([_.TH(E4X)],A,"data-loaded","true".toString()))};
cVW=function(A){return A?A.dataset?A.dataset[v4y()]:A.getAttribute("data-loaded"):null};
v4y=function(){return z$J.loaded||(z$J.loaded="loaded".replace(/\-([a-z])/g,function(A,Q){return Q.toUpperCase()}))};
_.uh=function(A,Q,b){wBy(A,Q,b===void 0?null:b)};
_.ZUW=function(A,Q){A&&Q&&(A=""+_.YC(Q),(A=u1W[A])&&_.y8b(A))};
wBy=function(A,Q,b){b=b===void 0?null:b;var f=_.yVF(typeof A==="string"?A:A.toString()),a=document.getElementById(f),T=a&&cVW(a),G=a&&!T;T?Q&&Q():(Q&&(T=_.pu(f,Q),Q=""+_.YC(Q),u1W[Q]=T),G||(a=Y1A(A,f,function(){cVW(a)||(x$e(a),_.YGC(f),_.Xe(function(){_.$7f(f)},0))},b)))};
Y1A=function(A,Q,b,f){f=f===void 0?null:f;var a=_.KK("SCRIPT");a.id=Q;a.onload=function(){b&&setTimeout(b,0)};
a.onreadystatechange=function(){switch(a.readyState){case "loaded":case "complete":a.onload()}};
f&&a.setAttribute("nonce",f);_.mw(a,typeof A==="string"?_.CK(A):A);A=document.getElementsByTagName("head")[0]||document.body;A.insertBefore(a,A.firstChild);return a};
_.yVF=function(A){var Q=document.createElement("a");_.ch(Q,A);return"js-"+Zy(Q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
D$W=function(A){var Q=_.vG("INNERTUBE_HOST_OVERRIDE");Q&&(A=String(Q)+String(_.yr(A)));return A};
$$C=function(A){var Q={};_.K("json_condensed_response")&&(Q.prettyPrint="false");return A=MTy(A,Q)};
_.Yf=function(A){return A$(A)?"same-origin":"include"};
_.Dy=function(A){return A$(A)?"same-origin":"cors"};
$f=function(A,Q,b){b=b===void 0?{}:b;A={method:Q===void 0?"POST":Q,mode:_.Dy(A),credentials:_.Yf(A)};Q={};for(var f=_.F(Object.keys(b)),a=f.next();!a.done;a=f.next())a=a.value,b[a]&&(Q[a]=b[a]);Object.keys(Q).length>0&&(A.headers=Q);return A};
_.NW=function(A,Q){Q=Q===void 0?{}:Q;return"service:"+A+"/"+Object.keys(Q).sort().map(function(b){return b+":"+Q[b]}).join("/")};
NPC=function(A){var Q,b,f,a;A=(Q=_.V(A,_.sv))==null?void 0:(b=Q.watchEndpointSupportedOnesieConfig)==null?void 0:(f=b.html5PlaybackOnesieConfig)==null?void 0:(a=f.commonConfig)==null?void 0:a.url;if(!A)return[];Q=new _.m7(A);return Q.JSC$9973_domain_?["https://"+Q.JSC$9973_domain_+"/generate_204"]:[]};
_.A2W=function(){return sWX()||OOF()||m$J&&h$("version/")?!0:_.vG("EOM_VISITOR_DATA")?!1:!0};
Q1b=function(A){var Q=A.docid||A.video_id||A.videoId||A.id;if(Q)return Q;Q=A.raw_player_response;Q||(A=A.player_response)&&(Q=JSON.parse(A));return Q&&Q.videoDetails&&Q.videoDetails.videoId||null};
bnC=function(A){return A.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
AQ=function(A){return!isNaN(Number(A))&&!_.Be(A)};
_.bi=function(A,Q,b,f){f=f===void 0?!0:f;var a=_.vG("VALID_SESSION_TEMPDATA_DOMAINS",[]),T=_.sp(window.location.href);T&&a.push(T);T=_.sp(A);if(_.ve(a,T)||!T&&_.TX(A,"/"))if(a=document.createElement("a"),_.ch(a,A),A=a.href)if(A=_.yr(A),A=_.QI(A))f&&!Q.csn&&(Q.itct||Q.ved)&&(Q=Object.assign({csn:_.WR()},Q)),b?(b=parseInt(b,10),isFinite(b)&&b>0&&fmy(A,Q,b)):fmy(A,Q)};
Tbf=function(A){var Q=_.vG("VALID_SESSION_TEMPDATA_DOMAINS",[]),b=_.sp(window.location.href);b&&Q.push(b);b=_.sp(A);if(!(_.ve(Q,b)||!b&&_.TX(A,"/")))return null;A=_.yr(A);(A=_.QI(A))?(A=amW(A),A=(A=_.J$.get(A,void 0)||null)?_.y6(A):{}):A=null;return A};
fmy=function(A,Q,b){A=amW(A);Q=Q?_.lu(Q):"";b=b||5;_.A2W()&&_.Vb(A,Q,b)};
amW=function(A){for(var Q=_.F(dFY),b=Q.next();!b.done;b=Q.next())A=_.fD(A,b.value);return"ST-"+Zy(A).toString(36)};
_.Ff9=function(A){if(A.requestFullscreen)A=A.requestFullscreen(void 0);else if(A.webkitRequestFullscreen)A=A.webkitRequestFullscreen();else if(A.mozRequestFullScreen)A=A.mozRequestFullScreen();else if(A.msRequestFullscreen)A=A.msRequestFullscreen();else if(A.webkitEnterFullscreen)A=A.webkitEnterFullscreen();else return Promise.reject(Error("sf"));return A instanceof Promise?A:Promise.resolve()};
_.d2=function(A){var Q;_.gz6(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.aF()==A&&(Q=document):Q=A;if(Q&&(A=_.gz6(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Q))){A.call(Q)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.aF=function(){var A=A===void 0?!1:A;var Q=_.gz6(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(A)for(;Q&&Q.shadowRoot;)Q=Q.shadowRoot.fullscreenElement;return Q?Q:null};
_.F5=function(A,Q){Q=Q===void 0?!0:Q;A.addEventListener("wheel",Gde);A.overscrollConfig={cooldown:Q}};
_.Go=function(A){A.overscrollConfig=void 0;A.removeEventListener("wheel",Gde)};
Gde=function(A){var Q=A.deltaY,b=A.target,f=null;if(window.Polymer&&window.Polymer.Element){if(b=A.path||A.composedPath&&A.composedPath()){b=_.F(b);for(var a=b.next();!a.done&&(a=a.value,!Bbi(a,Q));a=b.next())if(a.overscrollConfig){f=a;break}}}else for(;b&&!Bbi(b,Q);){if(b.overscrollConfig){f=b;break}b=b.parentElement}f&&(Q=f.overscrollConfig,Q.cooldown?(f=A.deltaY,b=Q.lastDeltaY||0,Q.lastDeltaY=f,a=Q.lastStopped||0,b&&a&&b>0==f>0?Math.abs(b)>=Math.abs(f)?(f=a+1200,b=!1):(f=a+600,b=!0):(f=Date.now()+
600,b=!0),f>Date.now()&&(A.preventDefault(),b&&(Q.lastStopped=Date.now()))):A.preventDefault())};
Bbi=function(A,Q){return Q<0&&A.scrollTop>0||Q>0&&A.scrollTop<A.scrollHeight-A.clientHeight-1?(A=getComputedStyle(A).overflowY,A=="auto"||A=="scroll"):!1};
_.Bn=function(A,Q,b,f){f||(f={bubbles:!0,cancelable:!1,composed:!0});b!==null&&b!==void 0&&(f.detail=b);var a=new CustomEvent(Q,f);_.K("untrack_fire_custom_event_killswitch")?A.dispatchEvent(a):B_(function(){return void A.dispatchEvent(a)});
return a};
pTi=function(A){var Q=window,b=function(f){Q.removeEventListener("yt-navigate-start",b);return A.call(Q,f)};
Q.addEventListener("yt-navigate-start",b,void 0)};
_.pD=function(A,Q,b,f){Q=new P_4(Q,!(f===void 0||!f),b);_.Bn(A,"yt-action",Q);return Q.returnValue};
_.Pn=function(A,Q,b){return _.pD(A,Q,b,!0)};
_.ST=function(A,Q,b,f){Q&&Q.length&&Q.forEach(function(a){var T=ry9(a);T&&(_.K("handle_service_request_actions")&&a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.sendPost?_.X5(b?b:A,[a]):_.Pn(A,T,[a,b,f]))})};
_.X5=function(A,Q){var b=[A];Q&&b.push.apply(b,Q);Q=_.pD(A,"yt-service-request",b);return Q.length>0&&(Q=Q[0],_.Bn(A,"yt-service-request-sent",Q),Q&&Q.ajaxPromise)?(Q.ajaxPromise.then(function(f){_.Bn(A,"yt-service-request-completed",f)},function(f){_.Bn(A,"yt-service-request-error",{error:f,
params:b})},A),Q.ajaxPromise):_.Ul()};
_.MB=function(A,Q){if(_.K("handle_service_request_actions"))_.ST(Q,A,Q);else{A=_.F(A);for(var b=A.next();!b.done;b=A.next()){b=b.value;var f=void 0;((f=_.V(b,_.LD))==null?0:f.commands)?_.MB(_.V(b,_.LD).commands,Q):(f=void 0,((f=_.V(b,_.li))==null?0:f.actions)?_.MB(_.V(b,_.li).actions,Q):(f=void 0,((f=_.V(b.commandMetadata,_.KD))==null?0:f.sendPost)?_.X5(Q,[b]):_.ST(Q,[b],Q)))}}};
_.S0b=function(A,Q,b){Q=Q===void 0?{}:Q;typeof Q==="function"&&(Q={callback:Q});b||Q._c&&Q._c.jsl&&Q._c.jsl.h||_.j2.extend(Q,{_c:{jsl:{h:_.vG("GAPI_HINT_PARAMS")}}});(Q.gapiHintOverride||_.vG("GAPI_HINT_OVERRIDE"))&&(b=_.YQ(document.location.href).gapi_jsh)&&_.j2.extend(Q,{_c:{jsl:{h:b}}});XTC(A,Q)};
_.JQ=function(A,Q,b){Q=Q===void 0?{}:Q;A=(A=A in ii?ii[A]:b)||"";b={};for(var f in Q){b={key$jscomp$818:b.key$jscomp$818};b.key$jscomp$818=f;var a=function(T){return function(){return String(Q[T.key$jscomp$818])}}(b);
A=A.replace(new RegExp("\\$\\{"+b.key$jscomp$818+"\\}","gi"),a);A=A.replace(new RegExp("\\$"+b.key$jscomp$818,"gi"),a)}return A};
_.VI=function(A,Q){return UFi(A in ii?ii[A]:{},Q)};
UFi=function(A,Q){var b=_.vG("I18N_PLURAL_RULES");b||(b=function(f){return f==1?"one":"other"});
return(A=A["case"+Q]||A[b(Q)])?A.replace("#",Q.toString()):Q+""};
lmA=function(A){var Q=Lfy(A),b=document.getElementById(Q),f=b&&cVW(b);f||b&&!f||(b=MbA(A,Q,function(){if(!cVW(b)){x$e(b);_.YGC(Q);var a=_.Ol(_.$7f,Q);_.Xe(a,0)}}))};
MbA=function(A,Q,b){var f=document.createElement("link");f.id=Q;f.onload=function(){b&&setTimeout(b,0)};
A=_.CK(A);_.bM(f,A,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(f);return f};
Lfy=function(A){var Q=_.KK("A");_.ch(Q,qs(A));return"css-"+Zy(Q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.inb=function(A){var Q=Kf6();A!==Q&&(Q=_.nD(),!_.K("web_autonav_allow_off_by_default")&&A||_.k_(0,141,!0),_.k_(0,140,!A),Q.save())};
Kf6=function(){var A=_.nD();return _.K("web_autonav_allow_off_by_default")&&!A.getFlag(141)&&_.vG("AUTONAV_OFF_BY_DEFAULT")?!1:!A.getFlag(140)};
J2b=function(A,Q){var b,f;A=((b=A.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=b.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(b=0;b<A.length;++b)if(A[b].scope===Q)return A[b].token||void 0};
Vbi=function(A){for(var Q=0,b=0;b<A.length;b++)Q=Q*31+A.charCodeAt(b),b<A.length-1&&(Q%=0x800000000000);return Q%1E5};
_.IF=function(A){return _.zV("ytcsi."+(A||"")+"data_")||OnF(A)};
_.n7J=function(A){A=_.IF(A);A.metadata||(A.metadata={});return A.metadata};
_.kdA=function(A){A=_.IF(A);A.tick||(A.tick={});return A.tick};
_.Hn=function(A){A=_.IF(A);if(A.gel){var Q=A.gel;Q.gelInfos||(Q.gelInfos={});Q.gelTicks||(Q.gelTicks={})}else A.gel={gelTicks:{},gelInfos:{}};return A.gel};
_.Imf=function(A){A=_.Hn(A);A.gelInfos||(A.gelInfos={});return A.gelInfos};
HnW=function(A){var Q=_.IF(A).nonce;Q||(Q=gG(16),_.IF(A).nonce=Q);return Q};
OnF=function(A){var Q={tick:{},info:{}};_.Al("ytcsi."+(A||"")+"data_",Q);return Q};
C_U=function(){var A=_.zV("ytcsi.debug");A||(A=[],_.Al("ytcsi.debug",A),_.Al("ytcsi.reference",{}));return A};
_.CD=function(A){A=A||"";var Q=q0X();if(Q[A])return Q[A];var b=C_U(),f={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};b.push(f);return Q[A]=f};
o7i=function(A){A=A||"";var Q=q0X();Q[A]&&delete Q[A];var b=C_U(),f={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};b.push(f);Q[A]=f};
q0X=function(){var A=_.zV("ytcsi.reference");if(A)return A;C_U();return _.zV("ytcsi.reference")};
_.r2y=function(A){return tbe[A]||"LATENCY_ACTION_UNKNOWN"};
ekF=function(A,Q,b){b=b===void 0?{}:b;var f=!1;_.Ep("ytLoggingEventsDefaultDisabled",!1)&&(f=!0);f=f?null:ro;b=b===void 0?{}:b;var a=Math.round(b.timestamp||(0,_.f4)());_.kk(Q,1,a<Number.MAX_SAFE_INTEGER?a:0);a=new j14;if(b.lact)_.kk(a,1,isFinite(b.lact)?b.lact:-1);else if(b.timestamp)_.kk(a,1,-1);else{var T=_.TD();_.kk(a,1,isFinite(T)?T:-1)}if(b.sequenceGroup&&!_.K("web_gel_sequence_info_killswitch")){T=b.sequenceGroup;var G=TzW(T),p=new Rke;_.kk(p,2,G);_.nt(p,1,T);_.Lp(a,3,p);b.endOfSequence&&delete g7y[b.sequenceGroup]}_.Lp(Q,
33,a);(b.sendIsolatedPayload?Xzi:S49)(A,{endpoint:"log_event",payload:Q,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},f)};
_.oF=function(){return(_.K("csi_use_time_origin")||_.K("csi_use_time_origin_tvhtml5"))&&_.qB.timeOrigin?Math.floor(_.qB.timeOrigin):_.qB.timing.navigationStart};
_.hkC=function(A,Q){_.tQ("_start",A,Q)};
_.r2=function(A,Q){if(!_.K("web_csi_action_sampling_enabled")||!_.IF(Q).actionDisabled){var b=_.CD(Q||"");_.cR(b.info,A);A.loadType&&(b=A.loadType,_.n7J(Q).loadType=b);_.cR(_.Imf(Q),A);b=HnW(Q);Q=_.IF(Q).cttAuthInfo;WfJ().info(A,b,Q)}};
v7A=function(){var A,Q,b,f;return((f=_.fJ().resolve(_.bu(Cu))==null?void 0:(A=q3())==null?void 0:(Q=A.loggingHotConfig)==null?void 0:(b=Q.csiConfig)==null?void 0:b.debugTicks)!=null?f:[]).map(function(a){return Object.values(a)[0]})};
_.tQ=function(A,Q,b){if(!_.K("web_csi_action_sampling_enabled")||!_.IF(b).actionDisabled){var f=HnW(b),a;if(a=_.K("web_csi_debug_sample_enabled")&&f){(_.fJ().resolve(_.bu(Cu))==null?0:q3())&&!E79&&(E79=!0,_.tQ("gcfl",(0,_.f4)(),b));var T,G,p;a=(_.fJ().resolve(_.bu(Cu))==null?void 0:(T=q3())==null?void 0:(G=T.loggingHotConfig)==null?void 0:(p=G.csiConfig)==null?void 0:p.debugSampleWeight)||0;if(T=a!==0)b:{T=v7A();if(T.length>0)for(G=0;G<T.length;G++)if(A===T[G]){T=!0;break b}T=!1}T?(a=Vbi(f)%a!==0,
_.IF(b).debugTicksExcludedLogged||(T={},T.debugTicksExcluded=a,_.r2(T,b)),_.IF(b).debugTicksExcludedLogged=!0):a=!1}if(!a){A[0]!=="_"&&xFy(A,b,Q);a=_.CD(b||"");a.tick[A]=Q||(0,_.f4)();if(a.callback&&a.callback[A])for(a=_.F(a.callback[A]),T=a.next();!T.done;T=a.next())T=T.value,T();a=_.Hn(b);a.gelTicks&&(a.gelTicks[A]=!0);T=_.kdA(b);a=Q||(0,_.f4)();_.K("log_repeated_ytcsi_ticks")?A in T||(T[A]=a):T[A]=a;T=_.IF(b).cttAuthInfo;A==="_start"?WfJ().baseline(f,Q,T):WfJ().tick(A,f,Q,T);_.c2A(b);return a}}};
xFy=function(A,Q,b){if(_.qB.mark)if(A.startsWith("mark_")||(A="mark_"+A),Q&&(A+=" ("+Q+")"),b===void 0||_.K("web_csi_disable_alt_time_performance_mark"))_.qB.mark(A);else{b=_.K("csi_use_performance_navigation_timing")?b-_.qB.timeOrigin:b-(_.qB.timeOrigin||_.qB.timing.navigationStart);try{_.qB.mark(A,{startTime:b})}catch(f){}}};
zkA=function(){var A,Q=(A=_.qB.getEntriesByType)==null?void 0:A.call(_.qB,"mark");Q&&Q.forEach(function(b){if(b.name.startsWith("mark_")){var f;(f=_.qB.clearMarks)==null||f.call(_.qB,b.name)}})};
_.wTy=function(){switch(RU4()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.urY=function(A){var Q={},b=function(T,G,p){G=G.match("_rid")?G.split("_rid")[0]:G;typeof p==="number"&&(p=JSON.stringify(p));T.requestIds?T.requestIds.push({endpoint:G,id:p}):T.requestIds=[{endpoint:G,id:p}]};
A=_.F(Object.entries(A));for(var f=A.next();!f.done;f=A.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;switch(f){case "GetBrowse_rid":b(Q,f,a);break;case "GetGuide_rid":b(Q,f,a);break;case "GetHome_rid":b(Q,f,a);break;case "GetPlayer_rid":b(Q,f,a);break;case "GetSearch_rid":b(Q,f,a);break;case "GetSettings_rid":b(Q,f,a);break;case "GetTrending_rid":b(Q,f,a);break;case "GetWatchNext_rid":b(Q,f,a);break;case "yt_red":Q.isRedSubscriber=!!a;break;case "yt_ad":Q.isMonetized=!!a}}return Q};
y2X=function(A,Q,b,f,a,T){if(!_.K("web_csi_action_sampling_enabled")||!_.IF(T).actionDisabled){var G=_.Hn(T);if(G.gelSpans)G.gelSpans[A]=!0;else{var p={};G.gelSpans=(p[A]=!0,p)}Znf++;A={spanName:A,spanLengthUsec:String(Math.round(Q*1E3)),spanNonce:Znf};f&&(A.spanInfo=f);a&&(A.parentSpanNonce=a);b&&(A.spanStartTimeUsec=String(Math.round(b*1E3)));_.CD(T||"").span[String(A.spanName)]=A;b=_.Hn(T);b.gelSpans||(b.gelSpans={});_.cR(b.gelSpans,A);b=HnW(T);T=_.IF(T).cttAuthInfo;WfJ().span(A,b,T);return A.spanNonce}};
_.Y0A=function(A){var Q=_.jT("aft",A);if(Q)return Q;Q=_.vG((A||"")+"TIMING_AFT_KEYS",["ol"]);for(var b=Q.length,f=0;f<b;f++){var a=_.jT(Q[f],A);if(a)return a}return NaN};
_.DFy=function(A,Q){_.Al("ytglobal.timing"+(Q||"")+"ready_",A)};
_.jT=function(A,Q){if(A=_.kdA(Q)[A])return typeof A==="number"?A:A[A.length-1]};
_.c2A=function(A){var Q=_.jT("_start",A),b=_.Y0A(A),f=!$FC;Q&&b&&f&&(F54(NbX,new s1W(Math.round(b-Q),A)),$FC=!0)};
A7y=function(A){OnF(A);mFW();zkA();A||(_.vG("TIMING_ACTION")&&_.e6("PREVIOUS_ACTION",_.vG("TIMING_ACTION")),_.e6("TIMING_ACTION",""))};
_.QJb=function(A){A=A===void 0?{}:A;_.cG(function(){RF();o7i();A7y();_.DFy(!1);A.cttAuthInfo&&(_.IF().cttAuthInfo=A.cttAuthInfo);_.e6("TIMING_AFT_KEYS",[]);A.isHot?_.g2({loadType:"hot"}):_.g2({loadType:"warm"});_.e6("TIMING_ACTION","");delete _.vG("TIMING_INFO",{}).yt_lt;_.cG(_.hkC)(A.startTime,void 0)})()};
_.eT=function(A,Q,b,f){Q=Q===void 0?{}:Q;_.cG(function(){var a=b?b:A;bbe(a);var T=Q.sampleRate;if(!_.K("web_csi_action_sampling_enabled")||T===void 0||T<=1)T=!1;else{var G=HnW(a);T=Vbi(G)%T!==0}T&&(_.IF(a).actionDisabled=!0);_.CD(a||"").info.actionType=A;Q.cttAuthInfo&&(_.IF(a).cttAuthInfo=Q.cttAuthInfo);_.e6(a+"TIMING_ACTION",A);_.cG(_.hkC)(Q.startTime,a);T={actionType:f||_.r2y(A)};Q.logPreviousAction&&(T.previousAction=_.r2y(_.vG("TIMING_ACTION")));(G=_.WR())&&G!=="UNDEFINED_CSN"&&(T.clientScreenNonce=
G);_.g2(T,a);_.DFy(!0,a)})()};
bbe=function(A){_.cG(function(){RF(A);o7i(A);A7y(A)})()};
fOC=function(){_.cG(function(){var A=[],Q;for(Q in _.zV("ytcsi.".slice(0,-1)))Q.endsWith("data_")&&A.push(Q.slice(0,-5));A=_.F(A);for(Q=A.next();!Q.done;Q=A.next())bbe(Q.value);RF()})()};
_.T7X=function(A){return _.cG(function(){return _.aOU("_start",A)})()};
_.g2=function(A,Q,b){_.cG(_.r2)(A,Q,b===void 0?!1:b)};
_.hQ=function(A,Q,b){return _.cG(_.tQ)(A,Q,b)};
_.aOU=function(A,Q){return _.cG(function(){var b=_.kdA(Q);return A in b})()};
F6i=function(A){if(!_.K("universal_csi_network_ticks"))return"";A=_.LJ(A)||"";for(var Q=Object.keys(dX6),b=0;b<Q.length;b++){var f=Q[b];if(A.includes(f))return f}return""};
B7X=function(A){if(!_.K("universal_csi_network_ticks"))return function(){};
var Q=dX6[A];return Q?(_.Wn(Q),function(){var b=_.K("universal_csi_network_ticks")?(b=GyF[A])?_.Wn(b):!1:!1;return b}):function(){}};
_.Wn=function(A,Q,b){return _.cG(function(){if(_.aOU(A,b))return!1;_.hQ(A,Q,b);return!0})()};
_.vn=function(A,Q,b){_.cG(function(){if(!_.T7X(b)||_.aOU(A,b))return!1;_.hQ(A,Q,b);return!0})()};
_.El=function(A){return _.cG(_.jT)(A,void 0)};
RF=function(A){_.T7X(A)&&_.hQ("aa",void 0,A)};
_.UXe=function(A,Q,b,f,a,T,G,p,P){var U=ppJ();p=new eU({veType:Q,youtubeData:T,jspbYoutubeData:p});T=x_({},U);a&&(T.cttAuthInfo=a);a={csn:U,pageVe:p.getAsJson()};_.K("expectation_logging")&&P&&P.screenCreatedLoggingExpectations&&(a.screenCreatedLoggingExpectations=P.screenCreatedLoggingExpectations);b&&b.visualElement?(a.implicitGesture={parentCsn:b.clientScreenNonce,gesturedVe:b.visualElement.getAsJson()},G&&(a.implicitGesture.gestureType=G)):b&&_.Wv(new _.IO("newScreen() parent element does not have a VE - rootVe",
Q));f&&(a.cloneCsn=f);A?tq("screenCreated",a,A,T):_.R4("screenCreated",a,T);F54(UJf,new Pr4(U));cn.clear();Xpi.clear();Sz6.clear();return U};
zo=function(A,Q,b,f,a,T){T=T===void 0?{}:T;L66(A,Q,b,[f],a===void 0?!1:a,T)};
L66=function(A,Q,b,f,a,T){a=a===void 0?!1:a;T=T===void 0?{}:T;Object.assign(T,x_({cttAuthInfo:vR(Q)||void 0},Q));for(var G=_.F(f),p=G.next();!p.done;p=G.next()){p=p.value;var P=p.getAsJson();(_.j2.isEmpty(P)||!P.trackingParams&&!P.veType)&&_.Wv(Error("tf"));if(_.K("no_client_ve_attach_unless_shown")){var U=MIy(p,Q);if(P.veType&&!Xpi.has(U)&&!Sz6.has(U)&&!a){if(!_.K("il_attach_cache_limit")||cn.size<1E3){cn.set(U,[A,Q,b,p]);return}_.K("il_attach_cache_limit")&&cn.size>1E3&&_.Wv(new _.IO("IL Attach cache exceeded limit"))}p=
MIy(b,Q);cn.has(p)?lO6(b,Q):Sz6.set(p,!0)}}f=f.filter(function(L){L.csn!==Q?(L.csn=Q,L=!0):L=!1;return L});
b={csn:Q,parentVe:b.getAsJson(),childVes:_.Rk(f,function(L){return L.getAsJson()})};
Q==="UNDEFINED_CSN"?w2("visualElementAttached",T,b):A?tq("visualElementAttached",b,A,T):_.R4("visualElementAttached",b,T)};
ibA=function(A,Q,b,f,a){K6i(A,Q,b,a)};
K6i=function(A,Q,b,f){J7f(b,Q);var a=x_({cttAuthInfo:vR(Q)||void 0},Q);b={csn:Q,ve:b.getAsJson(),eventType:1};f&&(b.clientData=f);Q==="UNDEFINED_CSN"?w2("visualElementShown",a,b):A?tq("visualElementShown",b,A,a):_.R4("visualElementShown",b,a)};
VIY=function(A,Q,b,f){J7f(b,Q);var a=x_({cttAuthInfo:vR(Q)||void 0},Q);b={csn:Q,ve:b.getAsJson(),eventType:4};f&&(b.clientData=f);Q==="UNDEFINED_CSN"?w2("visualElementShown",a,b):A?tq("visualElementShown",b,A,a):_.R4("visualElementShown",b,a)};
ObU=function(A,Q,b,f,a){var T=(f=f===void 0?!1:f)?16:8;f=x_({cttAuthInfo:vR(Q)||void 0,endOfSequence:f},Q);b={csn:Q,ve:b.getAsJson(),eventType:T};a&&(b.clientData=a);Q==="UNDEFINED_CSN"?w2("visualElementHidden",f,b):A?tq("visualElementHidden",b,A,f):_.R4("visualElementHidden",b,f)};
kyA=function(A,Q,b,f,a){ntC(A,Q,b,void 0,f,a)};
ntC=function(A,Q,b,f,a){J7f(b,Q);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var T=x_({cttAuthInfo:vR(Q)||void 0},Q);b={csn:Q,ve:b.getAsJson(),gestureType:f};a&&(b.clientData=a);Q==="UNDEFINED_CSN"?w2("visualElementGestured",T,b):A?tq("visualElementGestured",b,A,T):_.R4("visualElementGestured",b,T)};
IOb=function(A,Q,b,f){var a=x_({cttAuthInfo:vR(Q)||void 0},Q);b={csn:Q,ve:b.getAsJson(),clientData:f};Q==="UNDEFINED_CSN"?w2("visualElementStateChanged",a,b):A?tq("visualElementStateChanged",b,A,a):_.R4("visualElementStateChanged",b,a)};
HbJ=function(){var A=XBb(16);for(var Q=[],b=0;b<A.length;b++)Q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[b]&63));return Q.join("")};
w2=function(A,Q,b){CrX.push({payloadName:A,payload:b,jspbPayload:void 0,options:Q});qzi||(qzi=MKY())};
ScF=function(A){if(CrX){for(var Q=_.F(CrX),b=Q.next();!b.done;b=Q.next())b=b.value,b.payload&&(b.payload.csn=A.csn,_.R4(b.payloadName,b.payload,b.options));CrX.length=0}qzi=0};
MIy=function(A,Q){return""+A.getAsJson().veType+A.getAsJson().veCounter+Q};
J7f=function(A,Q){if(_.K("no_client_ve_attach_unless_shown")){var b=MIy(A,Q);Xpi.set(b,!0);lO6(A,Q)}};
lO6=function(A,Q){A=MIy(A,Q);cn.has(A)&&(Q=cn.get(A)||[],zo(Q[0],Q[1],Q[2],Q[3],!0),cn.delete(A))};
x_=function(A,Q){_.K("log_sequence_info_on_gel_web")&&(A.sequenceGroup=Q);return A};
_.ui=function(A,Q,b){_.cG(zo)(void 0,A,Q,b)};
_.ZV=function(A,Q,b){_.cG(L66)(void 0,A,Q,b)};
_.yI=function(A,Q){_.cG(ibA)(void 0,A,Q,void 0,void 0,void 0)};
_.Y_=function(A,Q,b){_.cG(function(){_.ZR(Q,function(f){VIY(void 0,A,f,b)})})()};
_.DV=function(A,Q,b,f){_.cG(function(){_.ZR(Q,function(a){ObU(void 0,A,a,b,f)})})()};
_.$_=function(A,Q,b){_.cG(kyA)(void 0,A,Q,b,void 0)};
_.NB=function(A,Q,b,f){_.cG(ntC)(void 0,A,Q,b,f,void 0)};
_.sl=function(A,Q,b){_.cG(IOb)(void 0,A,Q,b,void 0)};
otF=function(A,Q){AH.set(A,Q)};
tIF=function(A){Q4={sessionId:A.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:A.enabledSpans}};
r7i=function(A){return Q4?Q4.enabledSpans?!!Q4.enabledSpans[A]:!0:!1};
jJe=function(A){if(!Q4)throw Error("wf");Q4.processors.push(A)};
Rti=function(A){var Q;return{id:A.id,traceId:A.traceId,sessionId:A.sessionId,name:A.name,attributes:A.attributes,startTime:A.startTime,endTime:A.endTime,status:A.status,parentId:(Q=A.parent)==null?void 0:Q.id}};
gtY=function(A,Q){if(A){Q=Q===void 0?1:Q;if(A&&(A.endTime=(0,_.f4)(),Q&&(A.status=Q),Q=Q4)){Q=_.F(Q.processors);for(var b=Q.next();!b.done;b=Q.next()){var f=void 0,a=void 0;(a=(f=b.value).onSpanEnd)==null||a.call(f,A)}}if(Q=Q4){if(A!==Q.activeSpan)throw Error("xf");var T;Q.activeSpan=(T=Q.activeSpan)==null?void 0:T.parent}}};
etC=function(A,Q,b){var f;if((f=Q4)&&r7i(A)){var a=f.nextSpanId++,T=f.activeSpan;A={id:a,parent:T,name:A,attributes:Q,traceId:T?T.traceId:a,sessionId:f.sessionId,startTime:(0,_.f4)(),status:0};if(f.activeSpan){var G;(G=f.activeSpan).children||(G.children=[]);f.activeSpan.children.push(A)}f=_.F(f.processors);for(G=f.next();!G.done;G=f.next())a=Q=void 0,(a=(Q=G.value).onSpanStart)==null||a.call(Q,A);f=A}else f=void 0;A=Q4;f=f&&A?A.activeSpan=f:void 0;if(!f)return b();try{var p=b(f);gtY(f);return p}catch(P){throw gtY(f,
2),P;}};
ht4=function(A,Q){var b=Object.keys(A);A=new _.IO("[Command Handler] "+Q,{filteredCommandNames:b,originalCommand:A});_.en(A)};
W6F=function(A,Q){ht4(A,Q+" was called but not set")};
vt9=function(A){return function(){return new A}};
bg=function(A){return function(){return _.fJ().resolve(A)}};
EtY=function(A,Q){var b=_.V(A,_.uv);if(b&&(b=Q[b.signal]))return b();A=_.F(Object.keys(A));for(b=A.next();!b.done;b=A.next())if(b=b.value,Q[b]&&(b=Q[b]))return b()};
fO=function(A,Q,b,f){return{browseEndpoint:{browseId:A},commandMetadata:{webCommandMetadata:{url:Q,rootVe:b,webPageType:f===void 0?"WEB_PAGE_TYPE_BROWSE":f}}}};
xX9=function(A,Q,b){var f=Q=Q===void 0?0:Q;b=b===void 0?0:b;var a=b-f;return _.aX(A,"PPSV",void 0,void 0,(a>600?0:a<60||b<=0||f/b>.9)?0:Q)};
_.aX=function(A,Q,b,f,a){var T="/watch?v="+A;A={videoId:A};Q&&(A.playlistId=Q,T+="&list="+Q);f&&(T+="&pp="+f);a&&(A.startTimeSeconds=a,T+="&t="+a+"s");Q={watchEndpoint:A,commandMetadata:{webCommandMetadata:{url:T,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};b&&(Q.clickTrackingParams=b);f&&(_.V(Q,_.sv).playerParams=f);return Q};
c7W=function(A){return{browseEndpoint:{browseId:"VL"+A},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+A,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
zty=function(A){if(A){var Q;if(A){var b=(Q=_.V(A.commandMetadata,_.KD))==null?void 0:Q.url;Q=!(!b||b==="/service_ajax")}else Q=!1;if(Q)return A;var f;if(A=(f=_.V(A,_.LD))==null?void 0:f.commands)for(f=_.F(A),A=f.next();!A.done;A=f.next())if(A=zty(A.value))return A}};
_.T7=function(A){return{runs:[{text:A}]}};
wpU=function(A,Q){return A&&Q?{runs:[{text:A,navigationEndpoint:Q}]}:void 0};
ds=function(A){return A?_.T7(A):void 0};
_.Fg=function(A){return A?{simpleText:A}:void 0};
_.G7=function(A){var Q=A.type;A=A.payload;Q={type:Q};A!==void 0&&(Q.payload=A);return Q};
uzy=function(A,Q,b){for(var f=Object.assign({},A),a=_.F(Object.keys(Q)),T=a.next();!T.done;T=a.next()){T=T.value;var G=A[T],p=Q[T];if(p===void 0)delete f[T];else if(G===void 0)f[T]=p;else if(Array.isArray(p)&&Array.isArray(G))f[T]=b?[].concat(_.ri(G),_.ri(p)):p;else if(!Array.isArray(p)&&_.ZU(p)&&!Array.isArray(G)&&_.ZU(G))f[T]=uzy(G,p,b);else if(typeof p===typeof G)f[T]=p;else return Q=new _.IO("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:T,originalValue:G,updateValue:p}),
_.en(Q),A}return f};
Yzf=function(A){if(!A.length)return"";try{if(Zbi)return Zbi.decode(A);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(A)}catch(G){}for(var Q=0,b=[],f=A.length;Q<f;){for(var a=0;a<1024&&Q<f;){var T=A[Q++];if(T<128)y74[a++]=T;else{if(T<224)T=(T&31)<<6|A[Q++]&63;else if(T<240)T=(T&15)<<12|(A[Q++]&63)<<6|A[Q++]&63;else{if(a+1===1024){--Q;break}T=(T&7)<<18|(A[Q++]&63)<<12|(A[Q++]&63)<<6|A[Q++]&63;T-=65536;y74[a++]=55296|T>>10;T=56320|T&1023}y74[a++]=T}}T=String.fromCharCode.apply(String,
y74);a<1024&&(T=T.substring(0,a));b.push(T)}return b.join("")};
$XU=function(A,Q){var b;if((b=DXC)==null?0:b.encodeInto)return Q=DXC.encodeInto(A,Q),Q.read<A.length?A.length*4:Q.written;for(var f=b=0;f<A.length;f++){var a=A.charCodeAt(f);a<128?Q[b++]=a:(a<2048?Q[b++]=a>>6|192:((a&64512)===55296&&f+1<A.length&&(A.charCodeAt(f+1)&64512)===56320?(a=65536+((a&1023)<<10)+(A.charCodeAt(++f)&1023),Q[b++]=a>>18|240,Q[b++]=a>>12&63|128):Q[b++]=a>>12|224,Q[b++]=a>>6&63|128),Q[b++]=a&63|128)}return b};
N7J=function(A,Q,b){if(Q&&b&&b.buffer===Q.exports.memory.buffer){var f=Q.realloc(b.byteOffset,A);if(f)return new Uint8Array(Q.exports.memory.buffer,f,A)}A=Q?new Uint8Array(Q.exports.memory.buffer,Q.malloc(A),A):new Uint8Array(A);b&&A.set(b);return A};
_.Xg=function(A){A=new sJi(new mXX([_.$C(decodeURIComponent(A))]));if(AhY(A,2)){var Q=PO(A);var b=A.pos;var f=A.arrayView;b=b===void 0?0:b;var a=Q===void 0?-1:Q;b=b===void 0?0:b;a=a===void 0?-1:a;if(f.totalLength&&a){a<0&&(a=f.totalLength-b);f.focus(b);if(!(b-f.arrayPos+a<=f.arrays[f.arrayIdx].length)){var T=f.arrayIdx,G=f.arrayPos;f.focus(b+a-1);G=new Uint8Array(f.arrayPos+f.arrays[f.arrayIdx].length-G);for(var p=0,P=T;P<=f.arrayIdx;P++)G.set(f.arrays[P],p),p+=f.arrays[P].length;f.arrays.splice(T,
f.arrayIdx-T+1,G);f.arrayIdx=0;f.arrayPos=0;f.focus(b)}T=f.arrays[f.arrayIdx];f=new DataView(T.buffer,T.byteOffset+b-f.arrayPos,a)}else f=new DataView(new ArrayBuffer(0));f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);A.pos+=Q;Q=f}else Q=void 0;Q=Q?Yzf(Q):void 0;A=AhY(A,4)?PO(A):void 0;f=QAA[A];if(typeof f==="undefined")throw A=new _.IO("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:A}),_.en(A),A;return{entityTypeFieldNumber:A,entityType:f,entityId:Q}};
_.LO=function(A,Q,b){b=b===void 0?0:b;var f=new bYW;if(DXC)A=DXC.encode(A);else{var a=new Uint8Array(Math.ceil(A.length*1.2)),T=$XU(A,a);a.length<T&&(a=new Uint8Array(T),T=$XU(A,a));a.length>T&&(a=a.subarray(0,T));A=a}A!==void 0&&(S$(f,18),a=A.length,S$(f,a),Ur(f,a),f.buf.set(A,f.pos),f.pos+=a);A=f6i[Q];if(typeof A==="undefined")throw b=new _.IO("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:Q}),_.en(b),b;A!==void 0&&(S$(f,32),S$(f,A));S$(f,40);S$(f,1);Q=new Uint8Array(f.buf.buffer,
f.buf.byteOffset,f.pos);return encodeURIComponent(_.Cs(Q,b))};
a6b=function(A){A=A.key||A.id;if(!A)throw Error("yf");return A};
d84=function(A,Q){A=A===void 0?{}:A;return TEC(A,Q)};
Fr6=function(A,Q,b,f){if(f===void 0)return f=Object.assign({},A[Q]||{}),b=(delete f[b],f),f={},Object.assign({},A,(f[Q]=b,f));var a={},T={};return Object.assign({},A,(T[Q]=Object.assign({},A[Q],(a[b]=f,a)),T))};
Gc9=function(A,Q,b,f,a){var T=A[Q];if(T==null||!T[b])return A;f=uzy(T[b],f,a==="REPEATED_FIELDS_MERGE_OPTION_APPEND");a={};T={};return Object.assign({},A,(T[Q]=Object.assign({},A[Q],(a[b]=f,a)),T))};
_.Me=function(A,Q,b){return A[Q]?A[Q][b]||null:null};
pV6=function(){if(BEX)return BEX();var A={};BEX=bC("PersistentEntityStoreDb",{objectStores:(A.EntityStore={addedAtVersion:1},A.EntityAssociationStore={addedAtVersion:2},A),shared:!1,upgrade:function(Q,b){b(1)&&xT(ES(Q,"EntityStore",{keyPath:"key"}),"entityType","entityType");b(2)&&(Q=ES(Q,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),xT(Q,"byParentEntityKey","parentEntityKey"),xT(Q,"byChildEntityKey","childEntityKey"))},
version:3});return BEX()};
P3U=function(A){return _.YR(pV6(),A)};
lg=function(A){return window.Int32Array?new Int32Array(A):Array(A)};
Sq6=function(A){return _.YR(XVU(),A)};
U8e=function(A){return new KO("WRONG_DATA_TYPE",{encoderVersion:A})};
LrU=function(A){return A instanceof Error?new KO("UNKNOWN_ENCODE_ERROR",{originalMessage:A.message}):new KO("UNKNOWN_ENCODE_ERROR")};
Mu9=function(A){return A instanceof Error?new KO("UNKNOWN_DECODE_ERROR",{originalMessage:A.message}):new KO("UNKNOWN_DECODE_ERROR")};
l69=function(A,Q){A=A instanceof KO?A:Q(A);_.en(A);throw A;};
KrX=function(A){A=(new TextEncoder).encode(A).subarray(0,16);var Q=new Uint8Array(16);Q.set(A);return Q};
JhW=function(A){var Q=iYe[A];if(Q)return Q;_.Wv(new _.IO("Entity model not found.",{entityType:A}))};
_.ig=function(){VuX||(VuX=OYY());return VuX};
OYY=function(){var A,Q,b;return _.B(function(f){if(f.nextAddress==1)return _.ML(f,2),f.yield(_.Q7(),4);if(f.nextAddress!=2){A=f.yieldResult;if(!A||!_.kR()||typeof _.by.BroadcastChannel==="undefined")return f.return();Q=new njU;return f.return(new JH(A,Q))}b=_.Vw(f);b instanceof Error&&_.en(b);return f.return()})};
_.V4=function(A,Q){var b;return _.B(function(f){if(f.nextAddress==1){b=A.mutations;if(!b||b.length<=0)return f.return();Q&&Q.dispatch(_.G7({type:"ENTITY_LOADED",payload:b}));return f.yield(kci(b),2)}b.length=0;_.Oi(f)})};
kci=function(A){var Q;return _.B(function(b){return b.nextAddress==1?b.yield(_.ig(),2):(Q=b.yieldResult)?b.yield(_.Or(Q,"readwrite",function(f){for(var a={},T=_.F(A),G=T.next(),p={};!G.done;p={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},G=T.next())p.mutation$jscomp$4=G.value,p.mutation$jscomp$4.entityKey&&I6e(p.mutation$jscomp$4)&&(p.mutationEntityType$jscomp$3=(0,_.j2.getAnyKey)(p.mutation$jscomp$4.payload),G=void 0,p.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(G=function(P){return function(){return _.HYy(f,
P.mutation$jscomp$4.payload[P.mutationEntityType$jscomp$3],P.mutationEntityType$jscomp$3)}}(p)),p.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(G=function(P){return function(){return C3W(f,P.mutation$jscomp$4.entityKey)}}(p)),p.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(G=function(P){return function(){return qqe(f,P.mutation$jscomp$4.entityKey,P.mutation$jscomp$4.payload[P.mutationEntityType$jscomp$3],P.mutationEntityType$jscomp$3)}}(p)),G&&(a[p.mutation$jscomp$4.entityKey]=
a[p.mutation$jscomp$4.entityKey]?a[p.mutation$jscomp$4.entityKey].then(G):G()));
return xR.all(Object.values(a))}),0):b.return()})};
I6e=function(A){var Q;A=(Q=A.options)==null?void 0:Q.persistenceOption;return A==="ENTITY_PERSISTENCE_OPTION_PERSIST"||A==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
rh6=function(A,Q){var b,f;_.B(function(a){if(a.nextAddress==1)return a.yield(_.ig(),2);if(a.nextAddress!=3)return(b=a.yieldResult)?a.yield(_.Or(b,"readonly",function(T){var G={},p=Object.keys(Q).map(function(P){var U=Q[P]?[].concat(_.ri(Q[P])):[];return ojb(T,P,U,G)});
return xR.all(p).then(function(){return G})}),3):a.return();
f=a.yieldResult;Object.keys(f).length>0&&A.dispatch(tuU(f));_.Oi(a)})};
ojb=function(A,Q,b,f){return nO(A,Q,b).then(function(a){f[Q]=jAJ(b,a)})};
jAJ=function(A,Q){if(Q.length!==A.length)throw Error("Bf");return Q.reduce(function(b,f,a){b[A[a]]=f;return b},{})};
eOW=function(A){var Q=A.filter(function(a){var T;return(a==null?void 0:(T=a.transferEntity)==null?void 0:T.transferState)==="TRANSFER_STATE_COMPLETE"}).length,b=A.filter(function(a){var T;
return(a==null?void 0:(T=a.transferEntity)==null?void 0:T.transferState)==="TRANSFER_STATE_FAILED"}).length,f=A.filter(function(a){var T;
return(a==null?void 0:(T=a.transferEntity)==null?void 0:T.transferState)&&ROU.includes(a.transferEntity.transferState)});
if(!(Q||f!=null&&f.length))return 0;Q=_.gjU(f)+Q;A=A.length-b;return A===0?0:Math.round(Q*100/A)/100};
_.gjU=function(A){var Q=[];Q=Q.concat.apply(Q,_.ri(A.filter(function(T){return T.streamEntity}).map(function(T){var G=Object.assign({},T.streamEntity),p,P=(p=T.transferEntity)==null?void 0:p.transferState;
G.streamsProgress=G.streamsProgress||[];G.streamsProgress=G.streamsProgress.map(function(U){var L=Object.assign({},U);L.numBytesDownloaded=P==="TRANSFER_STATE_COMPLETE"?U.numTotalBytes:U.numBytesDownloaded;return L});
return G}).map(function(T){return T.streamsProgress})));
var b=A=0;Q=_.F(Q);for(var f=Q.next();!f.done;f=Q.next()){var a=f.value;f=Number(a.numBytesDownloaded);a=Number(a.numTotalBytes);b+=isNaN(f)?0:f;A+=isNaN(a)?0:a}return A===0?0:Math.round(b*100/A)/100};
hOF=function(A){if(!A||!A.expirationTimestamp||!A.action)return!1;var Q=(0,_.f4)()/1E3;return Number(A.expirationTimestamp)>=Q};
kL=function(A){return A&&A.expirationTimestamp&&A.action?hOF(A)&&A.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.IX=function(A){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(A||"TRANSFER_STATE_UNKNOWN")};
Wri=function(A){var Q=new bYW;if(A!==void 0){var b=Math.ceil(Math.log2(A.length*4+2)/7);b=b===void 0?2:b;S$(Q,10);Q.submessagePosStack.push(Q.pos);Q.submessagePosStack.push(b);Q.pos+=b;Ur(Q,A.length*1.2);b=$XU(A,Q.buf.subarray(Q.pos));Q.pos+b>Q.buf.length&&(Ur(Q,b),b=$XU(A,Q.buf.subarray(Q.pos)));Q.pos+=b;A=Q.submessagePosStack.pop();b=Q.submessagePosStack.pop();for(var f=Q.pos-b-A;A--;){var a=A?128:0;Q.view.setUint8(b++,f&127|a);f>>=7}}Q=new Uint8Array(Q.buf.buffer,Q.buf.byteOffset,Q.pos);return(new TextDecoder("utf-8")).decode(Q)};
_.HO=function(A){var Q=0;A=_.F(A);for(var b=A.next(),f={};!b.done;f={transferState$jscomp$3:void 0},b=A.next()){var a=b.value,T=void 0;b=(T=a.streamEntity)!=null?T:{};T=void 0;f.transferState$jscomp$3=(T=a.transferEntity)==null?void 0:T.transferState;T=a=void 0;((a=b)==null?0:(T=a.streamsProgress)==null?0:T.length)&&b.streamsProgress.forEach(function(G){return function(p){p=Number(G.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?p.numTotalBytes:p.numBytesDownloaded);isFinite(p)&&(Q+=p)}}(f))}return Q};
vjb=function(A){return A.some(function(Q){var b;if(!(Q==null?0:(b=Q.transferEntity)==null?0:b.transferState)){var f;return!(Q==null?0:(f=Q.policyEntity)==null?0:f.action)||Q.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return ROU.includes(Q.transferEntity.transferState)})};
Eje=function(A,Q){if(!Q)return!1;if(_.K("of_pb_en_po_ks"))return!0;var b;A=(b=_.Me(A,"offlineVideoPolicy",_.LO(Q,"offlineVideoPolicy")))!=null?b:void 0;return!!A&&kL(A)};
_.ch4=function(A){var Q=["TRANSFER_STATE_COMPLETE"];Q=Q===void 0?x8Y:Q;return A.filter(function(b){var f,a;return Q.includes((a=(f=b.transferEntity)==null?void 0:f.transferState)!=null?a:"TRANSFER_STATE_UNKNOWN")})};
zOb=function(A,Q){if(Q){var b,f=(b=_.Me(A,"playbackData",_.LO(Q,"playbackData")))!=null?b:null,a;b=(a=_.Me(A,"transfer",_.LO(Q,"transfer")))!=null?a:null;var T;a=(T=_.Me(A,"offlineVideoStreams",_.LO(Q,"offlineVideoStreams")))!=null?T:null;var G;A=(G=_.Me(A,"offlineVideoPolicy",_.LO(Q,"offlineVideoPolicy")))!=null?G:null;if(f||b||a||A)return{playbackDataEntity:f,transferEntity:b,streamEntity:a,policyEntity:A}}};
_.CO=function(A){var Q=A.playbackData;if(!Q)return[];var b=[];Q=_.F(Object.keys(Q));for(var f=Q.next();!f.done;f=Q.next()){var a=f.value;if(!wVe(A,_.Xg(a).entityId)&&(f=zOb(A,_.Xg(a).entityId))){var T=void 0,G=void 0;a=(G=Number((T=_.Me(A,"playbackData",a))==null?void 0:T.streamDownloadTimestampSeconds))!=null?G:(0,_.f4)();b.push({entity:f,streamDownloadTimestamp:a})}}return b.sort(function(p,P){var U=p.streamDownloadTimestamp,L=P.streamDownloadTimestamp;return L===U?p.entity.streamEntity&&!P.entity.streamEntity?
1:-1:L-U}).map(function(p){return p.entity})};
uki=function(A){return _.ch4(_.CO(A))};
_.ZY9=function(A){return _.CO(A).filter(function(Q){var b;if(((b=Q.policyEntity)==null?0:b.action)&&Q.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var f;if((f=Q.transferEntity)==null?0:f.transferState){var a;return ROU.includes((a=Q.transferEntity)==null?void 0:a.transferState)}return!0})};
wVe=function(A,Q){var b;return((b=_.Me(A,"downloadStatusEntity",_.LO(Q,"downloadStatusEntity")))==null?void 0:b.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
yh4=function(A){var Q;if(A==null?0:(Q=A.playbackDataEntity)==null?0:Q.key)return _.Xg(A.playbackDataEntity.key).entityId;var b;if(A==null?0:(b=A.transferEntity)==null?0:b.key)return _.Xg(A.transferEntity.key).entityId;var f;if(A==null?0:(f=A.streamEntity)==null?0:f.key)return _.Xg(A.streamEntity.key).entityId;var a;if(A==null?0:(a=A.policyEntity)==null?0:a.key)return _.Xg(A.policyEntity.key).entityId};
D8C=function(A){var Q=new Set,b;A=(b=A.mainDownloadsListEntity)==null?void 0:b[YqY];var f;if(!(A==null?0:(f=A.downloads)==null?0:f.length))return Q;var a;A==null||(a=A.downloads)==null||a.forEach(function(T){(T==null?0:T.videoItem)&&Q.add(T.videoItem)});
return Q};
qe=function(A,Q){if(Q){var b=_.Me(A,"mainVideoEntity",_.LO(Q,"mainVideoEntity")),f=_.Me(A,"downloadStatusEntity",_.LO(Q,"downloadStatusEntity")),a=_.Me(A,"ytMainChannelEntity",_.LO(Q,"ytMainChannelEntity")),T={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};A=zOb(A,Q);f=(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.K("woffle_render_failed_download_state_ks")&&(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_FAILED";!A&&f&&(A=T);if(A&&b&&
a)return Object.assign({},{videoEntity:b,channelEntity:a},A)}};
NEW=function(A,Q){return $8y(A,Q)==="TRANSFER_STATE_COMPLETE"&&Eje(A,Q)};
sAU=function(A,Q){if(!Q)return!1;var b;A=(b=_.Me(A,"playbackData",_.LO(Q,"playbackData")))!=null?b:void 0;return!!A&&!!A.playerResponseJson};
$8y=function(A,Q){if(!Q)return"TRANSFER_STATE_UNKNOWN";var b=_.Me(A,"transfer",_.LO(Q,"transfer"));if(b){var f;return(f=b.transferState)!=null?f:"TRANSFER_STATE_UNKNOWN"}b=_.Me(A,"offlineOrchestrationActionWrapperEntity",_.LO(Q,"offlineOrchestrationActionWrapperEntity"));A=_.Me(A,"mainVideoEntity",_.LO(Q,"mainVideoEntity"));return b||A?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
m8F=function(A,Q){if(!Q)return"TRANSFER_STATE_UNKNOWN";if(A=_.Me(A,"transfer",_.LO(Q,"transfer"))){var b;return(b=A.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
AYy=function(A,Q){return Q&&(A=_.Me(A,"videoPlaybackPositionEntity",_.LO(Q,"videoPlaybackPositionEntity")),A==null?0:A.lastPlaybackPositionSeconds)?Number(A.lastPlaybackPositionSeconds):0};
b24=function(A,Q){return QR6(A).some(function(b){var f;return(b==null?void 0:(f=b.mainPlaylistEntity)==null?void 0:f.playlistId)===Q})};
aX9=function(A,Q,b){var f=fXC(A,Q);if(!f.length)return[];Q=[];f=_.F(f);for(var a=f.next();!a.done;a=f.next()){a=a.value;var T=qe(A,a);b&&$8y(A,a)!=="TRANSFER_STATE_COMPLETE"||T&&Q.push(T)}return Q};
fXC=function(A,Q){if(!Q)return[];var b=_.LO(Q,"mainPlaylistEntity"),f;Q=(f=A.mainPlaylistEntity)==null?void 0:f[b];f=[];if(Q==null||!Q.videos)return f;Q=_.F(Q.videos);for(b=Q.next();!b.done;b=Q.next()){b=b.value;var a=void 0,T=void 0,G=void 0,p=(a=A)==null?void 0:(T=a.mainPlaylistVideoEntity)==null?void 0:(G=T[b])==null?void 0:G.video;p&&(b=_.Xg(p).entityId)&&f.push(b)}return f};
Tl4=function(A,Q){if(Q){var b=_.Me(A,"mainPlaylistEntity",_.LO(Q,"mainPlaylistEntity")),f=_.Me(A,"mainPlaylistDownloadStateEntity",_.LO(Q,"mainPlaylistDownloadStateEntity"));A=_.Me(A,"ytMainChannelEntity",_.LO(Q,"ytMainChannelEntity"));if(f&&b)return Object.assign({},{mainPlaylistEntity:b,mainPlaylistDownloadStateEntity:f},!!A&&{channelEntity:A})}};
QR6=function(A){return dkF(A).sort(function(Q,b){return b.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return Q.downloadedPlaylistEntities})};
dkF=function(A){var Q=A.mainPlaylistDownloadStateEntity,b=[];if(!Q)return b;for(var f=_.F(Object.keys(Q)),a=f.next();!a.done;a=f.next()){var T=a.value;a=Tl4(A,_.Xg(T).entityId);var G=void 0;T=Number((G=Q[T])==null?void 0:G.addedTimestampMillis);G=isNaN(T)?(0,_.f4)():T;a!==void 0&&b.push({downloadedPlaylistEntities:a,addedTimestampMillis:G})}return b};
FcX=function(A){var Q,b=(Q=A.mainPlaylistVideoEntity)!=null?Q:{};return new Set(QR6(A).reduce(function(f,a){f=f===void 0?[]:f;var T,G;a==null||(T=a.mainPlaylistEntity)==null||(G=T.videos)==null||G.forEach(function(p){var P;(p=(P=b[p])==null?void 0:P.video)&&f.push(p)});
return f},[]))};
GmY=function(A){return"downloadedMusicPlaylistEntities"in A};
BlU=function(A){return"mainPlaylistEntity"in A&&"mainPlaylistDownloadStateEntity"in A};
p1f=function(A){return"videoEntity"in A&&"channelEntity"in A};
P$9=function(A){var Q=A.musicPlaylistDownloadMetadataEntity,b=[];if(!Q)return b;for(var f=_.F(Object.keys(Q)),a=f.next();!a.done;a=f.next()){a=a.value;a:{var T=A,G=_.Xg(a).entityId;if(G){var p=_.Me(T,"musicPlaylist",_.LO(G,"musicPlaylist"));T=_.Me(T,"musicPlaylistDownloadMetadataEntity",_.LO(G,"musicPlaylistDownloadMetadataEntity"));if(p&&T){p={musicPlaylistEntity:p,musicPlaylistDownloadStateEntity:T};break a}}p=void 0}T=void 0;a=Number((T=Q[a])==null?void 0:T.addedTimestampMillis);a=isNaN(a)?(0,_.f4)():
a;p!==void 0&&b.push({downloadedMusicPlaylistEntities:p,addedTimestampMillis:a})}return b};
X1f=function(A){var Q=new Set;A=_.F(A);for(var b=A.next();!b.done;b=A.next())if(b=b.value,"musicPlaylistEntity"in b&&"musicPlaylistDownloadStateEntity"in b){b=_.F(b.musicPlaylistEntity.tracks);for(var f=b.next();!f.done;f=b.next())Q.add(f.value)}return Q};
SZb=function(A,Q){if(Q){var b=_.Me(A,"musicTrack",_.LO(Q,"musicTrack")),f=_.Me(A,"musicArtist",_.LO(Q,"musicArtist"))||{};if((A=zOb(A,Q))&&b&&f)return Object.assign({},{musicTrackEntity:b,musicArtistEntity:f},A)}};
UkW=function(A){var Q=A.musicTrackDownloadMetadataEntity,b=[];if(!Q)return[];Q=_.F(Object.keys(Q));for(var f=Q.next();!f.done;f=Q.next()){var a=f.value;f=SZb(A,_.Xg(a).entityId);var T=void 0;a=Number((T=_.Me(A,"musicTrackDownloadMetadataEntity",a))==null?void 0:T.addedTimestampMillis);T=isNaN(a)?(0,_.f4)():a;f!==void 0&&b.push({downloadedMusicEntities:f,addedTimestampMillis:T})}return b};
lXW=function(A,Q){if(!Q)return[];if(Object.values(LcF).includes(Q))return M3y(A,Q);Q=_.LO(Q,"musicPlaylist");var b;A=(b=A.musicPlaylist)==null?void 0:b[Q];b=[];if(A==null||!A.tracks)return b;A=_.F(A.tracks);for(Q=A.next();!Q.done;Q=A.next())(Q=_.Xg(Q.value).entityId)&&b.push(Q);return b};
M3y=function(A,Q){var b=new Set,f=P$9(A).map(function(T){return T.downloadedMusicPlaylistEntities});
f=X1f(f);f=_.F(f);for(var a=f.next();!a.done;a=f.next())(a=_.Xg(a.value).entityId)&&b.add(a);return Kci(A).downloadedMusicEntities.filter(function(T){var G;if((G=T.musicTrackEntity)!=null&&G.videoId){T=T.musicTrackEntity;if(G=Q==="PPOM"?!0:!b.has(T.videoId))b:switch(T=T.musicVideoType,Q){case "PPSE":G=T==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:G=T!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}T=G}else T=!1;return T}).map(function(T){var G;
return(G=T.musicTrackEntity)==null?void 0:G.videoId})};
Kci=function(A){var Q=UkW(A).sort(function(b,f){return f.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return"downloadedMusicEntities"in b?b.downloadedMusicEntities:GmY(b)?b.downloadedMusicPlaylistEntities:{}});
A=P$9(A).sort(function(b,f){return f.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return"downloadedMusicEntities"in b?b.downloadedMusicEntities:GmY(b)?b.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:Q,downloadedMusicPlaylistEntities:A}};
JYX=function(A,Q){Q=_.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?lXW(A,Q):fXC(A,Q);if(!Q.length)return"TRANSFER_STATE_UNKNOWN";Q=Q.map(function(b){return m8F(A,b)});
return i2i(Q)};
i2i=function(A){var Q=new Set(A);if(Q.has("TRANSFER_STATE_FAILED")&&Q.size===1)return"TRANSFER_STATE_FAILED";Q.delete("TRANSFER_STATE_FAILED");if(Q.has("TRANSFER_STATE_UNKNOWN")&&Q.size===1)return"TRANSFER_STATE_PRE_TRANSFER";Q.delete("TRANSFER_STATE_UNKNOWN");if(Q.has("TRANSFER_STATE_PRE_TRANSFER")&&Q.size===1||Q.size===0)return"TRANSFER_STATE_PRE_TRANSFER";A=Q.has("TRANSFER_STATE_TRANSFERRING");Q=Q.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return A||Q?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
oX=function(A){var Q=A.mainVideoDownloadStateEntity,b=[];if(!Q)return[];Q=_.F(Object.keys(Q));for(var f=Q.next();!f.done;f=Q.next()){var a=f.value;if(!wVe(A,_.Xg(a).entityId)){f=qe(A,_.Xg(a).entityId);var T=void 0,G=void 0;a=(G=Number((T=_.Me(A,"mainVideoDownloadStateEntity",a))==null?void 0:T.addedTimestampMillis))!=null?G:(0,_.f4)();f!==void 0&&b.push({downloadedVideoEntities:f,addedTimestampMillis:a})}}return b};
V3Y=function(A){return oX(A).sort(function(Q,b){return b.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return Q.downloadedVideoEntities})};
_.ngi=function(A){var Q=FcX(A),b=_.tH(A),f=D8C(A),a=oX(A).filter(function(G){var p,P;if((G==null?void 0:(p=G.downloadedVideoEntities)==null?void 0:(P=p.transferEntity)==null?void 0:P.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var U,L;G=G==null?void 0:(U=G.downloadedVideoEntities)==null?void 0:(L=U.videoEntity)==null?void 0:L.key;return _.K("kevlar_use_library_entity")?G&&(f.has(G)||b[G]):G&&!Q.has(G)}),T=dkF(A).filter(function(G){return JYX(A,G.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.ri(a),_.ri(T)).sort(function(G,p){return p.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return O2F(G)})};
kmY=function(A,Q){if(Q&&Eje(A,Q)){var b,f,a=(f=(b=_.Me(A,"playbackData",_.LO(Q,"playbackData")))!=null?b:void 0)==null?void 0:f.playerResponseJson;if(a){try{var T=JSON.parse(a);var G=_.Me(A,"transfer",_.LO(Q,"transfer")),p=AYy(A,Q);p&&(T=Object.assign({},T,{playerConfig:Object.assign({},T.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+p*1E3}}})}));T.cotn=G==null?void 0:G.cotn}catch(P){}return T}}};
_.H2W=function(A){var Q,b,f;A=(f=(b=((Q=A.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.rs])==null?void 0:b.smartDownloadsOptInBannerVisibility)!=null?f:{};var a;return(a=_.V(A,IXU))!=null?a:{}};
_.tH=function(A){var Q,b,f;A=(f=(b=((Q=A.mainDownloadsListEntity)!=null?Q:{})[_.C$b])==null?void 0:b.downloads)!=null?f:[];Q={};b=_.F(A);for(f=b.next();!f.done;f=b.next())A=void 0,Q[(A=f.value.videoItem)!=null?A:""]=!0;return Q};
qZF=function(A){var Q=_.tH(A);if(Object.keys(Q).length===0)return!1;var b=A.mainVideoEntity;if(!b)return!0;b=_.F(Object.keys(b));for(var f=b.next();!f.done;f=b.next()){f=f.value;var a=_.Xg(f).entityId;if(Q[f]&&!wVe(A,a))return!1}return!0};
_.j$=function(A){var Q=_.tH(A);return oX(A).sort(function(b,f){return b.addedTimestampMillis-f.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities}).filter(function(b){var f;
return(b=b==null?void 0:(f=b.videoEntity)==null?void 0:f.key)&&!!Q[b]})};
_.t39=function(A){var Q,b,f;A=(f=(b=((Q=A.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.rs])==null?void 0:b.downloadsUpsellBannerVisibility)!=null?f:{};var a;return(a=_.V(A,ogC))!=null?a:{}};
O2F=function(A){return"downloadedVideoEntities"in A?A.downloadedVideoEntities:"downloadedPlaylistEntities"in A?A.downloadedPlaylistEntities:{}};
rYW=function(A){var Q=_.tH(A),b=FcX(A),f=oX(A).filter(function(a){var T,G;return(a=a==null?void 0:(T=a.downloadedVideoEntities)==null?void 0:(G=T.videoEntity)==null?void 0:G.key)&&!Q[a]&&!b.has(a)});
A=dkF(A);return[].concat(_.ri(f),_.ri(A)).sort(function(a,T){return T.addedTimestampMillis-a.addedTimestampMillis}).map(function(a){return O2F(a)})};
_.RX=function(A){if(!_.K("kevlar_use_library_entity"))return rYW(A);var Q=oX(A).filter(function(f){var a,T;if(a=f=f==null?void 0:(a=f.downloadedVideoEntities)==null?void 0:(T=a.videoEntity)==null?void 0:T.key){var G,p,P;a=((p=(G=A.mainDownloadsListEntity)==null?void 0:G[YqY])==null?0:(P=p.downloads)==null?0:P.length)?D8C(A).has(f):!1}return a}),b=dkF(A);
return[].concat(_.ri(Q),_.ri(b)).sort(function(f,a){return a.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return O2F(f)})};
jRe=function(A){var Q=_.tH(A),b=FcX(A);return V3Y(A).filter(function(f){var a;return(f=f==null?void 0:(a=f.videoEntity)==null?void 0:a.key)&&!Q[f]&&!b.has(f)})};
R5Y=function(A){if(!_.K("kevlar_use_library_entity"))return jRe(A);var Q=_.tH(A),b=D8C(A);return V3Y(A).filter(function(f){var a;return(f=f==null?void 0:(a=f.videoEntity)==null?void 0:a.key)&&!Q[f]&&b.has(f)})};
ggU=function(A,Q){Q=_.LO(Q,"settingEntity");var b,f,a;return!!((a=(f=((b=A.settingEntity)!=null?b:{})[Q])==null?void 0:f.settingOptionValue)!=null?a:{}).boolValue};
_.gs=function(A){var Q=_.j$(A);if(vjb(Q))return 0;var b=[];Q=_.F(Q);for(var f=Q.next();!f.done;f=Q.next()){f=f.value;var a=void 0,T=void 0;if((a=f)==null?0:(T=a.videoEntity)==null?0:T.key)a=_.Xg(f.videoEntity.key).entityId,f=A,a=_.LO(a,"mainVideoDownloadStateEntity"),f=_.Me(f,"mainVideoDownloadStateEntity",a),(f=Number(f==null?void 0:f.addedTimestampMillis))&&b.push(f)}return Math.max.apply(Math,_.ri(b))};
_.e$=function(A){return A.ui.richGridMiniMode};
_.hH=function(A){return A.ui.richGridItemsPerRow};
_.e59=function(A){return A.ui.richGridSlimItemsPerRow};
_.h5Y=function(A){return A.ui.guideIsExpanded};
_.WO=function(A){return A.ui.miniplayerIsActive};
WcW=function(A){return A.ui.singleOptionSurveyIsActive};
_.vO=function(A){var Q;return((Q=A.ui)==null?void 0:Q.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.vgb=function(A){return _.vO(A)==="WEB_PAGE_TYPE_WATCH"};
_.EgX=function(A){return _.vO(A)==="WEB_PAGE_TYPE_SHORTS"};
_.xkF=function(A){return A.ui.inlinePreviewIsActive};
_.cYf=function(A){return A.ui.inlinePreviewIsEnabled};
_.z5C=function(A){return A.ui.miniplayerPlaybackState};
_.Er=function(A){return A.ui.isOnline};
_.w1J=function(A){return A.ui.frostedGlassMode};
_.xL=function(A,Q){return $8y(A.entities,Q)};
_.cO=function(A,Q){return JYX(A.entities,Q)};
uEb=function(A,Q){var b;if(Q){var f;A=(f=_.Me(A.entities,"offlineVideoPolicy",_.LO(Q,"offlineVideoPolicy")))==null?void 0:f.action}else A=void 0;return(b=A)!=null?b:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Z2b=function(A,Q){var b;Q?(A=_.Me(A.entities,"offlineVideoPolicy",_.LO(Q,"offlineVideoPolicy")),A=Number(A==null?void 0:A.expirationTimestamp)):A=void 0;return(b=A)!=null?b:0};
_.yYU=function(A){return _.CO(A.entities).length};
YZU=function(A,Q){return qe(A.entities,Q)};
Dke=function(A,Q){return Tl4(A.entities,Q)};
z7=function(A,Q){return(A=qe(A.entities,Q))?_.gjU([A]):0};
_.$kX=function(A,Q){var b=_.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(b){var f=A.entities;var a=lXW(f,Q);if(a.length){var T=[];a=_.F(a);for(var G=a.next();!G.done;G=a.next())(G=SZb(f,G.value))&&T.push(G);f=T}else f=[]}else f=aX9(A.entities,Q);var p;if(b){var P=A.entities;Q?(Q=_.LO(Q,"musicPlaylist"),P=(p=P.musicPlaylist)==null?void 0:p[Q],p=P!=null&&P.tracks?P.tracks.length:0):p=0}else p=A.entities,Q?(Q=_.LO(Q,"mainPlaylistEntity"),p=(P=p.mainPlaylistEntity)==null?void 0:P[Q],p=p!=null&&p.videos?
p.videos.length:0):p=0;return f.length!==p?0:f?eOW(f):0};
_.Nli=function(A){return A.download.isLeaderTab};
_.sRA=function(A,Q,b){if(!Q&&b){var f=A.entities;if(b){var a=Wri(b),T,G;Q=(G=(T=_.Me(f,"offlineabilityEntity",_.LO(a,"offlineabilityEntity")))==null?void 0:T.addToOfflineButtonState)!=null?G:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else Q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else T=A.entities,Q?(G=Wri(Q),Q=(a=(f=_.Me(T,"offlineabilityEntity",_.LO(G,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?a:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):Q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return Q};
mki=function(A,Q){A=A.entities;if(Q){Q=Wri(Q);var b,f;Q=(f=(b=_.Me(A,"offlineabilityEntity",_.LO(Q,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?f:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else Q="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return Q};
_.AXy=function(A){var Q=A.entities;A=_.Er(A);var b=ggU(Q,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.K("kevlar_modern_downloads_page")&&b)var f=!1;else{var a,T;Q=(T=(a=((f=Q.downloadsPageViewConfigurationEntity)!=null?f:{})[_.rs])==null?void 0:a.smartDownloadsOptInBannerVisibility)!=null?T:{};f=A?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection}return f};
_.Qay=function(A){return ggU(A.entities,"SMART_DOWNLOADS_ENABLED")};
_.bWe=function(A){return qZF(A.entities)};
fBA=function(A){return _.j$(A.entities).every(function(Q){var b;return(Q==null?void 0:(b=Q.transferEntity)==null?void 0:b.transferState)&&!ROU.includes(Q.transferEntity.transferState)})};
_.aBJ=function(A){var Q,b,f,a=(f=(b=((Q=A.entities.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.rs])==null?void 0:b.downloadsUpsellBannerVisibility)!=null?f:{};return _.Er(A)?!!a.visibleWithConnection:!!a.visibleWithoutConnection};
_.Tkb=function(A,Q){return wVe(A.entities,Q)};
dOY=function(A,Q){if(Q){var b,f;A=(f=(b=_.Me(A.entities,"downloadStatusEntity",_.LO(Q,"downloadStatusEntity")))==null?void 0:b.downloadState)!=null?f:"DOWNLOAD_STATE_UNKNOWN"}else A="DOWNLOAD_STATE_UNKNOWN";return A};
ws=function(A,Q){return AYy(A.entities,Q)};
p36=function(A){A=_.Fde(A);var Q=A.hours===void 0?0:A.hours,b=A.minutes===void 0?0:A.minutes,f=A.seconds===void 0?0:A.seconds,a=Q>0;A=[];a&&(Q=_.G1J(Q),A.push(Q));Q=a;Q=Q===void 0?!1:Q;b=(["af","be","lt"].includes(_.ug)||Q)&&b<10?Bkb().format(b):(new Intl.NumberFormat("en-u-nu-latn")).format(b);A.push(b);b=Bkb().format(f);A.push(b);b=":";"da fi id si sr sr-Latn".split(" ").includes(_.ug)&&(b=".");return A.join(b)};
_.Fde=function(A){var Q=A.hours||0,b=A.minutes||0,f=A.seconds||0;Q=f+b*60+Q*3600+(A.days||0)*86400+(A.weeks||0)*604800+(A.months||0)*2629800+(A.years||0)*31557600;if(Q<=0)return{hours:0,minutes:0,seconds:0};A=Q;Q=Math.floor(A/3600);A%=3600;b=Math.floor(A/60);f=Math.floor(A%60);return{hours:Q,minutes:b,seconds:f}};
_.G1J=function(A){A=(new Intl.NumberFormat("en-u-nu-latn")).format(A);var Q=["fr"],b="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(_.ug)?A.replace(",","\u00a0"):Q.includes(_.ug)?A.replace(",","\u202f"):b.includes(_.ug)?A.replace(",","."):A};
Bkb=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
P7b=function(A){try{return(new _.Z5(5)).format(A)}catch(Q){}};
y4=function(A){return{thumbnailOverlayDownloadingRenderer:{state:A}}};
X3J=function(A){if(A=P7b(A))return{thumbnailOverlaySidePanelRenderer:{text:_.T7(A),icon:{iconType:"PLAYLISTS"}}}};
SkF=function(){var A=_.JQ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.T7(A),icon:{iconType:"PLAY_ALL"}}}};
UO4=function(A){A=_.YL(A,2);return _.ug!=="ru"&&_.ug!=="es_419"&&_.ug!=="es-419"&&_.ug!=="es"&&_.ug!=="es_US"&&_.ug!=="es-US"&&_.ug!=="fr"&&_.ug!=="pl"&&_.ug!=="it"&&_.ug!=="nl"&&_.ug!=="uk"&&_.ug!=="fr_CA"&&_.ug!=="fr-CA"||A===""?A:A[0].toLocaleUpperCase()+A.substring(1)};
MNf=function(A){return function(Q){var b=A(),f=_.YL(Q,b.dateFormat);Q=_.YL(Q,b.timeFormat);var a=Ldy.DATETIMEFORMATS[b.joinerStyle];a=a.replace(/'(?!')/g,"");a=a.replace("{0}",Q);a=a.replace("{1}",f);return b.capitalize(a)}};
lBW=function(A){return A?typeof A.seconds==="string"&&(A.nanos===void 0||typeof A.nanos==="number"):!1};
KdC=function(A){return new Date(Number(A.seconds)*1E3+(A.nanos||0)*1E-6)};
_.YL=function(A,Q){if(typeof A.getTime==="function")A={date:A};else if(lBW(A))A={date:KdC(A)};else if(typeof lBW(A.timestamp)&&typeof A.i18nInternalSecondsEastOfUtc==="number")A={date:KdC(A.timestamp),timeZone:D5(-A.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(A));var b=A;A=b.date;b=b.timeZone;Q=iWJ(Q).format(A,b);_.ug==="zh-TW"&&(A=b?Number(iWJ("H").format(A,b)):A.getHours(),Q=A<5?Q.replace("\u4e0a\u5348","\u51cc\u6668"):A<8?Q.replace("\u4e0a\u5348","\u65e9\u4e0a"):A<12?
Q.replace("\u4e0a\u5348","\u4e0a\u5348"):A<13?Q.replace("\u4e0b\u5348","\u4e2d\u5348"):A<19?Q.replace("\u4e0b\u5348","\u4e0b\u5348"):Q.replace("\u4e0b\u5348","\u665a\u4e0a"));return Q};
iWJ=function(A){if(JXJ.has(A))return JXJ.get(A);var Q=VNe(A);Q=OWF(Q);n3C!==!0&&(n3C=!0);k14=!0;k14=!1;Q=new $L(Q,Ldy);JXJ.set(A,Q);return Q};
VNe=function(A){return(new $L(A,Ldy)).patternParts_.map(function(Q){return Q.type===0?"'"+Q.text+"'":Q.text}).join("")};
OWF=function(A){return _.ug==="en"||_.ug==="es_US"||_.ug==="es-US"?A:A.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(Q,b,f){return"H".repeat(b.length)+f})};
jaU=function(A,Q){IBf||(_.Ne=_.HWF,IBf=new C76);var b=IBf;a:if(A=qkW(A),Q=qkW(Q||new Date),A>Q)b=A.getTime()-Q.getTime()>6048E5?_.YL(A,1):o3X(A);else{for(var f=0;tNY(A,12*(f+1))<Q;)++f;if(f>0)b=b.format(-f,0);else{for(f=0;tNY(A,f+1)<Q;)++f;if(f>0)b=b.format(-f,2);else{A=Q.getTime()-A.getTime();Q=_.F(rX9);for(f=Q.next();!f.done;f=Q.next()){f=f.value;var a=f.unit,T=Math.floor(A/f.unitDuration);if(T>=(f.threshold===void 0?1:f.threshold)){b=b.format(-T,a);break a}}b=b.format(-0,7)}}}return b};
qkW=function(A){if(typeof A.getTime==="function")return A;if(lBW(A))return KdC(A);throw Error("Df`"+JSON.stringify(A));};
tNY=function(A,Q){for(var b=0,f;;++b)if(f=new Date(A.getFullYear(),A.getMonth()+Q,A.getDate()-b,A.getHours(),A.getMinutes(),A.getSeconds()),f.getMonth()===(A.getMonth()+Q)%12)return f};
_.sr=function(A){return{runs:[{text:A}]}};
_.mO=function(A){if(A&&A.simpleText)return A.simpleText;var Q="";if(A&&A.runs)for(var b=0;b<A.runs.length;b++)A.runs[b].text&&(Q+=A.runs[b].text);return Q};
g3A=function(A,Q,b,f){return A.videoEntity&&!A.policyEntity&&b!=="DOWNLOAD_STATE_FAILED"?[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:kL(A.policyEntity)&&Q!=="TRANSFER_STATE_FAILED"&&Q!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?Q==="TRANSFER_STATE_PAUSED_BY_USER"?[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.IX(Q)?[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:A.videoEntity.lengthSeconds?RGA(A.videoEntity.lengthSeconds,f):[]:
[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
RGA=function(A,Q){var b=[{thumbnailOverlayTimeStatusRenderer:{text:_.T7(p36({seconds:A})),style:"DEFAULT"}}];Q&&(A=Q<=0||A<=0?0:Q>=A?100:Math.ceil(Q*100/A),A>0&&b.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:A}}));return b};
eGy=function(A,Q,b,f,a){if(Q==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(_.IX(Q)||Q==="TRANSFER_STATE_PRE_TRANSFER")var T=[y4("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var G,p;if(Q==="TRANSFER_STATE_COMPLETE"&&((G=A.mainPlaylistEntity)==null?0:(p=G.videos)==null?0:p.length)){if(_.K("web_modern_collections_v2")){var P;var U=(T=A.mainPlaylistEntity)==null?void 0:(P=T.videos)==null?void 0:P.length;T=(T=P7b(U))?{thumbnailOverlayBottomPanelRenderer:{text:_.T7(T),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var L;T=X3J((U=A.mainPlaylistEntity)==null?void 0:(L=U.videos)==null?void 0:L.length)}var M;T=[SkF(),Object.assign({},(M=T)!=null?M:{})]}else T=[]}M=T;a:if(Q==="TRANSFER_STATE_PRE_TRANSFER")b=ds(_.JQ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(Q==="TRANSFER_STATE_TRANSFER_IN_QUEUE")b=ds(_.JQ("WAITING_TO_DOWNLOAD"));else if(_.IX(Q))b=Math.floor(b*100).toString(),b=ds(_.JQ("DOWNLOADING_PERCENT",{percent:b},"Downloading... "+b+"%"));else{if(f&&(_.K("playlist_is_offline_selector_killswitch")&&
(a=_.fJ().resolve(_.uC).isNetworkAvailable()),a)){b=wpU(_.JQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),c7W(f));break a}b=void 0}Q=Q==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.JQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},M.length?{thumbnailOverlays:M}:{},b?{viewPlaylistText:b}:{viewPlaylistText:_.sr("")},Q.length?{badges:Q}:{})};
hGb=function(A,Q,b,f,a,T){if(Q==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(f==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var G=g3A(A,Q,f);if(A.videoEntity&&!A.policyEntity&&f!=="DOWNLOAD_STATE_FAILED"){var p=_.JQ("WAITING_TO_DOWNLOAD");if(p)return{shortViewCountText:_.sr(p),publishedTimeText:void 0,thumbnailOverlays:G}}if(!kL(A.policyEntity)){T=A.policyEntity&&!hOF(A.policyEntity)?_.JQ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.JQ("TRANSFER_FAILED",{},"Download failed");var P;if((P=A.policyEntity)==null?0:P.shortMessageForDisabledAction)T=A.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:ds(T),publishedTimeText:void 0,thumbnailOverlays:G}}if(Q==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.sr(_.JQ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:G};if(Q==="TRANSFER_STATE_FAILED"||Q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.sr(_.JQ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:G};if(Q==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(P=_.JQ("WAITING_TO_DOWNLOAD"),f==="DOWNLOAD_STATE_PAUSED"&&(P=_.JQ("DOWNLOAD_PAUSED",{},"Download paused")),P))return{shortViewCountText:_.sr(P),publishedTimeText:void 0,thumbnailOverlays:G};if(_.IX(Q))return A=Math.floor(b*100).toString(),{shortViewCountText:_.sr(_.JQ("DOWNLOADING_PERCENT",{percent:A},"Downloading... "+A+"%")),publishedTimeText:void 0,thumbnailOverlays:G};Q=void 0;A.videoEntity.publishedTimestampMillis&&
(Q=new Date,a&&(Q=new Date(a)),Q=ds(jaU(new Date(Number(A.videoEntity.publishedTimestampMillis)),Q)));a=[];_.K("kevlar_woffle_badge_killswitch")||(a=[{metadataBadgeRenderer:{label:_.JQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var U;A=ds((U=A.videoEntity.localizedStrings)==null?void 0:U.viewCount);return Object.assign({},T?{shortViewCountText:void 0}:{shortViewCountText:A},T?{}:{publishedTimeText:Q},{badges:a,thumbnailOverlays:G})};
v34=function(A,Q){A=A===void 0?Wd4:A;switch(Q.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:Q.payload.playlistId,inviteLinkURL:Q.payload.inviteLinkUrl};default:return A}};
xO4=function(A,Q){A=A===void 0?E3F:A;switch(Q.type){case "SET_CURRENT_FORM_ID":return Q=Q.payload.formId,A.currentFormId===Q?A:{currentFormId:Q,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var b=Q.payload;Q=b.groupId;b=b.command;if(A.currentFormId){var f=Object.assign({},A.commandsMap);f[Q]=b;A=Object.assign({},A,{commandsMap:f})}return A;case "RESET_COMMAND_MAP":return Object.assign({},A,{commandsMap:{}});default:return A}};
zGe=function(A,Q){A=A===void 0?cX9:A;switch(Q.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},A,{guideIsExpanded:Q.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},A,{scrollAtTop:Q.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},A,{guideIsVisibleButNotPersistent:Q.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},A,{miniplayerIsActive:Q.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},A,{singleOptionSurveyIsActive:Q.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},A,{slimlineSurveyRatingSelectedIndex:Q.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},A,{richGridMiniMode:Q.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},A,{richGridItemsPerRow:Q.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},A,{richGridSlimItemsPerRow:Q.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},A,{richGridContainerWidth:Q.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},A,{richGridStyle:Q.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:Q.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},A,{inlinePreviewIsActive:Q.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},A,{inlinePreviewIsEnabled:Q.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},A,{darkModeIsEnabled:Q.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
A,{miniplayerPlaybackState:Q.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},A,{tabGesturesIsActive:Q.payload});case "SET_ONLINE_STATUS":return Object.assign({},A,{isOnline:Q.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},A,{chipBarIsSticky:Q.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},A,{frostedGlassMode:Q.payload});default:return A}};
uIi=function(A,Q){A=A===void 0?w3f:A;switch(Q.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},A,{transcription:Q.payload});case "SET_OVERLAY_STATE":return Object.assign({},A,{overlay:Q.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return A}};
r9J=function(){return ih(Object.assign({},{continuation:ZWJ,entities:d84,download:yX6,reportChannelAbuse:kWU,share:I8Y,talkToRecs:H39,ui:zGe,voiceSearch:uIi,watch:Cze,ypc:qn4,shorts:oZi,radioButtonGroup:xO4,collabInviteLink:v34},tqF))};
gZW=function(){return _.K("web_player_entities_middleware")?new AE(r9J(),[j3W,RaJ]):new AE(r9J(),[j3W])};
_.QK=function(){eaA||(eaA=gZW());return eaA};
hab=function(A,Q,b){if(A.length)return{titleText:_.T7(Q!=null?Q:_.JQ("DOWNLOADS",void 0,"Downloads")),contents:A.map(function(f){var a=f.videoEntity;f={videoId:a.videoId,title:ds(a.title),shortBylineText:ds(f.channelEntity.title),thumbnail:a.thumbnail};var T=a.videoId?ws(_.QK().getState(),a.videoId):0;a.videoId&&b?f.navigationEndpoint=_.aX(a.videoId,b,void 0,void 0,T):a.videoId&&(f.navigationEndpoint=xX9(a.videoId,T,a.lengthSeconds));a.lengthSeconds&&(f.thumbnailOverlays=RGA(a.lengthSeconds,T));return{playlistPanelVideoRenderer:f}}),
totalVideos:A.length}};
WD9=function(A){return(A=(0,_.j2.getValueByKeys)(A,"playlistId"))?{playlistId:A}:null};
vZ6=function(){return{}};
EZY=function(A,Q){return new _.M3(function(b,f){A.then(function(a){if(a){if(a=Q(a))return b(a);f()}},f)})};
xbY=function(A){var Q,b,f,a=(Q=A.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(f=b.autoplay)==null?void 0:f.autoplay,T,G,p;Q=(T=A.contents)==null?void 0:(G=T.twoColumnWatchNextResults)==null?void 0:(p=G.playlist)==null?void 0:p.playlist;return a&&Q&&Q.playlistId?{rawResponse:A,autoplayRenderer:a,playlistPanelRenderer:Q,playlistId:Q.playlistId}:null};
za4=function(A){var Q=Q===void 0?"UNKNOWN_INTERFACE":Q;if(A.length===1)return A[0];var b=c96[Q];if(b){b=new RegExp(b);for(var f=_.F(A),a=f.next();!a.done;a=f.next())if(a=a.value,b.exec(a))return a}var T=[];Object.entries(c96).forEach(function(G){var p=_.F(G);G=p.next().value;p=p.next().value;Q!==G&&T.push(p)});
b=new RegExp(T.join("|"));A.sort(function(G,p){return G.length-p.length});
f=_.F(A);for(a=f.next();!a.done;a=f.next())if(a=a.value,!b.exec(a))return a;return A[0]};
_.bB=function(A){return"/youtubei/v1/"+za4(A)};
_.fT=function(A){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:A}}}}};
_.az=function(A){return _.fT(_.sr(A))};
wJy=function(A,Q){var b={mode:"NORMAL"};A&&(b.autoplayVideo=A.navigationEndpoint,b.nextButtonVideo=A.navigationEndpoint);Q&&(b.previousButtonVideo=Q.navigationEndpoint);return b};
y9F=function(A,Q,b){if(!b||!b.sets)return{sets:[wJy(A,Q)]};var f=b.sets.find(function(G){return G.mode==="NORMAL"}),a=(0,_.j2.unsafeClone)(b);
if(!f)return a.sets.push(wJy(A,Q)),a;if(!A)return b;f=_.j2.getValueByKeys.apply(null,[f].concat(_.ri(u6J)));var T=_.j2.getValueByKeys.apply(null,[A].concat(_.ri(Z34)));if(f===T)return b;a.sets=a.sets.filter(function(G){return G.mode!=="NORMAL"});
a.sets.push(wJy(A,Q));return a};
Yn6=function(A){return!!A.playlistPanelVideoRenderer&&!A.playlistPanelVideoRenderer.unplayableText};
DbY=function(A){return!!A.playlistPanelVideoRenderer&&!!A.playlistPanelVideoRenderer.title};
$be=function(A,Q){if(Q.contents&&!(A>=Q.contents.length)&&(A=Q.contents.slice(A).find(Yn6)))return A.playlistPanelVideoRenderer};
Nu9=function(A,Q){if(Q.contents)return(Q=Q.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId===A}))?Q.playlistPanelVideoRenderer:void 0};
s3F=function(A,Q){return Q.contents?Q.contents.findIndex(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId===A}):-1};
mb6=function(A,Q){return Q.contents?Q.contents.findIndex(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.playlistSetVideoId===A}):-1};
AFe=function(A,Q){A.contents&&Q!==-1&&A.contents.splice(Q,1).length===1&&A.totalVideos!==void 0&&(--A.totalVideos,delete A.videoCountText)};
_.QEb=function(A){var Q=[];if(!A||!A.contents)return Q;A=_.F(A.contents);for(var b=A.next();!b.done;b=A.next())b=b.value,b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId&&Q.push(b.playlistPanelVideoRenderer.videoId);return Q};
_.bVf=function(A){if(A&&A.contents)return(A=A.contents.find(function(Q){return!!Q.playlistPanelVideoRenderer&&!!Q.playlistPanelVideoRenderer.selected})||A.contents[A.currentIndex])?A.playlistPanelVideoRenderer:void 0};
fJA=function(A,Q,b,f,a,T,G){a=a===void 0?!1:a;T=T===void 0?!1:T;G=G===void 0?!1:G;if(A.contents&&A.contents.length!==0){f&&(A.contents=A.contents.filter(f));f=A.contents.length;for(var p=0;p<f;p++){var P=A.contents[p].playlistPanelVideoRenderer;P&&(p===Q?(T&&delete P.menu,P.indexText=_.sr("\u25b6")):a||A.isInfinite||P.indexText===void 0?delete P.indexText:P.indexText=_.sr((p+1+b).toString()))}A.currentIndex=Q+b;G&&(delete A.videoCountText,A.totalVideos=f)}};
_.Tx=function(A){A=aJb(A);if(A){var Q=A.length;var b=-66%Q;b<0&&(b=Q+b);A=A.slice(Q-b)+A.slice(0,Q-b)}else A="";b="";for(Q=0;Q<A.length&&A[Q]!==TSb;Q++)b+=A[Q];return b};
_.dC9=function(A,Q){var b=document.body;Q=Q===void 0?function(p){return p}:Q;
var f,a=null;A=_.F(A);for(f=A.next();!f.done;f=A.next()){var T=f.value;f="div";T[2]&&(f=Q(T[2]));f=document.createElement(f);a||(a=f);var G=T[0];T=T[1];G&&(f.id=Q(G));if(T)for(T=_.F(T),G=T.next();!G.done;G=T.next())f.classList.add(Q(G.value));b.appendChild(f);b=f}return[a,b]};
FxU=function(A,Q){for(var b="",f=0;f<Q;f++)b+=A.charAt(Math.floor(Math.random()*A.length));return b};
d6=function(A){return FxU("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",A)};
FZ=function(A){return FxU("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",A)};
Gx=function(A){return FxU("0123456789",A)};
BY=function(){var A=performance.now(),Q=new Date;var b="2."+Q.getFullYear()+String(Q.getMonth()+1).padStart(2,"0")+String(Q.getDate()).padStart(2,"0");for(var f,a=Math.floor(Math.random()*11)+15,T=[],G=0;G<a;G++)T.push(Math.floor(Math.random()*26476865)+24547720);f=T.join(",");var p=d6(10),P=d6(100),U=d6(102),L=d6(106),M=d6(108),l=d6(11),J=d6(1140),n=d6(123),t=d6(14),g=d6(16),e=d6(1900),x=d6(23),D=d6(26),w=d6(34),u=d6(397),y=d6(44),a9=d6(5),pF=d6(72),Ub=d6(74),Ob=d6(75),I9=d6(88),iy=d6(91),wW="rr2---sn-q4fl6n6y rr4---sn-q4fzen7s rr5---sn-hgn7rnll rr3---sn-q4fl6nlz rr5---sn-q4flrn7r rr2---sn-ntq7yney rr2---sn-q4flrne7 rr5---sn-q4fl6nlz rr4---sn-q4fl6nss rr3---sn-hgn7rn7r rr4---sn-q4fl6n6y rr5---sn-q4fl6n66 rr3---sn-q4flrnss rr1---sn-q4fl6n66 rr1---sn-4g5edndk rr3---sn-q4flrn7k rr1---sn-5hnekn7l rr4---sn-t0a7ln7d rr1---sn-5hne6nsz rr4---sn-ntq7yner".split(" ");
var h4=wW[Math.floor(Math.random()*wW.length)];var SW=(new Date("2010-01-01")).getTime();var r9=(new Date(SW+Math.random()*((new Date).getTime()-SW))).toISOString().split("T")[0];for(var PM,Nf=[],L$=0;L$<4;L$++)Nf.push(Math.floor(Math.random()*100));PM=Nf.join(".");var UL=Number(Gx(5)),HM=Number(Gx(6)),Ks=Number(Gx(7)),Y1=Number(Gx(9)),dW=Gx(1),bY=Gx(10),OL=Gx(16),iO=Gx(19),Jv=Gx(2),zr=Gx(20),fN=Gx(21),sL=Gx(3),FL=Gx(4),Qx=Gx(5),Ls=Gx(6),k1=Gx(7),oy=Gx(8),ON=Gx(9);var Sx=FxU("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var UN=[FZ(5),FZ(5),FZ(5)].join("%2C"),k5=[Gx(3),Gx(5),Gx(5)].join("%2C"),mE=FZ(0),w9=FZ(1),zn=FZ(10),wx=FZ(108),bn=FZ(11),o8=FZ(12),Fu=FZ(13),jn=FZ(14),aO=FZ(15),$m=FZ(16),ai=FZ(17),He=FZ(18),We=FZ(19),uy=FZ(2),iY=FZ(20),XK=FZ(22),jd=FZ(23),ns=FZ(24),n$=FZ(266),K$=FZ(3),Rt=FZ(30),oT=FZ(34),lY=FZ(35),yE=FZ(36),fH=FZ(4),Wh=FZ(40),Ik=FZ(43),$T=FZ(47),p7=FZ(5),yY=FZ(6),FK=FZ(7),yx=FZ(75),ml=FZ(8),Xu=FZ(80),Hl=FZ(9),Js="https://www."+FZ(12)+".com",MJ={},yF={},p8={},DsY={},PK={},GC={},Bw={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:f}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:b},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+FZ(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:b},{key:"client.name",value:"WEB"},{key:"client.fexp",value:f}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:fN+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+FZ(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Wh,ypcGetOfflineUpsellEndpoint:{params:Xu}},trackingParams:lY+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&cnr="+Jv+"&ratebypass=yes&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&c=WEB&txp="+k1+"&n="+g+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
M+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:HM,width:640,height:360,lastModified:OL,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:k1,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+k5+"&mn="+
UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&cnr="+Jv+"&ratebypass=yes&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&c=WEB&txp="+k1+"&n="+g+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+wx+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:HM,width:1280,
height:720,lastModified:OL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:k1,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+k5+"&mn="+UN+"&ms="+
UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+ON+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Ks,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:ON,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ks,approxDurationMs:k1},{itag:248,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+k5+"&mn="+UN+"&ms="+UN+"&mv="+
w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+ON+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/webm; codecs="vp9"',bitrate:Ks,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:ON,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ks,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:399,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+ON+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Ks,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:ON,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Ks,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:136,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+ON+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Ks,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:ON,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:HM,approxDurationMs:k1},{itag:247,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+k5+"&mn="+
UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+ON+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/webm; codecs="vp9"',bitrate:Ks,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:ON,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:398,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+ON+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Ks,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:ON,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:135,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:HM,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:HM,approxDurationMs:k1},{itag:244,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+k5+"&mn="+
UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+wx+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/webm; codecs="vp9"',bitrate:HM,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:397,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:HM,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:134,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:HM,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:HM,highReplication:!0,approxDurationMs:k1},{itag:243,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/webm; codecs="vp9"',bitrate:HM,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:396,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:HM,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:133,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:HM,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:HM,approxDurationMs:k1},{itag:242,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+k5+"&mn="+
UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/webm; codecs="vp9"',bitrate:HM,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:395,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:HM,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:HM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:160,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:HM,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:UL,approxDurationMs:k1},{itag:278,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+k5+"&mn="+
UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&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="+M,mimeType:'video/webm; codecs="vp9"',bitrate:HM,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:UL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:394,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&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="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=video%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:UL,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:UL,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:k1},{itag:140,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=audio%2Fmp4&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:HM,
initRange:{start:"0",end:"631"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:HM,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:k1,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+
Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=audio%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+k1+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'audio/webm; codecs="opus"',bitrate:UL,initRange:{start:"0",end:"265"},indexRange:{start:sL,
end:FL},lastModified:OL,contentLength:k1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:UL,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:k1,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=audio%2Fwebm&ns="+
ns+"&gir="+K$+"&clen="+k1+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+L+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'audio/webm; codecs="opus"',bitrate:UL,initRange:{start:"0",end:"265"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:k1,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:UL,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:k1,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+h4+".googlevideo.com/videoplayback?expire="+bY+"&ei="+x+"&ip="+PM+"&id=o-AF"+Ik+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+k5+"&mn="+UN+"&ms="+UN+"&mv="+w9+"&mvi="+dW+"&pl="+Jv+"&initcwndbps="+k1+"&siu="+dW+"&spc="+y+"&vprv="+dW+"&svpuc="+dW+"&mime=audio%2Fwebm&ns="+ns+"&gir="+K$+"&clen="+oy+"&dur="+oy+"&lmt="+OL+"&mt="+bY+"&fvip=3&keepalive="+K$+"&c=WEB&txp="+
k1+"&n="+$m+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+P+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+M,mimeType:'audio/webm; codecs="opus"',bitrate:HM,initRange:{start:"0",end:"265"},indexRange:{start:sL,end:FL},lastModified:OL,contentLength:oy,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:HM,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:k1,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="+ON+"&docid="+l+"&ei="+x+"&feature="+p+"&fexp="+mE+"&ns="+uy+"&plid="+g+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+w9+"&el="+zn+"&len="+FL+"&of="+XK+
"&uga="+Jv+"&vm="+n$},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+ON+"&docid="+l+"&ei="+x+"&feature="+p+"&fexp="+mE+"&ns="+uy+"&plid="+g+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+w9+"&el="+zn+"&len="+FL+"&of="+XK+"&uga="+Jv+"&vm="+n$},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+ON+"&docid="+l+"&ei="+x+"&feature="+p+"&fexp="+mE+"&ns="+uy+"&plid="+g+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
w9+"&el="+zn+"&len="+FL+"&of="+XK+"&uga="+Jv+"&vm="+n$},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+x+"&m="+I9+"&oid="+XK+"&plid="+g+"&pltype="+FK+"&ptchn="+XK+"&ptk="+t+"&video_id="+l},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+ON+"&docid="+l+"&ei="+x+"&event="+jn+"&feature="+p+"&fexp="+mE+"&ns="+uy+"&plid="+g+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+w9},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+l+"&ei="+x+"&feature="+
p+"&len="+FL+"&ns="+uy+"&plid="+g+"&ver="+dW,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+l+"&caps="+K$+"&opi="+ON+"&xoaf="+dW+"&hl="+uy+"&ip="+PM+"&ipbits="+dW+"&expire="+bY+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+PM+"&key="+K$+"&lang="+a9,name:{simpleText:He},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+l+"&caps="+K$+"&opi="+ON+"&xoaf="+dW+"&hl="+uy+"&ip="+PM+"&ipbits="+dW+"&expire="+bY+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+PM+"&key="+K$+"&kind="+K$+"&lang="+uy,name:{simpleText:We},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:bn,title:zn,lengthSeconds:"1155",keywords:[zn,fH,FK,Fu],
channelId:ns,isOwnerViewing:!1,shortDescription:iY,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+oT,width:168,height:94},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+oT,width:196,height:110},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+w,width:246,height:138},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+w,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
l+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:k1,author:Fu,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:k1,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+XK+"/featured_channel.jpg?v="+ml,width:40,height:40}]},trackingParams:lY+"=",navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"/channel/"+ns,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ns}},channelName:Fu,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:aO}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ns,showPreferences:!1,subscribedButtonText:{runs:[{text:iY}]},unsubscribedButtonText:{runs:[{text:aO}]},trackingParams:lY+"=",unsubscribeButtonText:{runs:[{text:o8}]},serviceEndpoints:[{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ns],params:ml}},{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Wh,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lY+"=",dialogMessages:[{runs:[{text:He},{text:iY},{text:yY}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:bn}]},serviceEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ns],params:ml}},accessibility:{label:o8},trackingParams:lY+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ai}]},accessibility:{label:Fu},trackingParams:lY+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ml}},unsubscribeAccessibility:{accessibilityData:{label:fH}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:oy},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ns],params:ml}},unsubscribeCommand:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ns],params:ml}},addToWatchLaterCommand:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:bn,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:bn}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+l+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+yE+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
l+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+bn,width:1280,height:720},title:{simpleText:bn},description:{simpleText:FK},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+fH,externalChannelId:ns,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:k1,category:"Travel & Events",publishDate:r9,ownerChannelName:Fu,uploadDate:r9}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:FK},trackingParams:lY+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Wh,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:lY+"="}}],headerText:{simpleText:iY},icon:{infoCardIconRenderer:{trackingParams:lY+"="}},closeButton:{infoCardIconRenderer:{trackingParams:lY+"="}},trackingParams:lY+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:lY+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+bn+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Sx,interpreterSafeUrl:(MJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Rt+".js",MJ),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Hl},{text:Hl,bold:!0}]},endpoint:{clickTrackingParams:Wh,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:lY+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:p7}]},actionButton:{buttonRenderer:{text:{runs:[{text:jn}]},navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+l,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
l,target:"TARGET_NEW_WINDOW"}},trackingParams:lY+"="}},trackingParams:lY+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+pF+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+pF+"=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:k1,endMs:k1,title:{accessibility:{accessibilityData:{label:fH}},simpleText:jn},metadata:{simpleText:o8},callToAction:{simpleText:zn},dismiss:{simpleText:o8},endpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"/channel/"+ns,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ns}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:jn}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ns,showPreferences:!1,
subscribedButtonText:{runs:[{text:ai}]},unsubscribedButtonText:{runs:[{text:p7}]},trackingParams:lY+"=",unsubscribeButtonText:{runs:[{text:bn}]},serviceEndpoints:[{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ns],params:ml}},{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Wh,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lY+
"=",dialogMessages:[{runs:[{text:bn},{text:ml},{text:aO}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ai}]},serviceEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ns],params:ml}},accessibility:{label:yY},trackingParams:lY+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ai}]},
accessibility:{label:ml},trackingParams:lY+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:We}},unsubscribeAccessibility:{accessibilityData:{label:$m}}}},trackingParams:lY+"=",isSubscribe:!0,id:zr}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+w,width:168,height:94},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+oT,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+w,width:246,height:138},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+yE+"G&rs="+w,width:336,height:188},{url:"https://i.ytimg.com/vi/"+l+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:k1,endMs:k1,title:{accessibility:{accessibilityData:{label:He}},simpleText:Fu},metadata:{simpleText:$m},endpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
bn,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:bn,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+h4+".googlevideo.com/videoplayback?source=youtube&oeis="+dW+"&c=WEB&oad="+FL+"&ovd="+FL+"&oaad="+Qx+"&oavd="+Qx+"&ocs="+sL+"&oewis="+dW+"&oputc="+dW+"&ofpcc="+dW+"&siu="+dW+"&msp="+dW+"&odepv="+dW+
"&id=o-AF"+Ik+"&ip="+PM+"&initcwndbps="+k1+"&mt="+bY+"&oweuc="+mE}}}}},trackingParams:lY+"=",id:zr,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:bn}},simpleText:$m},style:"DEFAULT"}}]}}],startMs:k1,trackingParams:lY+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:dW,offsetEndMilliseconds:Qx},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";ord="+bY+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+sL+";dc_sk="+dW+";dc_ctype="+Jv+";dc_ref=http://www.youtube.com/video/"+bn+";dc_pubid="+dW+";dc_btype=23?gclid="+iy+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+dW+"&ns="+dW+"&event="+dW+"&device="+dW+"&content_v="+l+"&el="+zn+"&ei="+x+"&devicever="+b+"&bti="+k1+"&format="+Ls+"&break_type="+dW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+dW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+PM+"&slot_pos="+dW+"&slot_len="+dW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+k5+"&ad_len="+Qx+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
bn+"&aqi="+x+"&ad_rmp="+dW+"&sli="+dW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+
";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+k1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&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"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&ctype="+sL+"&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"+
J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_engaged_view&ctype="+sL+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+";dc_rui="+dW+";dc_exteid="+iO+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+jd+"&ad_cpn=[AD_CPN]&id="+yY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yY+"&dc_pubid="+dW+"&dc_exteid="+zr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+jd+"&ad_cpn=[AD_CPN]&id="+yY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+dW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yY+"&avm="+dW+"&dc_pubid="+dW+"&dc_exteid="+
zr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&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="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
U+"&sig="+jd+"&ad_cpn=[AD_CPN]&id="+yY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+dW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yY+"&dc_pubid="+dW+"&dc_exteid="+zr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Wh,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+
sL+"&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/"+l+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lY+"="},trackingParams:lY+
"=",templatedCountdown:{templatedAdText:{text:jn,isTemplated:!0,trackingParams:lY+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:bn,isTemplated:!1,trackingParams:lY+"="},trackingParams:lY+"="}},trackingParams:lY+"=",skipOffsetMilliseconds:5E3}},trackingParams:lY+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:He},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lY+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:We,isTemplated:!1,trackingParams:lY+"="},trackingParams:lY+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Fu,isTemplated:!0,trackingParams:lY+"="}},trackingParams:lY+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Wh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yF.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+uy+"&origin=www.youtube.com&ata_theme="+fH,yF),trackingParams:lY+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:lY+"="}},hoverText:{runs:[{text:ml}]},trackingParams:lY+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$T+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lY+"="},headline:{text:$m,isTemplated:!1,trackingParams:lY+"="},description:{text:We,
trackingParams:lY+"="},actionButton:{buttonRenderer:{text:{simpleText:ml},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lY+"="}},startMs:dW,trackingParams:lY+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:zn},elementId:ml}},elementId:yY,trackingParams:lY+"=",legacyInfoCardVastExtension:yY,sodarExtensionData:{siub:Fu,bgub:bn,scs:ai,bgp:ai},externalVideoId:bn,adLayoutLoggingData:{serializedAdServingDataEntry:$m},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$T+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lY+"="},
headline:{text:ai,isTemplated:!1,trackingParams:lY+"="},description:{text:bn,isTemplated:!1,trackingParams:lY+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:bn},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+";dc_rui="+dW+";dc_exteid="+
zr+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+
dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lY+"="}},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ON+";dc_trk_cid="+
ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+
n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lY+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lY+"="},abandonCommands:{commands:[{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&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="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+
dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Wh,commandExecutorCommand:{commands:[{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Fu,isTemplated:!1,trackingParams:lY+
"="},trackingParams:lY+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:FK},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+k1+";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="+ON+";dc_trk_cid="+ON+";ord="+bY+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+sL+";dc_sk="+dW+";dc_ctype="+Jv+";dc_ref=http://www.youtube.com/video/"+bn+";dc_pubid="+dW+";dc_btype=23?gclid="+iy+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+dW+"&ns="+dW+"&event="+dW+"&device="+dW+"&content_v="+l+"&el="+zn+"&ei="+x+"&devicever="+b+"&bti="+k1+"&format="+Ls+"&break_type="+dW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+dW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+PM+"&slot_pos="+dW+"&slot_len="+dW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
k5+"&ad_len="+Qx+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+bn+"&aqi="+x+"&ad_rmp="+dW+"&sli="+dW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+
D+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+k1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&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"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&ctype="+sL+"&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"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_engaged_view&ctype="+sL+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+jd+"&ad_cpn=[AD_CPN]&id="+
yY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yY+"&dc_pubid="+dW+"&dc_exteid="+zr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+
"&sig="+jd+"&ad_cpn=[AD_CPN]&id="+yY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+dW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yY+"&avm="+dW+"&dc_pubid="+dW+"&dc_exteid="+zr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&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="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+U+"&sig="+jd+"&ad_cpn=[AD_CPN]&id="+yY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+dW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+yY+"&dc_pubid="+dW+"&dc_exteid="+zr+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Ls+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+
sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&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/"+l+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lY+"="},trackingParams:lY+"=",templatedCountdown:{templatedAdText:{text:FK,isTemplated:!0,trackingParams:lY+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:bn,isTemplated:!1,trackingParams:lY+"="},trackingParams:lY+"="}},
trackingParams:lY+"=",skipOffsetMilliseconds:5E3}},trackingParams:lY+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:yY},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:p7,isTemplated:!1,trackingParams:lY+"="},trackingParams:lY+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:yY,
isTemplated:!0,trackingParams:lY+"="}},trackingParams:lY+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Wh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(p8.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+uy+"&origin=www.youtube.com&ata_theme="+fH,p8),trackingParams:lY+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:lY+"="}},hoverText:{runs:[{text:We}]},trackingParams:lY+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ub+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lY+"="},headline:{text:iY,isTemplated:!1,trackingParams:lY+"="},description:{text:We,trackingParams:lY+"="},actionButton:{buttonRenderer:{text:{simpleText:iY},navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lY+"="}},startMs:dW,trackingParams:lY+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:yY},elementId:p7}},elementId:Hl,trackingParams:lY+"=",legacyInfoCardVastExtension:ai,sodarExtensionData:{siub:FK,bgub:$m,scs:aO,bgp:We},externalVideoId:bn,adLayoutLoggingData:{serializedAdServingDataEntry:fH},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ub+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lY+"="},headline:{text:ml,
isTemplated:!1,trackingParams:lY+"="},description:{text:o8,isTemplated:!1,trackingParams:lY+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:o8},navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lY+"="}},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+
dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lY+"="},abandonCommands:{commands:[{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&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="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+Jv+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Wh,commandExecutorCommand:{commands:[{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:p7,isTemplated:!1,trackingParams:lY+"="},trackingParams:lY+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:aO},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+dW+";dc_exteid="+zr+";met="+dW+";ecn"+dW+"="+dW+";etm1="+dW+";eid1="+
k1+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Hl}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Qx,offsetEndMilliseconds:Ls},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+Jv+"&token=ALHj"+u+"&index="+dW+"&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="+b+"&m_pos_ms="+Qx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Ls,offsetEndMilliseconds:Ls},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+sL+"&token=ALHj"+u+"&index="+dW+"&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="+
b+"&m_pos_ms="+Ls}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ls,offsetEndMilliseconds:Ls},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+sL+"&token=ALHj"+u+"&index="+dW+"&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="+
b+"&m_pos_ms="+Ls}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ls,offsetEndMilliseconds:Ls},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+sL+"&token=ALHj"+u+"&index="+dW+"&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="+
b+"&m_pos_ms="+Ls}},adSlotLoggingData:{serializedSlotAdServingDataEntry:iY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Ls,offsetEndMilliseconds:Jv},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+sL+"&token=ALHj"+u+"&index="+dW+"&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="+
b+"&m_pos_ms="+Ls}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Jv,offsetEndMilliseconds:Jv},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+Jv+"&token=ALHj"+u+"&index="+dW+"&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="+
b+"&m_pos_ms="+Jv}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:aO,isTemplated:!1,trackingParams:lY+"="},description:{text:iY,isTemplated:!1,trackingParams:lY+"="},actionButton:{buttonRenderer:{text:{simpleText:We},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$T+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:lY+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ob+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lY+"="},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+
";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Wh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(DsY.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+uy+"&origin=www.youtube.com&ata_theme="+fH,DsY),trackingParams:lY+"="}},popupType:"DIALOG"}},trackingParams:lY+"="}},hoverText:{runs:[{text:o8}]},trackingParams:lY+"="}},adVideoId:bn,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:aO},associatedCompositePlayerBytesLayoutId:$m}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:bn}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Fu,isTemplated:!1,trackingParams:lY+"="},description:{text:He,isTemplated:!1,trackingParams:lY+"="},actionButton:{buttonRenderer:{text:{simpleText:o8},navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+
n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lY+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ub+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lY+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+yx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lY+"="},navigationEndpoint:{clickTrackingParams:Wh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+
dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Wh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(PK.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+uy+"&origin=www.youtube.com&ata_theme="+fH,PK),trackingParams:lY+"="}},popupType:"DIALOG"}},trackingParams:lY+"="}},
hoverText:{runs:[{text:Hl}]},trackingParams:lY+"="}},adVideoId:bn,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+bn+"&cid="+D+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:$m},associatedCompositePlayerBytesLayoutId:$m}},adSlotLoggingData:{serializedSlotAdServingDataEntry:p7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:aO,
isTemplated:!1,trackingParams:lY+"="},description:{text:$m,isTemplated:!1,trackingParams:lY+"="},actionButton:{buttonRenderer:{text:{simpleText:FK},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+
Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+
w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lY+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$T+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lY+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ob+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lY+
"="},navigationEndpoint:{clickTrackingParams:Wh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ON+";dc_trk_cid="+ON+";dc_dbm_token="+M+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+dW+";ord="+ON+";dc_rui="+dW+";dc_exteid="+zr+";dc_av="+dW+";dc_sk="+dW+";dc_ctype="+Jv+";dc_pubid="+dW+";dc_btype=3?gclid="+iy+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+dW+"&cid="+D+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+Js+"&label=video_click_to_advertiser_site&ctype="+sL+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lY+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Wh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(GC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+e+"&hl="+uy+"&origin=www.youtube.com&ata_theme="+fH,GC),trackingParams:lY+"="}},popupType:"DIALOG"}},trackingParams:lY+
"="}},hoverText:{runs:[{text:zn}]},trackingParams:lY+"="}},adVideoId:bn,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+l+"&cid="+D+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:He},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:$m}},adSlotLoggingData:{serializedSlotAdServingDataEntry:FK}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Rt,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Rt,command:{innertubeCommand:{clickTrackingParams:Wh,ypcGetOfflineUpsellEndpoint:{params:Xu}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:lY+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:bY,nanos:Y1}}}},rdW=JSON.stringify(Bw),pQ=performance.now()-A;return{objectRepresentation:Bw,jsonRepresentation:rdW,generationTime:pQ}};
GvA=function(A,Q){if(A===Q)return!0;if(!A||!Q||typeof A!==typeof Q)return!1;if(A instanceof Array&&Q instanceof Array){if(A.length!==Q.length)return!1;for(var b=0;b<A.length;b++)if(!GvA(A[b],Q[b]))return!1;return!0}if(typeof A==="object"&&typeof Q==="object"&&A&&Q){for(b in A)if(!(b in Q&&GvA(A[b],Q[b])))return!1;for(var f in Q)if(!(f in A))return!1;return!0}return!1};
_.PY=function(){if(!pT){pT=new UO(new BSU);var A=_.GP("client_streamz_web_flush_count",-1);A!==-1&&(pT.invocationLimit=A)}return pT};
XZ=function(A,Q,b,f){if(A===Q)return!0;if(Array.isArray(A)&&Array.isArray(Q)){if(A.length!==Q.length)return!1;for(var a=0;a<A.length;a++)if(!XZ(A[a],Q[a],b,f))return!1;return!0}if(A instanceof Set||Q instanceof Set){if(A instanceof Set&&Q instanceof Set){if(A.size!==Q.size)return!1;f=_.F(A.values());for(a=f.next();!a.done;a=f.next())if(!Q.has(a.value))return!1;return!0}return!1}if(A instanceof Function){if(f)return!0;A.name===""&&_.en(Error("Hf"),"ERROR");return!1}if(A instanceof Date&&Q instanceof
Date)return A.getTime()===Q.getTime();if(A instanceof Object&&Q instanceof Object){if(pb6(A)&&pb6(Q))try{return A.equals(Q)}catch(G){_.en(Error("If`"+G),"ERROR")}a=Object.getOwnPropertyNames(A).filter(function(G){return b?A[G]!==void 0:!0});
var T=Object.getOwnPropertyNames(Q).filter(function(G){return b?Q[G]!==void 0:!0});
if(a.length!==T.length)return!1;a=_.F(a);for(T=a.next();!T.done;T=a.next())if(T=T.value,!XZ(A[T],Q[T],b,f))return!1;return!0}return!1};
pb6=function(A){A=Object.getPrototypeOf(A).equals;return A instanceof Function&&A.length===1};
_.SEb=function(){return _.B(function(A){if(A.nextAddress==1)return PFi!==2?A.jumpTo(2):A.yield(Xbi(),3);A.nextAddress!=2&&(PFi=A.yieldResult);return A.return(PFi)})};
_.MGJ=function(){return _.B(function(A){if(A.nextAddress==1)return _.K("ab_pl_man")?UCF!==2?A.jumpTo(2):A.yield(Lxf(),3):A.return(1);A.nextAddress!=2&&(UCF=A.yieldResult);return A.return(UCF)})};
iVC=function(){return _.B(function(A){if(A.nextAddress==1)return _.K("ab_fk_sk_cl")?lJC!==2?A.jumpTo(2):A.yield(KxA(),3):A.return(1);A.nextAddress!=2&&(lJC=A.yieldResult);return A.return(lJC)})};
_.OVy=function(){return _.B(function(A){if(A.nextAddress==1)return _.K("ab_det_apb_b")?JFe!==2?A.jumpTo(2):A.yield(VGi(),3):A.return(1);A.nextAddress!=2&&(JFe=A.yieldResult);return A.return(JFe)})};
IJA=function(){var A;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.all([_.SEb(),_.OVy(),_.MGJ(),iVC()]),2);if(Q.nextAddress!=3)return nX9()?Q.return(!0):Q.yield(_.kv6(),3);A=Q.yieldResult;return Q.return(A===0)})};
nX9=function(){var A=!1,Q=function(b,f){HVy.increment(f,b);b===0&&(A=!0)};
Q(_.CFe(),"j.s_");Q(PFi,"f.i_");Q(JFe,"a.b_");Q(UCF,"p.m_");Q(lJC,"i.f_");qEy===2&&(qEy=_.oXi(tGF));Q(qEy,"e.h_");_.K("ks_det_gpbl")||Q(_.rFF(),"p.i_");_.K("ks_get_o_pp")||Q(_.jEF(),"g.o_");_.K("ab_deg_unex_thr")||Q(_.R0f(),"a.o_");Q(gXA,"s.t_");_.K("ab_det_sc_inj_enf")&&Q(_.e09(),"s.i_");Q(h0e,"d.p_");Q(_.Wxi(_.SL),"o.p_");Q(_.vXY()===0?0:_.EXi(),"o.a_");return _.K("debug_sk_em_precheck")?!0:A};
cFe=function(){var A=[].concat(_.ri(xCy));try{var Q=BY();A.push({jsonRepresentation:Q.jsonRepresentation,objectRepresentation:Q.objectRepresentation})}catch(b){A=[].concat(_.ri(xCy))}return A};
z0f=function(){var A=["adPlacements","adSlots"];try{return A.filter(function(){return!0}).length!==A.length?0:1}catch(Q){return 0}};
_.jEF=function(){if(z0f()===0)return 0;var A=BY(),Q=A.objectRepresentation,b=(0,_.j2.unsafeClone)(Q),f=[];if(Q&&typeof Q==="object")for(var a in Q)f.push(a);else return 4;A=A.objectRepresentation.adPlacements;if(!(A&&A.length>0))return 4;try{if(!GvA(f,Object.getOwnPropertyNames(Q)))return 0}catch(T){return 0}return GvA(b,Q)?1:0};
_.Wxi=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var Q=Object.getOwnPropertyNames(Object.prototype),b=0;b<A.length;b++)for(var f=_.Tx(A[b]),a=_.F(Q),T=a.next();!T.done;T=a.next())if(f===T.value)return 0;return 1};
wbJ=function(A){var Q=_.Tx(A[1]);if(A[0]===null)return Q;A=A[0];for(var b={},f=0;f<A.length;f++){var a=_.Tx(A[f]);if(f===0)b[a]=Q;else{var T={};T[a]=b;b=T}}return b};
_.vXY=function(){for(var A=_.UY,Q=0;Q<A.length;Q++){var b=wbJ(A[Q]),f=[];f.push(b);if(f.length===0)return 0}return 1};
_.EXi=function(){for(var A=_.UY,Q={},b=0;b<A.length;Q={g3f:void 0},b++){var f=[wbJ(A[b])];Q.g3f=[];f.forEach(function(a){return function(T){a.g3f[a.g3f.length]=T}}(Q));
if(Q.g3f.length===0)return 0}return 1};
_.CFe=function(){for(var A=_.F(cFe()),Q=A.next();!Q.done;Q=A.next()){var b=Q.value;Q=b.jsonRepresentation;b=b.objectRepresentation;try{var f=JSON.parse(Q);if(!XZ(f,b,!1,!1))return 0}catch(a){return 0}}return 1};
_.e09=function(){try{var A=_.pJ("ab_det_sc_inj_val");A.length===1&&A[0]===""&&(A=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var Q=document.querySelectorAll("script"),b=_.F(Q),f=b.next();!f.done;f=b.next())for(var a=f.value,T=_.F(A),G=T.next();!G.done;G=T.next()){var p=G.value;Q=void 0;if((Q=a.textContent)==null?0:Q.includes(p))return 0}}catch(P){return 4}return 1};
_.kv6=function(){var A,Q,b,f,a,T,G;return _.B(function(p){switch(p.nextAddress){case 1:_.ML(p,2),A=_.F(xCy),Q=A.next();case 4:if(Q.done)return p.return(1);f=b=Q.value;a=f.jsonRepresentation;T=f.objectRepresentation;return p.yield((new Response(a,{status:200})).json(),7);case 7:G=p.yieldResult;if(!XZ(G,T,!1,!1))return p.return(0);Q=A.next();p.jumpTo(4);break;case 2:return _.Vw(p),p.return(4)}})};
_.R0f=function(){try{btoa("abc")}catch(A){return 0}return 1};
Xbi=function(){var A,Q,b,f,a,T,G,p,P,U,L;return _.B(function(M){switch(M.nextAddress){case 1:_.ML(M,2),A=_.F(cFe()),Q=A.next();case 4:if(Q.done)return M.return(1);f=b=Q.value;a=f.jsonRepresentation;T=f.objectRepresentation;G=btoa(a);p="data:application/json;base64,"+G;P=new Request(p);Object.defineProperty(P,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(P,"method",{get:function(){return"POST"}});
Object.defineProperty(P,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(P,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(P,"body",{get:function(){return new ReadableStream}});
return M.yield(fetch(P),7);case 7:return U=M.yieldResult,M.yield(U.json(),8);case 8:L=M.yieldResult;if(!XZ(L,T,!1,!1))return M.return(0);Q=A.next();M.jumpTo(4);break;case 2:return _.Vw(M),M.return(4)}})};
_.oXi=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var Q=function(a){return _.Tx(a)},b=2,f=0;f<A.length&&(b=_.uJW(_.dC9(A[f],Q)),b!==0);f++);
return b};
_.uJW=function(A){var Q=_.F(A);A=Q.next().value;Q=Q.next().value;try{var b=document.createElement("div");document.body.appendChild(b);var f=getComputedStyle(b).display;document.body.removeChild(b);if(f==="none")return 4;var a=getComputedStyle(Q).display==="none"?0:1;document.body.removeChild(A);return a}catch(T){return 4}};
KxA=function(){var A,Q,b;return _.B(function(f){A=new _.Mj;Q=document.createElement("button");Q.classList.add("ytp-ad-skip-button");Q.style.opacity="0";Q.style.height="0px";Q.style.width="0px";Q.style.padding="0px";Q.style.border="none";b=function(){Q.parentElement&&Q.parentElement.removeChild(Q)};
Q.onclick=function(){A.resolve(0);b()};
document.body.appendChild(Q);setTimeout(function(){b();A.resolve(1)},50);
return f.return(A.promise)})};
Lxf=function(){var A,Q,b,f,a,T,G;return _.B(function(p){A=new _.Mj;Q=document.createElement("ytd-player");try{document.body.prepend(Q)}catch(P){return p.return(4)}b=function(){Q.parentElement&&Q.parentElement.removeChild(Q)};
Q.getElementsByTagName("div").length>0?f=Q.getElementsByTagName("div")[0]:(f=document.createElement("div"),Q.appendChild(f));a=document.createElement("div");f.appendChild(a);T=document.createElement("video");G=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"});T.src=_.r$(_.vh(G));T.ontimeupdate=function(){b();A.resolve(0)};
a.appendChild(T);T.classList.add("html5-main-video");setTimeout(function(){a.classList.add("ad-interrupting")},200);
setTimeout(function(){b();A.resolve(1)},5E3);
return p.return(A.promise)})};
ZV4=function(A,Q){var b,f;return _.B(function(a){switch(a.nextAddress){case 1:b=[],f=0;case 2:if(!(f<3)){a.jumpTo(4);break}return a.yield(fetch(A,{cache:"no-store",method:Q}).then(function(T){b.push(T.status)}).catch(function(){b.push(-1)}),3);
case 3:f++;a.jumpTo(2);break;case 4:return a.return(b)}})};
yFe=function(A){return A.domainLookupStart===0&&A.domainLookupEnd===0&&A.connectStart===0&&A.connectEnd===0};
YEY=function(A,Q,b){b=b===void 0?"GET":b;var f,a,T,G,p,P,U,L,M,l;return _.B(function(J){if(J.nextAddress==1)return J.yield(Promise.all([ZV4(A,b),ZV4(Q,b)]),2);f=J.yieldResult;a=_.F(f);T=a.next().value;G=a.next().value;p=T;P=G;if(Math.min.apply(Math,_.ri(P))!==Math.max.apply(Math,_.ri(P))||Math.min.apply(Math,_.ri(p))!==Math.max.apply(Math,_.ri(p)))return J.return(2);if(Math.min.apply(Math,_.ri(P))===Math.min.apply(Math,_.ri(p)))return J.return(1);L=(U=performance.getEntriesByName(A))==null?void 0:
U[0];l=(M=performance.getEntriesByName(Q))==null?void 0:M[0];return L&&l?yFe(l)?J.return(1):yFe(L)?J.return(0):J.return(1):J.return(2)})};
VGi=function(){var A;return _.B(function(Q){var b=[];var f;var a,T,G;(a=f=(a=BY().objectRepresentation.streamingData)==null?void 0:(T=a.formats)==null?void 0:(G=T[0])==null?void 0:G.url)&&a&&!f.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(a=a.replace("initcwndbps","ctier=L&initcwndbps"),a=a.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),f={testUrl:a,baseUrl:f,method:"GET"}):f=void 0;f&&b.push(f);_.K("ab_net_tp_e")&&b.push({testUrl:_.by.location.origin+"/ad_companion",baseUrl:_.by.location.origin+
"/generate_204",method:"OPTIONS"});if(_.K("ad_net_pb_ab")){var p;b:{f=/api\/stats\/ads/;var P,U,L,M;a=(p=BY().objectRepresentation.adPlacements)==null?void 0:(P=p[0])==null?void 0:(U=P.adPlacementRenderer)==null?void 0:(L=U.renderer)==null?void 0:(M=L.linearAdSequenceRenderer)==null?void 0:M.linearAds;if(a!=null&&a.length&&(p=_.V(a[0],DCi))&&(p=p.pings,p!=null&&p.impressionPings))for(P=[].concat(_.ri(p.impressionPings)),p.progressPings&&(P=[].concat(_.ri(P),_.ri(p.progressPings))),p=_.F(P),P=p.next();!P.done;P=
p.next())if(P=P.value,P.baseUrl&&f.test(P.baseUrl)){p=P.baseUrl.replace("https://www.youtube.com","");break b}p=void 0}p&&b.push({testUrl:_.by.location.origin+p,baseUrl:_.by.location.origin+"/feed/download",method:"GET"})}if(_.K("ad_net_pb_pbp")){var l;b:{p=/api\/stats\/qoe/;if(P=BY().objectRepresentation.playbackTracking){U=[];U.push(P==null?void 0:(l=P.videostatsPlaybackUrl)==null?void 0:l.baseUrl);var J;U.push(P==null?void 0:(J=P.videostatsDelayplayUrl)==null?void 0:J.baseUrl);var n;U.push(P==
null?void 0:(n=P.videostatsWatchtimeUrl)==null?void 0:n.baseUrl);var t;U.push(P==null?void 0:(t=P.ptrackingUrl)==null?void 0:t.baseUrl);var g;U.push(P==null?void 0:(g=P.qoeUrl)==null?void 0:g.baseUrl);var e;U.push(P==null?void 0:(e=P.atrUrl)==null?void 0:e.baseUrl);l=_.F(U);for(J=l.next();!J.done;J=l.next())if((J=J.value)&&p.test(J)){l=J.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}l=void 0}l&&b.push({testUrl:_.by.location.origin+l,baseUrl:_.by.location.origin+
"/feed/download",method:"GET"})}b=b.length!==0?b[Math.floor(Math.random()*b.length)]:void 0;return(A=b)?Q.return(YEY(A.testUrl,A.baseUrl,A.method)):Q.return(4)})};
_.rFF=function(){if(_.by.sax===void 0||_.by.sax===null||typeof _.by.sax!=="function")return 2;try{return _.by.sax()===!0?0:1}catch(A){return 0}};
$C4=function(A){switch(A){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.x1(A,"unknown result type")}};
_.NS6=function(A,Q){var b=Number(_.vG("CATSTAT",0));if(Q.s9g===void 0)return b;Q=Q.s9g;A=$C4(A);return b&~(3<<Q)|A<<Q};
sEe=function(A){var Q,b;if((A=(Q=A.auxiliaryUi)==null?void 0:(b=Q.messageRenderers)==null?void 0:b.bkaEnforcementMessageViewModel)&&A.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return A};
ACA=function(){for(var A=_.F(Object.values(_.mCf)),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.isAsync&&Q.s9g&&_.e6("CATSTAT",_.NS6(2,Q))};
_.JE=function(A,Q){A=_.lB("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",A);(Q===void 0?0:Q)?_.QSy(A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.KT(_.iB(),A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
f_y=function(){if(!baJ){if(Polymer.Base){var A=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{A.apply(this,arguments)}catch(M){_.xQ(M)}};
var Q=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{Q.apply(this,arguments)}catch(M){_.xQ(M)}};
var b=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{b.apply(this,arguments)}catch(M){_.xQ(M)}};
var f=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{f.apply(this,arguments)}catch(M){_.xQ(M)}};
var a=Polymer.Base._listen,T=new WeakMap;Polymer.Base._listen=function(M,l,J){var n=function(){try{J.apply(this,arguments)}catch(t){_.xQ(t)}};
T.set(J,n);a.call(this,M,l,n)};
var G=Polymer.Base._unlisten;Polymer.Base._unlisten=function(M,l,J){G.call(this,M,l,T.get(J))}}if(Polymer.Async){var p=Polymer.Async,P=p._atEndOfMicrotask;
p._atEndOfMicrotask=function(){try{P.apply(p,arguments)}catch(M){_.xQ(M)}}}if(Polymer.RenderStatus){var U=Polymer.RenderStatus,L=U.afterNextRender;
U.afterNextRender=function(M,l,J){L.call(U,M,function(){try{l.apply(this,arguments)}catch(n){_.xQ(n)}},J)}}baJ=!0}};
_.VK=function(A){var Q=A?_.LJ(A):"";if(Q){if(Q.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(Q.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(Q.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(Q.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(Q.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.K("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Q.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";Q=Q.toLowerCase();if(Q==="/")return"home";if(Q==="/channel_memberships")return"channel-memberships-shopfront";if(Q.indexOf("/feed/trending")===0)return"trending";if(Q.indexOf("/feed/explore")===0)return"explore";if(Q.indexOf("/live")===0)return"live";if(Q.indexOf("/results")===0)return"search";if(Q.indexOf("/sports")===0)return"sports";if(Q.indexOf("/fashion")===0||Q.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(Q))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(Q))return _.K("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(Q.indexOf("/channel/")===0||Q.indexOf("/user/")===0||Q.indexOf("/gaming")===0||Q.indexOf("/post/")===0)return"channel";if(a_Y(A))return"show";if(Q==="/playlist"||Q.indexOf("/playlist/")===0||Q==="/view_play_list"||Q.indexOf("/view_play_list/")===0||Q.indexOf("/show/")===0)return"playlist";if(Q==="/feed/history"||Q.indexOf("/feed/history/")===0)return"history";if(Q===
"/new")return"labs";if(Q==="/feed/subscriptions")return"subscriptions";if(Q.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(Q==="/history_controls")return"standalone";if(Q.indexOf("/account")===0||Q==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(Q.indexOf("/paid_memberships")===0||Q.indexOf("/refund")===0||Q.indexOf("/purchases")===0||Q.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(Q.indexOf("/product")===0)return"yts-products";if(Q.indexOf("/premium")===
0||Q.indexOf("/musicpremium")===0)return Q.indexOf("/premium/offers")===0||Q.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(Q==="/cart/checkout"||Q==="/cart")return"ypc-checkout";if(Q.indexOf("/feed/downloads")===0||Q.indexOf("/redeem")===0||Q.indexOf("/reporthistory")===0)return"browse";if(Q.indexOf("/hashtag")===0)return"hashtag-landing-page";if(Q.indexOf("/handle")===0)return"handle";if(Q.indexOf("/source")===0)return"audio-pivot";if(Q.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(Q.indexOf("/playables")===0)return"playables";if(Q.indexOf("/create/live/join")===0)return"open-in-app";if(Q.indexOf("/shorts")===0)return"shorts";if(Q.indexOf("/feed/channels")===0)return"subscriptions-channels";(Q=A?_.LJ(A):"")&&Q.indexOf("/watch")===0&&_.K("web_watch_enable_learning_journey")?(A=_.YQ(A),A=!!A.list&&A.list.indexOf("LJPP")===0):A=!1;if(A)return"learning_journey_watch"}};
_.OY=function(A){var Q,b;(A=(b=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:b.url)&&(Q=_.VK(A));return Q};
a_Y=function(A){var Q=A?_.LJ(A):"";if(!Q)return!1;Q=Q.toLowerCase();return Q.indexOf("/show/")===0||Q.indexOf("/playlist")===0&&(A=_.YQ(A),A.list&&A.list.indexOf("EL")===0)?!0:!1};
Iz=function(A){var Q="unknown",b;var f=((b=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:b.webPageType)||"";f?(b=f.toLowerCase(),b.startsWith("web_page_type_")&&(b=b.slice(14))):b=f;b&&T8i[b.toUpperCase()]?Q=T8i[b.toUpperCase()]:_.V(A,_.nT)||_.V(A,d6W)?Q="browse":_.V(A,_.kr)?Q="search":_.V(A,_.sv)&&(Q="watch");Q==="watch"&&_.OY(A||null)==="learning_journey_watch"&&(Q="learning_journey_watch");Q==="unknown"&&_.Wv(Error("Kf`"+JSON.stringify({clickTrackingParams:A==null?void 0:A.clickTrackingParams,
commandMetadata:A==null?void 0:A.commandMetadata,allEndpointKeys:Object.keys(A||[])})));return Q};
_.HY=function(A){if(!_.FZU||A)_.FZU=_.J3();return _.FZU};
_.GTJ=function(A){return!!_.V(A,_.sv)||!!_.V(A,_.CT)&&_.K("kevlar_enable_shorts_prefetch")};
_.B8f=function(A,Q){A=_.V(A,_.sv)||_.V(A,_.CT);return"v"+A.videoId+(A.playlistId?"-pl"+A.playlistId:"")+(Q?"-an1":"")+(A.params?"-pr"+A.params:"")};
qj=function(A){return function(){return new A}};
oz=function(A){var Q=_.fJ();return function(){return Q.resolve(A)}};
PVb=function(A){var Q=_.GP("web_pbj_log_warning_rate",0);Q=Q>0&&Math.random()<Q;if(!_.V(A,_.CT))return Q&&_.Wv(Error("Nf")),!1;var b;return _.K("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.V(A,_.CT))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:pF4(A)?!0:(Q&&_.Wv(Error("Of")),!1)};
pF4=function(A){var Q=(_.V(A,_.sv)||_.V(A,_.CT)).videoId;if(!Q||!XFF.test(Q))return!1;var b;return(A=(b=_.V(A.commandMetadata,_.KD))==null?void 0:b.url)&&(A.includes(Q)||A.startsWith("/clip"))?!0:!1};
_.U69=function(){var A=_.nD();return A.getFlag(192)?A.getFlag(190):!(_.K("web_watch_cinematics_disabled_by_default")||_.K("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&SP6())};
_.tE=function(A,Q,b){var f={};f.currentUrl=Q;f.vis=A.vis!==void 0?A.vis:0;f.splay=!1;Q=_.nD();f.autoCaptionsDefaultOn=Q.getFlag(66);Q.getFlag(141)?Q.getFlag(140)?f.autonavState="STATE_OFF":f.autonavState="STATE_ON":f.autonavState="STATE_NONE";f.html5Preference="HTML5_PREF_WANTS";isNaN(_.vG("STS"))||(f.signatureTimestamp=_.vG("STS"));A.autonav&&(f.autoplay=!0,f.autonav=!0);A.mutedAutoplay&&(f.autoplay=!0,f.mutedAutoplay=!0);A.inlinePlayback&&(f.autoplay=!0,f.autonav=!1,f.isInlineUnmutedPlayback=!!A.inlineUnmuted);
f.referer=b;f.lactMilliseconds=A.lact!==void 0?A.lact.toString():"-1";_.K("enable_unknown_lact_fix_on_html5")&&f.lactMilliseconds==="-1"&&_.Wv(new _.IO("Unknown LACT is set in playbackContext.",{"lact in tempData":A.lact||"undefined",autonav:A.autonav||"undefined"}));A={};Q.getFlag(194)&&(A.hasShownAmbientMode=!0);Q.getFlag(192)&&(A.hasToggledOffAmbientMode=!0);_.U69()&&(A.watchAmbientModeEnabled=!0);f.watchAmbientModeContext=A;return f};
LZX=function(A){var Q={},b=A.pbis||0;b&&(Q.playbackBeginsInSeconds=b);A.prefetch_reason&&A.prefetch_reason==="hc_pbis"&&(Q.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return Q};
_.jL=function(A){A=A===void 0?!1:A;var Q=_.nD(),b="USER_INTERFACE_THEME_LIGHT";Q.getFlag(165)?b="USER_INTERFACE_THEME_DARK":Q.getFlag(174)?b="USER_INTERFACE_THEME_LIGHT":_.r6()&&(b="USER_INTERFACE_THEME_DARK");return A?b:M4J()||b};
_.l_e=function(){return!_.K("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.r6=function(){return _.l_e()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Rz=function(){var A=_.nD();return _.l_e()&&!A.getFlag(165)&&!A.getFlag(174)};
M4J=function(){var A=A===void 0?window.location.href:A;if(_.K("kevlar_disable_theme_param"))return null;var Q=_.LJ(A);if(_.KZb(Q))return"USER_INTERFACE_THEME_DARK";try{var b=_.YQ(A).theme;return iaW.get(b)||null}catch(f){}return null};
_.KZb=function(A){return _.K("enable_dark_theme_only_on_shorts")?!(A==null||!A.startsWith("/shorts/")):!1};
_.OaF=function(A,Q,b,f,a){Q=Q===void 0?!1:Q;b=b===void 0?!1:b;var T=_.vG("INNERTUBE_CONTEXT");if(!T)return _.en(Error("Rf")),{};T=(0,_.j2.unsafeClone)(T);_.K("web_no_tracking_params_in_shell_killswitch")||delete T.clickTracking;T.client||(T.client={});var G=T.client;G.clientName==="MWEB"&&G.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(G.clientFormFactor=_.vG("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");G.screenWidthPoints=window.innerWidth;G.screenHeightPoints=window.innerHeight;G.screenPixelDensity=
Math.round(window.devicePixelRatio||1);G.screenDensityFloat=window.devicePixelRatio||1;G.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());G.userInterfaceTheme=_.jL();if(!Q){var p=_.pOf();p&&(G.connectionType=p);_.K("web_log_effective_connection_type")&&(p=XOX())&&(T.client.effectiveConnectionType=p)}var P;if(_.K("web_log_memory_total_kbytes")&&((P=_.by.navigator)==null?0:P.deviceMemory)){var U;P=(U=_.by.navigator)==null?void 0:U.deviceMemory;T.client.memoryTotalKbytes=""+P*1E6}Q&&f&&!_.K("web_it_context_set_original_url_ks")&&
(G.originalUrl=JCi(_.by.location.href,f).toString());_.K("web_gcf_hashes_innertube")&&(p=OTX())&&(U=p.coldConfigData,P=p.coldHashData,p=p.hotHashData,T.client.configInfo=T.client.configInfo||{},U&&(T.client.configInfo.coldConfigData=U),P&&(T.client.configInfo.coldHashData=P),p&&(T.client.configInfo.hotHashData=p));U=_.YQ(_.by.location.href);!_.K("web_populate_internal_geo_killswitch")&&U.internalcountrycode&&(G.internalGeo=U.internalcountrycode);!_.K("web_populate_client_screen_killswitch")&&a&&(G.clientScreen=
a);G.clientName==="MWEB"||G.clientName==="WEB"?(G.mainAppWebInfo||(G.mainAppWebInfo={}),G.mainAppWebInfo.graftUrl=f||_.by.location.href,_.K("kevlar_woffle")&&_.g6.instance&&(f=_.g6.instance,G.mainAppWebInfo.pwaInstallabilityStatus=!f.appInstalledEventFired&&f.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),G.mainAppWebInfo.webDisplayMode=Ujb(),G.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):G.clientName==="TVHTML5"&&
(!_.K("web_lr_app_quality_killswitch")&&(f=_.vG("LIVING_ROOM_APP_QUALITY"))&&(G.tvAppInfo=Object.assign(G.tvAppInfo||{},{appQuality:f})),f=_.vG("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(G.tvAppInfo=Object.assign(G.tvAppInfo||{},{certificationScope:f}));!_.K("web_populate_time_zone_itc_killswitch")&&(f=G7A())&&(G.timeZone=f);(f=qli())?G.experimentsToken=f:delete G.experimentsToken;G=o_i();f=_.V4f();f=(0,_.j2.getValues)(f.tokenJars);T.request=Object.assign({},T.request,{internalExperimentFlags:G,consistencyTokenJars:f});
!_.K("web_prequest_context_killswitch")&&(G=_.vG("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(T.request.externalPrequestContext=G);f=_.nD();G=f.getFlag(58);f=f.get("gsml","");T.user=Object.assign({},T.user);G&&(T.user.enableSafetyMode=G);f&&(T.user.lockedSafetyMode=!0);_.K("warm_op_csn_cleanup")?b&&(Q=_.WR())&&(T.clientScreenNonce=Q):!Q&&(Q=_.WR())&&(T.clientScreenNonce=Q);A&&(T.clickTracking={clickTrackingParams:A});if(A=_.zV("yt.mdx.remote.remoteClient_"))T.remoteClient=A;_.eL.getInstance().setLocationOnInnerTubeContext(T);
try{var L=E_A(),M=L.bid;delete L.bid;T.adSignalsInfo={params:[],bid:M};for(var l=_.F(Object.entries(L)),J=l.next();!J.done;J=l.next()){var n=_.F(J.value),t=n.next().value,g=n.next().value;L=t;M=g;A=void 0;(A=T.adSignalsInfo.params)==null||A.push({key:L,value:""+M})}var e,x;if(((e=T.client)==null?void 0:e.clientName)==="TVHTML5"||((x=T.client)==null?void 0:x.clientName)==="TVHTML5_UNPLUGGED"){var D=_.vG("INNERTUBE_CONTEXT");D.adSignalsInfo&&(T.adSignalsInfo.advertisingId=D.adSignalsInfo.advertisingId,
T.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",T.adSignalsInfo.limitAdTracking=D.adSignalsInfo.limitAdTracking)}}catch(w){_.en(w)}return T};
_.nJ4=function(A){var Q=new hE(_.vG("ONE_PICK_URL",""));Q.urlParamMap_.set("hostId",A);(A=_.vG("GAPI_LOCALE"))&&Q.urlParamMap_.set("hl",A);(A=_.vG("SESSION_INDEX"))&&Q.urlParamMap_.set("authuser",A);(A=_.vG("DELEGATED_SESSION_ID"))&&Q.urlParamMap_.set("groupId",A);return Q};
I_b=function(){var A=_.fJ(),Q=A.resolve(_.WY);A=A.resolve(_.vY);return new kTX(Q,A)};
CVe=function(A){if(window.IntersectionObserver)return new Hay(A,400);throw new TypeError("Yf");};
oJA=function(){var A=Hammer.TouchAction,Q=A.prototype.preventDefaults;A.prototype.preventDefaults=function(b){var f=this.actions.indexOf("pan-down")>-1;if(!f)return Q.call(this,b);if(!qPf){var a=b.srcEvent;b=b.direction;var T;if((T=this.manager)==null?0:T.session.prevented)a.preventDefault();else if(f&&b&Hammer.DIRECTION_DOWN)return this.preventSrc(a)}}};
t46=function(A){if(!A||A.size===0)return Hammer.DIRECTION_ALL;if(A.size===2){if(A.has("up")&&A.has("down"))return Hammer.DIRECTION_VERTICAL;if(A.has("right")&&A.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(A.size===1){if(A.has("up"))return Hammer.DIRECTION_UP;if(A.has("down"))return Hammer.DIRECTION_DOWN;if(A.has("right"))return Hammer.DIRECTION_RIGHT;if(A.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.jSe=function(){return rCJ?Promise.resolve(rCJ):new Promise(function(A,Q){var b=self.indexedDB.open("swpushnotificationsdb");b.onerror=Q;b.onsuccess=function(){var f=b.result;if(f.objectStoreNames.contains("swpushnotificationsstore"))rCJ=f,A(rCJ);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.jSe()};
b.onupgradeneeded=RRW})};
RRW=function(A){A=A.target.result;A.objectStoreNames.contains("swpushnotificationsstore")&&A.deleteObjectStore("swpushnotificationsstore");A.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
eRe=function(A){var Q=gJU(),b;return _.B(function(f){switch(f.nextAddress){case 1:return _.ML(f,2),f.yield(A.match(Q,{cacheName:"yt-appshell-assets"}),4);case 4:b=f.yieldResult;_.Z1(f,3);break;case 2:_.Vw(f);case 3:return f.return(b)}})};
gJU=function(){var A=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?hRY.registration.scope:WZ6;A.endsWith("/")&&(A=A.slice(0,-1));return A+"/app_shell_home"};
vJ9=function(A){A.map(function(Q){return Q.source}).join("|")};
_.EJ6=function(A){return _.B(function(Q){return Q.return(eRe(A))})};
x6b=function(){var A=window.caches,Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(_.EJ6(A),2);Q=b.yieldResult;return b.return(!!Q)})};
YP6=function(){_.B(function(A){if(A.nextAddress==1){if(cCJ)return A.jumpTo(0);cCJ=!0;if(_.K("enable_system_health_primes_monitoring"))return _.St(zRC,3E4),wFe(),A.return();if(!(Math.random()<_.GP("web_system_health_fraction")))return A.jumpTo(0);uNX={heightPixels:screen.height,widthPixels:screen.width};EY&&!isNaN(EY.jsHeapSizeLimit)&&(uNX.memoryTotalKbytes=String(Math.round(EY.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(uNX.devicePixelRatio=window.devicePixelRatio);return A.yield(ZaW(),4)}_.St(zRC,
3E4);return A.yield(yCi(),0)})};
ZaW=function(){return _.B(function(A){if(A.nextAddress==1)return xr.intersectionObserverPresent="IntersectionObserver"in window,xr.serviceWorkerPresent="serviceWorker"in navigator,xr.webSharePresent="share"in navigator,xr.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,xr.cacheStoragePresent="caches"in window,xr.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,xr.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
xr.webkitTemporaryStoragePresent="webkitTemporaryStorage"in cY&&cY.webkitTemporaryStorage&&"queryUsageAndQuota"in cY.webkitTemporaryStorage,xr.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",A.yield(cHY(),2);xr.indexedDbPresent=A.yieldResult;xr.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;xr.broadcastChannelPresent="BroadcastChannel"in window;xr.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(xr.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,xr.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Oi(A)})};
zRC=function(){var A=9E4+Math.random()*2E3;_.TD()>A||(_.K("enable_system_health_primes_monitoring")?wFe():yCi())};
yCi=function(){var A;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(D6y(),2);A=Q.yieldResult;_.R4("systemHealthCaptured",A);_.Oi(Q)})};
wFe=function(){var A={metric:{}},Q=$6i();Q.networkEvents.length&&(A.metric.networkEvents=N8e(Q));_.R4("systemHealthCaptured",A)};
D6y=function(){var A,Q,b,f,a,T,G,p,P,U;return _.B(function(L){switch(L.nextAddress){case 1:A={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)};Q=window.screen;_.K("enable_is_extended_monitoring")&&Q&&"isExtended"in Q&&(A.isExtended=!!Q.isExtended);b={metric:{staticContext:uNX,dynamicContext:A,webMetric:sSb,webApiSupport:xr}};
if(f=_.WR())b.csn=f;EY&&(b.metric.webMetric.currentHeapKbytes=Math.round(EY.usedJSHeapSize/1E3));window.matchMedia&&(b.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,b.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,b.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in cY&&typeof cY.getBattery==="function")){L.jumpTo(2);break}return L.yield(cY.getBattery(),3);case 3:if(a=
L.yieldResult)b.metric.dynamicContext.chargingStatus=a.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(b.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(xr.storageEstimatePresent)return L.yield(navigator.storage.estimate(),8);if(!xr.webkitTemporaryStoragePresent){L.jumpTo(5);break}return L.yield(m6b(),7);case 7:T=L.yieldResult;L.jumpTo(5);break;case 8:T=L.yieldResult;case 5:return b.metric.dynamicContext.deviceStorageQuotaMbytes=((G=T)==null?0:G.quota)?String(Math.round(T.quota/
1048576/10)*10):"-1",b.metric.dynamicContext.deviceStorageUsageMbytes=((p=T)==null?0:p.usage)?String(Math.round(T.usage/1048576/10)*10):"-1",P=b.metric.dynamicContext,L.yield(x6b(),9);case 9:return P.hasAppShell=L.yieldResult,U=$6i(),U.networkEvents.length&&(b.metric.networkEvents=N8e(U)),L.return(b)}})};
m6b=function(){return new Promise(function(A){var Q;xr.webkitTemporaryStoragePresent&&(Q=cY.webkitTemporaryStorage)!=null&&Q.queryUsageAndQuota?cY.webkitTemporaryStorage.queryUsageAndQuota(function(b,f){A({usage:b,quota:f})}):A(void 0)})};
_.zx=function(A){A&=16777215;A=[(A&16711680)>>16,(A&65280)>>8,A&255];return ASy(A[0],A[1],A[2])};
_.w6=function(A){A=[(A&16711680)>>>16,(A&65280)>>>8,A&255,(A&4278190080)>>>24];var Q=_.QZi(A,function(b){return b==(b&255)});
A[3]=(A[3]/255).toFixed(3);if(!Q)throw Error("Zf`"+A.join(","));return"rgba("+A.join(",")+")"};
_.b_9=function(A){return[(A&16711680)>>>16,(A&65280)>>>8,A&255]};
_.fxi=function(A){A=A.map(function(Q){Q/=255;return Q<=.03928?Q/12.92:Math.pow((Q+.05)/1.05,2.4)});
return A[0]*.2126+A[1]*.7152+A[2]*.0722};
uB=function(A,Q){A=_.b_9(A);return"rgba("+A[0]+", "+A[1]+", "+A[2]+", "+Q+")"};
_.axY=function(){try{return!!self.localStorage}catch(A){return!1}};
G$Y=function(){if(Twf())_.Wv(Error("$f"));else{var A=document.createElement("iframe");A.style.display="none";var Q=Q===void 0?window.location.href:Q;var b=_.Rx(_.vG("PERSIST_IDENTITY_IFRAME_URL"));Q=b?b:(new URL(Q)).host.indexOf("studio")===0?_.GH(d0X,"persist_identity"):_.GH(Fti,"persist_identity");_.TiC(A,1,Q);A.id="persist_identity";var f;(f=document.body)==null||f.appendChild(A)}};
Twf=function(){var A=Bw9;A||(A=document.querySelector("#persist_identity"));return A};
pmi=function(){var A=!1;try{A=!!window.sessionStorage.getItem("session_logininfo")}catch(Q){A=!0}return(_.vG("INNERTUBE_CLIENT_NAME")==="WEB"||_.vG("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&A};
PtJ=function(A,Q){if(!pmi())return!1;Q||(Q=_.vG("LOGIN_INFO"));return Q?(A.session_logininfo=Q,!0):!1};
S9X=function(A,Q){A=A===void 0?!1:A;if((Q===void 0||!Q)&&XmF!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Ep("LOG_STICKINESS",!1)){Q=_.WR();var b=_.hx(),f={identityStickinessData:{initialState:XmF}};Q&&b&&_.sl(Q,b,f)}if(Q=Twf())if(b=Q.src?(new URL(Q.src)).origin:"*",A){var a;(a=Q.contentWindow)==null||a.postMessage({action:"clear"},b)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(A=window.sessionStorage.getItem("session_logininfo"))){var T;(T=Q.contentWindow)==null||T.postMessage({loginInfo:A},b)}};
_.Zk=function(A){A=A===void 0?!0:A;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.e6("LOGIN_INFO",""),A&&window.sessionStorage.setItem("from_switch_account","1"),S9X(!0,A)}catch(Q){}};
U0e=function(A){A&&(A.startsWith("https://accounts.google.com/AddSession")?_.Zk():A.startsWith("https://accounts.google.com/ServiceLogin")?_.Zk():A.startsWith("https://myaccount.google.com")&&_.co(A).getPath().endsWith("/youtubeoptions")&&_.Zk())};
yK=function(A,Q){U0e(A);if(_.Ep("LOGGED_IN",!0)&&pmi()){var b=Tbf(A);b==null&&(b={});PtJ(b,Q)&&_.bi(A,b)}};
Ltb=function(){function A(Q){for(Q=Q.target;Q&&Q.nodeName!=="A";)if(Q=Q.parentNode,!(Q&&Q instanceof HTMLElement))return;if(Q&&!Q.hasAttribute("download")&&Q.getAttribute("rel")!=="external"&&Q.href)return Q.href}
document.addEventListener("mousedown",function(Q){Q.button!==0&&(Q=A(Q))&&yK(Q)});
document.addEventListener("click",function(Q){(Q=A(Q))&&yK(Q)})};
Kty=function(){var A=new Myy;try{if(_.Ep("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(p){A.increment(5,!1);return}if(_.vG("LOGIN_INFO")){var Q=lxY?lxY:window.location;_.vG("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&G$Y();var b=Tbf(Q.href);b==null&&(b={});var f=b.session_logininfo,a=Number(window.sessionStorage.getItem("stickiness_reload")),T=f===_.vG("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
a>=2||T)a>=2?A.increment(2,T):T?A.increment(7,T):window.sessionStorage.getItem("session_logininfo")||(A.increment(3,T),XmF="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.vG("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.vG("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))A.increment(4,T),window.sessionStorage.removeItem("stickiness_reload");
else if(a<2){window.sessionStorage.setItem("stickiness_reload",String(a+1));var G=Q.href;G=_.fD(G,"sttick");yK(G,window.sessionStorage.getItem("session_logininfo"));G=_.DR(G,{sttick:a});A.increment(a,T);_.PMY(Q,G)}}else A.increment(6,!1)}else _.Zk(!1)}catch(p){}};
_.Yr=function(A,Q,b,f,a){Q=Q===void 0?{}:Q;b=b===void 0?"":b;f=f===void 0?window:f;A=_.$Q(A,Q);yK(A);b=_.hs(A+b,a);_.PMY(f.location,b)};
_.i_X=function(A,Q,b,f,a){a=a===void 0?!1:a;b&&_.bi(A,b);b=_.hs(A);var T=_.r$(b);A!=T&&_.wN(Error("ag`"+A));A=T;Q=Q||Zy(A).toString(36);try{if(a)return a=A,a=l3C(a),yK(a),_.Y8(window,a,Q,"attributionsrc")}catch(G){_.xQ(G)}yK(A);return _.Y8(window,b,Q,f)};
JSW=function(A){if(A.urlEndpoint){if(A=_.YQ(A.urlEndpoint.url),A.adurl)return Qb(A.adurl)}else if(A.watchEndpoint)return"//www.youtube.com/watch?v="+A.watchEndpoint.videoId;return null};
VyA=function(A){if(!A||!A.reportingPings)return null;var Q={};A.reportingPings.forEach(function(b){b.pingType in Q?Q[b.pingType].push(b.url):Q[b.pingType]=[b.url]});
return{adpings:UBX(Q)}};
_.Dk=function(){return{isShellLoad:_.Ep("IS_SHELL_LOAD",!1)}};
nKf=function(){navigator.serviceWorker.getRegistrations().then(function(A){A.forEach(O_W)})};
O_W=function(A){A&&_.k$X(IxC,A.scope)};
_.k$X=function(A,Q){Q={scope:Q||_.Br("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.IT(A),Q)};
$r=function(A,Q,b,f){if(Q&&Q.serializedYpcCujLoggingParams){if(b){var a={};a.transactionErrorType=b;f&&(a.errorMessage=f);Q.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:a}}}b={};b.ypcCujContext=Q;A=_.lB("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",A,b);_.KT(_.iB(),A,"FLOW_TYPE_YPC_ACQUISITION")}};
_.H_A=function(A,Q,b,f){var a={};a.serializedTransactionFlowLoggingParams=Q;b&&(a.errorType=b);f&&(a.errorMessage=f);_.R4(A,a);_.go()};
_.CtY=function(A){A&&_.H_A("transactionFlowStarted",A)};
_.q9U=function(A){A&&_.H_A("transactionFlowCancelled",A)};
_.Nj=function(A,Q,b){Q&&_.H_A("transactionFlowFailed",Q,A,b)};
oKf=function(A){var Q=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");Q&&(Q.inert=A)};
_.sY=function(){this.megabloxUrl_=null};
_.mW=function(A){try{var Q=tyC==null?void 0:tyC.composedPath(A)}catch(b){Q=A.composedPath?A.composedPath():[]}return Q&&Q.length>0?Q:A.composedPath?A.composedPath():[]};
_.Au=function(A){return _.mW(A)[0]};
_.Q1=function(A){if(!(A instanceof Element))return null;A=A.classList?Array.from(A.classList):void 0;if(!A)return null;var Q=A.indexOf("style-scope");return Q>-1&&Q+1<A.length?A[Q+1]:null};
bN=function(A){if(!(A instanceof HTMLElement))return null;var Q=A&&(A.$$||A.polymerController)?A.tagName.toLowerCase():null;return Q?Q:_.Q1(A)};
rSi=function(A,Q){return A.replace(/[^a-z]*[^\s]+/g,function(b){return b+".style-scope."+Q})};
jZY=function(A,Q){return Q?A.split(",").map(function(b){return rSi(b.trim(),Q)}).join(", "):A};
_.fc=function(A){var Q,b,f,a;return(a=(f=(b=(Q=A.root)!=null?Q:A.shadowRoot)!=null?b:A.__shady_native_shadowRoot)!=null?f:A.__shady_shadowRoot)!=null?a:A};
a_=function(A){return A instanceof ShadowRoot?ShadowRoot:A instanceof DocumentFragment?DocumentFragment:A instanceof Document?Document:HTMLElement};
RpA=function(A){var Q,b,f;return(f=(b=(Q=A.parentElement)!=null?Q:A.__shady_native_parentElement)!=null?b:A.__shady_parentElement)!=null?f:null};
gKF=function(A){var Q,b,f;return(f=(b=(Q=A.parentNode)!=null?Q:A.__shady_native_parentNode)!=null?b:A.__shady_parentNode)!=null?f:null};
epe=function(A){var Q,b,f;return(f=(b=(Q=A.__shady_parentNode)!=null?Q:A.__shady_native_parentNode)!=null?b:A.parentNode)!=null?f:null};
hpJ=function(A){var Q,b;return(b=(Q=gKF(A))!=null?Q:A.host)!=null?b:null};
WtW=function(A){var Q,b,f;return(f=(b=(Q=A.nextSibling)!=null?Q:A.__shady_native_nextSibling)!=null?b:A.__shady_nextSibling)!=null?f:null};
vKX=function(A){var Q,b,f;return(f=(b=(Q=A.previousSibling)!=null?Q:A.__shady_native_previousSibling)!=null?b:A.__shady_previousSibling)!=null?f:null};
EK9=function(A){var Q,b,f;return(f=(b=(Q=A.nextElementSibling)!=null?Q:A.__shady_native_nextElementSibling)!=null?b:A.__shady_nextElementSibling)!=null?f:null};
x09=function(A){var Q,b,f;return(f=(b=(Q=A.previousElementSibling)!=null?Q:A.__shady_native_previousElementSibling)!=null?b:A.__shady_previousElementSibling)!=null?f:null};
cSC=function(A){var Q,b,f;return new Set([].concat(_.ri((Q=A.children)!=null?Q:[]),_.ri((b=A.__shady_native_children)!=null?b:[]),_.ri((f=A.__shady_children)!=null?f:[])))};
zp4=function(A){var Q,b,f;return new Set([].concat(_.ri((Q=A.childNodes)!=null?Q:[]),_.ri((b=A.__shady_native_childNodes)!=null?b:[]),_.ri((f=A.__shady_childNodes)!=null?f:[])))};
wmW=function(A){if(!A)return null;var Q=_.Q1(A);if(!Q){var b;return(b=Node.prototype.getRootNode)==null?void 0:b.call(A)}Q=Q.toUpperCase();for(A=RpA(A);A&&A.tagName!==Q;)A=RpA(A);return A?_.fc(A):null};
uRW=function(A){for(;A&&!(A instanceof HTMLElement);)A=hpJ(A);return A};
Z_9=function(A){var Q=uRW(A);return A===Q?_.Q1(A):Q?bN(Q):null};
ySi=function(A){return(A=uRW(A))?bN(A):null};
Y9J=function(A){if(A instanceof Comment)return!1;if(A instanceof Text){var Q,b;if(((b=(Q=A.textContent)==null?void 0:Q.trim())!=null?b:"")==="")return!1}return!0};
TU=function(A,Q,b){var f=Q(A);for(b=b===void 0?ySi(A):b;f&&(Z_9(f)!==b||!Y9J(f));)A=f,f=Q(A);return f};
D0W=function(A,Q,b){if(!Q)return null;A=ySi(A);return Z_9(Q)===A&&Y9J(Q)?Q:TU(Q,b,A)};
$0X=function(A){return TU(A,epe,_.Q1(A))};
NwY=function(A){return TU(A,EK9)};
sZy=function(A){return TU(A,WtW)};
m06=function(A){return TU(A,x09)};
AZe=function(A){return TU(A,vKX)};
QuY=function(A){return D0W(A,A.firstChild||A.__shady_native_firstChild||A.__shady_firstChild||null,WtW)};
b8X=function(A){var Q,b,f;var a=(f=(b=(Q=A.firstElementChild)!=null?Q:A.__shady_native_firstElementChild)!=null?b:A.__shady_firstElementChild)!=null?f:null;return D0W(A,a,EK9)};
fnY=function(A){var Q,b,f;var a=(f=(b=(Q=A.lastChild)!=null?Q:A.__shady_native_lastChild)!=null?b:A.__shady_lastChild)!=null?f:null;return D0W(A,a,vKX)};
anf=function(A){var Q,b,f;var a=(f=(b=(Q=A.lastElementChild)!=null?Q:A.__shady_native_lastElementChild)!=null?b:A.__shady_lastElementChild)!=null?f:null;return D0W(A,a,x09)};
Tqe=function(A){var Q=ySi(A);return Array.from(zp4(A)).filter(function(b){return Z_9(b)===Q})};
doX=function(A){var Q=bN(A);return Array.from(cSC(A)).filter(function(b){return _.Q1(b)===Q})};
_.dn=function(A,Q,b){if(A instanceof HTMLElement&&_.Q1(A)===b){var f=Array.from(A.classList).indexOf("style-scope");if(f===-1)A.classList.add("style-scope"),A.classList.add(Q);else if(!(f+1>=A.classList.length)){f=A.classList[f+1];var a,T;A==null||(a=A.classList)==null||(T=a.replace)==null||T.call(a,f,Q)}}if(A instanceof HTMLElement||A instanceof DocumentFragment)for(a=_.F(cSC(A)),T=a.next();!T.done;T=a.next())_.dn(T.value,Q,b);return A};
Fs=function(A,Q){if(A instanceof HTMLElement&&_.Q1(A)===Q){var b=Array.from(A.classList).indexOf("style-scope");b===-1||b+1>=A.classList.length||A.classList.remove("style-scope",A.classList[b+1])}if(A instanceof HTMLElement||A instanceof DocumentFragment){b=_.F(A.children);for(var f=b.next();!f.done;f=b.next())Fs(f.value,Q)}return A};
_.FGy=function(A,Q){return a_(A).prototype.appendChild.call(A,Q)};
GBX=function(A,Q){if(A===Q)return!0;A=zp4(A);return Array.from(A).some(function(b){return GBX(b,Q)})};
_.Bj=function(A,Q){if(A instanceof GU)return A;(Q==null?0:Q.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(A,"ownerDocument")&&Object.defineProperty(A,"ownerDocument",{get:function(){return window.document}});
return new GU(A)};
pKW=function(){var A=GU.prototype,Q=[].concat(_.ri(BqW?[]:["getRootNode"]),["setAttribute","removeAttribute"]);Q=_.F(Q);for(var b=Q.next(),f={};!b.done;f={method$jscomp$51:void 0},b=Q.next())f.method$jscomp$51=b.value,A[f.method$jscomp$51]=function(a){return function(){return this.host[a.method$jscomp$51].apply(this.host,arguments)}}(f)};
XKC=function(){var A=GU.prototype,Q=[].concat(_.ri(BqW?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.ri(PHY?[]:["querySelector","querySelectorAll"]));Q=_.F(Q);for(var b=Q.next(),f={};!b.done;f={method$jscomp$52:void 0},b=Q.next())f.method$jscomp$52=b.value,A[f.method$jscomp$52]=function(a){return function(){return this.root[a.method$jscomp$52].apply(this.root,arguments)}}(f)};
LGU=function(){var A=GU.prototype,Q=[].concat(_.ri(SMJ?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.ri(Uof?[]:["parentNode"]));Q=_.F(Q);for(var b=Q.next(),f={};!b.done;f={prop$jscomp$62:void 0},b=Q.next())f.prop$jscomp$62=b.value,Object.defineProperty(A,f.prop$jscomp$62,{get:function(a){return function(){return this.host[a.prop$jscomp$62]}}(f),
configurable:!0})};
KGF=function(){var A=GU.prototype,Q=["activeElement"].concat(_.ri(SMJ?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.ri(MvJ?[]:["children"]),_.ri(lnF?[]:["lastChild"]));Q=_.F(Q);for(var b=Q.next(),f={};!b.done;f={prop$jscomp$63:void 0},b=Q.next())f.prop$jscomp$63=b.value,Object.defineProperty(A,f.prop$jscomp$63,{get:function(a){return function(){return this.root[a.prop$jscomp$63]}}(f),
configurable:!0})};
i8A=function(){for(var A=GU.prototype,Q=_.F(["innerHTML","textContent"]),b=Q.next(),f={};!b.done;f={prop$jscomp$64:void 0},b=Q.next())f.prop$jscomp$64=b.value,Object.defineProperty(A,f.prop$jscomp$64,{get:function(a){return function(){return this.root[a.prop$jscomp$64]}}(f),
set:function(a){return function(T){this.root[a.prop$jscomp$64]=T}}(f),
configurable:!0})};
JZW=function(A){var Q=GU.prototype;A=_.F(Object.entries(A));for(var b=A.next(),f={};!b.done;f={fn$jscomp$388:void 0},b=A.next()){var a=_.F(b.value);b=a.next().value;a=a.next().value;f.fn$jscomp$388=a;Q[b]=function(T){return function(){return T.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.ri(arguments)))}}(f)}};
O86=function(){for(var A=GU.prototype,Q=_.F(Object.entries(VvF)),b=Q.next(),f={};!b.done;f={fn$jscomp$389:void 0},b=Q.next()){var a=_.F(b.value);b=a.next().value;a=a.next().value;f.fn$jscomp$389=a;Object.defineProperty(A,b,{get:function(T){return function(){return T.fn$jscomp$389.apply(null,[this.host.node||this.host].concat(_.ri(arguments)))}}(f),
configurable:!0})}};
_.pc=function(A){return A instanceof nuU||A instanceof Document?A:new nuU(A)};
kBi=function(){for(var A=nuU.prototype,Q=_.F("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),b=Q.next(),f={};!b.done;f={method$jscomp$53:void 0},b=Q.next())f.method$jscomp$53=b.value,A[f.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(_.ri(arguments)))}}(f)};
In9=function(){for(var A=nuU.prototype,Q=_.F("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),b=Q.next(),f={};!b.done;f={prop$jscomp$65:void 0},b=Q.next())f.prop$jscomp$65=b.value,Object.defineProperty(A,f.prop$jscomp$65,{get:function(a){return function(){var T;return(T=this.node["__shady_native_"+a.prop$jscomp$65])!=null?T:this.node[a.prop$jscomp$65]}}(f),
configurable:!0})};
_.Pj=function(A,Q,b){b===void 0&&(b=!A.classList.contains(Q));b?A.classList.add(Q):A.classList.remove(Q)};
_.Xs=function(A,Q,b){b===void 0&&(b=!A.hasAttribute(Q));if(Q==="class")throw Error("eg");b?_.pc(A).setAttribute(Q,""):_.pc(A).removeAttribute(Q)};
H8W=function(A){return(A.localName!=="slot"?[]:(0,_.SK)(A).assignedNodes({flatten:!0})).filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
_.CHi=function(A){return(A=_.Bj(A).querySelector("slot"))&&A.localName==="slot"?H8W(A):[]};
_.Uc=function(A,Q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(A,Q)};
Lc=function(A,Q){var b=Q.bind(A);return function(f){b(f,f.detail)}};
_.lN=function(A,Q){var b=qM6.get(A);b||(b=new WeakMap,qM6.set(A,b));if(b.has(Q))return b.get(Q);if(_.K("web_fi_listen_disable_bound_fn_helper")){var f=Q.bind(A);A=function(a){f(a,a==null?void 0:a.detail)}}else A=Lc(A,Q);
b.set(Q,A);return A};
rZi=function(A,Q){ouC(A);A.created[tv4].push(Q)};
ouC=function(A){if(!A.created||!A.created[tv4]){var Q=A.created,b=Q?[Q]:[];A.created=function(){for(var f=_.F(b),a=f.next();!a.done;a=f.next())a.value.apply(this)};
A.created[tv4]=b}};
juJ=function(A){return function(){var Q=_.E$.apply(0,arguments);return function(b,f,a){A.apply(null,_.ri(Q))(b,f,a)}}};
RF6=function(){return function(){var A=_.E$.apply(0,arguments);return function(Q,b,f){OwW.apply(null,_.ri(A))(Q,b,f)}}};
_.I=function(A){return RF6()(A)};
_.H=function(){return juJ(HwX).apply(null,_.ri(_.E$.apply(0,arguments)))};
_.Kc=function(A){return _.K("pbcm_fi_listen_decorators")?gu9(A):juJ(kNY)(A)};
gu9=function(A){return function(Q,b){rZi(Q,function(){var f=this[b],a=_.K("web_fi_listen_disable_bound_fn_helper")?function(T){f(T,T.detail)}.bind(this):Lc(this,f);
eFA.has(A)?ec(this.hostElement,A,a):this.hostElement.addEventListener(A,a)})}};
_.iN=function(){return juJ(IWU).apply(null,_.ri(_.E$.apply(0,arguments)))};
_.C=function(A){A=A===void 0?{}:A;return juJ(nEb)(A)};
_.Ju=function(A){if(A.hostElement&&A!==A.hostElement){var Q=_.oi(A.hostElement);Q=A.renderIdom?Q:Q.shadowRoot}Q||(A=A.root,Q=A instanceof Node?_.oi(A):null);return Q};
_.V1=function(A){return hFY?WG4(A):function(Q,b){Object.defineProperty(Q,b,{get:function(){var f;return(f=_.Ju(this))==null?void 0:f.querySelector(A)},
enumerable:!0,configurable:!0})}};
WG4=function(A){return function(Q,b){Object.defineProperty(Q,b,{get:function(){var f,a=(f=_.Bj(this.hostElement))==null?void 0:f.querySelector(A);if(a)return a;var T;return(T=_.Ju(this))==null?void 0:T.querySelector(A)},
enumerable:!0,configurable:!0})}};
_.Oc=function(A){return hFY?vu6(A):function(Q,b){Object.defineProperty(Q,b,{get:function(){var f;return(f=_.Ju(this))==null?void 0:f.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
vu6=function(A){return function(Q,b){Object.defineProperty(Q,b,{get:function(){var f,a=(f=_.Bj(this.hostElement))==null?void 0:f.querySelectorAll(A);if(a==null?0:a.length)return a;var T;return(T=_.Ju(this))==null?void 0:T.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
EuF=function(A){return function(Q){if(![_.bh,_.q].includes(Object.getPrototypeOf(Q.prototype).constructor))throw Error("fg");U_y(Object.assign({},typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(Q)}};
_.kl=function(){var A=A===void 0?{}:A;return function(Q){if(![f1,_.nc].includes(Object.getPrototypeOf(Q.prototype).constructor))throw Error("gg");LQC(Object.assign({},A,{disableInheritanceCheck:!0}))(Q)}};
cZJ=function(A,Q){xoJ[A]!=null||(xoJ[A]=new Set);xoJ[A].add(Q)};
_.I_=function(){var A=_.iN.apply(null,_.ri(_.E$.apply(0,arguments)));return function(Q,b){cZJ(Q.is,b);A(Q,b)}};
qJ=function(A,Q,b){if(Hj(A)&&!zF4.has(Q)){Q=Q.replace(/^JSC\$[\d]+_/,"");Q=Q.replace(/\.\d+(\.|$)/g,function(T,G){return".#"+G});
Cc[A]!=null||(Cc[A]={});var f,a;(f=Cc[A])[a=Q]!=null||(f[a]=new Set);Cc[A][Q].has(b)||(Cc[A][Q].add(b),_.R4("polymerPropertyAccessEvent",{componentName:A,propertyName:Q,accessType:b}))}};
wKY=function(){return _.K("polymer_property_access_logging_debug")||_.K("polymer_enable_property_access_logging")};
Hj=function(A){if(_.K("polymer_property_access_logging_debug"))return!0;if(!_.K("polymer_enable_property_access_logging"))return!1;ub4||(ub4=Date.now());return(Zy(A)+ub4)%100<_.GP("polymer_property_access_logging_percent")};
Z8U=function(A,Q){return Hj(Q)&&A.hostElement.loggingStatus?new Proxy(A,{get:function(b,f,a){if(b.hostElement.loggingStatus.bypassProxyController)return b[f];b.hostElement.loggingStatus.isExternalGet=!0;var T=b[f];b.hostElement.loggingStatus.isExternalGet=!1;if(T instanceof Function)return function(){var G=_.E$.apply(0,arguments);try{return b.hostElement.loggingStatus.currentExternalCall=f,qJ(Q,f,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),T.apply(this===a?b:this,G)}finally{b.hostElement.loggingStatus.currentExternalCall=
void 0}};
qJ(Q,f,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return T},
set:function(b,f,a){if(b.hostElement.loggingStatus.bypassProxyController)return b[f]=a,!0;b.hostElement.loggingStatus.isRendererStamper?qJ(Q,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):b.hostElement.loggingStatus.isDeclarativeExternal||qJ(Q,f,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{b.hostElement.loggingStatus.currentExternalSet=f,b[f]=a}finally{b.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):A};
yZi=function(A,Q){A&&A.loggingStatus&&!A.loggingStatus.isDeclarativeExternal&&!A.loggingStatus.isExternalGet&&A.loggingStatus.currentExternalSet!==Q&&qJ(A.tagName.toLowerCase(),Q,"PROPERTY_ACCESS_GET_INTERNAL")};
o_=function(A,Q,b){A&&(b||A.loggingStatus&&!A.loggingStatus.isInitializing&&!A.loggingStatus.isDefiningPropertyAccessor&&A.loggingStatus.currentExternalSet!==Q)&&qJ(A.tagName.toLowerCase(),Q,"PROPERTY_ACCESS_SET_INTERNAL")};
YMy=function(){return{_definePropertyAccessor:function(A,Q){var b=this,f=b.hostElement.loggingStatus;f&&(f.isDefiningPropertyAccessor=!0);var a=b[A];a!==void 0&&(b.__data?b._setPendingProperty(A,a):(b.__dataProto!=null||(b.__dataProto={}),b.__dataProto[A]=a));f&&(f.isDefiningPropertyAccessor=!1);Object.defineProperty(this,A,{get:function(){yZi(b.hostElement,A);return this.__data[A]},
set:function(T){Q||this._setPendingProperty(A,T,!0)&&this._invalidateProperties()}})},
created:function(){var A=this._setPendingProperty.bind(this);this._setPendingProperty=function(Q,b,f){o_(this.hostElement,Q);return A.apply(this,[Q,b,f])}}}};
DoC=function(A){wKY()&&_.I(tu.prototype)(A.prototype,"__templateBindingLoggingBehavior")};
$oF=function(A,Q){if(Q.resolvedFactories.length!==A.resolvedFactories.length)return!0;Q=_.F(Q.resolvedFactories.entries());for(var b=Q.next();!b.done;b=Q.next()){var f=_.F(b.value);b=f.next().value;f=f.next().value;if(f.providerClass){if(f.providerClass!==A.resolvedFactories[b].providerClass)return!0}else if(f.providerValue){if(f.providerValue!==A.resolvedFactories[b].providerValue)return!0}else if(f.factory!==A.resolvedFactories[b].factory)return!0}return!1};
Nq9=function(A,Q){A=_.F(A);for(var b=A.next();!b.done;b=A.next())if(b=b.value,b.constructor===Array)Nq9(b,Q);else{var f=Q;f.has(b)||(b.inject&&f.add(b),b.behaviors&&Nq9(b.behaviors,f))}};
R_=function(A,Q){var b=A[Q];A[Q]=function(){var f=_.E$.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(b)return b.apply(this,f)}};
Qni=function(){_.gn.Class=function(b,f){b=su9(b,f);R_(b.prototype,"created");return b};
R_(eK.prototype,"_initializeProperties");R_(_.hu.prototype,"_initializeProperties");if(mo9)R_(A_W,"created");else{var A=function(){R_(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))A();else{var Q=customElements.define;customElements.define=function(b,f,a){Q.call(customElements,b,f,a);b==="tp-yt-iron-list"&&(A(),customElements.define=Q)}}}};
fHX=function(A,Q){A.prototype.behaviors=A.prototype.behaviors||[];A.prototype.behaviors.unshift(bBy.InjectBehavior);A.prototype.provide=Q};
_.Ec=function(A){return function(Q){if(!A.disableElementRegistration){A.noInjection||fHX(Q,A.providers);var b=Q.prototype;b.__templateHelpers||OwW(Wj.prototype)(b,"__templateHelpers");b=A.is;aHA||(aHA=Date.now());(Zy(b)+aHA)%100<_.GP("polymer_log_prop_change_observer_percent")&&OwW(vj.prototype)(Q.prototype,"__propertyObserverObserver");Q.prototype.behaviors=Q.prototype.behaviors||[];Q.prototype.behaviors.unshift(_.T5Y.YtHostElementBehavior);DoC(Q);EuF({is:A.is,notifyObserversOnUndefined:A.notifyObserversOnUndefined!==
!1,fastInit:A.fastInit,template:A.template,disableEnforceFastDefaultValuesCheck:!0})(Q)}}};
_.h=function(A){return _.Ec({is:A.is,template:A.template,disableElementRegistration:A.disableElementRegistration,cssBuildOptOut:A.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
GAJ=function(A,Q){if(d2i){A=new A;for(var b=_.F(Object.getOwnPropertyNames(A)),f=b.next();!f.done;f=b.next())f=f.value,Q[f]=A[f];for(b=Q;b&&b!==Object.prototype;b=Object.getPrototypeOf(b)){f=_.F(Object.getOwnPropertyNames(b));for(var a=f.next();!a.done;a=f.next())a=a.value,A.hasOwnProperty(a)||Object.defineProperty(A,a,F06(Q,a))}}else A.apply(Q)};
F06=function(A,Q){return{get:function(){var b=A[Q];return b instanceof Function?b.bind(A):b},
set:function(b){A[Q]=b}}};
pyF=function(A,Q){for(var b=A._noAccessors,f=_.F(Object.getOwnPropertyNames(A)),a=f.next();!a.done;a=f.next())if(a=a.value,!B5J.has(a))if(b)Q[a]=A[a];else{var T=Object.getOwnPropertyDescriptor(A,a);T&&(T.configurable=!0,Object.defineProperty(Q,a,T))}};
PLW=function(A,Q,b){return function(f){if(b){var a=b();f.model=a}if(A[Q])A[Q](f,f.detail)}};
xl=function(A){var Q=[];if(typeof A==="string")A.length>0&&Q.push.apply(Q,_.ri(A.split(".")));else{A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=b.value,typeof b==="string"?Q.push.apply(Q,_.ri(b.split("."))):Q.push(b)}return Q};
XyA=function(A,Q){if(Q[Q.length-1]!=="*"&&Q[Q.length-1]!=="splices"){for(var b=0;b<Q.length;b++){if(!A)return;A=A[Q[b]]}return A}};
Swi=function(A,Q){if(A.length>Q.length)return!1;for(var b=0;b<A.length;b++)if(A[b]!==Q[b])return!1;return!0};
L04=function(A,Q,b){if(Q.type==="compute"){var f=Q.getter.bind(b);var a=Q.args}else f=function(){return b[Q.method.methodName].apply(b,_.ri(_.E$.apply(0,arguments)))},a=Q.method.args;
U2f(A,Q.propertyKey,f,a,Q.value)};
lHi=function(A,Q){if(Q.readOnly){var b=Object.getOwnPropertyDescriptor(A.model,Q.propertyKey);Object.defineProperty(A.model,Q.propertyKey,{get:b.get,set:function(){}});
A.model[M0U(Q.propertyKey)]=b.set}};
K0W=function(A,Q,b){if(b){var f=Q.propertyKey,a=Q.selector;Q=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.ri(Q.selectorArgs.map(function(T){return{type:"path",path:T}})));
U2f(A,f,function(T){var G=_.E$.apply(1,arguments);return a.apply(null,[b.getState()].concat(_.ri(G)))},Q)}};
J_C=function(A,Q,b){var f=_.Vr(Q.propertyKey)+"-changed";iBJ(A,function(a){var T={value:a.value,queueProperty:!0};a.path.split(".").length>1&&(T.path=a.path);b.dispatchEvent(new CustomEvent(f,{detail:T}))},[{type:"wildcard",
path:Q.propertyKey}])};
V0A=function(A,Q,b){iBJ(A,function(){b[Q.method.methodName].apply(b,_.ri(_.E$.apply(0,arguments)))},Q.method.args)};
M0U=function(A){return"_set"+(A.charAt(0).toUpperCase()+A.slice(1))};
OB6=function(){var A,Q=qz(function(b){A=b},!1);
return[A,Q]};
CLf=function(A){A=A.trim().replace(nO6,",").replace(kAW,"$1");var Q=A[0];Q==="-"&&(Q=A[1]);if(Q>="0"&&Q<="9")return{type:"literal",value:Number(A)};if(Q==="'"||Q==='"')return{type:"literal",value:A.slice(1,-1)};if(Q=A.match(IH4)){Q=Q[1];var b=HBb[Q];if(b)return{type:b,path:A.slice(0,-(Q.length+1))}}return{type:"path",path:A}};
r_Y=function(A){var Q=A.match(qwF);if(Q)return A={methodName:Q[1],args:oOy},Q[2].trim()&&(Q=Q[2].replace(t0J,"&comma;").split(","),A.args=Q.map(CLf)),A};
jnW=function(A,Q,b,f){f=f===void 0?!1:f;Q=_.Vr(Q);var a=O8;a&&(b=a(b,Q,"attribute",A));cj(A,b,Q,f)};
cj=function(A,Q,b,f){Q=Rsy(Q,f===void 0?!1:f);Q===void 0?A.removeAttribute(b):A.setAttribute(b,Q)};
Rsy=function(A,Q){switch(typeof A){case "object":case "function":if(A instanceof Date)return A.toString();if(A){if((Q===void 0?0:Q)&&!_.K("polymer_reflect_objects_as_boolean_killswitch"))return A?"":void 0;Q=window.trustedTypes?window.trustedTypes.isHTML(A)||window.trustedTypes.isScript(A)||window.trustedTypes.isScriptURL(A):void 0;if(Q)return A;try{return JSON.stringify(A)}catch(b){_.Wv(Error("Cg`"+A))}}break;case "boolean":return A?"":void 0;default:return A!==null&&A!==void 0?A.toString():void 0}};
gO9=function(A){if(A===void 0)throw Error("Dg");return A};
EOi=function(A,Q,b,f){var a=esY(f);if(a.length){f=b;var T="property";hsb.test(b)?T="attribute":b[b.length-1]==="$"&&(b=b.slice(0,-1),T="attribute");var G=W0U(a);G&&T==="attribute"&&(b==="class"&&A.hasAttribute("class")&&(G+=" "+A.getAttribute(b)),cj(A,G,b));T==="attribute"&&f==="disable-upgrade$"&&A.setAttribute("disable-upgrade","");A.localName==="input"&&f==="value"&&A.setAttribute("value","");A.removeAttribute(f);T==="property"&&(b=_.Ov(b));Q=gO9(Q);vOC(Q,T,b,a);return!0}return b.slice(0,3)===
"on-"?(A.removeAttribute(b),(T=Q).events!=null||(T.events=[]),Q.events.push({name:b.slice(3),value:f}),!0):b==="id"?(Q.id=f,!0):!1};
esY=function(A){for(var Q=[],b=0,f;(f=x2b.exec(A))!==null;){f.index>b&&Q.push({type:"literal",value:A.slice(b,f.index)});var a=f[1][0];b=!!f[2];f=f[3].trim();if(a==="{")throw Error("Eg");(a=r_Y(f))?Q.push({type:"method",negate:b,signature:a}):Q.push({type:"path",negate:b,path:f});b=x2b.lastIndex}b&&b<A.length&&(A=A.substring(b))&&Q.push({type:"literal",value:A});return Q};
W0U=function(A){for(var Q="",b=0;b<A.length;b++){var f=A[b];f.type==="literal"&&(Q+=f.value)}return Q};
vOC=function(A,Q,b,f){A.bindings!=null||(A.bindings=[]);A.bindings.push({kind:Q,target:b,parts:f})};
ZBY=function(A,Q,b){var f=!1;if(A.localName==="template"){f=b;var a=Q.stripWhitespace;a=c_e(A,a===void 0?!1:a);var T=A.content.ownerDocument.createDocumentFragment();a.content=T;T.appendChild(A.content);f&&(f.templateInfo=a);f=!0}else A.localName==="slot"&&(Q.hasInsertionPoint=!0);if(A.firstChild&&(a=b,A.localName!=="script"&&A.localName!=="style")){T=0;for(var G=A.firstChild;G;){var p=G;if(p.localName==="template"){var P=p.getAttribute("is");if((G=P==="dom-if")||P==="dom-repeat"){p.removeAttribute("is");
P=p.ownerDocument.createElement("ps-"+P);p.parentNode.replaceChild(P,p);P.appendChild(p);var U=Array.from(p.attributes);U=_.F(U);for(var L=U.next();!L.done;L=U.next())L=L.value,G?zsU.has(L.name)&&cj(P,L.value,L.name):wyi.has(L.name)?cj(P,L.value,L.name):uoe.has(L.name),p.removeAttribute(L.name);G=P}else G=p}if(G.nodeType===Node.TEXT_NODE){p=void 0;P=A;for(U=G;((p=U.nextSibling)==null?void 0:p.nodeType)===Node.TEXT_NODE;)L=void 0,(L=U).textContent!=null||(L.textContent=""),U.nextSibling.textContent&&
(U.textContent+=U.nextSibling.textContent),P.removeChild(U.nextSibling);if(Q.stripWhitespace&&G.textContent&&!G.textContent.trim()){A.removeChild(G);G=G.nextSibling;continue}}ZBY(G,Q,{parentIndex:T,parentInfo:a});G.parentNode&&T++;G=G.nextSibling}}var M;if((M=A.hasAttributes)==null?0:M.call(A)){M=b=gO9(b);a=!1;T=Array.from(A.attributes);T=_.F(T);for(p=T.next();!p.done;p=T.next())p=p.value,a=EOi(A,M,p.name,p.value)||a;f=a||f}A.nodeType===Node.TEXT_NODE&&(M=esY(A.textContent),M.length&&(A.textContent=
W0U(M)||" ",b=gO9(b),vOC(b,"text","textContent",M),f=!0));b&&f&&(b.infoIndex=Q.nodeInfoList.push(b)-1)};
c_e=function(A,Q){Q={nodeInfoList:[],stripWhitespace:(Q===void 0?!1:Q)||A.hasAttribute("strip-whitespace")};ZBY(A.content,Q);return Q};
y_W=function(A){Object.assign(A,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
D2e=function(A,Q,b){Q.signalCache!=null||(Q.signalCache={});var f=Q.signalCache[b];if(!f){var a=b.split(".");f=!Ywf(A,a[0]);if(a.length>1&&f){var T=A.getPathMutationSignal(a);f=function(){var G=rY(A.owner,function(){return A.getWithPath([a[0]])}),p,P=(p=T())==null?void 0:p.value;
return{rootWasDefined:G!==void 0,value:P}}}else f=function(){var G=A.getWithPath(a);
return{rootWasDefined:G!==void 0,value:G}};
Q.signalCache[b]=f}return f()};
N59=function(A,Q,b,f,a){Q=Q.parts.map(function(G,p){if(G.type==="literal"){b.partWasDefined!=null||(b.partWasDefined=[]);var P;(P=b.partWasDefined)[p]||(P[p]=G.value!==void 0);return G.value}var U;if(G.type==="method"){var L,M=(L=(U=b.partWasDefined)==null?void 0:U[p])!=null?L:!1;M||(M=G.signature.args.every(function(n){return n.type==="literal"}));
var l=!1,J=!0;U=G.signature.args.map(function(n){if(n.type==="literal")return n.value;if(n.type!=="path")throw Error("Fg`"+n.type);var t=D2e(A,b,n.path);n=t.value;t=t.rootWasDefined;l||(l=t);J&&(J=t);return n});
M||(M=a===1?J:l);b.partWasDefined!=null||(b.partWasDefined={});b.partWasDefined[p]=M;if(!M)return;U=(p=D2e(A,b,G.signature.methodName).value)&&typeof p==="function"?p.apply(f,U):void 0}else L=D2e(A,b,G.path),U=L.value,b.partWasDefined!=null||(b.partWasDefined={}),(M=b.partWasDefined)[p]||(M[p]=U!==void 0||L.rootWasDefined);G.negate&&(U=!U);return U});
if(Q.length===1){var T;return((T=b.partWasDefined)==null?0:T[0])?Q[0]:$24}return Q.join("")};
sn9=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A&&"canNotifyPath"in A};
m2f=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A};
AO6=function(A){return"polymerController"in A};
Qgf=function(A,Q){Q=""+xl(Q)[0];if(sn9(A))return A.canNotifyPath(Q);if(AO6(A)&&sn9(A.polymerController))return A.polymerController.canNotifyPath(Q);if(m2f(A)){var b;return!((b=A.properties)==null||!b[Q])}if(AO6(A)&&m2f(A.polymerController)){var f;return!((f=A.polymerController.properties)==null||!f[Q])}return!1};
bfy=function(A,Q,b){sn9(A)||m2f(A)?A.notifyPath(Q,b):AO6(A)&&(sn9(A.polymerController)||m2f(A.polymerController))&&A.polymerController.notifyPath(Q,b)};
apy=function(A,Q,b){if(b!==$24){A.kind==="attribute"||A.target!=="textContent"&&(A.target!=="value"||Q.localName!=="input"&&Q.localName!=="textarea")||(b=b===void 0?"":b);var f,a=(f=fp4.Polymer)==null?void 0:f.sanitizeDOMValue;a&&(b=a(b,A.target,A.kind,Q));if(A.kind==="attribute"){A=A.target;if(A==="class"||A==="name"||A==="slot")Q=(0,_.SK)(Q);cj(Q,b,A)}else if(A=A.target,b!==Q[A]||typeof b==="object")Q.loggingStatus&&(Q.loggingStatus.isDeclarativeExternal=!0,qJ(Q.localName,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
Q[A]=b,Q.loggingStatus&&(Q.loggingStatus.isDeclarativeExternal=!1)}};
TmW=function(A,Q,b,f){var a=Q.parts[0];if(Q.parts.length!==1||a.type!=="path"||!Qgf(b,Q.target))return!1;var T=_.F(a.path.split(".")),G=T.next().value,p=yO(T);if(Ywf(A,G))return!1;f.signalCache!=null||(f.signalCache={});T=f.signalCache[a.path];var P;T=(P=T)==null?void 0:P().value;if((T==null?void 0:T.path)!==void 0){f=xl(T.path);var U=xl(a.path);f=[Q.target].concat(_.ri(f.slice(U.length-1)));bfy(b,f,a.negate?!T.value:T.value);return!0}var L=zU(A,G);var M=L.getChangeRecordSignal(p),l=!1;T=function(){if(!l){var n=
rY(A.owner,function(){return L.getWithPath([])});
l||(l=n!==void 0)}return{value:M(),rootWasDefined:l}};
f.signalCache[a.path]=T;f.partWasDefined!=null||(f.partWasDefined={});T=T();(U=f.partWasDefined)[0]||(U[0]=T.rootWasDefined);var J=rY(A.owner,function(){return L.getWithPath(p)});
f.partWasDefined[0]&&rY(A.owner,function(){return void apy(Q,b,a.negate?!J:J)});
return!0};
dnJ=function(A,Q,b,f,a,T){if(!TmW(A,Q,b,f)){var G=N59(A,Q,f,a,T);rY(A.owner,function(){return void apy(Q,b,G)})}};
Fne=function(A,Q,b,f,a,T){b=_.F(b);for(var G=b.next(),p={};!G.done;p={infoIndex:void 0},G=b.next()){G=G.value;var P=G.bindings;p.infoIndex=G.infoIndex;G=G.parentInfo;if(P){P=_.F(P);for(var U=P.next(),L={};!U.done;L={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},U=P.next()){L.b$jscomp$253=U.value;if(p.infoIndex===void 0)throw Error("Gg");L.bindingCtx$jscomp$4={};A.effect(function(M,l){return function(){a&&!a()||dnJ(A,M.b$jscomp$253,Q[l.infoIndex],M.bindingCtx$jscomp$4,f,T)}}(L,p))}}G&&Fne(A,Q,[G],
f,a,T)}};
G_W=function(A,Q){A=(Q.parentInfo?G_W(A,Q.parentInfo):A).firstChild;for(var b=0;A;A=A.nextSibling)if(Q.parentIndex===b++)return A;throw Error("Hg");};
p7C=function(A,Q,b,f){A=document.importNode(A.content,!0);A.__noInsertionPoint=!(f==null?0:f.hasInsertionPoint);for(var a=Array(Q.length),T={},G=0;G<Q.length;G++){var p=Q[G],P=G_W(A,p);a[G]=P;p.id&&(T[p.id]=P);if(p.templateInfo){var U=P.parentElement;U&&(U.templateInfo=p.templateInfo,U.parentSignalProxy=b,U.eventListenerHost=f.eventListenerHost,U.stampingEnabled=f.enabledSignal)}U=void 0;if((U=p.events)==null?0:U.length)for(U=0;U<p.events.length;U++){var L=p.events[U];BmY(f.eventListenerHost,P,L.name,
L.value,f.getModel)}}Fne(b,a,Q,f.thisCtx,f.enabledSignal,f.methodInvocationRequirement);return{root:A,nodes:a,nodesById:T}};
X7J=function(A,Q){A=A();var b;(b=PEF.ShadyCSS)==null||b.prepareTemplate(A,Q);Q=c_e(A);return{template:A,nodeInfoList:Q.nodeInfoList,hasInsertionPoint:Q.hasInsertionPoint}};
Lnf=function(){SAU=!1;for(var A=wn.length,Q=0;Q<A;Q++){var b=wn[Q];if(b)try{b()}catch(f){Promise.resolve().then(function(){throw f;})}}wn.splice(0,A);
Uni+=A};
if9=function(A){SAU||(SAU=!0,Mz4.textContent=(lpC++).toString());wn.push(A);return KnF++};
_.y1=function(A,Q,b){uN++;A=Q?new JOb(uN,A,Q,b):new VzJ(uN,A);Zw.set(uN,A);return uN};
OfF=function(A){(A=Zw.get(A))&&A.cancel()};
k_4=function(A,Q){A=n0y.get(A);return A?(Q=A.get(Q))?Q:null:null};
_.Yl=function(A,Q,b,f){var a=k_4(A,Q);if(!a){a=new Ip9;var T=n0y.get(A);T||(T=new Map,n0y.set(A,T));T.set(Q,a)}A=b.bind(A);a.run(A,f,void 0)};
_.Hfy=function(A,Q){var b;(b=k_4(A,Q))==null||b.cancel()};
CE6=function(A){var Q;(Q=k_4(A,"doRender"))==null||Q.flush()};
Dw=function(A){var Q;return(Q=A.hostElement)!=null?Q:A};
qAF=function(A){var Q=A.indexOf(".");return Q===-1?A:A.slice(0,Q)};
o04=function(A,Q,b,f,a,T){T=(a=(f=T?qAF(Q):Q)?Q:null)?A.get(a):A.__data[Q];a&&T===void 0&&(T=b[Q]);_.Bn(A.hostElement,bnC(f)+"-changed",{value:T,queueProperty:!0,path:a!=null?a:void 0},{bubbles:!1,composed:!1})};
tzF=function(A,Q){A.__isReflecting=!0;jnW(A.hostElement,Q,A.__data[Q]);A.__isReflecting=!1};
rOi=function(A){if(A._onIronRequestResizeNotifications){var Q=A._onIronRequestResizeNotifications.bind(A);A._onIronRequestResizeNotifications=function(b){_.Au(b)!==A.hostElement&&Q(b)}}A._ariaActiveAttributeChanged&&(A._ariaActiveAttributeChanged=A._ariaActiveAttributeChanged.bind(A.hostElement));
A._activeChanged&&(A._activeChanged=function(b){A.toggles?cj(A.hostElement,b?"true":"false",A.ariaActiveAttribute):A.hostElement.removeAttribute(A.ariaActiveAttribute);A._changedButtonState()});
A._asyncClick&&(A._asyncClick=function(){_.y1(function(){A.hostElement.click()},1)});
!A.keyEventTarget||A.keyEventTarget instanceof EventTarget||(A.keyEventTarget=Dw(A.keyEventTarget));A._disabledChanged&&(A._disabledChanged=A._disabledChanged.bind(A.hostElement));A._observeItems&&(A._observeItems=function(b){var f=Dw(b);return _.oi(f).observeNodes(function(a){A._updateItems();A._updateSelected();_.Bn(f,"iron-items-changed",a,{bubbles:!1,cancelable:!1})})});
A._updateItems&&A._updateItems===_.$l._updateItems&&(A._updateItems=function(){var b=_.oi(A.hostElement).queryDistributedElements(A.selectable||"*");b=Array.prototype.filter.call(b,A._bindFilterItem);A._setItems(b)});
A._computeKeyboardClass&&(A._computeKeyboardClass=function(b){_.Pj(A.hostElement,"keyboard-focus",b)});
A.ensureRipple&&(A.ensureRipple=function(b){if(A.hasRipple&&!A.hasRipple()){if(!A._createRipple)return;A._ripple=A._createRipple();A._ripple.noink=A.noink;var f=A._rippleContainer||A.hostElement;f&&_.Bj(f).appendChild(A._ripple)}var a;if(b&&((a=A._ripple)==null?0:a.uiDownAction)){f=_.Bj(A._rippleContainer||A.hostElement);var T;a=(T=b.composedPath())==null?void 0:T[0];f.contains(a)&&A._ripple.uiDownAction(b)}});
A._updateMultiselectable&&(A._updateMultiselectable=function(b){b?A.hostElement.setAttribute("aria-multiselectable","true"):A.hostElement.removeAttribute("aria-multiselectable")})};
jgi=function(A,Q,b){b=_.F(b);for(var f=b.next();!f.done;f=b.next())GAJ(f.value.constructor,A);GAJ(Q.constructor,A)};
g0i=function(A,Q){A=_.F(A);for(var b=A.next();!b.done;b=A.next())if(b=b.value,b.type==="signal"){var f=b.propertyKey;if(Q.hasOwnProperty(f)&&Q[f]!=null&&b.attributeType===Object){a:{f=Q[f].constructor;for(var a=_.F(RWW),T=a.next();!T.done;T=a.next())if(T=T.value,f===T){f=T;break a}f=Object}b.attributeType=f}}};
eWb=function(){};
hWX=function(A){var Q;return(Q=A.hostElement)!=null?Q:A};
Wnb=function(){throw Error("Lg");};
v0U=function(A,Q){A.constructor.prototype.useSignals=!0;var b=new A.constructor;jgi(b,A,Q.behaviors);g0i(Q.reactiveSchemas,b);b={};for(var f=_.F(Q.reactiveSchemas),a=f.next();!a.done;a=f.next())a=a.value,a.type==="signal"&&(b[a.propertyKey]=a.attributeType);var T={copyPropertiesToProto:Wnb,didRegister:!1,typesForSignals:b},G=["disable-upgrade"].concat(_.ri(Q.observedAttributes)),p=function(P){NJ.call(this,A,Q,T,P)};
_.O(p,NJ);_.Qr.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return G}}});
T.copyPropertiesToProto=function(){for(var P=0;P<Q.behaviors.length;P++)pyF(Q.behaviors[P],p.prototype);pyF(A,p.prototype)};
Q.legacyOptimizations||T.copyPropertiesToProto();p.prototype.is=A.is;return p};
E0i=function(A,Q){if(Object.getPrototypeOf(Q.prototype).constructor!==_.q)throw Error("Mg");Q.prototype.is=A.is;return v0U(Q.prototype,A)};
xnY=function(A){return A.type==="compute"||A.type==="computeWithMethod"};
cOb=function(A){for(var Q=A.reactiveSchemas.filter(xnY),b=new Map,f=new Map,a=new Map,T=_.F(Q),G=T.next();!G.done;G=T.next())G=G.value,b.set(G.propertyKey,G),f.set(G.propertyKey,[]),a.set(G.propertyKey,0);T=0;Q=_.F(Q);for(G=Q.next();!G.done;G=Q.next()){G=G.value;for(var p=_.F(G.type==="computeWithMethod"?G.method.args:G.args),P=p.next();!P.done;P=p.next())P=P.value,P.type!=="literal"&&(P=P.path.split(".")[0],f.has(P)&&(f.get(P).push(G.propertyKey),a.set(G.propertyKey,a.get(G.propertyKey)+1),T++))}G=
[].concat(_.ri(f.keys())).filter(function(U){return a.get(U)===0});
for(Q=[];G.length;)for(p=G.shift(),Q.push(b.get(p)),p=_.F(f.get(p)),P=p.next();!P.done;P=p.next())P=P.value,a.set(P,a.get(P)-1),T--,a.get(P)===0&&G.push(P);b=A.reactiveSchemas.filter(function(U){return!xnY(U)});
A.reactiveSchemas=[].concat(_.ri(b),_.ri(Q))};
zWU=function(A,Q){if(Q.properties)for(var b=_.F(Object.entries(Q.properties)),f=b.next();!f.done;f=b.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;A.properties[f]=typeof a==="function"?{type:a}:a}Q.observers&&A.observers.push.apply(A.observers,_.ri(Q.observers));Q.disabledPolySiReactions&&A.disabledPolySiReactions.push.apply(A.disabledPolySiReactions,_.ri(Q.disabledPolySiReactions))};
w7W=function(A,Q){for(var b=Q.length-1;b>=0;b--){var f=Q[b];Array.isArray(f)?w7W(A,f):A.indexOf(f)<0&&A.unshift(f)}};
umF=function(A,Q){A.reactiveSchemas=A.reactiveSchemas.filter(function(b){return b.type==="observe"&&Q.includes(b.method.methodName)||xnY(b)&&Q.includes(b.propertyKey)?!1:!0})};
yOe=function(A,Q){var b=Q.prototype,f,a,T={is:A.is,reactiveSchemas:[],observedAttributes:[],behaviors:[bBy.InjectBehavior,Wj.prototype],disableElementRegistration:A.disableElementRegistration,provide:(f=A.providers)!=null?f:[],reactivityMode:A.reactivityMode,signalProperties:(a=b.signalProperties)!=null?a:[]};"template"in Q?T.templateGetter=function(){return Q.template}:A.getTemplate&&(T.templateGetter=A.getTemplate);
b.behaviors&&w7W(T.behaviors,b.behaviors);Zfb(T,Q);return T};
Zfb=function(A,Q){for(var b=Q.prototype,f={properties:{},observers:[],disabledPolySiReactions:[]},a=_.F(A.behaviors),T=a.next();!T.done;T=a.next())zWU(f,T.value);zWU(f,b);if(A.signalProperties)for(b=_.F(A.signalProperties),a=b.next();!a.done;a=b.next())delete f.properties[a.value];b=_.F(Object.entries(f.properties));for(a=b.next();!a.done;a=b.next()){T=_.F(a.value);a=T.next().value;T=T.next().value;var G=void 0;if((G=A.signalProperties)==null||!G.includes(a)){G=void 0;var p=A,P=T.type;if(!P)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{P=Reflect.getMetadata("design:type",Q,a);for(var U=_.F(YAU),L=U.next();!L.done;L=U.next())if(L=L.value,P===L){P=L;break a}P=Object}else P=String;T.computed||T.selector||(p.reactiveSchemas.push({type:"signal",propertyKey:a,value:T.value,attributeType:P,readOnly:T.readOnly}),p.observedAttributes.push(_.Vr(a)));T.reflectToAttribute&&p.reactiveSchemas.push({type:"reflect",propertyKey:a});if(T.computed){P=r_Y(T.computed);if(!P)throw Error("Ng");p.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:a,method:P,value:T.value})}T.observer&&p.reactiveSchemas.push({type:"observe",method:{methodName:T.observer,args:[{type:"path",path:a}]}});T.notify&&p.reactiveSchemas.push({type:"notify",propertyKey:a});T.selector&&p.reactiveSchemas.push({type:"redux",propertyKey:a,selector:T.selector,selectorArgs:(G=T.selectorArgs)!=null?G:[]})}}Dn6&&cOb(A);Q=_.F(f.observers);for(a=Q.next();!a.done;a=Q.next())b=A,a=a.value,(T=r_Y(a))?b.reactiveSchemas.push({type:"observe",method:T}):console.log('Warning: unable to parse observe declaration: "'+
a+'"');umF(A,f.disabledPolySiReactions)};
$nX=function(A,Q){for(var b=0;b<Q.length;b++){var f=Q[b],a=void 0;(a=f).showHideApi!=null||(a.showHideApi={});a=void 0;!!A!==!((a=f.showHideApi)==null||!a.hideTemplateChildren)&&(f.nodeType===Node.TEXT_NODE?A?(f.showHideApi.polymerTextContent=f.textContent,f.textContent=""):(a=void 0,f.textContent=(a=f.showHideApi.polymerTextContent)!=null?a:null):f instanceof Element&&f.localName==="slot"?A?(f.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.SK)((0,_.SK)(f).parentNode).replaceChild(f.showHideApi.polymerReplaced,
f)):(a=f.showHideApi.polymerReplaced)&&(0,_.SK)((0,_.SK)(a).parentNode).replaceChild(f,a):f instanceof HTMLElement&&f.style&&(A?(f.showHideApi.polymerDisplay=f.style.display,f.style.display="none"):f.style.display=f.showHideApi.polymerDisplay));f.showHideApi.hideTemplateChildren=A;f.showHideChildren&&f.showHideChildren(A)}};
sgb=function(){if(!NmF){var A=document.createElement("style");A.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(A);NmF=!0}};
sc=function(){return _.K("disable_hidden_dom_if_using_stamper")};
mni=function(A,Q){var b=_.m5().getState();return Q?A.apply(null,[b].concat(_.ri(Q))):A(b)};
b9C=function(){if(AKW)return AKW;var A=_.F(_.pz(0,void 0,"Nl6eIe")),Q=A.next().value;A.next();var b=A.next().value;_.m5().subscribe(function(){QKy(b)});
return AKW=Q};
QKy=function(A){_.K("delay_redux_signal_update_killswitch")?A(function(Q){return Q+1}):f94||(f94=!0,Promise.resolve().then(function(){A(function(Q){return Q+1});
f94=!1}))};
_.m5=function(){return a9W.getAppStore()};
Tt4=function(A,Q){return a9W.getSelectFn()(A,Q)};
_.A8=function(A){a9W.getDispatchFn()(A)};
dEC=function(A,Q){var b={},f;for(f in A)b[f]=Q(A[f],f);return b};
_.Q0=function(A,Q){return function(){var b;return(b=_.o7(A))!=null?b:Q}};
_.be=function(A,Q){var b=Object.assign({},A),f;for(f in Q)Q.hasOwnProperty(f)&&(b[f]=_.Q0(A[f],Q[f]));return b};
FiY=function(A,Q,b){A instanceof Element&&(b.debugName||(b.debugName="<"+A.tagName.toLowerCase()+(A.tagName.includes("-")?">":"."+A.className+">")),_.K("ytwiz_enable_debug_component_props")&&(A.debugProps||(A.debugProps=dEC(Q,function(f){return function(){return f()}}))))};
GMF=function(A){var Q;if(!(Q=f0.traceAllComponents)){var b;Q=(b=Q4)==null?void 0:b.activeSpan;Q=(Q==null?void 0:Q.name)!=="ytComponent"}return Q?etC("ytComponent",{},A):A()};
_.aP=function(A,Q){var b=function(f){return GMF(function(a){var T=Btf={};var G;if(((G=b)==null?0:G.idomCompat)&&f.renderedFromIdom){var p;G=typeof b.idomCompat==="object"?(p=b)==null?void 0:p.idomCompat.callbacks:{};G=_.F(pg9(f,G,b.debugName));p=G.next().value;G.next();G=G.next().value;var P=PZi(A,p);T.privateValue=P;Btf=void 0;FiY(P,p,b);T={debugName:b.debugName};a&&T&&Object.assign(a.attributes,T);a=wtX(P);a=Array.isArray(a)?a[0]:a;a[XF]||(a[XF]={});a[XF].updateSignalsFromIdomProps=G;Xgi(p,P);return P}G=
dEC(f,SRF);p=PZi(A,G);T.privateValue=p;Btf=void 0;FiY(p,G,b);T={debugName:b.debugName};a&&T&&Object.assign(a.attributes,T);Xgi(G,p);return p})};
b.debugName=Q===void 0?"":Q;return b};
PZi=function(A,Q){A=A(Q);return Mq(A)};
UEb=function(A,Q){A[Q]||(A=new _.IO("IDOM interop setter undefined. Key:",Q),_.en(A))};
SRF=function(A,Q){return Q==="children"||Q==="ref"||typeof A==="function"||A===void 0?A:function(){return _.o7(A)}};
pg9=function(A,Q,b){var f={},a={},T={},G={},p;for(p in A){G={key$jscomp$923:G.key$jscomp$923};G.key$jscomp$923=p;var P=A[G.key$jscomp$923];if(G.key$jscomp$923==="children"||G.key$jscomp$923==="ref")f[G.key$jscomp$923]=P;else if(typeof P==="function")G.key$jscomp$923 in Q||P.length>0?(T[G.key$jscomp$923]=P,f[G.key$jscomp$923]=function(L){return function(){return T[L.key$jscomp$923].apply(T,_.ri(_.E$.apply(0,arguments)))}}(G)):f[G.key$jscomp$923]=P;
else if(!(A[G.key$jscomp$923]===void 0&&G.key$jscomp$923 in Q)){var U=_.F(_.pz(A[G.key$jscomp$923],{debugName:G.key$jscomp$923+":cwis:"+b},"rvrjQe"));P=U.next().value;U=U.next().value;f[G.key$jscomp$923]=P;a[G.key$jscomp$923]=U}}return[f,a,function(L){var M={},l;for(l in L)M={key$jscomp$924:M.key$jscomp$924,val$jscomp$121:void 0},M.key$jscomp$924=l,M.val$jscomp$121=L[M.key$jscomp$924],M.key$jscomp$924!=="children"&&M.key$jscomp$924!=="ref"&&(typeof M.val$jscomp$121==="function"?M.key$jscomp$924 in
Q?T[M.key$jscomp$924]=M.val$jscomp$121:M.val$jscomp$121.length>0&&(T[M.key$jscomp$924]=M.val$jscomp$121,_.Wv(new _.IO("Callback detected that was not set in the idomCompat callbacks map. Key:",M.key$jscomp$924))):M.key$jscomp$924 in Q&&M.val$jscomp$121===void 0||(UEb(a,M.key$jscomp$924),Mz(function(J){return function(){a[J.key$jscomp$924](J.val$jscomp$121)}}(M))))}]};
l9f=function(A,Q,b){var f=pki(A.prototype,LiA,A.prototype.behaviors);f.prototype.is=Q;f.prototype.localName=Q;b&&Mk6(f,b);return function(a){a&&(f.prototype.hostElement=a);var T=new f;T.root=T;T.hostElement=a;return T}};
Mk6=function(A,Q){var b;Object.defineProperty(A.prototype,"_template",{get:function(){b===void 0&&(b=Q());return b},
set:function(f){b=f},
configurable:!0,enumerable:!0})};
O9Y=function(A,Q,b,f){function a(){if(!J){for(var n=new Set,t=_.F(L),g=t.next();!g.done;g=t.next()){g=g.value;for(var e=_.F(Object.getOwnPropertyNames(g)),x=e.next();!x.done;x=e.next()){x=x.value;var D=void 0,w=(D=Object.getOwnPropertyDescriptor(g,x))==null?void 0:D.value;w&&w instanceof Function&&!Te(x)&&(!p[x]||_.K("polymer_forward_method_killswitch"))&&n.add(x)}}t=_.F(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(g=t.next();!g.done;g=t.next())e=_.F(g.value),g=e.next().value,
e=e.next().value,e.value instanceof Function&&!Te(g)&&n.add(g);J=n}return J}
KiY(A,Q,f==null?void 0:f.providers);PGy(A.prototype,A,!0);var T=l9f(A,Q,b),G,p=(G=A.prototype.properties)!=null?G:{},P,U,L=(U=(P=A.prototype.behaviors)==null?void 0:P.flat(Infinity))!=null?U:[];b=_.F(L);for(G=b.next();!G.done;G=b.next())p=Object.assign({},G.value.properties,p);var M=[].concat(_.ri(i9y),_.ri(Object.keys(p).map(function(n){return _.Vr(n)}))),l=!1,J;
return{ctor:function(n,t){var g=T(n),e,x;n=[].concat(_.ri((e=f==null?void 0:f.allowedProps)!=null?e:[]),_.ri((x=f==null?void 0:f.allowedPropsFromBehaviors)!=null?x:[]));g.allowedProps=n.length>0?n:void 0;e={};x=_.F(M);for(n=x.next();!n.done;n=x.next())n=n.value,e[n]=_.Ov(n);g.__dataAttributes=e;var D=g.ready.bind(g);g.ready=function(){t.beforeReady();D();if(Hj(Q)&&!l){var w=g.__templateInfo;if(w==null?0:w.hostProps){w=_.F(Object.keys(w.hostProps));for(var u=w.next();!u.done;u=w.next())qJ(Q,u.value,
"PROPERTY_ACCESS_GET_INTERNAL")}l=!0}};
g._overrideLegacyUndefined=!0;return g},
props:p,observedAttributes:M,getInitialMethods:a,getPropsToForwardBeforeRegister:function(){for(var n=[],t=new Set,g=_.F(Object.keys(p)),e=g.next();!e.done;e=g.next())e=e.value,n.push([e,p[e].readOnly]),t.add(e);g=a();e=_.F(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var x=e.next();!x.done;x=e.next())x=x.value,!JKY(x)||g.has(x)||t.has(x)||(n.push([x,!1]),t.add(x));t=_.F(Vkb);for(g=t.next();!g.done;g=t.next())n.push([g.value,!0]);return n},
getPropsToForwardBeforeReady:function(n){for(var t=[],g=_.F(Object.entries(n)),e=g.next();!e.done;e=g.next()){var x=_.F(e.value);e=x.next().value;x=x.next().value;if(JKY(e)&&!(x instanceof Function)&&(t.push([e,!1]),Hj(Q))){var D=x=void 0;(D=(x=n)._createPropertyAccessor)==null||D.call(x,e)}}return t},
shouldForwardProp:JKY,shouldLog:Hj}};
KiY=function(A,Q,b){fHX(A,b);A.prototype.behaviors.unshift(nIA);if(wKY()){if(Hj(Q)){var f;(f=A.prototype).behaviors!=null||(f.behaviors=[]);A.prototype.behaviors.unshift(YMy())}DoC(A)}_.I(Wj.prototype)(A.prototype,"__templateHelpers")};
Te=function(A){return kM6.has(A)||A.startsWith("__compute__")};
JKY=function(A){return!Te(A)&&!A.startsWith("_")&&!A.endsWith("_")};
oIy=function(A,Q){function b(){var l=P();l=_.F(l);for(var J=l.next();!J.done;J=l.next()){var n=_.F(J.value);J=n.next().value;n=n.next().value;I9C(M.prototype,J,n)}f=!0}
var f=!1,a=A.ctor,T=A.getInitialMethods,G=A.observedAttributes,p=A.getPropsToForwardBeforeReady,P=A.getPropsToForwardBeforeRegister,U=A.shouldForwardProp,L=A.shouldLog,M=function(){var l=HTMLElement.call(this)||this;l.didForwardDynamicProps=!1;l.loggingStatus={};f||b();l.inst=a(l,{beforeReady:function(){l.didForwardDynamicProps||(l.forwardDynamicProps(),l.didForwardDynamicProps=!0)}});
l.controllerProxy=Z8U(l.inst,Q);l.forwardMethods();return l};
_.O(M,HTMLElement);M.prototype.forwardMethods=function(){for(var l=this,J=_.F(this.inst.getExtraMethodsToForward()),n=J.next(),t={};!n.done;t={method$jscomp$63:void 0},n=J.next()){var g=_.F(n.value);n=g.next().value;g=g.next().value;t.method$jscomp$63=g;this[n]=function(e){return function(){return e.method$jscomp$63.call.apply(e.method$jscomp$63,[l.inst].concat(_.ri(_.E$.apply(0,arguments))))}}(t)}J=_.F(T());
for(t=J.next();!t.done;t=J.next())t=t.value,U(t)&&H99(this,t),L(Q)&&!Te(t)&&CZi(this.inst,t)};
M.prototype.forwardDynamicProps=function(){var l=p(this.inst);l=_.F(l);for(var J=l.next();!J.done;J=l.next()){var n=_.F(J.value);J=n.next().value;n=n.next().value;I9C(this,J,n);L(Q)&&!Te(J)&&qRW(this.inst,J)}};
M.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
M.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
M.prototype.attributeChangedCallback=function(l,J,n){this.inst.attributeChangedCallbackWrapper(l,J,n)};
_.Qr.Object.defineProperties(M.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return Q}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Qr.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return G}}});
customElements.define(Q,M)};
I9C=function(A,Q,b){A.hasOwnProperty(Q)||Object.defineProperty(A,Q,{get:function(){var f,a=((f=A.is)!=null?f:A.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||qJ(a,Q,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,f=this.polymerController[Q],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,f},
set:function(f){if(!b){var a,T=((a=A.is)!=null?a:A.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||qJ(T,Q,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=Q,this.loggingStatus.bypassProxyController=!0,this.polymerController[Q]!==f&&(a={},this.polymerController.setProperties((a[Q]=f,a)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
H99=function(A,Q,b){var f=A.polymerController;A[Q]=function(){var a=_.E$.apply(0,arguments);A.loggingStatus.currentExternalCall=Q;A.loggingStatus.bypassProxyController=!0;var T,G=((T=A.is)!=null?T:A.tagName).toLowerCase();qJ(G,Q,"PROPERTY_ACCESS_CALL_EXTERNAL");var p;T=(p=b!=null?b:f[Q])==null?void 0:p.call.apply(p,[f].concat(_.ri(a)));A.loggingStatus.currentExternalCall=void 0;A.loggingStatus.bypassProxyController=!1;return T}};
CZi=function(A,Q){var b=A.hostElement,f=A[Q];A[Q]=function(){var a=_.E$.apply(0,arguments);if(b.loggingStatus.currentExternalCall!==Q){var T,G=((T=b.is)!=null?T:b.tagName).toLowerCase();qJ(G,Q,"PROPERTY_ACCESS_CALL_INTERNAL")}return f==null?void 0:f.apply(A,a)}};
qRW=function(A,Q){var b=Object.getOwnPropertyDescriptor(A,Q);b&&!b.get&&Object.defineProperty(A,Q,{get:function(){yZi(A.hostElement,Q);return b.value},
set:function(f){o_(A.hostElement,Q);b.value=f}})};
tkU=function(A){return _.K("poly_si_dom_repeat_detached_fix_killswitch")||A.tagName!=="PS-DOM-REPEAT"?A.tagName==="DOM-REPEAT":!0};
jKU=function(A,Q){var b=rKW(A);A instanceof Element&&b.unshift(A);A=_.F(b.filter(tkU));for(var f=A.next();!f.done;f=A.next()){var a=void 0;f=_.F((a=f.value.__instances)!=null?a:[]);for(a=f.next();!a.done;a=f.next())if(a=a.value,a.root){a=Array.from(a.root.children);a=_.F(a);for(var T=a.next();!T.done;T=a.next())b.push.apply(b,_.ri(jKU(T.value,Q)))}}return b.filter(function(G){return G.usePatchedLifecycles&&G.lifecycleIsConnected===Q})};
rKW=function(A){var Q=null;A instanceof Element?Q=Element.prototype.querySelectorAll:A instanceof DocumentFragment&&(Q=DocumentFragment.prototype.querySelectorAll);return Q?Array.from(Q.call(A,"*")):[]};
dF=function(A){B_(function(){for(var Q=_.F(jKU(A,!1)),b=Q.next();!b.done;b=Q.next()){b=b.value;b.lifecycleIsConnected=!0;try{var f=void 0,a=void 0,T=void 0,G=void 0;(f=(G=b.polymerController)!=null?G:b)==null||(T=(a=f).connectedCallback)==null||T.call(a)}catch(p){_.en(p)}}})};
Fp=function(A){B_(function(){for(var Q=_.F(jKU(A,!0)),b=Q.next();!b.done;b=Q.next()){b=b.value;b.lifecycleIsConnected=!1;try{var f=void 0,a=void 0,T=void 0,G=void 0;(f=(G=b.polymerController)!=null?G:b)==null||(T=(a=f).disconnectedCallback)==null||T.call(a)}catch(p){_.en(p)}}})};
EIb=function(){if(!RI6){RI6=!0;var A=[Node];Ge&&A.push(Ge.Wrapper);var Q=Node.prototype.insertBefore,b=Node.prototype.removeChild;A=_.F(A);for(var f=A.next(),a={};!f.done;a={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},f=A.next())f=f.value,a.nativeInsertBefore=f.prototype.insertBefore,f.prototype.insertBefore=function(G){return function(p,P){if(p instanceof DocumentFragment){var U=Array.from(p.children);p=G.nativeInsertBefore.call(this,p,P);
if(this.isConnected&&G.nativeInsertBefore===Q)for(P=_.F(U),U=P.next();!U.done;U=P.next())dF(U.value);return p}U=p instanceof Element&&p.isConnected;P=G.nativeInsertBefore.call(this,p,P);U&&Fp(p);this.isConnected&&dF(p);return P}}(a),a.nativeAppendChild=f.prototype.appendChild,f.prototype.appendChild=function(G){return function(p){if(p instanceof DocumentFragment){var P=Array.from(p.children);
p=G.nativeAppendChild.call(this,p);if(this.isConnected){P=_.F(P);for(var U=P.next();!U.done;U=P.next())dF(U.value)}return p}P=p instanceof Element&&p.isConnected;U=G.nativeAppendChild.call(this,p);P&&Fp(p);this.isConnected&&dF(p);return U}}(a),a.nativeRemoveChild=f.prototype.removeChild,f.prototype.removeChild=function(G){return function(p){var P=p instanceof Element&&p.isConnected,U=G.nativeRemoveChild.call(this,p);
P&&b===G.nativeRemoveChild&&Fp(p);return U}}(a),a.nativeReplaceChild=f.prototype.replaceChild,f.prototype.replaceChild=function(G){return function(p,P){if(p instanceof DocumentFragment){var U=Array.from(p.children);
p=G.nativeReplaceChild.call(this,p,P);if(this.isConnected)for(Fp(P),P=_.F(U),U=P.next();!U.done;U=P.next())dF(U.value);return p}U=p instanceof Element&&p.isConnected;var L=this.isConnected,M=G.nativeReplaceChild.call(this,p,P);L&&Fp(P);U&&Fp(p);L&&dF(p);return M}}(a);
A=[Element];Ge&&A.push(Ge.Wrapper);A=_.F(A);f=A.next();for(a={};!f.done;a={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},f=A.next())f=f.value,f.prototype.before=gIC(f.prototype.before),f.prototype.after=gIC(f.prototype.after),a.nativeReplaceWith=f.prototype.replaceWith,f.prototype.replaceWith=function(G){return function(){var p=_.E$.apply(0,arguments),P=_.F(eIF(p)),U=P.next().value,
L=P.next().value;P=this.isConnected;G.nativeReplaceWith.apply(this,p);p=_.F(L);for(L=p.next();!L.done;L=p.next())Fp(L.value);if(P)for(Fp(this),U=_.F(U),P=U.next();!P.done;P=U.next())P=P.value,P instanceof Element&&dF(P)}}(a),a.nativeRemove=f.prototype.remove,f.prototype.remove=function(G){return function(){var p=this.isConnected;
G.nativeRemove.call(this);p&&Fp(this)}}(a),a.nativeInsertAdjacentElement=f.prototype.insertAdjacentElement,f.prototype.insertAdjacentElement=function(G){return function(p,P){var U=P.isConnected;
p=G.nativeInsertAdjacentElement.call(this,p,P);U&&Fp(P);p.isConnected&&dF(p);return p}}(a),a.nativeSetAttribute=f.prototype.setAttribute,f.prototype.setAttribute=function(G){return function(p,P){var U=hIy(this);
if(!U.usePatchedLifecycles)return G.nativeSetAttribute.call(this,p,P);var L=this.getAttribute(p);G.nativeSetAttribute.call(this,p,P);P=this.getAttribute(p);Wie(U,p,L,P)}}(a),a.nativeRemoveAttribute=f.prototype.removeAttribute,f.prototype.removeAttribute=function(G){return function(p){var P=hIy(this);
if(!P.usePatchedLifecycles)return G.nativeRemoveAttribute.call(this,p);var U=this.getAttribute(p);G.nativeRemoveAttribute.call(this,p);U!==null&&Wie(P,p,U,null)}}(a),a.nativeToggleAttribute=f.prototype.toggleAttribute,f.prototype.toggleAttribute=function(G){return function(p,P){var U=hIy(this);
if(!this.usePatchedLifecycles)return G.nativeToggleAttribute.call(this,p,P);var L=this.getAttribute(p),M=L!==null;P=G.nativeToggleAttribute.call(this,p,P);P!==M&&Wie(U,p,L,P?"":null);return P}}(a);
A=[Document,DocumentFragment,Element,ShadowRoot];Ge&&A.push(Ge.Wrapper);A=_.F(A);for(a=A.next();!a.done;a=A.next())a=a.value,a.prototype.prepend=gIC(a.prototype.prepend),a.prototype.append=gIC(a.prototype.append);(Ge==null?void 0:Ge.noPatch)===!0&&vIX();document.readyState==="complete"?dF(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&dF(document.body)});
var T=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");T&&T.get&&T.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:T.enumerable,configurable:!0,get:T.get,set:function(G){G||Fp(this);T.set.call(this,G);return G}})}};
gIC=function(A){return function(){var Q=_.E$.apply(0,arguments),b=_.F(eIF(Q)),f=b.next().value;b=b.next().value;A.apply(this,Q);Q=_.F(b);for(b=Q.next();!b.done;b=Q.next())Fp(b.value);if(this.isConnected)for(f=_.F(f),Q=f.next();!Q.done;Q=f.next())Q=Q.value,Q instanceof Element&&dF(Q)}};
vIX=function(){for(var A=_.F(xEb),Q=A.next();!Q.done;Q=A.next()){Q=Q.value.prototype;for(var b=_.F(cK6),f=b.next();!f.done;f=b.next()){f=f.value;var a=Object.getOwnPropertyDescriptor(Q,f);a&&Object.defineProperty(Q,"__shady_native_"+f,a)}}};
Wie=function(A,Q,b,f){var a,T;if((a=A.polymerController)==null?0:(T=a.observedAttributes)==null?0:T.includes(Q))if(A=A.polymerController,A.attributeChangedCallbackWrapper)A.attributeChangedCallbackWrapper.call(A,Q,b,f);else{var G;(G=A.attributeChangedCallback)==null||G.call(A,Q,b,f)}};
eIF=function(A){var Q=[],b=[];A=_.F(A);for(var f=A.next();!f.done;f=A.next())f=f.value,f instanceof Element&&f.isConnected&&b.push(f),f instanceof DocumentFragment?Q.push.apply(Q,_.ri(Array.from(f.children))):Q.push(f);return[Q,b]};
hIy=function(A){return!(A instanceof Element)&&A.node instanceof Element?A.node:A};
zIf=function(A,Q){var b=Q?["children"].concat(_.ri(Q)):["children"];Q=[];b=_.F(b);for(var f=b.next();!f.done;f=b.next()){var a=f.value;if(A.hasOwnProperty(a)){f=A[a];f=typeof f==="function"?f():f;f=Array.isArray(f)?f:[f];f=Mq(f).flat();if(a!=="children"){a=bnC(a);for(var T=_.F(f),G=T.next();!G.done;G=T.next())G=G.value,G instanceof Element&&G.setAttribute("slot",a)}Q.push(f)}}Q.length===0?A=[]:(A=Mq(_.X("div",null,Q)),A=Array.from(A.childNodes));return A};
uqF=function(A,Q,b){var f={};_.tk(function(){var a={},T;for(T in Q)if(Q.hasOwnProperty(T)){var G=void 0,p=void 0;if(!(((G=b.slotProps)==null?0:G.includes(T))||T==="children"||((p=b.callbackProps)==null?0:p.includes(T))||T==="ref")&&(G=_.o7(Q[T]),f[T]!==G)){f[T]=G;p=void 0;var P=(p=A.hostElement)!=null?p:A;wg6.has(T)&&(P[T]=G);a[T]=G}}Mz(function(){if(A.setProperties)A.setProperties(a);else for(var U=_.F(Object.entries(a)),L=U.next();!L.done;L=U.next()){var M=_.F(L.value);L=M.next().value;M=M.next().value;
A[L]=M}})})};
yK9=function(A,Q,b,f){var a=zIf(b,f.slotProps),T=(0,_.SK)(A);a=_.F(a);for(var G=a.next();!G.done;G=a.next())T.appendChild(G.value);uqF(Q,b,f);f=_.F(f.callbackProps||[]);a=f.next();for(T={};!a.done;T={kebabEventName:void 0,eventListener:void 0},a=f.next())G=a=a.value,String(a).substring(0,2)==="on"&&b[G]?(T.kebabEventName=bnC(String(a).substring(2)),T.eventListener=b[G],A.addEventListener(T.kebabEventName,T.eventListener),_.Cz(function(L){return function(){A.removeEventListener(L.kebabEventName,L.eventListener)}}(T))):
Q[G]=b[G];
if(b.ref){b=_.F(Z9J(b.ref));var p=b.next().value,P=b.next().value,U=Q.attached.bind(Q);Q.attached=function(){p(A);U()};
_.Cz(function(){P()})}};
Z9J=function(A){if(typeof A==="function"){var Q;return[function(b){Q=A(b)},
function(){var b;(b=Q)==null||b()}]}if(!A.onRender||!A.onUnmount)throw Error("Rg");
return[A.onRender,A.onUnmount]};
Nt6=function(A,Q,b,f,a){f=f===void 0?{}:f;var T=YRb,G=!1;T?(G=!0,YRb=void 0):(DEy=Q,T=document.createElement(Q),DEy=void 0);var p=T;p.usePatchedLifecycles=!0;p.lifecycleIsConnected=!1;T.loggingStatus={};var P=$EF(A,Q,T,f,a);_.Cz(function(){p.lifecycleIsConnected&&(p.lifecycleIsConnected=!1,P.disconnectedCallback())});
G||(_.K("sink_wrapper_disable_runtime_shadycss")&&(T.__noInsertionPoint=!0),yK9(T,P,b,f));return T};
$EF=function(A,Q,b,f,a){a=a===void 0?O9Y:a;sK4[Q]!=null||(sK4[Q]=a(A,Q,f==null?void 0:f.getTemplate,f));var T=sK4[Q],G=T.ctor;a=T.getInitialMethods;var p=T.getPropsToForwardBeforeReady;A=T.getPropsToForwardBeforeRegister;f=T.shouldForwardProp;var P=T.observedAttributes,U=T.shouldLog,L=G(b,{beforeReady:function(){var M=L;M._takeAttributes?M._takeAttributes():M.setPropertiesFromInitialAttributeValues&&M.setPropertiesFromInitialAttributeValues();M=_.F(p(b.polymerController));for(var l=M.next();!l.done;l=
M.next()){var J=_.F(l.value);l=J.next().value;J=J.next().value;I9C(b,l,J);U(Q)&&!Te(l)&&qRW(b.polymerController,l)}b.polymerController=Z8U(L,Q)}});
b.polymerController=L;b.polymerController.observedAttributes=P;T=_.F(L.getExtraMethodsToForward());for(G=T.next();!G.done;G=T.next())P=_.F(G.value),G=P.next().value,P=P.next().value,H99(b,G,P);a=_.F(a());for(T=a.next();!T.done;T=a.next())T=T.value,f(T)&&H99(b,T),U(Q)&&!Te(T)&&CZi(L,T);A=_.F(A());for(f=A.next();!f.done;f=A.next())a=_.F(f.value),f=a.next().value,a=a.next().value,I9C(b,f,a);return L};
A6Y=function(A,Q){return B8===Q?(A.isInert=!0,B8="",!0):mEb===Q?(A.isInert=!0,mEb="",!0):!1};
Qhb=function(A){var Q=p0;p0=A;return Q};
fP6=function(A){if(P8.has(A))mEb=A;else if(Xp.has(A)&&p0&&ble(p0)===A){var Q;(Q=p0)._numRenders!=null||(Q._numRenders=0);p0._numRenders++;if(p0._numRenders>1)throw Error("Sg");return p0}};
aP4=function(A){P8.has(ble(A))?mEb=ble(A):Xp.has(ble(A))&&p0!==A&&(A._isInert=!0)};
ble=function(A){var Q;return(Q=A==null?void 0:A.tagName.toLowerCase())!=null?Q:""};
Tay=function(A,Q){if(A.componentType===O7)throw Error("Tg");Xp.add(Q);var b=function(){var f=HTMLElement.call(this)||this;f.is=Q;if(DEy===Q)return f.isInert=!0,f;f.createElement();return f};
_.O(b,HTMLElement);b.prototype.createElement=function(){if(!this.isInert){YRb=this;var f=_.F(_.Ul9(function(){return _.X(A,null)})).next().value;
YRb=void 0;y_W(this);return f}};
customElements.define(Q,b)};
FAb=function(A,Q,b,f,a){A.prototype.is=Q;(f==null?0:f.useSink)?dDX(A,Q,b,f,a):(b=O9Y(A,Q,b,f),oIy(b,Q));return A};
dDX=function(A,Q,b,f,a){EIb();var T=_.aP(function(G){return Nt6(A,Q,G,Object.assign({},f,{getTemplate:b}),a)},"a");
T.debugName=Q+" (CoW wrapped)";Tay(T,Q);return T};
Baf=function(A){return!Gue.has(A)};
XxF=function(A,Q,b,f){function a(){if(!M){for(var l=new Set(pxf),J=_.F(T.behaviors),n=J.next();!n.done;n=J.next()){n=n.value;for(var t=_.F(Object.getOwnPropertyNames(n)),g=t.next();!g.done;g=t.next()){g=g.value;var e=void 0,x=(e=Object.getOwnPropertyDescriptor(n,g))==null?void 0:e.value;x&&x instanceof Function&&(!U[g]||_.K("polymer_forward_method_killswitch"))&&l.add(g)}}J=_.F(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(n=J.next();!n.done;n=J.next())t=_.F(n.value),n=t.next().value,
t=t.next().value,t.value instanceof Function&&l.add(n);M=l}return M}
var T=yOe({is:Q,disableElementRegistration:!1,getTemplate:b,providers:f==null?void 0:f.providers,reactivityMode:f==null?void 0:f.reactivityMode},A);if((f==null?0:f.allowedProps)||(f==null?0:f.allowedPropsFromBehaviors)){var G,p;T.allowedProps=[].concat(_.ri((G=f.allowedProps)!=null?G:[]),_.ri((p=f.allowedPropsFromBehaviors)!=null?p:[]))}var P=E0i(T,A);Q=P.observedAttributes;var U={};b=_.F(T.reactiveSchemas);for(f=b.next();!f.done;f=b.next())if(f=f.value,f.type==="signal")U[f.propertyKey]={readOnly:f.readOnly},
f.readOnly&&(U[M0U(f.propertyKey)]={readOnly:!0});else if(f.type==="compute"||f.type==="computeWithMethod"||f.type==="redux")U[f.propertyKey]={readOnly:!0};var L=T.reactiveSchemas.length,M;return{ctor:function(l,J){l=new P(l);l.beforeReady=J.beforeReady;return l},
props:U,observedAttributes:Q,getInitialMethods:a,getPropsToForwardBeforeRegister:function(){for(var l=[],J=new Set,n=_.F(Ps6),t=n.next();!t.done;t=n.next())t=t.value,l.push([t,t!=="observers"&&t!=="properties"]),J.add(t);n=_.F(Object.keys(U));for(t=n.next();!t.done;t=n.next())t=t.value,l.push([t,U[t].readOnly]),J.add(t);n=a();t=_.F(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var g=t.next();!g.done;g=t.next())g=g.value,!Baf(g)||n.has(g)||J.has(g)||(l.push([g,!1]),J.add(g));l.push(["allowedProps",
!0]);return l},
getPropsToForwardBeforeReady:function(l){var J=[];l=_.F(Object.keys(l));for(var n=l.next();!n.done;n=l.next()){n=n.value;var t=a();Baf(n)&&!t.has(n)&&J.push([n,!1])}l=_.F(T.reactiveSchemas.slice(L));for(n=l.next();!n.done;n=l.next())n=n.value,n.type!=="compute"&&n.type!=="computeWithMethod"&&n.type!=="redux"&&n.type!=="signal"||J.push([n.propertyKey,n.type==="signal"?n.readOnly:!0]);return J},
shouldForwardProp:Baf,shouldLog:Hj}};
_.W=function(A,Q,b,f){var a,T,G=(T=(a=f)==null?void 0:a.mode)!=null?T:0;f!=null||(f={});var p;(p=f).reactivityMode!=null||(p.reactivityMode=0);G===1&&_.pJ("creator_poly_si_disable_list").includes(Q)&&(G=2);return G===1?FAb(A,Q,b,Object.assign({},f,{useSink:!0}),XxF):FAb(A,Q,b,Object.assign({},f,{useSink:G===2}))};
_.SM=function(){return function(A,Q,b,f){var a,T,G=(T=(a=f)==null?void 0:a.mode)!=null?T:2;f!=null||(f={});var p;(p=f).reactivityMode!=null||(p.reactivityMode=0);if(G===0)throw Error("Ug`"+G);return dDX(A,Q,b,f,G===1?XxF:void 0)}};
_.UG=function(A){return _.K("creator_poly_si_killswitch")?!1:_.K("force_all_poly_si_batches")&&(A==="poly_si_all_on_test_check"||A==="creator_poly_si_batch_050"?0:A)||document.documentElement.hasAttribute("use-signals")?!0:!A||_.K(A+"_holdback_enabled")&&_.K("kevlar_polysi_holdback")?!1:_.K(A)};
L0=function(A){return A?A.icon?A.icon.iconType.toLowerCase():A.customThumbnail?"member":"":""};
SIe=function(A){if(!A)return"";A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())if((Q=Q.value)&&Q.liveChatAuthorBadgeRenderer&&(Q=L0(Q.liveChatAuthorBadgeRenderer))&&Q!=="verified")return Q;return""};
UDC=function(A,Q){if(!A)return null;var b;return((b=A.find(function(f){return f&&f.liveChatAuthorBadgeRenderer?L0(f.liveChatAuthorBadgeRenderer)===Q:!1}))==null?void 0:b.liveChatAuthorBadgeRenderer)||null};
_.J6W=function(A){var Q=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;A=LAe(A);Q=LAe(Q);var b=MZU(A.hex);Q=MZU(Q.hex);var f=Q[0]/255;var a=Q[1]/255,T=Q[2]/255,G=Math.max(f,a,T),p=Math.min(f,a,T),P=0,U=0,L=.5*(G+p);G!=p&&(G==f?P=60*(a-T)/(G-p):G==a?P=60*(T-f)/(G-p)+120:G==T&&(P=60*(f-a)/(G-p)+240),U=0<L&&L<=.5?(G-p)/(2*L):(G-p)/(2-2*L));f=[Math.round(P+360)%360,U,L];b=lP9(b,Q);for(A=KAf(A.hex);b<4.5;){A=f[2]>=.5?A.darker((4.5-b)/2):A.brighter((4.5-b)/2);b=A.toString();
a=il4(b);if(!a.length)throw Error("Rd`"+b);b=a;b=lP9(b,Q)}return A.hex()};
lP9=function(A,Q){A=_.fxi(A);Q=_.fxi(Q);return(Math.max(A,Q)+.05)/(Math.min(A,Q)+.05)};
_.M7=function(A){return"#"+("000000"+(A&16777215).toString(16)).slice(-6)};
_.VZ4=function(A){for(var Q=0,b=0;b<A.length;b++)Q=A.charCodeAt(b)+((Q<<5)-Q);A="#";for(b=0;b<3;b++)A+=("00"+(Q>>b*8&255).toString(16)).slice(-2);return A};
Ol6=function(A){A=(A||"").split(":");A.length===1&&A.unshift("yt-icons");A[1]=A[1].toLowerCase();return A};
qIb=function(A,Q){var b=(Q=Q===void 0?!1:Q)?nxf:kuy,f=Q?IPC:Hl9;A.getIconNames().forEach(function(a){a=Q?a:a.substring(a.indexOf(":")+1);A.name==="yt-icons"?Cs9.add(a):a.includes("-filled")?b.add(a):f.add(a)})};
le=function(A,Q,b,f){b=b===void 0?!1:b;f=f===void 0?!1:f;var a,T,G;return _.B(function(p){if(p.nextAddress==1)return p.yield(oxi,2);if(f)return p.return(Cs9.has(A));a=b?nxf:kuy;T=b?IPC:Hl9;return Q?(G=A.includes("-filled")?A:A.concat("-filled"),p.return(a.has(G))):p.return(T.has(A))})};
_.jh6=function(A){if(tZ6(A))return A;var Q=A=A.toLowerCase();(A=r6b.get(A))&&(Q=A);return Q};
_.K0=function(A){if(tZ6(A))return A.toString();var Q=RXW.get(A);if(Q)return Q;Q=A.toLowerCase();var b="yt-icons",f=Q.replace(/_/g,"-");switch(A){case "MY_CHANNEL":Q="account_circle";break;case "ADD_TO_LIBRARY":Q="add";break;case "ALERT_WARN_RED":Q="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":Q="person_music";break;case "BLOCK_USER":Q="block";break;case "CAPTIONS":Q="closed_caption";break;case "CLOSED_CAPTION":b="av";Q="closed-caption";break;case "COLLECTION":b="maps";Q="layers";break;case "CONTACT":b=
"icons";Q="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":b="ytcp-icons";Q=f.split("creator-studio-")[1];break;case "DISMISSAL":Q="close";break;case "DO_NOT_DISTURB":Q="block";break;case "DOGFOOD":b="icons";Q="pets";break;case "DRAFT":Q="paper_corner_folded";break;
case "EMPTY_LIKE":Q="like_outline";break;case "EXIT_APP":Q="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":Q=f;break;case "GAMES":b="ytg";Q="my-games";break;case "GO_TO_PAGE":Q="arrow-forward";break;case "GROUP":b="social";break;case "HIDE":Q="not_interested";break;case "INPUT_COMPONENT":b="icons";Q="settings-input-component";break;case "KIDS_BLOCK":Q="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":b="ytg";Q="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":b=
"ytg";Q="membership-post-purchase";break;case "MULTIVIEW":Q="screen_multi_view";break;case "MY_LOCATION":b="maps";Q=f;break;case "NOTIFICATIONS_INBOX":Q="NOTIFICATIONS";break;case "NEXT":Q="chevron_right";break;case "OFFLINE":Q="power-settings-new";break;case "PAUSE":b="miniplayer";break;case "PAYMENT":b="icons";break;case "PHONE_DOWNLOAD":Q="phone_download";break;case "PREMIUM_STANDALONE":b="yt-logos";Q="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":b="yt-logos";Q="premium_standalone_cairo";
break;case "QUESTION_ANSWER":Q="question_answer";break;case "REDEEM":b="icons";Q="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":Q="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":Q="library_add";break;case "SCHOOL":b="yt-sys-icons";Q="creator_academy";break;case "SETTINGS_LIGHT":Q="settings_applications";break;case "SETTINGS_MATERIAL":Q="settings";break;case "SEARCH_HISTORY":Q="watch_history";break;case "SHOPPING_BAG":Q="bag";break;case "SOCIAL":case "PEOPLE":b=
"yt-icons";Q="people";break;case "STAFF_PICK":b="ytg";Q="spotlight";break;case "START_DVR":Q="add";break;case "STOP_DVR":b="av";Q="stop";break;case "TAB_LIKED":Q="like";break;case "TAB_INBOX":Q="mail";break;case "TERMS_OF_SERVICE":b="icons";Q="description";break;case "TRENDING":Q="fire";break;case "UNBLOCK_USER":Q="remove";break;case "UNPLUGGED_DARK_THEME":b="image";Q="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":Q="live";break;case "UNPLUGGED_SPORTS":b="ytu";Q="visibility-off";break;
case "VIDEOS":b="av";Q="play-circle-filled";break;case "YOUTUBE":b="yt-logos";Q="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":b="yt-logos-ext";Q="yt-logo-red-updated";break;case "YOUTUBE_LOGO":b="yt-logos-ext";Q="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":b="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":b="shorts";Q=f;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":b="yt-sys-icons";Q="youtube_improve_tv";break;case "OUTLINE_BAG":b=
"yt-sys-icons";Q="bag";break;case "QUEUE_PLAY_LAST":b="yt-sys-icons";Q="list_queue_last";break;case "SLASH_CIRCLE_LEFT":Q="slash_circle_left";break;case "SPEED_1_POINT_2X":Q="1_point_2x";break;case "SPEED_1_POINT_5X":Q="1_point_5x";break;case "SPEED_1_POINT_8X":Q="1_point_8x";break;case "SPEED_POINT_2X":Q="point_2x";break;case "SPEED_POINT_5X":Q="point_5x";break;case "SPEED_POINT_8X":Q="point_8x";break;case "SPEED_1X":Q="1x";break;case "SPEED_2X":Q="2x";break;case "TAB_BOOKMARK":Q="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":b="yt-sys-icons";Q="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":b="yt-sys-icons";Q="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":b="yt-sys-icons",Q="tic_tac_toe"}Q=b+":"+Q;RXW.set(A,Q);return Q};
tZ6=function(A){var Q;_.K("kevlar_use_wil_icons")?Q=!!_.fJ().resolve(_.ie).resolveIcon({iconName:A.toString()}):Q=!1;return Q};
_.V0=function(A,Q,b,f){b=b===void 0?{}:b;f=f===void 0?!1:f;b===null&&(b={});var a=_.pJ("kevlar_command_handler_command_banlist");a=_.F(a);for(var T=a.next();!T.done;T=a.next())if(T=A?A.hasOwnProperty(T.value):void 0,T)return!1;a=_.V(A.commandMetadata,_.KD);return f&&a!=null&&a.url?!1:!Q.disableCommandHandlerOverride&&_.J8.instance?(f=_.J8.instance,b.form||(b.form={element:Q}),b.form.element||(b.form.element=Q),!b.clickedVisualElement&&Q.visualElement&&(b.clickedVisualElement=Q.visualElement),f.resolveCommand(A,
b),!0):!1};
gxF=function(A,Q){A=OG(A);for(var b=_.F(A.visibilityMonitorKeys||[]),f=b.next();!f.done;f=b.next())Q.unobserveByKey(f.value);A.visibilityMonitorKeys=void 0};
vxy=function(A,Q){if(_.WR()){if(_.K("kevlar_vimio_use_shared_monitor"))eXe(A,Q.data);else if(!eXe(A,Q.data))return;var b=Q.data,f=hXb(b);if(_.K("enable_client_ve_spec_logging"))gxF(A,Q.observer);else{var a=OG(A);a.trackedParams&&a.trackedParams!==f&&gxF(A,Q.observer)}a=OG(A);!b||a.data&&a.data===b||(a.data=b);WAX(A,Q);a.trackedParams=f}};
WAX=function(A,Q){var b=Q.observer;if(!b&&_.K("web_skip_missing_vimio_observer")){var f,a;_.Wv(new _.IO("VisibilityObserver is not defined.",A.tagName,A.trackedParams,(f=Q.data)==null?void 0:f.trackingParams,(a=Q.data)==null?void 0:a.loggingDirectives))}else{var T=Q.layer,G=Q.visibilityCallback||function(){},p=Q.prescanCallback,P=OG(A);
f=[];Q.showOption&&f.push(b.observe(A,function(){Q.skipLogging&&Q.skipLogging()||_.n0().reportShown(P,void 0,T);G(!0)},Q.showOption));
Q.hideOption&&f.push(b.observe(A,function(){_.n0().reportHidden(P,void 0,T);G(!1)},Q.hideOption));
Q.prescanOption&&p&&f.push(b.observe(A,function(){p()},Q.prescanOption));
P.visibilityMonitorKeys=f}};
eXe=function(A,Q){A=OG(A);if(A.visualElement&&!Q)return!0;if(!Q)return!1;var b=!1;if(_.K("enable_client_ve_spec_logging")){var f,a;b=!!((f=Q.loggingDirectives)==null?0:(a=f.clientVeSpec)==null?0:a.uiType)}f=hXb(Q);if(!f&&!b)return!1;_.K("mweb_component_visibility_logging")&&(A.veContainer||(A.veContainer={}),A.veContainer.trackingParams=f);if(A.trackedParams&&A.trackedParams===f)return!1;var T;if(_.K("enable_client_ve_spec_logging")&&((T=A.visualElement)==null?0:T.isClientVe())){var G;T=(G=A.visualElement)==
null?void 0:G.getAsJspb();var p,P,U,L;if(_.Tz(T,2)===((p=Q.loggingDirectives)==null?void 0:(P=p.clientVeSpec)==null?void 0:P.uiType)&&_.Tz(T,3,-1)===((U=Q.loggingDirectives)==null?void 0:(L=U.clientVeSpec)==null?void 0:L.elementIndex))return!1}if(_.K("enable_client_ve_spec_logging")){var M,l;!A.visualElement&&((M=Q.loggingDirectives)==null?0:(l=M.clientVeSpec)==null?0:l.uiType)&&(p=Q.loggingDirectives.clientVeSpec,Q=p.uiType,G=p.elementIndex,p=p.clientYoutubeData,A.visualElement=_.kz(_.IP(),{veType:Q,
elementIndex:G,clientYouTubeData:p}))}return!0};
hXb=function(A){if(A==null?0:A.rendererContext){var Q=_.V(A.rendererContext,_.H8);if(Q==null?0:Q.loggingDirectives)return Q.loggingDirectives.trackingParams}return(A==null?0:A.loggingDirectives)?A.loggingDirectives.trackingParams:A==null?void 0:A.trackingParams};
OG=function(A){var Q;return(Q=A.polymerController)!=null?Q:A};
zXi=function(A){_.n0();if(_.cG(C0().JSC$12451_elementShouldLogGesture).bind(C0())(A,4)){Ex4(A);var Q=xDe(A);c6e.set(A,Q)}};
Ex4=function(A){c6e.has(A)&&(c6e.get(A).cancel("untrack hover element"),c6e.delete(A))};
xDe=function(A){var Q,b=[],f=!1,a=new _.M3(function(T,G){q7(A,"mouseenter",_.cG(function(){var p,P,U;return _.B(function(L){if(L.nextAddress==1)return Q=(0,_.f4)(),p=wxe(A),b.push(p),P=ux9(A,function(){f=!0;G(Error("Vg"))}),L.yield(p,2);
if(L.nextAddress!=3)return P&&oP(P),U=Zl4(A),b.push(U),L.yield(U,3);T();_.Oi(L)})}))});
a.then(function(){var T=(0,_.f4)()-Q;T=Math.round(T);if(!(500>T||6E5<=T)){var G=A.getScreenLayer?A.getScreenLayer():void 0;G=_.WR(G)||"";var p=y6e(_.n0(),A);_.NB(G,A.visualElement?A.visualElement:_.t8(p),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:T}})}zXi(A)},function(){rF&&(rF(),rF=null);
f&&(Ex4(A),zXi(A))});
return a};
wxe=function(A){var Q;return(new _.M3(function(b,f){rF=function(){f(Error("Wg"))};
Q=_.j7.debounce(_.cG(function(){oP(a);b()}),1,100);
var a=_.jM(A,"mousemove",Q)})).thenCatch(function(){var b=_.j7.cancelDebouncedJobMap.get(Q);
b&&_.j7.cancelJob(b)})};
Zl4=function(A){var Q;return(new _.M3(function(b,f){rF=function(){f(Error("Xg"))};
Q=q7(A,"mouseleave",_.cG(function(){b()}))})).thenCatch(function(){oP(Q)})};
ux9=function(A,Q){return q7(A,"mouseleave",_.cG(Q))};
DDe=function(A){YIU&&_.RP.cancel(YIU);YIU=_.RP.run(function(){_.Bn(A,"yt-visibility-refresh");YIU=0})};
$DU=function(A){A=Number(A);return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
she=function(A){if(!A)return!1;if(_.V(A,_.NaX))return!0;var Q;if(A=(Q=_.V(A,_.LD))==null?void 0:Q.commands)for(Q=_.F(A),A=Q.next();!A.done;A=Q.next())if(_.V(A.value,_.NaX))return!0;return!1};
mDi=function(A){var Q=!0;Q=Q===void 0?!0:Q;if(!A.useSignals&&!A.experimentalPropertiesChanged||_.K("experimental_templating_behavior_nopatch_killswitch")){var b=A._propertiesChanged;A._propertiesChanged=function(f,a,T){Q?A.debounceRender():A.doRender();b&&b.call(A,f,a,T)}}};
AAJ=function(A,Q){if(A.useSignals||A.experimentalPropertiesChanged)if(_.K("experimental_templating_behavior_nopatch_killswitch"))A.experimentalPropertiesChanged=function(){};
else return;var b=new Set,f=[A].concat(_.ri(A.behaviors));f=_.F(f);for(var a=f.next();!a.done;a=f.next()){a=a.value;for(var T in a.properties)b.has(T)||(A._addPropertyEffect(T,"function",Q),b.add(T))}};
QfU=function(){var A=Polymer.Element,Q=A._prepareTemplate;A._prepareTemplate=function(){Q.call(this);var b=this.prototype;if(b.experimentalTemplatingInUse&&b.experimentalTemplatingInUse()&&b.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.en(Error("Yg"));else{b=this.template.content.childNodes;for(var f=b.length-1;f>=0;f--){var a=b[f];a.nodeName!=="STYLE"&&a.nodeName!=="LINK"&&a.nodeName!=="SCRIPT"&&a.nodeName!=="#comment"&&a.remove()}}}};
bXF=function(A){var Q=!0;Q=Q===void 0?!0:Q;QfU();var b=A.ready;A.ready=function(){this._template=null;b.call(this)};
AAJ(A,Q?A.debounceRender:A.doRender)};
aAb=function(A,Q,b){if(b===null||b===void 0)return b;var f=ffA(A.tagName.toLowerCase(),Q,function(){throw Error("Ob");});
if(f===null)return b;f=fAF[f];var a;if((a=f.isUnwrappable)==null?0:a.call(f,b)){if(f.unwrap)return f.unwrap(b);throw Error("ah");}return f.filterString?f.filterString(A.tagName,Q,String(b)):b};
TDU=function(A,Q,b){var f=Q[Q.length-1]!=="$",a=aAb(A,Q,b);if(f)if(typeof a==="function"&&Q.startsWith("reactiveon")&&Q===Q.toLowerCase()){var T=$$;XtA(A,Q.slice(8),function(G){rY(T,function(){a(G)})})}else A[Q]=a;
else b=a==null?null:String(a),gY(A,Q.slice(0,-1),b)};
eM=function(A){dmi.length===0&&requestAnimationFrame(function(){setTimeout(function(){var Q=dmi.slice();dmi.length=0;Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;try{b()}catch(f){_.gF(f)}}})});
dmi.push(A)};
Fhf=function(A){if(A){var Q=A.component;if(Q){var b;Q==null||(b=Q.events)==null||b.publish("DISCONNECTED");var f;Q==null||(f=Q.onDisconnected)==null||f.call(Q)}var a,T;(a=A.__spec)==null||(T=a.didUnmount)==null||T.call(a);for(Q=0;Q<A.childNodes.length;Q++)Fhf(A.childNodes[Q])}};
W8=function(A,Q,b){var f=Q&&Q.key,a=yd;a[0]=A;a[1]=f;a[2]=void 0;for(var T in Q)Q.hasOwnProperty(T)&&(A=Q[T],f=YA,f.push(T),f.push(A));Q=yd;a:{if(T=yd[2])for(A=0;A<T.length;A+=2)if(T[A]==="nonce"){T=T[A+1];break a}T=""}T=IfA(Q[0],Q[1],T);A=v_(T);f=Q[2];if(!A.staticsApplied&&(A.staticsApplied=!0,f&&f.length))if((a=A._attrsArr)&&a.length){for(a=0;a<f.length;a+=2)h8[f[a]]=a+1;a=A._attrsArr||(A._attrsArr=P0F(0));for(var G=0,p=0;p<a.length;p+=2){var P=a[p],U=a[p+1],L=h8[P];L?f[L]===U&&delete h8[P]:(a[G]=
P,a[G+1]=U,G+=2)}R7(a,G);for(var M in h8)lfC(T,M,f[h8[M]],b0),delete h8[M]}else for(M=0;M<f.length;M+=2)lfC(T,f[M],f[M+1],b0);jNY(T,A,b0);R7(Q,0);b&&b(E7);Hk9()};
G39=function(A){var Q=A.toString().toLowerCase();return function(b,f){W8(Q,b,f)}};
_.EG=function(A,Q,b){b===void 0?delete A[Q.name]:A[Q.name]=b};
_.xz=function(A){var Q={androidIncludeFontPadding:!1},b=0,f=[],a=[],T=[];if(A.simpleText)return Q.content=A.simpleText,Q;if(A.runs===void 0)return Q.content="",Q;A=_.F(A.runs);for(var G=A.next();!G.done;G=A.next()){G=G.value;var p=G.text,P=void 0,U=(P=p)==null?void 0:P.length;if(p&&U){f.push(p);if(G.bold||G.italics||G.strikethrough||G.underline||G.textColor!=null&&G.textColor!==0||G.deemphasize){p=a;P=p.push;var L={startIndex:b,length:U};G.bold&&(L.weightLabel="FONT_WEIGHT_MEDIUM");G.italics&&(L.italic=
!0);G.strikethrough&&(L.strikethrough="LINE_STYLE_SINGLE");G.underline&&(L.underline="LINE_STYLE_SINGLE");G.textColor!=null&&G.textColor!==0?document.documentElement.hasAttribute("dark")?L.fontColor=G.darkModeTextColor||G.textColor:L.fontColor=G.textColor:G.deemphasize&&(document.documentElement.hasAttribute("dark")?L.fontColor=parseInt("ff"+BDY("#aaa").substring(1),16):L.fontColor=parseInt("ff"+BDY("#606060").substring(1),16));P.call(p,L)}G.navigationEndpoint&&(p=T,P=p.push,L={startIndex:b,length:U,
onTap:{innertubeCommand:G.navigationEndpoint}},G.loggingDirectives&&_.EG(L,pf9,G.loggingDirectives),P.call(p,L));b+=U}}Q.content=f.join("");Q.styleRuns=a.length?a:void 0;Q.commandRuns=T.length?T:void 0;return Q};
XfJ=function(A){if(A==null||!A.runs)return!0;A=_.F(A.runs);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.bracket||Q.errorUnderline||Q.deemphasize||_.V(Q,c8)||_.V(Q,PRX))return!1;return!0};
Sa6=function(A,Q){return function(b){var f=Q.unit;if(f!==b)throw Error("dh`"+A+"`"+f+"`"+b);return Q}};
ze=function(A){if(!((A==null?0:A.value)&&(A==null?0:A.unit)))return"";switch(A.unit){case "DIMENSION_UNIT_FRACTION":var Q="%";break;default:Q="px"}A=A.value;Q==="%"&&(A*=100);return""+A+Q};
Umy=function(A){try{return A()}catch(Q){_.Wv(Q)}};
_.ue=function(A){var Q=_.V(A,_.wF);if(Q)return Q;if((Q=_.V(A,LhF))&&Q.commands)return MXJ(Q.commands);if((Q=_.V(A,lAF))&&Q.commands)return MXJ(Q.commands);if((A=_.V(A,KhC))&&A.identifier&&A.command&&(iXJ||(iXJ=[]),!iXJ.includes(A.identifier)))return iXJ.push(A.identifier),_.V(A.command,_.wF)};
MXJ=function(A){if(A.length!==0){var Q=[];A=_.F(A);for(var b=A.next();!b.done;b=A.next())(b=_.ue(b.value))&&Q.push(b);return{commandExecutorCommand:{commands:Q}}}};
_.y0=function(A){var Q=A.defaultTarget,b=A.elementConfig,f=A.elementsCommand,a=A.skipOnClick,T=A.forceNewState,G=A.additionalCommandArgs,p=A.innertubeCommand||_.ue(f);if(p){A={};var P=JAb(p);f=P.navigatingCommand;P=P.href;f&&P?(A.href$=P,VXC(A,f,P,Q),_.K("web_atagconfig_pointerdown")&&OXC(A,f),T&&(A["force-new-state$"]=!0)):(A.role$="button",A.href$="javascript:void(0);");_.V(p,naY)&&(A["aria-haspopup$"]=!0);a||(A.onclick=function(U){var L={};if(k3W(U)){var M=(G==null?void 0:G.clickedVisualElement)||
(G==null?void 0:G.getClickedVisualElement)&&G.getClickedVisualElement();M&&(L={clickedVisualElement:M});L=Object.assign({},{form:{element:U.target,event:U,createScreenConfig:L}},G);U.preventDefault();_.Z3(p,L)}});
return Object.assign({},b,A)}};
IAi=function(A){if(A.length){if(A.length===1)return A[0];var Q={};_.EG(Q,_.LD,{commands:A});return Q}};
Yz=function(A){return A&&A.href$!=="javascript:void(0);"};
JAb=function(A){var Q,b=((Q=_.V(A,_.LD))==null?void 0:Q.commands)||[A];A=_.F(b);for(Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var f=void 0,a=void 0;b=(a=_.V((f=Q)==null?void 0:f.commandMetadata,_.KD))==null?void 0:a.url;_.K("web_remove_web_navigation_endpoint_data")||(f=void 0,b=b||((f=_.V(Q,HXC))==null?void 0:f.url));if(b&&b!=="/service_ajax"){if(f=g$(b,CR4))return A=_.r$(f),{navigatingCommand:Q,href:A};_.Wv(new _.IO("AttributedString URL could not be sanitized",b))}}return{}};
k3W=function(A){return A.button!==void 0?A.button===0&&!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey):!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey)};
VXC=function(A,Q,b,f){b=!A$(b);var a,T,G;if((a=_.V(Q,_.nT))!=null&&a.nofollow||(T=_.V(Q,_.sv))!=null&&T.nofollow||(G=_.V(Q,_.y_))!=null&&G.nofollow||b)A.rel$="nofollow";var p;Q=((p=_.V(Q,_.y_))==null?void 0:p.target)==="TARGET_NEW_WINDOW"?"_blank":f===void 0?"":f;A.target$=Q};
OXC=function(A,Q){Q.clickTrackingParams&&(A.params={itct:Q.clickTrackingParams});A.onpointerdown=function(b){_.qaA(b)};
A._data=Q};
_.oaF=function(A){(A.loggingUrls||[]).forEach(function(Q){wO(Q.baseUrl,Q.attributionSrcMode)})};
_.qaA=function(A){var Q=A.currentTarget;A=Umy(function(){return Q.href});
var b=Q.params;A&&_.bi(A,b||{},8,!0)};
_.D3=function(A,Q){(A=_.ue(A))&&_.Z3(A,Q)};
_.Z3=function(A,Q){HDi(function(b){Q?b.resolveCommand(A,Q):b.resolveCommand(A)})};
Rwf=function(A,Q){var b=["yt-core-attributed-string__link"];Q!=null&&Q.noLinkColor||((Q==null?0:Q.isOverlay)?b.push("yt-core-attributed-string__link--overlay-call-to-action-color"):b.push("yt-core-attributed-string__link--call-to-action-color"),(Q==null?0:Q.linkInheritColor)&&b.push("yt-core-attributed-string--link-inherit-color"));b={className:b.join(" "),tabindex$:"0"};var f=A.onTap||A.onLongPress;if(!f)return b;var a=tXA(A);a&&(b["aria-label$"]=a);Q=_.y0({elementsCommand:f,elementConfig:b,skipOnClick:!(Q==
null||!Q.skipOnClick),forceNewState:!0});A.onLongPress&&(f=new rAX(function(){var T=_.ue(A.onLongPress);T&&_.fJ().resolve(_.de).resolveCommand(T)}),Q&&jfb(f,Q));
return Q||b};
tXA=function(A){var Q,b;return(Q=A.onTapOptions)==null?void 0:(b=Q.accessibilityInfo)==null?void 0:b.accessibilityLabel};
gaC=function(A){var Q=A;A<=16777215&&(Q+=parseInt("ff000000",16));return _.w6(Q)};
ewF=function(A){var Q=A.isDarkTheme;var b=A.extension;A=A.runColor;var f=void 0;if(b=b==null?void 0:b.colorMap){Q=Q?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";b=_.F(b);for(var a=b.next();!a.done;a=b.next())if(a=a.value,Q===a.key){f=a.value;break}}f==null&&A&&(f=A);if(f)return gaC(f)};
$z=function(A){var Q=A.config;var b=A.image;var f=A.imageConfig;var a=A.imageWrapperConfig;var T=A.run;var G=A.tag;var p=A.textLength;var P=A.startIndex===void 0?0:A.startIndex;A=A.length;P===void 0&&(P=0);T={run:T,startIndex:P,endIndex:A!==void 0?P+A:p,tag:G};b&&(T.image=b);f&&(T.imageConfig=f);a&&(T.imageWrapperConfig=a);Q&&(T.config=Q);return T};
Whe=function(A,Q){var b=[];b.push("yt-core-attributed-string");(Q==null?0:Q.className)&&b.push(Q==null?void 0:Q.className);(Q==null?0:Q.ellipsisTruncate)?b.push("yt-core-attributed-string--ellipsis-truncate"):(Q==null?0:Q.noWrap)?b.push("yt-core-attributed-string--white-space-no-wrap"):(Q==null?0:Q.noPreWrap)||b.push("yt-core-attributed-string--white-space-pre-wrap");(Q==null?0:Q.linkInheritColor)&&b.push("yt-core-attributed-string--link-inherit-color");A.alignment&&b.push(hwb(A.alignment));A.lineBreakMode&&
b.push("yt-core-attributed-string--word-wrapping");return b.join(" ")};
vaC=function(A){if(A.weight)return A.weight;switch(A.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
EaF=function(A){switch(A){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"}};
hwb=function(A){switch(A){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"}};
mX=function(A,Q,b){var f=Q;A.content&&b&&(b=A.content.indexOf("\n"),b!==-1&&(f=Math.min(Q,b)));if(!A.content||A.content.length<=f)Q=A;else if(A.attachmentRuns||A.commandRuns||A.decorationRuns||A.styleRuns||A.paragraphStyleRuns){Q=N7(A.content,f);b=f;var a=A.attachmentRuns;if(a){var T=[];a=_.F(a);for(var G=a.next();!G.done;G=a.next())G=Object.assign({},G.value),G.startIndex===void 0||G.startIndex>=b||(G.length||(G.length=0),G.length+G.startIndex>b&&(G.length=b-G.startIndex),T.push(G));b=T}else b=void 0;
T=xmC(f,A.commandRuns);a=f;var p=A.decorationRuns;if(p){G=[];p=_.F(p);for(var P=p.next();!P.done;P=p.next()){P=P.value;var U=_.V(P.textDecorator,sG);if(U&&U.startIndex!==void 0&&!(U.startIndex>=a)){P=Object.assign({},P,{textDecorator:{highlightTextDecorator:Object.assign({},U)}});U=_.V(P.textDecorator,sG);if(!U.length||U.length+U.startIndex>a)U.length=a-U.startIndex;G.push(P)}}a=G}else a=void 0;G=xmC(f,A.styleRuns);if(p=A.paragraphStyleRuns)for(A=[],p=_.F(p),P=p.next();!P.done;P=p.next()){var L=P.value;
P=Object.assign({},L);if(!(P.startIndex===void 0||P.startIndex>=f)){if(!P.length||P.length+P.startIndex>f)P.length=f-P.startIndex;U=[];var M=void 0,l=void 0;if((M=L)==null?0:(l=M.listGroup)==null?0:l.listItems)for(L=_.F(L.listGroup.listItems),M=L.next();!M.done;M=L.next())if(M=Object.assign({},M.value),!(M.startIndex===void 0||M.startIndex>=f)){if(!M.length||M.length+M.startIndex>f)M.length=f-M.startIndex;U.push(M)}U.length>0&&(P.listGroup||(P.listGroup={}),P.listGroup=Object.assign({},P.listGroup,
{listItems:U}));A.push(P)}}else A=void 0;Q={content:Q,attachmentRuns:b,commandRuns:T,decorationRuns:a,styleRuns:G,paragraphStyleRuns:A}}else Q=Object.assign({},A,{content:N7(A.content,f)});return Q};
xmC=function(A,Q){if(Q){var b=[];Q=_.F(Q);for(var f=Q.next();!f.done;f=Q.next())if(f=Object.assign({},f.value),!(f.startIndex===void 0||f.startIndex>=A)){if(!f.length||f.length+f.startIndex>A)f.length=A-f.startIndex;b.push(f)}return b}};
N7=function(A,Q){var b=Q,f;if(f=b>0)f=A.charCodeAt(b-1),f=f>=55296&&f<=56319;f&&(b=A.charCodeAt(b),f=b>=56320&&b<=57343);f&&--Q;return A.substring(0,Q)};
uB4=function(A,Q,b){b=b===void 0?cAA:b;if(A){var f=_.fJ().resolve(aN);f||_.K("mweb_no_observer_killswitch")?vxy(A,{data:Q,observer:f,visibilityCallback:b,hideOption:zw6,showOption:wfC,layer:A.layer}):_.Wv(new _.IO("Warning: monitorVisibility called with null observer",A.tagName,Q==null?void 0:Q.loggingDirectives,Q==null?void 0:Q.trackingParams))}else _.Wv(new _.IO("Warning: monitorVisibility called with null element",Q==null?void 0:Q.loggingDirectives,Q==null?void 0:Q.trackingParams,Q==null?void 0:
Q.rendererContext))};
sfC=function(A,Q){var b=[],f=A.content.length,a,T=(a=_.fJ().resolve(_.bu(_.Af)))==null?void 0:a();if(A.paragraphStyleRuns){a=_.F(A.paragraphStyleRuns);for(var G=a.next();!G.done;G=a.next()){var p=b.push,P=p.apply;var U=void 0;G=G.value;if((U=G.listGroup)!=null&&U.listItems){U=[];b:switch(G.listGroup.listType){case "LIST_TYPE_BULLET":var L="ul";break b;default:L="span"}U.push($z({run:G,textLength:f,tag:L,config:{className:"yt-core-attributed-string__list-group"},startIndex:G.startIndex,length:G.length}));
L=_.F(G.listGroup.listItems);for(var M=L.next();!M.done;M=L.next()){M=M.value;b:switch(G.listGroup.listType){case "LIST_TYPE_BULLET":var l="li";break b;default:l="span"}U.push($z({run:G,textLength:f,tag:l,startIndex:M.startIndex,length:M.length}))}G=U}else G=[];P.call(p,b,_.ri(G))}}if(A.styleRuns&&(Q==null||!Q.noStyleRuns))for(a=_.F(A.styleRuns),p=a.next();!p.done;p=a.next()){p=p.value;P=ewF({extension:_.V(p.styleRunExtensions,ZXi),isDarkTheme:T===void 0?!1:T,runColor:p.fontColor});U=[];P&&U.push("yt-core-attributed-string--link-inherit-color");
p.italic&&U.push("yt-core-attributed-string--italicized");p.underline&&p.strikethrough?U.push("yt-core-attributed-string--underline-strikethrough",EaF(p.underline)):p.underline?U.push("yt-core-attributed-string--underlined",EaF(p.underline)):p.strikethrough&&U.push("yt-core-attributed-string--strikethrough",EaF(p.strikethrough));if(p.baselineOffset){a:switch(p.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":G="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":G=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:G="yt-core-attributed-string--baseline-offset-unknown"}U.push(G)}G=U.join(" ");U=p;L={};if(U.weight||U.weightLabel)L.fontWeight=vaC(U).toString();P&&(L.color=P);b.push($z({run:p,textLength:f,tag:"span",config:{className:G,style:L},startIndex:p.startIndex,length:p.length}))}if(A.decorationRuns)for(a=_.F(A.decorationRuns),p=a.next();!p.done;p=a.next())p=p.value,P={},p.textDecorator&&(L=p.textDecorator,G=T===void 0?!1:T,M=[],U=
_.V(L,sG),L=_.V(L,yAU),U?(L=M,M=L.concat,l=[],(G=ewF({extension:_.V(U.highlightTextDecoratorExtensions,YaA),isDarkTheme:G,runColor:U.backgroundColor}))&&l.push("background-color: "+G+";"),U.backgroundCornerRadius!==void 0&&l.push("border-radius: "+U.backgroundCornerRadius+"px;"),U.leftPadding!==void 0&&l.push("padding-left: "+U.leftPadding+"px;"),U.rightPadding!==void 0&&l.push("padding-right: "+U.rightPadding+"px;"),U.topPadding!==void 0&&l.push("padding-top: "+U.topPadding+"px;"),U.bottomPadding!==
void 0&&l.push("padding-bottom: "+U.bottomPadding+"px;"),M=M.call(L,l)):L&&(U=M,M=U.concat,G=G?"#2ba640":"#107516",G=L.color?gaC(L.color):G,G=["padding: 2px;","border-top: solid "+G+" 2px;","border-bottom: solid "+G+" 2px;","background: linear-gradient(135deg, "+G+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+G+" 3px, rgba(0, 0, 0, 0) 3px);"],M=M.call(U,G)),G=M.join(" "),P.style$=G,G=p.textDecorator,U=[],L=_.V(G,yAU),_.V(G,sG)?U.push("yt-core-attributed-string--highlight-text-decorator"):
L&&U.push("yt-core-attributed-string--bracket-text-decorator"),G=U.join(" "),P.className=G,P.dir="auto"),G=_.V(p.textDecorator,sG),U=_.V(p.textDecorator,yAU),L=_.V(p.textDecorator,sG),M=_.V(p.textDecorator,yAU),b.push($z({run:p,textLength:f,tag:"span",config:P,startIndex:(G==null?void 0:G.startIndex)||(U==null?void 0:U.startIndex)||0,length:(L==null?void 0:L.length)||(M==null?void 0:M.length)||0}));if(A.commandRuns&&(Q==null||!Q.noEndpoints))for(T=_.F(A.commandRuns),a=T.next();!a.done;a=T.next())a=
a.value,p=Rwf(a,Q),b.push($z({run:a,textLength:f,tag:"a",config:p,startIndex:a.startIndex,length:a.length}));if(A.attachmentRuns)for(A=_.F(A.attachmentRuns),T=A.next();!T.done;T=A.next()){T=T.value;P=p=void 0;a={className:"yt-core-attributed-string--inline-block-mod"};if((P=T.element)==null?0:P.properties){P=(p=T.element)==null?void 0:p.properties;p=[];P=_.V(P,Dm9);if(P==null?0:P.margin)P=P.margin,P.left&&p.push("margin-left: "+ze(P.left)+";"),P.right&&p.push("margin-right: "+ze(P.right)+";"),P.top&&
p.push("margin-top: "+ze(P.top)+";"),P.bottom&&p.push("margin-bottom: "+ze(P.bottom)+";");p=p.length!==0?p.join(" "):void 0;a.style$=p}G=void 0;p={alt:"",preserveHeight:!0,preserveWidth:!0};P=["yt-core-attributed-string__image-element"];if(T.alignment){a:switch(T.alignment){case "ALIGNMENT_BASELINE":U="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":U="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:U=
"yt-core-attributed-string__image-element--image-alignment-bottom"}P.push(U)}if((G=T.element)==null?0:G.properties)G=[],U=_.V(T.element.properties,Dm9),(U==null?0:U.height)&&G.push("height: "+ze(U.height)+";"),(U==null?0:U.width)&&G.push("width: "+ze(U.width)+";"),G=G.length!==0?G.join(" "):void 0,p.style$=G,U=void 0,G=((U=_.V(T.element.properties,$mU))==null?void 0:U.label)||"",p.alt=G;p.className=P.join(" ");P=void 0;L=U=void 0;G=((L=T.element)==null?0:L.type)?(U=_.V(T.element.type,NDJ))==null?
void 0:U.image:void 0;b.push($z({run:T,textLength:f,tag:"img",image:G,imageConfig:p,imageWrapperConfig:a,startIndex:T.startIndex,length:(P=T.length)!=null?P:0}))}if(Q==null?0:Q.headerRuns)for(Q=_.F(Q.headerRuns),A=Q.next();!A.done;A=Q.next())if(A=A.value,A.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(A.headerMapping)){a:{switch(A.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":T=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":T="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":T="yt-core-attributed-string--heading-3";break a}T=void 0}b.push($z({run:A,textLength:f,tag:"span",config:T?{className:T}:void 0,startIndex:A.startIndex,length:A.length}))}return b};
_.QR=function(A){return(A==null?void 0:A.content)!==void 0};
mmA=function(A){return _.QR(A)?A:_.xz(A)};
A0Y=function(A){return A.image!==void 0&&A.imageConfig!==void 0};
Qq6=function(A,Q){if(Q==null?0:Q.userInput)for(A=_.F(A),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.tag!=="a"&&Q.tag!=="li"){var b=void 0;(b=Q).config||(b.config={});Q.config.dir=Q.tag==="ul"?_.fJ().resolve(_.bc):"auto"}};
bCf=function(A){return function(Q){var b=A.run;(b.onTap!==void 0||b.onLongPress!==void 0)&&_.V(b,pf9)&&uB4(Q,{loggingDirectives:_.V(b,pf9)})}};
fMU=function(A){return function(Q){for(var b in A)(b0[b]||b0[eB["default"]])(Q,b,A[b])}};
FY9=function(A,Q){aMA(Q);var b={data:null,start:0,end:A.length,parts:[]};Q=_.F(Q);for(var f=Q.next();!f.done;f=Q.next())f=f.value,Tf9(b,f.startIndex,f.endIndex,f);dSF(A,b);return b};
Tf9=function(A,Q,b,f){for(var a=_.F(A.parts),T=a.next();!T.done;T=a.next()){T=T.value;if(typeof T==="string")throw Error("fh");if(T.start<=Q&&b<=T.end){Tf9(T,Q,b,f);return}}A.parts.push({data:f,parts:[],start:Q,end:b})};
dSF=function(A,Q){for(var b=Q.parts.length;b>=0;b--){var f=Q.parts[b],a=Q.parts[b-1],T=b===Q.parts.length?Q.end:f.start;a=b===0?Q.start:a.end;T!==a&&Q.parts.splice(b,0,A.slice(a,T));f&&dSF(A,f)}};
aMA=function(A){A.sort(function(Q,b){if(Q.startIndex<b.startIndex)return-1;if(b.startIndex<Q.startIndex)return 1;Q=Q.endIndex-Q.startIndex;b=b.endIndex-b.startIndex;return Q>b?-1:b>Q?1:0})};
_.GKF=function(A){var Q=A.thumbnails;if(Q){A={sources:[]};Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f={};f.url=b.url;f.width=b.width;f.height=b.height;A.sources.push(f)}return A}};
BfC=function(A,Q,b,f){if(!Q)return A.length>=1?A[A.length-1]:null;if(f)for(var a=_.F(A),T=a.next();!T.done;T=a.next()){T=T.value;var G=void 0,p=(G=T.url)==null?void 0:G.indexOf(f);if(p!==void 0&&p>=0)return T}f=_.F(A);for(a=f.next();!a.done;a=f.next())if(a=a.value,a.width&&a.height&&(b&&a.width>=Q||!b&&a.height>=Q))return a;for(Q=A.length-1;Q>=0;Q--)if(b&&A[Q].width||!b&&A[Q].height)return A[Q];return A[0]};
_.pcW=function(A){var Q;return(A=(Q=A.sources)==null?void 0:Q[0])?A.width/A.height:0};
_.PlX=function(A){if(A.sources){A=_.F(A.sources);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=void 0;if((b=Q.clientResource)==null?0:b.imageName)return Q}}};
Xc6=function(A){var Q;if((Q=A.clientResource)!=null&&Q.imageColor)return _.w6(A.clientResource.imageColor)};
_.USi=function(A,Q,b,f,a,T,G){if(!Q||Q.length===0||Q[0].clientResource)return null;if(b&&Q[0].url)return Q[0].url;f===void 0&&(f=!0);if(f){var p;A=STW*(a||(A==null?void 0:(p=A.getBoundingClientRect())==null?void 0:p.width)||0)}else{var P;A=STW*(T||(A==null?void 0:(P=A.getBoundingClientRect())==null?void 0:P.height)||0)}Q=BfC(Q,A,f,G);return(Q==null?0:Q.url)?Q.url:(Q==null?0:Q.imageData)?Q.imageData:null};
LYC=function(A,Q,b){b=b?[b]:[];A.opacity&&b.push("opacity: "+A.opacity+";");Q&&A.placeholderColor?(A=_.w6(A.placeholderColor),b.push("background-color: "+A+";")):b.push("background-color: transparent;");return b.join(" ")};
MHe=function(A,Q,b,f,a){var T=["yt-core-image"];Q&&T.push(Q);b||T.push("yt-core-image--fill-parent-height");f||T.push("yt-core-image--fill-parent-width");switch(A.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":T.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":T.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":T.push("yt-core-image--content-mode-center");break;default:T.push("yt-core-image--content-mode-scale-to-fill")}A.flipForRtlLayout&&
T.push("yt-core-image--flip-rtl");switch(a){case "TOP_START":var G;T.push(((G=document.body)==null?void 0:G.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return T.join(" ")};
KYy=function(A){var Q;if(A==null?0:(Q=A.clientResource)==null?0:Q.imageName){var b;A=(b=A.clientResource)==null?void 0:b.imageName;a:{switch(A){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":b="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":b="yt-logos-ext:yt-logo-updated";break a}b=void 0}return b||lMA.get(A)||A}};
VHy=function(A){return _.K("mweb_wiz_skip_render")?iCW(A):J09(A)};
iCW=function(A){return function(Q){var b=IfA("wink-root");ZD();Hk9();Yhf(b,_.X(A,Q))}};
J09=function(A){var Q=Q===void 0?!1:Q;return function(b){if(!Q||!_.K("mweb_skip_keto_to_c3_if_no_data")||b.data!==void 0){var f=a8(!1);try{var a=b.children;_.K("mweb_render_outside_patch_killswitch")||E7?a?Qu(_.X(A,b,a)):Qu(_.X(A,b)):_.Wv(new _.IO("ketoToC3 called outside of a patch",{tagName:A.TAG_NAME}))}finally{a8(f)}}}};
OC6=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
kKy=function(A,Q){A.onViewportEntered=Q;nDY.observe(A)};
IMC=function(){var A={rootMargin:"10%",threshold:.01};_.K("mweb_enable_set_io_root_to_null_safari")?A.root=null:_.K("mweb_enable_set_io_root_to_body_safari")&&(A.root=document.body);return new IntersectionObserver(function(Q,b){Q.filter(function(f){return f.intersectionRect.height>0}).forEach(function(f){f=f.target;
if(!_.K("mweb_enable_only_update_image_when_connected")||f.isConnected!==!1){var a;(a=f.onViewportEntered)==null||a.call(f);b.unobserve(f)}})},A)};
HCC=function(A,Q,b,f,a){function T(){if(f){var p=f.loadedClass,P=f.notifyOnUnloaded;p&&_.fE(A,p);P&&A.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function G(){var p=b(Q,A);p&&A.getAttribute("src")!==p&&(_.K("mweb_enable_only_update_image_when_connected")&&A.isConnected===!1||p===A.src||(A.src=p),T())}
a=a===void 0?!0:a;A.removeAttribute("src");T();Q&&(a?kKy(A,G):G())};
ClU=function(A,Q,b){if(!Q)return!1;Q=b(Q,A);b=A.getAttribute("src");return Q&&Q===b&&A.complete};
qTJ=function(A,Q){for(var b in Q)b==="className"?A.className=Q[b]:(b0[b]||b0[eB.default])(A,b,Q[b])};
oDX=function(A,Q,b,f){VHy(_.aY)({contentMode:Q.contentMode,loadedClass:Q.loadedClass,isPreloaded:Q.isPreloaded,notifyOnLoaded:Q.notifyOnLoaded,notifyOnUnloaded:Q.notifyOnUnloaded,preferredThumbnail:Q.preferredThumbnail,preserveHeight:Q.preserveHeight,preserveWidth:Q.preserveWidth,objectPosition:Q.objectPosition,targetWidth:Q.targetWidth,targetHeight:Q.targetHeight,shouldShowPlaceholder:Q.shouldShowPlaceholder,useWidth:Q.useWidth,isToggled:Q.isToggled,alt:Q.alt,className:Q.className,onerror:Q.onerror,
onload:Q.onload,style$:Q.style$,color:Q.color,width:Q.width,height:Q.height,"aria-hidden$":Q["aria-hidden$"],draggable:Q.draggable,"data-disabled$":Q["data-disabled$"],data:A,callback:b,renderLazy:f===void 0?!0:f,hideOn404:!1})};
r0C=function(A,Q,b){b=b===void 0?!1:b;var f=A.sources!==void 0?A:_.GKF(A);if(f){var a=Q.onload;Q.onload=function(P){var U=P.target;b&&U.naturalWidth===120||_.TZ(U,"yt-core-image--loaded");Q.notifyOnLoaded&&U.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));a==null||a(P)};
Q.targetWidth&&Q.preserveWidth&&(Q.width=Q.targetWidth);Q.targetHeight&&Q.preserveHeight&&(Q.height=Q.targetHeight);var T=_.PlX(f),G=T&&KYy(T);if(G)return(A=Xc6(T))&&(Q.color=A),{type:"icon",iconName:G,config:Object.assign({},Q,Q.alt?{}:{"aria-hidden$":"true"},{"aria-label$":Q.alt,role:"img"})};if(A.sources===void 0){Q.alt=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label||Q.alt;Q.style$=LYC(A,Q.shouldShowPlaceholder,Q.style$);var p;Q.isPreloaded=!((p=_.V(A,
tHi))==null||!p.isPreloaded)}Q.contentMode&&!f.contentMode&&(f.contentMode=Q.contentMode);Q.className=MHe(f,Q.className,Q.preserveHeight,Q.preserveWidth,Q.objectPosition);Q.loadedClass="yt-core-image--loaded";return{type:"image",image:f,config:Q}}};
_.d_=function(){var A=_.E$.apply(0,arguments);return _.mS(jqe,function(Q){var b=A.map(function(f){return f==null?void 0:f(Q)});
return function(){return void b.forEach(function(f){return void(f==null?void 0:f())})}})};
FS=function(A,Q){var b=Q==null?void 0:Q.initial;return _.Lz(function(){_.o7(!0);return b=A(b)},{equals:Q==null?void 0:Q.isEqual},"rSlKsc")};
R3X=function(A,Q){if(A===Q)return!0;if(A===void 0||Q===void 0)return!1;var b,f,a,T,G,p,P,U;return A.content===Q.content&&((b=A.styleRuns)==null?void 0:b.length)===((f=Q.styleRuns)==null?void 0:f.length)&&((a=A.commandRuns)==null?void 0:a.length)===((T=Q.commandRuns)==null?void 0:T.length)&&((G=A.attachmentRuns)==null?void 0:G.length)===((p=Q.attachmentRuns)==null?void 0:p.length)&&((P=A.decorationRuns)==null?void 0:P.length)===((U=Q.decorationRuns)==null?void 0:U.length)};
h3Y=function(A,Q){if(A){var b=mmA(A);if(b!=null&&b.content)if(_.K("attr_string_reactive"))VHy(gDy)({text:A,config:Q});else{var f=!(Q==null||!Q.ariaLabel)||!(b.commandRuns&&b.commandRuns.length!==0||b.paragraphStyleRuns&&b.paragraphStyleRuns.length!==0);A=f?Q==null?void 0:Q.ariaLabel:null;f=f?"text":null;W8("span",{className:Whe(b,Q),dir$:(Q==null?0:Q.userInput)?"auto":void 0,"aria-label$":A,role$:f},function(){if(b.styleRuns||b.commandRuns||b.attachmentRuns||b.decorationRuns){var a=sfC(b,Q);Qq6(a,
Q);a=FY9(b.content,a);a=_.F(a.parts);for(var T=a.next();!T.done;T=a.next())e3W(T.value)}else s7(b.content)})}}};
e3W=function(A){typeof A==="string"?s7(A):A0Y(A.data)?W8("span",A.data.imageWrapperConfig,function(){oDX(A.data.image,A.data.imageConfig)}):W8(A.data.tag,A.data.config,function(Q){bCf(A.data)(Q);
Q=_.F(A.parts);for(var b=Q.next();!b.done;b=Q.next())e3W(b.value)})};
vDU=function(A){return A.parts.map(WYi)};
WYi=function(A){if(typeof A==="string")return A;A=A0Y(A.data)?_.X("span",{el:_.d_(fMU(A.data.imageWrapperConfig))},_.X(_.aY,Object.assign({},{data:A.data.image},A.data.imageConfig))):_.X(A.data.tag,{el:_.d_(bCf(A.data),fMU(A.data.config))},A.parts.map(WYi));return Mq(A)};
EDY=function(A,Q){return A===Q?!0:A===void 0||Q===void 0?!1:A.noStyleRuns===Q.noStyleRuns&&A.noLinkColor===Q.noLinkColor&&A.noEndpoints===Q.noEndpoints&&A.headerRuns===Q.headerRuns&&A.isOverlay===Q.isOverlay&&A.linkInheritColor===Q.linkInheritColor&&A.userInput===Q.userInput};
xSA=function(A){return function(){var Q,b,f,a,T,G,p,P,U,L,M,l,J,n;return{ariaLabel:(Q=A.ariaLabel)==null?void 0:Q.call(A),className:(b=A.className)==null?void 0:b.call(A),ellipsisTruncate:(f=A.ellipsisTruncate)==null?void 0:f.call(A),isOverlay:(a=A.isOverlay)==null?void 0:a.call(A),linkInheritColor:(T=A.linkInheritColor)==null?void 0:T.call(A),noEndpoints:(G=A.noEndpoints)==null?void 0:G.call(A),noStyleRuns:(p=A.noStyleRuns)==null?void 0:p.call(A),noLinkColor:(P=A.noLinkColor)==null?void 0:P.call(A),
noPreWrap:(U=A.noPreWrap)==null?void 0:U.call(A),noWrap:(L=A.noWrap)==null?void 0:L.call(A),skipOnClick:(M=A.skipOnClick)==null?void 0:M.call(A),stopPropagation:(l=A.stopPropagation)==null?void 0:l.call(A),userInput:(J=A.userInput)==null?void 0:J.call(A),headerRuns:(n=A.headerRuns)==null?void 0:n.call(A)}}};
c0X=function(A){return A.value===""||A.value==="true"?!0:A.value==="false"?!1:isNaN(Number(A.value))?A.value:Number(A.value)};
GZ=function(A,Q){A=new z3F(A,Q);_.en(A);throw A;};
wc9=function(A,Q,b){var f=Qhb(A);A._numRenders=0;try{var a=_.Ul9(function(){return _.X(Q,Object.assign({},b))})}catch(G){var T=function(p){p.args||(p.args=[]);
p.args.push("Error in web component wrapper");p.args.push(A.tagName.toLowerCase());return p};
_.hq(G instanceof Error?T(G):new z3F("Wiz rendering error",A.tagName.toLowerCase()));throw G;}finally{Qhb(f)}return a};
_.pE=function(A,Q,b){function f(L){var M={};L=_.F(L);for(var l=L.next();!l.done;l=L.next()){l=l.value;var J=void 0,n=void 0,t=void 0,g=_.Ov((t=(n=(J=l).getAttribute)==null?void 0:n.call(J,"slot"))!=null?t:"children");if(J=M[g])J.push(l);else if(g in T||g==="children")M[g]=[l]}L=_.F(Object.keys(M));g=L.next();for(l={};!g.done;l={content$jscomp$56:void 0},g=L.next())g=g.value,g!=="children"&&(l.content$jscomp$56=M[g],M[g]=function(e){return function(){return e.content$jscomp$56}}(l));
return M}
b=b===void 0?{}:b;A.componentType!==O7||GZ("Components must be marked reactive to be used from web component wrapper.",Q);P8.has(Q)&&GZ("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",Q);var a,T=(a=b.props)!=null?a:{};Xp.add(Q);var G=u$W();a=function(){var L=G.apply(this,arguments)||this;L.rawProps={};L.queuingRender=!1;L.dispose=function(){};
L.isWebComponentWrapper=!0;L.isReparenting=!1;L.hasRendered=!1;return L};
_.O(a,G);a.prototype.render=function(){this.hasRendered=!0;for(var L=_.F([].concat(_.ri(this.attributes))),M=L.next();!M.done;M=L.next())M=M.value,M.name!=="slot"&&M.name!=="hidden"&&this.removeAttribute(M.name);L=Object.assign({},this.componentProps,this.slotProps);M=_.F(wc9(this,A,L));L=M.next().value;M=M.next().value;!(L[0]instanceof Element)||L.length>1?GZ("Wrapped Wiz components must return a single root element.",Q):(L=L[0].tagName.toLowerCase(),L!==Q&&GZ("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(L+" !== '"+Q),Q),this.dispose=M)};
a.prototype.setUpProps=function(){for(var L=this.rawProps,M=this.attributes,l=_.F(Object.keys(T)),J=l.next();!J.done;J=l.next()){J=J.value;var n=void 0;((n=this)==null?0:n[J])&&this[J]!==ZCb&&L[J]===void 0&&(L[J]=this[J],(n=Object.getOwnPropertyDescriptor(this.constructor.prototype,J))&&Object.defineProperty(this,J,n))}l=_.F(M);for(J=l.next();!J.done;J=l.next()){n=J.value;J=_.Ov(n.name);var t=J==="class"&&!M.getNamedItem("class-name");if(J in T||t)n=c0X(n),J!=="class"||L.className?L[J]=n:L.className=
n}M={};for(var g in T)T[g]!==_.Bz&&T[g]!==y0i&&(L[g]instanceof Function&&GZ("Function props must be configured as STATIC, not SIGNAL.",Q),J=_.F(_.pz(L[g],void 0,"Ri8MSe")),l=J.next().value,J=J.next().value,M[g]=J,L[g]=l);L=_.F([L,M]);this.componentProps=L.next().value;this.setters=L.next().value;this.slotProps=f(this.childNodes)};
a.prototype.connectedCallback=function(){B8===Q&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in T&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
a.prototype.disconnectedCallback=function(){if(!this._isInert){var L;a:{if(_.YTA)for(L=this;L;){if(_.DSf.has(L)){L=!0;break a}L=L.parentElement}L=!1}if(L)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){L=_.F([].concat(_.ri(this.attributes)));for(var M=L.next();!M.done;M=L.next()){M=M.value;var l=void 0;M.name==="slot"||M.name==="hidden"&&((l=b.unsafeExternallySettableAttributes)==null?0:l.has("hidden"))||this.removeAttribute(M.name)}}this.innerText="";y_W(this)}}};
a.prototype._setPendingPropertyOrPath=function(){};
a.prototype.notifyPath=function(){};
_.Qr.Object.defineProperties(a.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var p=_.F(Object.keys(T)),P=p.next(),U={};!P.done;U={prop$jscomp$104:void 0},P=p.next())U.prop$jscomp$104=P.value,P=void 0,((P=b.legacyPolymer)==null?0:P.forwardHostProps)&&wg6.has(U.prop$jscomp$104)||Object.defineProperty(a.prototype,U.prop$jscomp$104,{set:function(L){return function(M){var l=this;this._isInert||(this.setters?Mz(function(){var J,n;return void((n=(J=l.setters)[L.prop$jscomp$104])==null?void 0:n.call(J,M))}):(this.rawProps[L.prop$jscomp$104]=M,this.queuingRender&&L.prop$jscomp$104===
"data"&&M!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(U),
get:$S9.has(U.prop$jscomp$104)?void 0:function(){return ZCb}});
customElements.define(Q,a)};
_.Nf4=function(A,Q){return(A=_.Pz(A,Q))?_.r$(_.hs(A)):null};
_.XS=function(A){if(A=_.Pz(A,Number.MAX_VALUE,void 0,"width"))return _.hs(A)};
_.Pz=function(A,Q,b,f){f=f===void 0?"width":f;if(!A||!A.length)return null;if(_.K("kevlar_tuner_should_always_use_device_pixel_ratio")){var a=window.devicePixelRatio;_.K("kevlar_tuner_should_clamp_device_pixel_ratio")?a=Math.min(a,_.GP("kevlar_tuner_clamp_device_pixel_ratio")):_.K("kevlar_tuner_should_use_thumbnail_factor")&&(a=_.GP("kevlar_tuner_thumbnail_factor"));sqA=a}else sqA||(sqA=window.devicePixelRatio);a=sqA;_.K("kevlar_tuner_should_always_use_device_pixel_ratio")?Q*=a:a>1&&(Q*=a);if(_.K("kevlar_tuner_min_thumbnail_quality"))return A[0].url||
null;a=A.length;if(_.K("kevlar_tuner_max_thumbnail_quality"))return A[a-1].url||null;if(b)for(var T=0;T<a;T++)if(A[T].url.indexOf(b)>=0)return A[T].url||null;for(b=0;b<a;b++)if(A[b][f]>=Q)return A[b].url||null;for(Q=a-1;Q>0;Q--)if(A[Q][f])return A[Q].url||null;return A[0].url||null};
Qwf=function(){Sl.size?setTimeout(function(){U4(mSf)},0):AnY=0};
mSf=function(){var A=(0,_.f4)(),Q=null,b=!1;Sl.forEach(function(a){a.loaded=!0;a.loadTime=A;a.pendingPaint=!1;var T=bdY.get(a);T&&T.resolve(A);Q=a;b||!a.ftlEligible&&a.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(b=!0)});
var f;((f=Q)==null?0:f.markDirty)&&Q.markDirty();Sl.clear();AnY=0;b&&fa4(A)};
aay=function(A){Sl.add(A);A.pendingPaint=!0;AnY||(AnY=_.LE(_.j7,Qwf))};
TVi=function(A){A.loaded=!1;A.loadTime=Infinity;var Q=bdY.get(A);Q&&(Q.reject(Error("lh")),bdY.delete(A));A.pendingPaint&&(Sl.delete(A),A.pendingPaint=!1)};
_.dRY=function(A){var Q=A.indexOf(":");return Q===-1?{originalName:A}:{originalName:A.substring(0,Q),datasyncId:A.substring(Q+1)}};
_.GaA=function(){return _.B(function(A){if(F$y!==void 0)return A.return(F$y);F$y=new Promise(function(Q){var b;return _.B(function(f){switch(f.nextAddress){case 1:return _.ML(f,2),f.yield(_.MM.open("test-only"),4);case 4:return f.yield(_.MM.delete("test-only"),5);case 5:_.Z1(f,3);break;case 2:if(b=_.Vw(f),b instanceof Error&&b.name==="SecurityError")return Q(!1),f.return();case 3:Q("caches"in window),_.Oi(f)}})});
return A.return(F$y)})};
PbA=function(){return _.B(function(A){if(A.nextAddress==1)return A.yield(_.GaA(),2);if(!A.yieldResult)return A.return(void 0);BVA||(BVA=new pSJ);return A.return(BVA)})};
XSi=function(A){var Q,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:return T.yield(PbA(),2);case 2:Q=T.yieldResult;if(!Q)throw Error("nh");return T.yield(Q.open("yt-player-local-img"),3);case 3:return b=T.yieldResult,T.yield(b.match(A),4);case 4:f=T.yieldResult;if(!f)throw Error("oh");return T.yield(f.blob(),5);case 5:return a=T.yieldResult,T.return(a)}})};
SWi=function(A,Q){for(var b in A)if(A.hasOwnProperty(b)&&Q[b])return b;return null};
URe=function(A){return"stamp"+A.replace("-","_")+"_"};
L$C=function(A){var Q=A.match(/\[\[([\w\.]+)\]\]/);if(Q&&Q.length>1)return Q[1];_.en(Error("qh`"+A));return null};
Mwi=function(A){return A===void 0?_.Ep("REUSE_COMPONENTS",!1):A||!1};
idF=function(A,Q,b){b&&(Q.is?(laJ.has(Q)&&(A=laJ.get(Q),b=A.listener,delete Q[A.property],b.type==="element"&&Q.removeEventListener(b.eventName,b.handler),laJ.delete(Q)),K$Y(Q)):Q.__proto__==HTMLElement.prototype&&(Q=new _.IO("Rendererstamper removed a non custom element","Stamper: "+A+" element: "+(Q&&Q.nodeName)),_.Wv(Q)))};
JnJ=function(A,Q,b,f){var a=Q.node?Q.node:Q;_.Bj(b).parentNode===a&&(Q.removeChild(b),idF(A,b,f));if(A=lc.get(b))lc.delete(b),_.j7.cancelJob(A);b.hidden=!1};
Vw6=function(A,Q,b,f){if(Q&&Q.children&&(b=Q.children[b]))if(_.Ep("DEFERRED_DETACH"))for(;b&&!lc.has(b);){var a=A,T=Q,G=b,p=f;G.hidden=!0;a=_.Hv(_.j7,JnJ.bind(null,a,T,G,p),0);lc.set(G,a);b=b.nextElementSibling}else for(;(G=Q.lastElementChild)&&(Q.removeChild(G),idF(A,G,f),G!=b););};
OdU=function(A){var Q=_.st("__slot-el");_.tz(function(){for(var b=_.F(A.slotContent),f=b.next();!f.done;f=b.next())Q.value.appendChild(f.value)});
return _.X("__slot-el",{el:Q,skip:!0})};
_.KE=function(A,Q,b){b=b===void 0?nnU:b;P8.add(Q);var f;(f=b).propNames!=null||(f.propNames=[]);var a=new Set(b.propNames),T=u$W();f=function(){var U=T.call(this)||this;U.props={};U.isUpdating=!1;U.hasAttached=!1;U.isInert=!1;U.updateQueued=!1;U.initialClasses=[];A6Y(U,Q);return U};
_.O(f,T);f.prototype.forwardKebabCaseProp=function(U,L){U=_.Ov(U);if(a.has(U)||U==="children")this.props[U]=L};
f.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var U=_.F(this.initialClasses),L=U.next();!L.done;L=U.next())(L=L.value)&&this.classList.add(L);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
f.prototype.handleSlottedContent=function(){for(var U=new Map,L=_.F(this.children),M=L.next();!M.done;M=L.next()){M=M.value;var l=void 0,J=(l=M.getAttribute("slot"))!=null?l:"children";(l=U.get(J))?l.push(M):U.set(J,[M]);if(!M.getAttribute("key")){var n=void 0,t=void 0;M.setAttribute("key",J+"_"+((t=(n=l)==null?void 0:n.length)!=null?t:0))}}U=_.F(U);for(L=U.next();!L.done;L=U.next())M=_.F(L.value),L=M.next().value,M=M.next().value,this.forwardKebabCaseProp(L,_.X(OdU,{slotContent:M}))};
f.prototype.connectedCallback=function(){var U=this;if(!A6Y(this,Q)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var L=_.F(this.attributes),M=L.next();!M.done;M=L.next())M=M.value,this.forwardKebabCaseProp(M.name,c0X(M));this.handleSlottedContent();b.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){U.afterFirstPatch()});
this.hasAttached=!0}};
f.prototype.attributeChangedCallback=function(U,L,M){this.isInert||this.isUpdating||this.isConnected||U!=="class"||this.initialClasses.push.apply(this.initialClasses,_.ri(M.split(" ")))};
f.prototype.disconnectedCallback=function(){rxC(this)};
f.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var U,L;Yhf(this,_.X(A,Object.assign({},this.props,{idomKey:(L=(U=this.__incrementalDOMData)==null?void 0:U.key)!=null?L:Q})),!0)}catch(l){var M=l instanceof Error?l:new _.IO("Wiz rendering error");M.args||(M.args=[]);M.args.push("Error in deprecated web component wrapper");M.args.push(Q.toLowerCase());_.en(M);throw l;}finally{this.updateQueued=this.isUpdating=!1}}};
f.prototype.enqueueUpdate=function(){var U=this;return _.B(function(L){if(b.synchronous)return U.update(),L.return();if(U.updateQueued)return L.return();U.updateQueued=!0;return L.return(Promise.resolve().then(function(){U.update()}))})};
f.prototype.notifyPath=function(){b.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Qr.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var G=_.F(b.propNames),p=G.next(),P={};!p.done;P={prop$jscomp$106:void 0},p=G.next())P.prop$jscomp$106=p.value,Object.defineProperty(f.prototype,P.prop$jscomp$106,{set:function(U){return function(L){this.isInert||L===this.props[U.prop$jscomp$106]||(this.props[U.prop$jscomp$106]=L,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(P)});
customElements.define(Q,f)};
_.ka4=function(A,Q){return _.Me(A.entities,"markersEngagementPanelSyncEntity",Q)};
IaC=function(A,Q){return _.Me(A.entities,"fantasyWinProbabilityEntity",Q)};
Hdy=function(A,Q){return _.Me(A.entities,"fantasyTeamEntity",Q)};
CbF=function(A,Q){return _.Me(A.entities,"fantasyPlayerEntity",Q)};
qWA=function(A,Q){return _.Me(A.entities,"booleanEntity",Q)};
onW=function(A,Q){return _.Me(A.entities,"qrCodeEntity",Q)};
tw6=function(A){return _.Me(A.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
rnb=function(){if(ic)return ic;if(window.lottie)return ic=Promise.resolve(window.lottie);var A=_.Rx(_.vG("LOTTIE_URL"));return A?ic=new Promise(function(Q,b){var f=document.createElement("script");f.addEventListener("load",function(){Q(lottie)});
f.addEventListener("error",function(a){var T="Lottie library failed to load.";a?a.message&&(T+=" Original description: "+a.message,_.xk(a,T)):a=Error(T);_.Wv(a);b(a)});
f.setAttribute("async","");_.mw(f,A);document.head.appendChild(f)}):Promise.reject(Error("rh"))};
jwY=function(){return ic?ic:rnb()};
RYb=function(A){if(A)switch(A){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.K("kevlar_use_wil_icons"))return A=(A=tw6(_.QK().getState()))&&A.animationLightUrl&&A.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:A.animationLightUrl,pathDarkTheme:A.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,A?A:Jf.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Jf.get("LIKE_DELHI_PLAYER")}};
gne=function(A){var Q=RYb(A);if(Q)return Q;switch(A){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Jf.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Jf.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Jf.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Jf.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Jf.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Jf.get("NOTIFICATION_BELL")}};
eYf=function(A,Q){if(!A.closest)return!1;Q=!!RYb(Q);return _.vG("ID_TOKEN")&&Q?!!A.closest("segmented-like-dislike-button-view-model")||!!A.closest("yt-player-quick-action-buttons"):!1};
W$Y=function(A,Q){if(!A||hYe)Q=!1;else{var b;if(!(b=eYf(A,Q)))if(A.closest)if(b=!_.vG("ID_TOKEN"),A=A.closest("ytd-subscription-notification-toggle-button-renderer-next"),b||!A)b=!1;else{var f;b=((f=A.data)==null?void 0:f.targetId)==="notification-bell"&&Q!=="EXPAND_MORE"}else b=!1;Q=b}return Q};
vn6=function(A){var Q,b;return _.B(function(f){switch(f.nextAddress){case 1:return _.ML(f,2),f.yield(fetch(A),4);case 4:return Q=f.yieldResult,f.yield(Q.json(),5);case 5:return f.return(f.yieldResult);case 2:b=_.Vw(f),_.Wv(b),_.Oi(f)}})};
EnC=function(A,Q){var b,f,a;return _.B(function(T){if(T.nextAddress==1)return(b=Q?A.pathDarkTheme:A.path)?T.yield(Promise.all([vn6(b),rnb()]),2):T.return();f=T.yieldResult;a=f[0];VR.set(b,a);_.Oi(T)})};
_.O4=function(){for(var A=_.E$.apply(0,arguments),Q=!0,b=_.F(A),f=b.next();!f.done;f=b.next())if(typeof f.value!=="string"){Q=!1;break}return Q?A.join(" ").trim()||void 0:function(){for(var a="",T=_.F(A),G=T.next();!G.done;G=T.next())if(G=G.value,typeof G==="function"&&(G=G()),G)if(typeof G==="string")a+=" "+G;else for(var p in G)if(G.hasOwnProperty(p)){var P=G[p];typeof P==="function"&&(P=P());P&&(a+=" "+p)}a=a.trim()||void 0;return _.o7(a)}};
cnC=function(A,Q,b,f){function a(G,p){if(Q.value===p&&A!=null&&A.value){for(;A.value.firstChild;)A.value.removeChild(A.value.firstChild);A.value.classList.add("yt-spec-icon-shape");G(A.value,f)}}
b=_.xRJ(_.fJ().resolve(_.ie),b);if(typeof b==="function")Q.value=null,a(b,null);else{var T=new _.M3(b.then,b);Q.value=T;T.then(function(G){a(G,T)})}};
wSA=function(A,Q){var b=document.createElement("div"),f=_.HG(b,function(){return _.X(_.S,{cond:A,then:function(a){return _.X(zY4,{data:a,options:Q})}})});
return[b,f]};
_.nE=function(){for(var A=[],Q=_.F(_.E$.apply(0,arguments)),b=Q.next();!b.done;b=Q.next())if(b=b.value)if(typeof b==="string")A.push(b);else{b=_.F(Object.entries(b));for(var f=b.next();!f.done;f=b.next()){var a=_.F(f.value);f=a.next().value;(a=a.next().value)&&A.push(f)}}return A.join(" ")};
YW9=function(A){var Q=_.st("animated-rolling-character"),b=j6(),f=AQ(A.character)||AQ(A.previousCharacter);NGb(function(){if(A.marginMultiplier){var a;(a=b.value)==null||a.cancel();f?(a=A.previousCharacter?Number(A.previousCharacter)+10:A.rollUp?0:30,A.shouldAnimate||(a-=uQi(A,a))):(a=A.rollUp?0:2,A.shouldAnimate||(a-=A.rollUp?-1:1));Q.value.style.marginTop="-"+a*A.marginMultiplier+"px";A.shouldAnimate?b.value=ZdW(Q.value,A,a,f):Q.value.style.display=A.character?"":"none"}});
return _.X("animated-rolling-character",{el:Q,class:"animated-rolling-character-wiz"},D4(f,function(){for(var a=[],T=1;T<30;T++)a.push(_.X("div",null,T%10));return _.X(_.bd,null,_.X("div",null,"\u00a0"),a,_.X("div",null,"\u00a0"))},function(){return ynW(A.character)}))};
ynW=function(A){return _.X(_.bd,null,_.X("div",null,"\u00a0"),_.X(_.bd,null,D4(!A||_.Be(A),function(){return _.X("div",null,"\u00a0")},function(){return _.X("div",null,A)})),_.X("div",null,"\u00a0"))};
ZdW=function(A,Q,b,f){b=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(f?uQi(Q,b):Q.rollUp?-1:1)*Q.marginMultiplier+"px)"}],DRe),document.timeline);Q.character?(A.style.display="",b.onfinish=null):b.onfinish=function(){A.style.display="none"};
b.play();return b};
uQi=function(A,Q){var b=Number(A.character)+10;if(A.previousCharacter)if(A.character){var f=Number(A.character),a=Number(A.previousCharacter);A=A.rollUp?a<f?b:b+10:a<f?b-10:b}else A=A.rollUp?30:0;else A=A.character==="0"?b:A.rollUp?b-10:b+10;return Q-A};
_.ko=function(A,Q){return function(b){var f={},a;for(a in b){var T=void 0,G=void 0;((T=Q)==null?0:(G=T.callbacks)==null?0:G[a])||(f[a]=b[a])}return _.X(Sse,null,function(){for(var p in f)b[p]=_.o7(f[p]);b.disableReactiveLogging=!0;return _.X(A,Object.assign({},b))})}};
swf=function(A,Q,b,f,a,T,G){b=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(T?$R4(Q,b,f,a):f?-1:1)*G+"px)"}],NVU),document.timeline);Q?(A.style.display="",b.onfinish=null):b.onfinish=function(){A.style.display="none"};
b.play();return b};
$R4=function(A,Q,b,f){var a=Number(A)+10;Q?A?(A=Number(A),Q=Number(Q),b=b?Q<A?a:a+10:Q<A?a-10:a):b=b?30:0:b=A==="0"?a:b?a-10:a+10;return f-b};
ABX=function(A){var Q=j6(),b=j6();_.qq(function(){Q.value=A.numberText;b.value=A.numberValue},[A.numberText]);
var f=A.fontSizeMultiplier?A.heightPx*A.fontSizeMultiplier:A.heightPx,a=dBi(function(){if(A.numberText){var G=A.numberText;var p=A.forceRollUp||!b.value||!A.numberValue||b.value<A.numberValue;var P=!!A.shouldAnimate,U=Q.value,L=[],M=0,l=0,J=(U?U.replace(/\D/g,"").length:0)-(G?G.replace(/\D/g,"").length:0);U=U?U.split(/(\d)/).filter(Boolean):[];for(G=G.split(/(\d)/).filter(Boolean);J<0;){var n=G[l];L.push({character:n,rollUp:p,marginMultiplier:f,shouldAnimate:P});l++;AQ(n)&&J++}for(;M<J;)n=U[M],L.push({previousCharacter:n,
rollUp:p,marginMultiplier:f,shouldAnimate:P}),M++,AQ(n)||J++;for(;l<G.length;)J=G[l],n=U[M],AQ(J)===AQ(n)?(l++,M++):AQ(J)?(M++,J=void 0):AQ(n)&&(l++,n=void 0),L.push({character:J,previousCharacter:n,rollUp:p,marginMultiplier:f,shouldAnimate:P});p=L}else p=[];return p},[A.numberText]),T=A.numberText?["height: "+f+"px;",
"line-height: "+A.heightPx+"px;"].join(" "):"";return _.X("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:T,dir:"ltr","aria-hidden":"true"},a.map(function(G){return _.X(mRW,Object.assign({},G))}))};
bMW=function(A){var Q;return(Q=Q5W[A])!=null?Q:"EVENT_SPAN_TYPE_UNKNOWN"};
fEJ=function(A){var Q=A.nodeName;if(A.id)return Q+="#"+A.id;if(A.classList)for(var b=_.F(A.classList),f=b.next();!f.done;f=b.next())Q+="."+f.value;A.parentElement&&(Q=fEJ(A.parentElement)+" > "+Q);return Q};
aEb=function(A){return function(Q){var b=bMW(Q.type);return b==="EVENT_SPAN_TYPE_UNKNOWN"?A(Q):etC("event",{type:b,nodepath:Q.target instanceof Element?fEJ(Q.target):void 0},function(){return A(Q)})}};
_.IY=function(A){A&&r7i("event")&&(A=aEb(A));return wLA(function(Q){var b,f=(b=A)==null?void 0:b(Q);return typeof f==="boolean"?f:!0})};
Hz=function(A){return function(){return A()?A():void 0}};
TX6=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
d4i=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.CE=function(A){var Q=FS(function(b){b=b?B_(b[0]):void 0;return _.pz(A(b),void 0,"AwTxXe")},{isEqual:function(b,f){return B_(b[0])===B_(f[0])}});
return[function(){return Q()[0]()},
function(b){return void Q()[1](b)}]};
_.qM=function(A){return function(){var Q="",b;for(b in A){for(var f=A[b];typeof f==="function";)f=f();f!==void 0&&f!==null&&(Q+="; "+b+": "+f)}return Q.length>0?_.o7(Q.slice(2)):_.o7()}};
Fvy=function(A){switch(A){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"}};
Pk9=function(A,Q,b,f,a,T){var G=G8i(A),p=G.disabled,P=G.iconPosition,U=G.style,L=G.focused,M=function(){return!!n()&&P()==="icon-only"},l=function(){return!!n()&&P()==="icon-only-40"},J=function(){return!!n()&&P()==="icon-with-label"},n=function(){return!!Q||!(f==null||!f())};
return{type:function(){return U()==="call-to-action-inverse"?"text":U()==="overlay-dark"&&A().type!=="filled"&&A().type!=="tonal"?"tonal":A().type},
shouldFocus:function(){return(L()||(T==null?void 0:T()))&&!p()},
hasIconLeading:function(){return!!n()&&P()==="leading"},
hasIconTrailing:function(){return!!n()&&P()==="trailing"},
hasIconLeadingTrailing:function(){return!!n()&&!!(b||a!=null&&a())&&P()==="leading-trailing"},
hasIconOnly:M,hasIconOnly40:l,hasIconWithLabel:J,iconButton:function(){return M()||l()||J()},
visiblyDisabled:function(){return(p()?"disabled":A().state)==="disabled"||p()},
overrideSmallSizeIcon:function(){return!A().ignoreIconSizeOverride&&BXF(A(),n())},
iconToRender:Q?Q:function(){return _.X(_.oY,{icon:f,size:function(){return tf(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return pW6(A())}})},
secondaryIconToRender:b?b:function(){return _.X(_.oY,{icon:a,size:function(){return tf(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return pW6(A())}})}}};
G8i=function(A){return{size:function(){return A().size},
style:function(){return A().style},
focused:function(){return A().focused},
disabled:function(){return A().disabled},
onTap:function(Q){var b,f;return(f=(b=A()).onTap)==null?void 0:f.call(b,Q)},
alignByText:function(){return A().alignByText},
aTagConfig:function(){return A().aTagConfig},
customColors:function(){return A().customColors},
segmentedPosition:function(){return A().segmentedPosition},
toggled:function(){return A().toggled},
toggleable:function(){return A().toggleable},
accessibilityLabel:function(){return A().accessibilityLabel},
onToggle:function(Q){var b,f;return(f=(b=A()).onToggle)==null?void 0:f.call(b,Q)},
iconPosition:function(){return A().iconPosition},
oneOffCustomTextWrap:function(){return A().oneOffCustomTextWrap},
disableTextEllipsis:function(){return A().disableTextEllipsis},
disableBackdropFilter:function(){return A().disableBackdropFilter},
tooltipText:function(){return A().tooltipText},
ariaHidden:function(){return A().ariaHidden},
tabIndex:function(){return A().tabIndex},
buttonText:function(){return A().buttonText},
formattedButtonText:function(){return A().formattedButtonText},
animatedTextProps:function(){return A().animatedTextProps}}};
XWY=function(A){return A.style==="overlay-dark"?4:A.style==="overlay"?A.type==="filled"?4:3:A.type==="filled"||A.style==="call-to-action-inverse"||A.style==="mono-inverse"?2:1};
BXF=function(A,Q){Q=(A.iconPosition==="icon-only"||A.iconPosition==="icon-only-40"||A.iconPosition==="icon-with-label")&&Q;return!A.segmentedPosition&&Q&&A.size==="S"};
SgC=function(){return!_.K("web_disable_backdrop_filter")};
tf=function(A,Q,b){switch(A.size){case "XS":return 16;case "S":return!b&&BXF(A,Q)?24:16;default:return 24}};
U4y=function(A){switch(A){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"}};
Lv6=function(A){switch(A){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"}};
MCX=function(A){switch(A){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"}};
pW6=function(A){if(A.style==="overlay-dark"&&A.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
lEX=function(A){if(!A)return{};var Q=A.color,b=A.backgroundColor;A=A.borderColor;var f="";Q&&(f+="color: "+Q+";");b&&(f+="background-color: "+b+";");A&&(f+="border-color: "+A+";");return{style:f}};
OMY=function(A,Q,b){var f=A.buttonText,a=A.formattedButtonText,T=A.formattedButtonTextLegacy,G=A.animatedTextProps,p=A.style,P=A.size,U=A.focused,L=A.disabled,M=A.onTap,l=A.alignByText,J=A.aTagConfig,n=A.customColors,t=A.segmentedPosition,g=A.toggled,e=A.toggleable,x=A.accessibilityLabel,D=A.onToggle,w=A.iconPosition,u=A.oneOffCustomTextWrap,y=A.disableTextEllipsis,a9=A.disableBackdropFilter,pF=A.tooltipText,Ub=A.ariaHidden,Ob=A.tabIndex,I9=A.ignoreIconSizeOverride,iy=A.state,wW=A.type;p==="call-to-action-inverse"&&
(wW="text");p==="overlay-dark"&&wW!=="filled"&&wW!=="tonal"&&(wW="tonal");var h4=!!Q&&w==="leading",SW=!!Q&&w==="trailing",r9=!!Q&&!!b&&w==="leading-trailing",PM=!!Q&&w==="icon-only",Nf=!!Q&&w==="icon-only-40",L$=!!Q&&w==="icon-with-label",UL=PM||Nf||L$;L&&(iy="disabled");var HM=iy==="disabled"||L;I9=!I9&&BXF(A,!!Q);iy={};var Ks=(iy["yt-spec-button-shape-next"]=!0,iy[U4y(wW)]=!0,iy[Lv6(p)]=!HM,iy["yt-spec-button-shape-next--disabled"]=!!HM,iy[MCX(P)]=!0,iy["yt-spec-button-shape-next--focused"]=!!U&&
!L,iy["yt-spec-button-shape-next--icon-trailing"]=SW,iy["yt-spec-button-shape-next--icon-leading"]=h4,iy["yt-spec-button-shape-next--icon-leading-trailing"]=r9,iy["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=r9&&!(f||a),iy["yt-spec-button-shape-next--icon-button"]=PM||L$,iy["yt-spec-button-shape-next--icon-only-default"]=Nf,iy["yt-spec-button-shape-next--align-by-text"]=!!l,iy["yt-spec-button-shape-next--segmented-start"]=t==="start",iy["yt-spec-button-shape-next--segmented-end"]=t===
"end",iy["yt-spec-button-shape-next--override-small-size-icon"]=I9,iy["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!u,iy["yt-spec-button-shape-next--disable-text-ellipsis"]=!!y,iy["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!a9&&SgC(),iy),Y1=function(){if(G)VHy(_.Kvy)(G);else if(T)T(w==="icon-with-label"||u?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(a){var zr=w==="icon-with-label"||u;h3Y(Object.assign({},
a,zr?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!zr})}else f&&s7(f)},dW=function(zr){M==null||M(zr);
e&&(D==null||D(zr))},bY=J?iMy:JBF,OL=J?"aria-current$":"aria-pressed$",iO=function(){Q&&(h4||r9||UL)&&function(){r_({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){Q()})}();
(f||a||T||G)&&!UL&&function(){r_({className:"yt-spec-button-shape-next__button-text-content"},function(){Y1()})}();
SW&&function(){r_({className:"yt-spec-button-shape-next__icon"},function(){Q()})}();
r9&&function(){r_({className:"yt-spec-button-shape-next__secondary-icon"},function(){b()})}();
L||VHy(_.jl)({model:{color:XWY(A)}})},Jv=function(){var zr={};
bY(Object.assign({},(zr.className=_.nE(Ks),zr.onclick=J?void 0:dW,zr.disabled=L,zr["aria-disabled$"]=HM,zr.style=L&&J?"pointer-events:none":void 0,zr[OL]=e?!!g:void 0,zr["aria-label$"]=x,zr.title$=pF!=null?pF:"",zr["aria-hidden$"]=Ub,zr.tabindex$=Ob,zr),J,lEX(n)),function(){iO()})};
L$?(P={},p=(P["yt-spec-button-shape-with-label"]=!0,P["yt-spec-button-shape-with-label--is-overlay"]=p==="overlay"||p==="overlay-dark",P),VCC({className:_.nE(p)},function(){Jv();r_({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Y1)})):Jv()};
k8f=function(A,Q){if(!$$){var b;Aj6(function(){return b=PpU(A,Q)});
return b}A.parent=_.ncY();return PpU(A,Q)};
_.ncY=function(){var A=_.sO($$||void 0,Gkf);return _.V7J(A)?void 0:A};
RY=function(A){return A&&A.endsWith("px")?Number(A.slice(0,-2)):0};
Cky=function(A){var Q=Q===void 0?{}:Q;A=_.F(_.CE(A));var b=A.next().value;return[function(f){var a=_.Lz(function(){var p,P,U,L;return{text:(p=b())!=null?p:"",location:(P=Q.location)!=null?P:"bottom",offset:(U=Q.offset)!=null?U:16,delay:(L=Q.delay)!=null?L:1}},void 0,"MgTrkc");
_.H_(function(){var p=a();B_(function(){_.j7.addJob(function(){g_.notify(f,p)},4)})},"WlsgZc");
var T=function(){IE6(f,a())},G=function(){HMF()};
f.addEventListener("mouseenter",T);f.addEventListener("focus",T);f.addEventListener("mouseleave",G);f.addEventListener("blur",G);f.addEventListener("tap",G);_.Cz(function(){f.removeEventListener("mouseenter",T);f.removeEventListener("mouseleave",G);f.removeEventListener("focus",T);f.removeEventListener("blur",G);f.removeEventListener("tap",G);HMF()})},
A.next().value]};
el=function(A,Q){_.Z3(A,Object.assign({},Q,{forceClickLogging:!0}))};
ocA=function(A,Q){var b=_.ue(A==null?void 0:A.onTap),f={};b&&(f.getClickedVisualElement=function(){var a;return qgb(A,b,Q==null?void 0:(a=Q.value)==null?void 0:a.visualElement)});
f=_.y0({elementsCommand:A.onTap,forceNewState:!0,additionalCommandArgs:f});return Yz(f)?f:void 0};
tCi=function(A,Q,b,f){el(A,Object.assign({},{form:{element:Q,event:b}},f))};
rBW=function(A,Q,b,f,a){var T=void 0;return function(G){var p=_.ue(b?A==null?void 0:A.onDisabledTap:A==null?void 0:A.onTap);if(p){var P;T=(P=T)!=null?P:Q==null?void 0:Q.value;if(p)if(_.K("web_button_vm_click_client_ve_killswitch"))tCi(p,T,G);else{var U;P=qgb(A,p,(U=T)==null?void 0:U.visualElement);if(a){tCi(p,a,G,{clickedVisualElement:P,form:{element:a}});return}tCi(p,T,G,{clickedVisualElement:P})}}f&&f(G)}};
qgb=function(A,Q,b){Q=Q==null?void 0:Q.clickTrackingParams;var f,a;A=A==null?void 0:(f=A.loggingDirectives)==null?void 0:(a=f.clientVeSpec)==null?void 0:a.uiType;if(b&&A&&!Q)return b};
j5f=function(A){switch(A){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"}};
Rf9=function(A){switch(A){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"}};
gcF=function(A){switch(A){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"}};
ef4=function(A){switch(A){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"}};
hf9=function(A,Q){return _.Me(A.entities,"engagementToolbarStateEntityPayload",Q)};
vcJ=function(A){(A=_.t8(A))&&_.WvW(A)};
_.WvW=function(A){var Q=_.WR();Q&&_.yI(Q,A)};
Ec6=function(A,Q,b){_.pD(A,"yt-open-popup-action",[Q,b||A])};
x4Y=function(A,Q){var b=_.R8(A,"endpoint"),f=_.R8(A,"action");return(b=f?f:b)&&Q&&(b=Q.navigationEndpointPopupMap[b])&&(A=_.zV(b,A),(b=_.R8(A,"renderer"))&&Q.supportedPopups.hasOwnProperty(b))?{openPopupAction:{popupType:Q.popupTypeMap[b],popup:A}}:null};
cBf=function(A,Q,b,f){if(f){var a;b=b==null?void 0:(a=b.data)==null?void 0:a.contents;(a=b instanceof Array&&b.length?b[0]:b)&&(b=_.R8(a,"renderer"))&&f.supportedPopups.hasOwnProperty(b)&&(Q.stopPropagation(),Ec6(A,{openPopupAction:{popupType:f.popupTypeMap[b],popup:a}}))}};
uPW=function(A,Q,b,f){f=f===void 0?!1:f;var a=zf4(Q);if(a){a.href&&yK(a.href);var T=Q.button;T=T!==void 0?T===0&&!hf(Q):!hf(Q);a.data&&T&&wWY(A,a,Q,b,f)}};
wWY=function(A,Q,b,f,a){a=a===void 0?!1:a;var T=_.GP("pbj_navigate_limit",-1)===0;ZMY(Q);_.fJ().resolve(_.bu(Zl));var G=Q.data;if(Object.keys(G).length!==0)if(!_.K("unplugged_web_disable_actions_for_cec_endpoint")&&_.V(G,_.LD))_.K("endpoint_behavior_command_executor_fix_killswitch")||(b.preventDefault(),b.stopPropagation()),_.ST(A,[G],A);else if(f=x4Y(G,f))G.loggingUrls&&G.loggingUrls.forEach(function(P){P.baseUrl&&_.zp(P.baseUrl)}),b.preventDefault(),b.stopPropagation(),Ec6(A,f,Q);
else{var p=yBY(0,Q.data,b);if(A=Q.getForm)A=A(),p.tempData=p.tempData||{},p.tempData=Object.assign({},p.tempData,A);A=_.mW(b);if(f=A.find(function(P){return!!P.visualElement}))p.createScreenConfig=p.createScreenConfig||{},p.createScreenConfig.clickedVisualElement=f.visualElement;
if(!T)if(b.preventDefault(),b.stopPropagation(),_.V(G,_.YgY)&&!a&&_.J8.instance)_.J8.instance.resolveCommand(G,p);else if(_.K("kevlar_command_handler_formatted_string")&&!a&&_.J8.instance&&D44(G))a=A.find(function(P){return!!P.is})||b.target,b={form:Object.assign({},p,{event:b,
element:a,originatingNode:Q})},_.J8.instance.resolveCommand(G,b);else{G=_.mW(b);b=[];for(a=0;a<G.length;a++)(T=G[a].is)&&b.push(T);H6F({parents:b.join(","),text:Q.innerText},function(){_.Bn(Q,"yt-navigate",p)})}}};
$4f=function(A){if(A=zf4(A))ZMY(A),U0e(A.href)};
zf4=function(A){A=_.mW(A);for(var Q,b=0;b<A.length;b++)if(Q=A[b],Q.tagName==="A"&&Q.classList.contains("yt-simple-endpoint")){if(!Q.data)break;return Q}return null};
hf=function(A){return A.shiftKey||A.altKey||A.metaKey||A.ctrlKey};
NXi=function(A,Q){var b={itct:Q.clickTrackingParams};_.K("kevlar_client_side_screens")&&(!_.V(Q,_.CT)||_.K("kevlar_exclude_endpoint_killswitch"))&&(b.endpoint=JSON.stringify(Q));_.K("enable_unknown_lact_fix_on_html5")&&_.fJ().resolve(_.bu(_.Wz))&&(b.lact=_.TD());PtJ(b);_.bi(A,b)};
ZMY=function(A){A.href&&Object.keys(A.data).length!==0&&NXi(A.href,A.data)};
D44=function(A){for(var Q=_.F(s5A),b=Q.next();!b.done;b=Q.next())if(A[b.value])return!1;return!0};
_.vz=function(A,Q){if(Q){var b={};m4e.forEach(function(f){f=AWi(Q,f,"--yt-lightsource-");Object.assign(b,f)});
QUe.forEach(function(f){f=AWi(Q,f,"--yt-basic-");Object.assign(b,f)});
_.Uc(A,b)}};
AWi=function(A,Q,b){var f={};f[b+_.Vr(Q)]=A&&A[Q]?_.w6(A[Q]):"";return f};
_.xo=function(A,Q,b){E4[A]||(E4[A]={});E4[A][Q]=b};
_.cz=function(A){E4[A]||(E4[A]={});return E4[A]};
bRb=function(A){if(!A)return{};var Q=A.foregroundTitleColor,b=A.backgroundColor;A=A.borderColor;var f="text";A?f="outline":b&&(f="filled");return{type:f,customColors:{color:Q?_.w6(Q):void 0,backgroundColor:b?_.w6(b):void 0,borderColor:A?_.w6(A):void 0}}};
Fq6=function(A){var Q=A.renderer;var b=A.element;var f=A.commandController;var a=A.onTapCallback;var T=A.skipCommandHandling;var G=A.overrides;var p=A.forceIcon;var P=A.forceModernIconButton;var U=A.forceDisabled;var L=A.isSubscribe===void 0?!1:A.isSubscribe;var M=A.isPressed===void 0?!1:A.isPressed;var l=A.useButtonSize===void 0?!1:A.useButtonSize;A=f2Y(Q);L&&(A.style="mono",A.type="filled");p=!Q.icon||!p&&Q.text?Q.icon?Q.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:P?"icon-only":"icon-only-40";p==="icon-only-40"&&(A.type="text");var J;P=Object;L=P.assign;l=a2C(Q,l);M=!!Q.isSelected||!_.K("web_propagate_is_pressed_killswitch")&&!!M;var n=Q.isSelected!==void 0;U=U===void 0?Q.isDisabled:U;var t=Q.text?_.xz(Q.text):void 0;var g,e,x,D=((g=Q.accessibilityData)==null?void 0:(e=g.accessibilityData)==null?void 0:e.label)||((x=Q.accessibility)==null?void 0:x.label);g=D?D:_.mO(Q.text);b=TZY(Q,b,f,a,T);f=dyf(Q);f!=null&&f.length?(f=_.y0({innertubeCommand:IAi(f),
forceNewState:!0}),f=Yz(f)?f:void 0):f=void 0;return L.call(P,{},A,l,{iconPosition:p},G,{focused:!1,toggled:M,toggleable:n,disabled:U,formattedButtonText:t,accessibilityLabel:g,onTap:b,aTagConfig:f},bRb((J=Q.colorData)==null?void 0:J.basicColorPaletteData),{oneOffCustomTextWrap:Q.oneOffCustomTextWrap})};
TZY=function(A,Q,b,f,a){return function(T){var G=dyf(A);f(G,T);if(!a){G=_.F(G);for(var p=G.next();!p.done;p=G.next())el(p.value,{form:{element:Q,event:T},commandController:b})}}};
dyf=function(A){var Q=[];A.command&&Q.push(A.command);A.serviceEndpoint&&Q.push(A.serviceEndpoint);A.navigationEndpoint&&Q.push(A.navigationEndpoint);return Q};
a2C=function(A,Q){if(Q)switch(A.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(A.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
f2Y=function(A){switch(A.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
Gtf=function(A,Q){return typeof A!=="object"||A===null?!1:Object.keys(Q).every(function(b){return b in A})};
BZi=function(A,Q,b){return BPJ(b,function(f,a){return function(T){var G=_.E$.apply(1,arguments);return Gtf(T,A)?a.apply(null,[T[Q]].concat(_.ri(G))):a.apply(null,[T].concat(_.ri(G)))}})};
_.zZ=function(A){return A!=null&&A.watch?A.watch.isTheaterMode:!1};
_.w_=function(A){return A!=null&&A.watch?A.watch.isWatchFullscreen:!1};
_.uc=function(A){A=_.pPY(A);return _.K("web_watch_enable_single_column_grid_view")?A:!1};
_.pPY=function(A){return A.watch.isWatchNarrowWidth};
_.PKC=function(A){return A.watch.openEngagementPanels};
_.Zc=function(A){return _.Lz(function(){b9C()();return Tt4(A)},{debugName:"d8B62c"},"wfRQAb")};
yR=function(A,Q){return _.Me(A.entities,"likeStatusEntity",Q)};
XP4=function(A,Q){return _.Me(A.entities,"likeCountEntity",Q)};
_.Sm6=function(A,Q){return _.Me(A.entities,"stringEntity",Q)};
UyX=function(A,Q){if(!A)return!1;var b,f=(b=_.V(A,_.li))==null?void 0:b.signal;if(f&&Q.signalEndpointMap)return!!Q.signalEndpointMap[f];var a;if((b=(a=_.V(A,_.Yo))==null?void 0:a.request)&&Q.continuationEndpointMap)return!!Q.continuationEndpointMap[b];for(var T in A)if(Q.commandEndpointMap[T])return!0;return!1};
Lq9=function(A,Q){if(Q.streamingEndpointMap)for(var b in A)if(Q.streamingEndpointMap[b]&&(A=Q.streamingEndpointMap[b]))return A()};
Mm9=function(A,Q){var b,f=(b=_.V(A,_.li))==null?void 0:b.signal;if(f&&Q.signalEndpointMap&&(b=Q.signalEndpointMap[f]))return b();var a;if((b=(a=_.V(A,_.Yo))==null?void 0:a.request)&&Q.continuationEndpointMap&&(a=Q.continuationEndpointMap[b]))return a();for(var T in A)if(Q.commandEndpointMap[T]&&(A=Q.commandEndpointMap[T]))return A()};
l2Y=function(A){var Q={"Content-Type":"application/json"};_.vG("EOM_VISITOR_DATA")?Q["X-Goog-EOM-Visitor-Id"]=_.vG("EOM_VISITOR_DATA"):_.vG("VISITOR_DATA")&&(Q["X-Goog-Visitor-Id"]=_.vG("VISITOR_DATA"));Q["X-Youtube-Bootstrap-Logged-In"]=_.vG("LOGGED_IN",!1);_.vG("DEBUG_SETTINGS_METADATA")&&(Q["X-Debug-Settings-Metadata"]=_.vG("DEBUG_SETTINGS_METADATA"));A!=="cors"&&((A=_.vG("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(Q["X-Youtube-Client-Name"]=A),(A=_.vG("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(Q["X-Youtube-Client-Version"]=
A),(A=_.vG("CHROME_CONNECTED_HEADER"))&&(Q["X-Youtube-Chrome-Connected"]=A),(A=_.vG("DOMAIN_ADMIN_STATE"))&&(Q["X-Youtube-Domain-Admin-State"]=A),_.Ep("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(A=_.vG("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(Q["X-YouTube-Lava-Device-Context"]=A));return Q};
KqW=function(A,Q){Q.watchNextResponse||Q.reelItemWatchResponse?Q.watchNextResponse?A.content=Q.watchNextResponse:A.content=Q.reelItemWatchResponse:Q.playerResponse?A.player=Q.playerResponse:Q.reelWatchSequenceResponse&&(A.reelSequence=Q.reelWatchSequenceResponse)};
_.Dc=function(A){if(!A)return null;for(var Q=[],b=0;b<A.textSegments.length;b++){var f=A.textSegments[b];f.text?Q.push(f):f.emojiId&&Q.push({emoji_id:f.emojiId})}return{text_segments:Q}};
nWC=function(A,Q,b,f,a,T,G){T=T===void 0?[]:T;var p=new _.$o;p.endpoint=b;if(!b)return _.hq(new _.IO("handle undefined endpoint",Q.tagName)),p;var P=eQY(b);P.length&&(_.ST(A,P,Q,f),p.actions=P);b.loggingUrls&&b.loggingUrls.forEach(function(L){L.baseUrl&&wO(L.baseUrl,L.attributionSrcMode)});
P=!_.K("web_skip_impression_click_killswitch")&&f&&f.impression;if(b.clickTrackingParams&&!iRe(b)&&!JWf(Q)&&!P&&(P=_.IP(),!_.NM(P,Q))){var U=Q.getScreenLayer&&Q.getScreenLayer();U?P.clickCommand(b,null,U):P.clickCommand(b,null)}P=!1;for(U=0;U<T.length;U++)if((0,T[U])(Q,b,f)){P=!0;break}!P&&VmF(b)&&(p.ajaxPromise=ORA(A,Q,b,f,a,G));return p};
JWf=function(A){var Q;return(A=(Q=A.data)==null?void 0:Q.navigationEndpoint)&&!!A.clickTrackingParams};
iRe=function(A){var Q=_.V(A,_.li);if(Q&&(Q=Q.signal)&&ktA.indexOf(Q)>=0)return!0;for(var b in A)if(I2e.indexOf(b)>=0)return!0;return!1};
VmF=function(A){var Q;if(((Q=_.V(A,_.li))==null?void 0:Q.signal)==="CLIENT_SIGNAL")return!1;for(var b in A)if(HRW.indexOf(b)>=0)return!1;A=Object.keys(A);return A.length===1&&A[0]==="loggingUrls"?!1:!0};
gWF=function(A,Q,b,f,a,T,G){var p=_.s4.instance;if(p&&_.m4(p,f))var P=_.Ay(p,f,a).then(function(L){return(L==null?0:L.data)?L:{data:L}});
else P=A.requestDataForServiceEndpoint(f,a),_.V(f,CKA)||_.V(f,qmY)||_.V(f,_.oWC)||_.V(f,tm6)||_.Wv(new _.IO("No RequestBuilder for endpoint",f));var U=_.Qh();U.promise.thenCatch(function(){var L=_.R8(f,"action")||_.R8(f,"command")||_.R8(f,"endpoint");L&&(L=f[L],L.hasOwnProperty("onFailureAction")?_.ST(Q,[L.onFailureAction],b):L.hasOwnProperty("onFailureCommand")&&_.ST(Q,L.onFailureCommand,b));P.cancel("Resolver promise rejected")});
P.then(function(L){if(L){var M=L.error;if(M){if(T&&T.onServerError)T.onServerError(f,L);U.reject(new _.IO("Response error",f,M))}else if(L=L.data)if(M=L.error){if(T&&T.onServerError)T.onServerError(f,L);U.reject(new _.IO("Returned error",f,M))}else{rWJ(Q,b,L,f);jUA(L);if(M=gsJ(L))for(var l=_.F(M),J=l.next();!J.done;J=l.next()){J=J.value;var n=_.fJ().resolve(_.bu(Ry4))||bJ;if(!_.s4.instance||!n.some(function(g){return!!_.V(f,g)})||_.K("kevlar_response_processor_allowlist_killswitch")){var t=n=void 0;
((t=_.V((n=J)==null?void 0:n.commandMetadata,_.KD))==null?0:t.sendPost)?_.X5(Q,[J]):_.ST(Q,[J],b)}}(l=_.V(L==null?void 0:L.frameworkUpdates,f6))&&G&&G(l);if(T&&T.onSuccess)T.onSuccess(f,L);U.resolve(new _.a$(L,M))}}else U.reject(new _.IO("Invalid service endpoint provided",f))},function(L){U.reject(L)});
return U.promise};
jUA=function(A){var Q;(A=(Q=_.V(A==null?void 0:A.onResponseReceivedCommand,_.eyY))==null?void 0:Q.continuationItems)&&(A==null?void 0:A.length)===1&&_.V(A[0],hy4)&&_.hQ("so_r",void 0,"search_overview_answer")};
ORA=function(A,Q,b,f,a,T){var G;return(G=Q.getNetworkManager&&Q.getNetworkManager()?Q.getNetworkManager():_.fJ().resolve(_.bu(_.WY)))?gWF(G,A,Q,b,f,a,T):_.gF("No network manager.")};
rWJ=function(A,Q,b,f){if(b=b.trackingParams||b.loggingDirectives&&b.loggingDirectives.trackingParams){var a;(_.V(f,Wqy)||_.V(f,vWU)||_.V(f,EWe))&&f.clickTrackingParams?a=_.t8(f.clickTrackingParams):_.K("web_graft_to_parent_command")&&f.clickTrackingParams&&(a=_.t8(f.clickTrackingParams));var T;f=(T=Q.getScreenLayer)==null?void 0:T.call(Q);Q=_.IP().graftServerVe(b,a,f);_.Pn(A,"yt-store-grafted-ve-action",[Q])}};
_.xy9=function(A){var Q=new Image;return new _.M3(function(b,f){Q.addEventListener("load",function(){b()});
Q.addEventListener("error",function(){f()});
Q.src=A})};
cWY=function(A){return!!A};
zyU=function(A){return!!A};
wPU=function(A,Q,b){var f=A.rowIndex;f!==void 0&&_.Pn(A.hostElement,"yt-section-reactive-dismissal",[f,Q,b])};
_.TG=function(A,Q,b){A=_.F(A);for(var f=A.next();!f.done;f=A.next()){f=f.value;if(f===Q)break;for(var a=_.F(b),T=a.next();!T.done;T=a.next())if(T=T.value,f.tagName===T||!_.K("web_event_button_role_check_killswitch")&&f.role==="button"&&T==="BUTTON")return!0}return!1};
_.dz=function(A,Q,b){A=_.F(A);for(var f=A.next();!f.done;f=A.next()){f=f.value;if(f===Q)break;for(var a=_.F(b),T=a.next();!T.done;T=a.next())if(f.id===T.value)return!0}return!1};
uyf=function(A){switch(A){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}};
ZRy=function(A,Q){if(!A&&!Q)return"medium";A=Math.max(A||0,Q||0);return A>=256?"large":A>=96?"medium":"small"};
yW6=function(A){switch(A){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.BL=function(){var A=_.fJ().resolve(_.bu(_.F7));return A?(A=A.getCurrentPage())?_.GG(A):null:null};
_.p6=function(){var A=_.BL();if(!A){var Q=_.fJ().resolve(_.bu(_.F7)),b=Q?typeof Q:"no page manager";Q=Q?Q.getCurrentPage():null;b=new _.IO("Player is missing when requested.",b,Q?Q.tagName:"no page");_.en(b)}return A};
_.GG=function(A){return A&&A.getPlayer?A.getPlayer():null};
Ym9=function(A,Q){A={args:{raw_player_response:A}};Q&&(A.args=Object.assign({},A.args,Q));return A};
Dy4=function(A){if(A.args){if(A.args.raw_player_response)return A.args.raw_player_response;if(A.args.player_response)return JSON.parse(A.args.player_response)}};
_.$yJ=function(A,Q){var b={url:"/watch?v="+A.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};A.playlistId&&(b.url+="&list="+A.playlistId);A.playerParams&&(b.url+="&pp="+A.playerParams);A={watchEndpoint:A,commandMetadata:{webCommandMetadata:b}};Q&&(A.clickTrackingParams=Q);return A};
sUJ=function(){return NZ4||!!_.zV("yt.player.Application")};
AaC=function(){return my6||!!document.querySelector("link#player-css")};
bPJ=function(){function A(){NZ4=!0;Qm6.resolve()}
var Q,b;return _.B(function(f){Qm6||(Qm6=new _.Mj,sUJ()?A():(Q=document.createElement("script"),Q.addEventListener("load",A),b=_.CK(_.vG("PLAYER_JS_URL")),_.mw(Q,b),document.head.appendChild(Q)));return f.return(Qm6.promise)})};
aZy=function(){function A(){my6=!0;fZX.resolve()}
if(!fZX)if(fZX=new _.Mj,AaC())A();else{var Q=document.createElement("link");Q.id="player-css";Q.addEventListener("load",A);var b=_.CK(_.vG("PLAYER_CSS_URL"));_.bM(Q,b,"stylesheet");document.head.appendChild(Q)}return fZX.promise};
TIi=function(){return sUJ()&&AaC()?Promise.resolve([]):Promise.all([bPJ(),aZy()])};
dGF=function(A,Q,b){var f={args:{}};A&&(f.args.raw_player_response=A);Q&&(f.args.raw_watch_next_response=Q);b&&(f.args=Object.assign({},f.args,b));return f};
puY=function(A,Q,b){var f=!1;f=f===void 0?!0:f;A=typeof A==="string"?_.PL(document,A):A;var a=FbX+"_"+_.YC(A),T=GjU[a];if(T&&f)return BIY(Q,b)?T.api.loadVideoByPlayerVars(Q.args||null):T.loadNewVideoConfig(Q),T.api;T=new X7(A,a,Q,b,void 0);GjU[a]=T;T.addOnDisposeCallback(function(){delete GjU[T.getId()]});
return T.api};
BIY=function(A,Q){return Q&&Q.serializedExperimentFlags?Q.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):A&&A.args&&A.args.fflags?A.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
PU4=function(){var A=new _.Mj;A.resolved=!1;var Q=A.resolve;A.resolve=function(b){A.resolved=!0;Q(b)};
return A};
S6A=function(A){var Q={};XuY().install((Q.document_disposed={callback:A},Q))};
SJ=function(A,Q){if(!A&&Math.random()<=_.GP("kevlar_unified_player_logging_threshold")){A=Error("th`"+(Q?Q:"Unspecified error"));if(_.K("kevlar_unified_player_throw_errors"))throw A;_.Wv(A)}};
_.UG9=function(){var A=_.zV("ytDebugData.callbacks");A||(A={},_.Al("ytDebugData.callbacks",A));return A};
MRF=function(A,Q){var b=_.UG9();if(_.K("web_dd_iu")||Lbb.includes(A))b[A]=Q};
lZ4=function(){return _.B(function(A){return A.return({isLeader:_.Nli(_.QK().getState()),c:_.vG("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.vG("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Kbb=function(){var A;_.B(function(Q){if(Q.nextAddress==1)return MRF("APP_STATE",lZ4),Q.yield(_.fJ().resolve(_.Uh),2);A=Q.yieldResult;MRF("PI",function(){return _.B(function(b){return b.return(A.getVideoStats())})});
_.Oi(Q)})};
iPJ=function(A){var Q=_.QI(_.yr(_.by.location.href));A=_.QI(_.yr(A));return _.K("kevlar_clear_non_displayable_url_params")?Q==L6(A):L6(Q)==L6(A)};
L6=function(A){var Q=_.Ja4(A);A=A.slice(0);var b=["frags"];_.K("kevlar_hide_pp_url_param")&&b.push("pp");_.K("kevlar_hide_time_continue_url_param")&&b.push("time_continue");b=_.F(b);for(var f=b.next();!f.done;f=b.next())f=f.value,A=_.fD(_.QI(A),f);return _.QI(A)+(Q?"#"+Q:"")};
MI=function(A,Q){Q=Number(Q)*1E3;var b=Math.round((0,_.f4)()),f=b.toString();A={innertubeResponse:A,serverDateTimestampMs:f,lastModifiedTimestampMs:f,expireTimestampMs:(b+Q).toString()};if(Q=_.vG("INNERTUBE_CONTEXT_CLIENT_NAME"))A.clientName=Q;return A};
OPC=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++VRY};
_.n9b=function(){var A=_.hx(),Q=_.WR();Q&&A&&_.DV(Q,[A],!0)};
IZX=function(A){return A&&kj6.some(function(Q){return A.includes(Q)})};
raA=function(A){var Q=_.V(A,_.y_);if(!Q)return!1;var b=Q.url,f=Q.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!b)return _.en(Error("yh")),!1;if(Q.target==="TARGET_NEW_WINDOW"){var a={};_.K("resolve_url_parent_tracking_params")&&(!_.sp(b)||mR(window.location.href,b))&&(a={endpoint:A,itct:A.clickTrackingParams});PtJ(a);A=null;try{if(f)return A=_.i_X(b,"_blank",a,void 0,f),HPX(_.fJ().resolve(CUC),A,b),!0}catch(l){_.en(l)}_.bi(b,a);Q={target:"_blank",noopener:_.K("set_window_noopener_ks")&&
!Q.allowOpener};A=window;f=ts(b)?b:_.hs(typeof b.href!="undefined"?b.href:String(b));a=self.crossOriginIsolated!==void 0;var T="strict-origin-when-cross-origin";window.Request&&(T=(new Request("/")).referrerPolicy);var G=Q.noreferrer;if(a&&G&&T==="unsafe-url")throw Error("pe");T=G&&!a;G=Q.target||b.target;var p=[],P=[],U=!1;for(M in Q){var L=Q[M];switch(M){case "width":case "height":case "top":case "left":p.push(M+"="+L);break;case "target":break;case "noopener":case "noreferrer":L?P.push(M):(U=!0,
P.push(M+"=false"));break;case "attributionsrc":p.push(M+(L?"="+L:""));break;default:p.push(M+"="+(L?1:0))}}var M=G!==void 0&&!["_blank","_self","_top","_parent",""].includes(G);M=CF()&&M;q6y&&a&&p.length===0&&P.length>0&&!M&&!U?(P.length===2&&(P=["noreferrer"]),_.Y8(A,f,G,P[0]),A=o9Y()):(M=p.join(","),_.t4()&&A.navigator&&A.navigator.standalone&&G&&G!="_self"?(M=_.KK("A"),_.ch(M,f),M.target=G,T&&(M.rel="noreferrer"),((Q=Q.attributionsrc)||Q==="")&&M.setAttribute("attributionsrc",Q),Q=document.createEvent("MouseEvent"),
Q.initMouseEvent("click",!0,!0,A,1),M.dispatchEvent(Q),A=o9Y()):T?(A=_.Y8(A,"",G,M),Q=_.r$(f),A&&(A.opener=null,Q===""&&(Q="javascript:''"),Q='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+lJ(Q)+'">',Q=w$(Q),(f=A.document)&&f.write&&(f.write(un(Q)),f.close()))):((A=_.Y8(A,f,G,M))&&Q.noopener&&(A.opener=null),A&&Q.noreferrer&&(A.opener=null)));HPX(_.fJ().resolve(CUC),A,b);return!0}Q=_.LJ(b);Q=IZX(Q)||b==="https://studio.youtube.com/";f=!(!_.sp(b)||mR(window.location.href,
b));M=b.indexOf("disable_polymer=1")>=0;if(f||M||Q)yK(b),RF(),_.Yr(b,void 0,void 0,window.top,tRX);else return _.Wv(new _.IO("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",A)),!1;return!0};
_.g94=function(A,Q){Q=Q===void 0?0:Q;if(!(_.V(A,jmi)||_.V(A,RP4)||_.V(A,_.y_)&&_.V(A,_.y_).url))return!1;var b,f=(b=_.V(A,_.y_))==null?void 0:b.url;b=f?{externalLinkData:{url:f}}:null;return _.IP().clickCommand(A,b,Q)};
ePf=function(A,Q){return _.Me(A.entities,"subscriptionStateEntity",Q)};
hPY=function(A,Q){return _.Me(A.entities,"subscriptionNotificationStateEntity",Q)};
Wb6=function(A,Q){return _.Me(A.entities,"upcomingEventReminderStateEntity",Q)};
v9C=function(A,Q){return _.Me(A.entities,"engagementToolbarSurfaceEntityPayload",Q)};
E9X=function(A,Q){return _.Me(A.entities,"triStateButtonStateEntityPayload",Q)};
xGY=function(A,Q){return _.Me(A.entities,"commerceCartCheckoutButtonEntity",Q)};
_.caF=function(A,Q){return _.Me(A.entities,"playlistLoopStateEntity",Q)};
zPA=function(A,Q){return _.Me(A.entities,"commandEntity",Q)};
u2e=function(A,Q,b,f,a){a=a===void 0?{}:a;return function(T){var G,p;var P=((G=A.loggingDirectives)==null?0:(p=G.clientVeSpec)==null?0:p.uiType)?_.K6(A.loggingDirectives.clientVeSpec.uiType):void 0;a.clickedVisualElement||(a.clickedVisualElement=P);P=wuy(A,Q);b(P,T);P=_.F(P);for(G=P.next();!G.done;G=P.next()){G=G.value;p=f;var U=T,L=a;L.form?L.form.event=U:L.form={element:p,event:U};el(G,L)}}};
wuy=function(A,Q){var b=[];Q?(A.toggledCommand&&b.push(A.toggledCommand),A.toggledServiceEndpoint&&b.push(A.toggledServiceEndpoint)):(A.defaultCommand&&b.push(A.defaultCommand),A.defaultServiceEndpoint&&b.push(A.defaultServiceEndpoint),A.defaultNavigationEndpoint&&b.push(A.defaultNavigationEndpoint));return b};
ZPY=function(A,Q){var b=A.toggledStyle||A.style,f;switch((f=Q?b:A.style)==null?void 0:f.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"}}};
_.iJ=function(){return _.B(function(A){return A.nextAddress==1?A.yield(_.fJ().resolve(_.Uh),2):A.return(_.fJ().resolve(yaY)())})};
_.Jy=function(){return _.fJ().resolve(yaY)()};
_.Vh=function(){return rN(function(){return{lottieEl:void 0}})};
Y6C=function(A,Q){return A.startsWith(Q.uniqueId)};
DGJ=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(_.iJ(),2);Q=f.yieldResult;if((b=Q)==null||!b.addEventListener)return Oh(),f.return();Q.addEventListener("onCueRangeEnter",A);_.Oi(f)})};
$GU=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(_.iJ(),2);Q=f.yieldResult;if((b=Q)==null||!b.removeEventListener)return Oh(),f.return();Q.removeEventListener("onCueRangeEnter",A);_.Oi(f)})};
NIY=function(A){var Q,b,f,a,T;_.B(function(G){if(G.nextAddress==1)return G.yield(_.iJ(),2);Q=G.yieldResult;if((b=Q)==null||!b.addCueRange)return Oh(),G.return();f=_.F(A.timings);for(a=f.next();!a.done;a=f.next())T=a.value,Q.addCueRange(A.uniqueId+"-"+T,T/1E3,(T+100)/1E3);_.Oi(G)})};
smy=function(A){var Q,b,f,a,T;_.B(function(G){if(G.nextAddress==1)return G.yield(_.iJ(),2);Q=G.yieldResult;if((b=Q)==null||!b.removeCueRange)return Oh(),G.return();f=_.F(A.timings);for(a=f.next();!a.done;a=f.next())T=a.value,Q.removeCueRange(A.uniqueId+"-"+T);_.Oi(G)})};
mGe=function(){var A,Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(_.iJ(),2);A=f.yieldResult;if((Q=A)==null||!Q.getPlayerState)return Oh(),f.return();b=A.getPlayerState();return f.return(b===2)})};
Oh=function(){_.Wv(new _.IO("Smartimation player does not exist or is corrupted"))};
AD9=function(){try{var A;return(A=window.CSS)!=null&&A.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(Q){return _.Wv(new _.IO("Smartimation CSS.supports threw an error")),!1}};
FgX=function(A,Q,b,f,a){var T=A.playlistId?QpA:bIA;Q=Q();b=b();a=!!A.videoId&&a()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.IX(Q))return fo4({data:A,actionType:T,disabled:a},b);if(A.videoId&&f())return aoA({data:A,actionType:T,disabled:a});switch(Q){case "TRANSFER_STATE_UNKNOWN":return aoA({data:A,actionType:T,disabled:a});case "TRANSFER_STATE_FAILED":return A.videoId?T0A({data:A,actionType:T,disabled:a}):dTy({data:A,actionType:T,disabled:a});case "TRANSFER_STATE_COMPLETE":return dTy({data:A,
actionType:T,disabled:a});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return fo4({data:A,actionType:T,disabled:a},b);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return A.videoId?T0A({data:A,actionType:T,disabled:a}):aoA({data:A,actionType:T,disabled:a});default:return aoA({data:A,actionType:T,disabled:a})}};
GF9=function(A,Q){var b=A.onTapCommand,f=_.ue(b);if(A.videoId&&_.V(f,_.n6))return _.V(f,_.n6).action=Q,b;A.playlistId&&_.V(f,_.ks)&&(_.V(f,_.ks).action=Q);return b};
aoA=function(A){var Q=A.data;var b=A.actionType;A=A.disabled;return{text:B0Y,iconType:"OFFLINE_DOWNLOAD",onTap:GF9(Q,b.ACTION_ADD),disabled:A}};
fo4=function(A,Q){var b=A.data;var f=A.actionType;A=A.disabled;var a="OFFLINE_DOWNLOAD";Q>=0&&Q<=.1?a="OFFLINE_DOWNLOADING_ZERO":Q>.1&&Q<=.3?a="OFFLINE_DOWNLOADING_TWENTY":Q>.3&&Q<=.5?a="OFFLINE_DOWNLOADING_FORTY":Q>.5&&Q<=.7?a="OFFLINE_DOWNLOADING_SIXTY":Q>.7&&Q<1?a="OFFLINE_DOWNLOADING_EIGHTY":Q===1&&(a="OFFLINE_PIN");return{text:pUY,iconType:a,onTap:GF9(b,f.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
dTy=function(A){var Q=A.data;var b=A.actionType;A=A.disabled;return{text:PfC,iconType:"OFFLINE_PIN",onTap:GF9(Q,b.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
T0A=function(A){var Q=A.data;var b=A.actionType;A=A.disabled;return{text:XUJ,iconType:"OFFLINE_DOWNLOAD",onTap:GF9(Q,b.ACTION_RETRY),disabled:A}};
Mrf=function(A){var Q=SjA;UTb.push(A);Lgb||(Q(function(){for(var b=_.F(UTb),f=b.next();!f.done;f=b.next())f=f.value,f();UTb.length=0;Lgb=!1}),Lgb=!0)};
SjA=function(A){Promise.resolve().then(A)};
loY=function(A){A=_.F(dle(A));var Q=A.next().value,b=A.next().value,f=!1;_.tz(function(){return function(){f=!0}});
return[Q,function(a){Mrf(function(){f&&!_.K("cow_prevent_state_setter_after_cleanup_killswitch")||b(a)})}]};
_.I$=function(A,Q){var b=b9C();return _.Lz(function(){b();return Tt4(A,[_.o7(Q)||""])},{debugName:"LUZslf"},"qYSKAc")};
Kgy=function(A){var Q=_.I$(_.xL,function(){return A().videoId}),b=_.I$(_.cO,function(){return A().playlistId});
return function(){return A().videoId?Q:A().playlistId?b:_.F(_.pz("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
iIF=function(A){var Q=_.I$(z7,function(){return A().videoId}),b=_.I$(_.$kX,function(){return A().playlistId});
return function(){return A().videoId?Q:A().playlistId?b:_.F(_.pz(0,void 0,"K4tgOc")).next().value}};
JDA=function(A){var Q=_.I$(_.Tkb,function(){return A().videoId});
return function(){return A().videoId?Q:_.F(_.pz(!1,void 0,"Oaxwcf")).next().value}};
VrJ=function(A){var Q=_.I$(mki,function(){return A().videoId});
return function(){return A().videoId?Q:_.F(_.pz("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
OIY=function(){return{}};
nY9=function(){var A,Q;return(Q=(A=_.fJ().resolve(_.bu(_.Af)))==null?void 0:A())!=null?Q:!1};
IoX=function(A,Q){A=A===void 0?kFb:A;switch(Q.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},A,{isOpen:Q.payload});default:return A}};
CfU=function(A,Q){A=A===void 0?HIJ:A;switch(Q.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},A,{isAllowed:Q.payload});default:return A}};
oY6=function(A,Q){A=A===void 0?qji:A;switch(Q.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{errorMessage:Q.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{title:Q.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},A,{privacy:Q.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},A,{isDisabled:Q.payload});default:return A}};
rDe=function(A,Q){A=A===void 0?tr9:A;switch(Q.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},A,{isOpen:Q.payload});default:return A}};
RTi=function(A,Q){A=A===void 0?jp4:A;switch(Q.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},A,{isFullscreen:Q.payload});case "SET_NAVIGATION_BUTTON":var b=Q.payload.targetId,f=Object.assign({},A.navigationButtons);f[b]=Q.payload.button;return Object.assign({},A,{navigationButtons:f});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},A,{topPanelId:Q.payload});case "SET_SECONDARY_HEADER":return b=Q.payload.panelId,f=Object.assign({},A.secondaryHeader),f[b]=Q.payload.secondaryHeader,
Object.assign({},A,{secondaryHeader:f});default:return A}};
WgC=function(){return ih(Object.assign({},{entities:d84,voiceSearch:uIi,engagementPanel:RTi,bottomSheet:IoX,cinematicSetting:CfU,shorts:oZi,drawerLayout:rDe,createPlaylist:oY6,locationCollection:gYe,reportChannel:eTi,reportForm:hTJ},tqF))};
vYY=function(A,Q){_.j7.addLowPriorityJob(function(){var b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:return _.ML(T,2),T.yield(rnb(),4);case 4:return T.yield(fetch(A),5);case 5:return b=T.yieldResult,T.yield(b.json(),6);case 6:f=T.yieldResult;VR.set(A,f);requestAnimationFrame(function(){Q(f)});
_.Z1(T,0);break;case 2:a=_.Vw(T),_.Wv(a),_.Oi(T)}})})};
EYU=function(A){var Q={animationConfig:{},listeners:{}},b=function(){A(!0)};
Q.listeners.data_failed=b;Q.listeners.error=b;Q.listeners.data_ready=function(){A(!1)};
return Q};
zTY=function(A){var Q=A.model;var b=A.subscribed;var f=A.isOverlay;var a=A.element;var T=A.commandController;var G=A.notificationState;if(b){var p,P;var U=(Q==null?void 0:(p=Q.buttonStyle)==null?void 0:p.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:Q==null?void 0:(P=Q.unsubscribeButtonContent)==null?void 0:P.buttonText}else{var L;U=Q==null?void 0:(L=Q.subscribeButtonContent)==null?void 0:L.buttonText}a:{var M;switch(Q==null?void 0:(M=Q.buttonStyle)==
null?void 0:M.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":p="S";break a;default:p="M"}}a:if(f)f="overlay";else switch(Q.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":f="overlay";break a;default:f="mono"}a:if(b)var l="tonal";else switch((l=Q.buttonStyle)==
null?void 0:l.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":l="tonal";break a;default:l="filled"}return{style:f,type:l,state:Q.disableSubscribeButton?"disabled":"active",size:p,focused:A.focused,toggled:b,accessibilityLabel:xTW(Q,b,G),buttonText:U,iconPosition:Q.disableNotificationBell?"none":"leading-trailing",onTap:cDb(Q,b,a,T),disableTextEllipsis:!!A.disableTextEllipsis}};
cDb=function(A,Q,b,f){return function(a){if(Q){var T;var G=A.disableNotificationBell?_.ue(A==null?void 0:(T=A.unsubscribeButtonContent)==null?void 0:T.onTapCommand):_.ue(A==null?void 0:A.onShowSubscriptionOptions)}else{var p;G=_.ue(A==null?void 0:(p=A.subscribeButtonContent)==null?void 0:p.onTapCommand)}G&&el(G,{form:{element:b==null?void 0:b.value},commandController:f});a.stopPropagation()}};
xTW=function(A,Q,b){if(Q){if(A==null?0:A.disableNotificationBell){var f;return A==null?void 0:(f=A.unsubscribeButtonContent)==null?void 0:f.accessibilityText}switch(b){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var a;return A==null?void 0:(a=A.bellAccessibilityData)==null?void 0:a.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var T;return A==null?void 0:(T=A.bellAccessibilityData)==null?void 0:T.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var G;return A==null?void 0:(G=
A.bellAccessibilityData)==null?void 0:G.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var p;return A==null?void 0:(p=A.bellAccessibilityData)==null?void 0:p.disabledLabel;default:var P;return A==null?void 0:(P=A.unsubscribeButtonContent)==null?void 0:P.accessibilityText}}else{var U;return A==null?void 0:(U=A.subscribeButtonContent)==null?void 0:U.accessibilityText}};
wU6=function(A){if(A){switch(A){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":A="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":A="NOTIFICATIONS_OFF";break;default:A="NOTIFICATIONS_NONE"}return A}};
uDy=function(A,Q,b){b.subscribed!==Q&&((b=b.key)&&_.A8(_.HL("subscriptionStateEntity",b,{key:b,subscribed:Q})),A.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:Q})),Q||_.pD(A,"yt-unsubscribe-action"))};
yDF=function(A){A=_.V(_.ue(A),_.C6);var Q,b,f,a;return(a=_.V(A==null?void 0:(Q=A.panelLoadingStrategy)==null?void 0:(b=Q.inlineContent)==null?void 0:(f=b.sheetViewModel)==null?void 0:f.content,ZIe))==null?void 0:a.listItems};
Yje=function(A,Q){if(A.onShowSubscriptionOptions&&Q&&(A=yDF(A.onShowSubscriptionOptions),A!=null&&A.length)){var b=wU6(Q);A.forEach(function(f){f=_.V(f,_.qI);var a,T,G,p,P=f==null?void 0:(a=f.leadingImage)==null?void 0:(T=a.sources)==null?void 0:(G=T[0])==null?void 0:(p=G.clientResource)==null?void 0:p.imageName;f&&P&&(f.isSelected=P===b)})}};
DTC=function(A,Q,b,f){Q&&b?A.style.width=b+"px":!Q&&f&&(A.style.width=f+"px")};
$TX=function(A,Q,b){var f;(f=A.lottieEl)==null||f.goToAndPlay(0);var a;(a=Q.lottieEl)==null||a.goToAndPlay(0);_.o$(_.j7,function(){var T;(T=b.lottieEl)==null||T.goToAndPlay(0)},300)};
ty=function(){return _.fJ().resolve(_.bu(N0J))||{}};
spA=function(A){return typeof A==="function"};
_.rz=function(A){Object.keys(A);var Q=function(b,f){var a=Q.mapping||A;if(!b)return _.X(_.bd,null);if(Array.isArray(b)&&(b=mT9(a,Q,b),Array.isArray(b))){if(!b.length)return _.X(_.bd,null);if(b.length>1){for(var T=!1,G=!1,p=[],P={},U=0;U<b.length;P={data$jscomp$1924:void 0},U++)if(P.data$jscomp$1924=b[U],P.data$jscomp$1924){var L=AeF(P.data$jscomp$1924,a),M=L.mappingEntry;L=L.rendererName;M&&L&&(M&&(!spA(M)&&QMA(M)&&(G=!0),!spA(M)&&M.asyncId||(T=!0)),p.push(bjW(P.data$jscomp$1924,M,L,Q,f)))}return G&&
!T?_.X(_.bd,null,fCb()):_.X(_.bd,null,p)}b=b[0]}if(!b)return _.X(_.bd,null);b=mT9(a,Q,[b])[0];if(!b)return _.X(_.bd,null);T=AeF(b,a);a=T.mappingEntry;T=T.rendererName;return a&&T?_.X(_.bd,null,bjW(b,a,T,Q,f)):_.X(_.bd,null)};
Q.mapping=A;return Q};
_.aCY=function(A){var Q=void 0,b;for(b in A)if(A.hasOwnProperty(b)){Q=b;break}return Q};
mT9=function(A,Q,b){var f,a=(f=ty().preProcessOptions)==null?void 0:f.idomOptions;if(!a)return b;ty();return a.preProcessPropsIdom(A,b,Q.triggerRerender)};
AeF=function(A,Q){return(A=_.aCY(A))?{mappingEntry:Q[A],rendererName:A}:{mappingEntry:void 0,rendererName:void 0}};
bjW=function(A,Q,b,f,a){if(!Q)return _.X(_.bd,null);var T={};a&&a[b]&&(T=Object.assign({},a[b]));A[b]!==void 0&&(T.data=A[b]);if(spA(Q))return Q.debugName||(Q.debugName=b),_.X(Q,T);Q.asyncId&&(f.pendingIdsMap=f.pendingIdsMap||{},f.pendingIdsMap[b]=Q.asyncId);return Q.templateFn?Q.templateFn(T):QMA(Q)?fCb():_.X(_.bd,null)};
QMA=function(A){var Q;return(Q=A.showPlaceholder)!=null?Q:ty().defaultShowPlaceholder};
fCb=function(){var A=ty().placeholder;return A()};
TM9=function(A){A=_.V(A,_.jJ);return(A==null?void 0:A.iconName)&&!(A==null?0:A.title)};
Ghf=function(A,Q,b){var f;return _.X(_.bd,null,A==null?void 0:(f=A.actions)==null?void 0:f.map(function(a){return _.X("div",{class:function(){var T={"yt-flexible-actions-view-model-wiz__action":!0};T["yt-flexible-actions-view-model-wiz__action--row-action"]=Q;T["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(TM9(a))var G=!0;else if(G=_.V(a,_.R$),(G==null?0:G.isToggled)&&TM9(G==null?void 0:G.toggledButtonViewModel)||(G==null||!G.isToggled)&&TM9(G==null?void 0:G.defaultButtonViewModel))G=
!0;else{var p;G=((p=_.V(a,dvf))==null?0:p.playlistId)?!0:!1}T=(T["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=G,T["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=b,T);return _.nE(T)}},FHb([a],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!Q}}))}))};
BMe=function(A){var Q=A.layout===1,b,f=((b=A.data)==null?void 0:b.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";b={};f=(b["yt-flexible-actions-view-model-wiz"]=!0,b["yt-flexible-actions-view-model-wiz--inline"]=!Q,b["yt-flexible-actions-view-model-wiz--scrollable"]=f,b);var a,T;return _.X("yt-flexible-actions-view-model",{class:_.nE(A.className,f)},(a=A.data)==null?void 0:(T=a.actionsRows)==null?void 0:T.map(function(G){if(Q){var p;return _.X("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Ghf(G,Q,!((p=A.data)==null||!p.respectActionIntrinsicWidth)))}return Ghf(G,Q,!1)}))};
pCX=function(A,Q){Q=Q===void 0?{shouldPersist:!0}:Q;return{useUpdatableData:function(b,f){var a=[],T=_.F(_.CE(function(){var U=b();if(f!=null&&f.length&&a){var L=a.length>0;for(var M=!1,l=0;l<f.length;l++){var J=f[l]();L&&J!==a[l]&&(M=!0);a[l]=J}L=M}else L=!1;if(L)_.gz.remove(P());else if(L=_.gz.get(P()))return L;return U})),G=T.next().value,p=T.next().value,P=_.Lz(function(){return A(b())},void 0,"VFraLb");
_.H_(function(){if(P()!=null){eJ.set(P(),[G,p,!1]);var U=P();_.Cz(function(){eJ.delete(U)})}},"Fdafud");
return[G,function(U){p(U);Q.shouldPersist&&_.gz.set(P(),U)}]},
getData:function(b){var f;return(f=eJ.get(A(b)))==null?void 0:f[0]()},
updateData:function(b,f){b=A(b);var a=eJ.get(b);if(!a)return!1;var T=_.F(a);a=T.next().value;T=T.next().value;f=f(a());T(f);Q.shouldPersist&&_.gz.set(b,f);return!0},
useUpdatableDataIdom:function(b,f){var a=A(b),T=_.gz.get(a),G=_.F(loY(T!=null?T:b)),p=G.next().value,P=G.next().value,U=j6(T!=null?T:b);_.qq(function(){if(a!=null)return eJ.set(a,[function(){return U.value},
function(L){P(L);U.value=L},
eJ.has(a)]),_.j7.addJob(function(){_.hy(_.j7,function(){var L=eJ.get(a);L&&(L[2]=!1)},0)},8),function(){var L;
((L=eJ.get(a))==null?0:L[2])||eJ.delete(a)}},[a]);
_.qq(function(){p!==b&&(P(b),U.value=b)},f?[].concat(_.ri(f),[a]):[a]);
return[p,P]}}};
PWU=function(A){var Q=_.F(_.pz(!0,void 0,"bKtO6d")),b=Q.next().value;Q.next();return function(){var f=Mq(A.children());return _.X(_.S,{cond:b,then:function(){return f},
else:A.fallback})}()};
_.WL=function(A){var Q=XCJ(A),b=Q.data,f=Q.mapping,a=Q.wrapper;Q=Q.pendingFallback;var T=function(){return S_e(_.o7(b))},G=function(){var p=T(),P=[];
p=_.F(p);for(var U=p.next();!U.done;U=p.next()){var L=void 0;U=U.value;var M=void 0;for(L in U)if(!(!U).hasOwnProperty(L)){M=L;break}(L=M)&&P.push(L)}return P};
return A.data?_.X(PWU,{fallback:Q},function(){return _.X(_.Op,{each:G},function(p,P){var U=a?function(M){return a(function(){return f[p](M,P)},L,P)}:function(M){return f[p](M,P)};
U.debugName||(U.debugName=String(p));if(!f[String(p)])return document.createComment("");U.componentType!==O7&&UvC(String(p));var L=LHW(T,p,P);return _.X(U,{data:L})})}):_.X(_.bd,null)};
XCJ=function(A){var Q=A.targetId||Mff(A.children);if(!A.data||!Q||_.K("mweb_new_replaceables_killswitch"))return Object.assign({},A,{mapping:A.children,wrapper:void 0});var b="stamper-"+lCA++,f=function(){var p;return(p=typeof A.targetId==="function"?A.targetId(b):A.targetId)!=null?p:b};
Q=_.F(KHJ(function(){var p=S_e(A.data());p.targetId=f;return p})).next().value;
var a=Object.assign({},ty().replaceableMapping,A.children);if(A.replacementWrapper){var T=a.notificationTextRenderer,G=a.notificationMultiActionRenderer;T&&(a.notificationTextRenderer=function(p,P){return A.replacementWrapper(T({data:p.data},P))});
G&&(a.notificationMultiActionRenderer=function(p,P){return A.replacementWrapper(G({data:p.data},P))})}return Object.assign({},A,{data:Q,
mapping:a,wrapper:function(p,P,U){return k8f({targetId:f,stamperIndex:U},p)}})};
LHW=function(A,Q,b){var f;return _.Lz(function(){var a=A()[b()];if(a)f=a[Q];else return _.Wv(new _.IO("Stamper failed to find "+String(Q)+" at index "+b()+" of data array of length "+(A().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),f;return a[Q]},void 0,"wgRPHd")};
Mff=function(A){A=_.F(Object.keys(A));for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,ij9.includes(Q)||JeU.includes(Q)||Vf4.includes(Q))return!0;return!1};
S_e=function(A){return A?Array.isArray(A)?A:[A]:[]};
UvC=function(A){if(_.K("web_enable_renderer_logger")){var Q;(Q=_.fJ().resolve(_.bu(Oj4)))!=null&&Q.loggingEnabled&&!Q.ids.has(A)&&Q.ids.add(A)}};
nby=function(A){return!(A==null||!A.iconName||(A==null?0:A.title))};
khJ=function(A,Q,b,f){b&&_.j7.cancelJob(b);b=_.j7.addLowPriorityJob(function(){f(void 0)},5E3);
f(b);Q&&A!==(Q.likeStatus==="LIKE")&&Q.key&&_.A8(_.HL("likeStatusEntity",Q.key,{key:Q.key,likeStatus:A?"LIKE":"INDIFFERENT",hadUserInteraction:A}))};
_.ICi=function(A,Q){return _.Me(A.entities,"accountLinkStatusEntity",Q)};
Hj4=function(A,Q){return _.Me(A.entities,"hatsSurveyEntity",Q)};
CW4=function(A,Q){return _.Me(A.entities,"hatsSurveyStateEntity",Q)};
q_C=function(A,Q){return _.Me(A.entities,"quantityIncrementerEntity",Q)};
oby=function(A){switch(A){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":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;default:return 0}};
tff=function(A){switch(A){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}};
reJ=function(A){switch(A){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.RqC=function(A){var Q=_.GP("web_generic_client_event_wait_period ",0);Q||(Q=3E5);var b=jMi.get(A);!_.K("enable_web_client_experiment_event_timeout_killswitch")&&b&&(0,_.f4)()-b<Q||(jMi.set(A,(0,_.f4)()),_.R4("genericClientExperimentEvent",{eventType:A}))};
gbA=function(A){switch(A){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
eqU=function(A){if(!A)return"";var Q,b=(Q=_.fJ().resolve(_.bu(_.Af)))==null?void 0:Q(),f;if(!b&&((f=A.vibrantColorPalette)==null?0:f.iconInactiveColor))return uB(A.vibrantColorPalette.iconInactiveColor,"1");var a;return b&&((a=A.darkColorPalette)==null?0:a.iconInactiveColor)?uB(A.darkColorPalette.iconInactiveColor,"1"):A.color?uB(A.color,"1"):A.sampledThumbnailColor?(A=A.sampledThumbnailColor,"rgba("+A.red+","+A.green+","+A.blue+");"):""};
_.Eh=function(A,Q){if(!A.includes("DATE_PLACEHOLDER"))return A;var b=new Date(0);b.setUTCSeconds(Q);return A.replace("DATE_PLACEHOLDER",hqi(b))};
WHJ=function(A,Q,b){return function(f){var a=A.command;a&&(el(a,{form:{element:b}}),Q([a],f))}};
EbC=function(A,Q,b,f,a){return function(T){var G=vb4(A,Q);G&&el(G,{form:{element:b},commandController:f});a&&T.stopPropagation()}};
vb4=function(A,Q){if(A.signInEndpoint&&!_.K("web_subscribe_sign_in_endpoint_killswitch"))return A.signInEndpoint;if(Q){if(A.serviceEndpoints)return A.serviceEndpoints[1];if(A.onUnsubscribeEndpoints)return A.onUnsubscribeEndpoints[0]}else{if(A.serviceEndpoints)return A.serviceEndpoints[0];if(A.onSubscribeEndpoints)return A.onSubscribeEndpoints[0]}};
xvA=function(A,Q){var b,f,a,T;Q=Q&&((b=A.unsubscribeAccessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label)||((a=A.subscribeAccessibility)==null?void 0:(T=a.accessibilityData)==null?void 0:T.label);return A.longSubscriberCountText?[Q,_.mO(A.longSubscriberCountText)].filter(function(G){return G}).join(" "):Q};
xs=function(A,Q){return Q||(A==null?0:A.isChannelDelegate)?"disabled":"active"};
ceX=function(A,Q){var b;switch((b=A.style)==null?void 0:b.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:xs(A)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:xs(A)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:xs(A,!0)};case "OVERLAY":return Q?{style:"overlay",type:"tonal",state:xs(A)}:{style:"overlay",type:"filled",state:xs(A)};default:return Q?{style:"mono",type:"tonal",state:xs(A)}:{style:"mono",type:"filled",state:xs(A)}}};
zqb=function(A){switch(A){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
wC4=function(A){switch(A){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
uAF=function(A,Q){var b=A.map(function(f){return f.toString()});
return _.IY(function(f){if(b.includes(f.key)){Q&&f.preventDefault();var a;(a=f.currentTarget)==null||a.click()}})};
_.Zji=function(){return uAF(["Enter"])};
_.ye4=function(){return uAF(["Enter"," "],!0)};
_.cL=function(A){if(A.composedPath)return A.composedPath();if(!A.__composedPath){for(var Q=[],b=A.target;b;)Q.push(b),b=b.parentNode;Q.push(window);A.__composedPath=Q}return A.__composedPath};
_.zG=function(A,Q,b){A=_.F(A);for(var f=A.next();!f.done;f=A.next()){f=f.value;if(f===Q)break;for(var a=_.F(b),T=a.next();!T.done;T=a.next())if(T=T.value,f.tagName===T||f.role==="button"&&T==="BUTTON")return!0}return!1};
Dv4=function(A,Q){var b,f=(b=Q.observer)!=null?b:_.fJ().resolve(aN);if(A){b=Y_W(A);var a=[];Q.showOption&&a.push(f.observe(A,function(){Q.visibilityCallback(!0,A)},Q.showOption));
Q.hideOption&&a.push(f.observe(A,function(){Q.visibilityCallback(!1,A)},Q.hideOption));
Q.prescanOption&&Q.prescanCallback&&a.push(f.observe(A,function(){Q.prescanCallback()},Q.prescanOption));
var T;b.visibilityMonitorKeys=((T=b.visibilityMonitorKeys)!=null?T:[]).concat(a)}};
Y_W=function(A){var Q;return(Q=A.polymerController)!=null?Q:A};
_.uJ=function(A){return!!_.wz(A)};
_.Zb=function(A,Q,b,f,a){return function(T){var G=_.ncY();_.H_(function(){if(T){_.$vU(T,A(),a);var p=_.NMA(T,A(),Q,b,f,G);_.Cz(p)}},"nr377e")}};
_.$vU=function(A,Q,b){var f=sMC(Q),a=mvY(Q);Q=f&&A5y;var T=a&&Q24;(f||a)&&Dv4(A,{visibilityCallback:function(G){var p=_.fJ().resolve(_.de);G&&f?p.resolveCommand(f,{form:{element:b?A:void 0},disableClickTracking:!0}):!G&&a&&p.resolveCommand(a,{form:{element:b?A:void 0},disableClickTracking:!0})},
showOption:Q,hideOption:T})};
_.NMA=function(A,Q,b,f,a,T){var G=new Map;if(Q=_.wz(Q)){var p;A=(f==null?void 0:(p=f.onTap)==null?void 0:p.value)||A;b=b5F(Q,A,b==null?void 0:b.onTap,a,T);A.addEventListener("click",b);G.set("click",b)}return function(){for(var P=_.F(G),U=P.next();!U.done;U=P.next()){var L=_.F(U.value);U=L.next().value;L=L.next().value;A.removeEventListener(U,L)}}};
_.wz=function(A){var Q;return(A=(Q=_.V(A,fGJ))==null?void 0:Q.onTap)&&_.ue(A)};
sMC=function(A){var Q;return(A=(Q=_.V(A,fGJ))==null?void 0:Q.onVisible)&&_.ue(A)};
mvY=function(A){var Q;return(A=(Q=_.V(A,fGJ))==null?void 0:Q.onHidden)&&_.ue(A)};
b5F=function(A,Q,b,f,a){var T=function(p){_.fJ().resolve(_.de).resolveCommand(A,p)},G=function(p){f&&_.zG(_.cL(p),Q,f)||T(p.target?{form:{element:p.target,
sourceData:A,mutationContext:a}}:void 0)};
b&&(G=function(p){b(p,T)});
return G};
aGU=function(A){switch(A){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}};
TJX=function(A){var Q=A.numAvatarsInCluster;switch(A.clusterSize){case "small":return Q===2?22:18;case "40":return Q===2?24:22;default:return Q===2?24:20}};
dwF=function(A,Q){return function(b){var f=Object.keys(Q);_.H_(function(){if(A!=null&&A()){for(var a=_.F(f),T=a.next();!T.done;T=a.next())T=T.value,b.addEventListener(T,Q[T]);_.Cz(function(){for(var G=_.F(f),p=G.next();!p.done;p=G.next())p=p.value,b.removeEventListener(p,Q[p])})}},"bXZGfe")}};
Fey=function(A){switch(TJX(A)){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""}};
G4J=function(A){switch(A){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""}};
BJF=function(A){switch(TJX(A)){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""}};
p44=function(A){switch(A){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""}};
P5y=function(A){switch(A){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}};
X4e=function(A){return A==="medium"||A==="48"||A==="large"||A==="extra-large"||A==="extra-extra-large"||A==="giant"};
SFU=function(A){return!!((A==null?0:A.includes(3))||(A==null?0:A.includes(5)))};
LeA=function(A){return{size:UwX(A.data.avatarImageSize),onTap:A.onTap,decorations:A.decorations||[],badgeText:A.badgeText,accessibilityText:A.accessibilityText,avatarButtonCustomClassName:A.avatarButtonCustomClassName,clusterLayoutConfig:A.clusterLayoutConfig}};
UwX=function(A){switch(A){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"}};
Mje=function(A){switch(A){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}};
lGb=function(A){switch(A){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
Ke9=function(A){var Q=A.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",b,f=A.avatars&&A.avatars.length>0?(b=_.V(A.avatars[0],_.yh))==null?void 0:b.avatarImageSize:"AVATAR_SIZE_UNKNOWN";b=Mje(f)||0;if(Q){var a,T=(a=A.avatarClusterSize)!=null?a:"AVATAR_SIZE_M";Q=Mje(T);var G,p,P=Math.min((p=(G=A.avatars)==null?void 0:G.length)!=null?p:0,4),U;return{avatars:((U=A.avatars)==null?void 0:U.slice(0,4))||[],avatarSizeInPx:b,avatarStackStyle:{width:Q+"px",height:Q+"px",position:"relative"},avatarStyle:function(M){var l=
TJX({clusterSize:UwX(T),numAvatarsInCluster:P,avatarIndex:M});var J=Mje(T);P===3&&M===2?(J=(J-l)/2,J=(_.vG("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*J):J=void 0;return{position:"absolute",top:P===2&&M===1||P===3&&M===2||P===4&&M>=2?"0":void 0,bottom:P===2&&M===0||P>2&&M<2?"0":void 0,left:P===2&&M===1||P>2&&(M===1||M===3)?"0":void 0,right:P<=3&&M===0||P===4&&(M===0||M===2)?"0":void 0,transform:J?"translateX("+J+"px)":void 0,width:l+"px",height:l+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(M){return{clusterSize:UwX(A.avatarClusterSize),numAvatarsInCluster:P,avatarIndex:M}},
avatarButtonCustomClassName:void 0}}var L;return{avatars:((L=A.avatars)==null?void 0:L.slice())||[],avatarSizeInPx:b,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:lGb(f),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
i5i=function(A,Q,b){return function(){el(A,{form:{element:Q},commandController:b})}};
J5X=function(A){switch(A){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
VjF=function(A){switch(A){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
O5F=function(A){var Q=A.data;A=A.hidden===void 0?!1:A.hidden;var b={};A={class:_.nE("yt-page-indicator-view-model",(b["yt-page-indicator-view-model__indicator--hidden"]=!Q.indicatorCount,b)),hidden:A};if(Q.indicatorCount){b=[];for(var f=0;f<Q.indicatorCount;f++){var a={};a=_.nE("yt-page-indicator-view-model__indicator",(a["yt-page-indicator-view-model__indicator--selected"]=Q.selectedIndex===f,a));b.push(_.X("div",{class:a}))}Q=_.X(_.bd,null,b)}else Q=_.X(_.bd,null);return _.X("yt-page-indicator-view-model",
A,Q)};
k4C=function(A){A&&(niF(A)?delete A.inlinePlayerData:"inlinePlaybackEndpoint"in A&&delete A.inlinePlaybackEndpoint)};
IGb=function(A){if("accessibilityText"in A)return A.accessibilityText||"";if("title"in A){var Q,b,f;return((Q=A.title)==null?void 0:(b=Q.accessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label)||""}if("accessibility"in A){var a,T;return((a=A.accessibility)==null?void 0:(T=a.accessibilityData)==null?void 0:T.label)||""}return""};
niF=function(A){return"inlinePlayerData"in A};
Ys=function(A){return new H5y(A)};
C5W=function(A){var Q=A.data;A=_.IY(function(){var a=_.V(Q.onTap,_.wF);a&&_.fJ().resolve(_.de).resolveCommand(a);return!1});
var b={sources:[{url:Q.thumbnailUrl,width:120,height:90}]},f=Q.rating&&Q.ratingA11yLabel&&Q.reviewsCount&&Q.reviewsCountA11yLabel;return _.X("place-data-view-model",null,Q.placeName&&Q.placeCategory?_.X("div",{class:"yt-spec-place-data-view-model-shape","on:click":A},_.X(_.aY,{data:b,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.X(_.Db,{className:"yt-spec-place-data-view-model-shape__place-link",command:Q.onTap},_.X("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:Q.placeName},Q.placeName)),_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata"},f?_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.X("span",{class:"score",title:Q.ratingA11yLabel},Q.rating),_.X("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.X(_.oY,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.X("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:Q.reviewsCountA11yLabel},Q.reviewsCount)):_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.X("span",{class:"category",title:Q.placeCategory},Q.placeCategory)))):null)};
qFf=function(A){return function(Q){A&&(A.thumbnailElRef=Q.thumbnailElRef,A.thumbnail=Q.thumbnail,A.thumbnailOverlays=Q.thumbnailOverlays,A.thumbnailSize=Q.thumbnailSize)}};
oiy=function(A){var Q;return(Q=A.sharedUi)==null?void 0:Q.animatedThumbnailEnabled};
tjA=function(A){var Q;return(Q=A.sharedUi)==null?void 0:Q.inlinePreviewEnabled};
_.r5y=function(A){var Q;return(Q=A.sharedUi)==null?void 0:Q.currentPageSubType};
j2e=function(A){switch(A){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
giF=function(A){var Q=_.F(_.pz(!1,void 0,"RIOonf")),b=Q.next().value,f=Q.next().value;_.tz(function(){var a=A==null?void 0:A();if(a){var T=_.fJ().resolve(_.bu(RCA));if(T){var G={triggeringElement:a,onDwellTriggeredFn:function(){f(!0)},
onDwellEndFn:function(){f(!1)}};
T.registerElement(G);_.Cz(function(){_.$s(T,G)})}}});
return b};
eCA=function(A,Q,b){b?b(Q):_.D3(Q,A.target?{form:{element:A.target}}:void 0)};
_.NI=function(A,Q,b){return function(f){_.H_(function(){var a=new Map,T,G=(T=A())==null?void 0:T.onTap;G&&(T=function(p){a:{var P=p.composedPath();P=_.F(P);for(var U=P.next();!U.done;U=P.next()){U=U.value;if(U===f)break;if(U.className.indexOf("HostIsClickableAdComponent")>=0||U.tagName==="A".toString()||U.tagName==="BUTTON".toString()){P=!0;break a}}P=!1}P||eCA(p,G,Q)},(b==null?0:b())||_.K("enable_web_home_top_landscape_image_layout_level_click")?(f.addEventListener("tap",T),a.set("tap",T)):(f.addEventListener("click",
T),a.set("click",T)));
_.Cz(function(){for(var p=_.F(a),P=p.next();!P.done;P=p.next()){var U=_.F(P.value);P=U.next().value;U=U.next().value;f.removeEventListener(P,U)}})},"NMyqj")}};
hCy=function(A,Q){var b,f=(b=A.interaction)==null?void 0:b.onTap;if(A=_.y0({elementsCommand:f,forceNewState:!0,skipOnClick:!0}))return A.onclick=function(a){k3W(a)&&(a.preventDefault(),f&&eCA(a,f,Q))},Yz(A)?A:void 0};
WeU=function(A){switch(A){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
viW=function(A){switch(A){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"}};
Eie=function(A){switch(A){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"}};
_.xwC=function(A){return _.K("rich_grid_enable_dynamic_offset")&&A?Math.max(Math.round((A-_.GP("rich_grid_dynamic_offset_anchor_width",1300))/100*_.GP("rich_grid_dynamic_offset_offset_per_100",10)),_.GP("rich_grid_dynamic_offset_lower_bound",-60)):0};
c5e=function(A,Q){switch(Q){case 4:return 16;case 1:return A<528?16:A<1024?32:48;case 2:return(A>=528?16:8)/2;case 3:return(A<528?16:A<1024?32:48)+(A>=528?16:8)/2;default:return 0}};
zCb=function(A){var Q=A.originalContainerWidth;var b=A.sizing;var f=A.standardUnit;if(A.isCompactList&&Q<528)return 1;switch(b){case "STANDARD":return f;case "COMPACT":return f+1;case "EXTRA_COMPACT":return _.K("web_responsive_extra_compact_2x")?f*2:_.K("web_responsive_current")?f===1?2:f%2===0?f/2*3:f+2:f<4?f*2:Math.ceil(f*3/2);case "MINI":return f>1?f*2:3;default:return f}};
uXX=function(A){var Q=A.containerWidth;var b=A.peek;var f=A.gutter;var a=A.numItems;A=A.ignoreMaxWidthLimit;Q=b?Math.max((Q-b-f*a)/a,0):Math.max((Q-f*(a-1))/a,0);return A?Q:Math.min(Q,w4W)};
_.sh=function(A){var Q=A.containerWidth;var b=A.hasPeek;var f=A.sizing;var a=A.marginSettings;var T=A.isCompactList;var G=A.enableFullBleedForSingleCol;var p=A.standardUnitMinWidth;f=f||"STANDARD";b=!!b;A=Q>=528?16:8;var P=b?Q>=528?48:24:0;a=c5e(Q,a);var U=Math.max(Q-a*2,0);p=_.K("kevlar_disable_min_width_override")?void 0:p;p=Math.min(Math.max(Math.floor((U-P+A)/((p!=null?p:Z59)+_.xwC(Q)+A)),1),6);var L=(G=!!G&&p===1)||p===1&&f!=="STANDARD";b=b||L?U:Math.min(U,(w4W+A)*p-A);f=zCb({originalContainerWidth:Q,
sizing:f,standardUnit:p,isCompactList:T});return{itemWidth:uXX({containerWidth:b,peek:P,gutter:A,numItems:f,ignoreMaxWidthLimit:L}),gutter:A,maxContainerWidth:b,numItems:f,margin:G?0:a,contentMargin:c5e(Q,1),typographyBump:uXX({containerWidth:b,peek:P,gutter:A,numItems:p,ignoreMaxWidthLimit:L})>400&&!(T&&Q<528),standardUnit:p}};
y5F=function(A){switch(A){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.YFA=function(A){if(A){var Q;if((Q=A.responsiveContainerConfiguration)==null?0:Q.responsiveSize)return y5F(A.responsiveContainerConfiguration.responsiveSize);if(A.layoutSizing)switch(A.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"}}};
DwA=function(A){if(A.fullbleed)return 1;switch(A.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
mwW=function(A,Q,b,f,a,T,G,p){a:if(A===4&&f==="LOCKUP_CONTENT_TYPE_SOURCE")var P=1;else switch(A){case 3:P=1;break a;default:P=0}a:switch(A){case 4:T=!!(T&&T<100);break a;default:T=!1}a:switch(A){case 3:case 4:var U=f==="LOCKUP_CONTENT_TYPE_CHANNEL"||f==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:U=!1}a:switch(A){case 5:var L=!0;break a;case 4:L=!1;break a;default:L=!1}return{isOverlay:L,isCard:$wY(f,G),sizing:Q!=null?Q:"STANDARD",typographyBump:b!=null?b:!1,isTiny:T,isCentered:U,isCollection:NJ4(f),
arrangement:P,addMarginForFullbleed:A===1&&f!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:A===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:s2b(f,a,p),disableRounding:A===5||$wY(f,G)||A===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:NJ4(f)?2:0,useLegacyTypography:!(p==null||!p.useLegacyTypography),useRichGridLegacyTypography:!(p==null||!p.useRichGridLegacyTypography)&&!_.K("web_enable_typography_bump"),compactMetadata:P===0&&f==="LOCKUP_CONTENT_TYPE_VIDEO"}};
NJ4=function(A){switch(A){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}};
$wY=function(A,Q){if(Q&&A==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(A){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
s2b=function(A,Q,b){if(Q&&(b==null||!b.alwaysRespectPodcastShowAspectRatio||A!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(A){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}};
AiW=function(A){switch(A){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"}};
Q6J=function(A){switch(A){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}};
bgf=function(A){switch(A){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}};
_.mm=function(A){if(A){var Q;return((Q=_.fJ().resolve(_.bu(_.Af)))==null?0:Q())?A.darkThemeImage:A.image}};
Tg4=function(A,Q,b,f,a,T){if(a&&T&&Q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:a,height:T};if(!b)return{};a=b.size;b=b.allowFullWidth;if(Q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&b)return{fullWidth:!0};if(a===void 0)return{};switch(A){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/fYi*a};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:a*
aYy,height:a};default:return(f==null?0:f.height)&&(f==null?0:f.width)?f.width/f.height>1?{maxWidth:a*aYy}:{maxWidth:a}:{maxWidth:a}}};
dUW=function(A){var Q;return A&&((Q=_.mm(A.themedImage))!=null?Q:A.image)};
Fu6=function(A){var Q;return A==null?void 0:(Q=A.sources)==null?void 0:Q[0]};
GwA=function(A){switch(A){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
_.BgW=function(A){if(A)return"content-id-"+A};
pNF=function(A){switch(A.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"}}};
P2F=function(A){var Q=_.r5y(_.m5().getState())||"";return A?A+Q:""};
XN4=function(A){switch(A){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
UUX=function(A){var Q=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],b=_.F(_.pz(void 0,void 0,"JrqNsb")),f=b.next().value,a=b.next().value,T=_.F(_.pz(void 0,void 0,"rWytse"));b=T.next().value;var G=T.next().value;T=_.F(_.pz(void 0,void 0,"DHRqxe"));var p=T.next().value,P=T.next().value;return{touchFeedbackEvents:{pointerUpEvent:f,pointerDownEvent:b,pointerLeaveEvent:p},touchFeedbackOnPointerUp:_.IY(function(U){Suy(_.cL(U),Q)||(a(U),G(void 0),P(void 0))}),
touchFeedbackOnPointerDown:_.IY(function(U){A==null||A(U);Suy(_.cL(U),Q)||(G(U),a(void 0),P(void 0))}),
touchFeedbackOnPointerLeave:_.IY(function(U){Suy(_.cL(U),Q)||(P(U),G(void 0),a(void 0))})}};
Suy=function(A,Q){Q=Q===void 0?[]:Q;Q=[].concat(_.ri(Q),["BUTTON".toString()]);A=_.F(A);for(var b=A.next();!b.done;b=A.next()){b=b.value;for(var f=_.F(Q),a=f.next();!a.done;a=f.next())if(b.tagName===a.value)return!0}return!1};
LuU=function(A){switch(A){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"}};
Mh9=function(A){return A.scrollHeight-A.offsetHeight>1};
lYi=function(A,Q){var b;return mX(A,((b=A.content)==null?void 0:b.length)||0,!Q)};
KuY=function(A,Q){Q=lYi(A,Q);var b,f;return(((b=A.content)==null?void 0:b.length)||0)>(((f=Q.content)==null?void 0:f.length)||0)};
VhA=function(A,Q,b,f,a,T){if(!Q||igF){var G;return mX(A,((G=A.content)==null?void 0:G.length)||0,!0)}Q=f.value;if(!b.value||!Q||!A.content)return A;b=0;f=A.content.length;G=0;Jie||(Jie=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var p=Jie;for(a=a*T*p;b<=f;)T=Math.floor(b+(f-b)/2),p=mX(A,T)||A,Q.firstChild&&(Q.firstChild.textContent=p.content),Q.scrollHeight>a?f=T-1:(G=T,b=T+1);return mX(A,G)};
OgC=function(A,Q){var b,f;return(((b=A.content)==null?void 0:b.length)||0)>(((f=Q.content)==null?void 0:f.length)||0)};
neJ=function(A){var Q=A.isTruncated;var b=A.isAbsoluteButton;var f=A.lineHeight;var a=A.contentRef.value,T=A.placeholderTruncationTextRef.value,G=A.truncationTextRef.value;A=A.appDirection==="rtl";if(a&&T){var p=T.offsetLeft;A&&(p=a.offsetWidth-T.offsetWidth-T.offsetLeft);if(Q){Q=T.offsetWidth;T=a.offsetWidth;var P=b?T-Q-70:p-70;f="linear-gradient(\n      to top, transparent 0%,\n      transparent "+f+"rem,\n      #000 "+f+"rem,\n      #000 100%), linear-gradient(\n      to "+((A?"left":"right")+
",\n      #000 0px,\n      #000 "+P+"px,\n      transparent "+(b?T-Q:P+70)+"px)");a.style.setProperty("-webkit-mask-image",f);a.style.setProperty("mask-image",f)}else a.style.setProperty("-webkit-mask-image",""),a.style.setProperty("mask-image","");b?A?(G.style.setProperty("left","0"),G.style.setProperty("right","unset")):(G.style.setProperty("left",""),G.style.setProperty("right","0")):A?(G.style.setProperty("left","unset"),G.style.setProperty("right",p+"px")):(G.style.setProperty("left",p+"px"),
G.style.setProperty("right","unset"))}};
kwb=function(A,Q,b,f,a){var T=_.st("truncated-text-content"),G=_.st("truncated-text-content"),p=_.st("button"),P=_.st("button"),U=_.st("button"),L=_.fJ().resolve(_.bc),M=_.F(_.CE(function(){return lYi(A(),a())})),l=M.next().value,J=M.next().value;
M=_.F(_.CE(function(){return _.K("enable_truncated_text_max_lines")?OgC(A(),l()):KuY(A(),a())}));
var n=M.next().value,t=M.next().value,g=null;_.H_(function(){function e(){if(T.value&&p.value&&U.value)if(_.K("enable_truncated_text_max_lines")){var w=VhA(A(),a(),T,G,Q(),b());J(w);f()||requestAnimationFrame(function(){if(T.value&&p.value&&U.value){var u=Mh9(T.value)||OgC(A(),w);t(u);neJ({isTruncated:u,isAbsoluteButton:Mh9(T.value),lineHeight:b(),contentRef:T,placeholderTruncationTextRef:p,truncationTextRef:U,appDirection:L})}})}else J(lYi(A(),a())),requestAnimationFrame(function(){if(T.value&&p.value&&
U.value){var u=A();
Q();var y=b(),a9=f(),pF=a();Mh9(T.value)?(t(!0),a9||neJ({isTruncated:!0,isAbsoluteButton:!0,lineHeight:y,contentRef:T,placeholderTruncationTextRef:p,truncationTextRef:U,appDirection:L})):(u=KuY(u,pF),t(u),a9||neJ({isTruncated:u,isAbsoluteButton:!1,lineHeight:y,contentRef:T,placeholderTruncationTextRef:p,truncationTextRef:U,appDirection:L}))}})}
var x,D;(x=g)==null||(D=x.stop)==null||D.call(x);x=new _.Ac(e,17);e();g=x},"ZsU5lb");
_.tz(function(){J(lYi(A(),a()));t(_.K("enable_truncated_text_max_lines")?OgC(A(),l()):KuY(A(),a()));var e=function(){Jie=void 0;var D,w;(D=g)==null||(w=D.fire)==null||w.call(D)};
if(window.ResizeObserver){var x=new ResizeObserver(e);x.observe(T.value);_.Cz(function(){var D,w;(D=g)==null||(w=D.stop)==null||w.call(D);x.disconnect()})}else window.addEventListener("resize",e),_.Cz(function(){var D,w;
(D=g)==null||(w=D.stop)==null||w.call(D);window.removeEventListener("resize",e)})});
return{isTruncated:n,displayText:l,contentRef:T,hiddenRef:G,placeholderTruncationTextRef:p,hiddenTruncationTextRef:P,truncationTextRef:U}};
IY4=function(A){return{content:A!=null?A:""}};
Hge=function(A){return _.ue(A.onTap)||_.wz(A.rendererContext)};
C2U=function(A){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:A.overflowMenuA11yLabel,onTap:function(Q){Q.preventDefault();Q.stopPropagation();if(A.overflowMenuOnTap){var b=_.y0({elementsCommand:A.overflowMenuOnTap,forceNewState:!0});if(b==null?0:b.onclick)b.onclick(Q)}}}};
_.Q3=function(A,Q,b,f,a){f=f===void 0?{}:f;if(!a||Math.random()<5E-4){Q=Q||null;b=b||null;A=A instanceof Error?A:new _.IO(A);if(A.args)for(var T=_.F(A.args),G=T.next();!G.done;G=T.next())G=G.value,G instanceof Object&&(f=Object.assign({},G,f));f.category="H5 Ads Control Flow";Q&&(f.slot=Q?"slot:  "+Q.slotType:"");b&&(f.layout=b?"layout:  "+b.layoutType:"",f.layoutId=b.layoutId);a&&(f.known_error_aggressively_sampled=!0);A.args=[f];_.Wv(A)}};
_.quY=function(A,Q){_.pD(A,"yt-open-popup-action",[_.fT(Q),A])};
_.bp=function(A,Q){_.quY(A,_.sr(Q))};
th6=function(A){if(!A)return"";if(oeF[A])return oeF[A];fS||(fS=_.KK("A"));fS.href!==A&&_.ch(fS,A);var Q=fS.pathname;oeF[A]=Q.startsWith("/")?Q:"/"+Q;return oeF[A]};
riX=function(){var A=th6(window.location.href);if(A==="/")return"home";if(A.startsWith("/results"))return"search";if(A.startsWith("/watch"))return"watch";if(A.startsWith("/shorts"))return"shorts";if(A.startsWith("/hashtag"))return"hashtag";if(A.startsWith("/create_channel"))return"create_channel";if(A.startsWith("/@")||A.startsWith("/user/")||A.startsWith("/channel/"))return"channel";if(A.startsWith("/experiments"))return"experiments";if(A.startsWith("/sponsor_channel"))return"sponsorship";if(A.startsWith("/select_site"))return"settings";
if(A.startsWith("/locate"))return"locate";if(A.startsWith("/redeem"))return"redeem";if(A.startsWith("/musicpremium")||A.startsWith("/premium")||A.startsWith("/red"))return"premium";if(A.startsWith("/paid_memberships"))return"paid_memberships";if(A.startsWith("/oops"))return"oops";if(A.startsWith("/clip"))return"clip";var Q;return(ab==null?void 0:(Q=ab.response)==null?void 0:Q.page)==="404"?"404":A.startsWith("/feed/history")?"history":A.startsWith("/feed/library")?"library":A.startsWith("/feed/subscriptions")?
"subscriptions":A.startsWith("/feed/trending")?"trending":A.startsWith("/feed/news_destination")?"news":A.startsWith("/playlist")?"playlist":A.startsWith("/minor_moment")?"minor_moment":A.startsWith("/playable/")||A.match("^/playables/(?!saved).")?"mini_app":A.startsWith("/playables")?"playables":A.startsWith("/create/live/join")?"open_in_app":A.startsWith("/feed/explore")?"explore":"browse"};
_.ehf=function(){var A=ab==null?void 0:ab.response,Q=A==null?void 0:A.endpoint;if(!Q)return(A==null?void 0:A.page)==="watch"?"watch":riX();var b;A=(b=_.V(Q==null?void 0:Q.commandMetadata,_.KD))==null?void 0:b.webPageType;b=!1;if(A&&!j6y.includes(A))switch(A){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 f;return((f=_.V(Q==null?void 0:Q.commandMetadata,_.KD))==null?0:f.url)&&th6(_.V(Q.commandMetadata,_.KD).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var a;return(Q=(a=_.V(Q,_.nT))==null?void 0:a.browseId)?Rh6[Q]||"browse":"browse";default:b=!0}if(_.V(Q,_.Tk)||_.V(Q,gei))return"sponsorship";a=th6(window.location.href);if(a.startsWith("/experiments"))return"experiments";if(a.startsWith("/create_channel"))return"create_channel";
if(_.V(Q,_.y_)&&a.startsWith("/shorts"))return"shorts";if(_.V(Q,_.y_)&&a.startsWith("/watch"))return"watch";b&&(Q=new _.IO("Unsupported mWeb page type",{pathname:a,webPageType:A}),_.en(Q));return"browse"};
dL=function(A,Q,b,f){return A&&Q?A!==b||Q!==f?(_.Q3(Error("Gh"),void 0,void 0,{"stored-slot":A,"stored-layout":Q,"latest-slot":b,"latest-layout":f}),!1):!0:!1};
hhX=function(A,Q,b){return A({targetId:Q},function(f){return b.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},f,{header:b.continuationItems?b.continuationItems[0]:void 0}):Object.assign({},f,{contents:b.continuationItems?b.continuationItems:[]})})};
Wue=function(A,Q,b,f){if(Q=Q.trackingParams){var a,T=(a=b.getScreenLayer)==null?void 0:a.call(b);b=_.WR(T);a=_.hx(T);if(b&&a){var G=_.t8(Q);_.K("combine_ve_grafts")?A.graftServerVe(Q,a,T):_.ui(b,a,G);f==null||f(G)}}};
Ee4=function(A){var Q;return((Q=vef.get(A))==null?void 0:Q.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
zh4=function(A,Q){var b={type:Q.slotType,controlFlowManagerLayer:xUY.get(Q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q.slotEntryTrigger&&(b.entryTriggerType=Q.slotEntryTrigger.triggerType);Q.slotPhysicalPosition!==1&&(b.slotPhysicalPosition=Q.slotPhysicalPosition);if(A){b.debugData={slotId:Q.slotId};if(A=Q.slotEntryTrigger)b.debugData.slotEntryTriggerData=ciA(A);A=Q.slotFulfillmentTriggers;b.debugData.fulfillmentTriggerData=[];A=_.F(A);for(var f=A.next();!f.done;f=A.next())b.debugData.fulfillmentTriggerData.push(ciA(f.value));
Q=Q.slotExpirationTriggers;b.debugData.expirationTriggerData=[];Q=_.F(Q);for(A=Q.next();!A.done;A=Q.next())b.debugData.expirationTriggerData.push(ciA(A.value))}return b};
ciA=function(A,Q){var b={type:A.triggerType};Q!=null&&(b.category=Q);A.triggeringSlotId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedSlotId=A.triggeringSlotId);A.triggeringLayoutId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedLayoutId=A.triggeringLayoutId);return b};
wNC=function(A,Q,b,f){Q={opportunityType:Q};A&&(f||b)&&(f=_.Rk(f||[],function(a){return zh4(A,a)}),Q.debugData=Object.assign({},b&&b.length>0?{associatedSlotId:b}:{},f.length>0?{slots:f}:{}));
return Q};
u4X=function(A){return FG(A.opportunityAdapterMap).concat(FG(A.triggerAdapterMap)).concat(FG(A.fulfillmentAdapterFactoryMap)).concat(FG(A.slotAdapterFactoryMap)).concat(FG(A.layoutRenderingAdapterFactoryMap))};
FG=function(A){var Q=[];A=_.F(A.values());for(var b=A.next();!b.done;b=A.next())b=b.value,b.isAdsControlFlowEventListener&&Q.push(b);return Q};
Bi=function(A){var Q=A.slotId,b=A.slotType,f=A.slotPhysicalPosition;return Q===void 0?new Gk("Cannot construct a slot due to the missing id.",{adSlotMetadata:A}):b===void 0?new Gk("Cannot construct a slot due to the missing type.",{adSlotMetadata:A}):f===void 0?new Gk("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:A}):{slotId:Q,slotType:b,slotPhysicalPosition:f,managerLayer:"external",adSlotLoggingData:A.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Zg6}};
yiF=function(A){var Q=A.layoutId,b=A.layoutType;return Q===void 0?new pS("Cannot construct a layout due to the missing id.",{adLayoutMetadata:A}):b===void 0?new pS("Cannot construct a layout due to the missing type.",{adLayoutMetadata:A}):{layoutId:Q,layoutType:b,managerLayer:"external",adLayoutLoggingData:A.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Zg6,interactionLoggingAdsClientData:{}}};
Yui=function(A){if(A.querySelector("img")){var Q=A.querySelector("img");Q.addEventListener("error",function(){XSi(Q.src).then(function(b){(b=_.vh(b).toString())?Q.src=b:Q.removeAttribute("src")}).catch(function(){Q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
XG=function(A,Q){if(Q&&(DU4(Q.viewableCommand)||DU4(Q.endOfSessionCommand))){var b=$U6(Q==null?void 0:Q.viewableCommand);Q=$U6(Q==null?void 0:Q.endOfSessionCommand);if(!Pi){var f=_.GP("custom_active_view_tos_timeout_ms");Pi=f>0&&f!==36E5?new Ngb(s6C(),f):new Ngb(s6C())}mUb(Pi,A);AN9(Pi,A,b,Q)}};
SQ=function(A){Pi&&mUb(Pi,A)};
s6C=function(){var A=_.vG("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
DU4=function(A){A=_.ue(A);return!(A==null||!A.loggingUrls)&&A.loggingUrls.length>0};
$U6=function(A){if(!A)return[];var Q=[],b,f;((f=(b=_.ue(A))==null?void 0:b.loggingUrls)!=null?f:[]).forEach(function(a){a.baseUrl&&Q.push(a.baseUrl)});
return Q};
QsJ=function(A){if(_.K("stop_av_measurement_on_detach"))return function(){SQ(A)}};
bxJ=function(A){return function(){_.K("stop_av_measurement_on_detach")&&SQ(A)}};
fdX=function(A){if(_.K("stop_av_measurement_on_detach"))return function(){SQ(A)}};
adU=function(A){return A.shorts.isDesktopSmallWidth};
_.TCW=function(A){return A.shorts.isShortsActive};
_.d5b=function(A){return A.shorts.isWatchWhileMode};
_.Us=function(A){return A.shorts.isFullscreen};
_.LS=function(A){return A.shorts.isShortsPipActive};
GQX=function(A){var Q,b;if(A=(Q=_.V(A.reelsAdCardButtoned,Fa6))==null?void 0:(b=Q.animatedRenderingConfig)==null?void 0:b.easeOutSeconds)return A+"s"};
pAF=function(A,Q,b){return _.B(function(f){return f.return(new Promise(function(a){var T=new Image;T.onload=function(){a(new BCU(A,Q,b,T.naturalWidth,T.naturalHeight))};
T.src=b.toString()}))})};
P8b=function(A,Q){return Math.round(A/1E-5)===Math.round(Q/1E-5)};
XA6=function(A,Q){return Math.round(A/1E-5)===Math.round(Q/1E-5)};
SU9=function(A,Q){return A.year===Q.year&&A.month===Q.month&&A.day===Q.day};
U5e=function(A,Q){return A.year!==Q.year?A.year<Q.year:A.month!==Q.month?A.month<Q.month:A.day<Q.day};
M8b=function(A){return A.day===Lay(A.year,A.month)?A.month===11?{year:A.year+1,month:0,day:1}:{year:A.year,month:A.month+1,day:1}:{year:A.year,month:A.month,day:A.day+1}};
ldX=function(){var A=new Date,Q={year:A.getFullYear(),month:A.getMonth(),day:A.getDate()};return{start:Q,end:{year:A.getFullYear()+2,month:A.getMonth(),day:A.getDate()},selectedDate:M8b(Q)}};
KaC=function(A){return(new $L(2)).format(new Date(A.year,A.month,A.day))};
ixW=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
JNy=function(A,Q){A=(A+(Number(Q.utcOffsetSec)+(new Date(A*1E3)).getTimezoneOffset()*60))*1E3;Q=ixW(new Date(A));return{date:Q,secondsSinceMidnight:Math.floor((A-(new Date(Q.year,Q.month,Q.day)).getTime())/1E3)}};
V8J=function(A,Q){Q=Q.months.findIndex(function(b){return b.year===A.year&&b.month===A.month});
return Q>=0?Q:void 0};
OxX=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENTBOX")return!0}catch(Q){return!1}return OxX(A.parentNode)};
Ml=function(A){return A?!(A.tagName!=="A"||!A.href||!A.classList.contains("yt-simple-endpoint")):!1};
nd6=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
kQb=function(A,Q,b){if(!A)return null;var f=Ml(A);if(f&&b)return Q=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Q);if(f&&!b)return document.createTextNode("");if(nd6(A))return b=A.alt,A=A.dataset.emojiId,!A&&Q&&(Q=_.lp(Q,b))&&Q.isCustomEmoji&&(A=Q.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(b);f=A.cloneNode(!1);for(var a=0;a<A.childNodes.length;++a){var T=kQb(A.childNodes[a],Q,b);T&&f.appendChild(T)}return f};
KS=function(A){return A?Ml(A)?A:KS(A.lastChild):null};
IdC=function(A){return A?Ml(A)?A:IdC(A.firstChild):null};
HxW=function(A){if(!A)return null;for(var Q=A.previousSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.previousSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.previousSibling;else break;(Q=KS(Q))?A=Q:A=(A=A.parentNode)?KS(A.previousElementSibling):null;return A};
C8X=function(A){if(!A)return null;for(var Q=A.nextSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.nextSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.nextSibling;else break;return(Q=IdC(Q))?Q:C8X(A.parentNode)};
qUy=function(A){var Q=_.ip(),b=Q.JSC$11233_getStartNode();if(!OxX(b.parentNode))return null;Q=Q.JSC$11233_getStartOffset();if(b.nodeType===Node.TEXT_NODE){var f=_.vl(b,Ml);if(f){if(A&&Q===0||!A&&Q===b.length)return f}else{if(A&&Q===b.length)return!b||b.nodeName==="BR"||b.nextElementSibling&&_.Jc(b.nextElementSibling,"display")==="block"?null:IdC(b.nextElementSibling);if(!A&&Q===0)return b?KS(b.previousElementSibling):null}}if(b.nodeType===Node.ELEMENT_NODE)if(A){if(0<=Q&&Q<b.childNodes.length)return IdC(b.childNodes[Q])}else if(0<
Q&&Q<=b.childNodes.length)return KS(b.childNodes[Q-1]);return null};
ode=function(A,Q,b){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(b){var f=HxW(A);if(f&&!/^\s+\S/.test(A.wholeText.substr(0,Q)))return f}else if((f=C8X(A))&&!/\S\s+/.test(A.wholeText.substr(Q,A.wholeText.length)))return f;return A.nodeType===Node.ELEMENT_NODE?b?HxW(A.childNodes[Q]):C8X(A.childNodes[Q]):ode(A.parentNode,Q,b)};
t8i=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var Q="";for(A=A.firstChild;A;A=A.nextSibling)Q+=t8i(A);return Q;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
V3=function(A,Q){return A.year===Q.year&&A.month===Q.month&&A.day===Q.day};
Os=function(A,Q){return A.year!==Q.year?A.year<Q.year:A.month!==Q.month?A.month<Q.month:A.day<Q.day};
rNy=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
jse=function(A){var Q=UO4;Q=Q===void 0?UO4:Q;Q(new Date(A.year,A.month,A.day))};
nS=function(A){return rNy(new Date(Number(A.seconds)*1E3))};
Rc4=function(A){return A.year!==void 0&&A.month!==void 0&&A.day!==void 0};
gdF=function(A){return A.start!==void 0&&A.end!==void 0};
ecY=function(A){return gdF(A)?A.start:A};
hcX=function(A){return gdF(A)?A.end:void 0};
vdX=function(A,Q){for(var b=[],f=new Date(A.start.year,A.start.month);f.getFullYear()<A.end.year||f.getFullYear()===A.end.year&&f.getMonth()<=A.end.month;){var a=b,T=a.push,G=f.getFullYear(),p=f.getMonth(),P=A,U=Q,L=void 0,M=[],l=Object.freeze({extraCssClass:"invisible"}),J=new Date(G,p),n=rNy(J);J=J.getDay();for(var t=rNy(new Date);n.month===p;){J!==Wab&&L||(L=Array.from({length:7}).fill(l),M.push(L));var g={date:{year:G,month:p,day:n.day},extraCssClass:"",debugClass:""};g.extraCssClass=U(g.date,
n,t,P).trim();L[(J-Wab+7)%7]=g;n=n.day===Lay(n.year,n.month)?n.month===11?{year:n.year+1,month:0,day:1}:{year:n.year,month:n.month+1,day:1}:{year:n.year,month:n.month,day:n.day+1};J=(J+1)%7}T.call(a,{weeks:M,monthLabel:kB.SHORTMONTHS[p]+" "+G,year:G,month:p,monthLabelExtraCssClass:M[0][2]===l?"shift-down-label":""});f.setMonth(f.getMonth()+1)}return b};
Ed4=function(A,Q){Q=Q.months.findIndex(function(b){return b.year===A.year&&b.month===A.month});
return Q>=0?Q:void 0};
cNX=function(A,Q){a:{var b=b===void 0?[2,3]:b;b=_.F(b);for(var f=b.next();!f.done;f=b.next()){var a=new Date;if((new x5W(f.value)).parse(Q,a,{validate:!0})){a.setHours(0,0,0,0);Q=a;break a}}Q=null}if(!Q)return{isValid:!1,value:void 0};Q=rNy(Q);b=A.end;return Os(Q,A.start)||Os(b,Q)?{isValid:!1,value:void 0}:{isValid:!0,value:Q}};
yNA=function(A){var Q=zc6;Q=Q===void 0?wAf:Q;var b=A.columnsToShow||[],f=uUf(A.columnDimensions,A.columnsToShow,A.leftFloatingColumns,Q);return b.map(function(a,T){var G=A.columns[a];if(G===void 0)throw Error("Mh");var p=f?f[T]:"";var P=A.getCustomTooltip?A.getCustomTooltip(a,G.headerTooltipParagraphs):G.headerTooltipParagraphs;var U=ZxY(A,a);return{type:a,index:T,style:p,classes:U,headerName:G.headerName||"",headerIcon:G.headerIcon,headerTooltipParagraphs:P||[],headerTooltipHelpContext:G.headerTooltipHelpContext,
sortOrders:G.sortOrders||[],selectionState:G.isSelectionCheckbox?A.selectionState:void 0}})};
ZxY=function(A,Q){var b=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],f=A.columns[Q];if(f===void 0)return"";var a=b.includes("DEFAULTS")&&f.cssClass?[f.cssClass]:[];if(b.includes("SORTING")){f.sortOrders&&f.sortOrders.length&&a.push("sortable");if(A.sorting&&A.sorting.columnType===Q)a:switch(A.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var T="column-sorted";break a;default:T=""}else T="";T&&a.push(T)}b.includes("FLOATING")&&(Q=A.columnsToShow.indexOf(Q),A.leftFloatingColumns&&Q<A.leftFloatingColumns&&
a.push("floating-column"),A.leftFloatingColumns&&Q===A.leftFloatingColumns-1&&a.push("last-floating-column"));b.includes("RIGHT_ALIGN")&&f.rightAlignHeader&&a.push("right-align");return a.filter(function(G){return G}).join(" ")};
uUf=function(A,Q,b,f){b=b===void 0?0:b;f=f===void 0?wAf:f;if(A){var a=[],T=0;YUY(A,Q,f).forEach(function(G,p){var P="min-width:"+G.minWidth+"px;padding-left:"+G.paddingLeft+"px;padding-right:"+G.paddingRight+"px;flex:"+G.flexGrow+" 0 "+G.minWidth+"px;";G.maxWidth!==Infinity&&(P=[P,"max-width:"+G.maxWidth+"px;"].join(""));T>0&&p<b&&(P=[P,"left:"+T+"px;"].join(""));a.push(P);T+=G.minWidth+G.paddingLeft+G.paddingRight});
return a}};
YUY=function(A,Q,b){b=b===void 0?wAf:b;return Q.map(function(f,a){f=A&&A[f]||{};var T=a===0?b.paddingLeftFirstColumn:b.padding;f.paddingLeft!==void 0&&(T=f.paddingLeft);a=a===Q.length-1?b.paddingRightLastColumn:b.padding;f.paddingRight!==void 0&&(a=f.paddingRight);return{paddingLeft:T,paddingRight:a,minWidth:f.minWidth!==void 0?f.minWidth:b.minWidth,maxWidth:f.maxWidth!==void 0?f.maxWidth:b.maxWidth,flexGrow:f.flexGrow!==void 0?f.flexGrow:b.flexGrow}})};
D5A=function(A){var Q=A.reduce(function(f,a){var T=a.columnId,G={};a.headerText&&(G.headerName=_.mO(a.headerText));a.rightAlignHeader&&(G.rightAlignHeader=a.rightAlignHeader);var p;if((p=a.headerIcon)==null?0:p.iconType)G.headerIcon=_.K0(a.headerIcon.iconType);f[T]=G;return f},{}),b=A.filter(function(f){return!f.hideColumn}).map(function(f){return f.columnId});
A=A.filter(function(f){return!!f.dimensions}).reduce(function(f,a){f[a.columnId]=a.dimensions;
return f},{});
return{columns:Q,columnsToShow:b,columnDimensions:A}};
_.$5W=function(A){return A?A.simpleText?A.simpleText:A.runs?A.runs.map(function(Q){return Q.text}).join(""):"":""};
Qo6=function(A){var Q=A.data;var b=A.onTap;var f=A.isSelected;var a=A.onFocusIn;if(!Q)return{};A=NCF(Q);f===void 0&&(f=Q==null?void 0:Q.isSelected);var T;return{text:ss9(Q,A),startIcon:(T=Q.icon)==null?void 0:T.iconType,state:f?0:2,type:0,onTap:m5Y(Q,b),accessibilityLabel:AR6(Q,A),onFocusIn:function(){return a==null?void 0:a()}}};
ss9=function(A,Q){if(!Q)return A.text?_.$5W(A.text):void 0};
m5Y=function(A,Q){return function(b){Q==null||Q(b,A)}};
NCF=function(A){A=A.style&&A.style.styleType;return!igF&&A==="STYLE_EXPLORE_LAUNCHER_CHIP"};
AR6=function(A,Q){if(Q){var b,f,a;return(a=(b=A.accessibilityData)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label)!=null?a:ss9(A,!1)}};
Ib=function(A){return{signalAction:{signal:A}}};
aqC=function(){return _.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?bhU:_.fqb};
TTW=function(A,Q){A=A===void 0?"SOFT_RELOAD_PAGE":A;Q=Q===void 0?49504:Q;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.T7(_.JQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:Q}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:A}}]}}}};
daF=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.T7(_.JQ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:aqC()}};
F1b=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.T7(_.JQ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:aqC()}};
Gi6=function(A,Q){var b=_.T7(_.JQ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),f=_.T7(_.JQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),a={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.T7(_.JQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};a.serviceEndpoint=A?A:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ib("SOFT_RELOAD_PAGE")]}};return{title:b,bodyText:f,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:a},
style:{value:Q!=null?Q:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
p9y=function(A){A=A===void 0?{}:A;return{title:_.T7(A.localizedZeroStateTitleText===void 0?"":A.localizedZeroStateTitleText),bodyText:_.T7(A.localizedZeroStateMessage===void 0?"":A.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.T7(A.localizedZeroStateButtonText===void 0?"":A.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[BTF]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
X9A=function(A){A=A===void 0?{}:A;return{title:_.T7(A.localizedOptInBannerTitleText===void 0?"":A.localizedOptInBannerTitleText),titleLength:19,subtitle:_.T7(A.localizedOptInMessage===void 0?"":A.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.T7(_.JQ("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:_.T7(_.JQ("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:[PXb]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
L1X=function(A,Q){var b=Q=Q===void 0?{}:Q;Q=b.offlineTitleText===void 0?"":b.offlineTitleText;var f=b.offlineDescriptionText===void 0?"":b.offlineDescriptionText,a=b.formattedSupplementalText,T=b.actionButtonText===void 0?"":b.actionButtonText,G=b.titleText===void 0?"":b.titleText;b=b.descriptionText===void 0?"":b.descriptionText;var p={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.T7(T),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};A||(G=Q,b=f,p={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.T7(T),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.T7(G),titleLength:G.length,overrideTitleMaxFontSize:30,subtitle:_.T7(b),supplementalText:a,primaryButton:{buttonRenderer:p},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[SDJ]},darkTileImage:{thumbnails:[Uai]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.K1A=function(A,Q,b,f,a,T,G,p,P,U,L){a=a===void 0?!1:a;T=T===void 0?!1:T;G=G===void 0?0:G;p=p===void 0?-Infinity:p;P=P===void 0?!1:P;U=U===void 0?!1:U;L=L===void 0?!1:L;var M=[],l=_.T7(_.JQ("SMART_DOWNLOADS",void 0,"Smart downloads")),J=_.T7(Mab(G,p,A.length));p=G=void 0;U?G={statementBannerRenderer:L1X(L,f)}:a?A.length>0?p=lqF(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.K("kevlar_manual_downloads_above"),l,J):P?p={alertBannerViewModel:{heading:{content:b.localizedOptInBannerTitleText===
void 0?"":b.localizedOptInBannerTitleText},body:{content:b.localizedPromptMessage===void 0?"":b.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.JQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.JQ("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:_.C$b}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:T&&(p={backgroundPromoRenderer:{bodyText:_.T7(_.JQ("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"}}}):
T&&(p={alertBannerViewModel:{heading:{content:b.localizedOptInBannerTitleText===void 0?"":b.localizedOptInBannerTitleText},body:{content:b.localizedOptInMessage===void 0?"":b.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.JQ("TURN_ON",void 0,"Turn on"),accessibilityText:_.JQ("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}}}}}});b=_.T7(_.JQ("YOUR_DOWNLOADS",void 0,"Your downloads"));f=void 0;Q.length>0?(f=void 0,_.K("kevlar_display_downloads_numbers")&&(f=_.T7(_.VI("VIDEO_COUNT",Q.length))),f=lqF(Q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,b,f)):a||A.length||
U||(f={backgroundPromoRenderer:{bodyText:_.T7(_.JQ("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}}}});G?M.push({richSectionRenderer:{content:G}}):p&&!_.K("kevlar_manual_downloads_above")&&M.push({richSectionRenderer:{content:p,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
f&&M.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:51721}}}});p&&_.K("kevlar_manual_downloads_above")&&M.push({richSectionRenderer:{content:p,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(Q.length>0||a&&A.length>0&&!U)&&M.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.T7(_.JQ("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:M}};
_.JRU=function(A){return ih9(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Vay=function(A){return ih9(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
ih9=function(A,Q){var b=[];A=lqF(A,Q,!0);b.push({richSectionRenderer:{content:A}});return{contents:b}};
lqF=function(A,Q,b,f,a){b=b===void 0?!1:b;var T="RESPONSIVE_SIZE_STANDARD";_.K("kevlar_modern_downloads_compact")?T="RESPONSIVE_SIZE_COMPACT":_.K("kevlar_modern_downloads_extra_compact")&&(T="RESPONSIVE_SIZE_EXTRA_COMPACT");A={isExpanded:b,contents:Hi(A),entitySelectorType:Q,responsiveContainerConfiguration:{responsiveSize:T}};f&&(A.title=f);a&&(A.subtitle=a);b||(_.K("kevlar_smart_downloads_show_more_button")?(A.showMoreButton={buttonRenderer:{accessibility:{label:_.JQ("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.T7(_.JQ("SHOW_MORE",void 0,"Show more"))}},A.showLessButton={buttonRenderer:{accessibility:{label:_.JQ("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.T7(_.JQ("SHOW_LESS",void 0,"Show less"))}}):(A.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.JQ("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}}}},A.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.JQ("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}}}},A.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.JQ("VIEW_ALL",void 0,"View all"),accessibilityText:_.JQ("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:fO("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:A}};
Hi=function(A){var Q=[];A=_.F(A);for(var b=A.next();!b.done;b=A.next())if(b=b.value,p1f(b)){var f=Q,a=f.push;var T=void 0;if(b==null?0:(T=b.videoEntity)==null?0:T.videoId){T=ws(_.QK().getState(),b.videoEntity.videoId);var G=_.QK().getState();var p=_.LO(b.videoEntity.videoId,"mainVideoEntity");G=!!_.tH(G.entities)[p];G={videoId:b.videoEntity.videoId,title:ds(b.videoEntity.title),shortBylineText:ds(b.channelEntity.title),thumbnail:b.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:G&&_.K("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:xX9(b.videoEntity.videoId,T,b.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.JQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};b.videoEntity.lengthSeconds&&(G.thumbnailOverlays=RGA(b.videoEntity.lengthSeconds,T));G.isWatched=T>0;_.K("kevlar_modern_downloads_page")&&(G.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:b.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.JQ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},G.badges=void 0);b=G}else b={};a.call(f,{richItemRenderer:{content:{videoRenderer:b},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(BlU(b)){f=Q;a=f.push;var P=p=T=void 0,U=void 0,L=void 0,M=void 0,l=void 0,J=void 0,n=void 0,t=void 0,g=void 0,e=void 0;G=b.mainPlaylistEntity.playlistId;var x=b==null?void 0:(e=b.mainPlaylistEntity)==null?void 0:(g=e.thumbnailStyleData)==null?void 0:(t=g[0])==null?void 0:(n=t.value)==null?void 0:(J=n.collageThumbnail)==
null?void 0:J.coverThumbnail;if(G&&x){J=c7W(G);!_.K("enable_offline_playlist_page")&&(b==null?0:(l=b.mainPlaylistEntity)==null?0:l.videos)&&(l=b==null?void 0:(M=b.mainPlaylistEntity)==null?void 0:(L=M.videos)==null?void 0:L[0],L=_.Xg(l).entityId,L=JSON.parse(L).videoId,L!==void 0&&(M=ws(_.QK().getState(),L),J=_.aX(L,G,void 0,void 0,M)));L=[];if(b==null?0:(U=b.mainPlaylistEntity)==null?0:(P=U.videos)==null?0:P.length)L=[SkF(),Object.assign({},(p=X3J(b==null?void 0:b.mainPlaylistEntity.videos.length))!=
null?p:{})];b={playlistId:G,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:x}},navigationEndpoint:J,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:L,title:ds(b.mainPlaylistEntity.title),shortBylineText:ds(b==null?void 0:(T=b.channelEntity)==null?void 0:T.title),badges:[{metadataBadgeRenderer:{label:_.JQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.K("kevlar_modern_downloads_page")&&(b.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:OhW,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:G,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.JQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},b.badges=void 0)}else b=void 0;a.call(f,{richItemRenderer:{content:{playlistRenderer:b},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return Q};
Mab=function(A,Q,b){A=A?nNC(A):"";Q!==void 0&&isFinite(Q)?Q===0?Q=_.JQ("UPDATING",void 0,"Updating..."):(Q=jaU(new Date(Q),new Date),Q=_.JQ("UPDATED_TIME",{relative_time:Q},"Updated "+Q)):Q="";var f="";A&&Q&&(f=" \u2022 ");if(b&&_.K("kevlar_display_downloads_numbers")){b=_.VI("VIDEO_COUNT",b);if(A||Q)f=" \u2022 ";return b+f+A+f+Q}return A+f+Q};
kib=function(A){return QR6(A.entities).length};
_.IqY=function(A,Q){var b=y5F(A.responsiveSize),f;A=!((f=A.responsiveMap)==null||!f.some(function(a){return a.containerSize==="CONTAINER_SIZE_NARROW"&&a.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:Q,sizing:b,enableFullBleedForSingleCol:!1,isCompactList:b==="COMPACT"&&A}};
Hhb=function(A,Q){return _.Me(A.entities,"votingEntity",Q)};
CXi=function(A){if(A){var Q;return((Q=_.fJ().resolve(_.bu(_.Af)))==null?0:Q())?A.darkTheme:A.lightTheme}};
qDJ=function(A,Q){if(A.simpleText)return Object.assign({},A,{simpleText:N7(A.simpleText,Q)});if(!A.runs)return A;for(var b=Object.assign({},A,{runs:[]}),f=0,a=_.F(A.runs),T=a.next();!T.done;T=a.next())if(T=T.value,T.text)if(f+T.text.length<=Q)b.runs.push(T),f+=T.text.length;else return b.runs.push(Object.assign({},T,{text:N7(T.text,Q-f)})),b;return A};
oNf=function(A,Q){return _.Me(A.entities,"chipBarStateEntity",Q)};
ta9=function(A,Q){return _.Me(A.entities,"chipEntity",Q)};
jo4=function(A,Q,b,f){return function(){var a=rR4.has(A.displayType)&&A.selected,T=a&&A.deselectCommand?A.deselectCommand:A.tapCommand;!T||a&&f||_.D3(T,{form:{element:Q==null?void 0:Q.value}});b==null||b()}};
RLF=function(A){switch(A){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
gNW=function(A,Q){return{triggeringElement:A,onDwellTriggeredFn:function(){var b={triggeringElement:A,loadVideoPreviewEventData:Q},f=document.querySelector(".video-preview");f&&f.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:b}))},
onDwellEndFn:function(){var b=document.querySelector(".video-preview");b&&b.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
eLi=function(A,Q){var b=_.fJ().resolve(_.bu(RCA)),f=function(){var a=Q();return b&&a?gNW(A.value,a):null};
_.H_(function(){var a=f();b&&a&&Promise.resolve().then(function(){b.registerElement(a)});
_.Cz(function(){b&&a&&Promise.resolve().then(function(){_.$s(b,a)})})},"csPUge")};
W14=function(A){var Q=A.dataset.resizeObserverId;if(Q)return Q;Q=""+hLe++;return A.dataset.resizeObserverId=Q};
vNF=function(A,Q){var b=W14(A);CS.has(b)||CS.set(b,new Set);CS.get(b).add(Q);ql.has(b)&&Q(Object.assign({},{target:A},ql.get(b)))};
ENy=function(A){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=W14(Q.target),f=Object.assign({},{target:Q.target},ql.get(b));if(f!=null&&f.contentRect?f.contentRect.width!==Q.contentRect.width||f.contentRect.height!==Q.contentRect.height:1)for(ql.set(b,{borderBoxSize:Q.borderBoxSize,contentBoxSize:Q.contentBoxSize,contentRect:Q.contentRect,devicePixelContentBoxSize:Q.devicePixelContentBoxSize}),b=_.F(CS.get(b)||[]),f=b.next();!f.done;f=b.next())f=f.value,f(Q)}};
cRX=function(){return ob?ob:ob=new xa4(ENy)};
zLe=function(A,Q){var b=W14(A);CS.has(b)&&(CS.get(b).delete(Q),CS.get(b).size===0&&(CS.delete(b),ql.delete(b),ob.unobserve(A),delete A.dataset.resizeObserverId));CS.size===0&&ob&&(ob.disconnect(),ob=void 0)};
ujy=function(A,Q){var b=_.fJ().resolve(aN);return w9Y.map(function(f){return b.observe(A,Q,f)})};
ZhF=function(A){var Q=_.fJ().resolve(aN);A.forEach(function(b){Q.unobserveByKey(b)})};
_.DaW=function(A,Q){var b=Object.assign({},yRU,Q);Q=_.F(HuX());var f=Q.next().value,a=Q.next().value,T=function(G){var p=G.contentRect.height;if((G=G.contentRect.width)||p||b.canHaveZeroSize)f.width()===G&&f.height()===p||a(f,{height:p,width:G})};
_.tz(function(){var G=A instanceof HTMLElement?A:A.value,p=YDe(T,b.throttleMs),P=[];b.useVisibilityObserver&&(P=ujy(G,function(U,L){requestAnimationFrame(function(){L==="visible"?(vNF(G,p),cRX().observe(G)):zLe(G,p)})}));
P.length||(vNF(G,p),cRX().observe(G));_.Cz(function(){P.length&&(ZhF(P),P.length=0);zLe(G,p)})});
return f};
NTF=function(A){var Q=A.data;var b=A.callback;var f=A.enableSingleChipSelection;var a=A.disableChipsScrollAnimation;var T=_.mS("div"),G=j6(!1),p=j6(0);A={};A=_.F(loY(Q.autoselectedChipIndex!=null?(A[Q.autoselectedChipIndex]=!0,A):{}));var P=A.next().value,U=A.next().value,L=function(){var pF=T.value;return pF==null||pF.scrollLeft-1<=0},M=function(){var pF=T.value;
return pF==null?!1:pF.scrollLeft+1>=(pF==null?NaN:pF.scrollWidth)-(pF==null?NaN:pF.clientWidth)};
A=_.F(loY(L()));var l=A.next().value,J=A.next().value;A=_.F(loY(M()));var n=A.next().value,t=A.next().value;A=Q.isHorizontallyScrollable;var g=function(pF){T.value!=null&&(_.vG("HTML_DIR")==="rtl"&&(pF=-pF),T.value.scrollBy({left:pF,behavior:a?"instant":"smooth"}))},e=function(){g(-320)},x=function(){g(320)},D=_.IY(function(pF){G.value=!0;
p.value=pF.clientX}),w=_.IY(function(pF){if(G.value){pF=pF.clientX;
var Ub=pF-p.value;p.value=pF;var Ob;(Ob=T.value)==null||Ob.scrollBy({left:-Ub})}}),u=_.IY(function(){var pF=L(),Ub=M();
pF!==l&&J(pF);Ub!==n&&t(Ub)});
fk("pointerup",function(){G.value&&(G.value=!1)});
var y={},a9={};return _.X("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},D4(Q.title,function(){return _.X("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.X("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},Q.title),$aW(Q.overflowButton))}),_.X("div",{class:"ytChipsShelfViewModelChipsShelfContent"},D4(Q.previousButton!=null,function(){var pF={};
return _.X("div",{class:_.nE("ytChipsShelfViewModelLeftArrowContainer",(pF.ytChipsShelfViewModelLeftArrowContainerIsHidden=l,pF))},$aW(Q.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:e}}))}),_.X("div",{el:T,
"on:pointerdown":D,"on:pointermove":w,"on:scroll":u,class:_.nE("ytChipsShelfViewModelChipsScrollContainer",(y.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!A,y))},_.X("div",{class:_.nE("ytChipsShelfViewModelChipsContainer",(a9.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!A,a9.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!A&&!1,a9)),role:"tablist"},(Q.contents||[]).map(function(pF,Ub){return _.X("div",{class:"ytChipsShelfViewModelChipWrapper"},
$aW(pF,{chipViewModel:{callback:function(Ob,I9){if(f){var iy={};U((iy[Ub]=I9,iy))}else iy={},U(Object.assign({},P,(iy[Ub]=I9,iy)));b==null||b(Ob,I9,Ub)},
disableDeselection:f,selected:!!P[Ub]}}))}))),D4(Q.nextButton!=null,function(){var pF={};
return _.X("div",{class:_.nE("ytChipsShelfViewModelRightArrowContainer",(pF.ytChipsShelfViewModelRightArrowContainerIsHidden=n,pF))},$aW(Q.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:x}}))})))};
maA=function(A,Q,b,f,a){A=Q?A.switchOffCommand:A.switchOnCommand;if(f&&a)soX(A,b,a);else{var T,G;(T=_.y0({elementsCommand:A}))==null||(G=T.onclick)==null||G.call(T,b)}};
soX=function(A,Q,b){A=_.y0({elementsCommand:A,additionalCommandArgs:{commandController:{onSuccess:function(){b(!1)},
onServerError:function(){b(!1)}}}});
if(A==null?0:A.onclick)A.onclick(Q),b(!0)};
QdJ=function(A){if(A)return _.V(A,AwA)};
diA=function(A,Q,b){if(Q)return[bQf];switch(A){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[tc];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return b?[tc]:[fte,tc];case "TRANSFER_STATE_PAUSED_BY_USER":return[atF,tc];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[THU,tc];default:return[bQf]}};
F3X=function(A,Q,b,f){return diA(A,Q,f).map(function(a){var T=a.text,G=a.iconType,p=a.videoAction;a=a.playlistAction;T=T?{content:T}:void 0;G=G&&{sources:[{clientResource:{imageName:G}}]};var P=(0,_.j2.unsafeClone)(b);if(P){var U=_.V(P,_.n6),L=_.V(P,_.ks);U&&p?U.action=p:L&&a&&(L.action=a)}return{title:T,leadingImage:G,rendererContext:P&&{commandContext:{onTap:{innertubeCommand:P}}}}})};
GCC=function(A){A=_.wz(A.rendererContext);var Q;return(Q=_.V(A,_.ks))==null?void 0:Q.playlistId};
BHi=function(A){var Q;return(Q=A.listItems)==null?void 0:Q.some(function(b){var f;return _.uJ((f=_.V(b,_.qI))==null?void 0:f.rendererContext)})};
XwA=function(A){var Q;return(Q=A.listItems)==null?void 0:Q.some(function(b){var f,a,T=(a=(f=_.V(b,pw9))==null?void 0:f.defaultListItem)!=null?a:b;b=_.V(T,_.qI);return!!_.V(b==null?void 0:b.leadingAccessory,Pay)})};
L3y=function(A){var Q=A.element;var b=A.veType;var f=A.storedVisualElement===void 0?null:A.storedVisualElement;var a=A.elementIndex===void 0?0:A.elementIndex;A=A.clientYouTubeData;var T=_.WR();T!==S5C&&(Uib.clear(),S5C=T);if(Q.visualElement&&Uib.has(Q.visualElement))return null;if(f&&Uib.has(f))return Q.visualElement=f,null;b=_.kz(_.IP(),{veType:b,elementIndex:a,clientYouTubeData:A});if(!b)return null;Q.visualElement=b;Uib.add(b);return b};
_.rL=function(A,Q,b,f){b=b===void 0?null:b;f=f===void 0?cAA:f;var a=a===void 0?null:a;eM(function(){if(Q){b instanceof Function&&(b=b());var T=L3y({element:Q,veType:A,storedVisualElement:b,clientYouTubeData:void 0});T&&(uB4(Q,a),f(T))}})};
jQ=function(A,Q){if(A){switch(Q){case 0:A=A.primaryTitleColor;break;case 1:A=A.secondaryTitleColor;break;case 2:A=A.surgeColor;break;case 3:A=A.section2Color;break;case 4:A=A.section3Color;break;default:return}if(A)return _.zx(A)}};
MS6=function(A){return A?_.w6(A):""};
ltX=function(A){return(A==null?void 0:A.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
K3A=function(A,Q){var b;return"linear-gradient(to bottom, "+((b=Q==null?void 0:Q.map(function(f){var a=A?f.darkThemeColor:f.lightThemeColor;return a?_.w6(a)+" "+((f==null?void 0:f.startLocation)||0)*100+"%":"transparent"}))==null?void 0:b.join(", "))+")"};
iQC=function(A,Q,b,f,a){if(!((f==null?0:f.height)&&(f==null?0:f.width)))return{size:0};var T=f.width;f=f.height;if(a)return Q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&T>f?{size:312/aYy}:Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(b!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||A!==1&&A!==2||Q!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&Q!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&Q!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(Q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||f===T)switch(A){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||f>T)switch(A){case 1:case 3:return{size:240*fYi};default:return{size:360*fYi}}switch(A){case 1:case 2:return{size:1/aYy*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Jwf=function(A){if(!("matchMedia"in window))return _.wN(Error("Nh")),function(){return!1};
var Q=window.matchMedia(A);A=_.F(_.pz(Q.matches,void 0,"jLJc8e"));var b=A.next().value,f=A.next().value,a=function(T){f(T.matches)};
Q.addEventListener?(Q.addEventListener("change",a),_.Cz(function(){Q.removeEventListener("change",a)})):Q.addListener&&(Q.addListener(a),_.Cz(function(){Q.removeListener(a)}));
return b};
VSi=function(A){return A==="IMAGE_BANNER_STYLE_INSET"||A==="IMAGE_BANNER_STYLE_UNKNOWN"};
OQ9=function(){if(!("matchMedia"in window))return _.wN(Error("Nh")),function(){return 0};
var A=rN(function(){return window.matchMedia("(max-width: 527.9px)")}),Q=rN(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),b=rN(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),f=rN(function(){return window.matchMedia("(min-width: 1024px)")}),a=_.F(_.pz(A.matches,void 0,"og9kEc")),T=a.next().value,G=a.next().value;
a=_.F(_.pz(Q.matches,void 0,"ybDWCb"));var p=a.next().value,P=a.next().value;a=_.F(_.pz(b.matches,void 0,"o0Gfh"));var U=a.next().value,L=a.next().value;a=_.F(_.pz(f.matches,void 0,"yqUUgd"));var M=a.next().value,l=a.next().value,J=rN(function(){return function(e){G(e.matches)}}),n=rN(function(){return function(e){P(e.matches)}}),t=rN(function(){return function(e){L(e.matches)}}),g=rN(function(){return function(e){l(e.matches)}});
_.tz(function(){A.addEventListener?(A.addEventListener("change",J),Q.addEventListener("change",n),b.addEventListener("change",t),f.addEventListener("change",g)):A.addListener&&(A.addListener(J),Q.addListener(n),b.addListener(t),f.addListener(g));_.Cz(function(){A.removeEventListener?(A.removeEventListener("change",J),Q.removeEventListener("change",n),b.removeEventListener("change",t),f.removeEventListener("change",g)):A.removeListener&&(A.removeListener(J),Q.removeListener(n),b.removeListener(t),
f.removeListener(g))})});
return function(){return T()?1:p()?2:U()?3:M()?4:0}};
nVW=function(A){var Q=0;A=_.F([A.title,A.metadata,A.actions,A.description,A.attribution]);for(var b=A.next();!b.done;b=A.next())b.value&&Q++;return Q};
kCy=function(A){return A===1||A===2?1:0};
HQb=function(A){var Q,b=((Q=_.fJ().resolve(_.bu(_.Af)))==null?0:Q())&&A.data.darkThemeImage?A.data.darkThemeImage:A.data.image;Q=_.X("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.X("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},b?_.X(_.aY,{data:b,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),Itf(A.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));b=_.X(_.Rb,{text:A.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var f=A.data;if(f.bodyText){var a=[];f=_.F(f.bodyText);for(var T=f.next();!T.done;T=f.next())a.push(_.X(_.Rb,{text:T.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else a=_.X(_.bd,null);return _.X("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},Q,b,a,Itf(A.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.X(_.Rb,{text:A.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.X(_.Rb,{text:A.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
q5U=function(A){A=(new CaA).parse(A);return(new lh).render(A).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(Q){var b=Q.split(":").map(Number),f=0,a=0;if(b.length===3)b=_.F(b),f=b.next().value,a=b.next().value,b=b.next().value;else if(b.length===2)b=_.F(b),a=b.next().value,b=b.next().value;else if(b.length===1)b=_.F(b).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(f*3600+a*60+b)+'" role="button">'+Q+"</span>"})};
oVC=function(A){A=_.F(A.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var Q=A.next(),b={};!Q.done;b={clickHandler$jscomp$4:void 0},Q=A.next()){Q=Q.value;b.clickHandler$jscomp$4=function(a){a=Number(a.target.getAttribute("data-time"));if(isNaN(a))throw Error("Ph");var T;(T=_.Jy())==null||T.seekTo(a,!0)};
var f=function(a){return function(T){T.key!=="Enter"&&T.key!=="Space"||(0,a.clickHandler$jscomp$4)(T)}}(b);
Q.setAttribute("tabindex","0");Q.removeEventListener("click",b.clickHandler$jscomp$4);Q.removeEventListener("keydown",f);Q.addEventListener("click",b.clickHandler$jscomp$4);Q.addEventListener("keydown",f)}};
tSC=function(){return _.X("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.X(gL,{percentWidth:100}),_.X(gL,{animationDelay:200}),_.X(gL,{animationDelay:400}),_.X(gL,{animationDelay:600}),_.X(gL,{animationDelay:800,percentWidth:60}),_.X("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.X(gL,{percentWidth:100}),_.X(gL,{animationDelay:200}),_.X(gL,{animationDelay:400}),_.X(gL,{animationDelay:600,percentWidth:50}))};
gL=function(A){return _.X("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(A.percentWidth===void 0?100:A.percentWidth)+"%"},_.X("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(A.animationDelay===void 0?0:A.animationDelay)+"ms"}))};
rw9=function(){var A=_.F(_.pz(function(){return""},void 0,"v2wS5e")),Q=A.next().value;
return[function(){return Q()()},
A.next().value]};
jdy=function(A,Q){A=A?nNC(A):"";Q!==void 0&&isFinite(Q)?Q===0?Q=_.JQ("UPDATING",void 0,"Updating..."):(Q=jaU(new Date(Q),new Date),Q=_.JQ("UPDATED_TIME",{relative_time:Q},"Updated "+Q)):Q="";var b="";A&&Q&&(b=" \u2022 ");return _.T7(A+b+Q)};
e19=function(A,Q,b,f,a,T){Q=Q===void 0?0:Q;var G=R1e[Q],p=G.title,P=G.iconType,U=G.topButtonRenderer,L=G.sectionClientVE;G=G.videoClientVE;var M;if(Q!==1||A.length){b=[];A=_.F(A);for(f=A.next();!f.done;f=A.next()){var l=f.value;if(p1f(l))b.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:l.videoEntity.videoId,title:ds(l.videoEntity.title),shortBylineText:ds(l.channelEntity.title),thumbnail:l.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:l.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.JQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:G}}}}}});else if(BlU(l)){f=b;var J=f.push;var n=void 0,t=void 0,g=void 0,e=void 0,x=void 0,D=void 0,w=void 0,u=void 0,y=l.mainPlaylistEntity.playlistId,a9=l==null?void 0:(u=l.mainPlaylistEntity)==null?void 0:(w=u.thumbnailStyleData)==null?void 0:(D=w[0])==null?void 0:(x=D.value)==null?void 0:(e=x.collageThumbnail)==null?void 0:e.coverThumbnail;e=c7W(y);if(!_.K("enable_offline_playlist_page")&&
(l==null?0:(g=l.mainPlaylistEntity)==null?0:g.videos)){b:{g=l==null?void 0:(t=l.mainPlaylistEntity)==null?void 0:t.videos;t=_.QK().getState().entities;if(g!=null&&g.length&&t)for(g=_.F(g),x=g.next();!x.done;x=g.next())if(x=_.Xg(x.value).entityId,(x=JSON.parse(x).videoId)&&m8F(t,x)==="TRANSFER_STATE_COMPLETE"){t=x;break b}t=""}t!==void 0&&(e=ws(_.QK().getState(),t),e=_.aX(t,y,void 0,void 0,e))}t=wpU(_.JQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),c7W(y));l=y&&a9&&t?{playlistId:y,navigationEndpoint:e,
viewPlaylistText:t,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:a9}},title:ds(l.mainPlaylistEntity.title),shortBylineText:ds(l==null?void 0:(n=l.channelEntity)==null?void 0:n.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:gVi,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.JQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:G}}}:
void 0;J.call(f,{gridPlaylistRenderer:l})}}G={gridRenderer:{items:b}};Q===1&&(M=jdy(a,T))}else if(f){var pF=_.T7((J=b==null?void 0:b.localizedPromptMessage)!=null?J:"");G={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.T7(_.JQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.C$b}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.T7(_.JQ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};M=jdy(a,T)}else pF=_.T7(_.JQ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
G={};return{contents:[{shelfRenderer:{title:p,titleAnnotation:M,icon:{iconType:P},subtitle:pF,content:G,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:U}]}}}}],loggingDirectives:{clientVeSpec:{uiType:L}}}};
h1y=function(A,Q,b,f,a,T,G,p,P,U,L){b=b===void 0?{}:b;f=f===void 0?{}:f;a=a===void 0?!1:a;T=T===void 0?!1:T;G=G===void 0?!1:G;p=p===void 0?!1:p;P=P===void 0?!1:P;U=U===void 0?0:U;L=L===void 0?-Infinity:L;if(!(Q.length||A.length||a||p))return T?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:p9y(b)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.T7(_.JQ("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 M=[];A.length&&M.push(e19(A,0));p?M.push({contents:[{statementBannerRenderer:L1X(P,f)}]}):a?M.push(e19(Q,1,b,G,U,L)):T&&M.push({contents:[{statementBannerRenderer:X9A(b)}]});(a&&Q.length||A.length)&&M.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.T7(_.JQ("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 M.map(function(l){return{itemSectionRenderer:l}})};
eQ=function(A,Q){if(typeof A!=="object")return null;A=_.F(Object.entries(A));for(var b=A.next();!b.done;b=A.next()){var f=_.F(b.value);b=f.next().value;f=f.next().value;if(b===Q)return b;if(f=eQ(f,Q))return b+"."+f}return null};
hc=function(A){var Q=A.content;return(A=A.styleRuns)&&Q?{runs:A.map(function(b){var f={text:Q.slice(b.startIndex,b.startIndex+b.length)};b.fontColor&&(f.textColor=b.fontColor);return f})}:{simpleText:Q}};
EVX=function(A,Q,b,f){var a=W3e;f&&(A.quantity=f);if(!A.quantity||!A.maxQuantity)return{};f=A.minusButton;var T=A.plusButton,G,p,P,U;return{value:A.quantity,maxValue:A.maxQuantity,onChangeCallback:function(L){a(A,L)},
minusLabel:(G=_.V(f,vVC))==null?void 0:G.label,minimumReachedLabel:(p=_.V(f,vVC))==null?void 0:p.limitReachedLabel,plusLabel:(P=_.V(T,vVC))==null?void 0:P.label,maximumReachedLabel:(U=_.V(T,vVC))==null?void 0:U.limitReachedLabel,disabled:Q,onRemoveCommand:b}};
W3e=function(A,Q){var b=A.quantityIncrementerEntityKey;if(b){var f={};f.quantity=Q;_.A8(_.Wi("quantityIncrementerEntity",b,f));A.onChangeCommand&&_.D3(A.onChangeCommand)}};
z1F=function(A,Q){(A=xi6(A))&&(Q?cwe.push({command:A,sourceData:{},commandContext:void 0}):_.fJ().resolve(_.de).resolveCommand(A))};
xi6=function(A){return _.V(A,_.wF)};
wwJ=function(){var A=window.performance.timeOrigin+window.performance.now(),Q=(new _.vi).setSeconds(A/1E9);return _.Dr(Q,2,_.mj(A%1E9),0)};
ZQF=function(A,Q){var b;A=(b=_.V(_.V(A,_.wF),unA))==null?void 0:b.methodName;var f,a;(b=window.youtubewebview||((f=window.webkit)==null?void 0:(a=f.messageHandlers)==null?void 0:a.youtubewebview))&&A&&(f=new Es,A=_.nt(f,1,A),A=_.Cs(A.JSC$12276_serializeBinary()),Q=_.Cs(Q),b.postMessage(A+","+Q))};
xB=function(A,Q){var b=_.V(_.V(A,_.wF),unA);b&&(Q&&(b.serializedAdditionalMetadata=_.Cs(Q)),z1F(A,!0))};
ywJ=function(A){switch(A){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"}};
Y5e=function(){return!!_.vG("ID_TOKEN")};
NH9=function(A){return A instanceof Error&&A.cause instanceof Diy&&A.cause.rpcErrorCode!==void 0?!$iy.includes(A.cause.rpcErrorCode):!0};
miU=function(){return _.$Q(sd4,{authuser:""+(_.vG("SESSION_INDEX")||0)})};
ci=function(A,Q,b,f){b=b===void 0?"MINI_APP_SDK_API_UNSPECIFIED":b;f=f===void 0?"":f;var a=new _.IO;b={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:f,sdkApi:b};A instanceof Error&&(a.message=A.message,a.name=A.name,A.cause instanceof Diy&&A.cause.rpcErrorCode!==void 0&&(b.rpcErrorCode=A.cause.rpcErrorCode));var T;(T=Q.onError)==null||T.call(Q,{loggingError:a,metadata:b})};
Qv4=function(A,Q,b,f){switch(A){case "MINI_APP_SOURCE_GAMESNACKS":return new zk(Q,b,f);default:return new At6(Q,b,f)}};
br6=function(A){switch(A){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"}};
fv4=function(A){switch(A){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"}};
ave=function(A){switch(A){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"}};
TUA=function(){return Math.floor(Math.random()*4)+1};
d9F=function(A,Q,b,f){A=_.F(Object.entries(A));for(var a=A.next(),T={};!a.done;T={message$jscomp$990:void 0},a=A.next()){var G=_.F(a.value);a=G.next().value;G=G.next().value;T.message$jscomp$990=G;Q.push(setTimeout(function(p){return function(){f(!1);b(p.message$jscomp$990.text)}}(T),T.message$jscomp$990.delayMs));
Number(a)>0&&Q.push(setTimeout(function(){f(!0)},T.message$jscomp$990.delayMs-400))}};
FzW=function(A,Q){var b=b===void 0?cAA:b;_.K("mweb_fix_monitor_visibility_after_render")?A&&eM(function(){uB4(A,Q,b)}):eM(function(){uB4(A,Q,b)})};
BUW=function(A){var Q=A.data;var b=A.uniqueId;A=A.overrides;var f,a=((f=Q.timedAnimationData)==null?void 0:f.animationTiming)||[];return _.X("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.X(wL,{settings:{uniqueId:b,timings:a,experimentEnabled:a.length>0,enabled:a.length>0}},Gg6(Q.buttonRenderer,{buttonRenderer:{buttonOverrides:A}})))};
SK9=function(A){p5b||(p5b=PxJ(new _.Z5(1,void 0,void 0,X5i),0));var Q=p5b.format(Math.floor(A));Q=_.ug==="be"||_.ug==="bg"||_.ug==="es"||_.ug==="et"||_.ug==="hu"||_.ug==="ka"||_.ug==="lv"||_.ug==="pl"||_.ug==="pt-PT"||_.ug==="sq"?Q.replace(new RegExp("^(\\d)"+X5i.GROUP_SEP.replace(".","\\.")+"(\\d+("+X5i.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):Q;return A>=1E3&&A<=9999&&Q[1]==="."&&(_.ug==="sl"||_.ug==="it")?Q.replace(".",""):Q};
U9J=function(A,Q){W8("ytd-button-renderer",{data:A,className:Q?Q.className:"",overrides:Q==null?void 0:Q.buttonOverrides},ZD)};
lvb=function(A,Q,b,f){if(A)return f=f||A.likeStatus,Q?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="LIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:b},defaultText:f==="LIKE"?A.likeCountWithUnlikeText:A.likeCountText,toggledText:f==="LIKE"?A.likeCountText:A.likeCountWithLikeText,defaultNavigationEndpoint:Lzf(A,"LIKE"),defaultServiceEndpoint:MeA(A,"LIKE"),toggledServiceEndpoint:MeA(A,"INDIFFERENT"),defaultTooltip:_.mO(A.likeCountTooltipText),toggledTooltip:_.mO(A.likeCountTooltipText),
targetId:A.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="DISLIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:b},defaultText:f==="DISLIKE"?A.dislikeCountWithUndislikeText:A.dislikeCountText,toggledText:f==="DISLIKE"?A.dislikeCountText:A.dislikeCountWithDislikeText,defaultNavigationEndpoint:Lzf(A,"DISLIKE"),defaultServiceEndpoint:MeA(A,"DISLIKE"),toggledServiceEndpoint:MeA(A,"INDIFFERENT"),defaultTooltip:_.mO(A.dislikeCountTooltipText),
toggledTooltip:_.mO(A.dislikeCountTooltipText)}};
Lzf=function(A,Q){if(Q==="LIKE")return A.likeCommand;if(Q==="DISLIKE")return A.dislikeNavigationEndpoint};
MeA=function(A,Q){var b;return(b=A.serviceEndpoints)==null?void 0:b.find(function(f){var a;return((a=_.V(f,_.up))==null?void 0:a.status)===Q})};
_.JtY=function(A,Q,b){return window.spf&&!_.K("web_disable_spfjs_client")?Kz9(A,Q,b):irA(A,Q)};
Kz9=function(A,Q,b){var f=null,a=(new _.M3(function(T,G){var p={};if(Q){p.method=Q.method;var P=Q.postParams||{};znF(A,Q)&&(P[_.vG("XSRF_FIELD_NAME")]=_.vG("XSRF_TOKEN"));p.postData=_.lu(P);Q.type&&(p.type=Q.type);P=Q.headers}p.headers=hnA(A,P);_.K("debug_forward_web_query_parameters")&&(A=_.xBi(A,window.location.search));p.experimental_headers=p.headers;p.onError=function(U){U.err&&U.xhr&&(U.err.params={url:U.xhr.responseURL,response:U.xhr.responseText.substr(0,64)});G(U.err)};
p.onPartDone=function(U){b&&b.call(null,U.part)};
p.onDone=function(U){var L=Veb(U.response,"xsrf_token");mR(window.location.href,A)&&L&&_.e6("XSRF_TOKEN",L);if(L=Veb(U.response,"service_worker_killswitch"))_.e6("SERVICE_WORKER_KILLSWITCH",L),nKf();T(U.response)};
f=spf.request(A,p)})).then(Ory);
a.thenCatch(function(T){var G=T instanceof _.Zh,p=T&&T.hasOwnProperty("params")&&T.params.response?T.params.response:"";T instanceof Error&&(p?G?IbF(T):p===')]}\'\n{"reload":"now"}'?IbF(T):(n2b(T,A,p),kgX(T,p)?_.Wv(T):_.en(T)):IbF(T));f&&f.abort()});
return a};
Ory=function(A){if(A.type==="multipart"){var Q=A.timing;A=A.parts.reduce(function(b,f){Object.assign(b,f);return b},{});
A.timing=A.timing||{};Object.assign(A.timing,Q);A.type="reduced"}return A};
irA=function(A,Q){Q=Q===void 0?{}:Q;var b=null,f=new _.M3(function(a,T){Q.onFinish=function(G){if(G.readyState===XMLHttpRequest.DONE)if(G.status===200){if(G.responseType!=="json"){var p=G.response;p.substring(0,5)===")]}'\n"&&(p=p.substring(5));try{var P=JSON.parse(p)}catch(U){P=U}}else P=G.response;P instanceof Error?T(P):(p=Veb(P,"xsrf_token"),mR(window.location.href,A)&&p&&_.e6("XSRF_TOKEN",p),G=G.responseURL,window.performance&&window.performance.getEntriesByName?(p=window.performance.getEntriesByName(G).pop())?
G={responseStart:(0,_.f4)()-(p.responseEnd-p.responseStart)}:(Math.random()<.01&&(p=Error("ai"),p.params=G,_.Wv(p)),G={responseStart:-1}):G={responseStart:0},P.timing=P.timing||{},Object.assign(P.timing,G),a(P))}else T(Error("$h`"+G.status))};
(b=_.MQ(A,Q))||T(Error("$h`"+b.status))});
f.thenCatch(function(a){a instanceof Error&&(n2b(a,A),kgX(a)&&(a.level="WARNING"))});
_.K("cancel_pending_navs")&&f.thenCatch(function(){b.abort()});
return f};
Veb=function(A,Q){var b=A[Q],f=A.parts;A.type==="multipart"&&f&&(b=(A=f.find(function(a){return Q in a}))&&A[Q]);
return b};
n2b=function(A,Q,b){var f=A.message||"";Q={original:f,url:Q};if(b)if(f=f.match(/position:?\s*(\d+)/)){f=f&&Number(f[1])?Number(f[1]):0;var a=Math.max(f-25,0);Q.position=f;Q.response=b.substring(a,f+25)}else Q.response=b.substring(0,50);_.xk(A,Q);try{A.message="JSON parse error"}catch(T){}};
kgX=function(A,Q){A=A.message||"";A=!!(A.indexOf("<")>=0||A.indexOf("end of ")>=0||A.indexOf("Unterminated string")>=0||A.indexOf("Unexpected EOF"));if(!A&&Q)for(var b=Q.length,f=!1,a=0;a<b;a++)if(f&&Q[a]==="\\")a++;else if(Q[a]==='"')f=!f;else if(Q[a]==="<"&&!f){A=!0;break}return A};
Ivi=function(){return document.documentElement.hasAttribute("dark")};
_.HrY=function(A,Q){if(A!=="GFEEDBACK"&&A!=="GUIDED_HELP")_.xQ(Error("bi`"+A));else{var b=_.fJ().resolve(_.bu(_.F7));if(b&&(b=b.getCurrentPage())&&b.getServiceTrackingParams&&(b=b.getServiceTrackingParams()))for(var f=0,a;a=b[f++];)if(a.service===A){if(A=a.params)for(b=0;f=A[b++];)Q[f.key]=f.value;break}}};
_.Cx6=function(A){var Q=_.BL();Q&&(Q=Q.getPlayer())&&(Q.pauseVideo(),A.playback_id=Q.getVideoData().cpn,A.eid=Q.getVideoData().eventId,Object.assign(A,Q.getFeedbackProductData()))};
qKb=function(){var A={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.vG("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(A.enableAnonymousFeedback=!0);_.vG("SESSION_INDEX")&&(A.authuser=String(_.vG("SESSION_INDEX")));_.K("enable_pageid_for_feedback")&&_.vG("DELEGATED_SESSION_ID")&&(A.pageId=String(_.vG("DELEGATED_SESSION_ID")));return A};
_.y3=function(A){_.K("enable_ypc_spinners")&&_.pD(A,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},A])};
_.YB=function(A){_.K("enable_ypc_spinners")&&_.pD(A,"yt-close-popup-action",["yt-loading-renderer"])};
o2Y=function(A){return new Promise(function(Q,b){_.Z3({verifyCommand:{recaptchaToken:A.recaptchaResponse}},{commandController:{onSuccess:function(f,a){a||b("ChallengeService did not return a response.");var T;Q({challengeCompleted:(T=a.verified)!=null?T:!1})},
onServerError:function(f,a){b(a)}}})})};
tee=function(A,Q,b,f){Q({recaptchaResponse:f}).then(function(a){a.challengeCompleted?_.Oo()?(b(3),_.fJ().resolve(_.de).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:A}})):b(2):b(4)},function(){b(4)})};
jv6=function(A,Q,b){_.uh(_.GH(rtA,_.vG("HL")),function(){var f;(f=window.grecaptcha)==null||f.ready(function(){var a=window.grecaptcha;a?(b(a.render(A,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:tee.bind(null,A,o2Y,Q)})),Q(1)):Q(4)})})};
RDY=function(A,Q){return function(){switch(Q()){case 0:return A().captchaLoadingMessage;case 1:return A().challengeReason;case 3:return A().captchaSuccessfulMessage;case 2:return A().captchaCookieSetFailureMessage;case 4:return A().captchaFailedMessage;default:return A().challengeReason}}()};
_.Dh=function(){if(!g2Y){var A=document.querySelector("#player.skeleton");A&&(_.im(A),g2Y=!0)}};
_.hDU=function(){return eDX=nX9()};
E2A=function(){return _.B(function(A){return WzX!==void 0?A.return():A.yield(v29(),0)})};
v29=function(){return _.B(function(A){if(A.nextAddress==1)return A.yield(IJA(),2);eDX=A.yieldResult;WzX=_.j7.addLowPriorityJob(v29,5E3);_.Oi(A)})};
ZrJ=function(A){var Q=Q===void 0?x9Y:Q;var b,f,a=(b=A.responseContext)==null?void 0:(f=b.mainAppWebResponseContext)==null?void 0:f.trackingParam;if(!a){Q.increment("MISSING");var T,G,p,P,U,L;_.Wv(new _.IO("282054944_a",{vLZ:!!((T=A.responseContext)==null?0:(G=T.mainAppWebResponseContext)==null?0:G.loggedOut),jho:((p=A.responseContext)==null?void 0:p.mainAppWebResponseContext)===void 0,um8:A.responseContext===void 0,cp:(P=A.playabilityStatus)==null?void 0:P.contextParams,qw8:(((U=A.streamingData)==
null?void 0:U.formats)||[]).length>0,tpj:(((L=A.streamingData)==null?void 0:L.adaptiveFormats)||[]).length>0,os:!!A.offlineState,cotn:A.cotn}));return 2}b="";try{b=cte(a)}catch(J){return Q.increment("C_ERROR"),_.en(J),2}try{var M=_.zDe(b);var l=w5J(M)}catch(J){return Q.increment("P_ERROR"),_.en(J),2}l=_.fK(l,uaA,1,_.aL());a=[];l=_.F(l);for(M=l.next();!M.done;M=l.next())f=M.value,M=f.getPath(),b=(0,_.j2.getValueByKeys)(A,M.split(".")),b=String(b===void 0||b===null?"":b),f=f.getValue()||"",T=/[+\-\/_]/g,
b.replace(T,"")!==f.replace(T,"")&&(Q.increment("MISMATCH"),_.K("ab_mis_log_err")&&(b=new _.IO("282054944_p",{neZ:M,g:String(b),e:String(f)}),_.en(b)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(M)||(M.match(/enforcementMessageViewModel/i)?a.push(3):a.push(2)));if(a.length>0)return Math.max.apply(Math,_.ri(a));Q.increment("SUCCESS");return 1};
D9b=function(A){var Q=new $B;if(A.interpreterJavascript){var b=_.K5A(A.interpreterJavascript);b=dL4(b).toString();var f=new yti;_.nt(f,6,b);_.Lp(Q,1,f,tv)}else A.interpreterUrl&&(b=_.Rx(A.interpreterUrl),b=_.IT(b).toString(),f=new _.YKY,_.nt(f,4,b),_.Lp(Q,2,f,tv));A.interpreterHash&&_.Nl(Q,3,A.interpreterHash,tv);A.program&&_.Nl(Q,4,A.program,tv);A.globalName&&_.Nl(Q,5,A.globalName,tv);A.clientExperimentsStateBlob&&_.Nl(Q,7,A.clientExperimentsStateBlob,tv);return Q};
ss=function(A){var Q={};A=_.F(A.split("&"));for(var b=A.next();!b.done;b=A.next())b=b.value.split("="),b.length===2&&(Q[b[0]]=b[1]);return Q};
$9Y=function(A){return Number(A.t)||7200};
qp9=function(){if(_.K("bg_st_hr"))return"havuokmhhs-0";var A,Q=((A=performance)==null?void 0:A.timeOrigin)||0;return"havuokmhhs-"+Math.floor(Q)};
NUA=function(){return new Promise(function(A){var Q=window;Q.ntpevasrs!==void 0?A(new mP(Q.ntpevasrs)):(Q.ntpqfbel===void 0&&(Q.ntpqfbel=[]),Q.ntpqfbel.push(function(b){A(new mP(b))}))})};
svC=function(A){var Q=A.d0S.bind(A);_.Al("yt.aba.att",Q);A=A.vnW.bind(A);_.Al("yt.aba.att2",A)};
AGi=function(A){switch(_.LJ(A.input)){case _.bB(m9y):var Q={};return Q.encryptedVideoId=A.innerTubeRequest.externalVideoId,Q}return{}};
fIF=function(A){switch(_.LJ(A.input)){case _.bB(m9y):if(_.K("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.bB(QGe):if(_.K("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.bB(Ab):if(_.K("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&A.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.bB(bye):var Q,b;if(_.K("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((b=_.V((Q=A.config)==null?void 0:Q.command,Wqy))==null?0:b.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.TpX=function(A){var Q;if(A.playlistVideoRenderer&&((Q=A.playlistVideoRenderer)==null?0:Q.engagementBar))return aIe(A.playlistVideoRenderer.engagementBar);if(_.V(A,Qa)){var b;if(A=(b=_.V(A,Qa))==null?void 0:b.engagementBar)return aIe(A)}return""};
aIe=function(A){if(!A)return"";A=_.V(A,_.dhe);if(A==null||!A.actions)return"";A=_.F(A.actions);for(A=A.next();!A.done;A=A.next()){A=_.V(A.value,_.Fsi);var Q=void 0;if((Q=A)==null||!Q.itemId)break;return A.itemId}return""};
_.GR9=function(A){var Q;if(A.playlistVideoRenderer&&((Q=A.playlistVideoRenderer)==null?0:Q.videoId))return A.playlistVideoRenderer.videoId;if(_.V(A,Qa)){var b,f;if(A=(b=_.V(A,Qa))==null?void 0:(f=b.playlistItemData)==null?void 0:f.videoId)return A}return""};
_.BpF=function(A){var Q;if(A.playlistVideoRenderer&&((Q=A.playlistVideoRenderer)==null?0:Q.voteCount))return A.playlistVideoRenderer.voteCount;if(_.V(A,Qa)){var b,f;if(A=(b=_.V(A,Qa))==null?void 0:(f=b.playlistItemData)==null?void 0:f.voteCount)return A}return 0};
_.b6=function(A,Q){return _.Me(A.entities,"flowStateEntity",Q)};
Poi=function(A,Q,b,f){var a=void 0;A=_.F(A[Q.iconName]||[]);for(var T=A.next();!T.done;T=A.next()){T=T.value;var G=Q.iconSize;var p=Q.iconStyle;G=!G||G===T[2];var P=psW[T[0]];f&&f!==T[1]||!G||p&&p!==P?p=!1:a?(p=psW[T[0]],p=!!Q.iconStyle||p==="youtube_outline",G=a.version<=T[1],p=(!!Q.iconSize||T[2]===24)&&p&&G):p=!0;p&&(a={name:Q.iconName,style:psW[T[0]],size:T[2],version:T[1],allowMirroring:!!T[3],url:b(Q.iconName,T)})}return a};
Xsf=function(A,Q,b,f){return A+(""+psW[b[0]]+((f===void 0?0:f)?"_experimental":"")+"/"+Q+"/v"+b[1]+"/")+(b[2]+"px.svg")};
SdW=function(A){return _.vG("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":A};
UhY=function(A,Q){return Xsf("https://fonts.gstatic.com/s/i/",A,Q)};
Lsi=function(A,Q){return Xsf("https://fonts.gstatic.com/s/i/",A,Q,!0)};
MDY=function(A,Q){return Xsf("https://www.gstatic.com/youtube/img/icons/web/",A,Q)};
KsX=function(A){var Q=A.enabled;var b=A.itemPlaybackModel;var f=A.thumbnailElRef;var a=A.containerElRef;var T=A.options;var G;_.H_(function(){var p=a==null?void 0:a.value;var P,U=(P=f())==null?void 0:P.value;P=b();var L=T();if(Q&&P&&p&&U&&(L==null?0:L.thumbnail)){var M={data:P,hostElement:p},l,J,n=_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover")?[].concat(_.ri((l=L.thumbnailOverlays)!=null?l:[]),_.ri((J=P.overlays)!=null?J:[])):L.thumbnailOverlays||[],t,g;p={mediaRenderer:M,
lockupElement:p,thumbnailElement:U,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.ue((t=P.inlinePlayerData)==null?void 0:t.onVisible),navigationEndpoint:_.ue((g=P.inlinePlayerData)==null?void 0:g.onSelect),thumbnail:L.thumbnail,thumbnailOverlays:n,accessibilityText:L.accessibilityText||""},thumbnailSize:L.thumbnailSize,enableRounding:L.enableRounding}}}else p=void 0;if(t=p){var e;(e=G)==null||f7(e);G=Ys(t);var x,D;((x=b())==null?0:(D=x.inlinePlayerData)==null?0:D.forceImpAutoplay)&&
lIX(G)}},"B33dEc");
_.Cz(function(){var p;(p=G)==null||f7(p)})};
iyf=function(A){A=atob(A);for(var Q=[],b=0;b<A.length;b++)Q.push(A.charCodeAt(b));return new Blob([new Uint8Array(Q)],{type:"image/png"})};
VD6=function(A,Q,b,f){f=f===void 0?"INSERTION_POSITION_UNSPECIFIED":f;return A({targetId:Q},function(a){var T,G=(T=a.contents)!=null?T:[];T=b!=null?b:[];var p=JGy(G);switch(f){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},a,{contents:[].concat(_.ri(G.slice(0,p)),_.ri(T),_.ri(G.slice(p+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},a,{contents:[].concat(_.ri(T),_.ri(G))});case "INSERTION_POSITION_LAST":return Object.assign({},a,{contents:[].concat(_.ri(G),_.ri(T))});
default:return a}})};
nFJ=function(A,Q,b,f,a){a=a===void 0?"RELATIVE_INSERTION_POSITION_AFTER":a;return A({targetId:Q},function(T){var G,p=(G=T.contents)!=null?G:[];G=Oye(p,b);if(G<0)return T;G=a==="RELATIVE_INSERTION_POSITION_BEFORE"?G:G+1;return Object.assign({},T,{contents:[].concat(_.ri(p.slice(0,G)),_.ri(f),_.ri(p.slice(G)))})})};
JGy=function(A){var Q=A.findIndex(function(b){return _.V(b,_.ac)});
return Q>=0?Q:A.length};
Oye=function(A,Q){return A.findIndex(function(b){a:{b=_.F(Object.values(b));for(var f=b.next();!f.done;f=b.next())if((f=f.value)&&f.targetId){b=f.targetId;break a}b=""}return b===Q})};
IIX=function(A,Q,b){return A({targetId:Q},function(f){var a,T=(a=f.contents)!=null?a:[];return Object.assign({},f,{contents:kRJ(T,b)})})};
kRJ=function(A,Q){return A.filter(function(b){var f=Q.includes;a:{b=_.F(Object.values(b));for(var a=b.next();!a.done;a=b.next())if((a=a.value)&&a.targetId){b=a.targetId;break a}b=""}return!f.call(Q,b||"")})};
_.HyA=function(A,Q){return{engagementPanelSectionListRenderer:{panelIdentifier:A,identifier:Q,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.qd9=function(A){var Q,b=(Q=A.getOption("captions","tracklist",{includeAsr:!0}))!=null?Q:[];return b=Co4(b,A)};
oFe=function(A){return A.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
Co4=function(A,Q){Q=oFe(Q);if(Q==null||!Q.length)return A;var b=Q.filter(function(G){return G});
Q=A.filter(function(G){return G.languageCode.startsWith("en")});
b=_.F(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,Q.length){var a=Q[0],T=Object.assign({},a);a.languageCode!==f.languageCode&&(T.displayName=a.languageName+" >> "+f.languageName,T.translationLanguage=f,A.push(T))}return A};
tD6=function(A,Q,b){A=_.qd9(A);if(A.length)return b?A.find(function(f){if(typeof(f==null?void 0:f.translationLanguage)==="object"){var a;return((a=f.translationLanguage)==null?void 0:a.languageCode)===Q}return!1}):A==null?void 0:A.find(function(f){return f.languageCode===Q})};
rGC=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
jGe=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
Rei=function(A){var Q=jGe(A);if(Q==null?0:Q.length)return Q;A.loadModule("captions");return jGe(A)};
gFU=function(A){var Q=A.getOption("captions","track");if(Q)return Q;A.loadModule("captions");return A.getOption("captions","track")};
he9=function(A){var Q=Rei(A);if(Q!=null&&Q.length){var b=gFU(A),f;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.JQ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(b==null?0:b.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.ri(Q.map(function(a){return{listItemViewModel:{title:{content:a.displayName},
isSelected:a.displayName===(b==null?void 0:b.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:_.JQ("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!b.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!b.translationLanguage&&{selectionText:{content:(b==null?void 0:(f=b.translationLanguage)==null?void 0:f.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ee9(A)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
ee9=function(A){var Q=oFe(A);if(Q==null||!Q.length)throw Error("Ai");var b=gFU(A);A=Q.filter(function(f){return!f.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.ri(A.map(function(f){var a;return{listItemViewModel:{title:{content:f.languageName},isSelected:f.languageName===(b==null?void 0:(a=b.translationLanguage)==null?void 0:a.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:f.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
xhX=function(A){return new Promise(function(Q,b){if(A===void 0)_.en(Error("Ei"),"ERROR"),b(Error("Ei"));else{b=new _.WsJ;var f=_.vF6();b=b.init();var a=_.EFX(_.vG("YPC_MB_URL"),!0);Promise.all([b,a]).then(function(){var T=payments.business.integration.ClientTokenFactory.createClientToken(A,f);Q(T)})}})};
ws4=function(A,Q,b,f,a,T,G){var p=_.Qh();b=b.replace(/-/g,"+").replace(/_/g,"/");var P=_.nD().get("hl"),U=_.Tb(_.sY),L=Q==null?void 0:Q.element;L&&_.y3(L);cG6(Q,!0);_.zey(U,b,p.resolve,function(){L&&_.YB(L)},function(M){L&&_.YB(L);
p.reject(M)},P,f?function(M){f&&_.Ay(A,f,{backend_analytics:M})}:void 0,p.resolve,a,T,G);
return p.promise};
cG6=function(A,Q){!(A=A==null?void 0:A.element)||A.tagName!=="YT-BUTTON-RENDERER"&&A.tagName!=="YTD-BUTTON-RENDERER"||(A.disabled=Q)};
u3y=function(){var A=_.JQ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.T7(A),actionButton:{buttonRenderer:F1b()}}},popupType:"TOAST"}};
ZyJ=function(){var A=_.JQ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.T7(A),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
yG9=function(A){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:A}]}}};
dy=function(A,Q,b,f){var a;return _.B(function(T){if(T.nextAddress==1)return _.ML(T,2),T.yield(A,4);if(T.nextAddress!=2)return(a=_.CO(Q.getState().entities).length>0)?T.return({title:_.T7(_.JQ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.T7(_.JQ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:daF()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
T.return(Gi6(b,f));_.Vw(T);return T.return(Gi6(b,f))})};
Ydb=function(A,Q){return Q?Q==="PPSV"||b24(A,Q):!1};
Dhy=function(A){A.responseContext||(A.responseContext={});A.responseContext.maxAgeSeconds=0;return A};
Gb=function(A){var Q;return _.B(function(b){return b.nextAddress==1?b.yield($hi(A,"service:topbar:fallback"),2):(Q=b.yieldResult)&&_.Fw(Q)?b.return(Dhy(_.Fw(Q))):b.return()})};
NpY=function(A){var Q;return _.B(function(b){return b.nextAddress==1?b.yield($hi(A,"service:downloads_settings:fallback"),2):(Q=b.yieldResult)&&_.Fw(Q)?b.return(Q):b.return()})};
$hi=function(A,Q){var b;return _.B(function(f){if(f.nextAddress==1)return A?f.yield(A.get(Q),2):f.return();b=f.yieldResult;return!b||!_.Fw(b)||!isNaN(Number(b.data.expireTimestampMs))&&b.isExpired()?f.return():f.return(b)})};
sG4=function(A){var Q=_.fJ().resolve(BZ).getState().entities;return A.playlistId?Ydb(Q,A.playlistId):!1};
mhb=function(A,Q){var b;if(Q==null?0:(b=Q.requestTemplate)==null?0:b.panelId)A.panelId=Q.requestTemplate.panelId;var f;if(Q==null?0:(f=Q.requestTemplate)==null?0:f.params)A.params=Q.requestTemplate.params};
Q0J=function(){if(AmF)return AmF();var A=!_.K("idb_response_store_auth_killswitch"),Q={};AmF=bC("yt-it-response-store",{objectStores:(Q.ResponseStore={addedAtVersion:1},Q),shared:!A,upgrade:function(b,f){f(1)&&(b=ES(b,"ResponseStore",{keyPath:["key","clientName"]}),xT(b,"byExpiration","expireTimestampMs"),xT(b,"byInterface","clientName"))},
version:1});return AmF()};
bvY=function(A){return _.YR(Q0J(),A)};
ase=function(A,Q){var b;return _.B(function(f){return f.nextAddress==1?f.yield(_.Q7(),2):(b=f.yieldResult)?f.return(new fsb(A,Q,b)):f.return()})};
TBy=function(A){var Q=Object.keys(A)[0];if(Q)return A.screenExit&&(Q=Q+";"+A.screenExit.screen),Q};
dtU=function(A){var Q=new Map;A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=b.value,b!=null&&(Q.has(b.taskType)||Q.set(b.taskType,[]),Q.get(b.taskType).push(b));return Q};
FCf=function(A){return!isNaN(A)&&A>0};
Gq6=function(A){A=[].concat(_.ri(A)).sort(function(b,f){return b-f});
var Q=Math.floor(A.length/2);return A.length%2?A[Q]:(A[Q-1]+A[Q])/2};
PDf=function(A,Q){A=A===void 0?pLY:A;Q=Q===void 0?{}:Q;_.Al("yt.logging.errors.log",_.en);GGy();BBF(Lm6(),Q);window.onerror=A;pQY=Bz4;window.addEventListener("unhandledrejection",function(b){if(b.reason instanceof Error){var f=b.reason;_.xk(f,{source:"unhandledrejection"});f.name==="AbortError"&&(f.level="WARNING")}Bz4(b.reason);b.preventDefault()})};
_.XQy=function(A){return A.a11y.ephemeralAction||null};
_.SQ6=function(A){var Q,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y,a9,pF,Ub,Ob,I9,iy,wW,h4,SW,r9,PM,Nf,L$,UL,HM,Ks,Y1,dW;return _.B(function(bY){if(bY.nextAddress==1)return bY.yield(_.Or(A,{mode:"readonly",enableRetries:!0},function(OL){return nO(OL,"playbackData").then(function(iO){var Jv=iO.map(function(FL){return FL.transfer}).filter(function(FL){return!!FL}),zr=iO.map(function(FL){return FL.offlineVideoPolicy}).filter(function(FL){return!!FL}),fN=iO.filter(function(FL){return!!FL.key}).map(function(FL){return _.LO(_.Xg(FL.key).entityId,
"downloadStatusEntity")});
Jv=nO(OL,"transfer",Jv);zr=nO(OL,"offlineVideoPolicy",zr);fN=nO(OL,"downloadStatusEntity",fN);var sL=Jv.then(function(FL){FL=FL.reduce(function(Qx,Ls){(Ls==null?0:Ls.offlineVideoStreams)&&Qx.push.apply(Qx,_.ri(Ls.offlineVideoStreams));return Qx},[]).filter(function(Qx){return!!Qx});
return nO(OL,"offlineVideoStreams",FL)});
return xR.all([Jv,zr,sL,fN]).then(function(FL){var Qx=_.F(FL);FL=Qx.next().value;var Ls=Qx.next().value;var k1=Qx.next().value;Qx=Qx.next().value;return[iO,FL,Ls,k1,Qx]})})}),2);
if(bY.nextAddress!=3)return Q=bY.yieldResult,bY.yield(_.Or(A,{mode:"readonly",enableRetries:!0},function(OL){return nO(OL,"mainDownloadsListEntity").then(function(iO){var Jv,zr;return(zr=(Jv=iO[0])==null?void 0:Jv.downloads)!=null?zr:[]})}),3);
b=bY.yieldResult;f=_.F(Q);a=f.next().value;T=f.next().value;G=f.next().value;p=f.next().value;P=f.next().value;U=a;L=T;M=G;l=p;J=P;n={};t={};g={};e={};x={};D=[];w=_.F(L);for(u=w.next();!u.done;u=w.next())(y=u.value)&&(n[y.key]=y);a9=_.F(M);for(pF=a9.next();!pF.done;pF=a9.next())(Ub=pF.value)&&(t[Ub.key]=Ub);Ob=_.F(J);for(I9=Ob.next();!I9.done;I9=Ob.next())(iy=I9.value)&&(g[iy.key]=iy);wW=_.F(l);for(h4=wW.next();!h4.done;h4=wW.next())(SW=h4.value)&&(e[SW.key]=SW);r9=_.F(b);for(PM=r9.next();!PM.done;PM=
r9.next())Nf=PM.value,L$=void 0,x[(L$=Nf.videoItem)!=null?L$:""]=!0,Nf.videoItem&&(HM=UL=void 0,Ks=(HM=(UL=_.Xg(Nf.videoItem))==null?void 0:UL.entityId)!=null?HM:"",D.push({externalVideoId:Ks}));Y1=U.filter(function(OL){if(!OL||!OL.key||!OL.offlineVideoPolicy)return!1;OL=_.Xg(OL.key).entityId;OL=_.LO(OL,"downloadStatusEntity");var iO;return!(OL&&((iO=g[OL])==null?void 0:iO.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
dW=Y1.map(function(OL){var iO=n[OL.transfer],Jv=[];if(iO==null?0:iO.offlineVideoStreams)for(var zr=_.F(iO.offlineVideoStreams),fN=zr.next();!fN.done;fN=zr.next())(fN=e[fN.value])&&Jv.push(fN);zr=t[OL.offlineVideoPolicy];fN=x;var sL=OL==null?void 0:OL.playerResponseTimestamp,FL=_.Xg(zr.key).entityId;OL=_.LO(FL,"mainVideoEntity");if(zr.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Qx="OFFLINE_VIDEO_STATE_DISABLED";zr.expirationTimestamp&&Number(zr.expirationTimestamp)<Date.now()/1E3&&(Qx="OFFLINE_VIDEO_STATE_EXPIRED")}else if(zr.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Qx="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(iO==null?void 0:iO.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Qx="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Qx="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Qx="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Qx="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Qx="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Qx="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Qx="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Qx==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(iO==null?void 0:iO.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Qx="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Qx="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Qx=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}FL={id:FL,videoState:Qx};if(iO==null?0:iO.cotn)FL.cotn=iO.cotn;if(iO==null?0:iO.maximumDownloadQuality)FL.selectedVideoQuality=iO==null?void 0:iO.maximumDownloadQuality;if(iO==null?0:iO.lastProgressTimeMs)FL.lastProgressTimeMs=iO.lastProgressTimeMs;sL&&(FL.playerResponseSavedTimeMs=String(Number(sL)*1E3));iO=String;sL=0;Jv=_.F(Jv);for(Qx=Jv.next();!Qx.done;Qx=Jv.next())if(Qx=Qx.value,Qx.streamsProgress){Qx=_.F(Qx.streamsProgress);for(var Ls=Qx.next();!Ls.done;Ls=
Qx.next()){var k1=void 0;sL+=Number((k1=Ls.value.numBytesDownloaded)!=null?k1:0)}}FL.downloadedBytes=iO(sL);FL.selectedOfflineMode=fN[OL]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";zr.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(FL.offlinePlaybackDisabledReason=zr.offlinePlaybackDisabledReason);return FL});
return bY.return({offlineVideos:dW,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:D}}})})};
Ut6=function(){var A;return _.B(function(Q){return Q.nextAddress==1?Q.yield(_.ig(),2):(A=Q.yieldResult)?Q.return(_.SQ6(A)):Q.return({state:"PES Unavailable"})})};
lsF=function(){var A,Q,b,f;return _.B(function(a){if(a.nextAddress==1)return a.yield(_.ig(),2);if(a.nextAddress!=3)return(A=a.yieldResult)?a.yield(LCb(A),3):a.return({state:"PES Unavailable"});Q=a.yieldResult;b={};f=Q.reduce(function(T,G){T[G.key]=G;return T},b);
return a.return(Mg6(f))})};
Mg6=function(A){for(var Q={},b=[],f=_.F(Object.keys(A)),a=f.next();!a.done;a=f.next()){var T=a.value;a=A[T];var G=void 0;if(((G=a)==null?void 0:G.entityType)==="mainVideoEntity"){delete A[T];var p=a.data;a={};if(p){var P=void 0;G=(P=p.videoId)!=null?P:"vid-"+T;T=A;a.video=p;delete a.video.formattedDescription;delete a.video.thumbnail;p.owner&&(P=T[p.owner],P==null?0:P.data)&&(delete T[P.key],a.video.owner=P.data,delete a.video.owner.avatar);if(p=p.downloadState)if(P=T[p],P==null?0:P.data)if(delete T[p],
p=P.data.playbackData)if(P=T[p],P!=null&&P.data){delete T[p];p=P.data;delete p.playerResponseJson;a.playbackData=p;if(p.transfer&&(P=T[p.transfer],P==null?0:P.data)){delete T[P.key];var U=P.data;a.transfer=U;P=[];U=_.F(U.offlineVideoStreams||[]);for(var L=U.next();!L.done;L=U.next())if(L=T[L.value])delete T[L.key],P.push(L.data);P&&(a.streams=P)}(p=p.offlineVideoPolicy)&&(p=T[p])&&p.data&&(delete T[p.key],a.offlineVideoPolicy=p.data)}Q[G]=a}}else a&&a.entityType==="offlineOrchestrationActionWrapperEntity"&&
a.data&&(delete A[a.key],G=a.data,T=void 0,b.push({id:G.rootActionId,type:((T=G.actionProto)==null?void 0:T.actionType)||"",entity:a}))}Q.wrapperEntities=b;Object.keys(A).length>0&&(Q.unknownKeys=A);return Q};
KCU=function(){var A,Q,b,f,a,T,G,p,P;return _.B(function(U){if(U.nextAddress==1)return A=!!(new _.WE("")).expiringStorage_,f=!!((Q=_.by.crypto)==null?0:(b=Q.subtle)==null?0:b.importKey),a=!!_.by.BroadcastChannel,T=!!_.by.navigator.locks,U.yield(cHY(),2);G=U.yieldResult;p=A&&f&&a&&T&&G;P={isSupported:p};if(p)return U.return(P);P.missingBrowserFeatures=[];G||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");A||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
f||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");a||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");T||P.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return U.return(P)})};
ivU=function(){var A;return!((A=PZ?PZ:null)==null||!A.window)};
_.Vgf=function(A){if(_.qf()&&_.Ufe("Chromium")>=120){var Q=_.Jmy().mediaSession;try{Q.setActionHandler("enterpictureinpicture",function(){A()})}catch(b){}}};
OvY=function(A){for(var Q=[],b=_.F(document.styleSheets),f=b.next(),a={};!f.done;a={node$jscomp$727:void 0},f=b.next())a.node$jscomp$727=f.value.ownerNode,a.node$jscomp$727&&(a.node$jscomp$727 instanceof HTMLStyleElement||a.node$jscomp$727 instanceof HTMLLinkElement)&&Q.push(new Promise(function(T){return function(G){var p=T.node$jscomp$727.cloneNode(!0);p.onload=function(){G()};
p.onerror=function(){_.Wv(Error("gj"));G()};
A.document.head.appendChild(p)}}(a)));
return Promise.all(Q)};
j0y=function(A){var Q=[_.TH(nhA),_.TH(kq6),_.TH(IsW)];HvU(window.document.documentElement,A.document.documentElement,[_.TH(CDW),_.TH(qQY),_.TH(ohX),_.TH(tgi),_.TH(rm6)]);HvU(window.document.body,A.document.body,Q)};
HvU=function(A,Q,b){A=_.F(A.attributes);for(var f=A.next();!f.done;f=A.next())if(f=f.value)try{_.Qw(b,Q,f.name,f.value)}catch(a){}};
ghe=function(A,Q){A=new _.Xw(A.document.documentElement);A.start(Rl4,Q);return A};
elY=function(A){var Q=A.document.documentElement;Q.addEventListener("click",function(b){uPW(Q,b)});
Q.addEventListener("touchstart",function(b){$4f(b)});
Q.addEventListener("mousedown",function(b){$4f(b)})};
WCU=function(A,Q,b,f){f=f===void 0?!1:f;Q=new hl4(Q||A,b||A);return{x:A.x+((f===void 0?0:f)?Q.lengthX*-1:Q.lengthX)*.2,y:A.y+((f===void 0?0:f)?Q.lengthY*-1:Q.lengthY)*.2}};
vhX=function(A){if(!A)return!1;var Q=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",b,f,a,T=(a=(b=A.errorScreen)==null?void 0:b.playerLegacyDesktopYpcTrailerRenderer)!=null?a:(f=A.errorScreen)==null?void 0:f.ypcTrailerRenderer;return!!Q||!!T};
_.Eh6=function(A,Q){if(!A)return!1;var b,f=(b=A.errorScreen)==null?void 0:b.playerLegacyDesktopYpcOfferRenderer,a;Q=!!(Q==null?0:(a=Q.playerOverlayRenderer)==null?0:a.gatedActionsOverlayRenderer);return!!vhX(A)||!!f||!!Q};
zlW=function(A){return xt6(A,0,"gclid",A.search(cmX))>=0||xt6(A,0,"gad_source",A.search(cmX))>=0};
wQW=function(A){var Q=[],b=0;return{clear:function(){b=Q.length=0},
push:function(f){Q[b]=f;b=(b+1)%A},
iterate:function(){return function a(){var T,G,p,P;return _.SO(a,function(U){switch(U.nextAddress){case 1:_.iM(U,2),T=Q.length,G=0;case 4:if(!(G<T)){U.jumpTo(2);break}p=b+G;P=_.UC;return U.yield(Q[p%T],7);case 7:P(U.yieldResult);G++;U.jumpTo(4);break;case 2:_.KN(U),_.Jo(U,0)}})}()}}};
Zvi=function(){var A=u0F,Q=f0.bufferSize;A||(A=[]);A=A.map(bMW);var b=new Set(A),f=wQW(Q);return{flush:function(){var a=Array.from(f.iterate());f.clear();a=a.map(function(T){return{name:T.name,timestamp:T.startTime,attributes:T.attributes}});
return JSON.stringify(a)},
onSpanStart:function(a){a.name==="event"&&b.has(a.attributes.type)||f.push(a)}}};
ymf=function(){var A=Zvi(),Q=A.flush;jJe({onSpanStart:A.onSpanStart});Jyf.subscribe("handleError",function(b){try{b.params.breadcrumbs=Q()}catch(f){_.en(f,"WARNING")}})};
YQY=function(A,Q,b){var f=A.endTime;if(f==null)throw Error("ij");var a=A.name,T={};f-=A.startTime;var G=A.startTime;T={webTracing:(T[a]=A.attributes,T)};b=_.cG(y2X)(a,f,G,T,b,Q);if(A.children)for(A=_.F(A.children),a=A.next();!a.done;a=A.next())YQY(a.value,Q,b)};
$t6=function(){for(var A={},Q=_.F(f0.enabledSpansArray),b=Q.next();!b.done;b=Q.next())A[b.value]=!0;(f0.exportToCsi||f0.exportBreadcrumbs)&&tIF({sessionId:S16(),enabledSpans:A});f0.exportBreadcrumbs&&ymf();f0.exportToCsi&&jJe(Dt9);if(f0.exportToDevTools){var f=[];jJe({onSpanEnd:function(a){f.push(a)===1&&setTimeout(function(){var T=f.map(Rti);f.length=0;window.postMessage({type:"telemetry",spans:T},"*")},1E3)}})}};
NBi=function(A){return new Promise(function(Q){window.setTimeout(Q,A)})};
s0W=function(A){var Q={bicf:function(T){A.krK=T},
blc:function(){return A.getLatestChallengeResponse()},
bcr:function(T){A.cem.push(T)}},b=window;
b.ntpevasrs=Q;if(b.ntpqfbel!==void 0)for(var f=_.F(b.ntpqfbel),a=f.next();!a.done;a=f.next())a=a.value,a(Q);b.ntpqfbel=void 0};
mty=function(A){return _.B(function(Q){if(Q.nextAddress==1)return _.ML(Q,2),Q.yield(A.rus(),4);if(Q.nextAddress!=2)return _.Z1(Q,0);_.Vw(Q);_.Oi(Q)})};
AI6=function(A){var Q,b;(Q=A.ytcsi)==null||(b=Q.tick)==null||b.call(Q,"pot_ist")};
QQ4=function(A){if(A instanceof Error){var Q=_.zV("yt.logging.errors.log");Q&&Q(A,"WARNING")}};
bZb=function(A){try{var Q=JSON.parse(A);if(Q.bgChallenge)return Q}catch(b){}};
a$f=function(){var A=window,Q={networkStatusManagerPromise:_.fJ().resolve(new IVb(_.uC)),initialChallengeSli:_.K("wpo_att_sli")?new _.jWJ("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};A=A===void 0?window:A;var b=A.ytAtR,f;Q==null||(f=Q.initialChallengeSli)==null||_.L7(f);if(b){if(b=bZb(b)){var a;Q==null||(a=Q.initialChallengeSli)==null||_.Mr(a,"SUCCESS");f$W(b,Q)}A.ytAtR=void 0}else A.ytAtRC=function(T){if(T=bZb(T)){var G;Q==null||(G=Q.initialChallengeSli)==null||
_.Mr(G,"SUCCESS");f$W(T,Q);A.ytAtRC=void 0}}};
FNy=function(){if(TRF)return TRF;try{var A=_.KK("IFRAME");_.Zi(A,_.GH(dZU));A.sandbox.add("allow-same-origin");A.style.display="none";document.body.appendChild(A);return TRF=A}catch(Q){A=new _.IO("Failed to create sandbox iframe"),_.en(A)}};
GJf=function(A){var Q,b;return(b=A==null?void 0:(Q=A.contentWindow)==null?void 0:Q.fetch)!=null?b:window.fetch};
BRf=function(A){var Q,b;return(b=A==null?void 0:(Q=A.contentWindow)==null?void 0:Q.JSON.parse)!=null?b:JSON.parse};
pIC=function(A){var Q,b;return(b=A==null?void 0:(Q=A.contentWindow)==null?void 0:Q.Request)!=null?b:window.Request};
PjA=function(A){var Q,b;return(b=A==null?void 0:(Q=A.contentWindow)==null?void 0:Q.TextDecoder)!=null?b:window.TextDecoder};
XIe=function(){return function(A,Q){_.vG("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[A]=Q}};
SVU=function(){return function(A,Q){var b={};b[A]=Q;A=_.cG(_.urY)(b);Object.keys(A).length>0&&_.g2(A)}};
M5f=function(){if(RU4()==="hidden")var A="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else RU4()==="visible"&&(A="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",UZ9=null);A&&LN9(A)};
LN9=function(A){if(A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(l$A===A)return;l$A=A}var Q=9E4+Math.random()*2E3;if(A!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.TD()>Q)&&RU4()==="visible"){Q=-1;UZ9&&(Q=Math.round((0,_.f4)()-UZ9));var b=String;var f=_.zV("_fact",window);f=f==null||f==-1?-1:Math.max(Date.now()-f,0);_.R4("foregroundHeartbeat",{firstActivityMs:b(f),clientDocumentNonce:U$A,index:String(KNF),lastEventDeltaMs:String(Q),trigger:A});
_.Al("_fact",-1,window);KNF++;UZ9=(0,_.f4)()}};
_.iZy=function(){try{return!!self.sessionStorage}catch(A){return!1}};
JIX=function(){var A=navigator;return new Promise(function(Q,b){var f;(f=A.webkitTemporaryStorage)!=null&&f.queryUsageAndQuota?A.webkitTemporaryStorage.queryUsageAndQuota(function(a,T){Q({usage:a,quota:T})},function(a){b(a)}):b(Error("qj"))})};
V5i=function(A,Q){var b={errorSeverity:Q.errorSeverity.toString(),wizFeatureFlags:Object.entries(Q.featureFlags).join("\n")};FmJ(Q,b);Q=Q.errorSeverity;Q===3?_.en(A,"ERROR",void 0,void 0,void 0,b):Q===2&&_.en(A,"WARNING",void 0,void 0,void 0,b);_.K("cow_if_errors_in_popup")&&Q===3&&A.message.indexOf("<If>")!==-1&&window.alert(A.message)};
OZY=function(A,Q){var b=AH.get(A)||{layerNode:Q};b.layerNode=Q;otF(A,b);A.getScreenLayer=function(){return l6(b.layerNode)}};
nvC=function(A){var Q;A=A.parentNode;for(var b;A&&((Q=AH.get(A))==null||!Q.isRenderer)&&!((b=A.polymerController)!=null?b:A).isRenderer_;)A=A.parentNode||A.host;if(Q=A)return AH.get(Q)};
kJf=function(A){if(A){AH.delete(A);var Q=_.fJ().resolve(aN);gxF(A,Q)}};
HZi=function(A,Q,b){if(b===void 0?0:b){if(b=A.getAttribute("client-ve-type"),Q.data&&!Q.disableReactiveLogging||b)_.tk(function(){I$b(A,_.o7(Q.data))}),_.Cz(function(){return void kJf(A)})}else typeof Q.data!=="function"&&I$b(A,Q.data)};
I$b=function(A,Q){CjC++;qVe(A,Q)&&_.j7.addJob(function(){_.hy(_.j7,function(){if(qVe(A,Q)&&A.ownerDocument.documentElement===document.documentElement&&A){var b;if(A.getAttribute("layer")){var f=b=Number(A.getAttribute("layer")),a=AH.get(A);a?a.layerNode.layer=f:OZY(A,new ovF(f));(f=nvC(A))&&(a=AH.get(A))!=null&&(a.layerNode.parent=f.layerNode)}else if(b=AH.get(A))b=l6(b.layerNode);else{b=l6;f=new ovF;if(a=nvC(A))f.parent=a.layerNode;OZY(A,f);b=b(f)}b!=null||(b=0);f=A.getAttribute("client-ve-type");
a=Number(f);var T=!1;f=!1;var G=AH.get(A),p;if((p=G)&&!(p=G[t5f]!==Q)&&(p=a)){var P;p=((P=AH.get(A))==null?void 0:P.clientVeType)===void 0}p&&(G[t5f]=Q,T=f=G.isRenderer=!0);AH.has(A)&&(AH.get(A).clientVeType=a);A.visualElement&&(f=!0);if(_.K("wiz_next_ld_fix_client_ve_spec")){var U;P=((U=_.V(Q==null?void 0:Q.rendererContext,_.H8))==null?void 0:U.loggingDirectives)||(Q==null?void 0:Q.loggingDirectives)}else P=Q==null?void 0:Q.loggingDirectives;P&&P.clientVeSpec&&(U=rIU(_.n0(),A),U=_.jQX(_.IP(),P,U||
void 0,b))&&(A.visualElement=U);!A.visualElement&&a&&T&&(A.veType=a,U=void 0,_.K("wiz_next_client_ve_parent_fix")&&(U=rIU(_.n0(),A)),U=_.kz(_.IP(),A,U,b),A.visualElement=U);f&&(U=_.fJ().resolve(aN),vxy(A,{data:Q,observer:U,layer:b,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
qVe=function(A,Q){return(Q==null?0:Q.trackingParams)||(Q==null?0:Q.loggingDirectives)||_.V(Q==null?void 0:Q.rendererContext,_.H8)||A.getAttribute("client-ve-type")?!0:!1};
RE4=function(A,Q,b){A.componentType!==O7&&b instanceof HTMLElement&&Q&&!_.K("cow_logging_in_component_wrapper")&&HZi(b,Q,!0)};
Ev9=function(){if(!gvb){gvb=!0;var A=Object.assign({},{enableLazyTsx:_.K("mweb_enable_wiz_lazy_tsx")||_.K("kevlar_enable_wiz_lazy_tsx")||_.K("creator_enable_wiz_lazy_tsx")||eEf,flushRenderEffectsDuringRender:!0},{handleError:V5i,enableComponentStacksInErrorMessages:!1});Object.assign(Qd,A);kL9=hEJ;WNA();ofJ=fP6;H19=aP4;_.K("ytwiz_enable_debug_component_props")&&(A=document.body.firstElementChild,window.ng||A.__ngContext__||(A.__ngContext__={},A.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
vv4))}};
WNA=function(){_.K("cow_logging_in_component_wrapper")?(Xgi=function(A,Q){Q instanceof HTMLElement&&HZi(Q,A,!0)},Sve=function(){}):(Xgi=function(){},Sve=RE4)};
xZY=function(A,Q,b){Q=Q===void 0?{}:Q;var f,a=(f=_.V(A.commandMetadata,_.KD))==null?void 0:f.url;f=Q.form||{};!b||f.element||f.skipDefaultElement||(Q.form=Q.form||{},Q.form.element=b);if(a&&a!=="/service_ajax")return{type:0,command:A,form:Q.form};if(_.K("kevlar_service_command_check")){if(_.m4(_.fJ().resolve(_.vY),A))return Object.assign({},{type:1,command:A},Q)}else{var T;if((T=_.V(A.commandMetadata,_.KD))==null?0:T.apiUrl)return Object.assign({},{type:1,command:A},Q)}return{type:2,command:A,form:Q.form}};
cIY=function(A){if(A.form){var Q=A.form,b=Object.assign({},Q);Q=Q.element;b=(delete b.element,b);if(Q)return[_.X5(Q,[A.command,b,A.commandController])]}return[]};
zEX=function(A){if(A.form){var Q=A.form,b=Object.assign({},Q);Q=Q.element;b=(delete b.element,b);Q&&_.ST(Q,[A.command],Q,b)}};
u8X=function(A,Q,b){var f=new wIU(A,Q),a=new K7(A,Q,b);A={"/youtubei/v1/browse":new i6(A,Q,b),"/youtubei/v1/player":f,"/youtubei/v1/navigation/resolve_url":new Jb,"/youtubei/v1/next":a,"/youtubei/v1/guide":new Va(b),"/youtubei/v1/search":new OC(A,Q,b),"/youtubei/v1/reel/reel_item_watch":new HZ(A,Q,b),"/youtubei/v1/get_watch":new C7(f,a)};A["/youtubei/v1/account/account_menu"]=new qr;A["/youtubei/v1/notification/get_notification_menu"]=new oc;return A};
ry=function(){var A=_.fJ().resolve(tb);return Promise.resolve(ZZW(A,_.by.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
yIW=function(A){return A&&(A=_.jO(_.Ja4(A)))?(new URLSearchParams(A)).get("service"):null};
eO=function(A,Q){_.LE(_.Rc(),function(){_.hQ("adl")});
_.fJ().resolve(YVJ)(Q);A=A.root;A.loadData&&A.loadData(Q);(Q==null?0:Q.response)?_.Mr(e$y(),"SUCCESS"):_.Wv(new _.IO("Lifecycle: No response in data",_.Ep("IS_SHELL_LOAD"),Q?Q.page:"NO_PAGE",Q?Q.endpoint:"NO_ENDPOINT"));A.polymerController.$["page-manager"].lazyPrepareCriticalPages((Q==null?void 0:Q.page)||"",Q.endpoint);var b,f;((f=_.V(Q==null?void 0:(b=Q.endpoint)==null?void 0:b.commandMetadata,_.KD))==null?0:f.webPageType)&&_.QK().dispatch(_.gy(_.V(Q.endpoint.commandMetadata,_.KD).webPageType))};
DZ9=function(){var A,Q;return _.B(function(b){switch(b.nextAddress){case 1:A=window;if(!A.getDataPromise){b.jumpTo(2);break}_.ML(b,3);return b.yield(A.getDataPromise(),5);case 5:return b.return(b.yieldResult);case 3:return _.Vw(b),b.yield(ry(),6);case 6:return b.return(b.yieldResult);case 2:if(A.getInitialData)return Q=A.getInitialData(),A.getInitialData=void 0,b.return(Q);throw Error("sj`"+_.by.location.href);}})};
NRU=function(){_.e6("CSI_SERVICE_NAME","youtube");_.g2({loadType:"cold"});_.K("kevlar_log_lcp")&&$Z6(function(A){_.hQ("lcp",A.value)})};
sQ6=function(){var A=_.EO(document.location.href,"enable");A&&A.indexOf("scraper")>-1&&_.e6("ADD_SCRAPER_ATTRIBUTES",!0)};
fL6=function(A){var Q=A.root;A=[mZX,ApY,_.hb];_.K("web_feedback_endpoint_autolog_allowlist_killswitch")&&A.push(_.WZ,Qef);bA9(function(b,f){return xZY(b,f,Q)},function(b){if(!b.command)return[];
var f;((f=b.form)==null?0:f.element)?b.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},b.form,{endpoint:b.command})})):Q.handleNavigate(b);return[]},A);
_.fJ().addProvider({provide:_.de,useValue:_.J8.instance})};
T4C=function(){var A={},Q={},b;for(b in aLJ){var f=_.F(_.pz(aLJ[b],void 0,"IAtZ7"));A[b]=f.next().value;Q[b]=f.next().value}return[A,function(a){for(var T in a){var G=void 0;(G=Q[T])==null||G(a[T])}}]};
_.GlF=function(A,Q){var b=!1;b=b===void 0?!1:b;var f=_.j2.getValueByKeys(A,"contents","twoColumnWatchNextResults","results","results","contents"),a=_.j2.getValueByKeys(A,"contents","twoColumnWatchNextResults","playlist","playlist")||null;b&&(a=null);var T=b=null;if(a)b=_.j2.getValueByKeys(a,"titleText"),T=_.j2.unsafeClone(_.j2.getValueByKeys(a,"longBylineText")),f="",T&&(f=_.mO(T)),T=_.sr(f);else if(f){f=_.F(f);for(var G=f.next();!G.done;G=f.next())G=G.value,G.videoPrimaryInfoRenderer&&(b=_.j2.getValueByKeys.apply(_.j2,
[G].concat(_.ri(ddJ)))),G.videoSecondaryInfoRenderer&&(T=_.j2.getValueByKeys.apply(_.j2,[G].concat(_.ri(FFf))))}else _.wN(Error("xj"));var p;A.currentVideoEndpoint?p=A.currentVideoEndpoint:_.wN(Error("yj"));var P;Q&&(P=_.j2.getValueByKeys(Q,"playabilityStatus","miniplayer","miniplayerRenderer"));A={miniplayerTitle:b,miniplayerSubtitle:T,watchEndpoint:p,playlistData:a};P&&(A.miniplayerRenderer=P);return A};
B4A=function(A){if(A)return _.xz(A)};
_.pqF=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
PPU=function(A){return A.videoDuration?A.numTaps>1&&A.tapDirection!==0?_.vZ(A.draggedTime/A.videoDuration,0,1):_.vZ((A.playedTime||0)/A.videoDuration,0,1):0};
XqC=function(A){return A.videoDuration?A.isDragging||A.numTaps>1&&A.tapDirection!==0?_.vZ(A.draggedTime/A.videoDuration,0,1):_.vZ((A.playedTime||0)/A.videoDuration,0,1):0};
Ud9=function(A){var Q,b,f;return _.V(A==null?void 0:(Q=A.markersMap)==null?void 0:(b=Q.find(function(a){return a.key==="HEATSEEKER"}))==null?void 0:(f=b.value)==null?void 0:f.heatmap,SyW)};
LFf=function(A){var Q,b;return(b=(Q=Ud9(A))==null?void 0:Q.heatMarkersDecorations)!=null?b:[]};
Mif=function(A){if(_.K("mweb_supported_chapters_killswitch"))return!0;var Q;return!!(A==null?0:(Q=A.markersMap)==null?0:Q.find(function(b){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(b.key)}))};
_.lLi=function(A){var Q=Object,b=Q.assign,f;A={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(f=A==null?void 0:A.getPlayerState())!=null?f:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return b.call(Q,{},{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},A,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
KFW=function(A){return function(Q){var b=A(),f,a=(f=b.playerApi)==null?void 0:f.getPlayerState();Q&&Q!==b.playerState&&(Q===1||Q===2)&&b.setState({playerState:a})}};
JpA=function(A){return function(Q){var b=A(),f=b.playerApi;f&&(Q==null?void 0:Q.type)==="newdata"&&(iAb&&(clearTimeout(iAb),iAb=void 0),_.K("web_shorts_use_progress_state_for_gapless")?(Q=f==null?void 0:f.getProgressState(Q==null?void 0:Q.playertype),Q=Q.seekableEnd-Q.seekableStart):Q=f==null?void 0:f.getDuration(Q==null?void 0:Q.playertype),b.setState({playedTime:0,videoDuration:Q}))}};
ViX=function(A){return function(Q){var b=A(),f=b.playerApi;if(f){var a=f.getPresentingPlayerType();_.K("web_shorts_use_progress_state_for_gapless")?(f=f.getProgressState(a),f=f.seekableEnd-f.seekableStart):f=f.getDuration(a);b.setState({playedTime:Q,videoDuration:f})}}};
nyb=function(A){_.rL(112394,A,function(){return OAY},function(Q){OAY=Q})};
HAF=function(A,Q){if(!A)return[];var b,f,a;A=((b=A.markersMap)==null?void 0:(f=b.find(function(T){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(T.key)}))==null?void 0:(a=f.value)==null?void 0:a.chapters)||[];
!klX(A)||(Q==null?0:Q.ignoreStub)||(A=[ILf()].concat(_.ri(A)));return A};
ILf=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
klX=function(A){if(A.length===0)return!1;var Q;return((Q=_.V(A[0],EC))==null?void 0:Q.timeRangeStartMillis)!==0};
xG=function(A){return A?A.timeRangeStartMillis||0:0};
qyY=function(A,Q){if(A.isDragging&&Q)return A=CPb(A,Q),A===-1?ILf():HAF(Q)[A]};
CPb=function(A,Q){return A.isDragging&&Q?HAF(Q,{ignoreStub:!0}).findIndex(function(b,f,a){b=oyi(A);return tiJ(b,a,f).scrubberHovering}):-1};
oyi=function(A){return Object.assign({},A,{videoDuration:A.videoDuration*1E3,playedTime:A.playedTime*1E3,draggedTime:A.draggedTime*1E3})};
tiJ=function(A,Q,b){var f=xG(_.V(Q[b],EC));Q=xG(_.V(Q[b+1],EC))||A.videoDuration;b=A.isDragging;var a;if(a=A.isDragging)a=A.draggedTime,a=a!==null&&a>=f&&a<Q;var T=A.playedTime;return T!==null&&T>=f&&T<Q?{videoPosition:"active",isScrubbing:b,scrubberHovering:a}:A.playedTime<f?{videoPosition:"pending",isScrubbing:b,scrubberHovering:a}:{videoPosition:"seen",isScrubbing:b,scrubberHovering:a}};
rpF=function(A,Q){return A.videoPosition==="seen"||(Q===void 0?0:Q)>0};
jey=function(A,Q,b){Q=A/Q.storyboardInterval;var f=HAF(b);if(!f.length)return-Q*72;b=0;f=_.F(f);for(var a=f.next();!a.done;a=f.next())if(xG(_.V(a.value,EC))/1E3<A)b++;else break;return-(Q*72)-b*56};
RdX=function(A){return A?A.width/A.columns:0};
gyU=function(A){return A.isHovering?A.hoveredTime:A.draggedTime};
edJ=function(A,Q){A=A.draggedTime*1E3;return A>=Q.visibleTimeRangeStartMillis&&A<=Q.visibleTimeRangeEndMillis};
_.hdU=function(A){if(A===void 0||Number.isNaN(A))return"--:--";var Q=Math.abs(Math.floor(A)),b=Math.floor(Q/86400),f=Math.floor(Q%86400/3600),a=Math.floor(Q%3600/60);Q=Math.floor(Q%60);var T="";b>0&&(T+=b+":",f<10&&(T+="0"));if(b>0||f>0)T+=f+":",a<10&&(T+="0");T+=a+":";Q<10&&(T+="0");T+=Q;return A>=0?T:"-"+T};
WFJ=function(A,Q){return function(){var b=gyU(A());var f=Q();var a=A().playerApi;if(a&&a.getNumberOfStoryboardLevels()!==0){var T=a.getStoryboardFrameIndex(b,1);T!==-1?f=a.getStoryboardFrame(T,1):(b=a.getStoryboardFrameIndex(b,0),a=a.getStoryboardFrame(b,0),f&&a&&(a.height*=3,a.width*=3),f=a)}else f=null;if(!f)return null;Q()&&(f.width=90*f.columns,f.height=160*f.rows);return f}};
_.cZ=function(A){if(!A||A.getVideoData)return A};
vy6=function(){var A;return{playerApi:(A=_.Jy())!=null?A:void 0}};
EyC=function(A){var Q;_.B(function(b){if(b.nextAddress==1)return b.yield(_.iJ(),2);if(Q=b.yieldResult)Q.unMute(!0),Q.setVolume(A,!0);_.Oi(b)})};
xdi=function(A,Q){A&&(A.value=""+Q,A.style.setProperty("--gradient-percent",Q+"%"))};
cpF=function(A){var Q;return(Q=A==null?void 0:A.value)!=null?Q:0};
zdA=function(){var A;_.B(function(Q){if(Q.nextAddress==1)return Q.yield(_.iJ(),2);A=Q.yieldResult;if(!A)return Q.return();A.isMuted()?A.unMute(!0):A.mute(!0);_.Oi(Q)})};
wqy=function(A){var Q=_.fJ().resolve(_.zb).getPlayerElement();Q&&A&&(A===1?Q.pause():Q.play())};
uVW=function(A){_.Pn(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
ZAi=function(A){_.Pn(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
Yyf=function(A){return _.HG(A.document.body,function(){return _.X(ypX,null)})};
DdJ=function(){var A=window.performance.getEntriesByType("navigation");return A?A.map(function(Q){return Q.type}).includes("reload"):!1};
fTF=function(){wy(wy(wy(wy(wy(wy(wy(_.fJ().resolve(_.u6),_.$dC),_.N4i),_.seU),_.mdb),_.Ag9),_.Qri),_.biA)};
aTC=function(A,Q){Q=Q===void 0?!1:Q;var b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return Q||!_.K("kevlar_shorts_seedless_retry_initial_load")||(b=window,f=!(!b.getDataPromise&&!b.getInitialData),f)?G.yield(DZ9(),2):(setTimeout(aTC.bind(window,A,!0),1E3),G.return());if(G.nextAddress!=3)return a=G.yieldResult,G.yield(Tj9(a),3);T=G.yieldResult;eO(A,T);_.Oi(G)})};
Tj9=function(A){var Q;if((Q=A.response)==null||!Q.replacementEndpoint)return _.Ul(A);Q=_.fJ().resolve(tb);A=A.response;_.V(A.replacementEndpoint,_.CT)&&A.sequenceContinuation&&(_.V(A.replacementEndpoint,_.CT).sequenceParams=A.sequenceContinuation);return ZN(Q,A.replacementEndpoint,{},_.by.location.href,"shorts",function(){},function(){return!1})};
FVA=function(A){var Q=_.fJ().resolve(dKX);A.playerResponse&&Q.handleResponse(A.playerResponse);A.response&&Q.handleResponse(A.response)};
G2U=function(A){var Q=_.QK(),b,f=_.V((b=A.response)==null?void 0:b.frameworkUpdates,f6),a;b=_.V((a=A.playerResponse)==null?void 0:a.frameworkUpdates,f6);var T;A=_.V((T=A.reelWatchSequenceResponse)==null?void 0:T.frameworkUpdates,f6);f&&_.V4(f,Q);b&&_.V4(b,Q);A&&_.V4(A,Q)};
BjA=function(A){var Q;_.K("enable_redirect_linking_for_desktop_web_client")&&((Q=window.location.hash)==null?0:Q.includes("redirect_state"))&&A.url&&(A.url=A.url.toString()+window.location.hash)};
X66=function(A){var Q=_.fJ(),b=Q.resolve(tb);Q=Q.resolve(_.p66);A.endpoint&&(b=PA6(b,A.endpoint),b.content&&A.response&&_.ya(Q,A.response,b.content),b.player&&A.playerResponse&&_.ya(Q,A.playerResponse,b.player),b.reelSequence&&A.reelWatchSequenceResponse&&_.ya(Q,A.reelWatchSequenceResponse,b.reelSequence))};
YG=function(A,Q){_.K("web_service_params_response_processor")&&FVA(Q);G2U(Q);var b;(Q==null?0:Q.url)&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&(BjA(Q),(b=yIW(Q.url))&&_.pD(A.root,"yt-initialize-third-party",[b,Q]));X66(Q);b=_.fJ();var f=b.resolve(Sxf);Q.playerResponse&&b.resolve(UKy).handleResponse(Q.playerResponse);if(Q.playerResponse){b=void 0;if(_.K("ab_v_vid_sig")&&Q.endpoint){var a,T=(a=_.V(Q.endpoint,_.sv))!=null?a:_.V(Q.endpoint,_.CT);T&&(b=T.videoId)}LVi(f,Q.playerResponse,
b)}Q.playerResponse&&sEe(Q.playerResponse)&&_.K("web_enable_ab_rsp_cl")?E2A().then(function(){Mo6(f,Q.playerResponse);eO(A,Q)}):eO(A,Q)};
KVY=function(A){if(A=A.root.data){var Q=_.fJ().resolve(lTY);A.endpoint&&(A.response&&Q.handleResponse(A.response,void 0,document.querySelector("ytd-app")),A.playerResponse&&Q.handleResponse(A.playerResponse),A.reelWatchSequenceResponse&&Q.handleResponse(A.reelWatchSequenceResponse))}};
iiy=function(A){var Q,b,f,a,T,G;return _.B(function(p){switch(p.nextAddress){case 1:Q=window;if(!Q.getDataPromise){p.jumpTo(2);break}_.ML(p,3);return p.yield(Q.getDataPromise(),5);case 5:b=p.yieldResult;YG(A,b);_.Z1(p,4);break;case 3:return _.Vw(p),p.yield(ry(),6);case 6:f=p.yieldResult,eO(A,f);case 4:return p.return();case 2:if(!_.K("sw_nav_preload_pbj")){p.jumpTo(7);break}Q.fetchInitialData=function(){var P;return _.B(function(U){if(U.nextAddress==1)return U.yield(ry(),2);P=U.yieldResult;eO(A,P);
_.Oi(U)})};
if(Q.getInitialData){Q.loadInitialData=function(P){YG(A,P)};
a=Q.getInitialData();Q.getInitialData=void 0;YG(A,a);p.jumpTo(8);break}Q.fetchInitialData=void 0;return p.yield(ry(),9);case 9:T=p.yieldResult,eO(A,T);case 8:return p.return();case 7:Q.getInitialData?(G=Q.getInitialData(),Q.getInitialData=void 0,YG(A,G)):Q.loadInitialData=function(P){YG(A,P)},_.Oi(p)}})};
Jgb=function(A){var Q=0;return function(){return Q<A.length?{done:!1,value:A[Q++]}:{done:!0}}};
VoJ=typeof Object.defineProperties=="function"?Object.defineProperty:function(A,Q,b){if(A==Array.prototype||A==Object.prototype)return A;A[Q]=b.value;return A};
Oiy=function(A){A=["object"==typeof globalThis&&globalThis,A,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var Q=0;Q<A.length;++Q){var b=A[Q];if(b&&b.Math==Math)return b}throw Error("a");};
_.Qr=Oiy(this);DN=function(A,Q){if(Q)a:{var b=_.Qr;A=A.split(".");for(var f=0;f<A.length-1;f++){var a=A[f];if(!(a in b))break a;b=b[a]}A=A[A.length-1];f=b[A];Q=Q(f);Q!=f&&Q!=null&&VoJ(b,A,{configurable:!0,writable:!0,value:Q})}};
DN("Symbol",function(A){if(A)return A;var Q=function(T,G){this.$jscomp$symbol$id_=T;VoJ(this,"description",{configurable:!0,writable:!0,value:G})};
Q.prototype.toString=function(){return this.$jscomp$symbol$id_};
var b="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",f=0,a=function(T){if(this instanceof a)throw new TypeError("b");return new Q(b+(T||"")+"_"+f++,T)};
return a});
DN("Symbol.iterator",function(A){if(A)return A;A=Symbol("c");for(var Q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b<Q.length;b++){var f=_.Qr[Q[b]];typeof f==="function"&&typeof f.prototype[A]!="function"&&VoJ(f.prototype,A,{configurable:!0,writable:!0,value:function(){return n6i(Jgb(this))}})}return A});
DN("Symbol.asyncIterator",function(A){return A?A:Symbol("d")});
var n6i=function(A){A={next:A};A[Symbol.iterator]=function(){return this};
return A},k2b=typeof Object.create=="function"?Object.create:function(A){var Q=function(){};
Q.prototype=A;return new Q},ITF=function(){function A(){function b(){}
new b;Reflect.construct(b,[],function(){});
return new b instanceof b}
if(typeof Reflect!="undefined"&&Reflect.construct){if(A())return Reflect.construct;var Q=Reflect.construct;return function(b,f,a){b=Q(b,f);a&&Reflect.setPrototypeOf(b,a.prototype);return b}}return function(b,f,a){a===void 0&&(a=b);
a=k2b(a.prototype||Object.prototype);return Function.prototype.apply.call(b,a,f)||a}}(),Hib;
if(typeof Object.setPrototypeOf=="function")Hib=Object.setPrototypeOf;else{var CAX;a:{var qxi={a:!0},o6b={};try{o6b.__proto__=qxi;CAX=o6b.a;break a}catch(A){}CAX=!1}Hib=CAX?function(A,Q){A.__proto__=Q;if(A.__proto__!==Q)throw new TypeError("e`"+A);return A}:null}$G=Hib;
_.O=function(A,Q){A.prototype=k2b(Q.prototype);A.prototype.constructor=A;if($G)$G(A,Q);else for(var b in Q)if(b!="prototype")if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(Q,b);f&&Object.defineProperty(A,b,f)}else A[b]=Q[b];A.superClass_=Q.prototype};
_.F=function(A){var Q=typeof Symbol!="undefined"&&Symbol.iterator&&A[Symbol.iterator];if(Q)return Q.call(A);if(typeof A.length=="number")return{next:Jgb(A)};throw Error("f`"+String(A));};
yO=function(A){for(var Q,b=[];!(Q=A.next()).done;)b.push(Q.value);return b};
_.ri=function(A){return A instanceof Array?A:yO(_.F(A))};
_.sC=function(A){return Nr(A,A)};
Nr=function(A,Q){A.raw=Q;Object.freeze&&(Object.freeze(A),Object.freeze(Q));return A};
mU=function(A,Q){return Object.prototype.hasOwnProperty.call(A,Q)};
toe=typeof Object.assign=="function"?Object.assign:function(A,Q){for(var b=1;b<arguments.length;b++){var f=arguments[b];if(f)for(var a in f)mU(f,a)&&(A[a]=f[a])}return A};
DN("Object.assign",function(A){return A||toe});
var Ar=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},rgA=function(A){if(A.isRunning_)throw new TypeError("h");
A.isRunning_=!0};
Ar.prototype.JSC$8670_next_=function(A){this.yieldResult=A};
var jrC=function(A,Q){A.abruptCompletion_={exception:Q,isException:!0};A.nextAddress=A.catchAddress_||A.finallyAddress_};
Ar.prototype.return=function(A){this.abruptCompletion_={return:A};this.nextAddress=this.finallyAddress_};
Ar.prototype.yield=function(A,Q){this.nextAddress=Q;return{value:A}};
Ar.prototype.jumpTo=function(A){this.nextAddress=A};
_.Oi=function(A){A.nextAddress=0};
_.ML=function(A,Q,b){A.catchAddress_=Q;b!=void 0&&(A.finallyAddress_=b)};
_.iM=function(A,Q){A.catchAddress_=0;A.finallyAddress_=Q||0};
_.Z1=function(A,Q,b){A.nextAddress=Q;A.catchAddress_=b||0};
_.Vw=function(A,Q){A.catchAddress_=Q||0;Q=A.abruptCompletion_.exception;A.abruptCompletion_=null;return Q};
_.KN=function(A,Q,b,f){f?A.finallyContexts_[f]=A.abruptCompletion_:A.finallyContexts_=[A.abruptCompletion_];A.catchAddress_=Q||0;A.finallyAddress_=b||0};
_.Jo=function(A,Q,b){b=A.finallyContexts_.splice(b||0)[0];(b=A.abruptCompletion_=A.abruptCompletion_||b)?b.isException?A.nextAddress=A.catchAddress_||A.finallyAddress_:b.jumpTo!=void 0&&A.finallyAddress_<b.jumpTo?(A.nextAddress=b.jumpTo,A.abruptCompletion_=null):A.nextAddress=A.finallyAddress_:A.nextAddress=Q};
Rr4=function(A){this.JSC$8675_context_=new Ar;this.program_=A};
erU=function(A,Q){rgA(A.JSC$8675_context_);var b=A.JSC$8675_context_.yieldAllIterator_;if(b)return g6A(A,"return"in b?b["return"]:function(f){return{value:f,done:!0}},Q,A.JSC$8675_context_.return);
A.JSC$8675_context_.return(Q);return QF(A)};
g6A=function(A,Q,b,f){try{var a=Q.call(A.JSC$8675_context_.yieldAllIterator_,b);if(!(a instanceof Object))throw new TypeError("g`"+a);if(!a.done)return A.JSC$8675_context_.isRunning_=!1,a;var T=a.value}catch(G){return A.JSC$8675_context_.yieldAllIterator_=null,jrC(A.JSC$8675_context_,G),QF(A)}A.JSC$8675_context_.yieldAllIterator_=null;f.call(A.JSC$8675_context_,T);return QF(A)};
QF=function(A){for(;A.JSC$8675_context_.nextAddress;)try{var Q=A.program_(A.JSC$8675_context_);if(Q)return A.JSC$8675_context_.isRunning_=!1,{value:Q.value,done:!1}}catch(b){A.JSC$8675_context_.yieldResult=void 0,jrC(A.JSC$8675_context_,b)}A.JSC$8675_context_.isRunning_=!1;if(A.JSC$8675_context_.abruptCompletion_){Q=A.JSC$8675_context_.abruptCompletion_;A.JSC$8675_context_.abruptCompletion_=null;if(Q.isException)throw Q.exception;return{value:Q.return,done:!0}}return{value:void 0,done:!0}};
hrC=function(A){this.next=function(Q){rgA(A.JSC$8675_context_);A.JSC$8675_context_.yieldAllIterator_?Q=g6A(A,A.JSC$8675_context_.yieldAllIterator_.next,Q,A.JSC$8675_context_.JSC$8670_next_):(A.JSC$8675_context_.JSC$8670_next_(Q),Q=QF(A));return Q};
this.throw=function(Q){rgA(A.JSC$8675_context_);A.JSC$8675_context_.yieldAllIterator_?Q=g6A(A,A.JSC$8675_context_.yieldAllIterator_["throw"],Q,A.JSC$8675_context_.JSC$8670_next_):(jrC(A.JSC$8675_context_,Q),Q=QF(A));return Q};
this.return=function(Q){return erU(A,Q)};
this[Symbol.iterator]=function(){return this}};
_.SO=function(A,Q){Q=new hrC(new Rr4(Q));$G&&A.prototype&&$G(Q,A.prototype);return Q};
WVW=function(A){function Q(f){return A.next(f)}
function b(f){return A.throw(f)}
return new Promise(function(f,a){function T(G){G.done?f(G.value):Promise.resolve(G.value).then(Q,b).then(T,a)}
T(A.next())})};
_.B=function(A){return WVW(new hrC(new Rr4(A)))};
_.lM=function(A){var Q=A[Symbol.asyncIterator];return Q!==void 0?Q.call(A):new v6J(_.F(A))};
v6J=function(A){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return A};
this.next=function(Q){return Promise.resolve(A.next(Q))};
this["throw"]=function(Q){return new Promise(function(b,f){var a=A["throw"];a!==void 0?b(a.call(A,Q)):(b=A["return"],b!==void 0&&b.call(A),f(new TypeError("i")))})};
A["return"]!==void 0&&(this["return"]=function(Q){return Promise.resolve(A["return"](Q))})};
_.E$=function(){for(var A=Number(this),Q=[],b=A;b<arguments.length;b++)Q[b-A]=arguments[b];return Q};
_.UC=function(A){return A};
DN("globalThis",function(A){return A||_.Qr});
DN("Reflect",function(A){return A?A:{}});
DN("Reflect.construct",function(){return ITF});
DN("Reflect.setPrototypeOf",function(A){return A?A:$G?function(Q,b){try{return $G(Q,b),!0}catch(f){return!1}}:null});
DN("Promise",function(A){function Q(){this.batch_=null}
function b(G){return G instanceof a?G:new a(function(p){p(G)})}
if(A&&(typeof _.Qr.PromiseRejectionEvent!=="undefined"||!_.Qr.Promise||_.Qr.Promise.toString().indexOf("[native code]")===-1))return A;Q.prototype.asyncExecute=function(G){if(this.batch_==null){this.batch_=[];var p=this;this.asyncExecuteFunction(function(){p.executeBatch_()})}this.batch_.push(G)};
var f=_.Qr.setTimeout;Q.prototype.asyncExecuteFunction=function(G){f(G,0)};
Q.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var G=this.batch_;this.batch_=[];for(var p=0;p<G.length;++p){var P=G[p];G[p]=null;try{P()}catch(U){this.asyncThrow_(U)}}}this.batch_=null};
Q.prototype.asyncThrow_=function(G){this.asyncExecuteFunction(function(){throw G;})};
var a=function(G){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var p=this.createResolveAndReject_();try{G(p.resolve,p.reject)}catch(P){p.reject(P)}};
a.prototype.createResolveAndReject_=function(){function G(U){return function(L){P||(P=!0,U.call(p,L))}}
var p=this,P=!1;return{resolve:G(this.resolveTo_),reject:G(this.JSC$8703_reject_)}};
a.prototype.resolveTo_=function(G){if(G===this)this.JSC$8703_reject_(new TypeError("m"));else if(G instanceof a)this.settleSameAsPromise_(G);else{a:switch(typeof G){case "object":var p=G!=null;break a;case "function":p=!0;break a;default:p=!1}p?this.resolveToNonPromiseObj_(G):this.fulfill_(G)}};
a.prototype.resolveToNonPromiseObj_=function(G){var p=void 0;try{p=G.then}catch(P){this.JSC$8703_reject_(P);return}typeof p=="function"?this.settleSameAsThenable_(p,G):this.fulfill_(G)};
a.prototype.JSC$8703_reject_=function(G){this.settle_(2,G)};
a.prototype.fulfill_=function(G){this.settle_(1,G)};
a.prototype.settle_=function(G,p){if(this.state_!=0)throw Error("n`"+G+"`"+p+"`"+this.state_);this.state_=G;this.result_=p;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
a.prototype.scheduleUnhandledRejectionCheck_=function(){var G=this;f(function(){if(G.notifyUnhandledRejection_()){var p=_.Qr.console;typeof p!=="undefined"&&p.error(G.result_)}},1)};
a.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var G=_.Qr.CustomEvent,p=_.Qr.Event,P=_.Qr.dispatchEvent;if(typeof P==="undefined")return!0;typeof G==="function"?G=new G("unhandledrejection",{cancelable:!0}):typeof p==="function"?G=new p("unhandledrejection",{cancelable:!0}):(G=_.Qr.document.createEvent("CustomEvent"),G.initCustomEvent("unhandledrejection",!1,!0,G));G.promise=this;G.reason=this.result_;return P(G)};
a.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var G=0;G<this.onSettledCallbacks_.length;++G)T.asyncExecute(this.onSettledCallbacks_[G]);this.onSettledCallbacks_=null}};
var T=new Q;a.prototype.settleSameAsPromise_=function(G){var p=this.createResolveAndReject_();G.callWhenSettled_(p.resolve,p.reject)};
a.prototype.settleSameAsThenable_=function(G,p){var P=this.createResolveAndReject_();try{G.call(p,P.resolve,P.reject)}catch(U){P.reject(U)}};
a.prototype.then=function(G,p){function P(l,J){return typeof l=="function"?function(n){try{U(l(n))}catch(t){L(t)}}:J}
var U,L,M=new a(function(l,J){U=l;L=J});
this.callWhenSettled_(P(G,U),P(p,L));return M};
a.prototype.catch=function(G){return this.then(void 0,G)};
a.prototype.callWhenSettled_=function(G,p){function P(){switch(U.state_){case 1:G(U.result_);break;case 2:p(U.result_);break;default:throw Error("o`"+U.state_);}}
var U=this;this.onSettledCallbacks_==null?T.asyncExecute(P):this.onSettledCallbacks_.push(P);this.isRejectionHandled_=!0};
a.resolve=b;a.reject=function(G){return new a(function(p,P){P(G)})};
a.race=function(G){return new a(function(p,P){for(var U=_.F(G),L=U.next();!L.done;L=U.next())b(L.value).callWhenSettled_(p,P)})};
a.all=function(G){var p=_.F(G),P=p.next();return P.done?b([]):new a(function(U,L){function M(n){return function(t){l[n]=t;J--;J==0&&U(l)}}
var l=[],J=0;do l.push(void 0),J++,b(P.value).callWhenSettled_(M(l.length-1),L),P=p.next();while(!P.done)})};
return a});
var bT=function(A,Q,b){if(A==null)throw new TypeError("p`"+b);if(Q instanceof RegExp)throw new TypeError("q`"+b);return A+""};
DN("String.prototype.startsWith",function(A){return A?A:function(Q,b){var f=bT(this,Q,"startsWith"),a=f.length,T=Q.length;b=Math.max(0,Math.min(b|0,f.length));for(var G=0;G<T&&b<a;)if(f[b++]!=Q[G++])return!1;return G>=T}});
DN("Object.setPrototypeOf",function(A){return A||$G});
DN("Symbol.dispose",function(A){return A?A:Symbol("r")});
DN("SuppressedError",function(A){function Q(b,f,a){if(!(this instanceof Q))return new Q(b,f,a);a=Error(a);"stack"in a&&(this.stack=a.stack);this.message=a.message;this.error=b;this.suppressed=f}
if(A)return A;_.O(Q,Error);Q.prototype.name="SuppressedError";return Q});
var E64=function(A,Q,b){A instanceof String&&(A=String(A));for(var f=A.length,a=0;a<f;a++){var T=A[a];if(Q.call(b,T,a,A))return{i:a,v:T}}return{i:-1,v:void 0}};
DN("Array.prototype.find",function(A){return A?A:function(Q,b){return E64(this,Q,b).v}});
DN("WeakMap",function(A){function Q(){}
function b(P){var U=typeof P;return U==="object"&&P!==null||U==="function"}
function f(P){if(!mU(P,T)){var U=new Q;VoJ(P,T,{value:U})}}
function a(P){var U=Object[P];U&&(Object[P]=function(L){if(L instanceof Q)return L;Object.isExtensible(L)&&f(L);return U(L)})}
if(function(){if(!A||!Object.seal)return!1;try{var P=Object.seal({}),U=Object.seal({}),L=new A([[P,2],[U,3]]);if(L.get(P)!=2||L.get(U)!=3)return!1;L.delete(P);L.set(U,4);return!L.has(P)&&L.get(U)==4}catch(M){return!1}}())return A;
var T="$jscomp_hidden_"+Math.random();a("freeze");a("preventExtensions");a("seal");var G=0,p=function(P){this.JSC$8710_id_=(G+=Math.random()+1).toString();if(P){P=_.F(P);for(var U;!(U=P.next()).done;)U=U.value,this.set(U[0],U[1])}};
p.prototype.set=function(P,U){if(!b(P))throw Error("s");f(P);if(!mU(P,T))throw Error("t`"+P);P[T][this.JSC$8710_id_]=U;return this};
p.prototype.get=function(P){return b(P)&&mU(P,T)?P[T][this.JSC$8710_id_]:void 0};
p.prototype.has=function(P){return b(P)&&mU(P,T)&&mU(P[T],this.JSC$8710_id_)};
p.prototype.delete=function(P){return b(P)&&mU(P,T)&&mU(P[T],this.JSC$8710_id_)?delete P[T][this.JSC$8710_id_]:!1};
return p});
DN("Map",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var p=Object.seal({x:4}),P=new A(_.F([[p,"s"]]));if(P.get(p)!="s"||P.size!=1||P.get({x:4})||P.set({x:4},"t")!=P||P.size!=2)return!1;var U=P.entries(),L=U.next();if(L.done||L.value[0]!=p||L.value[1]!="s")return!1;L=U.next();return L.done||L.value[0].x!=4||L.value[1]!="t"||!U.next().done?!1:!0}catch(M){return!1}}())return A;
var Q=new WeakMap,b=function(p){this[0]={};this[1]=T();this.size=0;if(p){p=_.F(p);for(var P;!(P=p.next()).done;)P=P.value,this.set(P[0],P[1])}};
b.prototype.set=function(p,P){p=p===0?0:p;var U=f(this,p);U.list||(U.list=this[0][U.id]=[]);U.entry?U.entry.value=P:(U.entry={next:this[1],previous:this[1].previous,head:this[1],key:p,value:P},U.list.push(U.entry),this[1].previous.next=U.entry,this[1].previous=U.entry,this.size++);return this};
b.prototype.delete=function(p){p=f(this,p);return p.entry&&p.list?(p.list.splice(p.index,1),p.list.length||delete this[0][p.id],p.entry.previous.next=p.entry.next,p.entry.next.previous=p.entry.previous,p.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(p){return!!f(this,p).entry};
b.prototype.get=function(p){return(p=f(this,p).entry)&&p.value};
b.prototype.entries=function(){return a(this,function(p){return[p.key,p.value]})};
b.prototype.keys=function(){return a(this,function(p){return p.key})};
b.prototype.values=function(){return a(this,function(p){return p.value})};
b.prototype.forEach=function(p,P){for(var U=this.entries(),L;!(L=U.next()).done;)L=L.value,p.call(P,L[1],L[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var f=function(p,P){var U=P&&typeof P;U=="object"||U=="function"?Q.has(P)?U=Q.get(P):(U=""+ ++G,Q.set(P,U)):U="p_"+P;var L=p[0][U];if(L&&mU(p[0],U))for(p=0;p<L.length;p++){var M=L[p];if(P!==P&&M.key!==M.key||P===M.key)return{id:U,list:L,index:p,entry:M}}return{id:U,list:L,index:-1,entry:void 0}},a=function(p,P){var U=p[1];
return n6i(function(){if(U){for(;U.head!=p[1];)U=U.previous;for(;U.next!=U.head;)return U=U.next,{done:!1,value:P(U)};U=null}return{done:!0,value:void 0}})},T=function(){var p={};
return p.previous=p.next=p.head=p},G=0;
return b});
DN("Set",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),f=new A(_.F([b]));if(!f.has(b)||f.size!=1||f.add(b)!=f||f.size!=1||f.add({x:4})!=f||f.size!=2)return!1;var a=f.entries(),T=a.next();if(T.done||T.value[0]!=b||T.value[1]!=b)return!1;T=a.next();return T.done||T.value[0]==b||T.value[0].x!=4||T.value[1]!=T.value[0]?!1:a.next().done}catch(G){return!1}}())return A;
var Q=function(b){this.JSC$8724_map_=new Map;if(b){b=_.F(b);for(var f;!(f=b.next()).done;)this.add(f.value)}this.size=this.JSC$8724_map_.size};
Q.prototype.add=function(b){b=b===0?0:b;this.JSC$8724_map_.set(b,b);this.size=this.JSC$8724_map_.size;return this};
Q.prototype.delete=function(b){b=this.JSC$8724_map_.delete(b);this.size=this.JSC$8724_map_.size;return b};
Q.prototype.clear=function(){this.JSC$8724_map_.clear();this.size=0};
Q.prototype.has=function(b){return this.JSC$8724_map_.has(b)};
Q.prototype.entries=function(){return this.JSC$8724_map_.entries()};
Q.prototype.values=function(){return this.JSC$8724_map_.values()};
Q.prototype.keys=Q.prototype.values;Q.prototype[Symbol.iterator]=Q.prototype.values;Q.prototype.forEach=function(b,f){var a=this;this.JSC$8724_map_.forEach(function(T){return b.call(f,T,T,a)})};
return Q});
DN("Math.log2",function(A){return A?A:function(Q){return Math.log(Q)/Math.LN2}});
DN("Object.values",function(A){return A?A:function(Q){var b=[],f;for(f in Q)mU(Q,f)&&b.push(Q[f]);return b}});
DN("Object.is",function(A){return A?A:function(Q,b){return Q===b?Q!==0||1/Q===1/b:Q!==Q&&b!==b}});
DN("Array.prototype.includes",function(A){return A?A:function(Q,b){var f=this;f instanceof String&&(f=String(f));var a=f.length;b=b||0;for(b<0&&(b=Math.max(b+a,0));b<a;b++){var T=f[b];if(T===Q||Object.is(T,Q))return!0}return!1}});
DN("String.prototype.includes",function(A){return A?A:function(Q,b){return bT(this,Q,"includes").indexOf(Q,b||0)!==-1}});
DN("Array.from",function(A){return A?A:function(Q,b,f){b=b!=null?b:function(p){return p};
var a=[],T=typeof Symbol!="undefined"&&Symbol.iterator&&Q[Symbol.iterator];if(typeof T=="function"){Q=T.call(Q);for(var G=0;!(T=Q.next()).done;)a.push(b.call(f,T.value,G++))}else for(T=Q.length,G=0;G<T;G++)a.push(b.call(f,Q[G],G));return a}});
DN("Object.entries",function(A){return A?A:function(Q){var b=[],f;for(f in Q)mU(Q,f)&&b.push([f,Q[f]]);return b}});
DN("Number.isFinite",function(A){return A?A:function(Q){return typeof Q!=="number"?!1:!isNaN(Q)&&Q!==Infinity&&Q!==-Infinity}});
DN("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
DN("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
DN("Number.isInteger",function(A){return A?A:function(Q){return Number.isFinite(Q)?Q===Math.floor(Q):!1}});
DN("Number.isSafeInteger",function(A){return A?A:function(Q){return Number.isInteger(Q)&&Math.abs(Q)<=Number.MAX_SAFE_INTEGER}});
DN("String.prototype.endsWith",function(A){return A?A:function(Q,b){var f=bT(this,Q,"endsWith");b===void 0&&(b=f.length);b=Math.max(0,Math.min(b|0,f.length));for(var a=Q.length;a>0&&b>0;)if(f[--b]!=Q[--a])return!1;return a<=0}});
var xKU=function(A,Q){A instanceof String&&(A+="");var b=0,f=!1,a={next:function(){if(!f&&b<A.length){var T=b++;return{value:Q(T,A[T]),done:!1}}f=!0;return{done:!0,value:void 0}}};
a[Symbol.iterator]=function(){return a};
return a};
DN("Array.prototype.entries",function(A){return A?A:function(){return xKU(this,function(Q,b){return[Q,b]})}});
DN("Math.trunc",function(A){return A?A:function(Q){Q=Number(Q);if(isNaN(Q)||Q===Infinity||Q===-Infinity||Q===0)return Q;var b=Math.floor(Math.abs(Q));return Q<0?-b:b}});
DN("Number.isNaN",function(A){return A?A:function(Q){return typeof Q==="number"&&isNaN(Q)}});
DN("Array.prototype.keys",function(A){return A?A:function(){return xKU(this,function(Q){return Q})}});
DN("Array.prototype.values",function(A){return A?A:function(){return xKU(this,function(Q,b){return b})}});
DN("Array.prototype.fill",function(A){return A?A:function(Q,b,f){var a=this.length||0;b<0&&(b=Math.max(0,a+b));if(f==null||f>a)f=a;f=Number(f);f<0&&(f=Math.max(0,a+f));for(b=Number(b||0);b<f;b++)this[b]=Q;return this}});
var fe=function(A){return A?A:Array.prototype.fill};
DN("Int8Array.prototype.fill",fe);DN("Uint8Array.prototype.fill",fe);DN("Uint8ClampedArray.prototype.fill",fe);DN("Int16Array.prototype.fill",fe);DN("Uint16Array.prototype.fill",fe);DN("Int32Array.prototype.fill",fe);DN("Uint32Array.prototype.fill",fe);DN("Float32Array.prototype.fill",fe);DN("Float64Array.prototype.fill",fe);
DN("Object.fromEntries",function(A){return A?A:function(Q){var b={};if(!(Symbol.iterator in Q))throw new TypeError("u`"+Q);Q=Q[Symbol.iterator].call(Q);for(var f=Q.next();!f.done;f=Q.next()){f=f.value;if(Object(f)!==f)throw new TypeError("v");b[f[0]]=f[1]}return b}});
DN("String.prototype.replaceAll",function(A){return A?A:function(Q,b){if(Q instanceof RegExp&&!Q.global)throw new TypeError("w");return Q instanceof RegExp?this.replace(Q,b):this.replace(new RegExp(String(Q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),b)}});
DN("Object.getOwnPropertySymbols",function(A){return A?A:function(){return[]}});
DN("String.prototype.repeat",function(A){return A?A:function(Q){var b=bT(this,null,"repeat");if(Q<0||Q>1342177279)throw new RangeError("x");Q|=0;for(var f="";Q;)if(Q&1&&(f+=b),Q>>>=1)b+=b;return f}});
DN("Array.prototype.findIndex",function(A){return A?A:function(Q,b){return E64(this,Q,b).i}});
DN("Array.prototype.flatMap",function(A){return A?A:function(Q,b){var f=[];Array.prototype.forEach.call(this,function(a,T){a=Q.call(b,a,T,this);Array.isArray(a)?f.push.apply(f,a):f.push(a)});
return f}});
DN("String.prototype.codePointAt",function(A){return A?A:function(Q){var b=bT(this,null,"codePointAt"),f=b.length;Q=Number(Q)||0;if(Q>=0&&Q<f){Q|=0;var a=b.charCodeAt(Q);if(a<55296||a>56319||Q+1===f)return a;Q=b.charCodeAt(Q+1);return Q<56320||Q>57343?a:(a-55296)*1024+Q+9216}}});
DN("String.fromCodePoint",function(A){return A?A:function(Q){for(var b="",f=0;f<arguments.length;f++){var a=Number(arguments[f]);if(a<0||a>1114111||a!==Math.floor(a))throw new RangeError("y`"+a);a<=65535?b+=String.fromCharCode(a):(a-=65536,b+=String.fromCharCode(a>>>10&1023|55296),b+=String.fromCharCode(a&1023|56320))}return b}});
DN("String.prototype.trimLeft",function(A){function Q(){return this.replace(/^[\s\xa0]+/,"")}
return A||Q});
DN("String.prototype.trimStart",function(A){return A||String.prototype.trimLeft});
DN("String.prototype.padStart",function(A){return A?A:function(Q,b){var f=bT(this,null,"padStart");Q-=f.length;b=b!==void 0?String(b):" ";return(Q>0&&b?b.repeat(Math.ceil(Q/b.length)).substring(0,Q):"")+f}});
DN("Promise.prototype.finally",function(A){return A?A:function(Q){return this.then(function(b){return Promise.resolve(Q()).then(function(){return b})},function(b){return Promise.resolve(Q()).then(function(){throw b;
})})}});
DN("Math.imul",function(A){return A?A:function(Q,b){Q=Number(Q);b=Number(b);var f=Q&65535,a=b&65535;return f*a+((Q>>>16&65535)*a+f*(b>>>16&65535)<<16>>>0)|0}});
DN("Object.hasOwn",function(A){return A?A:function(Q,b){return Object.prototype.hasOwnProperty.call(Q,b)}});
DN("Math.sign",function(A){return A?A:function(Q){Q=Number(Q);return Q===0||isNaN(Q)?Q:Q>0?1:-1}});
DN("Array.prototype.flat",function(A){return A?A:function(Q){Q=Q===void 0?1:Q;var b=[];Array.prototype.forEach.call(this,function(f){Array.isArray(f)&&Q>0?(f=Array.prototype.flat.call(f,Q-1),b.push.apply(b,f)):b.push(f)});
return b}});
DN("String.raw",function(A){return A?A:function(Q,b){if(Q==null)throw new TypeError("z");for(var f=Q.raw,a=f.length,T="",G=0;G<a;++G)T+=f[G],G+1<a&&G+1<arguments.length&&(T+=String(arguments[G+1]));return T}});
DN("Reflect.ownKeys",function(A){return A?A:function(Q){var b=[],f=Object.getOwnPropertyNames(Q);Q=Object.getOwnPropertySymbols(Q);for(var a=0;a<f.length;a++)(f[a].substring(0,14)=="jscomp_symbol_"?Q:b).push(f[a]);return b.concat(Q)}});
DN("Object.getOwnPropertyDescriptors",function(A){return A?A:function(Q){for(var b={},f=Reflect.ownKeys(Q),a=0;a<f.length;a++)b[f[a]]=Object.getOwnPropertyDescriptor(Q,f[a]);return b}});
DN("WeakSet",function(A){if(function(){if(!A||!Object.seal)return!1;try{var b=Object.seal({}),f=Object.seal({}),a=new A([b]);if(!a.has(b)||a.has(f))return!1;a.delete(b);a.add(f);return!a.has(b)&&a.has(f)}catch(T){return!1}}())return A;
var Q=function(b){this.JSC$8731_map_=new WeakMap;if(b){b=_.F(b);for(var f;!(f=b.next()).done;)this.add(f.value)}};
Q.prototype.add=function(b){this.JSC$8731_map_.set(b,!0);return this};
Q.prototype.has=function(b){return this.JSC$8731_map_.has(b)};
Q.prototype.delete=function(b){return this.JSC$8731_map_.delete(b)};
return Q});
DN("Promise.allSettled",function(A){function Q(f){return{status:"fulfilled",value:f}}
function b(f){return{status:"rejected",reason:f}}
return A?A:function(f){var a=this;f=Array.from(f,function(T){return a.resolve(T).then(Q,b)});
return a.all(f)}});
DN("Number.parseInt",function(A){return A||parseInt});
_._DumpException=window._DumpException||function(A){throw A;};
window._DumpException=_._DumpException;var cgi,aI,T0,dA,zri,w6F,uWW,Ziy,It,ygb;cgi=cgi||{};_.by=this||self;_.Al=function(A,Q,b){A=A.split(".");b=b||_.by;for(var f;A.length&&(f=A.shift());)A.length||Q===void 0?b[f]&&b[f]!==Object.prototype[f]?b=b[f]:b=b[f]={}:b[f]=Q};
aI=function(A,Q){var b=_.zV("WIZ_global_data.oxN3nb");A=b&&b[A];return A!=null?A:Q};
T0=_.by._F_toggles_default_kevlar_base||[];dA=function(){};
dA.get=function(){return null};
_.zV=function(A,Q){A=A.split(".");Q=Q||_.by;for(var b=0;b<A.length;b++)if(Q=Q[A[b]],Q==null)return null;return Q};
_.FY=function(A){A.instance_=void 0;A.getInstance=function(){return A.instance_?A.instance_:A.instance_=new A}};
_.uY=function(A){var Q=typeof A;return Q!="object"?Q:A?Array.isArray(A)?"array":Q:"null"};
_.ce=function(A){var Q=_.uY(A);return Q=="array"||Q=="object"&&typeof A.length=="number"};
_.ZU=function(A){var Q=typeof A;return Q=="object"&&A!=null||Q=="function"};
_.YC=function(A){return Object.prototype.hasOwnProperty.call(A,zri)&&A[zri]||(A[zri]=++w6F)};
zri="closure_uid_"+(Math.random()*1E9>>>0);w6F=0;uWW=function(A,Q,b){return A.call.apply(A.bind,arguments)};
Ziy=function(A,Q,b){if(!A)throw Error();if(arguments.length>2){var f=Array.prototype.slice.call(arguments,2);return function(){var a=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(a,f);return A.apply(Q,a)}}return function(){return A.apply(Q,arguments)}};
_.IL=function(A,Q,b){_.IL=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?uWW:Ziy;return _.IL.apply(null,arguments)};
_.Ol=function(A,Q){var b=Array.prototype.slice.call(arguments,1);return function(){var f=b.slice();f.push.apply(f,arguments);return A.apply(this,f)}};
_.G0=function(){return Date.now()};
It=function(A){return A};
_.BD=function(A,Q){function b(){}
b.prototype=Q.prototype;A.superClass_=Q.prototype;A.prototype=new b;A.prototype.constructor=A;A.base=function(f,a,T){for(var G=Array(arguments.length-2),p=2;p<arguments.length;p++)G[p-2]=arguments[p];return Q.prototype[a].apply(f,G)}};
ygb=function(A){return A};var YxW,DKY;_.E=function(A,Q,b,f){var a=arguments.length,T=a<3?Q:f===null?f=Object.getOwnPropertyDescriptor(Q,b):f,G;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")T=Reflect.decorate(A,Q,b,f);else for(var p=A.length-1;p>=0;p--)if(G=A[p])T=(a<3?G(T):a>3?G(Q,b,T):G(Q,b))||T;a>3&&T&&Object.defineProperty(Q,b,T)};
_.c=function(A,Q){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(A,Q)};
YxW=function(A,Q){if(Q!==null&&Q!==void 0){if(typeof Q!=="object"&&typeof Q!=="function")throw new TypeError("A");if(b===void 0){if(!Symbol.dispose)throw new TypeError("C");var b=Q[Symbol.dispose]}if(typeof b!=="function")throw new TypeError("D");A.stack.push({value:Q,dispose:b,async:!1})}return Q};
DKY=function(A){function Q(T){A.error=A.hasError?new SuppressedError(T,A.error,"An error was suppressed during disposal."):T;A.hasError=!0}
function b(){for(;f=A.stack.pop();)try{if(!f.async&&a===1)return a=0,A.stack.push(f),Promise.resolve().then(b);if(f.dispose){var T=f.dispose.call(f.value);if(f.async)return a|=2,Promise.resolve(T).then(b,function(G){Q(G);return b()})}else a|=1}catch(G){Q(G)}if(a===1)return A.hasError?Promise.reject(A.error):Promise.resolve();
if(A.hasError)throw A.error;}
var f,a=0;b()};_.BD(_.A4,Error);_.A4.prototype.name="CustomError";var $KC;var NjF=void 0,srC,mK6=typeof TextDecoder!=="undefined",fUX,bFY=typeof String.prototype.isWellFormed==="function",Q9X=typeof TextEncoder!=="undefined";var AJ4;_.nK=function(A){for(var Q=[],b=0,f=0;f<A.length;f++){var a=A.charCodeAt(f);a<128?Q[b++]=a:(a<2048?Q[b++]=a>>6|192:((a&64512)==55296&&f+1<A.length&&(A.charCodeAt(f+1)&64512)==56320?(a=65536+((a&1023)<<10)+(A.charCodeAt(++f)&1023),Q[b++]=a>>18|240,Q[b++]=a>>12&63|128):Q[b++]=a>>12|224,Q[b++]=a>>6&63|128),Q[b++]=a&63|128)}return Q};
AJ4=function(A){for(var Q=[],b=0,f=0;b<A.length;){var a=A[b++];if(a<128)Q[f++]=String.fromCharCode(a);else if(a>191&&a<224){var T=A[b++];Q[f++]=String.fromCharCode((a&31)<<6|T&63)}else if(a>239&&a<365){T=A[b++];var G=A[b++],p=A[b++];a=((a&7)<<18|(T&63)<<12|(G&63)<<6|p&63)-65536;Q[f++]=String.fromCharCode(55296+(a>>10));Q[f++]=String.fromCharCode(56320+(a&1023))}else T=A[b++],G=A[b++],Q[f++]=String.fromCharCode((a&15)<<12|(T&63)<<6|G&63)}return Q.join("")};var SA=String.prototype.trim?function(A){return A.trim()}:function(A){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(A)[1]},Qlb=/&/g,bmi=/</g,fji=/>/g,aj6=/"/g,T3i=/'/g,dVJ=/\x00/g,Foy=/[\x00&<>"']/;var pe=!!(T0[0]>>15&1),GEC=!!(T0[0]&1024),B3y=!!(T0[0]>>16&1),p0X=!!(T0[0]&8),PSC=!!(T0[0]&2),X0F=!!(T0[0]&4),SBC=!!(T0[0]&16),UV9=!!(T0[0]&128);var LoJ=aI(1,!0),KF=pe?B3y:aI(610401301,!1),MPb=pe?p0X:aI(772657768,!1),lji=pe?PSC:aI(513659523,!1),KoA=pe?GEC||!X0F:aI(568333945,LoJ),q6y=pe?SBC:aI(1331761403,!1),LlC=pe?GEC||!UV9:aI(748402147,LoJ);var J4,imW=_.by.navigator;J4=imW?imW.userAgentData||null:null;var y7;_.eA=function(A,Q){return Array.prototype.indexOf.call(A,Q,void 0)};
_.ZR=function(A,Q,b){Array.prototype.forEach.call(A,Q,b)};
_.PD=function(A,Q,b){return Array.prototype.filter.call(A,Q,b)};
_.Rk=function(A,Q,b){return Array.prototype.map.call(A,Q,b)};
y7=function(A,Q,b){return Array.prototype.some.call(A,Q,b)};
_.QZi=function(A,Q,b){return Array.prototype.every.call(A,Q,b)};var XY=function(A){XY[" "](A);return A};
XY[" "]=function(){};
var n5Y=function(A,Q){try{return XY(A[Q]),!0}catch(b){}return!1},M7F=function(A,Q,b,f){f=f?f(Q):Q;
return Object.prototype.hasOwnProperty.call(A,f)?A[f]:A[f]=b(Q)};var JJU,so,VPA,OmC,kE4,Ij4,m$J,HmJ,CSY,qB4,igF,tPA,rJX,e8b,h86,Woi;_.Jmy=function(){return _.by.navigator||null};
JJU=FJb();_.S1=GXA();so=VY("Edge");VPA=so||_.S1;_.U2=VY("Gecko")&&!(_.Xi(_.Mf(),"WebKit")&&!VY("Edge"))&&!(VY("Trident")||VY("MSIE"))&&!VY("Edge");_.Le=_.Xi(_.Mf(),"WebKit")&&!VY("Edge");OmC=_.Le&&VY("Mobile");_.nSW=_.lUW();kE4=_.KJy();Ij4=(o9()?J4.platform==="Linux":VY("Linux"))||_.iFA();m$J=_.LJ6();HmJ=MA6();CSY=VY("iPad");qB4=VY("iPod");_.oSi=_.t4();igF=_.Xi(_.Mf(),"KaiOS");tPA=function(){var A=_.by.document;return A?A.documentMode:void 0};
a:{var jlF="",R89=function(){var A=_.Mf();if(_.U2)return/rv:([^\);]+)(\)|;)/.exec(A);if(so)return/Edge\/([\d\.]+)/.exec(A);if(_.S1)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(A);if(_.Le)return/WebKit\/(\S+)/.exec(A);if(JJU)return/(?:Version)[ \/]?(\S+)/.exec(A)}();
R89&&(jlF=R89?R89[1]:"");if(_.S1){var gSb=tPA();if(gSb!=null&&gSb>parseFloat(jlF)){rJX=String(gSb);break a}}rJX=jlF}e8b=rJX;h86={};_.MP=function(A){return M7F(h86,A,function(){return _.LF(e8b,A)>=0})};
if(_.by.document&&_.S1){var vSF=tPA();Woi=vSF?vSF:parseInt(e8b,10)||void 0}else Woi=void 0;_.ESY=Woi;var JHW,V$Y,xV4;_.lT=CF();JHW=MA6()||VY("iPod");V$Y=VY("iPad");xV4=_.Py9();_.Ke=_.qf();_.vr=_.peA()&&!_.t4();var cJe,iT,c3i,aJb,w0X,z8C;cJe={};iT=null;c3i=_.U2||_.Le||typeof _.by.btoa=="function";_.Cs=function(A,Q){Q===void 0&&(Q=0);z8C();Q=cJe[Q];for(var b=Array(Math.floor(A.length/3)),f=Q[64]||"",a=0,T=0;a<A.length-2;a+=3){var G=A[a],p=A[a+1],P=A[a+2],U=Q[G>>2];G=Q[(G&3)<<4|p>>4];p=Q[(p&15)<<2|P>>6];P=Q[P&63];b[T++]=U+G+p+P}U=0;P=f;switch(A.length-a){case 2:U=A[a+1],P=Q[(U&15)<<2]||f;case 1:A=A[a],b[T]=Q[A>>2]+Q[(A&3)<<4|U>>4]+P+f}return b.join("")};
aJb=function(A){var Q="";w0X(A,function(b){Q+=String.fromCharCode(b)});
return Q};
_.zDe=function(A){var Q=[];w0X(A,function(b){Q.push(b)});
return Q};
_.$C=function(A){var Q=A.length,b=Q*3/4;b%3?b=Math.floor(b):_.Pe("=.",A[Q-1])&&(b=_.Pe("=.",A[Q-2])?b-2:b-1);var f=new Uint8Array(b),a=0;w0X(A,function(T){f[a++]=T});
return a!==b?f.subarray(0,a):f};
w0X=function(A,Q){function b(P){for(;f<A.length;){var U=A.charAt(f++),L=iT[U];if(L!=null)return L;if(!_.Be(U))throw Error("H`"+U);}return P}
z8C();for(var f=0;;){var a=b(-1),T=b(0),G=b(64),p=b(64);if(p===64&&a===-1)break;Q(a<<2|T>>4);G!=64&&(Q(T<<4&240|G>>2),p!=64&&Q(G<<6&192|p))}};
z8C=function(){if(!iT){iT={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Q=["+/=","+/","-_=","-_.","-_"],b=0;b<5;b++){var f=A.concat(Q[b].split(""));cJe[b]=f;for(var a=0;a<f.length;a++){var T=f[a];iT[T]===void 0&&(iT[T]=a)}}}};var uiY=typeof Uint8Array!=="undefined",R6y=!_.S1&&typeof btoa==="function",gC4=/[-_.]/g,r4C={"-":"+",_:"/",".":"="},Iy={};var Vp,Zmi;Vp=function(A,Q){if(Q!==Iy)throw Error("J");this.JSC$8761_value_=A;if(A!=null&&A.length===0)throw Error("I");};
_.C$=function(){return uf6||(uf6=new Vp(null,Iy))};
Zmi=function(A){return new Uint8Array(WlF(A)||0)};
Vp.prototype.isEmpty=function(){return this.JSC$8761_value_==null};
Vp.prototype.sizeBytes=function(){var A=WlF(this);return A?A.length:0};
var WlF=function(A){if(Iy!==Iy)throw Error("J");var Q=A.JSC$8761_value_;Q==null||uiY&&Q!=null&&Q instanceof Uint8Array||(typeof Q==="string"?Q=e6f(Q):(_.uY(Q),Q=null));return Q==null?Q:A.JSC$8761_value_=Q},uf6;var WJJ=void 0;var ay=typeof Symbol==="function"&&typeof Symbol()==="symbol",yJJ=Av("jas",void 0,!0),g1U=Av(void 0,"0di"),$q=Av(void 0,"1oa"),Hd=Av(void 0,Symbol()),N99=Av(void 0,"0ub"),mxY=Av(void 0,"0ubs"),lie=Av(void 0,"0ubsb"),lrC=Av(void 0,"0actk"),lO=Av("m_m","messagePrototypeMarker",!0),BxA=Av(void 0,"vps"),YLY=Av();var xfJ,ECy,EN,YBf;xfJ={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};ECy=Object.defineProperties;_.Tr=ay?yJJ:"internalArrayState";YBf=[];d9(YBf,7);EN=Object.freeze(YBf);var JM={},p$={},DVf=function(A,Q,b){this.iterable=A;this.mapper=Q;this.thisArg=b};
DVf.prototype.next=function(){var A=this.iterable.next();A.done||(A.value=this.mapper.call(this.thisArg,A.value));return A};
DVf.prototype[Symbol.iterator]=function(){return this};
var $V6=Object.freeze({}),tv={};_.N39=Ry(function(A){return A!==null&&A!==void 0});var NWi=Ry(function(A){return typeof A==="number"}),$f4=Ry(function(A){return typeof A==="string"}),mfJ=Ry(function(A){return typeof A==="boolean"}),slC=Ry(function(A){return A!=null&&typeof A==="object"&&typeof A.then==="function"}),wrJ=Ry(function(A){return typeof A==="function"}),b4=Ry(function(A){return!!A&&(typeof A==="object"||typeof A==="function")});var s99=typeof _.by.BigInt==="function"&&typeof _.by.BigInt(0)==="bigint";var qLb=Ry(function(A){return s99?A>=mVJ&&A<=AUC:A[0]==="-"?AvY(A,QCf):AvY(A,bLJ)}),QCf=Number.MIN_SAFE_INTEGER.toString(),mVJ=s99?BigInt(Number.MIN_SAFE_INTEGER):void 0,bLJ=Number.MAX_SAFE_INTEGER.toString(),AUC=s99?BigInt(Number.MAX_SAFE_INTEGER):void 0;var fSU=typeof Uint8Array.prototype.slice==="function",eW=0,hv=0,JsY;var at,Gn,ZK,Bd,PYA;at=typeof BigInt==="function"?BigInt.asIntN:void 0;_.ps=typeof BigInt==="function"?BigInt.asUintN:void 0;Gn=Number.isSafeInteger;ZK=Number.isFinite;Bd=Math.trunc;PYA=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var pdb={};var uLC={},aS6=function(){try{var A=function(){return ITF(Map,[],this.constructor)};
_.O(A,Map);XY(new A);return!1}catch(Q){return!0}}(),Jr=function(){this.JSC$8781_map_=new Map};
_.d=Jr.prototype;_.d.get=function(A){return this.JSC$8781_map_.get(A)};
_.d.set=function(A,Q){this.JSC$8781_map_.set(A,Q);this.size=this.JSC$8781_map_.size;return this};
_.d.delete=function(A){A=this.JSC$8781_map_.delete(A);this.size=this.JSC$8781_map_.size;return A};
_.d.clear=function(){this.JSC$8781_map_.clear();this.size=this.JSC$8781_map_.size};
_.d.has=function(A){return this.JSC$8781_map_.has(A)};
_.d.entries=function(){return this.JSC$8781_map_.entries()};
_.d.keys=function(){return this.JSC$8781_map_.keys()};
_.d.values=function(){return this.JSC$8781_map_.values()};
_.d.forEach=function(A,Q){return this.JSC$8781_map_.forEach(A,Q)};
Jr.prototype[Symbol.iterator]=function(){return this.entries()};
var ot=function(){if(aS6)return Object.setPrototypeOf(Jr.prototype,Map.prototype),Object.defineProperties(Jr.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Jr;var A=function(){return ITF(Map,[],this.constructor)};
_.O(A,Map);return A}(),Vx=function(A,Q,b,f){b=b===void 0?E1Y:b;
f=f===void 0?E1Y:f;var a=ot.call(this)||this;a.arrayState=A[_.Tr]|0;a.valueCtor=Q;a.keyToApi=b;a.valueToApi=a.valueCtor?cvi:f;for(var T=0;T<A.length;T++){var G=A[T],p=b(G[0],!1,!0),P=G[1];Q?P===void 0&&(P=null):P=f(G[1],!1,!0,void 0,void 0,a.arrayState);ot.prototype.set.call(a,p,P)}return a};
_.O(Vx,ot);var T1e=function(A){if(A.arrayState&2)throw Error("N");};
_.d=Vx.prototype;_.d.clear=function(){T1e(this);ot.prototype.clear.call(this)};
_.d.delete=function(A){T1e(this);return ot.prototype.delete.call(this,this.keyToApi(A,!0,!1))};
_.d.entries=function(){if(this.valueCtor){var A=ot.prototype.keys.call(this);A=new DVf(A,zNX,this)}else A=ot.prototype.entries.call(this);return A};
_.d.values=function(){if(this.valueCtor){var A=ot.prototype.keys.call(this);A=new DVf(A,Vx.prototype.get,this)}else A=ot.prototype.values.call(this);return A};
_.d.forEach=function(A,Q){this.valueCtor?ot.prototype.forEach.call(this,function(b,f,a){A.call(Q,a.get(f),f,a)}):ot.prototype.forEach.call(this,A,Q)};
_.d.set=function(A,Q){T1e(this);A=this.keyToApi(A,!0,!1);return A==null?this:Q==null?(ot.prototype.delete.call(this,A),this):ot.prototype.set.call(this,A,this.valueToApi(Q,!0,!0,this.valueCtor,!1,this.arrayState))};
_.d.has=function(A){return ot.prototype.has.call(this,this.keyToApi(A,!1,!1))};
_.d.get=function(A){A=this.keyToApi(A,!1,!1);var Q=ot.prototype.get.call(this,A);if(Q!==void 0){var b=this.valueCtor;return b?(b=this.valueToApi(Q,!1,!0,b,this.callToMutableOnAccess,this.arrayState),b!==Q&&ot.prototype.set.call(this,A,b),b):Q}};
Vx.prototype[Symbol.iterator]=function(){return this.entries()};
Vx.prototype.toJSON=void 0;var wMJ;var fr9=function(){},QtX=function(A,Q){for(var b in A)!isNaN(b)&&Q(A,+b,A[b])},ary=function(A){var Q=new fr9;
QtX(A,function(b,f,a){Q[f]=EL(a)});
Q.reviveUnknownFields=A.reviveUnknownFields;return Q},DxJ={reviveIntoImmutable:!0};var bsF;var POF,XdC;var dpY,Zr,lv,Ot,FBA,qP,Jq,G5i,B1C,j1,pHW,RI,hr,WD;dpY=_.g9(0);_.VF={};_.O2=function(A,Q,b,f,a){Q=Zr(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q,b,a);if(Q!==null||f&&A.noLegacyNull!==p$)return Q};
Zr=function(A,Q,b,f){if(Q===-1)return null;var a=Q+(b?0:-1),T=A.length-1;if(!(T<1+(b?0:-1))){if(a>=T){var G=A[T];if(G!=null&&typeof G==="object"&&G.constructor===Object){b=G[Q];var p=!0}else if(a===T)b=G;else return}else b=A[a];if(f&&b!=null){f=f(b);if(f==null)return f;if(!Object.is(f,b))return p?G[Q]=f:A[a]=f,f}return b}};
_.Gp=function(A,Q,b,f){eF(A);var a=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vd(a,a[_.Tr]|0,Q,b,f);return A};
_.ne=function(A,Q,b){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jtf(A,A[_.Tr]|0,Q,b)!==void 0};
_.kU=function(A,Q,b,f){var a=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jtf(a,a[_.Tr]|0,Q,Ot(A,f,b))!==void 0};
_.aL=function(A){return A===$V6?2:4};
_.II=function(A,Q){A=_.O2(A,Q,void 0,void 0,Hsi);return A==null?_.C$():A};
lv=function(A,Q,b,f){eF(A);var a=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=a[_.Tr]|0;if(f==null){var G=oqU(a);if(tFy(G,a,T,b)===Q)G.set(b,0);else return A}else T=rMU(a,T,b,Q);vd(a,T,Q,f);return A};
_.HD=function(A,Q,b,f){var a=A[_.Tr]|0,T=jW(a);a=rMU(A,a,b,Q,T);vd(A,a,Q,f,T)};
Ot=function(A,Q,b){return _.Ce(A,Q)===b?b:-1};
_.Ce=function(A,Q){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return tFy(oqU(A),A,void 0,Q,void 0)};
FBA=function(A,Q,b){var f=A[_.Tr]|0,a=jW(f),T=Zr(A,b,a);if(T!=null&&T[lO]===JM){if(!XL(T))return gx(T),T.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var G=T.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(T)&&(G=T);if(G){var p=G[_.Tr]|0;p&2&&(G=jF(G,p))}G=UNi(G,Q,!0);G!==T&&vd(A,f,b,G,a);return G};
_.dO=function(A,Q,b,f){var a=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=a[_.Tr]|0;Q=jtf(a,T,Q,b,f);if(Q==null)return Q;T=a[_.Tr]|0;if(!XL(A,T)){var G=xxY(Q);G!==Q&&(gx(A)&&(a=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=a[_.Tr]|0),Q=G,T=vd(a,T,b,Q,f),Wd(a,T))}return Q};
_.fK=function(A,Q,b,f){var a=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return R7A(A,a,a[_.Tr]|0,Q,b,f,!1,!0)};
_.Lp=function(A,Q,b,f){b=gqe(b);_.Gp(A,Q,b,f);b&&!XL(b)&&Wd(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
_.Ms=function(A,Q,b,f){f=gqe(f);lv(A,Q,b,f);f&&!XL(f)&&Wd(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
qP=function(A,Q,b){eF(A);var f=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=f[_.Tr]|0;if(b==null)return vd(f,a,Q),A;for(var T=b===EN?7:b[_.Tr]|0,G=T,p=uO(T),P=p||Object.isFrozen(b),U=!0,L=!0,M=0;M<b.length;M++){var l=b[M];p||(l=XL(l),U&&(U=!l),L&&(L=l))}p||(T=U?13:5,T=L?T&-4097:T|4096);P&&T===G||(b=EL(b),G=0,T=xq(T,a));T!==G&&d9(b,T);a=vd(f,a,Q,b);2&T||!(4096&T||16&T)||Wd(f,a);return A};
Jq=function(A,Q,b,f){h7C(A,Q,b,f);return A};
G5i=function(A,Q,b){h7C(A,Q,oI,void 0,b,1,!0);return A};
_.tr=function(A,Q,b){A=_.O2(A,Q,void 0,b);Q=typeof A;A=A==null?A:Q==="bigint"?_.g9((0,_.ps)(64,A)):_.yp(A)?Q==="string"?_.CY4(A):_.IKC(A):void 0;return A};
_.rA=function(A,Q){var b=b===void 0?!1:b;var f;return(f=_.pMy(_.O2(A,Q)))!=null?f:b};
_.Tz=function(A,Q,b){b=b===void 0?0:b;var f;return(f=_.AM(_.O2(A,Q)))!=null?f:b};
B1C=function(A,Q){var b=b===void 0?0:b;A=_.SLY(_.O2(A,Q));return A!=null?A:b};
j1=function(A,Q,b){b=b===void 0?dpY:b;var f;return(f=_.rvi(_.O2(A,Q)))!=null?f:b};
pHW=function(A){var Q=Q===void 0?dpY:Q;var b;return(b=_.tr(A,23))!=null?b:Q};
RI=function(A,Q){var b=b===void 0?0:b;var f;return(f=_.O2(A,Q,void 0,void 0,_.GrU))!=null?f:b};
_.gA=function(A,Q,b,f){b=b===void 0?"":b;var a;return(a=_.MN(_.O2(A,Q,f)))!=null?a:b};
_.e1=function(A,Q){var b=b===void 0?0:b;var f;return(f=_.Nx(_.O2(A,Q)))!=null?f:b};
hr=function(A,Q){var b=b===void 0?"0":b;A=tWb(_.O2(A,Q),!0);return A!=null?A:b};
WD=function(A,Q,b){return _.gA(A,Ot(A,b,Q))};
_.vD=function(A,Q,b,f){return _.dO(A,Q,Ot(A,f,b),void 0)};
_.Mu=function(A,Q){return _.MN(_.O2(A,Q,void 0,_.VF))};
_.Bo=function(A,Q,b){return _.Gp(A,Q,B9X(b))};
_.Ri=function(A,Q,b){return _.Dr(A,Q,B9X(b),!1)};
_.E2=function(A,Q,b){return _.Gp(A,Q,_.mj(b))};
_.kk=function(A,Q,b){return _.Gp(A,Q,dx(b))};
_.nt=function(A,Q,b){return _.Gp(A,Q,SF(b))};
_.Nl=function(A,Q,b,f){return _.Dr(A,Q,SF(b),"",f)};
_.FH=function(A,Q,b){return _.Gp(A,Q,b==null?b:_.DK(b))};
_.xU=function(A,Q,b){return _.Dr(A,Q,b==null?b:_.DK(b),0)};var NN=function(A,Q,b){this.buffer=A;if(b&&!Q)throw Error();this.JSC$8793_isImmutable=Q};var PQW=function(A,Q,b,f){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8796_start_=0;this.init(A,Q,b,f)},cD,SeU,Upe,Ms9,dsY,XHb;
_.d=PQW.prototype;_.d.init=function(A,Q,b,f){var a=f===void 0?{}:f;f=a.aliasBytesFields===void 0?!1:a.aliasBytesFields;a=a.treatNewDataAsImmutable===void 0?!1:a.treatNewDataAsImmutable;this.aliasBytesFields=f;this.treatNewDataAsImmutable=a;A&&(A=vqF(A,this.treatNewDataAsImmutable),this.bytes_=A.buffer,this.bytesAreImmutable_=A.JSC$8793_isImmutable,this.JSC$8796_start_=Q||0,this.end_=b!==void 0?this.JSC$8796_start_+b:this.bytes_.length,this.cursor_=this.JSC$8796_start_)};
_.d.free=function(){this.clear();XHb.length<100&&XHb.push(this)};
_.d.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8796_start_=0;this.aliasBytesFields=!1};
_.d.reset=function(){this.cursor_=this.JSC$8796_start_};
_.d.atEnd=function(){return this.cursor_==this.end_};
_.z0=function(A,Q){var b=0,f=0,a=0,T=A.bytes_,G=A.cursor_;do{var p=T[G++];b|=(p&127)<<a;a+=7}while(a<32&&p&128);if(a>32)for(f|=(p&127)>>4,a=3;a<32&&p&128;a+=7)p=T[G++],f|=(p&127)<<a;cD(A,G);if(!(p&128))return Q(b>>>0,f>>>0);throw Error();};
cD=function(A,Q){A.cursor_=Q;if(Q>A.end_)throw Error();};
_.wA=function(A){var Q=A.bytes_,b=A.cursor_,f=Q[b++],a=f&127;if(f&128&&(f=Q[b++],a|=(f&127)<<7,f&128&&(f=Q[b++],a|=(f&127)<<14,f&128&&(f=Q[b++],a|=(f&127)<<21,f&128&&(f=Q[b++],a|=f<<28,f&128&&Q[b++]&128&&Q[b++]&128&&Q[b++]&128&&Q[b++]&128&&Q[b++]&128)))))throw Error();cD(A,b);return a};
_.uT=function(A){var Q=A.bytes_,b=A.cursor_,f=Q[b],a=Q[b+1],T=Q[b+2];Q=Q[b+3];cD(A,A.cursor_+4);return(f<<0|a<<8|T<<16|Q<<24)>>>0};
SeU=function(A){var Q=_.uT(A);A=_.uT(A);return fKf(Q,A)};
Upe=function(A){var Q=_.uT(A),b=_.uT(A);A=(b>>31)*2+1;var f=b>>>20&2047;Q=4294967296*(b&1048575)+Q;return f==2047?Q?NaN:A*Infinity:f==0?A*4.9E-324*Q:A*Math.pow(2,f-1075)*(Q+4503599627370496)};
_.LBA=function(A){for(var Q=0,b=A.cursor_,f=b+10,a=A.bytes_;b<f;){var T=a[b++];Q|=T;if((T&128)===0)return cD(A,b),!!(Q&127)}throw Error();};
Ms9=function(A,Q){if(Q<0)throw Error();var b=A.cursor_;Q=b+Q;if(Q>A.end_)throw Error();A.cursor_=Q;return b};
dsY=function(A,Q){if(Q==0)return _.C$();var b=Ms9(A,Q);A.aliasBytesFields&&A.bytesAreImmutable_?b=A.bytes_.subarray(b,b+Q):(A=A.bytes_,Q=b+Q,b=b===Q?new Uint8Array(0):fSU?A.slice(b,Q):new Uint8Array(A.subarray(b,Q)));return b.length==0?_.C$():new Vp(b,Iy)};
XHb=[];var KB6=function(A,Q,b,f){if(XHb.length){var a=XHb.pop();a.init(A,Q,b,f);A=a}else A=new PQW(A,Q,b,f);this.decoder_=A;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;lS4(this,f)},lS4=function(A,Q){Q=Q===void 0?{}:Q;
A.discardUnknownFields=Q.discardUnknownFields===void 0?!1:Q.discardUnknownFields},B$y=function(A,Q,b,f){if(iLy.length){var a=iLy.pop();
lS4(a,f);a.decoder_.init(A,Q,b,f);return a}return new KB6(A,Q,b,f)},fiy,T$X,JU6,iLy;
KB6.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;iLy.length<100&&iLy.push(this)};
KB6.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
fiy=function(A){if(A.decoder_.atEnd())return!1;A.fieldCursor_=A.decoder_.cursor_;var Q=_.wA(A.decoder_)>>>0,b=Q>>>3;Q&=7;if(!(Q>=0&&Q<=5))throw Error();if(b<1)throw Error();A.nextField_=b;A.nextWireType_=Q;return!0};
T$X=function(A){switch(A.nextWireType_){case 0:A.nextWireType_!=0?T$X(A):_.LBA(A.decoder_);break;case 1:A=A.decoder_;cD(A,A.cursor_+8);break;case 2:if(A.nextWireType_!=2)T$X(A);else{var Q=_.wA(A.decoder_)>>>0;A=A.decoder_;cD(A,A.cursor_+Q)}break;case 5:A=A.decoder_;cD(A,A.cursor_+4);break;case 3:Q=A.nextField_;do{if(!fiy(A))throw Error();if(A.nextWireType_==4){if(A.nextField_!=Q)throw Error();break}T$X(A)}while(1);break;default:throw Error();}};
JU6=function(A,Q,b){var f=A.decoder_.end_,a=_.wA(A.decoder_)>>>0;a=A.decoder_.cursor_+a;var T=a-f;T<=0&&(A.decoder_.end_=a,b(Q,A,void 0,void 0,void 0),T=a-A.decoder_.cursor_);if(T)throw Error();A.decoder_.cursor_=a;A.decoder_.end_=f};
_.Vs9=function(A){var Q=_.wA(A.decoder_)>>>0;A=A.decoder_;var b=Ms9(A,Q);A=A.bytes_;if(mK6){var f=A,a;(a=srC)||(a=srC=new TextDecoder("utf-8",{fatal:!0}));Q=b+Q;f=b===0&&Q===f.length?f:f.subarray(b,Q);try{var T=a.decode(f)}catch(U){if(NjF===void 0){try{a.decode(new Uint8Array([128]))}catch(L){}try{a.decode(new Uint8Array([97])),NjF=!0}catch(L){NjF=!1}}!NjF&&(srC=void 0);throw U;}}else{T=b;Q=T+Q;b=[];for(var G=null,p,P;T<Q;)p=A[T++],p<128?b.push(p):p<224?T>=Q?QY():(P=A[T++],p<194||(P&192)!==128?(T--,
QY()):b.push((p&31)<<6|P&63)):p<240?T>=Q-1?QY():(P=A[T++],(P&192)!==128||p===224&&P<160||p===237&&P>=160||((a=A[T++])&192)!==128?(T--,QY()):b.push((p&15)<<12|(P&63)<<6|a&63)):p<=244?T>=Q-2?QY():(P=A[T++],(P&192)!==128||(p<<28)+(P-144)>>30!==0||((a=A[T++])&192)!==128||((f=A[T++])&192)!==128?(T--,QY()):(p=(p&7)<<18|(P&63)<<12|(a&63)<<6|f&63,p-=65536,b.push((p>>10&1023)+55296,(p&1023)+56320))):QY(),b.length>=8192&&(G=A4y(G,b),b.length=0);T=A4y(G,b)}return T};
_.OLF=function(A){var Q=_.wA(A.decoder_)>>>0;return dsY(A.decoder_,Q)};
_.nMb=function(A,Q,b){var f=_.wA(A.decoder_)>>>0;for(f=A.decoder_.cursor_+f;A.decoder_.cursor_<f;)b.push(Q(A.decoder_))};
iLy=[];var k5e=function(A,Q){this.JSC$8803_lo=A>>>0;this.JSC$8803_hi=Q>>>0},HLb=function(A){if(!A)return ISC||(ISC=new k5e(0,0));
if(!/^\d+$/.test(A))return null;FjY(A);return new k5e(eW,hv)},ISC,kYY=function(A,Q){this.JSC$8805_lo=A>>>0;
this.JSC$8805_hi=Q>>>0},Opf=function(A){if(!A)return CQ9||(CQ9=new kYY(0,0));
if(!/^-?\d+$/.test(A))return null;FjY(A);return new kYY(eW,hv)},CQ9;var Ze=function(){this.JSC$8807_buffer_=[]},n8C,qef;
Ze.prototype.length=function(){return this.JSC$8807_buffer_.length};
Ze.prototype.end=function(){var A=this.JSC$8807_buffer_;this.JSC$8807_buffer_=[];return A};
n8C=function(A,Q,b){for(;b>0||Q>127;)A.JSC$8807_buffer_.push(Q&127|128),Q=(Q>>>7|b<<25)>>>0,b>>>=7;A.JSC$8807_buffer_.push(Q)};
qef=function(A,Q){for(;Q>127;)A.JSC$8807_buffer_.push(Q&127|128),Q>>>=7;A.JSC$8807_buffer_.push(Q)};
_.IiX=function(A,Q){if(Q>=0)qef(A,Q);else{for(var b=0;b<9;b++)A.JSC$8807_buffer_.push(Q&127|128),Q>>=7;A.JSC$8807_buffer_.push(1)}};
Ze.prototype.writeUint8=function(A){this.JSC$8807_buffer_.push(A>>>0&255)};
_.Bh=function(A,Q){A.JSC$8807_buffer_.push(Q>>>0&255);A.JSC$8807_buffer_.push(Q>>>8&255);A.JSC$8807_buffer_.push(Q>>>16&255);A.JSC$8807_buffer_.push(Q>>>24&255)};
Ze.prototype.writeInt8=function(A){this.JSC$8807_buffer_.push(A>>>0&255)};var oMi,aT,Cnf,tdY;oMi=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Ze};
aT=function(A,Q){Q.length!==0&&(A.blocks_.push(Q),A.totalLength_+=Q.length)};
_.z7A=function(A,Q){_.GY(A,Q,2);Q=A.encoder_.end();aT(A,Q);Q.push(A.totalLength_);return Q};
_.wdU=function(A,Q){var b=Q.pop();for(b=A.totalLength_+A.encoder_.length()-b;b>127;)Q.push(b&127|128),b>>>=7,A.totalLength_++;Q.push(b);A.totalLength_++};
_.GY=function(A,Q,b){qef(A.encoder_,Q*8+b)};
Cnf=function(A,Q,b){if(b!=null){switch(typeof b){case "string":HLb(b)}_.GY(A,Q,1);switch(typeof b){case "number":A=A.encoder_;QyA(b);_.Bh(A,eW);_.Bh(A,hv);break;case "bigint":b=BigInt.asUintN(64,b);b=new k5e(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));A=A.encoder_;Q=b.JSC$8803_hi;_.Bh(A,b.JSC$8803_lo);_.Bh(A,Q);break;default:b=HLb(b),A=A.encoder_,Q=b.JSC$8803_hi,_.Bh(A,b.JSC$8803_lo),_.Bh(A,Q)}}};
tdY=function(A,Q,b){_.GY(A,Q,2);qef(A.encoder_,b.length);aT(A,A.encoder_.end());aT(A,b)};var Eqi,jCi,RH4,hHJ,WBY;Eqi=sN();_.ts6=sN();_.rUy=sN();jCi=sN();RH4=sN();_.gMy=sN();_.YU=sN();_.eHi=sN();hHJ=sN();WBY=sN();_.vMJ=sN();_.EM6=sN();_.fp=function(A,Q,b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A,Q,b)};
_.fp.prototype.toJSON=function(){return tM(this)};
_.fp.prototype.serialize=function(A){return JSON.stringify(tM(this,A))};
var v8e=function(A,Q){if(Q==null||Q=="")return new A;Q=JSON.parse(Q);if(!Array.isArray(Q))throw Error("V");return new A(weA(Q))};
_.fp.prototype.getExtension=function(A){syW(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A.fieldIndex);$xi(this,A.fieldIndex);return A.ctor?A.isRepeated?A.getExtensionFn(this,A.ctor,A.fieldIndex,_.aL(),A.JSC$8818_hasMessageId):A.getExtensionFn(this,A.ctor,A.fieldIndex,A.JSC$8818_hasMessageId):A.isRepeated?A.getExtensionFn(this,A.fieldIndex,_.aL(),A.JSC$8818_hasMessageId):A.getExtensionFn(this,A.fieldIndex,A.defaultValue,A.JSC$8818_hasMessageId)};
_.fp.prototype.clone=function(){var A=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=A[_.Tr]|0;return Os4(this,A,Q)?VFJ(this,A,!0):new this.constructor(jF(A,Q,!1))};
_.fp.prototype[lO]=JM;_.fp.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var As=function(A,Q,b){this.$$binaryReaderFn=A;this.$$binaryWriterFn=Q;A=It(Eqi);this.$$isMsg=!!A&&b===A||!1},DNU=xNF(function(A,Q,b,f,a){if(A.nextWireType_!==2)return!1;
JU6(A,FBA(Q,f,b),a);return!0},uK4),$NY=xNF(function(A,Q,b,f,a){if(A.nextWireType_!==2)return!1;
JU6(A,FBA(Q,f,b),a);return!0},uK4),PnU=Symbol(),mNW=Symbol(),bp6=Symbol(),UsJ=Symbol(),FwA=Symbol(),ZsW,yMJ;var exy,xpb,cUX,zH4,wH9,u9A,ZLW,yUX,Ye4,DpX,$py,sCi,mpY,QVi,bqA;exy=function(A,Q){var b=new oMi;Lwe(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,QV(PnU,phF,XhJ,Q));aT(b,b.encoder_.end());A=new Uint8Array(b.totalLength_);Q=b.blocks_;for(var f=Q.length,a=0,T=0;T<f;T++){var G=Q[T];A.set(G,a);a+=G.length}b.blocks_=[A];return A};
xpb=_.TY(function(A,Q,b){if(A.nextWireType_!==1)return!1;_.d$(Q,b,Upe(A.decoder_));return!0},VdF,WBY);
cUX=_.TY(function(A,Q,b,f){if(A.nextWireType_!==1)return!1;_.HD(Q,b,f,Upe(A.decoder_));return!0},VdF,WBY);
zH4=_.TY(function(A,Q,b,f){if(A.nextWireType_!==5)return!1;var a=_.uT(A.decoder_);A=(a>>31)*2+1;var T=a>>>23&255;a&=8388607;_.HD(Q,b,f,T==255?a?NaN:A*Infinity:T==0?A*1.401298464324817E-45*a:A*Math.pow(2,T-150)*(a+8388608));return!0},function(A,Q,b){Q=_.GrU(Q);
Q!=null&&(_.GY(A,b,5),A=A.encoder_,b=JsY||(JsY=new DataView(new ArrayBuffer(8))),b.setFloat32(0,+Q,!0),hv=0,eW=b.getUint32(0,!0),_.Bh(A,eW))},hHJ);
_.De=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;_.d$(Q,b,_.z0(A.decoder_,aKA));return!0},_.pp,_.YU);
wH9=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;A=_.z0(A.decoder_,aKA);_.d$(Q,b,A===0?void 0:A);return!0},_.pp,_.YU);
u9A=_.TY(function(A,Q,b,f){if(A.nextWireType_!==0)return!1;_.HD(Q,b,f,_.z0(A.decoder_,aKA));return!0},_.pp,_.YU);
_.$U=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;_.d$(Q,b,_.wA(A.decoder_));return!0},Hp4,jCi);
ZLW=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;A=_.wA(A.decoder_);_.d$(Q,b,A===0?void 0:A);return!0},Hp4,jCi);
yUX=_.TY(function(A,Q,b,f){if(A.nextWireType_!==0)return!1;_.HD(Q,b,f,_.wA(A.decoder_));return!0},Hp4,jCi);
Ye4=_.TY(function(A,Q,b){if(A.nextWireType_!==1)return!1;_.d$(Q,b,SeU(A.decoder_));return!0},_.q$C,_.eHi);
DpX=_.ipW(function(A,Q,b){if(A.nextWireType_!==1&&A.nextWireType_!==2)return!1;Q=_.qNe(Q,Q[_.Tr]|0,b);A.nextWireType_==2?_.nMb(A,SeU,Q):Q.push(SeU(A.decoder_));return!0},function(A,Q,b){Q=_.Kwb(RNX,Q,!1);
if(Q!=null)for(var f=0;f<Q.length;f++)Cnf(A,b,Q[f])},_.eHi);
_.NP=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;_.d$(Q,b,_.LBA(A.decoder_));return!0},_.o8y,_.ts6);
$py=_.TY(function(A,Q,b,f){if(A.nextWireType_!==0)return!1;_.HD(Q,b,f,_.LBA(A.decoder_));return!0},_.o8y,_.ts6);
_.s2=_.TY(function(A,Q,b){if(A.nextWireType_!==2)return!1;_.d$(Q,b,_.Vs9(A));return!0},_.rsb,_.rUy);
_.N1X=_.TY(function(A,Q,b,f){if(A.nextWireType_!==2)return!1;_.HD(Q,b,f,_.Vs9(A));return!0},_.rsb,_.rUy);
sCi=_.ipW(function(A,Q,b){if(A.nextWireType_!==2)return!1;A=_.Vs9(A);_.qNe(Q,Q[_.Tr]|0,b).push(A);return!0},function(A,Q,b){Q=_.Kwb(_.MN,Q,!0);
if(Q!=null)for(var f=0;f<Q.length;f++){var a=A,T=b,G=Q[f];G!=null&&tdY(a,T,aU6(G))}},_.rUy);
mpY=void 0;mpY=mpY===void 0?Eqi:mpY;_.m_=new As(function(A,Q,b,f,a){if(A.nextWireType_!==2)return!1;f=UNi(void 0,f,!0);_.qNe(Q,Q[_.Tr]|0,b).push(f);JU6(A,f,a);return!0},function(A,Q,b,f,a){if(Array.isArray(Q))for(var T=0;T<Q.length;T++)jTJ(A,Q[T],b,f,a)},mpY);
_.Ad=xNF(function(A,Q,b,f,a,T){if(A.nextWireType_!==2)return!1;var G=Q[_.Tr]|0;rMU(Q,G,T,b,jW(G));Q=FBA(Q,f,b);JU6(A,Q,a);return!0},jTJ);
_.AL9=_.TY(function(A,Q,b){if(A.nextWireType_!==2)return!1;_.d$(Q,b,_.OLF(A));return!0},_.RxY,_.vMJ);
QVi=_.TY(function(A,Q,b,f){if(A.nextWireType_!==2)return!1;_.HD(Q,b,f,_.OLF(A));return!0},_.RxY,_.vMJ);
bqA=_.TY(function(A,Q,b,f){if(A.nextWireType_!==0)return!1;_.HD(Q,b,f,_.wA(A.decoder_)>>>0);return!0},function(A,Q,b){Q=_.SLY(Q);
Q!=null&&Q!=null&&(_.GY(A,b,0),qef(A.encoder_,Q))},RH4);
_.QH=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;_.d$(Q,b,_.wA(A.decoder_));return!0},_.g8A,_.EM6);var Tc4=function(){var A=fz9,Q=az9;this.fieldIndex=175237375;this.ctor=Q;this.isRepeated=0;this.getExtensionFn=_.dO;this.defaultValue=void 0;this.JSC$8818_hasMessageId=A.messageId!=null?tv:void 0};
Tc4.prototype.register=function(){XY(this)};var dcF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(dcF,_.fp);var F8A=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(F8A,_.fp);var csW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(csW,_.fp);var G6C=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(G6C,_.fp);var BcU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(BcU,_.fp);var p$A=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(p$A,_.fp);var Pqi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Pqi,_.fp);Pqi.prototype.getData=function(){return _.II(this,2)};var X$C=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(X$C,_.fp);var SHf=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(SHf,_.fp);SHf.prototype.getStyle=function(){return _.dO(this,dcF,1)};var U$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(U$,_.fp);U$.prototype.getPayloadCase=function(){return _.Ce(this,Kp)};
U$.prototype.getStyle=function(){return _.vD(this,SHf,6,Kp)};
var Uc4=function(){var A=new U$,Q=new BcU;return _.Ms(A,7,Kp,Q)},L8C=function(){var A=new U$,Q=new p$A;
return _.Ms(A,8,Kp,Q)},Kp=[1,
2,3,4,5,6,7,8];var M9X=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(M9X,_.fp);var lzX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(lzX,_.fp);var K8b=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(K8b,_.fp);var iqF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(iqF,_.fp);var JLb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(JLb,_.fp);var V94=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(V94,_.fp);var Oqy=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Oqy,_.fp);var nPA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(nPA,_.fp);nPA.prototype.getData=function(){return _.II(this,2)};var k6b=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(k6b,_.fp);var xsi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(xsi,_.fp);xsi.prototype.getPayloadCase=function(){return _.Ce(this,bG)};
var bG=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var fw=function(A,Q){A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.code=Q===void 0?2:Q};
_.O(fw,Error);var IzX=Promise;var Hqi=function(A){this.channelPromise=A};
Hqi.prototype.send=function(A,Q,b){this.channelPromise.then(function(f){f.send(A,Q,b)})};var Cqi=function(A,Q){this.data=A;this.channel=Q};
Cqi.prototype.reply=function(A,Q,b){this.channel.send(A,Q,b)};var qHU=function(A){this.JSC$8884_port_=A};
qHU.prototype.send=function(A,Q,b){b=b===void 0?[]:b;var f=new MessageChannel;oPY(f.port1,Q);this.JSC$8884_port_.postMessage(A,[f.port2].concat(b))};
var t9i=function(A,Q){oPY(A,Q);return new qHU(A)},oPY=function(A,Q){Q&&(A.onmessage=function(b){Q(new Cqi(b.data,t9i(b.ports[0])))})};var rLb=function(A){this.verifier_=A};
rLb.prototype.verify=function(A){return this.verifier_(A)};
var jVU=function(A){var Q=Object.create(null);(typeof A==="string"?[A]:A).forEach(function(b){if(b==="null")throw Error("X");Q[b]=!0});
return function(b){return Q[b]===!0}};_.RAJ=function(){if(!_.by.addEventListener||!Object.defineProperty)return!1;var A=!1,Q=Object.defineProperty({},"passive",{get:function(){A=!0}});
try{var b=function(){};
_.by.addEventListener("test",b,Q);_.by.removeEventListener("test",b,Q)}catch(f){}return A}();var gPy;_.aB=function(A){var Q=A.destination;var b=A.iframe;var f=A.origin;var a=A.channelName===void 0?"ZNWN1d":A.channelName;var T=A.onMessage===void 0?void 0:A.onMessage;A=A.onEstablished===void 0?void 0:A.onEstablished;return gPy({destination:Q,getSource:function(){return b.contentWindow},
originVerifier:f instanceof rLb?f:typeof f==="function"?new rLb(f):new rLb(jVU(f)),channelName:a,onMessage:T,onEstablished:A})};
gPy=function(A){var Q=A.destination;var b=A.getSource;var f=A.originVerifier;var a=A.token===void 0?void 0:A.token;var T=A.channelName;var G=A.onMessage===void 0?void 0:A.onMessage;var p=A.onEstablished===void 0?void 0:A.onEstablished;return new Hqi(new IzX(function(P,U){var L=function(M){M.source&&M.source===b()&&f.verify(M.origin)&&(M.data.n||M.data)===T&&(Q.removeEventListener("message",L,!1),a&&M.data.t!==a?U(Error("Y`"+T+"`"+a+"`"+M.data.t)):(P(t9i(M.ports[0],G)),p&&p(M)))};
Q.addEventListener("message",L,!1)}))};var eAe=function(A){try{A()}catch(Q){fF(Q)}};var W8W=function(A){var Q=this;var b=A.getMessageType;var f=A.onUnregisteredMessage===void 0?function(){}:A.onUnregisteredMessage;
var a=A.onBeforeRegisteredMessage===void 0?function(){}:A.onBeforeRegisteredMessage;
A=A.onAfterRegisteredMessage===void 0?function(){}:A.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=b;this.onUnregisteredMessage_=f;this.onBeforeRegisteredMessage_=a;this.onAfterRegisteredMessage_=A;this.onMessage=function(T){return hAf(Q,T)}};
W8W.prototype.register=function(A,Q){this.registry_.set(A,Q);return this};
var hAf=function(A,Q){var b=A.getMessageType_(Q.data),f=A.registry_.get(b);f?(eAe(function(){return A.onBeforeRegisteredMessage_(Q,b)}),eAe(function(){return f(Q)}),eAe(function(){return A.onAfterRegisteredMessage_(Q,b)})):eAe(function(){return A.onUnregisteredMessage_(Q,b)})};var vPY=function(A){this.JSC$8901_channel_=A},xcX,cLf;
vPY.prototype.send=function(A,Q,b){this.JSC$8901_channel_.send(tM(A),Q,b)};
_.EP9=function(A,Q){return function(b){var f=new A(b.data);return Q(new Cqi(f,b.channel))}};
xcX=function(A){return function(Q){return A(new Cqi(Q.data,new vPY(Q.channel)))}};
cLf=function(A,Q){return xcX(_.EP9(A,Q))};var zAC=function(A,Q,b,f){this.registry=A;this.delegate=Q;this.receiveMessageConstructor=b;this.createInitMessage=f;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},E8X=function(A){var Q=new W8W({getMessageType:A.getPayloadCase});
return new zAC(Q,new vPY(_.aB({iframe:A.child,destination:window,origin:A.origin,channelName:A.channelName,onMessage:cLf(A.receiveMessageConstructor,Q.onMessage)})),A.receiveMessageConstructor,A.createInitMessage)},w$X=function(A,Q){A.createInitMessage=Q};
zAC.prototype.send=function(A){if(!this.initialised)throw new fw("Attempted to send a message before initialisation.");this.delegate.send(A)};
var uOC=function(A,Q){return _.B(function(b){if(!A.initialised)throw new fw("Attempted to send a message before initialisation.");return b.return(new Promise(function(f){A.delegate.send(Q,cLf(A.receiveMessageConstructor,f))}))})};
zAC.prototype.init=function(){var A=this;return _.B(function(Q){if(A.initialised)throw new fw("Attempted to initialise twice. The SDK can only be initialised once.");if(A.createInitMessage!==void 0){var b=A.delegate,f=b.send,a=A.createInitMessage;var T=new F8A;var G=[].concat(_.ri(A.features));T=_.Yq(T,1,G,_.DK);f.call(b,a.call(A,T))}A.initialised=!0;_.Oi(Q)})};
var TN=function(A,Q){if(A.initialised)throw new fw('Attempted to set up API "'+Q+'" after initialisation. All APIs must be set up before initialising the SDK.');A.features.add(Q);return A.registry};
_.Qr.Object.defineProperties(zAC.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var ZqJ=function(A){this.channel=A;this.registered=!1};
ZqJ.prototype.update=function(A){if(this.channel.isInitialised){if(!this.registered)throw new fw("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var Q=new U$;var b=new G6C;b=_.Bo(b,1,A);Q=_.Ms(Q,2,Kp,b);this.channel.send(Q)}else this.register();this.JSC$8915_audioEnabled=A};
ZqJ.prototype.register=function(){TN(this.channel,1);this.registered=!0};
ZqJ.prototype.isAudioEnabled=function(){return this.JSC$8915_audioEnabled};var yLU=function(A){this.channel=A};
_.d=yLU.prototype;_.d.onFirstFrameReady=function(A){TN(this.channel,2).register(11,function(Q){Q=_.vD(Q.data,M9X,11,bG);if(!Q)throw new fw("Unexpectedly nonexistent GameFirstFrameReadyEvent");A(_.gA(Q,1))})};
_.d.onReady=function(A){TN(this.channel,2).register(4,function(Q){Q=_.vD(Q.data,K8b,4,bG);if(!Q)throw new fw("Unexpectedly nonexistent GameReadyEvent");A(_.gA(Q,1))})};
_.d.onLevelComplete=function(A){TN(this.channel,2).register(5,function(Q){Q=_.vD(Q.data,iqF,5,bG);if(!Q)throw new fw("Unexpectedly nonexistent LevelCompleteEvent");A(_.gA(Q,1),_.Tz(Q,2))})};
_.d.onGameOver=function(A){TN(this.channel,2).register(6,function(Q){Q=_.vD(Q.data,lzX,6,bG);if(!Q)throw new fw("Unexpectedly nonexistent GameOverEvent");A(_.gA(Q,1))})};
_.d.pause=function(){var A=this;if(!this.channel.isInitialised)return TN(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new fw("Using unregistered Game Feature: pause.");var Q=Uc4();return new Promise(function(b){return _.B(function(f){if(f.nextAddress==1)return f.yield(uOC(A.channel,Q),2);b();_.Oi(f)})})};
_.d.resume=function(){var A=this;if(!this.channel.isInitialised)return TN(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new fw("Using unregistered Game Feature: resume.");var Q=L8C();return new Promise(function(b){return _.B(function(f){if(f.nextAddress==1)return f.yield(uOC(A.channel,Q),2);b();_.Oi(f)})})};var YHf=function(A){this.channel=A};
YHf.prototype.onReady=function(A){TN(this.channel,5).register(8,function(Q){if(!_.vD(Q.data,JLb,8,bG))throw new fw("Unexpectedly nonexistent PageReadyEvent");A()})};var DcU=function(A){this.channel=A};
DcU.prototype.onChange=function(A){TN(this.channel,3).register(7,function(Q){Q=_.vD(Q.data,V94,7,bG);if(!Q)throw new fw("Unexpectedly nonexistent ScoreEvent");A(_.gA(Q,1),_.Tz(Q,2))})};var $cy={load:function(){throw new fw("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new fw("Storage used, but storage.onSave() listener not set!");}},Nc6=function(A){this.channel=A;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},sVe=function(A){TN(A.channel,4).register(2,$cy.load).register(3,$cy.save);
A.initialSetupDone=!0};
Nc6.prototype.onLoad=function(A){this.initialSetupDone||sVe(this);this.loadRegistered||(this.loadRegistered=!0,TN(this.channel,4).register(2,function(Q){var b,f,a;return _.B(function(T){if(T.nextAddress==1){b=_.vD(Q.data,Oqy,2,bG);if(!b)throw new fw("Unexpectedly nonexistent StorageLoad");f=_.gA(b,1);return T.yield(A(f),2)}a=T.yieldResult;var G=Q.reply,p=new U$;var P=new Pqi;P=_.nt(P,1,f);P=_.Gp(P,2,_.qx(a,!1));p=_.Ms(p,3,Kp,P);G.call(Q,p);_.Oi(T)})}))};
Nc6.prototype.onSave=function(A){this.initialSetupDone||sVe(this);this.saveRegistered||(this.saveRegistered=!0,TN(this.channel,4).register(3,function(Q){var b,f,a;return _.B(function(T){if(T.nextAddress==1){b=_.vD(Q.data,nPA,3,bG);if(!b)throw new fw("Unexpectedly nonexistent StorageSave");f=_.gA(b,1);a=Zmi(b.getData());return T.yield(A(f,a),2)}var G=Q.reply,p=new U$;var P=new X$C;P=_.nt(P,1,f);p=_.Ms(p,4,Kp,P);G.call(Q,p);_.Oi(T)})}))};var mcW=function(A){this.channel=A};
mcW.prototype.update=function(A){if(!this.channel.features.has(6))throw new fw("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var Q=new U$,b=new SHf;A=_.Lp(b,1,A);Q=_.Ms(Q,6,Kp,A);this.channel.send(Q)};
mcW.prototype.register=function(){TN(this.channel,6)};var A4Y=function(A){this.channel=A;this.userActivityLoggingIntervalMs=0};
A4Y.prototype.onUserActivity=function(A,Q){this.userActivityLoggingIntervalMs=Q;TN(this.channel,7).register(9,function(b){if(!_.vD(b.data,k6b,9,bG))throw new fw("Unexpectedly nonexistent ClickEvent");A()})};var Q9r=function(A){var Q=this;this.channel=A;this.init=this.channel.init.bind(this.channel);this.page=new YHf(this.channel);this.game=new yLU(this.channel);this.audio=new ZqJ(this.channel);this.score=new DcU(this.channel);this.storage=new Nc6(this.channel);this.style=new mcW(this.channel);this.userActivity=new A4Y(this.channel);w$X(this.channel,function(b){var f=new csW;b=_.Lp(f,1,b);b=_.E2(b,3,Q.userActivity.userActivityLoggingIntervalMs);f=Q.audio.isAudioEnabled();f!==void 0&&_.Bo(b,2,f);f=new U$;
return _.Ms(f,5,Kp,b)})};var bFp=function(){this.timedFunctionContext=0};
bFp.prototype.timeExecution=function(A,Q){var b=this;return function(){var f=_.E$.apply(0,arguments);b.timedFunctionContext=A;return Q.apply(null,_.ri(f))}};var fUr=function(){var A={};this.priorityTasks=(A[3]=[],A[2]=[],A[1]=[],A);this.isFlushing=!1},M1=function(A,Q,b){var f=aUN(A,b);
A.priorityTasks[b].push(Q);f&&A.priorityTasks[b].length===1&&A.flush()},aUN=function(A,Q){return Object.keys(A.priorityTasks).map(function(b){return Number(b)}).filter(function(b){return!isNaN(b)&&b>Q}).every(function(b){return A.priorityTasks[b].length===0})};
fUr.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(A){return A.length>0});)TW1(this,3),TW1(this,2),TW1(this,1)}catch(A){throw Object.values(this.priorityTasks).forEach(function(Q){return void Q.splice(0,Q.length)}),A;
}finally{this.isFlushing=!1}}};
var TW1=function(A,Q){for(;aUN(A,Q)&&A.priorityTasks[Q].length>0;)A.priorityTasks[Q][0](),A.priorityTasks[Q].shift()};
_.Qr.Object.defineProperties(fUr.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(A){return A.length>0})}}});var $s9={};var df1=globalThis.trustedTypes,whA=df1,ZpF;var np=function(A){this.privateDoNotAccessOrElseWrappedResourceUrl=A};
np.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var FJL,GXW,BWp,peW,Pyy,Xep,SbK,UfM;FJL=_.sC([""]);GXW=Nr(["\x00"],["\\0"]);BWp=Nr(["\n"],["\\n"]);peW=Nr(["\x00"],["\\u0000"]);Pyy=_.sC([""]);Xep=Nr(["\x00"],["\\0"]);SbK=Nr(["\n"],["\\n"]);UfM=Nr(["\x00"],["\\u0000"]);_.LJN=Y$9(function(A){return A(FJL)})||Y$9(function(A){return A(GXW)})||Y$9(function(A){return A(BWp)})||Y$9(function(A){return A(peW)});
_.MAN=_.Hh(Pyy)&&_.Hh(Xep)&&_.Hh(SbK)&&_.Hh(UfM);var ed;_.Cp=function(A,Q){this.privateDoNotAccessOrElseWrappedUrl=Q};
_.Cp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.lU9=qs("about:blank");ed=qs("about:invalid#zClosurez");var N$b=function(A){this.isValid=A},KJY=new N$b(function(A){return/^[^:]*([/?#]|$)/.test(A)}),iFW=RT("data"),J49=RT("http"),VAj=RT("https"),OFy=RT("ftp"),nCL=RT("mailto"),kXM=RT("intent"),IUL=RT("vnd.youtube"),sTX=[iFW,
J49,VAj,nCL,OFy,KJY],AoF=O$(function(){return typeof URL==="function"}),HFM=["data:",
"http:","https:","mailto:","ftp:"],bNA=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var zY=function(A){this.privateDoNotAccessOrElseWrappedHtml=A};
zY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var SSi=O$(function(){return new zY(df1?df1.emptyHTML:"")});var CyM={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"},aFX=function(A,Q){var b=Error.call(this,A+" cannot be used with intent "+CyM[Q]);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=A;this.intent=Q;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.O(aFX,Error);_.$8=function(A){this.privateDoNotAccessOrElseWrappedScript=A};
_.$8.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var GOX=function(A){this.privateDoNotAccessOrElseWrappedAttributePrefix=A};
GOX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var BiW="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var aD=function(A){this.privateDoNotAccessOrElseWrappedStyleSheet=A};
aD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var UIe=function(A){var Q=_.zV("window.location.href");A==null&&(A='Unknown Error of type "null/undefined"');if(typeof A==="string")return{message:A,name:"Unknown error",lineNumber:"Not available",fileName:Q,stack:"Not available"};var b=!1;try{var f=A.lineNumber||A.line||"Not available"}catch(G){f="Not available",b=!0}try{var a=A.fileName||A.filename||A.sourceURL||_.by.$googDebugFname||Q}catch(G){a="Not available",b=!0}Q=qby(A);if(!(!b&&A.lineNumber&&A.fileName&&A.stack&&A.message&&A.name)){b=A.message;
if(b==null){if(A.constructor&&A.constructor instanceof Function){if(A.constructor.name)b=A.constructor.name;else if(b=A.constructor,dh[b])b=dh[b];else{b=String(b);if(!dh[b]){var T=/function\s+([^\(]+)/m.exec(b);dh[b]=T?T[1]:"[Anonymous]"}b=dh[b]}b='Unknown Error of type "'+b+'"'}else b="Unknown Error of unknown type";typeof A.toString==="function"&&Object.prototype.toString!==A.toString&&(b+=": "+A.toString())}return{message:b,name:A.name||"UnknownError",lineNumber:f,fileName:a,stack:Q||"Not available"}}return{message:A.message,
name:A.name,lineNumber:A.lineNumber,fileName:A.fileName,stack:Q}},qby=function(A,Q){Q||(Q={});
Q[oC1(A)]=!0;var b=A.stack||"",f=A.cause;f&&!Q[oC1(f)]&&(b+="\nCaused by: ",f.stack&&f.stack.indexOf(f.toString())==0||(b+=typeof f==="string"?f:f.message+"\n"),b+=qby(f,Q));A=A.errors;if(Array.isArray(A)){f=1;var a;for(a=0;a<A.length&&!(f>4);a++)Q[oC1(A[a])]||(b+="\nInner error "+f++ +": ",A[a].stack&&A[a].stack.indexOf(A[a].toString())==0||(b+=typeof A[a]==="string"?A[a]:A[a].message+"\n"),b+=qby(A[a],Q));a<A.length&&(b+="\n... "+(A.length-a)+" more inner errors")}return b},oC1=function(A){var Q=
"";
typeof A.toString==="function"&&(Q=""+A);return Q+A.stack},dh={};var tAy,Qb,lJ,j9y,R6Y,r41,x$,Zy,e6x;tAy=function(A,Q){for(var b=A.split("%s"),f="",a=Array.prototype.slice.call(arguments,1);a.length&&b.length>1;)f+=b.shift()+a.shift();return f+b.join("%s")};
_.ud=function(A){return encodeURIComponent(String(A))};
Qb=function(A){return decodeURIComponent(A.replace(/\+/g," "))};
lJ=function(A){Foy.test(A)&&(A.indexOf("&")!=-1&&(A=A.replace(Qlb,"&amp;")),A.indexOf("<")!=-1&&(A=A.replace(bmi,"&lt;")),A.indexOf(">")!=-1&&(A=A.replace(fji,"&gt;")),A.indexOf('"')!=-1&&(A=A.replace(aj6,"&quot;")),A.indexOf("'")!=-1&&(A=A.replace(T3i,"&#39;")),A.indexOf("\x00")!=-1&&(A=A.replace(dVJ,"&#0;")));return A};
j9y=function(A){var Q={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var b=_.by.document.createElement("div");return A.replace(r41,function(f,a){var T=Q[f];if(T)return T;a.charAt(0)=="#"&&(a=Number("0"+a.slice(1)),isNaN(a)||(T=String.fromCharCode(a)));T||(_.Ao(b,w$(f+" ")),T=b.firstChild.nodeValue.slice(0,-1));return Q[f]=T})};
R6Y=function(A){return A.replace(/&([^;]+);/g,function(Q,b){switch(b){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return b.charAt(0)!="#"||(b=Number("0"+b.slice(1)),isNaN(b))?Q:String.fromCharCode(b)}})};
r41=/&([^;\s<&]+);?/g;_.hV9=function(A){return String(A).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.gCv=String.prototype.repeat?function(A,Q){return A.repeat(Q)}:function(A,Q){return Array(Q+1).join(A)};
_.FC=function(A,Q){if(!Number.isFinite(A))return String(A);A=String(A);var b=A.indexOf(".");b===-1&&(b=A.length);var f=A[0]==="-"?"-":"";f&&(A=A.substring(1));return f+(0,_.gCv)("0",Math.max(0,Q-b))+A};
x$=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.G0()).toString(36)};
Zy=function(A){for(var Q=0,b=0;b<A.length;++b)Q=31*Q+A.charCodeAt(b)>>>0;return Q};
_.Ov=function(A){return String(A).replace(/\-([a-z])/g,function(Q,b){return b.toUpperCase()})};
_.Vr=function(A){return String(A).replace(/([A-Z])/g,"-$1").toLowerCase()};
e6x=function(A){return A.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(Q,b,f){return b+f.toUpperCase()})};var h6Y=function(){this.names=new Map};
h6Y.prototype.getName=function(A){var Q=this.names.get(A);if(Q)return Q;var b;Q=(b=A.description)!=null?b:x$();this.names.set(A,Q);return Q};var WJj=function(A){var Q=Error.call(this,A?A.length+" errors occurred during unsubscription:\n"+A.map(function(b,f){return f+1+") "+b.toString()}).join("\n  "):"");
this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.errors=A;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.O(WJj,Error);var di=function(A){this.initialTeardown=A;this.closed=!1;this._teardowns=this._parentage=null};
_.d=di.prototype;
_.d.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this._parentage;if(Array.isArray(A))for(var Q=_.F(A),b=Q.next();!b.done;b=Q.next())b.value.remove(this);else A==null||A.remove(this);Q=this.initialTeardown;if(TO(Q))try{Q()}catch(T){var f=T instanceof WJj?T.errors:[T]}var a=this._teardowns;if(a)for(this._teardowns=null,Q=_.F(a),b=Q.next();!b.done;b=Q.next()){b=b.value;try{TO(b)?b():b.unsubscribe()}catch(T){b=void 0,f=(b=f)!=null?b:[],T instanceof WJj?f=[].concat(_.ri(f),_.ri(T.errors)):
f.push(T)}}if(f)throw new WJj(f);}};
_.d.add=function(A){if(A&&A!==this)if(this.closed)TO(A)?A():A.unsubscribe();else{if(A instanceof di){if(A.closed||A._hasParent(this))return;A._addParent(this)}var Q;(this._teardowns=(Q=this._teardowns)!=null?Q:[]).push(A)}};
_.d._hasParent=function(A){var Q=this._parentage;return Q===A||Array.isArray(Q)&&Q.includes(A)};
_.d._addParent=function(A){var Q=this._parentage;this._parentage=Array.isArray(Q)?(Q.push(A),Q):Q?[Q,A]:A};
_.d._removeParent=function(A){var Q=this._parentage;Q===A?this._parentage=null:Array.isArray(Q)&&XaJ(Q,A)};
_.d.remove=function(A){var Q=this._teardowns;Q&&XaJ(Q,A);A instanceof di&&A._removeParent(this)};
var vCj=new di;vCj.closed=!0;di.JSC$9011_EMPTY=vCj;var ULC=function(){setTimeout.apply(null,_.ri(_.E$.apply(0,arguments)))};var GN=function(A){di.call(this);this.JSC$9016_isStopped=!1;this.destination=A instanceof GN?A:new Bk(!A||TO(A)?{next:A!=null?A:void 0}:A);Sii(A)&&A.add(this)};
_.O(GN,di);GN.JSC$9011_EMPTY=di.JSC$9011_EMPTY;GN.create=function(A,Q,b){return new pw(A,Q,b)};
_.d=GN.prototype;_.d.next=function(A){this.JSC$9016_isStopped||this._next(A)};
_.d.error=function(A){this.JSC$9016_isStopped||(this.JSC$9016_isStopped=!0,this._error(A))};
_.d.complete=function(){this.JSC$9016_isStopped||(this.JSC$9016_isStopped=!0,this._complete())};
_.d.unsubscribe=function(){this.closed||(this.JSC$9016_isStopped=!0,di.prototype.unsubscribe.call(this))};
_.d._next=function(A){this.destination.next(A)};
_.d._error=function(A){this.destination.error(A);this.unsubscribe()};
_.d._complete=function(){this.destination.complete();this.unsubscribe()};
var Bk=function(A){this.partialObserver=A};
Bk.prototype.next=function(A){var Q=this.partialObserver;if(Q.next)try{Q.next(A)}catch(b){GO(b)}};
Bk.prototype.error=function(A){var Q=this.partialObserver;if(Q.error)try{Q.error(A)}catch(b){GO(b)}else GO(A)};
Bk.prototype.complete=function(){var A=this.partialObserver;if(A.complete)try{A.complete()}catch(Q){GO(Q)}};
var pw=function(A,Q,b){GN.call(this);var f;TO(A)||!A?f={next:A!=null?A:void 0,error:Q!=null?Q:void 0,complete:b!=null?b:void 0}:f=A;this.destination=new Bk(f)};
_.O(pw,GN);pw.JSC$9011_EMPTY=GN.JSC$9011_EMPTY;pw.create=GN.create;var XT=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Pa=function(A){A&&(this._subscribe=A)};
_.d=Pa.prototype;_.d.lift=function(A){var Q=new Pa;Q.source=this;Q.operator=A;return Q};
_.d.subscribe=function(A,Q,b){A=A&&A instanceof GN||A&&TO(A.next)&&TO(A.error)&&TO(A.complete)&&Sii(A)?A:new pw(A,Q,b);Q=this.operator;b=this.source;A.add(Q?Q.call(A,b):b?this._subscribe(A):this._trySubscribe(A));return A};
_.d._trySubscribe=function(A){try{return this._subscribe(A)}catch(Q){A.error(Q)}};
_.d.forEach=function(A,Q){var b=this;Q=MxJ(Q);return new Q(function(f,a){var T=b.subscribe(function(G){try{A(G)}catch(p){a(p),T==null||T.unsubscribe()}},a,f)})};
_.d._subscribe=function(A){var Q;return(Q=this.source)==null?void 0:Q.subscribe(A)};
Pa.prototype[XT]=function(){return this};
Pa.prototype.pipe=function(){var A=_.E$.apply(0,arguments);return A.length?Ly4(A)(this):this};
Pa.create=function(A){return new Pa(A)};var ECY=function(){var A=Error.call(this,"object unsubscribed");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.O(ECY,Error);var Pl=function(){this.observers=[];this.hasError=this.JSC$9032_isStopped=this.closed=!1;this.thrownError=null};
_.O(Pl,Pa);_.d=Pl.prototype;_.d.lift=function(A){var Q=new Pk(this,this);Q.operator=A;return Q};
_.d._throwIfClosed=function(){if(this.closed)throw new ECY;};
_.d.next=function(A){this._throwIfClosed();if(!this.JSC$9032_isStopped){var Q=this.observers.slice();Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b.value.next(A)}};
_.d.error=function(A){this._throwIfClosed();if(!this.JSC$9032_isStopped){this.hasError=this.JSC$9032_isStopped=!0;this.thrownError=A;for(var Q=this.observers;Q.length;)Q.shift().error(A)}};
_.d.complete=function(){this._throwIfClosed();if(!this.JSC$9032_isStopped){this.JSC$9032_isStopped=!0;for(var A=this.observers;A.length;)A.shift().complete()}};
_.d.unsubscribe=function(){this.JSC$9032_isStopped=this.closed=!0;this.observers=null};
_.d._trySubscribe=function(A){this._throwIfClosed();return Pa.prototype._trySubscribe.call(this,A)};
_.d._subscribe=function(A){this._throwIfClosed();this._checkFinalizedStatuses(A);return this._innerSubscribe(A)};
_.d._innerSubscribe=function(A){var Q=this,b=this.JSC$9032_isStopped,f=this.observers;return this.hasError||b?di.JSC$9011_EMPTY:(f.push(A),new di(function(){return XaJ(Q.observers,A)}))};
_.d._checkFinalizedStatuses=function(A){var Q=this.thrownError,b=this.JSC$9032_isStopped;this.hasError?A.error(Q):b&&A.complete()};
Pl.create=function(A,Q){return new Pk(A,Q)};
var Pk=function(A,Q){Pl.call(this);this.destination=A;this.source=Q};
_.O(Pk,Pl);Pk.create=Pl.create;Pk.prototype.next=function(A){var Q,b;(Q=this.destination)==null||(b=Q.next)==null||b.call(Q,A)};
Pk.prototype.error=function(A){var Q,b;(Q=this.destination)==null||(b=Q.error)==null||b.call(Q,A)};
Pk.prototype.complete=function(){var A,Q;(A=this.destination)==null||(Q=A.complete)==null||Q.call(A)};
Pk.prototype._subscribe=function(A){var Q,b;return(b=(Q=this.source)==null?void 0:Q.subscribe(A))!=null?b:di.JSC$9011_EMPTY};var zH=function(A){Pl.call(this);this._value=A};
_.O(zH,Pl);zH.create=Pl.create;zH.prototype._subscribe=function(A){var Q=Pl.prototype._subscribe.call(this,A);!Q.closed&&A.next(this._value);return Q};
zH.prototype.getValue=function(){var A=this.thrownError,Q=this._value;if(this.hasError)throw A;this._throwIfClosed();return Q};
zH.prototype.next=function(A){Pl.prototype.next.call(this,this._value=A)};
_.Qr.Object.defineProperties(zH.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var ho=new Pa(function(A){return A.complete()});var JoU=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var IFb=function(A){return A&&typeof A.length==="number"&&typeof A!=="function"};var xfj={now:function(){return(xfj.delegate||Date).now()},
delegate:void 0};var my=function(A,Q,b){A=A===void 0?Infinity:A;Q=Q===void 0?Infinity:Q;b=b===void 0?xfj:b;Pl.call(this);this.bufferSize=A;this.windowTime=Q;this.timestampProvider=b;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=Q===Infinity;this.bufferSize=Math.max(1,A);this.windowTime=Math.max(1,Q)};
_.O(my,Pl);my.create=Pl.create;my.prototype.next=function(A){var Q=this.buffer,b=this.infiniteTimeWindow,f=this.timestampProvider,a=this.windowTime;this.JSC$9032_isStopped||(Q.push(A),!b&&Q.push(f.now()+a));c4W(this);Pl.prototype.next.call(this,A)};
my.prototype._subscribe=function(A){this._throwIfClosed();c4W(this);for(var Q=this._innerSubscribe(A),b=this.infiniteTimeWindow,f=this.buffer.slice(),a=0;a<f.length&&!A.closed;a+=b?1:2)A.next(f[a]);this._checkFinalizedStatuses(A);return Q};
var c4W=function(A){var Q=A.bufferSize,b=A.timestampProvider,f=A.buffer;A=A.infiniteTimeWindow;var a=(A?1:2)*Q;Q<Infinity&&a<f.length&&f.splice(0,f.length-a);if(!A){Q=b.now();b=0;for(A=1;A<f.length&&f[A]<=Q;A+=2)b=A;b&&f.splice(0,b+1)}};var weW=function(A,Q){Q=Q===void 0?z6L:Q;this.schedulerActionCtor=A;this.now=Q};
weW.prototype.schedule=function(A,Q,b){Q=Q===void 0?0:Q;return(new this.schedulerActionCtor(this,A)).schedule(b,Q)};
var z6L=xfj.now;var l0i=function(){var A=Error.call(this,"no elements in sequence");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.O(l0i,Error);var qL=function(A,Q,b,f,a){GN.call(this,A);this.onUnsubscribe=a;Q&&(this._next=function(T){try{Q(T)}catch(G){this.destination.error(G)}});
b&&(this._error=function(T){try{b(T)}catch(G){this.destination.error(G)}this.unsubscribe()});
f&&(this._complete=function(){try{f()}catch(T){this.destination.error(T)}this.unsubscribe()})};
_.O(qL,GN);qL.JSC$9011_EMPTY=GN.JSC$9011_EMPTY;qL.create=GN.create;qL.prototype.unsubscribe=function(){var A;this.closed||(A=this.onUnsubscribe)!=null&&A.call(this);GN.prototype.unsubscribe.call(this)};var NL=function(A,Q){this.source=A;this.subjectFactory=Q;this._subject=null;this._refCount=0;this._connection=null};
_.O(NL,Pa);NL.create=Pa.create;NL.prototype._subscribe=function(A){return uip(this).subscribe(A)};
var uip=function(A){var Q=A._subject;if(!Q||Q.JSC$9032_isStopped)A._subject=A.subjectFactory();return A._subject};
NL.prototype._teardown=function(){this._refCount=0;var A=this._connection;this._subject=this._connection=null;A==null||A.unsubscribe()};
NL.prototype.connect=function(){var A=this,Q=this._connection;if(!Q){Q=this._connection=new di;var b=uip(this);Q.add(this.source.subscribe(new qL(b,void 0,function(f){A._teardown();b.error(f)},function(){A._teardown();
b.complete()},function(){return A._teardown()})));
Q.closed&&(this._connection=null,Q=di.JSC$9011_EMPTY)}return Q};var WyY=Array.isArray;var Emy=Array.isArray,ZF$=Object,xLF=ZF$.getPrototypeOf,coe=ZF$.prototype,zZY=ZF$.keys;var RD=function(A,Q,b){GN.call(this,A);this._next=Q;this.shouldComplete=b};
_.O(RD,GN);RD.JSC$9011_EMPTY=GN.JSC$9011_EMPTY;RD.create=GN.create;RD.prototype._complete=function(){this.shouldComplete()?GN.prototype._complete.call(this):this.unsubscribe()};var sD4=["addListener","removeListener"],NiJ=["addEventListener","removeEventListener"],A3Y=["on","off"];var SE=function(){di.call(this)};
_.O(SE,di);SE.JSC$9011_EMPTY=di.JSC$9011_EMPTY;SE.prototype.schedule=function(){return this};var y41=function(A,Q){return setInterval.apply(null,[A,Q].concat(_.ri(_.E$.apply(2,arguments))))};var UJ=function(A,Q){di.call(this);this.scheduler=A;this.work=Q;this.pending=!1};
_.O(UJ,SE);UJ.JSC$9011_EMPTY=SE.JSC$9011_EMPTY;UJ.prototype.schedule=function(A,Q){Q=Q===void 0?0:Q;if(this.closed)return this;this.state=A;A=this.id;var b=this.scheduler;A!=null&&(this.id=Yb1(this,A,Q));this.pending=!0;this.delay=Q;this.id=this.id||this.requestAsyncId(b,this.id,Q);return this};
UJ.prototype.requestAsyncId=function(A,Q,b){b=b===void 0?0:b;return y41(A.flush.bind(A,this),b)};
var Yb1=function(A,Q,b){b=b===void 0?0:b;if(b!=null&&A.delay===b&&A.pending===!1)return Q;clearInterval(Q)};
UJ.prototype.execute=function(A,Q){if(this.closed)return Error("ha");this.pending=!1;if(A=this._execute(A,Q))return A;this.pending===!1&&this.id!=null&&(this.id=Yb1(this,this.id,null))};
UJ.prototype._execute=function(A){var Q=!1;try{this.work(A)}catch(f){Q=!0;var b=!!f&&f||Error(f)}if(Q)return this.unsubscribe(),b};
UJ.prototype.unsubscribe=function(){if(!this.closed){var A=this.id,Q=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;XaJ(Q,this);A!=null&&(this.id=Yb1(this,A,null));this.delay=null;SE.prototype.unsubscribe.call(this)}};var Dfj=function(A,Q){Q=Q===void 0?z6L:Q;weW.call(this,A,Q);this.actions=[];this.active=!1;this.scheduled=void 0};
_.O(Dfj,weW);Dfj.prototype.flush=function(A){var Q=this.actions;if(this.active)Q.push(A);else{var b;this.active=!0;do if(b=A.execute(A.state,A.delay))break;while(A=Q.shift());this.active=!1;if(b){for(;A=Q.shift();)A.unsubscribe();throw b;}}};var ok=new Pa(FT);var QkX=Array.isArray;var Lw=function(A,Q){UJ.call(this,A,Q);this.scheduler=A;this.work=Q};
_.O(Lw,UJ);Lw.JSC$9011_EMPTY=UJ.JSC$9011_EMPTY;Lw.prototype.schedule=function(A,Q){Q=Q===void 0?0:Q;if(Q>0)return UJ.prototype.schedule.call(this,A,Q);this.delay=Q;this.state=A;this.scheduler.flush(this);return this};
Lw.prototype.execute=function(A,Q){return Q>0||this.closed?UJ.prototype.execute.call(this,A,Q):this._execute(A,Q)};
Lw.prototype.requestAsyncId=function(A,Q,b){b=b===void 0?0:b;return b!=null&&b>0||b==null&&this.delay>0?UJ.prototype.requestAsyncId.call(this,A,Q,b):A.flush(this)};var $fv=function(){Dfj.apply(this,arguments)};
_.O($fv,Dfj);var eZF=new $fv(Lw);var NWL=function(){this.performanceMonitor=new bFp;this.queue=new fUr;this.internalSymbol=Symbol();this.debugNames=new h6Y};
NWL.prototype.getOnBackgrounded=function(){return ok};
_.Qr.Object.defineProperties(NWL.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var M_=function(A,Q){Q=Error.call(this,Q?A+": "+Q:String(A));this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=A;this.__proto__=M_.prototype;this.name=String(A)};
_.O(M_,Error);var t3=function(A){M_.call(this,1E3,'sfr:"'+A+'"');this.measurementStrategyFailureReason=A;this.__proto__=t3.prototype};
_.O(t3,M_);var rQ=function(){M_.call(this,1003);this.__proto__=rQ.prototype};
_.O(rQ,M_);var lG=function(){M_.call(this,1009);this.__proto__=lG.prototype};
_.O(lG,M_);var s9y=function(){M_.call(this,1011);this.__proto__=s9y.prototype};
_.O(s9y,M_);var mfj=function(){M_.call(this,1007);this.__proto__=rQ.prototype};
_.O(mfj,M_);var Ct=function(A){M_.call(this,1004,String(A));this.inputObservableIndex=A;this.__proto__=Ct.prototype};
_.O(Ct,M_);var jLY=function(A){M_.call(this,1010,A);this.__proto__=R_6.prototype};
_.O(jLY,M_);var R_6=function(A){M_.call(this,1005,A);this.__proto__=R_6.prototype};
_.O(R_6,M_);var Avp=function(A){var Q=_.E$.apply(1,arguments),b=this;this.orderedFactories=[];this.orderedFactories.push(A);Q.forEach(function(f){b.orderedFactories.push(f)})};
Avp.prototype.isSupported=function(A){return this.orderedFactories.some(function(Q){return Q.isSupported(A)})};
Avp.prototype.makeBeacon=function(A,Q){for(var b=0;b<this.orderedFactories.length;b++)if(this.orderedFactories[b].isSupported(Q))return this.orderedFactories[b].makeBeacon(A,Q);throw new lG;};var VBY=Symbol("ia"),QyW=Symbol("ja"),ca=function(A,Q){this.value=A;this.timeline=Q},Ei=function(A,Q){if(Q.timeline!==A.timeline)throw new mfj;
return A.value-Q.value};
_.d=ca.prototype;_.d.equals=function(A){return Ei(this,A)===0};
_.d.maximum=function(A){if(A.timeline!==this.timeline)throw new mfj;return this.value>=A.value?this:A};
_.d.round=function(){return new ca(Math.round(this.value),this.timeline)};
_.d.add=function(A){return new ca(this.value+A,this.timeline)};
_.d.toString=function(){return String(this.value)};var Kw=function(A,Q){this.context=A;this.JSC$9138_pinger=Q};
Kw.prototype.isSupported=function(A){return this.JSC$9138_pinger.isSupported(A)};
Kw.prototype.makeBeacon=function(A,Q){if(!this.isSupported(Q))throw new lG;return new iG(this.context,this.JSC$9138_pinger,Q!=null?Q:void 0,A)};
var iG=function(A,Q,b,f){var a=this;this.JSC$9144_pinger=Q;this.properties=b;this.url=f;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var T;this.method=(T=b==null?void 0:b.beaconMethod)!=null?T:"GET";this.backgroundedSubscription=A.getOnBackgrounded().subscribe(function(){a.sendNow()})};
iG.prototype.deactivate=function(){this.internalIsPending=!1};
iG.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9144_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var A,Q;this.JSC$9144_pinger.pingWithHeadersAndBody((A=this.properties)!=null?A:{},this.customHeaders,(Q=this.body)!=null?Q:"",this.url)}else this.JSC$9144_pinger.ping(this.url);this.internalIsPending=!1}catch(b){}else this.internalIsPending=!1};
iG.prototype.setHeader=function(A,Q){this.customHeaders.set(A,Q)};
_.Qr.Object.defineProperties(iG.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var fKx=function(){for(var A=_.F(_.E$.apply(0,arguments)),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.available()){this.timeProvider=Q;return}this.timeProvider=new b$y};
_.d=fKx.prototype;_.d.available=function(){return this.timeProvider.available()};
_.d.now=function(){return this.timeProvider.now()};
_.d.setTimeout=function(A,Q){return this.timeProvider.setTimeout(A,Q)};
_.d.clearTimeout=function(A){this.timeProvider.clearTimeout(A)};
_.d.interval=function(A,Q){var b=this.intervalObservable(A).subscribe(Q);return function(){return void b.unsubscribe()}};
_.d.intervalObservable=function(A){return this.timeProvider.intervalObservable(A)};
_.Qr.Object.defineProperties(fKx.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var b$y=function(){this.timeline=Symbol()};
_.d=b$y.prototype;_.d.available=function(){return!1};
_.d.now=function(){return new ca(0,this.timeline)};
_.d.setTimeout=function(){return 0};
_.d.clearTimeout=function(){};
_.d.interval=function(){return function(){}};
_.d.intervalObservable=function(){return ok};var Jd=function(A,Q){this.intrinsicFunctionNamespace=A;this.performanceMonitor=Q};
_.d=Jd.prototype;_.d.setTimeout=function(A,Q){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,A),Q)};
_.d.clearTimeout=function(A){this.intrinsicFunctionNamespace.clearTimeout(A)};
_.d.interval=function(A,Q){var b=this.intervalObservable(A).subscribe(Q);return function(){return void b.unsubscribe()}};
_.d.intervalObservable=function(A){var Q=this;return new Pa(function(b){var f=0,a=Q.intrinsicFunctionNamespace.setInterval(function(){b.next(f++)},A);
return function(){Q.intrinsicFunctionNamespace.clearInterval(a)}})};
_.d.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var aKW=function(A,Q){Jd.call(this,A,Q);this.timeline=QyW};
_.O(aKW,Jd);aKW.prototype.now=function(){return new ca(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
aKW.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Jd.prototype.available.call(this)};var T9L=function(A,Q){Jd.call(this,A,Q);this.timeline=VBY};
_.O(T9L,Jd);T9L.prototype.now=function(){return new ca(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
T9L.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Jd.prototype.available.call(this)};var Fjp=function(A){this.context=A;if(dxx===void 0)a:{var Q,b,f=(Q=A.global)==null?void 0:(b=Q.document)==null?void 0:b.createElement("meta");if(f)try{f.httpEquiv="origin-trial";f.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";A.global.document.head.append(f);dxx=f;break a}catch(a){}dxx=void 0}},
dxx;
Fjp.prototype.isSupported=function(A){return Pwy(this.context)!==void 0&&!(A==null||!A.endOfSession)&&!VH(this.context)&&!(A==null?0:A.attributionEnabled)&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
Fjp.prototype.makeBeacon=function(A,Q){if(!this.isSupported(Q))throw new lG;return new OJ(this.context,A,Q)};
var OJ=function(A,Q,b){this.context=A;this.properties=b;this.JSC$9171_urlWithoutToken=Q;var f;this.beaconMethod=(f=b==null?void 0:b.beaconMethod)!=null?f:"GET";A=Pwy(this.context);if(A===void 0)throw Error();this.fetchLater=A;GrK(this,B9r(this))},GrK=function(A,Q){A.beaconResult&&A.beaconResult.activated||(A.beaconAbort=new AbortController,A.beaconResult=A.fetchLater(Q,{method:A.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:A.beaconAbort.signal,activateAfter:96E4}))},B9r=function(A){A=A.JSC$9171_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"flapi=1"};
OJ.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
OJ.prototype.sendNow=function(){};
OJ.prototype.setHeader=function(){};
_.Qr.Object.defineProperties(OJ.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9171_urlWithoutToken},
set:function(A){this.JSC$9171_urlWithoutToken=A;A=B9r(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);GrK(this,A)}},
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 pMY=function(A){this.context=A};
pMY.prototype.isSupported=function(){return!VH(this.context)&&!!this.context.global.fetch};
pMY.prototype.ping=function(){var A=this;return Wa.apply(null,_.ri(_.E$.apply(0,arguments).map(function(Q){return LN(A.context.global.fetch(Q,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(to(function(b){return b.status===200}))}))).pipe(KKF(function(Q){return Q}),J34())};
pMY.prototype.pingWithHeadersAndBody=function(A,Q,b){for(var f=_.E$.apply(3,arguments),a=this,T=new Headers,G=_.F(Q.entries()),p=G.next();!p.done;p=G.next()){var P=_.F(p.value);p=P.next().value;P=P.next().value;T.set(p,P)}var U,L=(U=A.keepAlive)!=null?U:!1;Wa.apply(null,_.ri(f.map(function(M){return LN(a.context.global.fetch(M,Object.assign({},{method:String(A.beaconMethod),cache:"no-cache"},L?{keepalive:!0}:{},{mode:"no-cors",headers:T,body:b}))).pipe(to(function(l){return l.status===200}))}))).pipe(KKF(function(M){return M}),
J34())};var PYW,YDe;_.nw=function(){};
_.gW=function(A){return A};
PYW=function(A){var Q=Q||0;return function(){return A.apply(this,Array.prototype.slice.call(arguments,0,Q))}};
_.kE=function(A){var Q=!1,b;return function(){Q||(b=A(),Q=!0);return b}};
_.IB=function(A,Q){var b=0;return function(f){_.by.clearTimeout(b);var a=arguments;b=_.by.setTimeout(function(){A.apply(void 0,a)},Q)}};
YDe=function(A,Q){var b=0,f=!1,a=[],T=function(){b=0;f&&(f=!1,G())},G=function(){b=_.by.setTimeout(T,Q);
var p=a;a=[];A.apply(void 0,p)};
return function(p){a=arguments;b?f=!0:G()}};var SLp=function(){return KF&&J4?J4.mobile:!XMv()&&(VY("iPod")||VY("iPhone")||VY("Android")||VY("IEMobile"))},XMv=function(){return KF&&J4?!J4.mobile&&(VY("iPad")||VY("Android")||VY("Silk")):VY("iPad")||VY("Android")&&!VY("Mobile")||VY("Silk")};var Uxp;_.j2={};Uxp="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.j2.add=function(A,Q,b){if(A!==null&&Q in A)throw Error("la`"+Q);A[Q]=b};
_.j2.clear=function(A){for(var Q in A)delete A[Q]};
_.j2.clone=function(A){var Q={},b;for(b in A)Q[b]=A[b];return Q};
_.j2.contains=function(A,Q){return HtA(A,Q)};
_.j2.containsKey=function(A,Q){return A!==null&&Q in A};
_.j2.containsValue=HtA;_.j2.create=o5b;_.j2.createImmutableView=function(A){var Q=A;Object.isFrozen&&!Object.isFrozen(A)&&(Q=Object.create(A),Object.freeze(Q));return Q};
_.j2.createSet=t2i;_.j2.equals=function(A,Q){for(var b in A)if(!(b in Q)||A[b]!==Q[b])return!1;for(var f in Q)if(!(f in A))return!1;return!0};
_.j2.every=function(A,Q,b){for(var f in A)if(!Q.call(b,A[f],f,A))return!1;return!0};
_.j2.extend=function(A,Q){for(var b,f,a=1;a<arguments.length;a++){f=arguments[a];for(b in f)A[b]=f[b];for(var T=0;T<Uxp.length;T++)b=Uxp[T],Object.prototype.hasOwnProperty.call(f,b)&&(A[b]=f[b])}};
_.j2.filter=function(A,Q,b){var f={},a;for(a in A)Q.call(b,A[a],a,A)&&(f[a]=A[a]);return f};
_.j2.findKey=CwA;_.j2.findValue=function(A,Q,b){return(Q=CwA(A,Q,b))&&A[Q]};
_.j2.forEach=function(A,Q,b){for(var f in A)Q.call(b,A[f],f,A)};
_.j2.get=function(A,Q,b){return A!==null&&Q in A?A[Q]:b};
_.j2.getAllPropertyNames=function(A,Q,b){if(!A)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return I0A(A);for(var f={};A&&(A!==Object.prototype||Q)&&(A!==Function.prototype||b);){for(var a=Object.getOwnPropertyNames(A),T=0;T<a.length;T++)f[a[T]]=!0;A=Object.getPrototypeOf(A)}return I0A(f)};
_.j2.getAnyKey=function(A){for(var Q in A)return Q};
_.j2.getAnyValue=function(A){for(var Q in A)return A[Q]};
_.j2.getCount=function(A){var Q=0,b;for(b in A)Q++;return Q};
_.j2.getKeys=I0A;_.j2.getSuperClass=function(A){return(A=Object.getPrototypeOf(A.prototype))&&A.constructor};
_.j2.getValueByKeys=function(A,Q){var b=_.ce(Q),f=b?Q:arguments;for(b=b?0:1;b<f.length;b++){if(A==null)return;A=A[f[b]]}return A};
_.j2.getValues=function(A){var Q=[],b=0,f;for(f in A)Q[b++]=A[f];return Q};
_.j2.isEmpty=function(A){for(var Q in A)return!1;return!0};
_.j2.isImmutableView=function(A){return!!Object.isFrozen&&Object.isFrozen(A)};
_.j2.map=function(A,Q,b){var f={},a;for(a in A)f[a]=Q.call(b,A[a],a,A);return f};
_.j2.remove=function(A,Q){var b;(b=Q in A)&&delete A[Q];return b};
_.j2.set=function(A,Q,b){A[Q]=b};
_.j2.setIfUndefined=function(A,Q,b){return Q in A?A[Q]:A[Q]=b};
_.j2.setWithReturnValueIfNotSet=function(A,Q,b){if(Q in A)return A[Q];b=b();return A[Q]=b};
_.j2.some=function(A,Q,b){for(var f in A)if(Q.call(b,A[f],f,A))return!0;return!1};
_.j2.transpose=function(A){var Q={},b;for(b in A)Q[A[b]]=b;return Q};
_.j2.unsafeClone=qXJ;var Hk=function(A,Q,b,f,a){this.allowedElements=A;this.elementPolicies=Q;this.allowedGlobalAttributes=b;this.globalAttributePolicies=f;this.globallyAllowedAttributePrefixes=a},LjW=function(A,Q,b){b=A.elementPolicies.get(b);
return(b==null?0:b.has(Q))?b.get(Q):A.allowedGlobalAttributes.has(Q)?{policyAction:1}:(b=A.globalAttributePolicies.get(Q))?b:A.globallyAllowedAttributePrefixes&&[].concat(_.ri(A.globallyAllowedAttributePrefixes)).some(function(f){return Q.indexOf(f)===0})?{policyAction:1}:{policyAction:0}};var MWL="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(" "),
lK9=[["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}]])]],Kjx="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(" "),
i$j=[["dir",{policyAction:3,conditions:O$(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:O$(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:O$(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:O$(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],JvM=new Hk(new Set(MWL),new Map(lK9),new Set(Kjx),new Map(i$j)),VWY=new Hk(new Set(MWL.concat(["BUTTON",
"INPUT"])),new Map(lK9),new Set(O$(function(){return Kjx.concat(["class","id","name"])})),new Map(O$(function(){return i$j.concat([["style",
{policyAction:1}]])})));var O$x,n1M,IK1;O$x=function(A,Q,b,f,a){this.JSC$9231_sanitizerTable=A;this.styleElementSanitizer=Q;this.styleAttributeSanitizer=b;this.JSC$9231_resourceUrlPolicy=f;this.JSC$9231_navigationUrlPolicy=a;this.changes=[]};
_.krM=function(A,Q){var b=document.implementation.createHTMLDocument("");A=n1M(A,Q,b);b=b.body;b.appendChild(A);b=(new XMLSerializer).serializeToString(b);b=b.slice(b.indexOf(">")+1,b.lastIndexOf("</"));return w$(b)};
n1M=function(A,Q,b){Q=RKb(Q,b);Q=document.createTreeWalker(Q,5,function(p){if(p.nodeType===3)p=1;else if(eK6(p))if(p=g5i(p),p===null)p=2;else{var P=A.JSC$9231_sanitizerTable;p=p!=="FORM"&&(P.allowedElements.has(p)||P.elementPolicies.has(p))?1:2}else p=2;return p});
for(var f=Q.nextNode(),a=b.createDocumentFragment(),T=a;f!==null;){var G=void 0;if(f.nodeType===3)A.styleElementSanitizer&&T.nodeName==="STYLE"?(f=A.styleElementSanitizer(f.data),G=A.createTextNode(f)):G=A.createTextNode(f.data);else if(eK6(f))G=IK1(A,f,b);else throw Error("Z");T.appendChild(G);if(f=Q.firstChild())T=G;else for(;!(f=Q.nextSibling())&&(f=Q.parentNode());)T=T.parentNode}return a};
O$x.prototype.createTextNode=function(A){return document.createTextNode(A)};
IK1=function(A,Q,b){var f,a=g5i(Q);b=b.createElement(a);Q=Q.attributes;for(var T=_.F(Q),G=T.next();!G.done;G=T.next()){var p=G.value;G=p.name;p=p.value;var P=LjW(A.JSC$9231_sanitizerTable,G,a);a:{if(f=P.conditions){f=_.F(f);for(var U=f.next();!U.done;U=f.next()){var L=_.F(U.value);U=L.next().value;L=L.next().value;var M=void 0;if((U=(M=Q.getNamedItem(U))==null?void 0:M.value)&&!L.has(U)){f=!1;break a}}}f=!0}if(f)switch(P.policyAction){case 1:dQ(b,G,p);break;case 2:throw Error();case 3:dQ(b,G,p.toLowerCase());
break;case 4:A.styleAttributeSanitizer?(p=A.styleAttributeSanitizer(p),dQ(b,G,p)):dQ(b,G,p);break;case 5:A.JSC$9231_resourceUrlPolicy?(P={type:2,attributeName:G,elementName:a},p=jki(p),(p=A.JSC$9231_resourceUrlPolicy(p,P))&&dQ(b,G,p.toString())):dQ(b,G,p);break;case 6:if(A.JSC$9231_resourceUrlPolicy){P={type:2,attributeName:G,elementName:a};f=[];p=_.F(p.split(","));for(U=p.next();!U.done;U=p.next())L=_.F(U.value.trim().split(/\s+/,2)),U=L.next().value,L=L.next().value,f.push({url:U,descriptor:L});
p={parts:[]};f=_.F(f);for(U=f.next();!U.done;U=f.next())U=U.value,L=jki(U.url),(L=A.JSC$9231_resourceUrlPolicy(L,P))&&p.parts.push({url:L.toString(),descriptor:U.descriptor});dQ(b,G,hKW(p))}else dQ(b,G,p);break;case 7:P=p;if(A.JSC$9231_navigationUrlPolicy){P={type:2,attributeName:G,elementName:a};p=jki(p);p=A.JSC$9231_navigationUrlPolicy(p,P);if(p===null)break;P=p.toString()}p=P;P=_.QDJ(p);P=P!==void 0&&HFM.indexOf(P.toLowerCase())!==-1?p:"about:invalid#zClosurez";dQ(b,G,P)}}return b};
_.H$L=O$(function(){return new O$x(JvM)});
_.CYv=O$(function(){return new O$x(VWY)});var qLL=function(){this.calledBuild=!1;this.JSC$9243_sanitizerTable=JvM},o1p=function(){qLL.apply(this,arguments)};
_.O(o1p,qLL);o1p.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new O$x(this.JSC$9243_sanitizerTable,void 0,void 0,this.JSC$9243_resourceUrlPolicy,this.JSC$9243_navigationUrlPolicy)};var tWL=/[^#]*/;var jyr=function(A){var Q=rvL;if(Q)for(var b in Q)Object.prototype.hasOwnProperty.call(Q,b)&&A(Q[b],b,Q)},RNr=function(){var A=[];
jyr(function(Q){A.push(Q)});
return A},rvL={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"},g1K=_.kE(function(){return RNr()}),hN$=function(){var A=eN$("IFRAME"),
Q={};
_.ZR(g1K(),function(b){A.sandbox&&A.sandbox.supports&&A.sandbox.supports(b)&&(Q[b]=!0)});
return Q},eN$=function(A,Q){Q=Q===void 0?document:Q;
return Q.createElement(String(A).toLowerCase())};var Cw;_.vZ=function(A,Q,b){return Math.min(Math.max(A,Q),b)};
Cw=function(A,Q,b){return A+b*(Q-A)};_.gQ=function(A,Q){this.x=A!==void 0?A:0;this.y=Q!==void 0?Q:0};
_.d=_.gQ.prototype;_.d.clone=function(){return new _.gQ(this.x,this.y)};
_.d.equals=function(A){return A instanceof _.gQ&&(this==A?!0:this&&A?this.x==A.x&&this.y==A.y:!1)};
_.d.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.d.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.d.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.d.translate=function(A,Q){A instanceof _.gQ?(this.x+=A.x,this.y+=A.y):(this.x+=Number(A),typeof Q==="number"&&(this.y+=Q));return this};
_.d.scale=function(A,Q){this.x*=A;this.y*=typeof Q==="number"?Q:A;return this};_.iw=function(A,Q){this.width=A;this.height=Q};
_.d=_.iw.prototype;_.d.clone=function(){return new _.iw(this.width,this.height)};
_.d.area=function(){return this.width*this.height};
_.d.aspectRatio=function(){return this.width/this.height};
_.d.isEmpty=function(){return!this.area()};
_.d.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.d.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.d.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.d.scale=function(A,Q){this.width*=A;this.height*=typeof Q==="number"?Q:A;return this};var cv=function(A,Q){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=A===lbJ&&Q||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=WjM};
cv.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var v1j=function(A){return A instanceof cv&&A.constructor===cv&&A.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===WjM?A.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},WjM={},lbJ={};
new cv(lbJ,"");var OX,JT,oB,E1p,zNr,cvL,e2,uL1,yvj,Z$v,RB,YLp,Qtr,AMY,mxp,bs$,fry,arY,Tx$,hUf,dNL,GnL,BxW,FlY,q_;OX=function(A){return A?new q_(_.h3(A)):$KC||($KC=new q_)};
_.PL=function(A,Q){return typeof Q==="string"?A.getElementById(Q):Q};
JT=function(A,Q){return(Q||document).getElementsByTagName(String(A))};
_.xxp=function(A){return E1p("yt-formatted-string","paper-input-input",A)};
oB=function(A,Q,b,f){A=f||A;return(Q=Q&&Q!="*"?String(Q).toUpperCase():"")||b?A.querySelectorAll(Q+(b?"."+b:"")):A.getElementsByTagName("*")};
E1p=function(A,Q,b){var f=document,a=A&&A!="*"?String(A).toUpperCase():"";return a||Q?(b||f).querySelector(a+(Q?"."+Q:"")):oB(f,A,Q,b)[0]||null};
zNr=function(A,Q){_.j2.forEach(Q,function(b,f){f=="style"?A.style.cssText=b:f=="class"?A.className=b:f=="for"?A.htmlFor=b:cvL.hasOwnProperty(f)?A.setAttribute(cvL[f],b):_.TX(f,"aria-")||_.TX(f,"data-")?A.setAttribute(f,b):A[f]=b})};
cvL={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"};_.J3=function(A){A=(A||window).document;A=A.compatMode=="CSS1Compat"?A.documentElement:A.body;return new _.iw(A.clientWidth,A.clientHeight)};
_.wMj=function(A){var Q=_.td(A);A=A.defaultView;return new _.gQ(A.pageXOffset||Q.scrollLeft,A.pageYOffset||Q.scrollTop)};
_.td=function(A){return A.scrollingElement?A.scrollingElement:_.Le||A.compatMode!="CSS1Compat"?A.body||A.documentElement:A.documentElement};
e2=function(A){return A?A.defaultView:window};
_.rh=function(A,Q,b){return uL1(document,arguments)};
uL1=function(A,Q){var b=Q[1],f=Z$v(A,String(Q[0]));b&&(typeof b==="string"?f.className=b:Array.isArray(b)?f.className=b.join(" "):zNr(f,b));Q.length>2&&yvj(A,f,Q,2);return f};
yvj=function(A,Q,b,f){function a(p){p&&Q.appendChild(typeof p==="string"?A.createTextNode(p):p)}
for(;f<b.length;f++){var T=b[f];if(!_.ce(T)||_.ZU(T)&&T.nodeType>0)a(T);else{a:{if(T&&typeof T.length=="number"){if(_.ZU(T)){var G=typeof T.item=="function"||typeof T.item=="string";break a}if(typeof T==="function"){G=typeof T.item=="function";break a}}G=!1}_.ZR(G?_.xC(T):T,a)}}};
_.KK=function(A){return Z$v(document,A)};
Z$v=function(A,Q){Q=String(Q);A.contentType==="application/xhtml+xml"&&(Q=Q.toLowerCase());return A.createElement(Q)};
_.jE=function(){return document.createTextNode("\n")};
RB=function(A){if(A.nodeType!=1)return!1;switch(A.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};
YLp=function(A,Q){yvj(_.h3(A),A,arguments,1)};
_.gh=function(A){for(var Q;Q=A.firstChild;)A.removeChild(Q)};
_.eE=function(A,Q){Q.parentNode&&Q.parentNode.insertBefore(A,Q)};
_.hd=function(A,Q){Q.parentNode&&Q.parentNode.insertBefore(A,Q.nextSibling)};
_.im=function(A){return A&&A.parentNode?A.parentNode.removeChild(A):null};
_.Dxj=function(A,Q){var b=Q.parentNode;b&&b.replaceChild(A,Q)};
_.$xL=function(A){var Q,b=A.parentNode;if(b&&b.nodeType!=11)if(A.removeNode)A.removeNode(!1);else{for(;Q=A.firstChild;)b.insertBefore(Q,A);_.im(A)}};
_.Wk=function(A){return A.children!=void 0?A.children:Array.prototype.filter.call(A.childNodes,function(Q){return Q.nodeType==1})};
_.sy9=function(A){return A.nextElementSibling!==void 0?A.nextElementSibling:_.N9y(A.nextSibling,!0)};
_.N9y=function(A,Q){for(;A&&A.nodeType!=1;)A=Q?A.nextSibling:A.previousSibling;return A};
_.mk=function(A){return _.ZU(A)&&A.nodeType==1};
_.vo=function(A,Q){if(!A||!Q)return!1;if(A.contains&&Q.nodeType==1)return A==Q||A.contains(Q);if(typeof A.compareDocumentPosition!="undefined")return A==Q||!!(A.compareDocumentPosition(Q)&16);for(;Q&&A!=Q;)Q=Q.parentNode;return Q==A};
Qtr=function(A,Q){if(A==Q)return 0;if(A.compareDocumentPosition)return A.compareDocumentPosition(Q)&2?1:-1;if("sourceIndex"in A||A.parentNode&&"sourceIndex"in A.parentNode){var b=A.nodeType==1,f=Q.nodeType==1;if(b&&f)return A.sourceIndex-Q.sourceIndex;var a=A.parentNode,T=Q.parentNode;return a==T?mxp(A,Q):!b&&_.vo(a,Q)?-1*AMY(A,Q):!f&&_.vo(T,A)?AMY(Q,A):(b?A.sourceIndex:a.sourceIndex)-(f?Q.sourceIndex:T.sourceIndex)}f=_.h3(A);b=f.createRange();b.selectNode(A);b.collapse(!0);A=f.createRange();A.selectNode(Q);
A.collapse(!0);return b.compareBoundaryPoints(_.by.Range.START_TO_END,A)};
AMY=function(A,Q){var b=A.parentNode;if(b==Q)return-1;for(;Q.parentNode!=b;)Q=Q.parentNode;return mxp(Q,A)};
mxp=function(A,Q){for(;Q=Q.previousSibling;)if(Q==A)return-1;return 1};
bs$=function(A){var Q,b=arguments.length;if(!b)return null;if(b==1)return arguments[0];var f=[],a=Infinity;for(Q=0;Q<b;Q++){for(var T=[],G=arguments[Q];G;)T.unshift(G),G=G.parentNode;f.push(T);a=Math.min(a,T.length)}T=null;for(Q=0;Q<a;Q++){G=f[0][Q];for(var p=1;p<b;p++)if(G!=f[p][Q])return T;T=G}return T};
_.h3=function(A){return A.nodeType==9?A:A.ownerDocument||A.document};
fry=function(A){return A.contentDocument||A.contentWindow.document};
_.vk=function(A,Q){if("textContent"in A)A.textContent=Q;else if(A.nodeType==3)A.data=String(Q);else if(A.firstChild&&A.firstChild.nodeType==3){for(;A.lastChild!=A.firstChild;)A.removeChild(A.lastChild);A.firstChild.data=String(Q)}else _.gh(A),A.appendChild(_.h3(A).createTextNode(String(Q)))};
arY={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Tx$={IMG:" ",BR:"\n"};hUf=function(A){var Q;A.tagName=="A"&&A.hasAttribute("href")||A.tagName=="INPUT"||A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="BUTTON"?Q=!A.disabled&&(!A.hasAttribute("tabindex")||dNL(A)):Q=A.hasAttribute("tabindex")&&dNL(A);return Q};
dNL=function(A){A=A.tabIndex;return typeof A==="number"&&A>=0&&A<32768};
GnL=function(A){var Q=[];FlY(A,Q,!0);A=Q.join("");A=A.replace(/ \xAD /g," ").replace(/\xAD/g,"");A=A.replace(/\u200B/g,"");A=A.replace(/ +/g," ");A!=" "&&(A=A.replace(/^\s*/,""));return A};
BxW=function(A){var Q=[];FlY(A,Q,!1);return Q.join("")};
FlY=function(A,Q,b){if(!(A.nodeName in arY))if(A.nodeType==3)b?Q.push(String(A.nodeValue).replace(/(\r\n|\r|\n)/g,"")):Q.push(A.nodeValue);else if(A.nodeName in Tx$)Q.push(Tx$[A.nodeName]);else for(A=A.firstChild;A;)FlY(A,Q,b),A=A.nextSibling};
_.pdL=function(A,Q,b){if(!Q&&!b)return null;var f=Q?String(Q).toUpperCase():null;return _.vl(A,function(a){return(!f||a.nodeName==f)&&(!b||typeof a.className==="string"&&_.ve(a.className.split(/\s+/),b))},!0)};
_.vl=function(A,Q,b){A&&!b&&(A=A.parentNode);for(b=0;A;){if(Q(A))return A;A=A.parentNode;b++}return null};
q_=function(A){this.JSC$9268_document_=A||_.by.document||document};
_.d=q_.prototype;_.d.getElement=function(A){return _.PL(this.JSC$9268_document_,A)};
_.d.$=q_.prototype.getElement;_.d.getElementsByTagName=function(A,Q){return(Q||this.JSC$9268_document_).getElementsByTagName(String(A))};
_.d.getElementsByTagNameAndClass=function(A,Q,b){return oB(this.JSC$9268_document_,A,Q,b)};
_.d.$$=q_.prototype.getElementsByTagNameAndClass;_.d.setProperties=zNr;_.d.JSC$9270_createDom=function(A,Q,b){return uL1(this.JSC$9268_document_,arguments)};
_.d.createElement=function(A){return Z$v(this.JSC$9268_document_,A)};
_.d.createTextNode=function(A){return this.JSC$9268_document_.createTextNode(String(A))};
_.d.getWindow=function(){return this.JSC$9268_document_.defaultView};
var VE=function(A){return _.wMj(A.JSC$9268_document_)};
_.d=q_.prototype;_.d.appendChild=function(A,Q){A.appendChild(Q)};
_.d.append=YLp;_.d.canHaveChildren=RB;_.d.removeNode=_.im;_.d.getChildren=_.Wk;_.d.contains=_.vo;_.d=pt.prototype;_.d.getWidth=function(){return this.right-this.left};
_.d.getHeight=function(){return this.bottom-this.top};
_.d.clone=function(){return new pt(this.top,this.right,this.bottom,this.left)};
_.d.contains=function(A){return this&&A?A instanceof pt?A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom:A.x>=this.left&&A.x<=this.right&&A.y>=this.top&&A.y<=this.bottom:!1};
_.d.expand=function(A,Q,b,f){_.ZU(A)?(this.top-=A.top,this.right+=A.right,this.bottom+=A.bottom,this.left-=A.left):(this.top-=A,this.right+=Number(Q),this.bottom+=Number(b),this.left-=Number(f));return this};
_.d.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};
_.d.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};
_.d.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};
_.d.translate=function(A,Q){A instanceof _.gQ?(this.left+=A.x,this.right+=A.x,this.top+=A.y,this.bottom+=A.y):(this.left+=A,this.right+=A,typeof Q==="number"&&(this.top+=Q,this.bottom+=Q));return this};
_.d.scale=function(A,Q){Q=typeof Q==="number"?Q:A;this.left*=A;this.right*=A;this.top*=Q;this.bottom*=Q;return this};var EJ=function(A,Q,b,f){this.left=A;this.top=Q;this.width=b;this.height=f};
_.d=EJ.prototype;_.d.clone=function(){return new EJ(this.left,this.top,this.width,this.height)};
_.d.boundingRect=function(A){var Q=Math.max(this.left+this.width,A.left+A.width),b=Math.max(this.top+this.height,A.top+A.height);this.left=Math.min(this.left,A.left);this.top=Math.min(this.top,A.top);this.width=Q-this.left;this.height=b-this.top};
_.d.contains=function(A){return A instanceof _.gQ?A.x>=this.left&&A.x<=this.left+this.width&&A.y>=this.top&&A.y<=this.top+this.height:this.left<=A.left&&this.left+this.width>=A.left+A.width&&this.top<=A.top&&this.top+this.height>=A.top+A.height};
_.d.distance=function(A){var Q=A.x<this.left?this.left-A.x:Math.max(A.x-(this.left+this.width),0);A=A.y<this.top?this.top-A.y:Math.max(A.y-(this.top+this.height),0);return Math.sqrt(Q*Q+A*A)};
_.d.getSize=function(){return new _.iw(this.width,this.height)};
_.d.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};
_.d.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};
_.d.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};
_.d.translate=function(A,Q){A instanceof _.gQ?(this.left+=A.x,this.top+=A.y):(this.left+=A,typeof Q==="number"&&(this.top+=Q));return this};
_.d.scale=function(A,Q){Q=typeof Q==="number"?Q:A;this.left*=A;this.width*=A;this.top*=Q;this.height*=Q;return this};var Xd1,zN,BYf,ck,MFY,Ll1,lr1,CGX,Klv,JM1;_.xE=function(A,Q,b){if(typeof Q==="string")(Q=_.PO$(A,Q))&&(A.style[Q]=b);else for(var f in Q){b=A;var a=Q[f],T=_.PO$(b,f);T&&(b.style[T]=a)}};
Xd1={};_.PO$=function(A,Q){var b=Xd1[Q];if(!b){var f=_.Ov(Q);b=f;A.style[f]===void 0&&(f=(_.Le?"Webkit":_.U2?"Moz":null)+e6x(f),A.style[f]!==void 0&&(b=f));Xd1[Q]=b}return b};
_.Jc=function(A,Q){var b=_.h3(A);return b.defaultView&&b.defaultView.getComputedStyle&&(A=b.defaultView.getComputedStyle(A,null))?A[Q]||A.getPropertyValue(Q)||"":""};
_.Wo=function(A,Q){return _.Jc(A,Q)||(A.currentStyle?A.currentStyle[Q]:null)||A.style&&A.style[Q]};
_.SNY=function(A){return _.Wo(A,"position")};
zN=function(A,Q,b){if(Q instanceof _.gQ){var f=Q.x;Q=Q.y}else f=Q,Q=b;A.style.left=ck(f,!1);A.style.top=ck(Q,!1)};
BYf=function(A){try{return A.getBoundingClientRect()}catch(Q){return{left:0,top:0,right:0,bottom:0}}};
_.Wl=function(A){var Q=_.h3(A),b=new _.gQ(0,0);if(A==(Q?_.h3(Q):document).documentElement)return b;A=BYf(A);Q=VE(OX(Q));b.x=A.left+Q.x;b.y=A.top+Q.y;return b};
_.UNL=function(A,Q,b){if(Q instanceof _.iw)b=Q.height,Q=Q.width;else if(b==void 0)throw Error("oa");A.style.width=ck(Q,!0);A.style.height=ck(b,!0)};
ck=function(A,Q){typeof A=="number"&&(A=(Q?Math.round(A):A)+"px");return A};
MFY=function(A){return Ll1(A)};
Ll1=function(A){var Q=lr1;if(_.Wo(A,"display")!="none")return Q(A);var b=A.style,f=b.display,a=b.visibility,T=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";A=Q(A);b.display=f;b.position=T;b.visibility=a;return A};
lr1=function(A){var Q=A.offsetWidth,b=A.offsetHeight,f=_.Le&&!Q&&!b;return(Q===void 0||f)&&A.getBoundingClientRect?(A=BYf(A),new _.iw(A.right-A.left,A.bottom-A.top)):new _.iw(Q,b)};
CGX=function(A){var Q=_.Wl(A);A=Ll1(A);return new EJ(Q.x,Q.y,A.width,A.height)};
Klv=function(A,Q){A=A.style;"opacity"in A?A.opacity=Q:"MozOpacity"in A?A.MozOpacity=Q:"filter"in A&&(A.filter=Q===""?"":"alpha(opacity="+Number(Q)*100+")")};
_.um=function(A,Q){A.style.display=Q?"":"none"};
_.isM=function(A){return"rtl"==_.Wo(A,"direction")};
JM1=function(A){var Q=_.Jc(A,"marginLeft"),b=_.Jc(A,"marginRight"),f=_.Jc(A,"marginTop");A=_.Jc(A,"marginBottom");return new pt(parseFloat(f),parseFloat(b),parseFloat(A),parseFloat(Q))};
_.VFj=function(A){var Q=_.Jc(A,"borderLeftWidth"),b=_.Jc(A,"borderRightWidth"),f=_.Jc(A,"borderTopWidth");A=_.Jc(A,"borderBottomWidth");return new pt(parseFloat(f),parseFloat(b),parseFloat(A),parseFloat(Q))};var wh=function(A){this.context=A};
wh.prototype.isSupported=function(A){return(A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="POST"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive)?!1:!VH(this.context)};
wh.prototype.ping=function(){var A=this;return ID(_.E$.apply(0,arguments).map(function(Q){try{var b=A.context.global,f=!1;f=f===void 0?!1:f;b.google_image_requests||(b.google_image_requests=[]);var a=eN$("IMG",b.document);f&&(a.attributionSrc="");a.src=Q;b.google_image_requests.push(a);return!0}catch(T){return!1}}).every(function(Q){return Q}))};
wh.prototype.pingWithHeadersAndBody=function(A,Q,b){this.ping.apply(this,_.ri(_.E$.apply(3,arguments)))};var Osv=function(A){this.context=A};
Osv.prototype.isSupported=function(A){return nqN&&!VH(this.context)&&v5f(this.context)!==void 0&&!(A==null?0:A.attributionEnabled)&&(A==null?void 0:A.beaconMethod)!=="POST"&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
Osv.prototype.makeBeacon=function(A,Q){if(!this.isSupported(Q))throw new lG;return new uG(this.context,A)};
var nqN=!1,uG=function(A,Q){this.context=A;this.JSC$9289_urlWithoutToken=Q;A=v5f(this.context);if(A===void 0)throw Error();this.wrappedBeacon=new A(kn9(this),{})},kn9=function(A){A=A.JSC$9289_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"pbapi=1"};
uG.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
uG.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
uG.prototype.setHeader=function(){};
_.Qr.Object.defineProperties(uG.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9289_urlWithoutToken},
set:function(A){this.JSC$9289_urlWithoutToken=A;this.wrappedBeacon.setURL(kn9(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(A){if(A!=="GET")throw new lG;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var Irr=function(A){this.context=A};
Irr.prototype.isSupported=function(A){if((A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="GET"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive))return!1;var Q;return!VH(this.context)&&((Q=this.context.global.navigator)==null?void 0:Q.sendBeacon)!==void 0};
Irr.prototype.ping=function(){var A=this;return ID(_.E$.apply(0,arguments).map(function(Q){var b;return(b=A.context.global.navigator)==null?void 0:b.sendBeacon(Q)}).every(function(Q){return Q}))};
Irr.prototype.pingWithHeadersAndBody=function(A,Q,b){this.ping.apply(this,_.ri(_.E$.apply(3,arguments)))};var lw=function(A){this.value=A},$5=function(A,Q){return ID(A.value).pipe(Lt(Q))},sX=new lw(!1),V6W=new lw(!0);var EX=function(A){this.value=A;this.releasedSubject=new Pl};
EX.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Qr.Object.defineProperties(EX.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9302_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var skb=["FRAME","IMG","IFRAME"],Zte=/^[01](px)?$/,NQ4=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},$19=function(){var A=new NQ4;
A.crossDomainLoadedDefault=!0;A.pendingImagesBlockLoad=!0;return A};var HsL=function(A,Q){var b=Tvy(A);if(b)if(b.onCreativeLoad)b.onCreativeLoad(Q);else{var f=Q?[Q]:[],a=function(T){for(var G=0;G<f.length;++G)try{f[G](1,T)}catch(p){}f={push:function(p){p(1,T)}}};
b.onCreativeLoad=function(T){f.push(T)};
b.setAttribute("data-creative-load-listener","");b.addEventListener("creativeLoad",function(T){a(T.detail)});
_.by.addEventListener("message",function(T){a4Y(b,a,T)})}};var ZW=function(A,Q){var b=this;this.global=A;this.parentContext=Q;this.JSC$9313_onVisibilityChange=this.document?Wa(ID(!0),ex(this.document,"visibilitychange")).pipe(zO(this.parentContext.performanceMonitor,748),to(function(){return b.getVisibilityState()}),Ym()):ID("visible");
this.document?ex(this.document,"DOMContentLoaded").pipe(zO(this.parentContext.performanceMonitor,739),yw(1)):ID(wl6("DOMContentLoaded"))},Jz9=function(A){return A.document!==null&&A.document.visibilityState!==void 0};
ZW.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
ZW.prototype.querySelector=function(A){return this.document?this.document.querySelector(A):null};
ZW.prototype.querySelectorAll=function(A){return this.document?_.xC(this.document.querySelectorAll(A)):[]};
ZW.prototype.elementFromPoint=function(A,Q){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;A=this.document.elementFromPoint(A,Q);return A===null?null:new EX(A)};
var BNX=function(A,Q,b){b=b===void 0?!1:b;if(Q.ref===void 0||!A.document)return ID(Q).pipe(zO(A.parentContext.performanceMonitor,749));var f=new my(1),a=function(){f.next(Q)};
b||HsL(Q.ref,a);m1A(Q.ref,a);return f.pipe(zO(A.parentContext.performanceMonitor,749),yw(1))};
_.Qr.Object.defineProperties(ZW.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return n5Y(this.global,"document")?this.global.document||null:null}}});var duy=_.sC(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),FTF=_.sC(["./reach_worklet.js"]),Gzi=_.sC(["./reach_worklet.js"]),COp=_.sC(["./reach_worklet.html"]),qNM=_.sC(["./reach_worklet.js"]),oqK=_.sC(["./reach_worklet.js"]);_.GH(COp);_.GH(qNM);_.GH(oqK);var wQ={left:0,top:0,width:0,height:0};var tFY,rMK,jtx,R7W,mR,e7r,h71,Wl$,xt6,cmX,xN$,cMK;tFY=function(A,Q,b,f,a,T,G){var p="";A&&(p+=A+":");b&&(p+="//",Q&&(p+=Q+"@"),p+=b,f&&(p+=":"+f));a&&(p+=a);T&&(p+="?"+T);G&&(p+="#"+G);return p};
rMK=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Nq=function(A){return A.match(rMK)};
_.jO=function(A,Q){return A?Q?decodeURI(A):decodeURIComponent(A):A};
jtx=function(A){A=_.Nq(A)[1]||null;!A&&_.by.self&&_.by.self.location&&(A=_.by.self.location.protocol.slice(0,-1));return A?A.toLowerCase():""};
_.sp=function(A){return _.jO(_.Nq(A)[3]||null,!0)};
_.LJ=function(A){return _.jO(_.Nq(A)[5]||null,!0)};
_.Ja4=function(A){var Q=A.indexOf("#");return Q<0?null:A.slice(Q+1)};
R7W=function(A){A=_.Nq(A);return tFY(A[1],A[2],A[3],A[4])};
_.gqM=function(A){A=_.Nq(A);return tFY(A[1],null,A[3],A[4])};
_.yr=function(A){A=_.Nq(A);return tFY(null,null,null,null,A[5],A[6],A[7])};
_.QI=function(A){var Q=A.indexOf("#");return Q<0?A:A.slice(0,Q)};
mR=function(A,Q){A=_.Nq(A);Q=_.Nq(Q);return A[3]==Q[3]&&A[1]==Q[1]&&A[4]==Q[4]};
e7r=function(A,Q){if(A){A=A.split("&");for(var b=0;b<A.length;b++){var f=A[b].indexOf("="),a=null;if(f>=0){var T=A[b].substring(0,f);a=A[b].substring(f+1)}else T=A[b];Q(T,a?Qb(a):"")}}};
h71=function(A){var Q=A.indexOf("#");Q<0&&(Q=A.length);var b=A.indexOf("?");if(b<0||b>Q){b=Q;var f=""}else f=A.substring(b+1,Q);return[A.slice(0,b),f,A.slice(Q)]};
Wl$=function(A,Q){return Q?A?A+"&"+Q:Q:A};
_.vq$=function(A,Q){if(!Q)return A;A=h71(A);A[1]=Wl$(A[1],Q);return A[0]+(A[1]?"?"+A[1]:"")+A[2]};
_.EqL=function(A,Q,b){if(Array.isArray(Q))for(var f=0;f<Q.length;f++)_.EqL(A,String(Q[f]),b);else Q!=null&&b.push(A+(Q===""?"":"="+_.ud(Q)))};
_.lu=function(A){var Q=[],b;for(b in A)_.EqL(b,A[b],Q);return Q.join("&")};
_.$Q=function(A,Q){Q=_.lu(Q);return _.vq$(A,Q)};
_.yH=function(A,Q,b){b=b!=null?"="+_.ud(b):"";return _.vq$(A,Q+b)};
xt6=function(A,Q,b,f){for(var a=b.length;(Q=A.indexOf(b,Q))>=0&&Q<f;){var T=A.charCodeAt(Q-1);if(T==38||T==63)if(T=A.charCodeAt(Q+a),!T||T==61||T==38||T==35)return Q;Q+=a+1}return-1};
cmX=/#|$/;_.EO=function(A,Q){var b=A.search(cmX),f=xt6(A,0,Q,b);if(f<0)return null;var a=A.indexOf("&",f);if(a<0||a>b)a=b;f+=Q.length+1;return Qb(A.slice(f,a!==-1?a:0))};
xN$=/[?&]($|#)/;_.fD=function(A,Q){for(var b=A.search(cmX),f=0,a,T=[];(a=xt6(A,f,Q,b))>=0;)T.push(A.substring(f,a)),f=Math.min(A.indexOf("&",a)+1||b,b);T.push(A.slice(f));return T.join("").replace(xN$,"$1")};
_.zD=function(A,Q,b){return _.yH(_.fD(A,Q),Q,b)};
cMK=function(A){var Q=h71(window.location.href),b=Q[1],f=[];b&&b.split("&").forEach(function(a){var T=a.indexOf("=");T=T>=0?a.slice(0,T):a;A.hasOwnProperty(T)||f.push(a)});
Q[1]=Wl$(f.join("&"),_.lu(A));return Q[0]+(Q[1]?"?"+Q[1]:"")+Q[2]};var qOf=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(qOf,_.fp);qOf.prototype.getVersion=function(){return _.gA(this,2)};var Cmf=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Cmf,_.fp);var VYy=function(A,Q){return _.nt(A,2,Q)},HK4=function(A,Q){return _.nt(A,3,Q)};
Cmf.prototype.getModel=function(){return _.gA(this,4)};
var n$6=function(A,Q){return _.nt(A,4,Q)},JTy=function(A,Q){return _.nt(A,5,Q)},I4J=function(A,Q){return _.nt(A,9,Q)},iKA=function(A,Q){return qP(A,10,Q)},KTf=function(A,Q){return _.Bo(A,11,Q)},OKF=function(A,Q){return _.nt(A,1,Q)},kz4=function(A,Q){return _.Bo(A,7,Q)};var MY6="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var N1=function(A,Q,b,f){A=A===void 0?window:A;Q=Q===void 0?null:Q;b=b===void 0?new bFp:b;f=f===void 0?BvF():f;NWL.call(this);var a=this;this.global=A;this.debugChannel=Q;this.performanceMonitor=b;this.onPageHide=$L9(function(){return ex(a.global,"pagehide")}).pipe(zO(this.performanceMonitor,941));
this.onLoad=$L9(function(){return ex(a.global,"load")}).pipe(zO(this.performanceMonitor,738),yw(1));
this.onResize=$L9(function(){return ex(a.global,"resize")}).pipe(zO(this.performanceMonitor,741));
this.onMessage=$L9(function(){return ex(a.global,"message")}).pipe(zO(this.performanceMonitor,740));
this.document=new ZW(this.global,this);this.timeProvider=new fKx(new T9L(this.intrinsicFunctionNamespace,this.performanceMonitor),new aKW(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Avp(new Fjp(this),new Osv(this),new Kw(this,new pMY(this)),new Kw(this,new Irr(this)),new Kw(this,new wh(this)))};
_.O(N1,NWL);var VH=function(A){var Q=A.global;return!!A.global.HTMLFencedFrameElement&&!!Q.fence&&typeof Q.fence.reportEvent==="function"};
_.d=N1.prototype;_.d.reportFencedFrameEvent=function(A){VH(this)&&this.global.fence.reportEvent(A)};
_.d.getOnBackgrounded=function(){return this.onPageHide.pipe(zO(this.performanceMonitor,942),Lt(this.queue),to(function(){}))};
_.d.postMessage=function(A,Q,b){b=b===void 0?[]:b;this.global.postMessage(A,Q,b)};
_.d.getWidth=function(){return kHW(this.global)?this.global.width:0};
_.d.getHeight=function(){return kHW(this.global)?this.global.height:0};
_.d.isMobile=function(){return XMv()||SLp()};
var x5=function(A,Q){try{var b=SOC(Q,A.global,A.isMobile());return{left:b.left,top:b.top,width:b.getWidth(),height:b.getHeight()}}catch(f){return wQ}};
N1.prototype.validate=function(){var A=this.beaconFactory.isSupported()||VH(this);return this.global&&this.timeProvider.available()&&A};
var x1A=function(A){return(A=tY4(A.global))?LN(A):null};
_.Qr.Object.defineProperties(N1.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(A){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!kHW(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}}});_.z7W=!_.S1&&!_.peA();var OHb=function(A){return A};var kVi=function(A){return A.pipe(va(function(Q){var b=Q.endOfSessionReason;var f;return((f=Q.viewable)==null?void 0:f.extrapolateToNow().value)||b!=void 0}),yw(1),uM())};var WTi=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},v$i=function(A){var Q=A.sequenceNumber.toString(10).padStart(2,"0");
Q=""+A.startTime+Q;A.sequenceNumber<99&&A.sequenceNumber++;return Q};var iH4=pN(ak(function(A){return A.endOfSessionReason===void 0}),to(function(A){return Object.assign({},A,{timestamps:q1(A)})}),va(function(A){var Q=A.viewable;
A=A.timestamps;var b;return(b=Q==null?void 0:Q.extrapolateUsingTimestampMap(A).value)!=null?b:!1}),to(function(A){var Q=A.beaconFactory;
var b=A.timestampedExposureHistory;var f=A.timeOnScreen;var a=A.binaryContext;A=A.timestamps;if(Q===void 0||b===void 0||f===void 0||a===void 0)return!1;if(f.extrapolateUsingTimestampMap(A).value.every(function(T){return T>=0}))return!0;
b=b.map(function(T){return T.timestamp+":"+T.value}).join(",");
f=E$6({bin:a,tos:f},A);Q.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+f+("&eh="+b)).sendNow();return!0}),ak(function(A){return!A}),uM());var cTC=function(A){return{id:A.pingId,mcvt:A.maxConsecutiveViewTime,p:A.creativePosition,asp:A.adSpeedPosition,tm:A.totalMeasurementTime,tu:A.totalUnviewedTime,mtos:A.maxTimeOnScreen,tos:A.timeOnScreen,v:A.binaryVersion,bin:A.binaryContext,avms:A.measurementStrategy,bs:A.browserSize,mc:A.maximumExposure,"if":A.crossDomainIframeState,vu:A.delayedImpressionJsState,app:A.inApp,mse:A.mraidError,mtop:A.mraidSituation,itpl:A.injectedTemplateId,adk:A.adKey,exk:A.awbidKey,rs:A.requestSource,la:A.isLargeAd,
cr:A.isContentRecommendationAd,uach:A.userAgentClientHints,vs:A.viewState,r:A.reasonCode,pay:A.hasCpmavUrl,co:A.clientPingOrderCounter,rst:A.adRenderStartTime,rpt:A.adRenderPeriodTime,isd:A.initialScrollDepth,lsd:A.loadedScrollDepth,context:A.errorContext,msg:A.errorMessage,stack:A.errorStack,name:A.errorName,ec:A.hasElementChanged,sfr:A.strategyFailureReasons,met:A.creativeSearchResult,wmsd:A.webMeasurementStartDiagnostic,pv:A.pageVisible,epv:A.eosPageVisible,pbe:A.inStatefulBeaconExperiment,fle:A.inFetchLaterBeaconExperiment,
vae:A.inViewableAttributionExperiment,spb:A.supportsPendingBeacon,sfl:A.supportsFetchLater,ffslot:A.isFencedFrameSlotTurtlex,reach:A.sharedStorageReachMode,io2:A.v2VisibilityBitVector,rxdbg:A.rxDebugger,omida:A.omidAppId,omidp:A.omidPartner,omidpv:A.omidPartnerVersion,omidor:A.omidOcclusionReasons,omidv:A.omidVersion,omids:A.omidSessionType,omidam:A.omidAccessMode,omidct:A.omidCreativeType,omidia:A.omidInApp,omiddc:A.omidDeviceCategory,omidlat:A.omidLastActivity,omiddit:A.omidDeviceIdleTime,qid:A.errorEscapedQueryId}};var nQb=function(A){var Q=[];return A.pipe(to(function(b){var f=b.beaconFactory,a=b.fetchBeaconFactory,T=b.timeOnScreen,G=b.timeOnScreenUrlPrefixes,p=b.payloadMapper,P=b.timeOnScreenPingId,U=b.timeOnScreenReason,L=b.urlSerializer,M=b.viewable,l=b.hasImpressionFired,J=b.inStatefulBeaconExperiment,n=b.supportsPendingBeacon,t=b.supportsFetchLater,g=b.turtlexReportEventData;if(!b.geometryMeasurable||!l||b.maxTimeOnScreen===void 0||T===void 0||G===void 0||p===void 0||P===void 0||L===void 0||f===void 0)return!1;
if(b.isTurtlex){if(U===void 0)return!1;G=b.reportFencedFrameEvent;if(!G)return!1;G({eventType:"active-view-time-on-screen",eventData:g!=null?g:"",destination:["buyer"]});return!0}if(!(J||t||U))return!1;g=q1(b);var e;M=(e=M==null?void 0:M.extrapolateUsingTimestampMap(g).value)!=null?e:!1;e=L(Object.assign({},b,{pingId:P,viewState:M?4:3,reasonCode:U!=null?U:"u",payloadMapper:p,urlPrefixes:G}),g);if(J){for(;Q.length>G.length;)b=void 0,(b=Q.shift())==null||b.deactivate();e.forEach(function(D,w){w>=Q.length?
Q.push(f.makeBeacon(D)):Q[w].url=D});
return n&&a&&U!==void 0?(e.forEach(function(D){a.makeBeacon(D).sendNow()}),!0):U!==void 0}if(n&&a&&U!==void 0)return e.forEach(function(D){a.makeBeacon(D).sendNow()}),!0;
if(t&&a){for(;Q.length>G.length;)n=void 0,(n=Q.shift())==null||n.deactivate();var x=L(Object.assign({},b,{pingId:P,viewState:M?4:3,reasonCode:U!=null?U:"u",payloadMapper:p,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),g)[0];e.forEach(function(D,w){w>=Q.length?Q.push(f.makeBeacon(x,{endOfSession:!0})):Q[w].url=x});
return U!==void 0?(e.forEach(function(D){a.makeBeacon(D).sendNow()}),!0):U!==void 0}return U!==void 0?(e.forEach(function(D){f.makeBeacon(D).sendNow()}),!0):!1}),ak(function(b){return!b}),uM())};var IRU=pN(va(function(A){return A.immediateUrlPrefixes!==void 0&&A.payloadMapper!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),va(function(A){return $ui(A)!==null}),YOy(function(A){return A.activeViewUnmeasurableEvent},function(A){return A.emit}),to(function(A){if(A.isTurtlex){var Q=A.reportFencedFrameEvent;
if(Q){var b;Q({eventType:"active-view-unmeasurable",eventData:(b=A.turtlexReportEventData)!=null?b:"",destination:["buyer"]})}}else{b=void 0;var f=$ui(A);if(f==="x"){var a,T=(a=A.geometricMeasurementErrors)!=null?a:A.contextValidationErrors;T&&(Q=T.stack,b=T.message)}A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:2,reasonCode:f,errorMessage:b,errorStack:Q}),q1(A)).forEach(function(G){A.beaconFactory.makeBeacon(G).sendNow()})}}),
yw(1),uM());var NvU=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var KR9=pN(va(function(A){return A.payloadMapper!==void 0&&A.immediateUrlPrefixes!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),to(function(A){return Object.assign({},A,{timestamps:q1(A)})}),va(function(A){var Q=A.viewable;
var b=A.hasImpressionFired;A=A.timestamps;var f;return!!b&&((f=Q==null?void 0:Q.extrapolateUsingTimestampMap(A).value)!=null?f:!1)}),YOy(function(A){return A.activeViewViewableEvent},function(A){return A.emit}),to(function(A){var Q=A.beaconFactory,b=A.turtlexReportEventData;
if(A.isTurtlex){var f=A.reportFencedFrameEvent;if(!f)return!1;f({eventType:"active-view-viewable",eventData:b!=null?b:"",destination:["buyer"]});return!0}b=A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:4,reasonCode:"v"}),A.timestamps);(f=A.cpmavUrls)&&f.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(f,A).forEach(function(a){Q.makeBeacon(a).sendNow()});
(f=A.viewableRelayUrls)&&f.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(f,A).forEach(function(a){Q.makeBeacon(a).sendNow()});
b.forEach(function(a){Q.makeBeacon(a,{attributionEnabled:A.isViewableAttributionEnabled}).sendNow()});
return!0}),ak(function(A){return!A}),uM());var ckY=to(function(A){return[A.value.topWindowViewportExternalGeometry.width,A.value.topWindowViewportExternalGeometry.height]});var cl=function(A,Q){this.callback=A;this.options=Q;this.intersectionObserverV2=this.intersectionObserverV1=null},nAy=function(A,Q){Q?A.intersectionObserverV2||(Q=Object.assign({},A.options,{delay:100,
trackVisibility:!0}),A.intersectionObserverV2=new IntersectionObserver(A.callback,Q)):A.intersectionObserverV1||(A.intersectionObserverV1=new IntersectionObserver(A.callback,A.options))},wdK=function(A,Q){A=Q?A.intersectionObserverV2:A.intersectionObserverV1;
if(!A)throw new s9y;return A};
cl.prototype.observe=function(A,Q){wdK(this,A).observe(Q)};
cl.prototype.unobserve=function(A,Q){wdK(this,A).unobserve(Q)};
cl.prototype.disconnect=function(A){wdK(this,A).disconnect()};
cl.prototype.takeRecords=function(A){return wdK(this,A).takeRecords()};var P46={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:wQ,topWindowViewportExternalGeometry:wQ,measurementRequests:new Pl,elementGeometrySourceName:"ns",elementGeometry:wQ,intersectionGeometry:wQ,viewportLocalAppOffset:{x:0,y:0}};var tBW=uw(pN(to(function(A){var Q;return(Q=A.exposureOverride)!=null?Q:IDi(A)}),to(function(A){return isFinite(A)?A:0}))),WMe=uw(pN(to(function(A){var Q;
return(Q=A.exposureOverride)!=null?Q:IDi(A)}),to(function(A){return isFinite(A)?A:-1})));var YE=function(A,Q){this.a=A;this.b=Q;if(A.clock.timeline!==Q.clock.timeline)throw Error();};
YE.prototype.equivalentTo=function(A){return A instanceof YE?this.a.equivalentTo(A.a)&&this.b.equivalentTo(A.b):!1};
YE.prototype.extrapolateToTime=function(A){var Q=this.a.extrapolateToTime(A).value,b=this.b.extrapolateToTime(A).value;return{timestamp:A,value:[Q,b]}};
_.Qr.Object.defineProperties(YE.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 A=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),Q=this.a.lastMeasurement.timestamp.equals(A)?this.a.lastMeasurement.value:this.a.extrapolateToTime(A).value,b=this.b.lastMeasurement.timestamp.equals(A)?this.b.lastMeasurement.value:this.b.extrapolateToTime(A).value;return{timestamp:A,value:[Q,b]}}}});var DW=function(A,Q){this.input=A;this.mapFunction=Q;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
DW.prototype.equivalentTo=function(A){return A instanceof DW?this.input.equivalentTo(A.input)&&this.mapFunction===A.mapFunction:!1};
DW.prototype.extrapolateToTime=function(A){A=this.input.extrapolateToTime(A);return{timestamp:A.timestamp,value:this.mapFunction(A.value)}};
_.Qr.Object.defineProperties(DW.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var $E=function(){};
$E.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
$E.prototype.extrapolateUsingTimestampMap=function(A){var Q=this.clock.timeline,b,f=(b=A.get(Q))!=null?b:this.clock.now();A.set(Q,f);return this.extrapolateToTime(f)};
$E.prototype.map=function(A){return new uKv(this,A)};
$E.prototype.joinWith=function(A){return new Zs9(this,A)};
var Zs9=function(){YE.apply(this,arguments);this.map=$E.prototype.map;this.joinWith=$E.prototype.joinWith;this.extrapolateToNow=$E.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$E.prototype.extrapolateUsingTimestampMap};
_.O(Zs9,YE);var uKv=function(){DW.apply(this,arguments);this.map=$E.prototype.map;this.joinWith=$E.prototype.joinWith;this.extrapolateToNow=$E.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$E.prototype.extrapolateUsingTimestampMap};
_.O(uKv,DW);var Y5=function(A,Q){this.lastMeasurement=Q;this.extrapolateToNow=$E.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=$E.prototype.extrapolateUsingTimestampMap;this.map=$E.prototype.map;this.joinWith=$E.prototype.joinWith;this.clock=A};
Y5.prototype.equivalentTo=function(A){return A.active};
Y5.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Qr.Object.defineProperties(Y5.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var xzW=to(function(A){if(A.value.viewportGeometrySourceName==="omid"){if(A.value.elementGeometrySourceName==="nio")return"omio";if(A.value.elementGeometrySourceName==="geo")return"omgeo"}return A.value.elementGeometrySourceName==="geo"||A.value.elementGeometrySourceName==="nio"?A.value.viewportGeometrySourceName:A.value.elementGeometrySourceName});var C4b=pN(va(function(A){return!isNaN(A)}),QE(function(A,Q){return isNaN(A)?Q:Math.min(A,Q)},NaN),Ym());var rkY=uw(pN(to(function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.exposedViewportLocalGeometry.width*A.exposedViewportLocalGeometry.height)}),to(function(A){return isFinite(A)?Math.min(1,A):0})));var EA9=pN(uw(to(function(A){A=A.exposureOverride?A.elementGeometry.width*A.elementGeometry.height*A.exposureOverride/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height):A.intersectionGeometry.width*A.intersectionGeometry.height/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height);return isFinite(A)?A:0})));var u_F=function(A,Q){var b=this;this.timeProvider=A;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=Q.pipe(Ym()).subscribe(function(f){ykW(b);b.measurementRequestObserver=f})},Y7f=function(A,Q){ykW(A);
A.lastMeasurementRequest=A.timeProvider.setTimeout(function(){var b;return void((b=A.measurementRequestObserver)==null?void 0:b.next())},Q)},ykW=function(A){A.lastMeasurementRequest!==null&&A.timeProvider.clearTimeout(A.lastMeasurementRequest);
A.lastMeasurementRequest=null};
u_F.prototype.dispose=function(){ykW(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var yMj=function(){};var LRC=function(A,Q){this.context=A;this.strategies=Q};
_.O(LRC,yMj);LRC.prototype.buildGeometrySource=function(A,Q){var b=this.strategies.map(function(T){return T.buildGeometrySource(A,Q)}),f=mzX(b.map(function(T){return T.geometrySource})),a=f.capturedErrors.pipe(YNM());
return{geometrySource:f.chain.pipe(Lt(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:a,strategyErrors:f.capturedErrors}].concat(_.ri(b.map(function(T){return T.additionalOutputs}))))}};
var YNM=function(){return QE(function(A,Q){Q instanceof t3?A.push(Q.measurementStrategyFailureReason):A.push(-1);return A},[])};var lR9=function(A,Q){this.context=A;this.poller=Q};
_.O(lR9,yMj);lR9.prototype.buildGeometrySource=function(A,Q){var b=AzJ(bH4(this.context,this.poller),X_J(this.context,Q.requestSource));return{geometrySource:s7W(A.measurableCreative.pipe(b),Q.inApp),additionalOutputs:{}}};var M6A=function(A,Q,b){b=b===void 0?KMb(A,Q):b;this.context=A;this.intersectionObserverStrategy=b};
_.O(M6A,yMj);M6A.prototype.buildGeometrySource=function(A,Q){var b=this.intersectionObserverStrategy(Q.useV2);return{geometrySource:s7W(A.measurableCreative.pipe(b,izJ(this.context)),Q.inApp),additionalOutputs:{}}};var DNK=function(A,Q,b){var f=f===void 0?Symbol():f;this.element=A;this.immediateUrls=Q;this.timeOnScreenUrls=b;this.symbol=f};var w_6=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),FRf=Object.freeze([1,.75,w_6.exposureThreshold,w_6.largeAdExposureThreshold,0]);var Ngb=function(A,Q){Q=Q===void 0?36E5:Q;var b=b===void 0?!0:b;this.creatives=new Pl;this.elementsToUnregister=new Pl;this.elementMap=new Map;var f=new N1(window,null);f.beaconFactory=new Kw(f,new wh(f));Uq4(f,this.creatives,this.elementsToUnregister,A,Q,b).subscribe()},AN9=function(A,Q,b,f){if(!A.elementMap.has(Q)){var a=new EX(Q);
A.elementMap.set(Q,a);A.creatives.next(new DNK(a,b,f))}},mUb=function(A,Q){A.elementsToUnregister.next(Q);
var b=A.elementMap.get(Q);b!==void 0&&(b.release(),A.elementMap.delete(Q))};var X8C=function(A){var Q=A.url;A=A.uaDataValues;this.JSC$9418_url_=Q;this.uaDataValues_=A;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var b=/[?&]([^&=]+)=([^&]*)/g;A=b.exec(Q);)this.urlParamValues_[A[1]]=A[2]},SGU=function(A){A=A.uaDataValues_;
if(!A)return"";var Q=mK("uap",A.platform)+mK("uapv",A.platformVersion)+mK("uafv",A.uaFullVersion)+mK("uaa",A.architecture)+mK("uam",A.model)+mK("uab",A.bitness);A.fullVersionList&&(Q+="&uafvl="+encodeURIComponent(A.fullVersionList.map(function(b){return encodeURIComponent(b.brand)+";"+encodeURIComponent(b.version)}).join("|")));
A.wow64!=null&&(Q+="&uaw="+Number(A.wow64));return Q.slice(1)};var $Np=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O($Np,_.fp);$Np.prototype.getId=function(){return _.gA(this,1)};var N_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(N_,_.fp);N_.prototype.getSeconds=function(){return j1(this,1)};
N_.prototype.setSeconds=function(A){return _.Dr(this,1,dx(A),"0")};_.vi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(_.vi,_.fp);_.vi.prototype.getSeconds=function(){return j1(this,1)};
_.vi.prototype.setSeconds=function(A){return _.Dr(this,1,dx(A),"0")};
_.NxY=function(A){var Q=Number(hr(A,1));A=_.Tz(A,2);return new Date(Q*1E3+A/1E6)};var sJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(sJ,_.fp);sJ.prototype.getUrl=function(){return _.gA(this,1)};
sJ.prototype.setUrl=function(A){return _.Nl(this,1,A)};
sJ.prototype.getHeight=function(){return _.Tz(this,2)};
sJ.prototype.getWidth=function(){return _.Tz(this,3)};var mQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(mQ,_.fp);mQ.prototype.getAspectRatio=function(){return RI(this,1)};
mQ.prototype.getDuration=function(){return _.dO(this,N_,2)};var stY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(stY,_.fp);var mN9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(mN9,_.fp);var AsW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(AsW,_.fp);var QTL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(QTL,_.fp);var bpN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(bpN,_.fp);var fiY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(fiY,_.fp);var aiN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(aiN,_.fp);var T$r=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(T$r,_.fp);var dsp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(dsp,_.fp);var A1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(A1,_.fp);var Qt=[2,4,5,6,7];var FwW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(FwW,_.fp);var oI=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(oI,_.fp);_.d=oI.prototype;_.d.getId=function(){return _.dO(this,$Np,1)};
_.d.getName=function(){return _.gA(this,2)};
_.d.setDescription=function(A){return _.Nl(this,3,A)};
_.d.getUrl=function(){return _.gA(this,8)};
_.d.setUrl=function(A){return _.Nl(this,8,A)};
var b9=function(A){return _.fK(A,sJ,10,_.aL())};
oI.prototype.getOwner=function(A){var Q=_.cd(this,40,_.MN,3,!0);ZFF(Q,A);return Q[A]};
oI.prototype.getVersion=function(){return j1(this,45)};
var fG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(fG,_.fp);_.GYK=[0,wH9,ZLW];_.B$Y=[0,wH9,ZLW];var ph$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(ph$,_.fp);var aH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(aH,_.fp);aH.prototype.getStatus=function(){return _.e1(this,1)};
aH.prototype.removeItem=function(A){return G5i(this,2,A)};var PnK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(PnK,_.fp);PnK.prototype.getName=function(){return _.gA(this,8)};var Ts=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Ts,_.fp);Ts.prototype.getCommand=function(){return _.e1(this,1)};
Ts.prototype.getSource=function(){return _.dO(this,PnK,2)};
Ts.prototype.setVisible=function(A){return _.Ri(this,5,A)};
Ts.prototype.removeItem=function(A){return G5i(this,7,A)};var Xhj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Xhj,_.fp);Xhj.prototype.getCommand=function(){return _.e1(this,1)};
Xhj.prototype.removeItem=function(A){return G5i(this,4,A)};
var S$L=_.Sd(Xhj);var dr=function(A,Q,b){b=b===void 0?Error():b;var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=A;Q+=":";b instanceof Error?(this.message=Q+b.message,this.stack=b.stack||""):(this.message=Q+String(b),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(dr,Error);_.k$=function(){this.JSC$9476_disposed_=this.JSC$9476_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.k$.prototype.JSC$9476_disposed_=!1;_.k$.prototype.isDisposed=function(){return this.JSC$9476_disposed_};
_.k$.prototype.dispose=function(){this.JSC$9476_disposed_||(this.JSC$9476_disposed_=!0,this.disposeInternal())};
_.k$.prototype[Symbol.dispose]=function(){this.dispose()};
_.SY=function(A,Q){A.addOnDisposeCallback(_.Ol(_.AT,Q))};
_.k$.prototype.addOnDisposeCallback=function(A,Q){this.JSC$9476_disposed_?Q!==void 0?A.call(Q):A():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),Q&&(A=A.bind(Q)),this.onDisposeCallbacks_.push(A))};
_.k$.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Ft=function(A){_.k$.call(this);this.wpc=A};
_.O(Ft,_.k$);Ft.prototype.rus=function(){return this.wpc.f()};
Ft.prototype.cfb=function(A){return this.wpc.c(A)};
Ft.prototype.rH=function(A){return this.wpc.m(t69(A))};
Ft.prototype.tfG=function(A){return this.wpc.mws(t69(A))};
var bm=function(A){_.k$.call(this);var Q=this;this.vm=A;this.zRp="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.xVx=void 0;this.auf=this.vm.p;this.quK=this.q4x.bind(this);this.addOnDisposeCallback(function(){return void Usj(Q)})};
_.O(bm,_.k$);var LwM=function(A){var Q;return _.B(function(b){if(b.nextAddress==1){if(!A.vm.wpc)throw new dr(30,"NWA");return A.cFr?b.return(A.cFr):b.yield(A.vm.wpc(),2)}Q=b.yieldResult;A.cFr=new Ft(Q);return b.return(A.cFr)})};
bm.prototype.snapshot=function(A){return this.vm.s(Object.assign({},A.lN&&{c:A.lN},A.pMA&&{s:A.pMA},A.iMH!==void 0&&{p:A.iMH}))};
bm.prototype.q4x=function(A){this.vm.e(A)};
bm.prototype.q8g=function(A,Q){return this.vm.c(A,Q,!1)};
var Usj=function(A){A.xVx!==void 0&&(A.zRp.forEach(function(Q){var b;(b=A.xVx)==null||b.removeEventListener(Q,A.quK)}),A.xVx=void 0)};
bm.prototype.z1h=function(){return this.vm.l()};var Gs=function(){_.k$.apply(this,arguments);this.c3Y=1};
_.O(Gs,_.k$);Gs.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.c3Y++;return this};
Gs.prototype.dispose=function(){--this.c3Y||_.k$.prototype.dispose.call(this)};var Mdp=function(A){this.qdQ=A;A.addNewEventMetric("/client_streamz/bg/frs",_.Gz("mk"))};
Mdp.prototype.record=function(A,Q){this.qdQ.record("/client_streamz/bg/frs",A,Q)};
var liM=function(A){this.i7Q=A;A.addNewEventMetric("/client_streamz/bg/wrl",_.Gz("mn"),Fl("ac"),Fl("sc"),_.Gz("rk"),_.Gz("mk"))};
liM.prototype.record=function(A,Q,b,f,a,T){this.i7Q.record("/client_streamz/bg/wrl",A,Q,b,f,a,T)};
var KwL=function(A){this.kGY=A;A.addNewCounter("/client_streamz/bg/ec",_.Gz("en"),_.Gz("mk"))};
KwL.prototype.increment=function(A,Q){this.kGY.JSC$9729_incrementCounter("/client_streamz/bg/ec",A,Q)};
var ip9=function(A){this.owK=A;A.addNewEventMetric("/client_streamz/bg/el",_.Gz("en"),_.Gz("mk"))};
ip9.prototype.record=function(A,Q,b){this.owK.record("/client_streamz/bg/el",A,Q,b)};
var Jsp=function(A){this.lgA=A;A.addNewCounter("/client_streamz/bg/cec",Fl("ec"),_.Gz("mk"))};
Jsp.prototype.increment=function(A,Q){this.lgA.JSC$9729_incrementCounter("/client_streamz/bg/cec",A,Q)};
var Vd$=function(A){this.rKy=A;A.addNewCounter("/client_streamz/bg/po/csc",Fl("cs"),_.Gz("mk"))};
Vd$.prototype.increment=function(A,Q){this.rKy.JSC$9729_incrementCounter("/client_streamz/bg/po/csc",A,Q)};
var Opx=function(A){this.xtW=A;A.addNewCounter("/client_streamz/bg/po/ctav",_.Gz("av"),_.Gz("mk"))};
Opx.prototype.increment=function(A,Q){this.xtW.JSC$9729_incrementCounter("/client_streamz/bg/po/ctav",A,Q)};
var n81=function(A){this.jPQ=A;A.addNewCounter("/client_streamz/bg/po/cwsc",_.Gz("su"),_.Gz("mk"))};
n81.prototype.increment=function(A,Q){this.jPQ.JSC$9729_incrementCounter("/client_streamz/bg/po/cwsc",A,Q)};var TeX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(TeX,_.fp);var a1A=function(A,Q){return _.Yq(A,3,Q,XM4)};var kYp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(kYp,_.fp);var Iir=[1,2,3];var Hpv=[0,Iir,_.N1X,yUX,$py];var Cnx=[0,_.m_,[0,xpb,_.De]];var q$1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(q$1,_.fp);var o8Y=[1,2,3];var tdp=[0,o8Y,u9A,cUX,_.Ad,Cnx];var rsL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(rsL,_.fp);var jTj=[0,_.m_,Hpv,tdp];var Rxp=[0,_.s2];var g8W=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(g8W,_.fp);var exY=[0,_.s2,-1,_.NP];var hxL=[0,_.s2,-1,_.$U,_.NP];var WwK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(WwK,_.fp);var v8M=[1,2,3];var E8r=[0,v8M,_.Ad,exY,_.Ad,hxL,_.Ad,Rxp];var xsL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(xsL,_.fp);xsL.prototype.JSC$9549_serializeBinary=hxb([0,_.s2,E8r,sCi,_.m_,jTj,Ye4,DpX]);var cs9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(cs9,_.fp);var ucy=function(A){var Q=new xsL;Q=_.nt(Q,1,A.JSC$9665_metricName);var b=zxj(A);Q=_.Yq(Q,3,b,_.Pd);b=[];for(var f=[],a=_.F(A.cellMap.keys()),T=a.next();!T.done;T=a.next())f.push(T.value.split(","));for(a=0;a<f.length;a++){T=f[a];for(var G=A.cellType,p=A.getCells(T)||[],P=[],U=0;U<p.length;U++){var L=p[U],M=L&&L.cellValue;L=new q$1;switch(G){case 3:M=Number(M);Number.isFinite(M)&&lv(L,1,o8Y,dx(M));break;case 2:lv(L,2,o8Y,_.cM(Number(M)))}P.push(L)}G=P;for(p=0;p<G.length;p++){P=G[p];U=new rsL;P=_.Lp(U,
2,P);U=[];L=whW(A);for(M=0;M<L.length;M++){var l=L[M],J=T[M],n=new kYp;switch(l){case 3:lv(n,1,Iir,SF(String(J)));break;case 2:l=Number(J);Number.isFinite(l)&&lv(n,2,Iir,_.mj(l));break;case 1:lv(n,3,Iir,B9X(J==="true"))}U.push(n)}qP(P,1,U);b.push(P)}}qP(Q,4,b);return Q};var Zp$=function(A){if(!A)return"";if(/^about:(?:blank|srcdoc)$/.test(A))return window.origin||"";A.indexOf("blob:")===0&&(A=A.substring(5));A=A.split("#")[0].split("?")[0];A=A.toLowerCase();A.indexOf("//")==0&&(A=window.location.protocol+A);/^[\w\-]*:\/\//.test(A)||(A=window.location.href);var Q=A.substring(A.indexOf("://")+3),b=Q.indexOf("/");b!=-1&&(Q=Q.substring(0,b));b=A.substring(0,A.indexOf("://"));if(!b)throw Error("qa`"+A);if(b!=="http"&&b!=="https"&&b!=="chrome-extension"&&b!=="moz-extension"&&
b!=="file"&&b!=="android-app"&&b!=="chrome-search"&&b!=="chrome-untrusted"&&b!=="chrome"&&b!=="app"&&b!=="devtools")throw Error("ra`"+b);A="";var f=Q.indexOf(":");if(f!=-1){var a=Q.substring(f+1);Q=Q.substring(0,f);if(b==="http"&&a!=="80"||b==="https"&&a!=="443")A=":"+a}return b+"://"+Q+A};var Y$y=function(A,Q,b){var f=String(_.by.location.href);return f&&A&&Q?[Q,ysY(Zp$(f),A,b||null)].join(" "):null},ysY=function(A,Q,b){var f=[],a=[];
if((Array.isArray(b)?2:1)==1)return a=[Q,A],_.ZR(f,function(p){a.push(p)}),Dsp(a.join(" "));
var T=[],G=[];_.ZR(b,function(p){G.push(p.key);T.push(p.value)});
b=Math.floor((new Date).getTime()/1E3);a=T.length==0?[b,Q,A]:[T.join(":"),b,Q,A];_.ZR(f,function(p){a.push(p)});
A=Dsp(a.join(" "));A=[b,A];G.length==0||A.push(G.join(""));return A.join("_")},Dsp=function(A){var Q=vQ9();
Q.update(A);return Q.digestString().toLowerCase()};var B2=function(A){this.JSC$9560_document_=A||{cookie:""}},$sy;
_.d=B2.prototype;_.d.isEnabled=function(){if(!_.by.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};
_.d.set=function(A,Q,b){var f=!1;if(typeof b==="object"){var a=b.sameSite;f=b.secure||!1;var T=b.domain||void 0;var G=b.path||void 0;var p=b.maxAge}if(/[;=\s]/.test(A))throw Error("sa`"+A);if(/[;\r\n]/.test(Q))throw Error("ta`"+Q);p===void 0&&(p=-1);b=T?";domain="+T:"";G=G?";path="+G:"";f=f?";secure":"";p=p<0?"":p==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+p*1E3)).toUTCString();this.JSC$9560_document_.cookie=A+"="+Q+b+G+p+f+(a!=null?";samesite="+a:"")};
_.d.get=function(A,Q){for(var b=A+"=",f=(this.JSC$9560_document_.cookie||"").split(";"),a=0,T;a<f.length;a++){T=SA(f[a]);if(T.lastIndexOf(b,0)==0)return T.slice(b.length);if(T==A)return""}return Q};
_.d.remove=function(A,Q,b){var f=this.containsKey(A);this.set(A,"",{maxAge:0,path:Q,domain:b});return f};
_.d.getKeys=function(){return $sy(this).keys};
_.d.getValues=function(){return $sy(this).values};
_.d.isEmpty=function(){return!this.JSC$9560_document_.cookie};
_.d.getCount=function(){return this.JSC$9560_document_.cookie?(this.JSC$9560_document_.cookie||"").split(";").length:0};
_.d.containsKey=function(A){return this.get(A)!==void 0};
_.d.containsValue=function(A){for(var Q=$sy(this).values,b=0;b<Q.length;b++)if(Q[b]==A)return!0;return!1};
_.d.clear=function(){for(var A=$sy(this).keys,Q=A.length-1;Q>=0;Q--)this.remove(A[Q])};
$sy=function(A){A=(A.JSC$9560_document_.cookie||"").split(";");for(var Q=[],b=[],f,a,T=0;T<A.length;T++)a=SA(A[T]),f=a.indexOf("="),f==-1?(Q.push(""),b.push(a)):(Q.push(a.substring(0,f)),b.push(a.substring(f+1)));return{keys:Q,values:b}};
_.J$=new B2(typeof document=="undefined"?null:document);var sWX,N$L;sWX=function(){var A=_.by.__SAPISID||_.by.__APISID||_.by.__3PSAPISID||_.by.__1PSAPISID||_.by.__OVERRIDE_SID;if(A)return!0;typeof document!=="undefined"&&(A=new B2(document),A=A.get("SAPISID")||A.get("APISID")||A.get("__Secure-3PAPISID")||A.get("__Secure-1PAPISID"));return!!A};
N$L=function(A,Q,b,f){(A=_.by[A])||typeof document==="undefined"||(A=(new B2(document)).get(Q));return A?Y$y(A,b,f):null};
_.cuy=function(A){var Q=Zp$(_.by==null?void 0:_.by.location.href),b=[];if(sWX()){Q=Q.indexOf("https:")==0||Q.indexOf("chrome-extension:")==0||Q.indexOf("chrome-untrusted://new-tab-page")==0||Q.indexOf("moz-extension:")==0;var f=Q?_.by.__SAPISID:_.by.__APISID;f||typeof document==="undefined"||(f=new B2(document),f=f.get(Q?"SAPISID":"APISID")||f.get("__Secure-3PAPISID"));(f=f?Y$y(f,Q?"SAPISIDHASH":"APISIDHASH",A):null)&&b.push(f);Q&&((Q=N$L("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",A))&&b.push(Q),
(A=N$L("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",A))&&b.push(A))}return b.length==0?null:b.join(" ")};var sTr=function(){this.minSize=1024};
sTr.prototype.compress=function(A){var Q,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:return Q=new CompressionStream("gzip"),b=(new Response(Q.readable)).arrayBuffer(),f=Q.writable.getWriter(),T.yield(f.write((new TextEncoder).encode(A)),2);case 2:return T.yield(f.close(),3);case 3:return a=Uint8Array,T.yield(b,4);case 4:return T.return(new a(T.yieldResult))}})};
sTr.prototype.isSupported=function(A){return A<this.minSize?!1:typeof CompressionStream!=="undefined"};var msM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(msM,_.fp);var pG=function(A,Q){this.intervalMs=A;this.callback=Q;this.enabled=!1;this.nowFn=function(){return _.G0()};
this.lastTimeMs=this.nowFn()};
pG.prototype.setInterval=function(A){this.intervalMs=A;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
pG.prototype.start=function(){var A=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){A.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
pG.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
pG.prototype.tick=function(){var A=this;if(this.enabled){var Q=Math.max(this.nowFn()-this.lastTimeMs,0);Q<this.intervalMs*.8?this.timer=setTimeout(function(){A.tick()},this.intervalMs-Q):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Ao$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Ao$,_.fp);var QDj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(QDj,_.fp);var bNW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(bNW,_.fp);bNW.prototype.getTransmissionType=function(){return _.e1(this,1)};var zgC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(zgC,_.fp);zgC.prototype.getVersion=function(){return _.gA(this,2)};var P2=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(P2,_.fp);var czy=function(A){qP(wGU,1,A)};
P2.prototype.getModel=function(){return _.gA(this,6)};
var fFx=_.Sd(P2);var aFr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(aFr,_.fp);var EQ6=["platform","platformVersion","architecture","model","uaFullVersion"],wGU=new P2,xq4=null;var Xt=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Xt,_.fp);var Ti1=function(A){return _.FH(A,1,1)};var dLv=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A,4)};
_.O(dLv,_.fp);_.SV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A,36)};
_.O(_.SV,_.fp);_.SV.prototype.getExperimentIds=function(){return _.dO(this,msM,16)};var FyL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A,19)};
_.O(FyL,_.fp);FyL.prototype.setLogSource=function(A){return _.FH(this,2,A)};
FyL.prototype.setScheduler=function(A){return _.FH(this,10,A)};var Bi9=function(A,Q){this.isServiceWorkerScope=Q=Q===void 0?!1:Q;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new FyL;Number.isInteger(A)&&this.logRequest.setLogSource(A);Q||(this.locale=document.documentElement.getAttribute("lang"));GOr(this,new Xt)};
Bi9.prototype.setLogSource=function(A){this.logRequest.setLogSource(A);return this};
var GOr=function(A,Q){_.Lp(A.logRequest,1,Q);_.e1(Q,1)||Ti1(Q);A.isServiceWorkerScope||(Q=U3(A),_.gA(Q,5)||_.nt(Q,5,A.locale));A.uach&&(Q=U3(A),_.dO(Q,P2,9)||_.Lp(Q,9,A.uach))},paN=function(A,Q){A.transmissionType=Q},PMp=function(A){var Q=Q===void 0?EQ6:Q;
var b=A.isServiceWorkerScope?void 0:e2();b?uFC(b,Q).then(function(f){A.uach=fFx(f!=null?f:"[]");f=U3(A);_.Lp(f,9,A.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},U3=function(A){var Q=_.dO(A.logRequest,Xt,1);
Q||(Q=new Xt,GOr(A,Q));A=Q;Q=_.dO(A,aFr,11);Q||(Q=new aFr,_.Lp(A,11,Q));return Q};
Bi9.prototype.build=function(A,Q,b,f,a,T){Q=Q===void 0?0:Q;b=b===void 0?0:b;f=f===void 0?null:f;a=a===void 0?0:a;T=T===void 0?0:T;if(!this.isServiceWorkerScope){var G=U3(this);var p=new bNW;p=_.FH(p,1,this.transmissionType);p=_.Bo(p,2,this.isFinal);b=_.E2(p,3,b>0?b:void 0);b=_.E2(b,4,a>0?a:void 0);b=_.E2(b,5,T>0?T:void 0);a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;T=a[_.Tr]|0;b=XL(b,T)?b:Os4(b,a,T)?VFJ(b,a):new b.constructor(jF(a,T,!0));_.Lp(G,10,b)}G=this.logRequest.clone();b=Date.now().toString();
G=_.Gp(G,4,dx(b));A=A.slice();A=qP(G,3,A);f&&(G=new Ao$,f=_.E2(G,13,f),G=new QDj,f=_.Lp(G,2,f),G=new dLv,f=_.Lp(G,1,f),f=_.FH(f,2,9),_.Lp(A,18,f));Q&&_.kk(A,14,Q);return A};pK.prototype.currBackoffCount_=0;pK.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
pK.prototype.getValue=function(){return this.currValue_};
var Xaj=function(A){A.currBaseValue_=Math.min(A.maxValue_,A.currBaseValue_*A.backoffFactor_);A.currValue_=Math.min(A.maxValue_,A.currBaseValue_+(A.randomFactor_?Math.round(A.randomFactor_*(Math.random()-.5)*2*A.currBaseValue_):0));A.currBackoffCount_++};var fz9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A,8)};
_.O(fz9,_.fp);var SiL=_.Sd(fz9);var az9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(az9,_.fp);var LG;LG=new Tc4;var MY=function(A){_.k$.call(this);var Q=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9638_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$9638_sendBeaconApiEnabled=!1;this.logSource=A.logSource;this.getAuthHeaderValue=
A.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Bi9(A.logSource,A.isServiceWorkerScope);this.network=A.network||null;this.productID=A.productID||null;this.bufferSize=1E3;this.clearcutUrl=A.urlOverride||null;this.sessionIndex=A.sessionIndex||null;this.disableAutomaticFlush=A.disableAutomaticFlush||!1;this.withCredentials=!A.disableWithCredentials;this.isServiceWorkerScope=A.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!e2()&&!!e2().navigator&&e2().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(UL1())).searchParams&&!!(new URL(UL1())).searchParams.set;var b=Ti1(new Xt);GOr(this.logRequestBuilder,b);this.flushBackoff=new pK(1E4,3E5,.1);A=Lyv(this,A.backgroundJobDeferrer);this.JSC$9638_flushTimer=new pG(this.flushBackoff.getValue(),A);this.backupTimer=new pG(6E5,A);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Mxj(Q);
var f;(f=Q.metalogService)==null||f.flush()}}),document.addEventListener("pagehide",function(){Mxj(Q);
var f;(f=Q.metalogService)==null||f.flush()}))};
_.O(MY,_.k$);var Lyv=function(A,Q){return A.isBrowserSupported?Q?function(){Q().then(function(){A.flush()})}:function(){A.flush()}:function(){}};
MY.prototype.disposeInternal=function(){Mxj(this);this.JSC$9638_flushTimer.stop();this.backupTimer.stop();_.k$.prototype.disposeInternal.call(this)};
var lFp=function(A){A.clearcutUrl||(A.clearcutUrl=UL1());try{return(new URL(A.clearcutUrl)).toString()}catch(Q){return(new URL(A.clearcutUrl,e2().location.origin)).toString()}};
MY.prototype.dispatch=function(A){if(A instanceof _.SV)this.log(A);else try{var Q=new _.SV,b=A.serialize();var f=_.nt(Q,8,b);this.log(f)}catch(a){l9(this,4,1)}};
var l9=function(A,Q,b){A.metalogService&&A.metalogService.increment(Q,b)};
MY.prototype.log=function(A){l9(this,2,1);if(this.isBrowserSupported){A=A.clone();var Q=this.sequencePosition++;A=_.kk(A,21,Q);this.componentId&&_.nt(A,26,this.componentId);Q=A;if(tWb(_.O2(Q,1))==null){var b=Date.now();b=Number.isFinite(b)?b.toString():"0";_.Gp(Q,1,dx(b))}_.o1Y(_.O2(Q,15))!=null||_.kk(Q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=this.experimentIds.clone(),_.Lp(Q,16,b));l9(this,1,1);Q=this.pendingEvents.length-this.bufferSize+1;Q>0&&(this.pendingEvents.splice(0,Q),
this.numLogsDroppedSinceLastFlush+=Q,l9(this,3,Q));this.pendingEvents.push(A);this.disableAutomaticFlush||this.JSC$9638_flushTimer.enabled||this.JSC$9638_flushTimer.start()}};
MY.prototype.flush=function(A,Q){var b=this;if(this.pendingEvents.length===0)A&&A();else if(this.JSC$9638_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Ky9(this);else{var f=Date.now();if(this.noFlushUntilMs>f&&this.startWaitingMs<f)Q&&Q("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?paN(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var a=this.pendingEvents.length,
T=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),G=this.getAuthHeaderValue();if(G&&this.lastFailedAuth===G)Q&&Q("stale-auth-token");else{this.pendingEvents=[];this.JSC$9638_flushTimer.enabled&&this.JSC$9638_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;f=T.serialize();var p;this.JSC$9638_compressor&&this.JSC$9638_compressor.isSupported(f.length)&&
(p=this.JSC$9638_compressor.compress(f));var P=iNY(this,f,G),U=function(l){b.flushBackoff.reset();b.JSC$9638_flushTimer.setInterval(b.flushBackoff.getValue());if(l){var J=null;try{var n=JSON.stringify(JSON.parse(l.replace(")]}'\n","")));J=SiL(n)}catch(t){}J&&(l=Number(j1(J,1,_.g9("-1"))),l>0&&(b.startWaitingMs=Date.now(),b.noFlushUntilMs=b.startWaitingMs+l),syW(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,LG.fieldIndex),$xi(J,LG.fieldIndex),J=LG.ctor?LG.getExtensionFn(J,LG.ctor,LG.fieldIndex,
LG.JSC$8818_hasMessageId):LG.getExtensionFn(J,LG.fieldIndex,null,LG.JSC$8818_hasMessageId),J=J===null?void 0:J)&&(J=_.Tz(J,1,-1),J!==-1&&(b.flushBackoff=new pK(J<1?1:J,3E5,.1),b.JSC$9638_flushTimer.setInterval(b.flushBackoff.getValue())))}A&&A();b.numRetriesSinceLastSuccessfulFlush=0},L=function(l,J){var n=_.fK(T,_.SV,3,_.aL());
var t=Number(j1(T,14));Xaj(b.flushBackoff);b.JSC$9638_flushTimer.setInterval(b.flushBackoff.getValue());l===401&&G&&(b.lastFailedAuth=G);t&&(b.numLogsDroppedSinceLastFlush+=t);J===void 0&&(J=b.isRetryable(l));J&&(b.pendingEvents=n.concat(b.pendingEvents),b.disableAutomaticFlush||b.JSC$9638_flushTimer.enabled||b.JSC$9638_flushTimer.start());l9(b,7,1);Q&&Q("net-send-failed",l);++b.numRetriesSinceLastSuccessfulFlush},M=function(){b.network&&b.network.send(P,U,L)};
p?p.then(function(l){l9(b,5,a);P.requestHeaders["Content-Encoding"]="gzip";P.requestHeaders["Content-Type"]="application/binary";P.body=l;P.bodyType=2;M()},function(){l9(b,6,a);
M()}):M()}}}};
var iNY=function(A,Q,b){b=b===void 0?null:b;var f=f===void 0?A.withCredentials:f;var a={},T=new URL(lFp(A));b&&(a.Authorization=b);A.sessionIndex&&(a["X-Goog-AuthUser"]=A.sessionIndex,T.searchParams.set("authuser",A.sessionIndex));A.pageId&&(Object.defineProperty(a,"X-Goog-PageId",{value:A.pageId}),T.searchParams.set("pageId",A.pageId));return{url:T.toString(),body:Q,bodyType:1,requestHeaders:a,requestType:"POST",withCredentials:f,timeoutMillis:A.timeoutMillis}},Mxj=function(A){A.logRequestBuilder.isFinal=
!0;
A.flush();A.logRequestBuilder.isFinal=!1},Ky9=function(A){JoK(A,function(Q,b){Q=new URL(Q);
Q.searchParams.set("format","json");var f=!1;try{f=e2().navigator.sendBeacon(Q.toString(),b.serialize())}catch(a){}f||(A.isSendBeaconSupported=!1);return f})},JoK=function(A,Q){if(A.pendingEvents.length!==0){var b=new URL(lFp(A));
b.searchParams.delete("format");var f=A.getAuthHeaderValue();f&&b.searchParams.set("auth",f);b.searchParams.set("authuser",A.sessionIndex||"0");for(f=0;f<10&&A.pendingEvents.length;++f){var a=A.pendingEvents.slice(0,32),T=A.logRequestBuilder.build(a,A.numLogsDroppedSinceLastFlush,A.numRetriesSinceLastSuccessfulFlush,A.productID,A.persistedLogRecoveredCount,A.persistedLogExpiredCount);if(!Q(b.toString(),T)){++A.numRetriesSinceLastSuccessfulFlush;break}A.numLogsDroppedSinceLastFlush=0;A.numRetriesSinceLastSuccessfulFlush=
0;A.persistedLogRecoveredCount=0;A.persistedLogExpiredCount=0;A.pendingEvents=A.pendingEvents.slice(a.length)}A.JSC$9638_flushTimer.enabled&&A.JSC$9638_flushTimer.stop()}};
MY.prototype.isRetryable=function(A){return 500<=A&&A<600||A===401||A===0};
var UL1=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Vxr=function(){this.abortSupported=typeof AbortController!=="undefined"};
Vxr.prototype.send=function(A,Q,b){var f=this,a,T,G,p,P,U,L,M,l,J;return _.B(function(n){switch(n.nextAddress){case 1:return T=(a=f.abortSupported?new AbortController:void 0)?setTimeout(function(){a.abort()},A.timeoutMillis):void 0,_.ML(n,2,3),G=Object.assign({},{method:A.requestType,
headers:Object.assign({},A.requestHeaders)},A.body&&{body:A.body},A.withCredentials&&{credentials:"include"},{signal:A.timeoutMillis&&a?a.signal:null}),n.yield(fetch(A.url,G),5);case 5:p=n.yieldResult;if(p.status!==200){(P=b)==null||P(p.status);n.jumpTo(3);break}if((U=Q)==null){n.jumpTo(7);break}return n.yield(p.text(),8);case 8:U(n.yieldResult);case 7:case 3:_.KN(n);clearTimeout(T);_.Jo(n,0);break;case 2:L=_.Vw(n);switch((M=L)==null?void 0:M.name){case "AbortError":(l=b)==null||l(408);break;default:(J=
b)==null||J(400)}n.jumpTo(3)}})};
Vxr.prototype.getTransmissionType=function(){return 4};_.Xl=function(A,Q){Q=Q===void 0?"0":Q;_.k$.call(this);this.logSource=A;this.sessionIndex=Q;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9656_clearExperimentIds=this.productID=null;this.JSC$9656_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.O(_.Xl,_.k$);var QOy=function(A,Q){A.buildLabel=Q;return A},A$f=function(A,Q){A.network=Q;
return A},f1J=function(A,Q){A.JSC$9656_clearExperimentIds=Q},mqC=function(A){A.JSC$9656_sendBeaconApiEnabled=!0;
return A};
_.Xl.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Xl.prototype.build=function(){this.network||(this.network=new Vxr);var A=new MY({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.cuy,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.SY(this,A);if(this.buildLabel){var Q=this.buildLabel,b=
U3(A.logRequestBuilder);_.nt(b,7,Q)}A.JSC$9638_compressor=new sTr;this.componentId&&(A.componentId=this.componentId);this.productID&&(A.productID=this.productID);this.pageId&&(A.pageId=this.pageId);this.JSC$9656_clearExperimentIds&&((b=this.JSC$9656_clearExperimentIds)?(A.experimentIds||(A.experimentIds=new msM),Q=A.experimentIds,b=b.serialize(),_.nt(Q,4,b)):A.experimentIds&&_.Gp(A.experimentIds,4));this.JSC$9656_sendBeaconApiEnabled&&(A.JSC$9638_sendBeaconApiEnabled=A.isSendBeaconSupported);PMp(A.logRequestBuilder);
this.bufferSize&&(A.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(A);return A};var dQe=function(A,Q,b,f,a,T,G){A=A===void 0?-1:A;Q=Q===void 0?"":Q;b=b===void 0?"":b;f=f===void 0?!1:f;a=a===void 0?"":a;_.k$.call(this);this.logSource=A;this.componentId=Q;T?Q=T:(A=new _.Xl(A,"0"),A.componentId=Q,_.SY(this,A),b!==""&&(A.destinationUrl=b),f&&(A.serviceWorkerScopeEnabled=!0),a&&QOy(A,a),G&&A$f(A,G),Q=A.build());this.JSC$9660_transport=Q};
_.O(dQe,_.k$);dQe.prototype.flush=function(A){A=A||[];if(A.length){for(var Q=new cs9,b=[],f=0;f<A.length;f++){var a=A[f],T=ucy(a);b.push(T);a.clear()}qP(Q,1,b);this.JSC$9660_transport.dispatch(Q);this.JSC$9660_transport.flush()}};var ONW=function(A){this.cellValue=A};var KG=function(A,Q,b){this.JSC$9665_metricName=A;this.cellType=Q;this.fields=b||[];this.cellMap=new Map},whW=function(A){return A.fields.map(function(Q){return Q.fieldType})},zxj=function(A){return A.fields.map(function(Q){return Q.fieldName})};
_.d=KG.prototype;_.d.addCell=function(A){var Q=_.E$.apply(1,arguments),b=this.getCells(Q);b?b.push(new ONW(A)):this.JSC$9665_setCell(A,Q)};
_.d.JSC$9665_setCell=function(A){var Q=this.JSC$9665_getKey(_.E$.apply(1,arguments));this.cellMap.set(Q,[new ONW(A)])};
_.d.getCells=function(){var A=this.JSC$9665_getKey(_.E$.apply(0,arguments));return this.cellMap.has(A)?this.cellMap.get(A):void 0};
_.d.getCell=function(){var A=this.getCells(_.E$.apply(0,arguments));return A&&A.length?A[0]:void 0};
_.d.clear=function(){this.cellMap.clear()};
_.d.JSC$9665_getKey=function(){var A=_.E$.apply(0,arguments);return A?A.join(","):"key"};var nmL=function(A,Q){KG.call(this,A,3,Q)};
_.O(nmL,KG);nmL.prototype.JSC$9668_incrementCounterBy=function(A){var Q=_.E$.apply(1,arguments),b=0,f=this.getCell(Q);f&&(b=f.cellValue);this.JSC$9665_setCell(b+A,Q)};var kOx=function(A,Q){KG.call(this,A,2,Q)};
_.O(kOx,KG);kOx.prototype.record=function(A){this.addCell(A,_.E$.apply(1,arguments))};_.i9=function(A){this.id=A};
_.i9.prototype.toString=function(){return this.id};_.J1=function(A,Q){this.type=A instanceof _.i9?String(A):A;this.currentTarget=this.target=Q;this.defaultPrevented=this.propagationStopped_=!1};
_.J1.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.J1.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Vt=function(A,Q){_.J1.call(this,A?A.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;A&&this.init(A,Q)};
_.BD(_.Vt,_.J1);
_.Vt.prototype.init=function(A,Q){var b=this.type=A.type,f=A.changedTouches&&A.changedTouches.length?A.changedTouches[0]:null;this.target=A.target||A.srcElement;this.currentTarget=Q;Q=A.relatedTarget;Q||(b=="mouseover"?Q=A.fromElement:b=="mouseout"&&(Q=A.toElement));this.relatedTarget=Q;f?(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0):(this.offsetX=_.Le||A.offsetX!==void 0?A.offsetX:A.layerX,
this.offsetY=_.Le||A.offsetY!==void 0?A.offsetY:A.layerY,this.clientX=A.clientX!==void 0?A.clientX:A.pageX,this.clientY=A.clientY!==void 0?A.clientY:A.pageY,this.screenX=A.screenX||0,this.screenY=A.screenY||0);this.button=A.button;this.keyCode=A.keyCode||0;this.key=A.key||"";this.charCode=A.charCode||(b=="keypress"?A.keyCode:0);this.ctrlKey=A.ctrlKey;this.altKey=A.altKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pointerId=A.pointerId||0;this.pointerType=A.pointerType;this.state=A.state;
this.timeStamp=A.timeStamp;this.event_=A;A.defaultPrevented&&_.Vt.superClass_.preventDefault.call(this)};
_.Vt.prototype.stopPropagation=function(){_.Vt.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Vt.prototype.preventDefault=function(){_.Vt.superClass_.preventDefault.call(this);var A=this.event_;A.preventDefault?A.preventDefault():A.returnValue=!1};var IFL="closure_listenable_"+(Math.random()*1E6|0),O3=function(A){return!(!A||!A[IFL])};var HNM=0;var CMY=function(A,Q,b,f,a){this.listener=A;this.proxy=null;this.src=Q;this.type=b;this.capture=!!f;this.handler=a;this.key=++HNM;this.removed=this.callOnce=!1},qiY=function(A){A.removed=!0;
A.listener=null;A.proxy=null;A.src=null;A.handler=null};Po.prototype.add=function(A,Q,b,f,a){var T=A.toString();A=this.listeners[T];A||(A=this.listeners[T]=[],this.typeCount_++);var G=omN(A,Q,f,a);G>-1?(Q=A[G],b||(Q.callOnce=!1)):(Q=new CMY(Q,this.src,T,!!f,a),Q.callOnce=b,A.push(Q));return Q};
Po.prototype.remove=function(A,Q,b,f){A=A.toString();if(!(A in this.listeners))return!1;var a=this.listeners[A];Q=omN(a,Q,b,f);return Q>-1?(qiY(a[Q]),_.nCb(a,Q),a.length==0&&(delete this.listeners[A],this.typeCount_--),!0):!1};
var txp=function(A,Q){var b=Q.type;if(!(b in A.listeners))return!1;var f=_.Eb(A.listeners[b],Q);f&&(qiY(Q),A.listeners[b].length==0&&(delete A.listeners[b],A.typeCount_--));return f};
Po.prototype.removeAll=function(A){A=A&&A.toString();var Q=0,b;for(b in this.listeners)if(!A||b==A){for(var f=this.listeners[b],a=0;a<f.length;a++)++Q,qiY(f[a]);delete this.listeners[b];this.typeCount_--}return Q};
Po.prototype.getListener=function(A,Q,b,f){A=this.listeners[A.toString()];var a=-1;A&&(a=omN(A,Q,b,f));return a>-1?A[a]:null};
Po.prototype.hasListener=function(A,Q){var b=A!==void 0,f=b?A.toString():"",a=Q!==void 0;return _.j2.some(this.listeners,function(T){for(var G=0;G<T.length;++G)if(!(b&&T[G].type!=f||a&&T[G].capture!=Q))return!0;return!1})};
var omN=function(A,Q,b,f){for(var a=0;a<A.length;++a){var T=A[a];if(!T.removed&&T.listener==Q&&T.capture==!!b&&T.handler==f)return a}return-1};var ro9,jD1,RZL,eZ$,hZ9,q7,oP,EmY,Wyp,vmv,nG,xL$,gm1;ro9="closure_lm_"+(Math.random()*1E6|0);jD1={};RZL=0;_.jM=function(A,Q,b,f,a){if(f&&f.once)return q7(A,Q,b,f,a);if(Array.isArray(Q)){for(var T=0;T<Q.length;T++)_.jM(A,Q[T],b,f,a);return null}b=gm1(b);return O3(A)?A.listen(Q,b,_.ZU(f)?!!f.capture:!!f,a):eZ$(A,Q,b,!1,f,a)};
eZ$=function(A,Q,b,f,a,T){if(!Q)throw Error("va");var G=_.ZU(a)?!!a.capture:!!a,p=nG(A);p||(A[ro9]=p=new Po(A));b=p.add(Q,b,f,G,T);if(b.proxy)return b;f=hZ9();b.proxy=f;f.src=A;f.listener=b;if(A.addEventListener)_.RAJ||(a=G),a===void 0&&(a=!1),A.addEventListener(Q.toString(),f,a);else if(A.attachEvent)A.attachEvent(Wyp(Q.toString()),f);else if(A.addListener&&A.removeListener)A.addListener(f);else throw Error("wa");RZL++;return b};
hZ9=function(){var A=vmv,Q=function(b){return A.call(Q.src,Q.listener,b)};
return Q};
q7=function(A,Q,b,f,a){if(Array.isArray(Q)){for(var T=0;T<Q.length;T++)q7(A,Q[T],b,f,a);return null}b=gm1(b);return O3(A)?A.listenOnce(Q,b,_.ZU(f)?!!f.capture:!!f,a):eZ$(A,Q,b,!0,f,a)};
_.kp=function(A,Q,b,f,a){if(Array.isArray(Q))for(var T=0;T<Q.length;T++)_.kp(A,Q[T],b,f,a);else f=_.ZU(f)?!!f.capture:!!f,b=gm1(b),O3(A)?A.unlisten(Q,b,f,a):A&&(A=nG(A))&&(Q=A.getListener(Q,b,f,a))&&oP(Q)};
oP=function(A){if(typeof A==="number"||!A||A.removed)return!1;var Q=A.src;if(O3(Q))return txp(Q.eventTargetListeners_,A);var b=A.type,f=A.proxy;Q.removeEventListener?Q.removeEventListener(b,f,A.capture):Q.detachEvent?Q.detachEvent(Wyp(b),f):Q.addListener&&Q.removeListener&&Q.removeListener(f);RZL--;(b=nG(Q))?(txp(b,A),b.typeCount_==0&&(b.src=null,Q[ro9]=null)):qiY(A);return!0};
EmY=function(A,Q,b,f,a){b=gm1(b);f=!!f;return O3(A)?A.getListener(Q,b,f,a):A?(A=nG(A))?A.getListener(Q,b,f,a):null:null};
Wyp=function(A){return A in jD1?jD1[A]:jD1[A]="on"+A};
vmv=function(A,Q){if(A.removed)A=!0;else{Q=new _.Vt(Q,this);var b=A.listener,f=A.handler||A.src;A.callOnce&&oP(A);A=b.call(f,Q)}return A};
nG=function(A){A=A[ro9];return A instanceof Po?A:null};
xL$="__closure_events_fn_"+(Math.random()*1E9>>>0);gm1=function(A){if(typeof A==="function")return A;A[xL$]||(A[xL$]=function(Q){return A.handleEvent(Q)});
return A[xL$]};_.IH=function(){_.k$.call(this);this.eventTargetListeners_=new Po(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.BD(_.IH,_.k$);_.IH.prototype[IFL]=!0;_.d=_.IH.prototype;_.d.setParentEventTarget=function(A){this.parentEventTarget_=A};
_.d.addEventListener=function(A,Q,b,f){_.jM(this,A,Q,b,f)};
_.d.removeEventListener=function(A,Q,b,f){_.kp(this,A,Q,b,f)};
_.d.dispatchEvent=function(A){var Q,b=this.parentEventTarget_;if(b)for(Q=[];b;b=b.parentEventTarget_)Q.push(b);b=this.actualEventTarget_;var f=A.type||A;if(typeof A==="string")A=new _.J1(A,b);else if(A instanceof _.J1)A.target=A.target||b;else{var a=A;A=new _.J1(f,b);_.j2.extend(A,a)}a=!0;var T;if(Q)for(T=Q.length-1;!A.propagationStopped_&&T>=0;T--){var G=A.currentTarget=Q[T];a=coM(G,f,!0,A)&&a}A.propagationStopped_||(G=A.currentTarget=b,a=coM(G,f,!0,A)&&a,A.propagationStopped_||(a=coM(G,f,!1,A)&&
a));if(Q)for(T=0;!A.propagationStopped_&&T<Q.length;T++)G=A.currentTarget=Q[T],a=coM(G,f,!1,A)&&a;return a};
_.d.disposeInternal=function(){_.IH.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.d.listen=function(A,Q,b,f){return this.eventTargetListeners_.add(String(A),Q,!1,b,f)};
_.d.listenOnce=function(A,Q,b,f){return this.eventTargetListeners_.add(String(A),Q,!0,b,f)};
_.d.unlisten=function(A,Q,b,f){return this.eventTargetListeners_.remove(String(A),Q,b,f)};
_.d.removeAllListeners=function(A){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(A):0};
var coM=function(A,Q,b,f){Q=A.eventTargetListeners_.listeners[String(Q)];if(!Q)return!0;Q=Q.concat();for(var a=!0,T=0;T<Q.length;++T){var G=Q[T];if(G&&!G.removed&&G.capture==b){var p=G.listener,P=G.handler||G.src;G.callOnce&&txp(A.eventTargetListeners_,G);a=p.call(P,f)!==!1&&a}}return a&&!f.defaultPrevented};
_.IH.prototype.getListener=function(A,Q,b,f){return this.eventTargetListeners_.getListener(String(A),Q,b,f)};
_.IH.prototype.hasListener=function(A,Q){return this.eventTargetListeners_.hasListener(A!==void 0?String(A):void 0,Q)};var H2=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(A){return A&&AsyncContext.Snapshot.wrap(A)}:function(A){return A};var zZp=function(A,Q){this.create_=A;this.reset_=Q;this.occupants_=0;this.JSC$9700_head_=null};
zZp.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var A=this.JSC$9700_head_;this.JSC$9700_head_=A.next;A.next=null}else A=this.create_();return A};
zZp.prototype.put=function(A){this.reset_(A);this.occupants_<100&&(this.occupants_++,A.next=this.JSC$9700_head_,this.JSC$9700_head_=A)};var waj=function(){this.workTail_=this.workHead_=null};
waj.prototype.add=function(A,Q){var b=yzX.get();b.set(A,Q);this.workTail_?this.workTail_.next=b:this.workHead_=b;this.workTail_=b};
waj.prototype.remove=function(){var A=null;this.workHead_&&(A=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),A.next=null);return A};
var yzX=new zZp(function(){return new uTv},function(A){return A.reset()}),uTv=function(){this.next=this.scope=this.fn=null};
uTv.prototype.set=function(A,Q){this.fn=A;this.scope=Q;this.next=null};
uTv.prototype.reset=function(){this.next=this.scope=this.fn=null};var ZNW,Ypb,ZHX,yo$;Ypb=!1;ZHX=new waj;_.CG=function(A,Q){ZNW||yo$();Ypb||(ZNW(),Ypb=!0);ZHX.add(A,Q)};
yo$=function(){var A=Promise.resolve(void 0);ZNW=function(){A.then(Dq9)}};var Yip=function(A){A.prototype.$goog_Thenable=!0},DLr=function(A){if(!A)return!1;
try{return!!A.$goog_Thenable}catch(Q){return!1}};var $Ly,Nij,sDv,A3p,Qkr,btj,d11,BQL,SXL,PwY,pQY;_.M3=function(A,Q){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(A!=_.nw)try{var b=this;A.call(Q,function(f){b.resolve_(2,f)},function(f){b.resolve_(3,f)})}catch(f){this.resolve_(3,f)}};
$Ly=function(){this.next=this.context=this.JSC$9711_onRejected=this.JSC$9711_onFulfilled=this.child=null;this.always=!1};
$Ly.prototype.reset=function(){this.context=this.JSC$9711_onRejected=this.JSC$9711_onFulfilled=this.child=null;this.always=!1};
Nij=new zZp(function(){return new $Ly},function(A){A.reset()});
sDv=function(A,Q,b){var f=Nij.get();f.JSC$9711_onFulfilled=A;f.JSC$9711_onRejected=Q;f.context=b;return f};
_.Ul=function(A){if(A instanceof _.M3)return A;var Q=new _.M3(_.nw);Q.resolve_(2,A);return Q};
_.gF=function(A){return new _.M3(function(Q,b){b(A)})};
A3p=function(A,Q,b){mL1(A,Q,b,null)||_.CG(_.Ol(Q,A))};
_.qY=function(A){return new _.M3(function(Q,b){var f=A.length,a=[];if(f)for(var T=function(U,L){f--;a[U]=L;f==0&&Q(a)},G=function(U){b(U)},p,P=0;P<A.length;P++)p=A[P],A3p(p,_.Ol(T,P),G);
else Q(a)})};
Qkr=function(A){return new _.M3(function(Q){var b=A.length,f=[];if(b)for(var a=function(p,P,U){b--;f[p]=P?{fulfilled:!0,value:U}:{fulfilled:!1,reason:U};b==0&&Q(f)},T,G=0;G<A.length;G++)T=A[G],A3p(T,_.Ol(a,G,!0),_.Ol(a,G,!1));
else Q(f)})};
btj=function(A){return new _.M3(function(Q,b){var f=A.length,a=[];if(f)for(var T=function(U){Q(U)},G=function(U,L){f--;
a[U]=L;f==0&&b(a)},p,P=0;P<A.length;P++)p=A[P],A3p(p,T,_.Ol(G,P));
else Q(void 0)})};
_.Qh=function(){var A,Q,b=new _.M3(function(f,a){A=f;Q=a});
return new f0N(b,A,Q)};
_.M3.prototype.then=function(A,Q,b){return a0L(this,H2(typeof A==="function"?A:null),H2(typeof Q==="function"?Q:null),b)};
Yip(_.M3);d11=function(A,Q,b,f){TQN(A,sDv(Q||_.nw,b||null,f))};
_.oH=function(A,Q){Q=H2(Q);Q=sDv(Q,Q);Q.always=!0;TQN(A,Q);return A};
_.M3.prototype.finally=function(A){var Q=this;A=H2(A);return new _.M3(function(b,f){d11(Q,function(a){A();b(a)},function(a){A();
f(a)})})};
_.M3.prototype.thenCatch=function(A,Q){return a0L(this,null,H2(A),Q)};
_.M3.prototype.catch=_.M3.prototype.thenCatch;_.M3.prototype.cancel=function(A){if(this.state_==0){var Q=new _.Zh(A);_.CG(function(){FKy(this,Q)},this)}};
var FKy=function(A,Q){if(A.state_==0)if(A.parent_){var b=A.parent_;if(b.callbackEntries_){for(var f=0,a=null,T=null,G=b.callbackEntries_;G&&(G.always||(f++,G.child==A&&(a=G),!(a&&f>1)));G=G.next)a||(T=G);a&&(b.state_==0&&f==1?FKy(b,Q):(T?(f=T,f.next==b.callbackEntriesTail_&&(b.callbackEntriesTail_=f),f.next=f.next.next):GH$(b),BQL(b,a,3,Q)))}A.parent_=null}else A.resolve_(3,Q)},TQN=function(A,Q){A.callbackEntries_||A.state_!=2&&A.state_!=3||plx(A);
A.callbackEntriesTail_?A.callbackEntriesTail_.next=Q:A.callbackEntries_=Q;A.callbackEntriesTail_=Q},a0L=function(A,Q,b,f){var a=sDv(null,null,null);
a.child=new _.M3(function(T,G){a.JSC$9711_onFulfilled=Q?function(p){try{var P=Q.call(f,p);T(P)}catch(U){G(U)}}:T;
a.JSC$9711_onRejected=b?function(p){try{var P=b.call(f,p);P===void 0&&p instanceof _.Zh?G(p):T(P)}catch(U){G(U)}}:G});
a.child.parent_=A;TQN(A,a);return a.child};
_.M3.prototype.unblockAndFulfill_=function(A){this.state_=0;this.resolve_(2,A)};
_.M3.prototype.unblockAndReject_=function(A){this.state_=0;this.resolve_(3,A)};
_.M3.prototype.resolve_=function(A,Q){this.state_==0&&(this===Q&&(A=3,Q=new TypeError("xa")),this.state_=1,mL1(Q,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=Q,this.state_=A,this.parent_=null,plx(this),A!=3||Q instanceof _.Zh||PwY(this,Q)))};
var mL1=function(A,Q,b,f){if(A instanceof _.M3)return d11(A,Q,b,f),!0;if(DLr(A))return A.then(Q,b,f),!0;if(_.ZU(A))try{var a=A.then;if(typeof a==="function")return XlL(A,a,Q,b,f),!0}catch(T){return b.call(f,T),!0}return!1},XlL=function(A,Q,b,f,a){var T=!1,G=function(P){T||(T=!0,b.call(a,P))},p=function(P){T||(T=!0,f.call(a,P))};
try{Q.call(A,G,p)}catch(P){p(P)}},plx=function(A){A.executing_||(A.executing_=!0,_.CG(A.executeCallbacks_,A))},GH$=function(A){var Q=null;
A.callbackEntries_&&(Q=A.callbackEntries_,A.callbackEntries_=Q.next,Q.next=null);A.callbackEntries_||(A.callbackEntriesTail_=null);return Q};
_.M3.prototype.executeCallbacks_=function(){for(var A;A=GH$(this);)BQL(this,A,this.state_,this.result_);this.executing_=!1};
BQL=function(A,Q,b,f){if(b==3&&Q.JSC$9711_onRejected&&!Q.always)for(;A&&A.hadUnhandledRejection_;A=A.parent_)A.hadUnhandledRejection_=!1;if(Q.child)Q.child.parent_=null,SXL(Q,b,f);else try{Q.always?Q.JSC$9711_onFulfilled.call(Q.context):SXL(Q,b,f)}catch(a){pQY.call(null,a)}Nij.put(Q)};
SXL=function(A,Q,b){Q==2?A.JSC$9711_onFulfilled.call(A.context,b):A.JSC$9711_onRejected&&A.JSC$9711_onRejected.call(A.context,b)};
PwY=function(A,Q){A.hadUnhandledRejection_=!0;_.CG(function(){A.hadUnhandledRejection_&&pQY.call(null,Q)})};
pQY=fF;_.Zh=function(A){_.A4.call(this,A)};
_.BD(_.Zh,_.A4);_.Zh.prototype.name="cancel";var f0N=function(A,Q,b){this.promise=A;this.resolve=Q;this.reject=b};var t1;_.GL=function(A,Q){_.IH.call(this);this.JSC$9723_interval_=A||1;this.timerObject_=Q||_.by;this.boundTick_=(0,_.IL)(this.tick_,this);this.last_=_.G0()};
_.BD(_.GL,_.IH);_.d=_.GL.prototype;_.d.enabled=!1;_.d.JSC$9725_timer_=null;_.d.setInterval=function(A){this.JSC$9723_interval_=A;this.JSC$9725_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9725_timer_&&this.stop()};
_.d.tick_=function(){if(this.enabled){var A=_.G0()-this.last_;A>0&&A<this.JSC$9723_interval_*.8?this.JSC$9725_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9723_interval_-A):(this.JSC$9725_timer_&&(this.timerObject_.clearTimeout(this.JSC$9725_timer_),this.JSC$9725_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.d.start=function(){this.enabled=!0;this.JSC$9725_timer_||(this.JSC$9725_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9723_interval_),this.last_=_.G0())};
_.d.stop=function(){this.enabled=!1;this.JSC$9725_timer_&&(this.timerObject_.clearTimeout(this.JSC$9725_timer_),this.JSC$9725_timer_=null)};
_.d.disposeInternal=function(){_.GL.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
t1=function(A,Q,b){if(typeof A==="function")b&&(A=(0,_.IL)(A,b));else if(A&&typeof A.handleEvent=="function")A=(0,_.IL)(A.handleEvent,A);else throw Error("ya");return Number(Q)>2147483647?-1:_.by.setTimeout(A,Q||0)};
_.U1x=function(A){var Q=null;return(new _.M3(function(b,f){Q=t1(function(){b(void 0)},A);
Q==-1&&f(Error("za"))})).thenCatch(function(b){_.by.clearTimeout(Q);
throw b;})};var UO=function(A){_.k$.call(this);this.streamzLogger=A;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9729_flushTimer=new _.GL(this.flushInterval);this.JSC$9729_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.SY(this,this.JSC$9729_flushTimer)};
_.O(UO,_.k$);UO.prototype.sendIsolatedPayload=function(A){this.shouldSendIsolatedPayload=A;this.invocationLimit=1};
var LKW=function(A){A.JSC$9729_flushTimer.enabled||A.JSC$9729_flushTimer.start();A.invocationCount++;A.invocationCount>=A.invocationLimit&&A.snapshotAndFlush()};
UO.prototype.snapshotAndFlush=function(){var A=this.metricMap.values();A=[].concat(_.ri(A)).filter(function(Q){return Q.cellMap.size});
A.length&&this.streamzLogger.flush(A,this.shouldSendIsolatedPayload);M2j(A);this.invocationCount=0;this.JSC$9729_flushTimer.enabled&&this.JSC$9729_flushTimer.stop()};
UO.prototype.addNewCounter=function(A){var Q=_.E$.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new nmL(A,Q))};
UO.prototype.addNewEventMetric=function(A){var Q=_.E$.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new kOx(A,Q))};
var l0L=function(A,Q){return A.disabledMetrics.has(Q)?void 0:A.metricMap.get(Q)};
UO.prototype.JSC$9729_incrementCounter=function(A){this.JSC$9729_incrementCounterBy(A,1,_.E$.apply(1,arguments))};
UO.prototype.JSC$9729_incrementCounterBy=function(A,Q){var b=_.E$.apply(2,arguments),f=l0L(this,A);f&&f instanceof nmL&&(f.JSC$9668_incrementCounterBy(Q,b),LKW(this))};
UO.prototype.record=function(A,Q){var b=_.E$.apply(2,arguments),f=l0L(this,A);f&&f instanceof kOx&&(f.record(Q,b),LKW(this))};
var M2j=function(A){for(var Q=0;Q<A.length;Q++)A[Q].clear()};_.rr=function(A,Q,b){b=b===void 0?{}:b;Q=Error.call(this,Q);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=A;this.metadata=b;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.rr,Error);_.rr.prototype.toString=function(){var A="RpcError("+(NNb(this.code)||String(this.code))+")";this.message&&(A+=": "+this.message);return A};_.KK$=_.by.JSON.parse;_.jV=_.by.JSON.stringify;_.jU=_.by.JSON.parse;_.itY=function(A){switch(A){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 J3v=function(A){switch(A){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var V2Y,Otx=function(){};
_.BD(Otx,_.s8W);Otx.prototype.createInstance=function(){return new XMLHttpRequest};
V2Y=new Otx;_.RH=function(A){_.IH.call(this);this.headers=new Map;this.JSC$9738_xmlHttpFactory_=A||null;this.JSC$9738_active_=!1;this.JSC$9738_xhr_=null;this.JSC$9738_lastUri_="";this.JSC$9738_lastErrorCode_=0;this.JSC$9738_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9738_timeoutId_=null;this.responseType_="";this.JSC$9738_withCredentials_=!1};
_.BD(_.RH,_.IH);var n5p=/^https?$/i,kH9=["POST","PUT"],I0W=[],QW6=function(A,Q,b,f,a,T,G){var p=new _.RH;I0W.push(p);Q&&p.listen("complete",Q);p.listenOnce("ready",p.cleanupSend_);T&&(p.timeoutInterval_=Math.max(0,T));G&&(p.JSC$9738_withCredentials_=G);p.send(A,b,f,a)};
_.RH.prototype.cleanupSend_=function(){this.dispose();_.Eb(I0W,this)};
_.RH.prototype.send=function(A,Q,b,f){if(this.JSC$9738_xhr_)throw Error("Aa`"+this.JSC$9738_lastUri_+"`"+A);Q=Q?Q.toUpperCase():"GET";this.JSC$9738_lastUri_=A;this.JSC$9738_lastError_="";this.JSC$9738_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9738_active_=!0;this.JSC$9738_xhr_=this.createXhr();this.JSC$9738_xhr_.onreadystatechange=H2((0,_.IL)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9738_xhr_.open(Q,String(A),!0),this.inOpen_=!1}catch(G){HtW(this,G);return}A=b||"";b=new Map(this.headers);
if(f)if(Object.getPrototypeOf(f)===Object.prototype)for(var a in f)b.set(a,f[a]);else if(typeof f.keys==="function"&&typeof f.get==="function"){a=_.F(f.keys());for(var T=a.next();!T.done;T=a.next())T=T.value,b.set(T,f.get(T))}else throw Error("Ba`"+String(f));f=Array.from(b.keys()).find(function(G){return"content-type"==G.toLowerCase()});
a=_.by.FormData&&A instanceof _.by.FormData;!_.ve(kH9,Q)||f||a||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");Q=_.F(b);for(f=Q.next();!f.done;f=Q.next())b=_.F(f.value),f=b.next().value,b=b.next().value,this.JSC$9738_xhr_.setRequestHeader(f,b);this.responseType_&&(this.JSC$9738_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9738_xhr_&&this.JSC$9738_xhr_.withCredentials!==this.JSC$9738_withCredentials_&&(this.JSC$9738_xhr_.withCredentials=this.JSC$9738_withCredentials_);
try{this.JSC$9738_timeoutId_&&(clearTimeout(this.JSC$9738_timeoutId_),this.JSC$9738_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9738_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9738_xhr_.send(A),this.inSend_=!1}catch(G){HtW(this,G)}};
_.RH.prototype.createXhr=function(){return this.JSC$9738_xmlHttpFactory_?this.JSC$9738_xmlHttpFactory_.createInstance():V2Y.createInstance()};
_.RH.prototype.timeout_=function(){typeof cgi!="undefined"&&this.JSC$9738_xhr_&&(this.JSC$9738_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9738_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var HtW=function(A,Q){A.JSC$9738_active_=!1;A.JSC$9738_xhr_&&(A.inAbort_=!0,A.JSC$9738_xhr_.abort(),A.inAbort_=!1);A.JSC$9738_lastError_=Q;A.JSC$9738_lastErrorCode_=5;CwW(A);qXj(A)},CwW=function(A){A.errorDispatched_||(A.errorDispatched_=!0,A.dispatchEvent("complete"),A.dispatchEvent("error"))};
_.RH.prototype.abort=function(A){this.JSC$9738_xhr_&&this.JSC$9738_active_&&(this.JSC$9738_active_=!1,this.inAbort_=!0,this.JSC$9738_xhr_.abort(),this.inAbort_=!1,this.JSC$9738_lastErrorCode_=A||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),qXj(this))};
_.RH.prototype.disposeInternal=function(){this.JSC$9738_xhr_&&(this.JSC$9738_active_&&(this.JSC$9738_active_=!1,this.inAbort_=!0,this.JSC$9738_xhr_.abort(),this.inAbort_=!1),qXj(this,!0));_.RH.superClass_.disposeInternal.call(this)};
_.RH.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)o5L(this);else this.onReadyStateChangeEntryPoint_()};
_.RH.prototype.onReadyStateChangeEntryPoint_=function(){o5L(this)};
var o5L=function(A){if(A.JSC$9738_active_&&typeof cgi!="undefined")if(A.inSend_&&_.gr(A)==4)setTimeout(A.onReadyStateChange_.bind(A),0);else if(A.dispatchEvent("readystatechange"),A.isComplete()){A.JSC$9738_active_=!1;try{if(A.isSuccess())A.dispatchEvent("complete"),A.dispatchEvent("success");else{A.JSC$9738_lastErrorCode_=6;try{var Q=_.gr(A)>2?A.JSC$9738_xhr_.statusText:""}catch(b){Q=""}A.JSC$9738_lastError_=Q+" ["+A.getStatus()+"]";CwW(A)}}finally{qXj(A)}}},qXj=function(A,Q){if(A.JSC$9738_xhr_){A.JSC$9738_timeoutId_&&
(clearTimeout(A.JSC$9738_timeoutId_),A.JSC$9738_timeoutId_=null);
var b=A.JSC$9738_xhr_;A.JSC$9738_xhr_=null;Q||A.dispatchEvent("ready");try{b.onreadystatechange=null}catch(f){}}};
_.RH.prototype.isActive=function(){return!!this.JSC$9738_xhr_};
_.RH.prototype.isComplete=function(){return _.gr(this)==4};
_.RH.prototype.isSuccess=function(){var A=this.getStatus(),Q;if(!(Q=J3v(A))){if(A=A===0)A=jtx(String(this.JSC$9738_lastUri_)),A=!n5p.test(A);Q=A}return Q};
_.gr=function(A){return A.JSC$9738_xhr_?A.JSC$9738_xhr_.readyState:0};
_.d=_.RH.prototype;_.d.getStatus=function(){try{return _.gr(this)>2?this.JSC$9738_xhr_.status:-1}catch(A){return-1}};
_.d.getResponseText=function(){try{return this.JSC$9738_xhr_?this.JSC$9738_xhr_.responseText:""}catch(A){return""}};
_.d.getResponse=function(){try{if(!this.JSC$9738_xhr_)return null;if("response"in this.JSC$9738_xhr_)return this.JSC$9738_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9738_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9738_xhr_)return this.JSC$9738_xhr_.mozResponseArrayBuffer}return null}catch(A){return null}};
_.d.getAllResponseHeaders=function(){return this.JSC$9738_xhr_&&_.gr(this)>=2?this.JSC$9738_xhr_.getAllResponseHeaders()||"":""};
_.d.getLastError=function(){return typeof this.JSC$9738_lastError_==="string"?this.JSC$9738_lastError_:String(this.JSC$9738_lastError_)};var bJY=function(){};
bJY.prototype.send=function(A,Q,b){Q=Q===void 0?function(){}:Q;
b=b===void 0?function(){}:b;
QW6(A.url,function(f){f=f.target;f.isSuccess()?Q(f.getResponseText()):b(f.getStatus())},A.requestType,A.body,A.requestHeaders,A.timeoutMillis,A.withCredentials)};
bJY.prototype.getTransmissionType=function(){return 1};var t2L=function(A,Q){this.nMi=A;this.event=Q;this.startTime=LK()},GP6;
t2L.prototype.done=function(){this.nMi.aO(this.event,LK()-this.startTime)};
var eV=function(){Gs.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.O(eV,Gs);_.h1=function(A,Q,b){var f=LK();Q=Q();A.aO(b,LK()-f);return Q};
GP6=function(){eV.apply(this,arguments)};
_.O(GP6,eV);_.d=GP6.prototype;_.d.pde=function(){};
_.d.aG=function(){};
_.d.aO=function(){};
_.d.logError=function(){};
_.d.c3=function(){};
_.d.vm4=function(){};
_.d.aUr=function(){};
_.d.nmI=function(){};
var r3M=function(A){eV.call(this);var Q=this;this.zc=A;this.TEST_ONLY={iq8:function(){return Q.zc},
getExperimentIds:function(){return Q.zc.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void Q.zc.dispose()})};
_.O(r3M,eV);_.d=r3M.prototype;_.d.update=function(A){this.zc.dispose();this.zc=A};
_.d.aG=function(A){this.zc.aG(A)};
_.d.aO=function(A,Q){this.zc.aO(A,Q)};
_.d.logError=function(A){this.zc.logError(A)};
_.d.c3=function(){this.zc.c3()};
_.d.vm4=function(A){this.zc.vm4(A)};
_.d.aUr=function(A){this.zc.aUr(A)};
_.d.nmI=function(A){this.zc.nmI(A)};
_.d.pde=function(A){this.zc.pde(A)};
var jkL=function(A,Q){_.k$.call(this);var b=this;this.callback=A;this.txK=Q;this.czH=-Q;this.addOnDisposeCallback(function(){return void clearTimeout(b.timer)})};
_.O(jkL,_.k$);var RKL=function(A){if(A.timer===void 0){var Q=Math.max(0,A.czH+A.txK-LK());A.timer=setTimeout(function(){try{A.callback()}finally{A.czH=LK(),A.timer=void 0}},Q)}},g5L=function(A,Q){eV.call(this);
this.metrics=A;this.nj=Q};
_.O(g5L,eV);_.d=g5L.prototype;_.d.pde=function(A){this.metrics.aFj.record(A,this.nj)};
_.d.aG=function(A){this.metrics.eventCount.increment(A,this.nj)};
_.d.aO=function(A,Q){this.metrics.kpe.record(Q,A,this.nj)};
_.d.logError=function(A){this.metrics.errorCount.increment(A,this.nj)};
_.d.vm4=function(A){this.metrics.pWo.increment(A,this.nj)};
_.d.aUr=function(A){this.metrics.v1b.increment(A,this.nj)};
_.d.nmI=function(A){this.metrics.jkk.increment(A,this.nj)};
var BeJ=function(A,Q){Q=Q===void 0?[]:Q;var b={nj:A.nj||"_",szB:A.szB||[],utO:A.utO|0,destinationUrl:A.destinationUrl,cUS:A.cUS||function(){},
eof:A.eof||function(T,G){return F9A(T,G,b.cUS,b.destinationUrl)}},f=b.eof("51",b.szB.concat(Q));
g5L.call(this,{aFj:new Mdp(f),errorCount:new Jsp(f),eventCount:new KwL(f),kpe:new ip9(f),wL3:new liM(f),pWo:new Vd$(f),v1b:new Opx(f),jkk:new n81(f)},b.nj);var a=this;this.TEST_ONLY={getExperimentIds:function(){return a.options.szB.concat(a.cDi).sort(function(T,G){return T-G})}};
this.options=b;this.service=f;this.cUA=!A.eof;this.flushDebouncer=new jkL(function(){return void a.service.snapshotAndFlush()},b.utO);
this.addOnDisposeCallback(function(){a.flushDebouncer.dispose();a.cUA&&a.service.dispose()});
(this.cDi=Q.slice()).sort(_.Cye)};
_.O(BeJ,g5L);BeJ.prototype.c3=function(){RKL(this.flushDebouncer)};var yti=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(yti,_.fp);_.YKY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(_.YKY,_.fp);var $B=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A,0,$B.messageId)};
_.O($B,_.fp);var eKN=_.WwU($B);$B.messageId="bfkj";var gQb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(gQb,_.fp);var hK9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(hK9,_.fp);var WKL=_.Sd(hK9);_.Mj=function(){var A=this;this.promise=new Promise(function(Q,b){A.resolve=Q;A.reject=b})};_.W2=function(A){_.k$.call(this);var Q=this;this.hWm=Math.floor(Math.random()*200);this.wQx=new hK9;if("challenge"in A&&eKN(A.challenge)){var b=_.gA(A.challenge,4,void 0,tv);var f=_.gA(A.challenge,5,void 0,tv);_.gA(A.challenge,7,void 0,tv)&&(this.wQx=WKL(_.gA(A.challenge,7,void 0,tv)))}else b=A.program,f=A.globalName;this.addOnDisposeCallback(function(){var n,t,g;return _.B(function(e){if(e.nextAddress==1)return e.yield(Q.psx,2);n=e.yieldResult;t=n.k9p;(g=t)==null||g();_.Oi(e)})});
this.bf=prA(A.c4f||{},this.wQx);_.SY(this,this.bf);var a=new _.Mj;this.psx=a.promise;this.bf.aG("t");var T=this.bf.share(),G=new t2L(T,"t"),p=function(n,t,g,e){if(!Q.bf.isDisposed()){var x="k";t?x="h":g&&(x="u");x!=="k"?e!==0&&(Q.bf.aG(x),Q.bf.aO(x,n)):Q.hWm<=0?(Q.bf.aG(x),Q.bf.aO(x,n),Q.hWm=Math.floor(Math.random()*200)):Q.hWm--}},P=function(n,t,g,e){Promise.resolve().then(function(){G.done();
T.c3();T.dispose();a.resolve({aXQ:n,k9p:t,avC:g,rEb:e})})};
if(!_.by[f])throw this.bf.logError(25),Error("Ca");if(!_.by[f].a)throw this.bf.logError(26),Error("Da");try{var U=_.by[f].a;f=[];for(var L=[],M=egU(this.wQx),l=0;l<M.length;l++)f.push(M[l]),L.push(1);var J=hgJ(this.wQx);for(M=0;M<J.length;M++)f.push(J[M]),L.push(2);this.gX3=_.F(U(b,P,!0,A.vbu,p,[f,L],_.gA(this.wQx,5))).next().value;this.auf=a.promise.then(function(){})}catch(n){throw this.bf.logError(28),n;
}};
_.O(_.W2,_.k$);_.W2.prototype.snapshot=function(A){if(this.isDisposed())throw Error("Ea");this.bf.aG("n");var Q=this.bf.share();return this.psx.then(function(b){var f=b.aXQ;return new Promise(function(a){var T=new t2L(Q,"n");f(function(G){T.done();Q.pde(G.length);Q.c3();Q.dispose();a(G)},[A.lN,
A.pMA,A.lFK,A.iMH])})})};
_.W2.prototype.q4x=function(A){this.psx.then(function(Q){var b;(b=Q.avC)==null||b(A)})};
_.W2.prototype.q8g=function(A,Q){return this.psx.then(function(b){var f;return(f=b.rEb)==null?void 0:f(A,Q,!1)})};
_.W2.prototype.z1h=function(){return this.bf.share()};var v5x=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(v5x,_.fp);var Y8C=_.WwU(v5x);var E5W=function(){this.promises={};this.mCs=null},x1W=function(){E5W.instance||(E5W.instance=new E5W);
return E5W.instance},zKr=function(A,Q){return c3L(A,_.dO(Q,yti,1,tv),_.dO(Q,_.YKY,2,tv),_.gA(Q,3,void 0,tv))},c3L=function(A,Q,b,f){if(!Q&&!b)return Promise.resolve();
if(!f)return L9y(Q,b);var a;(a=A.promises)[f]||(a[f]=new Promise(function(T,G){L9y(Q,b).then(function(){A.mCs=f;T()},function(p){delete A.promises[f];
G(p)})}));
return A.promises[f]};var wlN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(wlN,_.fp);var uur=function(A,Q){return _.Nl(A,1,Q)},ZtM=function(A,Q){return _.Nl(A,2,Q)};var v2=function(A){_.k$.call(this);var Q=this;this.options=A;this.eih=new _.Mj;this.auf=this.eih.promise;this.evh=new _.Mj;this.atr=1;this.kKA=new _.Mj;this.dyG=[];this.jAB=A.jAB||function(){};
this.il4=new r3M(prA(A.c4f||{}));y39(this,A.az,A.kOe,A.egu,A.zUk,Object.assign({},YXN,A.yyA||{}));this.addOnDisposeCallback(function(){return void D1$(Q)})};
_.O(v2,_.k$);v2.prototype.snapshot=function(A){var Q=this;return _.B(function(b){switch(b.nextAddress){case 1:if(Q.isDisposed())throw Error("Ea");if(Q.xN||Q.vGG){b.jumpTo(2);break}return b.yield(Q.evh.promise,2);case 2:if(!Q.xN){b.jumpTo(4);break}return b.yield(Q.xN.snapshot(A),5);case 5:return b.return(b.yieldResult);case 4:throw Q.vGG;}})};
var $1y=function(A){var Q;return _.B(function(b){if(A.isDisposed())throw Error("Ea");(Q=A.gC)!=null&&(Q.endTimeMs=0,Q.resolver(1));return b.yield(A.kKA.promise,0)})},D1$=function(A){A.vGG=Error("Ga");
A.evh.resolve();WRy(A.eih.promise);A.eih.reject(Error("Ga"));A.il4.dispose();Promise.all(A.dyG).then(function(){var b;return _.B(function(f){(b=A.xN)==null||b.dispose();A.xN=void 0;_.Oi(f)})});
A.dyG=[];var Q;(Q=A.gC)!=null&&(Q.endTimeMs=0,Q.resolver(1));WRy(A.kKA.promise);A.kKA.reject(Error("Ga"))};
v2.prototype.q4x=function(A){var Q,b;(Q=this.xN)==null||(b=Q.q4x)==null||b.call(Q,A)};
v2.prototype.q8g=function(A,Q){var b,f,a;return(a=(b=this.xN)==null?void 0:(f=b.q8g)==null?void 0:f.call(b,A,Q))!=null?a:Promise.resolve()};
var NQv=function(A,Q){var b=A.jAB;A.jAB=function(){b();Q()}},skL=function(A,Q){A.isDisposed()||(A.xN=Q,A.il4.update(Q.z1h()),A.evh.resolve(),A.eih.resolve(void 0),A.jAB())};
v2.prototype.handleError=function(A){if(!this.isDisposed()){this.vGG=A;this.evh.resolve();var Q,b;(b=(Q=this.options).pr3)==null||b.call(Q,A)}};
var m1W=function(A,Q){Q&&(Promise.all(A.dyG).then(function(){return void Q.dispose()}),A.dyG=[])},E3=function(A,Q){A.atr=Q;
var b,f;(f=(b=A.options).fQk)==null||f.call(b,Q)},ATM=function(A){A.isDisposed()||(A.kKA.resolve(),A.kKA=new _.Mj)},y39=function(A,Q,b,f,a,T){f=f===void 0?x1W():f;
a=a===void 0?Promise.resolve(void 0):a;var G,p,P,U,L,M,l,J,n,t,g,e;_.B(function(x){switch(x.nextAddress){case 1:return x.yield(0,3);case 3:p=null;if(!G){x.jumpTo(6);break}E3(A,7);_.ML(x,7);return x.yield(VO(G.snapshot({}),T.cRA,function(){return Promise.resolve("E:CTO")}),9);
case 9:p=x.yieldResult;_.Z1(x,6);break;case 7:_.Vw(x),p="E:UCE";case 6:P=void 0,U=G?T.daU:T.w1b,L=new pK(U,T.e4i,T.cbZ,T.ghZ),M=1;case 10:if(!(M<=T.maxAttempts)){x.jumpTo(12);break}if(M===1){x.jumpTo(13);break}E3(A,0);A.gC=new QLv(L.getValue(),T.jj9,T.fDi);return x.yield(A.gC.promise,14);case 14:l=x.yieldResult,A.gC=void 0,l===1?(M=1,L.reset()):Xaj(L);case 13:_.ML(x,15);J=void 0;if(b){J=b;x.jumpTo(17);break}E3(A,5);n=f.mCs;return x.yield(VO(bKM(Q,n,p),T.ciZ,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:J=x.yieldResult;case 17:return E3(A,3),x.yield(VO(zKr(f,J),T.d1p,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return E3(A,8),x.yield(a,20);case 20:return t=new _.W2({challenge:J,c4f:A.options.c4f,vbu:A.options.vbu}),x.yield(VO(t.auf,T.dw8,function(){return Promise.reject(Error("Ja"))}),21);
case 21:P=t;x.jumpTo(12);break;case 15:g=_.Vw(x),A.handleError(g),ATM(A);case 11:M++;x.jumpTo(10);break;case 12:if(A.isDisposed()){x.jumpTo(5);break}P&&(b=void 0,m1W(A,G),G=P,skL(A,P),ATM(A));E3(A,2);A.gC=new QLv(T.tF9,T.jj9,T.fDi);return x.yield(A.gC.promise,22);case 22:A.gC=void 0;if(A.isDisposed()){x.jumpTo(5);break}x.jumpTo(3);break;case 5:(e=G)==null||e.dispose(),_.Oi(x)}})};
v2.prototype.z1h=function(){return this.il4.share()};
var YXN={tF9:432E5,jj9:3E5,fDi:10,cRA:1E4,ciZ:3E4,d1p:3E4,dw8:6E4,w1b:1E3,daU:6E4,e4i:6E5,cbZ:.25,ghZ:2,maxAttempts:10},QLv=function(A,Q,b){var f=this;this.endTimeMs=Date.now()+A;this.promise=new Promise(function(T){f.resolver=T});
var a=function(){var T=f.endTimeMs-Date.now();T<=b?f.resolver(0):setTimeout(a,Math.min(T,Q))};
a()};var f41,eoU=(f41=Math.imul)!=null?f41:function(A,Q){return A*Q|0},OO=[196,
200,224,18],xp=function(A,Q,b){b=b===void 0?[]:b;this.maxItems=A;this.wm=Q===void 0?0:Q;this.lu=b},a4p=function(A){var Q=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!Q)return new xp(A);var b=Q.split(",");if(b.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xp(A);Q=b.slice(1);Q.length===1&&Q[0]===""&&(Q=[]);b=Number(b[0]);return isNaN(b)||b<0||b>Q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xp(A)):new xp(A,b,Q)};
xp.prototype.serialize=function(){return String(this.wm)+","+this.lu.join()};
xp.prototype.insert=function(A,Q){var b=void 0;if(this.lu[this.wm]!==A){var f=this.lu.indexOf(A);f!==-1?(this.lu.splice(f,1),f<this.wm&&this.wm--,this.lu.splice(this.wm,0,A)):(b=this.lu[this.wm],this.lu[this.wm]=A)}this.wm=(this.wm+1)%this.maxItems;A=MtU("iU5q-!O9@$",this.serialize());b&&A&&Q(b);return A};
var TvY=function(A,Q){this.s0x=Q;try{var b=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){b=!1}b&&(this.index=a4p(A))},duY=function(A,Q,b,f,a){var T=A.index?_.h1(A.s0x,function(){return ERJ(A.index,W9e(Q),b,f,a)},"W"):"u";
A.s0x.nmI(T)},FT$=function(A,Q,b){var f=_.F(A.index?_.h1(A.s0x,function(){return xQb(W9e(Q),b)},"R"):["u"]),a=f.next().value;
f=f.next().value;A.s0x.aUr(a);return f};var GzL={toString:function(A){var Q=[],b=0;A-=-2147483648;Q[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(A%52);for(A=Math.floor(A/52);A>0;)Q[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(A%62),A=Math.floor(A/62);return Q.join("")}};var PmW=function(A){A=Bv$(A);for(var Q=2654435769,b=2654435769,f=314159265,a=A.length,T=a,G=0,p=function(){Q-=b;Q-=f;Q^=f>>>13;b-=f;b-=Q;b^=Q<<8;f-=Q;f-=b;f^=b>>>13;Q-=b;Q-=f;Q^=f>>>12;b-=f;b-=Q;b^=Q<<16;f-=Q;f-=b;f^=b>>>5;Q-=b;Q-=f;Q^=f>>>3;b-=f;b-=Q;b^=Q<<10;f-=Q;f-=b;f^=b>>>15};T>=12;T-=12,G+=12)Q+=pox(A,G),b+=pox(A,G+4),f+=pox(A,G+8),p();
f+=a;switch(T){case 11:f+=A[G+10]<<24;case 10:f+=A[G+9]<<16;case 9:f+=A[G+8]<<8;case 8:b+=A[G+7]<<24;case 7:b+=A[G+6]<<16;case 6:b+=A[G+5]<<8;case 5:b+=A[G+4];case 4:Q+=A[G+3]<<24;case 3:Q+=A[G+2]<<16;case 2:Q+=A[G+1]<<8;case 1:Q+=A[G]}p();return GzL.toString(f)},Bv$=function(A){for(var Q=[],b=0;b<A.length;b++)Q.push(A.charCodeAt(b));
return Q},pox=function(A,Q){return A[Q]+(A[Q+1]<<8)+(A[Q+2]<<16)+(A[Q+3]<<24)};var c2=function(A){_.k$.call(this);this.dP=A;this.myF=new _.Mj};
_.O(c2,_.k$);var Xor=function(A,Q){var b=setTimeout(function(){A.myF.resolve()},Q);
A.addOnDisposeCallback(function(){return void clearTimeout(b)})};
c2.prototype.tfG=function(A,Q){var b=this.rH(A);Q==null||Q(b);return _.h1(this.dP,function(){return _.Cs(b,2)},this.sqf)};
var SO1=function(A,Q,b,f){return _.h1(A.dP,function(){return b?A.tfG(Q,f):A.rH(Q,f)},A.qeG)},UuL=function(A,Q,b,f){c2.call(this,A);
this.kwi=Q;this.ltA=b;this.qeG="m";this.sqf="x";this.odZ=0;Xor(this,f)};
_.O(UuL,c2);UuL.prototype.rH=function(A,Q){var b=this;this.dP.aG(this.qeG);++this.odZ>=this.ltA&&this.myF.resolve();var f=A();A=_.h1(this.dP,function(){return b.kwi(f)},"C");
if(A===void 0)throw new dr(17,"YNJ:Undefined");if(!(A instanceof Uint8Array))throw new dr(18,"ODM:Invalid");Q==null||Q(A);return A};
var LTr=function(A,Q,b){c2.call(this,A);this.dhZ=Q;this.qeG="f";this.sqf="z";Xor(this,b)};
_.O(LTr,c2);LTr.prototype.rH=function(){return this.dhZ};
var MYN=function(A,Q,b){c2.call(this,A);this.rME=Q;this.qeG="w";this.sqf="z";Xor(this,b)};
_.O(MYN,c2);MYN.prototype.rH=function(){var A=this;return _.h1(this.dP,function(){return _.$C(A.rME)},"d")};
MYN.prototype.tfG=function(){return this.rME};
var l4p=function(A,Q){c2.call(this,A);this.error=Q;this.qeG="e";this.sqf="y"};
_.O(l4p,c2);var KTx=function(A,Q){var b=(Q(A.error.message)+":"+Q(A.error.stack)).substring(0,2048);Q=b.length+1;b=c$F(b);var f=new Uint8Array(4+b.length);f.set([42,Q&127|128,Q>>7,A.error.code]);f.set(b,4);return f};
l4p.prototype.rH=function(){if(this.mhP)return this.mhP;this.mhP=KTx(this,function(A){return"_"+PmW(A)});
return KTx(this,function(A){return A})};
var iKW=function(A,Q,b){c2.call(this,A);this.jhW=Q;this.clientState=b;this.qeG="S";this.sqf="q"};
_.O(iKW,c2);iKW.prototype.rH=function(){var A=Math.floor(Date.now()/1E3),Q=[Math.random()*255,Math.random()*255],b=Q.concat([this.jhW&255,this.clientState],[A>>24&255,A>>16&255,A>>8&255,A&255]);A=new Uint8Array(2+b.length);A[0]=34;A[1]=b.length;A.set(b,2);b=A.subarray(2);for(var f=Q=Q.length;f<b.length;++f)b[f]^=b[f%Q];this.dP.vm4(this.clientState);return A};var JTY={qJp:3E4,nby:2E4},zs=function(A){_.k$.call(this);var Q=this;this.yu4=new _.Mj;this.nKs=0;this.vG=void 0;this.state=2;this.vm=A.vm;this.az=A.az;this.yyA=Object.assign({},JTY,A.yyA||{});this.r6=A.vm.z1h();var b;this.onError=(b=A.onError)!=null?b:function(){};
this.v2b=A.v2b||!1;if(VYY(A)){var f=this.vm;this.lgm=function(){return $1y(f).catch(function(G){G=Q.reportError(new dr(Q.g3?20:32,"TRG:Disposed",G));Q.vG=G;var p;(p=Q.g3)==null||p.dispose();Q.g3=void 0;Q.yu4.reject(G)})};
NQv(f,function(){return void OK$(Q)});
f.atr===2&&OK$(this)}else this.lgm=A.aQZ,OK$(this);var a=this.r6.share();a.aG("o");var T=new t2L(a,"o");this.yu4.promise.then(function(){T.done();a.c3();a.dispose()},function(){return void a.dispose()});
this.addOnDisposeCallback(function(){Q.g3?(Q.g3.dispose(),Q.g3=void 0):Q.vG?Q.r6.c3():(Q.vG=Q.reportError(new dr(32,"TNP:Disposed")),Q.r6.c3(),Q.yu4.reject(Q.vG))});
_.SY(this,this.r6)};
_.O(zs,_.k$);zs.prototype.rus=function(){return this.yu4.promise};
var n$N=function(A,Q){if(!(Q instanceof dr))if(Q instanceof _.rr){var b=Error(Q.toString());b.stack=Q.stack;Q=new dr(11,"EBH:Error",b)}else Q=new dr(12,"BSO:Unknown",Q);return A.reportError(Q)},OK$=function(A){var Q,b,f,a,T,G,p,P,U,L,M,l,J,n,t;
return _.B(function(g){switch(g.nextAddress){case 1:Q=void 0;A.nKs++;b=new _.Mj;A.vm instanceof v2&&A.vm.dyG.push(b.promise);if(!A.v2b){g.jumpTo(2);break}f=new _.Mj;setTimeout(function(){return void f.resolve()});
return g.yield(f.promise,2);case 2:return a=A.r6.share(),_.ML(g,4,5),A.state=5,T={},G=[],g.yield(VO(A.vm.snapshot({lN:T,lFK:G}),A.yyA.nby,function(){return Promise.reject(new dr(15,"MDA:Timeout"))}),7);
case 7:p=g.yieldResult;if(A.isDisposed())throw new dr(A.g3?20:32,"MDA:Disposed");P=G[0];A.state=6;return g.yield(VO(kzv(A.az,p),A.yyA.qJp,function(){return Promise.reject(new dr(10,"BWB:Timeout"))}),8);
case 8:U=g.yieldResult;if(A.isDisposed())throw new dr(A.g3?20:32,"BWB:Disposed");A.state=7;Q=_.h1(a,function(){var x=I4j(A,U,b,P);x.myF.promise.then(function(){return void A.lgm()});
return x},"i");
case 5:_.KN(g);a.dispose();_.Jo(g,6);break;case 4:L=_.Vw(g);(M=Q)==null||M.dispose();if(!A.vG){l=n$N(A,L);b.resolve();var e;if(e=A.vm instanceof v2&&A.nKs<2)a:if(L instanceof dr)e=L.code!==32&&L.code!==20&&L.code!==10;else{if(L instanceof _.rr)switch(L.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return J=(1+Math.random()*.25)*(A.g3?6E4:1E3),n=setTimeout(function(){return void A.lgm()},J),A.addOnDisposeCallback(function(){return void clearTimeout(n)}),g.return();
A.vG=l}a.logError(A.g3?13:14);A.yu4.reject(A.vG);return g.return();case 6:A.state=8,A.nKs=0,(t=A.g3)==null||t.dispose(),A.g3=Q,A.yu4.resolve(),_.Oi(g)}})},I4j=function(A,Q,b,f){var a=B1C(Q,2)*1E3;
if(a<=0)throw new dr(31,"TTM:Invalid");if(_.gA(Q,4))return new MYN(A.r6,_.gA(Q,4),a);if(!B1C(Q,3))return new LTr(A.r6,Zmi(_.II(Q,1)),a);if(!f)throw new dr(4,"PMD:Undefined");f=f(Zmi(_.II(Q,1)));if(!(f instanceof Function))throw new dr(16,"APF:Failed");A.yDU=Math.floor((Date.now()+a)/1E3);A=new UuL(A.r6,f,B1C(Q,3),a);A.addOnDisposeCallback(function(){return void b.resolve()});
return A};
zs.prototype.rH=function(A){return HKv(this,Object.assign({},A),!1)};
zs.prototype.tfG=function(A){return HKv(this,Object.assign({},A),!0)};
zs.prototype.cfb=function(A){if(A>150)return!1;try{return this.cache=new TvY(A,this.r6),!0}catch(Q){return this.reportError(new dr(22,"GBJ:init",Q)),!1}};
zs.prototype.reportError=function(A){this.r6.logError(A.code);this.onError(A);return A};
var Cmx=function(A,Q){Q=Q instanceof dr?Q:new dr(5,"TVD:error",Q);return A.reportError(Q)},HKv=function(A,Q,b){try{if(A.isDisposed())throw new dr(21,"BNT:disposed");
if(!A.g3&&A.vG)throw A.vG;var f,a;return(a=(f=qOx(A,Q,b))!=null?f:o$W(A,Q,b))!=null?a:tYv(A,Q,b)}catch(T){if(!Q.znr)throw Cmx(A,T);return rTp(A,b,T)}},qOx=function(A,Q,b){var f;
return(f=A.g3)==null?void 0:SO1(f,function(){return jLp(A,Q)},b,function(a){var T;
if(A.g3 instanceof UuL&&((T=Q.mX)==null?0:T.cVy))try{var G;(G=A.cache)==null||duY(G,jLp(A,Q),a,Q.mX.gLr,A.yDU-120)}catch(p){A.reportError(new dr(24,"ELX:write",p))}})},o$W=function(A,Q,b){var f;
if((f=Q.mX)!=null&&f.jAE)try{var a,T=(a=A.cache)==null?void 0:FT$(a,jLp(A,Q),Q.mX.gLr);return T?b?_.h1(A.r6,function(){return _.Cs(T,2)},"a"):T:void 0}catch(G){A.reportError(new dr(23,"RXO:read",G))}},tYv=function(A,Q,b){var f={stack:[],
error:void 0,hasError:!1};try{if(!Q.fDP)throw new dr(29,"SDF:notready");return SO1(YxW(f,new iKW(A.r6,0,A.state)),function(){return jLp(A,Q)},b)}catch(a){f.error=a,f.hasError=!0}finally{DKY(f)}},rTp=function(A,Q,b){var f={stack:[],
error:void 0,hasError:!1};try{var a=Cmx(A,b);return SO1(YxW(f,new l4p(A.r6,a)),function(){return[]},Q)}catch(T){f.error=T,f.hasError=!0}finally{DKY(f)}},jLp=function(A,Q){return Q.kIh?Q.kIh:Q.lN?_.h1(A.r6,function(){return Q.kIh=c$F(Q.lN)},"c"):[]},VYY=function(A){return Ry(function(Q){if(!b4(Q))return!1;
for(var b=_.F(Object.entries(A)),f=b.next();!f.done;f=b.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;if(!(f in Q)){if(a.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!a(Q[f]))return!1}return!0})}({vm:function(A){return Ry(function(Q){return Q instanceof A})}(v2)},"");var R_N=function(){var A=_.PY();this.JSC$9856_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",dv("cookie_enabled"),dv("cookie_3p_enabled"),_.Gz("browser"))};
R_N.prototype.increment=function(A,Q,b){this.JSC$9856_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",A,Q,b)};
var Myy=function(){var A=_.PY();this.JSC$9880_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Fl("tick"),dv("from_st_cookie"))};
Myy.prototype.increment=function(A,Q){this.JSC$9880_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",A,Q)};
var g$j=function(){var A=_.PY();this.JSC$9886_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Gz("status"))};
g$j.prototype.increment=function(A){this.JSC$9886_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",A)};
var e_L=function(){var A=_.PY();this.JSC$9889_streamzService=A;A.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Gz("stage"),dv("is_using_ytd_player"),dv("has_expandable_tiles"))};
e_L.prototype.increment=function(A,Q,b){this.JSC$9889_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",A,Q,b)};
var h_Y=function(){var A=_.PY();this.JSC$9892_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/response_signature",_.Gz("check_status"))};
h_Y.prototype.increment=function(A){this.JSC$9892_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/web/response_signature",A)};
var WTL=function(){var A=_.PY();this.JSC$9895_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Gz("sig"),Fl("de"))};
WTL.prototype.increment=function(A,Q){this.JSC$9895_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/web/e_sig_log",A,Q)};
var v$L=function(){var A=_.PY();this.JSC$9898_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Gz("sig"),Fl("de"))};
v$L.prototype.increment=function(A,Q){this.JSC$9898_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/web/e_sig_en",A,Q)};
_.E$N=function(){var A=_.PY();this.JSC$9901_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Gz("action"))};
_.E$N.prototype.increment=function(A){this.JSC$9901_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/web/enforcement_intent",A)};var wr=window;var xux=(new Date).getTime();_.j2.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.j2.createSet("action","cite","data","formaction","href","manifest","poster","src");var cT1=function(A){this.servicePromise_=A;A.then((0,_.IL)(function(){},this),function(){},this)},z_$=function(A,Q,b){A.servicePromise_.then(function(f){var a=f[Q];
if(!a)throw Error("Ka`"+Q);return a.apply(f,b)})},ZKM=function(A,Q,b){for(var f=Array(arguments.length-2),a=2;a<arguments.length;a++)f[a-2]=arguments[a];
a=wo9(A,Q).then(function(T){return T.apply(null,f)},function(T){T=Error("La`"+Q+"`"+A,{cause:T});
delete uly[Q];return _.gF(T)});
return new cT1(a)},uly={},wo9=function(A,Q){var b=uly[Q];
if(b)return b;b=(b=_.zV(Q))?_.Ul(b):(new _.M3(function(f,a){var T=(new q_(document)).createElement("SCRIPT");T.async=!0;_.mw(T,_.k8(v1j(A)));T.onload=T.onreadystatechange=function(){T.readyState&&T.readyState!="loaded"&&T.readyState!="complete"||f()};
T.onerror=function(G){a(Error("Ma`"+Q+"`"+A,{cause:G}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(T)})).then(function(){var f=_.zV(Q);
if(!f)throw Error("Na`"+Q+"`"+A);return f});
return uly[Q]=b};var yT1={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},DuL=function(){var A=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=zoA(function(){return _.B(function(Q){if(Q.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?Q.return(Promise.resolve()):Q.yield(YOY(A),2);A.rsaForList.length>
0&&document.addEventListener("click",A.requestAccessForHelpPanel);_.Oi(Q)})});
this.requestAccessForHelpPanel=function(){if(!(A.rsaForPromises.length>0)){for(var Q=_.F(A.rsaForList),b=Q.next();!b.done;b=Q.next()){b=b.value;try{A.rsaForPromises.push(document.requestStorageAccessFor(b))}catch(f){}}Promise.all(A.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){A.reset()})}}};
DuL.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var YOY=function(A){var Q,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:Q=_.F(Object.values(yT1)),b=Q.next();case 2:if(b.done){T.jumpTo(0);break}f=b.value;_.ML(T,5);return T.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:f}),7);case 7:a=T.yieldResult;a.state!=="granted"&&A.rsaForList.push(f);_.Z1(T,3);break;case 5:_.Vw(T);T.jumpTo(0);break;case 3:b=Q.next(),T.jumpTo(2)}})};(new DuL).initialize();var $uL=function(A){this.JSC$9915_loader_=A};
$uL.prototype.startHelp=function(A){z_$(this.JSC$9915_loader_,"startHelp",arguments)};
$uL.prototype.JSC$9917_loadChatSupport=function(A){z_$(this.JSC$9915_loader_,"loadChatSupport",arguments)};
var sLr=function(A,Q){Q=Q||{};A=ZKM(NvK,"help.service.Lazy.create",A,{apiKey:Q.apiKey||Q.apiKey,asxUiUri:Q.asxUiUri||Q.asxUiUri,environment:Q.environment||Q.environment,flow:Q.flow||Q.flow,frdProductData:Q.frdProductData||Q.frdProductData,frdProductDataSerializedJspb:Q.frdProductDataSerializedJspb||Q.frdProductDataSerializedJspb,helpCenterPath:Q.helpCenterPath||Q.helpCenterPath,locale:Q.locale||Q.locale||"en-US".replace(/-/g,"_"),nonce:Q.nonce||Q.nonce,productData:Q.productData||Q.productData,receiverUri:Q.receiverUri||
Q.receiverUri,renderApiUri:Q.renderApiUri||Q.renderApiUri,theme:Q.theme||Q.theme,window:Q.window||Q.window});return new $uL(A)},NvK=new cv(lbJ,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var muy=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(muy,_.fp);var AkN=_.Sd(muy);_.Q71=new function(A,Q,b,f){this.configType=A;this.flagName=b;this.defaultValue=f;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 fDL=function(){this.retriever=_.fJ().resolve(bz$)};ue9(Node);ue9(Element);var aDW=ue9(HTMLElement);ue9(SVGElement);var TYv,dzv,Yp,FML;TYv=function(A){return typeof A.className=="string"?A.className:A.getAttribute&&A.getAttribute("class")||""};
dzv=function(A){return A.classList?A.classList:TYv(A).match(/\S+/g)||[]};
_.u9=function(A,Q){typeof A.className=="string"?A.className=Q:A.setAttribute&&A.setAttribute("class",Q)};
_.Z7=function(A,Q){return A.classList?A.classList.contains(Q):_.ve(dzv(A),Q)};
_.TZ=function(A,Q){if(A.classList)A.classList.add(Q);else if(!_.Z7(A,Q)){var b=TYv(A);_.u9(A,b+(b.length>0?" "+Q:Q))}};
Yp=function(A,Q){if(A.classList)Array.prototype.forEach.call(Q,function(a){_.TZ(A,a)});
else{var b={};Array.prototype.forEach.call(dzv(A),function(a){b[a]=!0});
Array.prototype.forEach.call(Q,function(a){b[a]=!0});
Q="";for(var f in b)Q+=Q.length>0?" "+f:f;_.u9(A,Q)}};
_.fE=function(A,Q){A.classList?A.classList.remove(Q):_.Z7(A,Q)&&_.u9(A,Array.prototype.filter.call(dzv(A),function(b){return b!=Q}).join(" "))};
FML=function(A,Q){A.classList?Array.prototype.forEach.call(Q,function(b){_.fE(A,b)}):_.u9(A,Array.prototype.filter.call(dzv(A),function(b){return!_.ve(Q,b)}).join(" "))};var GIy=function(A){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=A.document},P4N=function(A,Q){BYx(A);
var b=document.createElement("div"),f;(f=Q.parentNode)==null||f.insertBefore(b,Q);b.tabIndex=0;b.id="fc-focus-trap-pre-div";b=document.createElement("div");var a;(a=Q.parentNode)==null||a.insertBefore(b,Q.nextSibling);b.tabIndex=0;b.id="fc-focus-trap-post-div";var T=p_9(A,Q),G=p_9(A,Q,!0);T&&G&&(A.focusChangeHandler=function(){var p=A.document.activeElement;if(p)if(_.vo(Q,p))A.previouslyFocusedElement=p;else if(p===A.document.activeElement)switch(A.previouslyFocusedElement){case T:G.focus();A.previouslyFocusedElement=
G;break;default:T.focus(),A.previouslyFocusedElement=T}},A.document.addEventListener("focus",A.focusChangeHandler,!0),A.document.addEventListener("focusin",A.focusChangeHandler))},BYx=function(A){A.focusChangeHandler&&(document.removeEventListener("focus",A.focusChangeHandler,!0),document.removeEventListener("focusin",A.focusChangeHandler),A.focusChangeHandler=null);
var Q;(Q=document.getElementById("fc-focus-trap-pre-div"))==null||Q.remove();var b;(b=document.getElementById("fc-focus-trap-post-div"))==null||b.remove()},X_j=function(A,Q,b,f,a){b=b===void 0?!0:b;
var T;a=(T=a===void 0?null:a)!=null?T:p_9(A,Q,f===void 0?!1:f);a!==null&&(a.focus(),b&&P4N(A,Q))};
GIy.prototype.disableButton=function(A,Q){Q=Q===void 0?null:Q;A.disabled=!0;Q&&_.TZ(A,Q)};
var p_9=function(A,Q,b){b=b===void 0?!1:b;if(hUf(Q)&&!b)return Q;var f=b?[].slice.call(Q.children,0).reverse():Q.children;f=_.F(f);for(var a=f.next();!a.done;a=f.next())if(a=a.value,aDW(a)&&(a=p_9(A,a,b)))return a;return hUf(Q)&&b?Q:null};var S7p=function(A){this.originalBodyOverflow="";this.JSC$9941_domHelper=OX(A)};
S7p.prototype.enableScrolling=function(){this.JSC$9941_domHelper.JSC$9268_document_.body.style.overflow=this.originalBodyOverflow};_.BD(_.Ho,_.k$);_.d=_.Ho.prototype;_.d.JSC$9944_id_=0;_.d.disposeInternal=function(){_.Ho.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9942_listener_;delete this.handler_};
_.d.start=function(A){this.stop();this.JSC$9944_id_=t1(this.callback_,A!==void 0?A:this.JSC$9942_interval_)};
_.d.stop=function(){this.isActive()&&_.by.clearTimeout(this.JSC$9944_id_);this.JSC$9944_id_=0};
_.d.fire=function(){this.stop();this.JSC$9944_doAction_()};
_.d.isActive=function(){return this.JSC$9944_id_!=0};
_.d.JSC$9944_doAction_=function(){this.JSC$9944_id_=0;this.JSC$9942_listener_&&this.JSC$9942_listener_.call(this.handler_)};_.BR=function(A){_.k$.call(this);this.handler_=A;this.JSC$9945_keys_={}};
_.BD(_.BR,_.k$);var UzY=[];_.BR.prototype.listen=function(A,Q,b,f){Array.isArray(Q)||(Q&&(UzY[0]=Q.toString()),Q=UzY);for(var a=0;a<Q.length;a++){var T=_.jM(A,Q[a],b||this.handleEvent,f||!1,this.handler_||this);if(!T)break;this.JSC$9945_keys_[T.key]=T}return this};
_.BR.prototype.listenOnce=function(A,Q,b,f){return LML(this,A,Q,b,f)};
var LML=function(A,Q,b,f,a,T){if(Array.isArray(b))for(var G=0;G<b.length;G++)LML(A,Q,b[G],f,a,T);else{Q=q7(Q,b,f||A.handleEvent,a,T||A.handler_||A);if(!Q)return A;A.JSC$9945_keys_[Q.key]=Q}return A};
_.BR.prototype.unlisten=function(A,Q,b,f,a){if(Array.isArray(Q))for(var T=0;T<Q.length;T++)this.unlisten(A,Q[T],b,f,a);else if(A=EmY(A,Q,b||this.handleEvent,_.ZU(f)?!!f.capture:!!f,a||this.handler_||this))oP(A),delete this.JSC$9945_keys_[A.key];return this};
_.BR.prototype.removeAll=function(){_.j2.forEach(this.JSC$9945_keys_,function(A,Q){this.JSC$9945_keys_.hasOwnProperty(Q)&&oP(A)},this);
this.JSC$9945_keys_={}};
_.BR.prototype.disposeInternal=function(){_.BR.superClass_.disposeInternal.call(this);this.removeAll()};
_.BR.prototype.handleEvent=function(){throw Error("Oa");};var D7=function(){_.k$.call(this);this.services_={}};
_.BD(D7,_.k$);D7.prototype.connect=function(A){A&&A()};
D7.prototype.isConnected=function(){return!0};
D7.prototype.registerService=function(A,Q,b){this.services_[A]={callback:Q,objectPayload:!!b}};
D7.prototype.getService=function(A,Q){var b=this.services_[A];return b?b:this.defaultService_?{callback:_.Ol(this.defaultService_,A),objectPayload:_.ZU(Q)}:null};
var MBL=function(A,Q){if(Q&&typeof A==="string")try{return JSON.parse(A)}catch(b){return null}else if(!Q&&typeof A!=="string")return(0,_.jV)(A);return A};
D7.prototype.disposeInternal=function(){D7.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 $p=function(A,Q){this.sequence_=[];this.onCancelFunction_=A;this.defaultScope_=Q||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};
$p.prototype.cancel=function(A){if(this.fired_)this.result_ instanceof $p&&this.result_.cancel();else{if(this.parent_){var Q=this.parent_;delete this.parent_;A?Q.cancel(A):(Q.branches_--,Q.branches_<=0&&Q.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new NY(this))}};
$p.prototype.continue_=function(A,Q){this.blocked_=!1;lDY(this,A,Q)};
var lDY=function(A,Q,b){A.fired_=!0;A.result_=b;A.hadError_=!Q;KML(A)},Jky=function(A){if(A.fired_){if(!A.silentlyCanceled_)throw new izj(A);
A.silentlyCanceled_=!1}};
$p.prototype.callback=function(A){Jky(this);lDY(this,!0,A)};
$p.prototype.errback=function(A){Jky(this);lDY(this,!1,A)};
var VBp=function(A,Q,b){s3(A,Q,null,b)};
$p.prototype.finally=function(A){var Q=this;return Ozv(new Promise(function(b,f){s3(Q,function(a){A();b(a)},function(a){A();
f(a)})}))};
var s3=function(A,Q,b,f){var a=A.fired_;a||(Q===b?Q=b=H2(Q):(Q=H2(Q),b=H2(b)));A.sequence_.push([Q,b,f]);a&&KML(A)};
$p.prototype.then=function(A,Q,b){var f,a,T=new _.M3(function(G,p){a=G;f=p});
s3(this,a,function(G){G instanceof NY?T.cancel():f(G);return nAY},this);
return T.then(A,Q,b)};
Yip($p);var kI$=function(A,Q){Q instanceof $p?VBp(A,(0,_.IL)(Q.branch,Q)):VBp(A,function(){return Q})};
$p.prototype.branch=function(A){var Q=new $p;s3(this,Q.callback,Q.errback,Q);A&&(Q.parent_=this,this.branches_++);return Q};
$p.prototype.isError=function(A){return A instanceof Error};
var IDL=function(A){return y7(A.sequence_,function(Q){return typeof Q[1]==="function"})},nAY={},KML=function(A){if(A.unhandledErrorId_&&A.fired_&&IDL(A)){var Q=A.unhandledErrorId_,b=Hzv[Q];
b&&(_.by.clearTimeout(b.JSC$9962_id_),delete Hzv[Q]);A.unhandledErrorId_=0}A.parent_&&(A.parent_.branches_--,delete A.parent_);Q=A.result_;for(var f=b=!1;A.sequence_.length&&!A.blocked_;){var a=A.sequence_.shift(),T=a[0],G=a[1];a=a[2];if(T=A.hadError_?G:T)try{var p=T.call(a||A.defaultScope_,Q);p===nAY&&(p=void 0);p!==void 0&&(A.hadError_=A.hadError_&&(p==Q||A.isError(p)),A.result_=Q=p);if(DLr(Q)||typeof _.by.Promise==="function"&&Q instanceof _.by.Promise)f=!0,A.blocked_=!0}catch(P){Q=P,A.hadError_=
!0,IDL(A)||(b=!0)}}A.result_=Q;f&&(p=(0,_.IL)(A.continue_,A,!0),f=(0,_.IL)(A.continue_,A,!1),Q instanceof $p?(s3(Q,p,f),Q.blocking_=!0):Q.then(p,f));b&&(Q=new C4L(Q),Hzv[Q.JSC$9962_id_]=Q,A.unhandledErrorId_=Q.JSC$9962_id_)},Ozv=function(A){var Q=new $p;
A.then(function(b){Q.callback(b)},function(b){Q.errback(b)});
return Q},izj=function(){_.A4.call(this)};
_.BD(izj,_.A4);izj.prototype.message="Deferred has already fired";izj.prototype.name="AlreadyCalledError";var NY=function(){_.A4.call(this)};
_.BD(NY,_.A4);NY.prototype.message="Deferred was canceled";NY.prototype.name="CanceledError";var C4L=function(A){this.JSC$9962_id_=_.by.setTimeout((0,_.IL)(this.throwError,this),0);this.JSC$9962_error_=A};
C4L.prototype.throwError=function(){delete Hzv[this.JSC$9962_id_];throw this.JSC$9962_error_;};
var Hzv={};var q7r={1:"NativeMessagingTransport"},oA$=["pu","lru","pru","lpu","ppu"],rkp=function(){for(var A=10,Q=tB9,b=Q.length,f="";A-- >0;)f+=Q.charAt(Math.floor(Math.random()*b));return f},tB9="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var mp=function(A){_.k$.call(this);this.JSC$9965_domHelper_=A||OX()};
_.BD(mp,_.k$);mp.prototype.transportType=0;mp.prototype.getWindow=function(){return this.JSC$9965_domHelper_.getWindow()};
mp.prototype.getName=function(){return q7r[String(this.transportType)]||""};var AP=function(A,Q,b,f,a){mp.call(this,b);this.JSC$9968_channel_=A;this.protocolVersion_=a||2;this.peerHostname_=Q||"*";this.JSC$9968_eventHandler_=new _.BR(this);this.maybeAttemptToConnectTimer_=new _.GL(100,this.getWindow());this.oneSidedHandshake_=!!f;this.setupAckReceived_=new $p;this.setupAckSent_=new $p;this.JSC$9968_connected_=new $p;this.endpointId_=rkp();this.peerEndpointId_=null;this.oneSidedHandshake_?j7p(this.JSC$9968_channel_)==1?kI$(this.JSC$9968_connected_,this.setupAckReceived_):
kI$(this.JSC$9968_connected_,this.setupAckSent_):(kI$(this.JSC$9968_connected_,this.setupAckReceived_),this.protocolVersion_==2&&kI$(this.JSC$9968_connected_,this.setupAckSent_));VBp(this.JSC$9968_connected_,this.notifyConnected_,this);this.JSC$9968_connected_.callback(!0);this.JSC$9968_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.BD(AP,mp);AP.prototype.peerProtocolVersion_=null;AP.prototype.initialized_=!1;AP.prototype.transportType=1;var R4x={};AP.prototype.sendTimerId_=0;
var h4p=function(A){var Q=A.event_.data;if(typeof Q!=="string")return!1;var b=Q.indexOf("|"),f=Q.indexOf(":");if(b==-1||f==-1)return!1;var a=Q.substring(0,b);b=Q.substring(b+1,f);Q=Q.substring(f+1);if(f=QJ[a])return f.xpcDeliver(b,Q,A.event_.origin),!0;f=gAx(Q)[0];for(var T in QJ){var G=QJ[T];if(j7p(G)==1&&!G.isConnected()&&b=="tp"&&(f=="SETUP"||f=="SETUP_NTPV2")&&e4L(G,A.event_.origin))return delete QJ[G.name],G.name=a,QJ[a]=G,G.xpcDeliver(b,Q),!0}return!1},WMM=function(A){A.protocolVersion_!=2||
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||A.send("tp","SETUP_NTPV2,"+A.endpointId_);
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||A.send("tp","SETUP")},vAp=function(A,Q){if(A.protocolVersion_!=2||A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||Q!=2){if(A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||Q!=1)return;
A.send("tp","SETUP_ACK")}else A.send("tp","SETUP_ACK_NTPV2");A.setupAckSent_.fired_||A.setupAckSent_.callback(!0)},EAy=function(A,Q){Q>A.peerProtocolVersion_&&(A.peerProtocolVersion_=Q);
A.peerProtocolVersion_==1&&(A.setupAckSent_.fired_||A.oneSidedHandshake_||A.setupAckSent_.callback(!0),A.peerEndpointId_=null)};
_.d=AP.prototype;_.d.connect=function(){var A=this.getWindow(),Q=_.YC(A),b=R4x[Q];typeof b!=="number"&&(b=0);b==0&&_.jM(A.postMessage?A:A.document,"message",h4p,!1,AP);R4x[Q]=b+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.d.maybeAttemptToConnect_=function(){var A=j7p(this.JSC$9968_channel_)==0;this.oneSidedHandshake_&&A||this.JSC$9968_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),WMM(this))};
_.d.send=function(A,Q){var b=this.JSC$9968_channel_.peerWindowObject_;b&&(this.send=function(f,a){var T=this,G=this.JSC$9968_channel_.name;this.sendTimerId_=t1(function(){T.sendTimerId_=0;try{var p=b.postMessage?b:b.document;p.postMessage&&p.postMessage(G+"|"+f+":"+a,T.peerHostname_)}catch(P){}},0)},this.send(A,Q))};
_.d.notifyConnected_=function(){var A=this.JSC$9968_channel_,Q=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;A.isConnected()||A.connectionDelay_&&A.connectionDelay_.isActive()||(A.state_=2,_.AT(A.connectionDelay_),Q!==void 0?(A.connectionDelay_=new _.Ho(A.connectCb_,Q),A.connectionDelay_.start()):(A.connectionDelay_=null,A.connectCb_()))};
_.d.disposeInternal=function(){if(this.initialized_){var A=this.getWindow(),Q=_.YC(A),b=R4x[Q];R4x[Q]=b-1;b==1&&_.kp(A.postMessage?A:A.document,"message",h4p,!1,AP)}this.sendTimerId_&&(_.by.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.AT(this.JSC$9968_eventHandler_);delete this.JSC$9968_eventHandler_;_.AT(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$9968_connected_.cancel();delete this.JSC$9968_connected_;delete this.send;AP.superClass_.disposeInternal.call(this)};
var gAx=function(A){A=A.split(",");A[1]=A[1]||null;return A};var ckp;_.b1=function(A){if(A.getValues&&typeof A.getValues=="function")return A.getValues();if(typeof Map!=="undefined"&&A instanceof Map||typeof Set!=="undefined"&&A instanceof Set)return Array.from(A.values());if(typeof A==="string")return A.split("");if(_.ce(A)){for(var Q=[],b=A.length,f=0;f<b;f++)Q.push(A[f]);return Q}return _.j2.getValues(A)};
_.xz9=function(A){if(A.getKeys&&typeof A.getKeys=="function")return A.getKeys();if(!A.getValues||typeof A.getValues!="function"){if(typeof Map!=="undefined"&&A instanceof Map)return Array.from(A.keys());if(!(typeof Set!=="undefined"&&A instanceof Set)){if(_.ce(A)||typeof A==="string"){var Q=[];A=A.length;for(var b=0;b<A;b++)Q.push(b);return Q}return _.j2.getKeys(A)}}};
ckp=function(A,Q,b){if(A.forEach&&typeof A.forEach=="function")A.forEach(Q,b);else if(_.ce(A)||typeof A==="string")Array.prototype.forEach.call(A,Q,b);else for(var f=_.xz9(A),a=_.b1(A),T=a.length,G=0;G<T;G++)Q.call(b,a[G],f&&f[G],A)};var JCi,BX,PX,DzK,z4L,u_$,w_N,Y7x,Zzx;
_.m7=function(A,Q){this.JSC$9973_domain_=this.userInfo_=this.scheme_="";this.JSC$9973_port_=null;this.fragment_=this.JSC$9973_path_="";this.JSC$9973_ignoreCase_=!1;var b;A instanceof _.m7?(this.JSC$9973_ignoreCase_=Q!==void 0?Q:A.JSC$9973_ignoreCase_,_.fo(this,A.scheme_),this.userInfo_=A.userInfo_,_.aj(this,A.JSC$9973_domain_),_.Tf(this,A.JSC$9973_port_),_.dd(this,A.getPath()),_.Fh(this,A.JSC$9973_queryData_.clone()),_.Gf(this,A.fragment_)):A&&(b=_.Nq(String(A)))?(this.JSC$9973_ignoreCase_=!!Q,_.fo(this,
b[1]||"",!0),this.userInfo_=BX(b[2]||""),_.aj(this,b[3]||"",!0),_.Tf(this,b[4]),_.dd(this,b[5]||"",!0),_.Fh(this,b[6]||"",!0),_.Gf(this,b[7]||"",!0)):(this.JSC$9973_ignoreCase_=!!Q,this.JSC$9973_queryData_=new _.po(null,this.JSC$9973_ignoreCase_))};
_.m7.prototype.toString=function(){var A=[],Q=this.scheme_;Q&&A.push(PX(Q,z4L,!0),":");var b=this.JSC$9973_domain_;if(b||Q=="file")A.push("//"),(Q=this.userInfo_)&&A.push(PX(Q,z4L,!0),"@"),A.push(_.ud(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b=this.JSC$9973_port_,b!=null&&A.push(":",String(b));if(b=this.getPath())this.JSC$9973_domain_&&b.charAt(0)!="/"&&A.push("/"),A.push(PX(b,b.charAt(0)=="/"?w_N:u_$,!0));(b=this.JSC$9973_queryData_.toString())&&A.push("?",b);(b=this.fragment_)&&A.push("#",PX(b,
Zzx));return A.join("")};
_.m7.prototype.resolve=function(A){var Q=this.clone(),b=!!A.scheme_;b?_.fo(Q,A.scheme_):b=!!A.userInfo_;b?Q.userInfo_=A.userInfo_:b=!!A.JSC$9973_domain_;b?_.aj(Q,A.JSC$9973_domain_):b=A.JSC$9973_port_!=null;var f=A.getPath();if(b)_.Tf(Q,A.JSC$9973_port_);else if(b=!!A.JSC$9973_path_){if(f.charAt(0)!="/")if(this.JSC$9973_domain_&&!this.JSC$9973_path_)f="/"+f;else{var a=Q.getPath().lastIndexOf("/");a!=-1&&(f=Q.getPath().slice(0,a+1)+f)}a=f;if(a==".."||a==".")f="";else if(_.Pe(a,"./")||_.Pe(a,"/.")){f=
_.TX(a,"/");a=a.split("/");for(var T=[],G=0;G<a.length;){var p=a[G++];p=="."?f&&G==a.length&&T.push(""):p==".."?((T.length>1||T.length==1&&T[0]!="")&&T.pop(),f&&G==a.length&&T.push("")):(T.push(p),f=!0)}f=T.join("/")}else f=a}b?_.dd(Q,f):b=A.JSC$9973_queryData_.toString()!=="";b?_.Fh(Q,A.JSC$9973_queryData_.clone()):b=!!A.fragment_;b&&_.Gf(Q,A.fragment_);return Q};
_.m7.prototype.clone=function(){return new _.m7(this)};
_.fo=function(A,Q,b){A.scheme_=b?BX(Q,!0):Q;A.scheme_&&(A.scheme_=A.scheme_.replace(/:$/,""));return A};
_.aj=function(A,Q,b){A.JSC$9973_domain_=b?BX(Q,!0):Q;return A};
_.Tf=function(A,Q){if(Q){Q=Number(Q);if(isNaN(Q)||Q<0)throw Error("Pa`"+Q);A.JSC$9973_port_=Q}else A.JSC$9973_port_=null;return A};
_.m7.prototype.getPath=function(){return this.JSC$9973_path_};
_.dd=function(A,Q,b){A.JSC$9973_path_=b?BX(Q,!0):Q;return A};
_.Fh=function(A,Q,b){Q instanceof _.po?(A.JSC$9973_queryData_=Q,yk9(A.JSC$9973_queryData_,A.JSC$9973_ignoreCase_)):(b||(Q=PX(Q,Y7x)),A.JSC$9973_queryData_=new _.po(Q,A.JSC$9973_ignoreCase_));return A};
_.wv=function(A,Q,b){A.JSC$9973_queryData_.set(Q,b);return A};
_.zz=function(A,Q){return A.JSC$9973_queryData_.get(Q)};
_.Gf=function(A,Q,b){A.fragment_=b?BX(Q):Q;return A};
_.Xh=function(A){_.wv(A,"zx",x$());return A};
_.co=function(A,Q){return A instanceof _.m7?A.clone():new _.m7(A,Q)};
JCi=function(A,Q){A instanceof _.m7||(A=_.co(A));Q instanceof _.m7||(Q=_.co(Q));return A.resolve(Q)};
BX=function(A,Q){return A?Q?decodeURI(A.replace(/%25/g,"%2525")):decodeURIComponent(A):""};
PX=function(A,Q,b){return typeof A==="string"?(A=encodeURI(A).replace(Q,DzK),b&&(A=A.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),A):null};
DzK=function(A){A=A.charCodeAt(0);return"%"+(A>>4&15).toString(16)+(A&15).toString(16)};
z4L=/[#\/\?@]/g;u_$=/[#\?:]/g;w_N=/[#\?]/g;Y7x=/[#\?@]/g;Zzx=/#/g;_.po=function(A,Q){this.count_=this.keyMap_=null;this.encodedQuery_=A||null;this.JSC$9974_ignoreCase_=!!Q};
_.Sp=function(A){A.keyMap_||(A.keyMap_=new Map,A.count_=0,A.encodedQuery_&&e7r(A.encodedQuery_,function(Q,b){A.add(Qb(Q),b)}))};
_.d=_.po.prototype;_.d.getCount=function(){_.Sp(this);return this.count_};
_.d.add=function(A,Q){_.Sp(this);this.encodedQuery_=null;A=Uf(this,A);var b=this.keyMap_.get(A);b||this.keyMap_.set(A,b=[]);b.push(Q);this.count_+=1;return this};
_.d.remove=function(A){_.Sp(this);A=Uf(this,A);return this.keyMap_.has(A)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(A).length,this.keyMap_.delete(A)):!1};
_.d.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.d.isEmpty=function(){_.Sp(this);return this.count_==0};
_.d.containsKey=function(A){_.Sp(this);A=Uf(this,A);return this.keyMap_.has(A)};
_.d.containsValue=function(A){var Q=this.getValues();return _.ve(Q,A)};
_.d.forEach=function(A,Q){_.Sp(this);this.keyMap_.forEach(function(b,f){b.forEach(function(a){A.call(Q,a,f,this)},this)},this)};
_.d.getKeys=function(){_.Sp(this);for(var A=Array.from(this.keyMap_.values()),Q=Array.from(this.keyMap_.keys()),b=[],f=0;f<Q.length;f++)for(var a=A[f],T=0;T<a.length;T++)b.push(Q[f]);return b};
_.d.getValues=function(A){_.Sp(this);var Q=[];if(typeof A==="string")this.containsKey(A)&&(Q=Q.concat(this.keyMap_.get(Uf(this,A))));else{A=Array.from(this.keyMap_.values());for(var b=0;b<A.length;b++)Q=Q.concat(A[b])}return Q};
_.d.set=function(A,Q){_.Sp(this);this.encodedQuery_=null;A=Uf(this,A);this.containsKey(A)&&(this.count_-=this.keyMap_.get(A).length);this.keyMap_.set(A,[Q]);this.count_+=1;return this};
_.d.get=function(A,Q){if(!A)return Q;A=this.getValues(A);return A.length>0?String(A[0]):Q};
_.$z1=function(A,Q,b){A.remove(Q);b.length>0&&(A.encodedQuery_=null,A.keyMap_.set(Uf(A,Q),_.xC(b)),A.count_+=b.length)};
_.po.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var A=[],Q=Array.from(this.keyMap_.keys()),b=0;b<Q.length;b++){var f=Q[b],a=_.ud(f);f=this.getValues(f);for(var T=0;T<f.length;T++){var G=a;f[T]!==""&&(G+="="+_.ud(f[T]));A.push(G)}}return this.encodedQuery_=A.join("&")};
_.po.prototype.clone=function(){var A=new _.po;A.encodedQuery_=this.encodedQuery_;this.keyMap_&&(A.keyMap_=new Map(this.keyMap_),A.count_=this.count_);return A};
var Uf=function(A,Q){Q=String(Q);A.JSC$9974_ignoreCase_&&(Q=Q.toLowerCase());return Q},yk9=function(A,Q){Q&&!A.JSC$9974_ignoreCase_&&(_.Sp(A),A.encodedQuery_=null,A.keyMap_.forEach(function(b,f){var a=f.toLowerCase();
f!=a&&(this.remove(f),_.$z1(this,a,b))},A));
A.JSC$9974_ignoreCase_=Q};
_.po.prototype.extend=function(A){for(var Q=0;Q<arguments.length;Q++)ckp(arguments[Q],function(b,f){this.add(f,b)},this)};var Lo=function(A,Q){D7.call(this);for(var b=0,f;f=oA$[b];b++)if(f in A&&!/^https?:\/\//.test(A[f]))throw Error("Ra`"+A[f]+"`"+f);this.cfg_=A;this.name=this.cfg_.cn||rkp();this.JSC$9969_domHelper_=Q||OX();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.BR(this);A.lpu=A.lpu||R7W(this.JSC$9969_domHelper_.getWindow().location.href)+"/robots.txt";A.ppu=A.ppu||R7W(A.pu||"")+"/robots.txt";QJ[this.name]=this;EmY(window,"unload",NY1)||q7(window,"unload",NY1)};
_.BD(Lo,D7);var s79=RegExp("^%*tp$"),mzr=RegExp("^%+tp$");_.d=Lo.prototype;_.d.connectionDelay_=null;_.d.peerWindowDeferred_=null;_.d.transport_=null;_.d.state_=1;_.d.isConnected=function(){return this.state_==2};
_.d.peerWindowObject_=null;_.d.iframeElement_=null;_.d.connect=function(A){this.connectCb_=A||_.nw;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?VBp(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.d.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$9969_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var A=this.iframeElement_.contentWindow;A||(A=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=A}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$9969_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new AP(this,this.cfg_.ph,this.JSC$9969_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()()};
_.d.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.AT(this.transport_);this.connectCb_=this.transport_=null;_.AT(this.connectionDelay_);this.connectionDelay_=null};
_.d.send=function(A,Q){if(this.isConnected()){try{var b=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(a){b=!1}if(b){_.ZU(Q)&&(Q=(0,_.jV)(Q));b=this.transport_;var f=b.send;s79.test(A)&&(A="%"+A);A=A.replace(/[%:|]/g,encodeURIComponent);f.call(b,A,Q)}else this.close()}};
_.d.xpcDeliver=function(A,Q,b){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.IL)(this.xpcDeliver,this,A,Q,b));else if(e4L(this,b)&&!this.isDisposed()&&this.state_!=3)if(A&&A!="tp")this.isConnected()&&(A=A.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),A=mzr.test(A)?A.substring(1):A,A=this.getService(A,Q))&&(Q=MBL(Q,A.objectPayload),Q!=null&&A.callback(Q));else switch(A=this.transport_,b=gAx(Q),Q=b[1],b[0]){case "SETUP_ACK":EAy(A,1);A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":A.protocolVersion_==2&&(EAy(A,2),A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0));break;case "SETUP":EAy(A,1);vAp(A,1);break;case "SETUP_NTPV2":A.protocolVersion_==2&&(b=A.peerProtocolVersion_,EAy(A,2),vAp(A,2),b!=1&&A.peerEndpointId_==null||A.peerEndpointId_==Q||WMM(A),A.peerEndpointId_=Q)}};
var j7p=function(A){var Q=A.cfg_.role;return typeof Q==="number"?Q:window.parent==A.peerWindowObject_?1:0},e4L=function(A,Q){var b=A.cfg_.ph;
return _.Be(Q==null?"":String(Q))||_.Be(b==null?"":String(b))||Q==A.cfg_.ph};
Lo.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete QJ[this.name];_.AT(this.peerLoadHandler_);delete this.peerLoadHandler_;Lo.superClass_.disposeInternal.call(this)};
var NY1=function(){for(var A in QJ)_.AT(QJ[A])},QJ={};var Q8Y=function(A,Q){this.JSC$9983_win=A;this.allowAdsHttpEndpoint=Q;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$9983_domHelper=OX(A);this.scrollManager=new S7p(A);this.accessibilityManager=new GIy(A);Azj(this)},Azj=function(A){var Q=function(){A.allowAdsPopup&&A.allowAdsPopup.style.setProperty("display","none","important");
A.wallElement.style.setProperty("display","","important");BYx(A.accessibilityManager);X_j(A.accessibilityManager,A.wallElement.querySelector(".fc-dialog-container"),!1,!1,A.wallElement.querySelector(".fc-button-whitelist"));A.scrollManager.enableScrolling()};
A.allowAdsPopup=A.JSC$9983_domHelper.JSC$9270_createDom("DIV",{"class":"fc-whitelist-root"});A.allowAdsPopup.style.setProperty("display","none","important");A.JSC$9983_domHelper.appendChild(A.JSC$9983_domHelper.JSC$9268_document_.body,A.allowAdsPopup);var b=A.JSC$9983_domHelper.JSC$9270_createDom("DIV",{"class":"fc-dialog-overlay"});A.JSC$9983_domHelper.appendChild(A.allowAdsPopup,b);var f=A.JSC$9983_domHelper.JSC$9270_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:Q});A.JSC$9983_domHelper.appendChild(A.allowAdsPopup,
f);b=A.JSC$9983_domHelper.JSC$9270_createDom("IFRAME");b.className="fc-whitelist-dialog";b.frameBorder="0";b.id="fc-whitelist-iframe";b.tabIndex="0";_.Zi(b,A.allowAdsHttpEndpoint);A.JSC$9983_domHelper.appendChild(f,b);f={};f.pu=_.IT(A.allowAdsHttpEndpoint).toString();f.tp=1;f.cn="fc-whitelist-channel";f.ifrid=b.id;f.osh=!0;A.allowAdsCrossPageChannel=new Lo(f);A.allowAdsCrossPageChannel.registerService("close",Q);A.allowAdsCrossPageChannel.registerService("refresh",function(){A.JSC$9983_win.location.reload()});
A.allowAdsCrossPageChannel.registerService("resize",function(a){if(a){var T=A.allowAdsPopup.querySelector(".fc-whitelist-dialog");a.width&&T.style.setProperty("width",a.width,"important");a.height&&T.style.setProperty("height",a.height,"important")}},!0);
A.allowAdsCrossPageChannel.connect()};
Q8Y.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$9983_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var l1=window,Ko=document,bHv=l1.location,fR1=function(){},aRj=/\[native code\]/,i1=function(A,Q,b){return A[Q]=A[Q]||b},TNy=function(A){A=A.sort();
for(var Q=[],b=void 0,f=0;f<A.length;f++){var a=A[f];a!=b&&Q.push(a);b=a}return Q},JP=function(){var A;
if((A=Object.create)&&aRj.test(A))A=A(null);else{A={};for(var Q in A)A[Q]=void 0}return A},VJ=i1(l1,"gapi",{});var Of={};Of=i1(l1,"___jsl",JP());i1(Of,"I",0);i1(Of,"hel",10);var dq$=function(){var A=bHv.href;if(Of.dpo)var Q=Of.h;else{Q=Of.h;var b=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),f=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(A=A&&(b.exec(A)||f.exec(A)))try{Q=decodeURIComponent(A[2])}catch(a){}}return Q},FRx=function(A){var Q=i1(Of,"PQ",[]);
Of.PQ=[];var b=Q.length;if(b===0)A();else for(var f=0,a=function(){++f===b&&A()},T=0;T<b;T++)Q[T](a)},GVx=function(A){return i1(i1(Of,"H",JP()),A,JP())};var no=function(A){this.JSC$9985_obj_=A};
no.prototype.value=function(){return this.JSC$9985_obj_};
no.prototype.getWidth=function(){return this.JSC$9985_obj_.width};
no.prototype.getHeight=function(){return this.JSC$9985_obj_.height};
no.prototype.getStyle=function(){return this.JSC$9985_obj_.style};var BNr=function(A){this.JSC$9988_obj_=A||{}};
_.d=BNr.prototype;_.d.value=function(){return this.JSC$9988_obj_};
_.d.setUrl=function(A){this.JSC$9988_obj_.url=A;return this};
_.d.getUrl=function(){return this.JSC$9988_obj_.url};
_.d.getStyle=function(){return this.JSC$9988_obj_.style};
_.d.getId=function(){return this.JSC$9988_obj_.id};
_.d.getContext=function(){return this.JSC$9988_obj_.context};
var pGK=function(A){A.JSC$9988_obj_.attributes=A.JSC$9988_obj_.attributes||{};return new no(A.JSC$9988_obj_.attributes)};var PdM=function(){BNr.apply(this,arguments)};
_.O(PdM,BNr);var XGW=i1(Of,"perf",JP());i1(XGW,"g",JP());var Spp=i1(XGW,"i",JP());i1(XGW,"r",[]);JP();JP();var LR1=function(A,Q,b){Q&&Q.length>0&&(Q=Uqv(Q),b&&b.length>0&&(Q+="___"+Uqv(b)),Q.length>28&&(Q=Q.substr(0,28)+(Q.length-28)),b=Q,Q=i1(Spp,"_p",JP()),i1(Q,b,JP())[A]=(new Date).getTime(),Q=XGW.r,typeof Q==="function"?Q(A,"_p",b):Q.push([A,"_p",b]))},Uqv=function(A){return A.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var M6W=JP(),lRy=[],kH=function(A){throw Error("Ua`"+A);};
lRy.push(["jsl",function(A){for(var Q in A)if(Object.prototype.hasOwnProperty.call(A,Q)){var b=A[Q];typeof b=="object"?Of[Q]=i1(Of,Q,[]).concat(b):i1(Of,Q,b)}if(Q=A.u)A=i1(Of,"us",[]),A.push(Q),(Q=/^https:(.*)$/.exec(Q))&&A.push("http:"+Q[1])}]);
var KRy=/^(\/[a-zA-Z0-9_\-]+)+$/,iHv=[/\/amp\//,/\/amp$/,/^\/amp$/],Jzy=/^[a-zA-Z0-9\-_\.,!]+$/,V69=/^gapi\.loaded_[0-9]+$/,OHL=/^[a-zA-Z0-9,._-]+$/,HHr=function(A,Q,b,f,a){var T=A.split(";"),G=T.shift(),p=M6W[G],P=null;p?P=p(T,Q,b,f):kH("no hint processor for: "+G);P||kH("failed to generate load url");Q=P;b=Q.match(nQL);(f=Q.match(kVL))&&f.length===1&&IRK.test(Q)&&b&&b.length===1||kH("failed sanity: "+A);try{A="?";if(a&&a.length>0){HFe(a);var U=a.join(",");P=P+"?le="+U;A="&"}if(Of.rol){var L=Of.ol;
L&&L.length&&(P=""+P+A+"ol="+L.length)}}catch(M){}return P},oQ1=function(A,Q,b,f){A=Cdp(A);
V69.test(b)||kH("invalid_callback");Q=qpy(Q);f=f&&f.length?qpy(f):null;var a=function(T){return encodeURIComponent(T).replace(/%2C/g,",")};
return[encodeURIComponent(A.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",a(A.version),"/m=",a(Q),f?"/exm="+a(f):"","/rt=j/sv=1/d=1/ed=1",A.activeMods?"/am="+a(A.activeMods):"",A.resourceSig?"/rs="+a(A.resourceSig):"",A.zcms?"/t="+a(A.zcms):"","/cb=",a(b)].join("")},Cdp=function(A){A.charAt(0)!=="/"&&kH("relative path");
for(var Q=A.substring(1).split("/"),b=[];Q.length;){A=Q.shift();if(!A.length||A.indexOf(".")==0)kH("empty/relative directory");else if(A.indexOf("=")>0){Q.unshift(A);break}b.push(A)}A={};for(var f=0,a=Q.length;f<a;++f){var T=Q[f].split("="),G=decodeURIComponent(T[0]),p=decodeURIComponent(T[1]);T.length==2&&G&&p&&(A[G]=A[G]||p)}Q="/"+b.join("/");KRy.test(Q)||kH("invalid_prefix");b=0;for(f=iHv.length;b<f;++b)iHv[b].test(Q)&&kH("invalid_prefix");b=t6y(A,"k",!0);f=t6y(A,"am");a=t6y(A,"rs");A=t6y(A,"t");
return{pathPrefix:Q,version:b,activeMods:f,resourceSig:a,zcms:A}},qpy=function(A){for(var Q=[],b=0,f=A.length;b<f;++b){var a=A[b].replace(/\./g,"_").replace(/-/g,"_");
OHL.test(a)&&Q.push(a)}return Q.join(",")},t6y=function(A,Q,b){A=A[Q];
!A&&b&&kH("missing: "+Q);if(A){if(Jzy.test(A))return A;kH("invalid: "+Q)}return null},IRK=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,kVL=/\/cb=/g,nQL=/\/\//g;
M6W.m=function(A,Q,b,f){(A=A[0])||kH("missing_hint");return"https://apis.google.com"+oQ1(A,Q,b,f)};
var rzL=decodeURI("%73cript"),j81=/^[-+_0-9\/A-Za-z]+={0,2}$/,RgW=function(A,Q){for(var b=[],f=0;f<A.length;++f){var a=A[f],T;if(T=a){a:{for(T=0;T<Q.length;T++)if(Q[T]===a)break a;T=-1}T=T<0}T&&b.push(a)}return b},gQL=function(){var A=Of.nonce;
return A!==void 0?A&&A===String(A)&&A.match(j81)?A:Of.nonce=null:Ko.querySelector?(A=Ko.querySelector("script[nonce]"))?(A=A.nonce||A.getAttribute("nonce")||"",A&&A===String(A)&&A.match(j81)?Of.nonce=A:Of.nonce=null):null:null},WRY=function(A){if(Ko.readyState!="loading")egK(A);
else{var Q=gQL(),b="";Q!==null&&(b=' nonce="'+Q+'"');A="<"+rzL+' src="'+encodeURI(A)+'"'+b+"></"+rzL+">";Ko.write(hgj?hgj.createHTML(A):A)}},egK=function(A){var Q=Ko.createElement(rzL);
Q.setAttribute("src",hgj?hgj.createScriptURL(A):A);A=gQL();A!==null&&Q.setAttribute("nonce",A);Q.async="true";(A=Ko.getElementsByTagName(rzL)[0])?A.parentNode.insertBefore(Q,A):(Ko.head||Ko.body||Ko.documentElement).appendChild(Q)},EQN=function(A,Q,b){vQy(function(){var f=Q===dq$()?i1(VJ,"_",JP()):JP();
f=i1(GVx(Q),"_",f);A(f)},b)},XTC=function(A,Q){var b=Q||{};
typeof Q=="function"&&(b={},b.callback=Q);var f=(Q=b)&&Q._c;if(f)for(var a=0;a<lRy.length;a++){var T=lRy[a][0],G=lRy[a][1];G&&Object.prototype.hasOwnProperty.call(f,T)&&G(f[T],A,Q)}Q=[];A?Q=A.split(":"):b.features&&(Q=b.features);if(!(A=b.h)&&(A=dq$(),!A))throw Error("Va");xqv(Q||[],b,A)},xqv=function(A,Q,b){A=TNy(A)||[];
var f=Q.callback,a=Q.config,T=Q.timeout,G=Q.ontimeout,p=Q.onerror,P=void 0;typeof p=="function"&&(P=p);var U=null,L=!1;if(T&&!G||!T&&G)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";p=i1(GVx(b),"r",[]).sort();var M=i1(GVx(b),"L",[]).sort(),l=Of.le||[],J=[].concat(p),n=function(D,w){if(L)return 0;l1.clearTimeout(U);M.push.apply(M,t);var u=((VJ||{}).config||{}).update;u?u(a):a&&i1(Of,"cu",[]).push(a);if(w){LR1("me0",D,J);try{EQN(w,b,P)}finally{LR1("me1",D,J)}}return 1};
T>0&&(U=l1.setTimeout(function(){L=!0;G()},T));
var t=RgW(A,M);if(t.length){t=RgW(A,p);var g=i1(Of,"CP",[]),e=g.length;g[e]=function(D){if(!D)return 0;LR1("ml1",t,J);var w=function(y){g[e]=null;n(t,D)&&FRx(function(){f&&f();y()})},u=function(){var y=g[e+1];
y&&y()};
e>0&&g[e-1]?g[e]=function(){w(u)}:w(u)};
if(t.length){var x="loaded_"+Of.I++;VJ[x]=function(D){g[e](D);VJ[x]=null};
A=HHr(b,t,"gapi."+x,p,l);p.push.apply(p,t);LR1("ml0",t,J);Q.sync||l1.___gapisync?WRY(A):egK(A)}else g[e](fR1)}else n(t)&&f&&f()},czY;
var zg1=null,wGK=_.by.trustedTypes;if(wGK&&wGK.createPolicy){try{zg1=wGK.createPolicy("goog#gapi",{createHTML:ygb,createScript:ygb,createScriptURL:ygb})}catch(A){_.by.console&&_.by.console.error(A.message)}czY=zg1}else czY=zg1;var hgj=czY,vQy=function(A,Q){if(Of.hee&&Of.hel>0)try{return A()}catch(b){Q&&Q(b),Of.hel--,XTC("debug_error",function(){try{window.___jsl.hefn(b)}catch(f){throw b;}})}else try{return A()}catch(b){throw Q&&Q(b),b;
}},uF1=VJ.load;
uF1&&i1(Of,"ol",[]).push(uF1);VJ.load=function(A,Q){return vQy(function(){return XTC(A,Q)})};var $Qy;var yzr=function(A,Q){var b=b||[];this.serviceId_=A;this.moduleId_=Q||null;this.dependencies_=[];ZHr(this,b)};
yzr.prototype.toString=function(){return this.serviceId_};
yzr.prototype.getModuleId=function(){return this.moduleId_};
var ZHr=function(A,Q){var b=!1;b=b===void 0?!1:b;A.dependencies_=A.dependencies_.concat(Q);if(b){if(!A.moduleId_)throw Error("Wa`"+A.serviceId_);Q.map(function(f){return f.getModuleId()}).forEach(function(f){NeC(function(a){a.addExtraEdge(A.moduleId_,f)})})}};var mWY=new yzr("MpJwZc","MpJwZc");var QFb=new _.i9("a"),AQ4=function(A,Q,b){_.J1.call(this,A,Q);this.node=Q;this.kind=b};
_.O(AQ4,_.J1);var YpL=function(){this.JSC$10001_keys_={};this.urlPrefix_="";this.JSC$10001_queryData_={}};
YpL.prototype.toString=function(){var A=this.urlPrefix_+Dqy(this),Q=_.lu(this.JSC$10001_queryData_),b="";Q!=""&&(b="?"+Q);return A+b};
var $qW=function(A){A=Ij(A,"md");return!!A&&A!=="0"},Dqy=function(A){var Q=[],b=(0,_.IL)(function(f){this.JSC$10001_keys_[f]!==void 0&&Q.push(f+"="+this.JSC$10001_keys_[f])},A);
$qW(A)?(b("md"),b("k"),b("ck"),b("am"),b("rs"),b("gssmodulesetproto"),b("slk"),b("dti")):(b("sdch"),b("k"),b("ck"),b("am"),b("rt"),"d"in A.JSC$10001_keys_||HX(A,"d","0"),b("d"),b("exm"),b("excm"),(A.JSC$10001_keys_.excm||A.JSC$10001_keys_.exm)&&Q.push("ed=1"),b("im"),b("dg"),b("sm"),Ij(A,"br")!="1"&&Ij(A,"br")!="0"||b("br"),b("br-d"),Ij(A,"rb")=="1"&&b("rb"),Ij(A,"zs")!=="0"&&b("zs"),NNL(A)!==""&&b("wt"),b("gssmodulesetproto"),b("ujg"),b("sp"),b("rs"),b("cb"),b("ee"),b("slk"),b("dti"),b("m"));return Q.join("/")},
Ij=function(A,Q){return A.JSC$10001_keys_[Q]?A.JSC$10001_keys_[Q]:null},HX=function(A,Q,b){b?A.JSC$10001_keys_[Q]=b:delete A.JSC$10001_keys_[Q]},s89=function(A,Q){A.urlPrefix_=Q},mq1=function(A,Q){Q&&Q.length>0?(Q.sort(),HX(A,"exm",Q.join(","))):HX(A,"exm",null)},A$x=function(A,Q){Q&&Q.length>0?(Q.sort(),HX(A,"excm",Q.join(","))):HX(A,"excm",null)},QOY=function(A){return(A=Ij(A,"m"))?A.split(","):[]},NNL=function(A){switch(Ij(A,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},bJp=function(A,Q){var b=Object.keys(Q).filter(function(f){return!!Object.keys(Q[f]).length}).map(function(f){var a=Object.keys(Q[f]);
a.length>1&&a.sort();return f+":"+a.join(",")});
b.sort();HX(A,"ee",b.join(";"))},clY=function(A){var Q=Ij(A,"ee");
if(!Q)return{};A={};Q=_.F(Q.split(";"));for(var b=Q.next();!b.done;b=Q.next()){var f=_.F(b.value.split(":"));b=f.next().value;f=f.next().value;A[b]={};f=_.F(f.split(","));for(var a=f.next();!a.done;a=f.next())A[b][a.value]=!0}return A},f1j=function(A){delete A.JSC$10001_keys_.m;
delete A.JSC$10001_keys_.exm;delete A.JSC$10001_keys_.ed};
YpL.prototype.clone=function(){var A=new YpL;A.JSC$10001_keys_=Object.assign({},this.JSC$10001_keys_);A.urlPrefix_=this.urlPrefix_;A.JSC$10001_queryData_=Object.assign({},this.JSC$10001_queryData_);return A};
var zbW=function(A,Q){Q=Q===void 0?!0:Q;var b=a1W(A),f=new YpL,a=_.Nq(b)[5];_.j2.forEach(Ter,function(G){var p=a.match("/"+G+"=([^/]+)");p&&HX(f,G,p[1])});
var T="";T=A.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";s89(f,A.substr(0,A.indexOf(T)+T.length));if(!Q)return f;(A=_.Nq(b)[6]||null)&&e7r(A,function(G,p){f.JSC$10001_queryData_[G]=p});
return f},vTe=function(A){A=_.LJ(a1W(A));
return A===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(A)?/\/k=/.test(A):!1},a1W=function(A){return A.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?A.substr(65):A},Ter={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"},dQM=RegExp("^loaded_(g|h)?[_\\d]+$");_.Co=function(A){this.JSC$10013_id_=A;this.opts={}};
_.Co.prototype.JSC$10015_setLabel=function(A){this.label_=A||void 0;return this};
_.Co.prototype.addUploadMetadata=function(A,Q){var b=this.opts.data||{};b[A]=Q;this.opts.data=b;return this};
var F9W=function(A){var Q=_.j2.filter(A.opts,function(b){return b!==null});
Q=_.j2.isEmpty(Q)?null:Q;A=[A.JSC$10013_id_,A.label_,Q];Q=VAJ(A);return A=A.slice(0,Q+1)};
_.Co.prototype.toString=function(){var A=F9W(this);return"("+_.Rk(A,function(Q){return JSON.stringify(Q)}).join(",")+")"};
_.Co.prototype.getId=function(){return this.JSC$10013_id_};
_.Co.prototype.getOptions=function(){return _.j2.clone(this.opts)};var qA=function(){_.Co.call(this,"image-search")};
_.O(qA,_.Co);qA.prototype.setSize=function(A){this.opts.imgsz=A;return this};
qA.prototype.JSC$10015_setLabel=function(A){_.Co.prototype.JSC$10015_setLabel.call(this,A);return this};
qA.prototype.addUploadMetadata=function(A,Q){_.Co.prototype.addUploadMetadata.call(this,A,Q);return this};var oj=function(){_.Co.call(this,"maps")};
_.O(oj,_.Co);oj.prototype.setZoom=function(A){this.opts.zoom=A;return this};
oj.prototype.JSC$10015_setLabel=function(A){_.Co.prototype.JSC$10015_setLabel.call(this,A);return this};
oj.prototype.addUploadMetadata=function(A,Q){_.Co.prototype.addUploadMetadata.call(this,A,Q);return this};_.tP=function(){_.Co.call(this,"photos")};
_.O(_.tP,_.Co);_.tP.prototype.JSC$10015_setLabel=function(A){_.Co.prototype.JSC$10015_setLabel.call(this,A);return this};
_.tP.prototype.addUploadMetadata=function(A,Q){_.Co.prototype.addUploadMetadata.call(this,A,Q);return this};var rd=function(){_.Co.call(this,"url")};
_.O(rd,_.Co);var GPN=function(){var A=new rd;A.opts.type="video";A.opts.site="youtube.com";return A};
rd.prototype.JSC$10015_setLabel=function(A){_.Co.prototype.JSC$10015_setLabel.call(this,A);return this};
rd.prototype.addUploadMetadata=function(A,Q){_.Co.prototype.addUploadMetadata.call(this,A,Q);return this};var jp=function(){_.Co.call(this,"video-search")};
_.O(jp,_.Co);var Bej=function(){var A=new jp;A.opts.site="youtube.com";return A};
jp.prototype.JSC$10015_setLabel=function(A){_.Co.prototype.JSC$10015_setLabel.call(this,A);return this};
jp.prototype.addUploadMetadata=function(A,Q){_.Co.prototype.addUploadMetadata.call(this,A,Q);return this};var prW=function(){_.Co.call(this,"web")};
_.O(prW,_.Co);prW.prototype.JSC$10015_setLabel=function(A){_.Co.prototype.JSC$10015_setLabel.call(this,A);return this};
prW.prototype.addUploadMetadata=function(A,Q){_.Co.prototype.addUploadMetadata.call(this,A,Q);return this};var Rj=function(){this.items_=[];this.opts={}},Puy=function(A){switch(A){case "image-search":return new qA;
case "maps":return new oj;case "photos":return new _.tP;case "url":return new rd;case "video-search":return new jp;case "web":return new prW}return new _.Co(A)};
Rj.prototype.addView=function(A){this.items_.push(typeof A==="string"?Puy(A):A);return this};
var Xry=function(A){return"("+_.Rk(A.items_,function(Q){return Q.toString()}).join(",")+")"};
Rj.prototype.toString=function(){return Xry(this)};
Rj.prototype.getViews=function(A,Q){Q=Q===void 0?[]:Q;for(var b=this.items_,f=0;f<b.length;f++){var a=b[f];a instanceof Rj?a.getViews(A,Q):a.getId()==A&&Q.push(a)}return Q};
Rj.prototype.getOptions=function(){return _.j2.clone(this.opts)};var eY=function(A){this.basePickerUrl_=A||"https://docs.google.com/picker";this.nav_=new Rj};
eY.prototype.nav_=null;eY.prototype.addView=function(A){this.nav_.addView(A);return this};
eY.prototype.getBaseUrl=function(){return this.basePickerUrl_};
eY.prototype.getViews=function(A){return this.nav_.getViews(A)};
_.Soj=function(A,Q){A.callback_=Q;return A};var UQx=new Map;UQx.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");UQx.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");UQx.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var L9Y=new Set;L9Y.add("application/vnd.google-apps.kix");L9Y.add("application/vnd.google-apps.ritz");L9Y.add("application/vnd.google-apps.punch");var CuL=function(A,Q,b){var f=b&&_.gA(b,1);b=MtK(b);var a=A[0].getId();switch(_.e1(a,2)){case 13:return l11(A,Q,f,b);case 3:return K99(A,Q,f,b);case 10:return iJy(A,Q,f,b);case 27:return iJy(A,Q,f,b);case 12:return J$W(A,Q);case 2:return Vtx(A,Q,f,b);case 5:return OJ1(A,Q,f,b);case 9:return nR$(A,Q,f,b);case 6:return kP9(A,Q,f,b);case 25:return I1v(A,Q,f,b);case 1:return _.ne(A[0],stY,26)?HJM(A,Q,f,b):iJy(A,Q,f,b);default:return{}}},kP9=function(A,Q,b,f){A=A.map(function(a){return{id:a.getId().getId(),
serviceId:"youtube",name:a.getName(),description:_.gA(a,3),type:gd(a),lastEditedUtc:_.NxY(_.dO(a,_.vi,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:a.getUrl(),embedUrl:_.gA(a,13),thumbnails:ep(b9(a))}});
return{action:Q,docs:A,viewToken:f,view:b||"youtube",v2Translated:!0}},Vtx=function(A,Q,b,f){var a=A.map(function(T){var G=T.getId().getId(),p=_.gA(T,7),P=T.getName(),U=gd(T),L=_.NxY(_.dO(T,_.vi,12)).getTime(),M=T.getUrl(),l=Number(pHW(T)),J=_.gA(T,3),n=_.gA(T,11),t=ep(b9(T));
var g=_.dO(T,fG,21);g=_.rA(g,1);var e=_.dO(T,fG,21);e=_.gA(e,10);var x=_.gA(T,13);var D=_.dO(T,fG,21);D=_.rA(D,9);var w=_.dO(T,fG,21);w=_.gA(w,11);G={id:G,serviceId:"docs",mimeType:p,name:P,type:U,lastEditedUtc:L,url:M,sizeBytes:l,description:J,iconUrl:n,thumbnails:t,isShared:g,downloadUrl:e,embedUrl:x,copyable:D,resourceKey:w};p=_.dO(T,fG,21);_.rA(p,12)&&(G.uploadState="success",G.isNew=!0);p=_.dO(T,fG,21);_.ne(p,mQ,3)&&(T=_.dO(T,fG,21),T=_.dO(T,mQ,3),_.ne(T,N_,2)&&(p=RL(T.getDuration().getSeconds()),
P=T.getDuration(),P=_.Tz(P,2),G.duration=p+P/1E9),G.aspectRatio=T.getAspectRatio());return G});
return{action:Q,docs:a,viewToken:f,view:b||"all",extraUserInputs:qo1(A),v2Translated:!0}},OJ1=function(A,Q,b,f){A=A.map(function(a){var T=_.dO(a,FwW,15);
T=_.dO(T,sJ,1);Jq(a,10,sJ,T);return{id:a.getId().getId(),serviceId:"web",mimeType:_.gA(a,7),name:a.getName(),type:gd(a),url:a.getUrl(),description:_.gA(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ep(b9(a))}});
return{action:Q,docs:A,viewToken:f,view:b||"image-search",v2Translated:!0}},nR$=function(A,Q,b,f){A=A.map(function(a){return{serviceId:"url",
name:b9(a)[0].getUrl().split("/").pop(),type:gd(a),mimeType:_.gA(a,7),url:a.getUrl(),description:_.gA(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ep(b9(a))}});
return{action:Q,docs:A,viewToken:f,view:b||"url",v2Translated:!0}},HJM=function(A,Q,b,f){A=A.map(function(a){return{id:a.getId().getId(),
serviceId:"picasa",name:a.getName(),type:gd(a),description:_.gA(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ep(b9(a))}});
return{action:Q,docs:A,viewToken:f,view:b||"webcam",v2Translated:!0}},iJy=function(A,Q,b,f){return{action:Q,
docs:A.map(oR$),viewToken:f,view:ttL(b||"upload",A),extraUserInputs:qo1(A),v2Translated:!0}},ttL=function(A,Q){return Q.some(function(b){var f;
return((f=_.dO(b,A1,30))==null?void 0:_.e1(f,3))===9})?A+"/gmailphotos":A},K99=function(A,Q,b,f){var a=A.map(function(T){var G={id:T.getId().getId(),
serviceId:"picasa",mimeType:_.gA(T,7),name:T.getName(),type:gd(T),lastEditedUtc:_.NxY(_.dO(T,_.vi,12)).getTime(),url:T.getUrl(),sizeBytes:Number(pHW(T)),description:_.gA(T,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ep(b9(T)),mediaKey:T.getId().getId(),parentId:_.gA(T,4)},p,P=(p=_.dO(T,QTL,18))==null?void 0:_.dO(p,AsW,3);P&&(G.latitude=RI(P,1),G.longitude=RI(P,2));var U;T=(U=_.dO(T,QTL,18))==null?void 0:j1(U,6);U=T!=null?RL(T):void 0;U&&(G.version=
U);return G});
return{action:Q,docs:a,viewToken:f,view:b||"photos",extraUserInputs:qo1(A),v2Translated:!0}},l11=function(A,Q,b,f){A=A.map(function(a){return{id:a.getId().getId(),
serviceId:"et",name:b9(a)[0].getUrl().split("/").pop(),description:_.gA(a,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ep(b9(a),"etjpg")}});
return{action:Q,docs:A,viewToken:f,view:b||"et",v2Translated:!0}},I1v=function(A,Q,b,f){A=A.map(function(a){var T=a.getId().getId(),G=f["2"];
return{id:T,serviceId:G.type!=="gmail_themes"&&G.parent==="6226252643674576769"?"picasa":"static_themes",name:a.getName(),mimeType:_.gA(a,7),type:gd(a),description:_.gA(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:a.getUrl(),embedUrl:a.getUrl(),thumbnails:ep(b9(a))}});
return{action:Q,docs:A,viewToken:f,view:b||"photos",v2Translated:!0}},J$W=function(A,Q){A=A.map(function(b){var f=_.dO(b,mN9,27);
f=_.cd(f,1,_.MN,_.aL())[0];return{id:b.getId().getId(),serviceId:"contacts",mimeType:_.gA(b,7),name:b.getName(),description:_.gA(b,3),url:"mailto:"+f,thumbnail:[{url:_.gA(b,11)}],email:f}});
return{action:Q,docs:A,view:"contacts",v2Translated:!0}},MtK=function(A){if(!A)return{};
var Q=_.gA(A,3);Q=Q&&JSON.parse(Q)||{};return{0:_.gA(A,1),1:_.gA(A,2),2:Q}},ep=function(A,Q){Q=Q===void 0?"":Q;
if(!A.length)return null;Q=="etjpg"&&(A=A.filter(function(b){return b.getUrl().includes("w1200-h300")}));
return A.map(function(b){return{url:b.getUrl(),height:b.getHeight(),width:b.getWidth(),type:Q}})},qo1=function(A){return{isAttachment:A.some(function(Q){return _.rA(Q,31)})}},oR$=function(A){var Q,b={id:(Q=A.getId())==null?void 0:Q.getId(),
serviceId:r$Y(A),mimeType:_.gA(A,7),name:A.getName(),type:gd(A),sizeBytes:Number(pHW(A)),description:_.gA(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:ep(b9(A)),isNew:!0};if(Q=_.dO(A,A1,30)){b.dataUrl=_.gA(Q,1)||null;a:{var f=_.dO(A,A1,30);switch(_.e1(f,3)){case 9:f=_.vD(f,T$r,2,Qt);f={remoteRefs:f&&_.gA(f,1)};break a;case 10:case 15:f=_.vD(f,aiN,4,Qt);var a=b9(A);f={photo_id:f&&_.gA(f,1),media_key:A.getId().getId(),media_type:_.e1(A,6)===1?1:2,image_url:a&&
a[0].getUrl(),width:a&&String(a[0].getWidth()),height:a&&String(a[0].getHeight())};break a}f=null}b.uploadMetadata=f;b.uploadId=_.gA(Q,9)||null;b.uploadState=jOv(Q)||null}(f=Q&&_.vD(Q,aiN,4,Qt))&&(b.id=_.gA(f,1));(f=Q&&_.vD(Q,dsp,5,Qt))&&(b.contentId=_.gA(f,1));(f=Q&&_.vD(Q,bpN,7,Qt))&&(b.contentId=_.gA(f,1));(f=Q&&_.vD(Q,fiY,6,Qt))&&(b.contentId=_.gA(f,1));(Q==null?void 0:_.e1(Q,3))===1&&(b.mediaKey=A.getId().getId());return b},r$Y=function(A){var Q;
switch(((Q=_.dO(A,A1,30))==null?void 0:_.e1(Q,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},gd=function(A){switch(_.e1(A,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 _.gA(A,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},jOv=function(A){switch(A==null?void 0:_.e1(A,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 hor,Roj,gRr,eoK;_.W9M=function(A,Q){var b=Q||{};Q=b.document||document;var f=_.IT(A).toString(),a=(new q_(Q)).createElement("SCRIPT"),T={script_:a,timeout_:void 0},G=new $p(Roj,T),p=null,P=b.timeout!=null?b.timeout:5E3;P>0&&(p=window.setTimeout(function(){gRr(a,!0);G.errback(new eoK(1,"Timeout reached for loading script "+f))},P),T.timeout_=p);
a.onload=a.onreadystatechange=function(){a.readyState&&a.readyState!="loaded"&&a.readyState!="complete"||(gRr(a,b.cleanupWhenDone||!1,p),G.callback(null))};
a.onerror=function(){gRr(a,!0,p);G.errback(new eoK(0,"Error while loading script "+f))};
T=b.attributes||{};_.j2.extend(T,{type:"text/javascript",charset:"UTF-8"});zNr(a,T);_.mw(a,A);hor(Q).appendChild(a);return G};
hor=function(A){var Q=JT("HEAD",A);return Q&&Q.length!==0?Q[0]:A.documentElement};
Roj=function(){if(this&&this.script_){var A=this.script_;A&&A.tagName=="SCRIPT"&&gRr(A,!0,this.timeout_)}};
gRr=function(A,Q,b){b!=null&&_.by.clearTimeout(b);A.onload=function(){};
A.onerror=function(){};
A.onreadystatechange=function(){};
Q&&window.setTimeout(function(){_.im(A)},0)};
eoK=function(A,Q){var b="Jsloader error (code #"+A+")";Q&&(b+=": "+Q);_.A4.call(this,b);this.code=A};
_.BD(eoK,_.A4);var vRL=_.sC(["https://apis.google.com/js/api.js"]),ERj=_.GH(vRL),wrj=function(A,Q){var b=!1,f=xQL(A,Q).then(function(T){b=!0;return T}),a=_.U1x(5E3).then(function(){return b?xQL(A,Q):c$$(Q).then(function(T){return zoW(T,A)})});
return btj([f,a])},xQL=function(A,Q){return uey(Q).then(function(b){return zoW(b,A)})},zoW=function(A,Q){var b=_.TX(Q,"gapi.")?Q.slice(5):Q;
return A[b]?_.Ul(A[b]):new _.M3(function(f,a){var T=t1(function(){a(Error("Ya"))},3E4);
A.load(Q,{callback:function(){_.by.clearTimeout(T);f(A[b])},
onerror:function(G){_.by.clearTimeout(T);a(G)}})})},uey=function(A){return A.gapi&&A.gapi.load?_.Ul(A.gapi):c$$(A)},c$$=function(A){return _.W9M(ERj,{document:A.document}).then(function(){return A.gapi})},ZJx=function(){};
ZJx.prototype.load=function(A,Q){Q=Q===void 0?window:Q;var b=Date.now();return wrj(A,Q).then(function(f){var a=Date.now();return{library:f,loadStartMs:b,loadEndMs:a}},function(f){throw f instanceof Error?f:Error(String(f));
})};var BOW=function(){_.k$.call(this);this.gapiLoader_=new ZJx;this.origin_=null;this.gapiPickerIframeResolver_=_.Qh();this.gapiIframesResolver_=_.Qh();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.O(BOW,_.k$);var y$p=function(A,Q){var b=_.zV("gapi.iframes",Q);return b?(A=Date.now(),_.Ul({library:b,loadStartMs:A,loadEndMs:A})):A.gapiLoader_.load("gapi.iframes",Q)},Yoy=function(A,Q,b,f,a,T){var G=!1;
G=G===void 0?!1:G;y$p(A,e2(Q.ownerDocument)).then(function(p){var P=p.library;A.gapiIframesResolver_.resolve(P);p=A.gapiPickerIframeResolver_;var U=p.resolve,L=G;L=L===void 0?!1:L;var M={};M["host-message-handler"]=b;A.hostMessageHandlerInternal_=M;var l=_.co(f);l=_.co(l);l=_.Tf(_.aj(_.fo(new _.m7,l.scheme_),l.JSC$9973_domain_),l.JSC$9973_port_).toString();A.origin_=l;l=(new PdM).setUrl(f);l.JSC$9988_obj_.where=Q;l.JSC$9988_obj_.allowPost=L;l.JSC$9988_obj_.messageHandlers=M;L=_.zV("makeWhiteListIframesFilter",
P)([A.origin_]);l.JSC$9988_obj_.messageHandlersFilter=L;a!=null&&(l.JSC$9988_obj_.id=a);T!=null&&(l.JSC$9988_obj_.rpctoken=T);L=pGK(l);L.JSC$9985_obj_.style={display:"block","min-width":"100%",width:"1px"};L.JSC$9985_obj_.height="100%";pGK(l).value().allow="camera 'src' "+A.origin_;P=P.getContext().openChild(l.value());U.call(p,P)},function(p){A.gapiIframesResolver_.reject(p);
A.gapiPickerIframeResolver_.reject(p)});
return A.gapiPickerIframeResolver_.promise},DQN=function(A,Q){return _.qY([A.gapiIframesResolver_.promise,
A.gapiPickerIframeResolver_.promise]).then(function(b){var f=_.F(b);b=f.next().value;return(f=f.next().value)?f.send("picker-message-handler",Q,void 0,_.zV("makeWhiteListIframesFilter",b)([A.origin_])):_.gF(Error("Za"))})};
BOW.prototype.disposeInternal=function(){$QY(this);_.k$.prototype.disposeInternal.call(this)};
var $QY=function(A){A.gapiPickerIframeResolver_.promise.then(function(Q){Q&&(Q.unregister("host-message-handler"),delete A.hostMessageHandlerInternal_["host-message-handler"])})};var Ne1=function(){this.JSC$10075_nextId=0};var mQj=function(A,Q){switch(A.action){case "select-contacts":A=sON(A.contacts);break;case "visibility":A=A.visible;var b=new Ts;A=_.xU(b,1,7).setVisible(A);b={};b["iframe-command"]=A.serialize();A=b;break;default:A=null}return A?DQN(Q,A):_.Ul()},sON=function(A){if(!A||A.length==0)return null;
var Q=new Ts;_.xU(Q,1,11);var b=new Ne1;A.forEach(function(f){if(f.email){var a=new oI;a=_.Nl(a,2,f.name?f.name:f.email);var T=new mN9;f=_.e7X(T,1,_.Pd,f.email,_.MN);f=_.Lp(a,27,f);a=new $Np;T=":"+(b.JSC$10075_nextId++).toString(36);a=_.Nl(a,1,T);a=_.xU(a,2,12);f=_.Lp(f,1,a)}else f=null;f&&Jq(Q,7,oI,f)});
A={};A["iframe-command"]=Q.serialize();return A};_.AlM=function(){if(kE4){var A=/Windows NT ([0-9.]+)/;return(A=A.exec(_.Mf()))?A[1]:"0"}return _.nSW?(A=/1[0|1][_.][0-9_.]+/,(A=A.exec(_.Mf()))?A[0].replace(/_/g,"."):"10"):m$J?(A=/Android\s+([^\);]+)(\)|;)/,(A=A.exec(_.Mf()))?A[1]:""):HmJ||CSY||qB4?(A=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(A=A.exec(_.Mf()))?A[1].replace(/_/g,"."):""):""}();var hP;hP=function(A){return(A=A.exec(_.Mf()))?A[1]:""};
_.QxN=function(){if(_.lT)return hP(/Firefox\/([0-9.]+)/);if(_.S1||so||JJU)return e8b;if(_.Ke){if(_.t4()||_.lUW()){var A=hP(/CriOS\/([0-9.]+)/);if(A)return A}return hP(/Chrome\/([0-9.]+)/)}if(_.vr&&!_.t4())return hP(/Version\/([0-9.]+)/);if(JHW||V$Y){if(A=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Mf()))return A[1]+"."+A[2]}else if(xV4)return(A=hP(/Android\s+([0-9.]+)/))?A:hP(/Version\/([0-9.]+)/);return""}();var b4$=function(){};
_.FY(b4$);b4$.prototype.nextId_=0;_.WX=function(A){return":"+(A.nextId_++).toString(36)};var vX=function(A){_.IH.call(this);this.JSC$10083_dom_=A||OX();this.JSC$10083_id_=null;this.inDocument_=!1;this.JSC$10083_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.BD(vX,_.IH);vX.prototype.idGenerator_=b4$.getInstance();vX.prototype.getId=function(){return this.JSC$10083_id_||(this.JSC$10083_id_=_.WX(this.idGenerator_))};
vX.prototype.getElement=function(){return this.JSC$10083_element_};
var Ef=function(A){A.googUiComponentHandler_||(A.googUiComponentHandler_=new _.BR(A));return A.googUiComponentHandler_},fgM=function(A,Q){if(A==Q)throw Error("$a");
var b;if(b=Q&&A.parent_&&A.JSC$10083_id_){b=A.parent_;var f=A.JSC$10083_id_;b=b.childIndex_&&f?_.j2.get(b.childIndex_,f)||null:null}if(b&&A.parent_!=Q)throw Error("$a");A.parent_=Q;vX.superClass_.setParentEventTarget.call(A,Q)};
vX.prototype.setParentEventTarget=function(A){if(this.parent_&&this.parent_!=A)throw Error("ab");vX.superClass_.setParentEventTarget.call(this,A)};
vX.prototype.JSC$10085_createDom=function(){this.JSC$10083_element_=this.JSC$10083_dom_.createElement("DIV")};
vX.prototype.render=function(A){ag1(this,A)};
var ag1=function(A,Q,b){if(A.inDocument_)throw Error("bb");A.JSC$10083_element_||A.JSC$10085_createDom();Q?Q.insertBefore(A.JSC$10083_element_,b||null):A.JSC$10083_dom_.JSC$9268_document_.body.appendChild(A.JSC$10083_element_);A.parent_&&!A.parent_.inDocument_||A.enterDocument()};
_.d=vX.prototype;_.d.decorate=function(A){if(this.inDocument_)throw Error("bb");if(A&&this.canDecorate(A)){this.wasDecorated_=!0;var Q=_.h3(A);this.JSC$10083_dom_&&this.JSC$10083_dom_.JSC$9268_document_==Q||(this.JSC$10083_dom_=OX(A));this.decorateInternal(A);this.enterDocument()}else throw Error("cb");};
_.d.canDecorate=function(){return!0};
_.d.decorateInternal=function(A){this.JSC$10083_element_=A};
_.d.enterDocument=function(){this.inDocument_=!0;TOL(this,function(A){!A.inDocument_&&A.getElement()&&A.enterDocument()})};
_.d.exitDocument=function(){TOL(this,function(A){A.inDocument_&&A.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.d.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);TOL(this,function(A){A.dispose()});
!this.wasDecorated_&&this.JSC$10083_element_&&_.im(this.JSC$10083_element_);this.parent_=this.model_=this.JSC$10083_element_=this.childIndex_=this.children_=null;vX.superClass_.disposeInternal.call(this)};
_.d.getModel=function(){return this.model_};
_.d.addChild=function(A,Q){var b=this.children_?this.children_.length:0;if(A.inDocument_&&(Q||!this.inDocument_))throw Error("bb");if(b<0||b>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);A.parent_==this?(_.j2.set(this.childIndex_,A.getId(),A),_.Eb(this.children_,A)):_.j2.add(this.childIndex_,A.getId(),A);fgM(A,this);_.IUb(this.children_,b,0,A);A.inDocument_&&this.inDocument_&&A.parent_==this?(Q=this.getContentElement(),
(Q.childNodes[b]||null)!=A.getElement()&&(A.getElement().parentElement==Q&&Q.removeChild(A.getElement()),b=Q.childNodes[b]||null,Q.insertBefore(A.getElement(),b))):Q?(this.JSC$10083_element_||this.JSC$10085_createDom(),b=this.children_?this.children_[b+1]||null:null,ag1(A,this.getContentElement(),b?b.JSC$10083_element_:null)):this.inDocument_&&!A.inDocument_&&A.JSC$10083_element_&&A.JSC$10083_element_.parentNode&&A.JSC$10083_element_.parentNode.nodeType==1&&A.enterDocument()};
_.d.getContentElement=function(){return this.JSC$10083_element_};
var TOL=function(A,Q){A.children_&&A.children_.forEach(Q,void 0)};
vX.prototype.removeChild=function(A,Q){if(A){var b=typeof A==="string"?A:A.getId();A=this.childIndex_&&b?_.j2.get(this.childIndex_,b)||null:null;b&&A&&(_.j2.remove(this.childIndex_,b),_.Eb(this.children_,A),Q&&(A.exitDocument(),A.JSC$10083_element_&&_.im(A.JSC$10083_element_)),fgM(A,null))}if(!A)throw Error("eb");return A};_.BD(Ale,mQJ);_.BD(Qx6,mQJ);var dgL;_.j2.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var Fkp=function(A,Q){Q?A.setAttribute("role",Q):A.removeAttribute("role")},xH=function(A,Q,b){Array.isArray(b)&&(b=b.join(" "));
var f="aria-"+Q;b===""||b==void 0?(dgL||(b={},dgL=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=dgL,Q in b?A.setAttribute(f,b[Q]):A.removeAttribute(f)):A.setAttribute(f,b)};var Gpr;_.cX=function(A,Q,b){_.IH.call(this);this.target=A;this.handle=Q||A;this.limits=b||new EJ(NaN,NaN,NaN,NaN);this.JSC$10088_document_=_.h3(A);this.JSC$10088_eventHandler_=new _.BR(this);_.SY(this,this.JSC$10088_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;_.jM(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Gpr};
_.BD(_.cX,_.IH);Gpr=_.by.document&&_.by.document.documentElement&&!!_.by.document.documentElement.setCapture&&!!_.by.document.releaseCapture;_.BO9=function(A,Q){A.hysteresisDistanceSquared_=Math.pow(Q,2)};
_.d=_.cX.prototype;_.d.setEnabled=function(A){this.enabled_=A};
_.d.disposeInternal=function(){_.cX.superClass_.disposeInternal.call(this);_.kp(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10088_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10088_document_.releaseCapture();this.handle=this.target=null};
_.d.startDrag=function(A){var Q=A.type=="mousedown";if(!this.enabled_||this.dragging_||Q&&(A.event_.button!=0||_.nSW&&A.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new zf("start",this,A.clientX,A.clientY,A)))this.dragging_=!0,Q&&A.preventDefault();else return;else Q&&A.preventDefault();Q=this.JSC$10088_document_;var b=Q.documentElement,f=!this.useSetCapture_;this.JSC$10088_eventHandler_.listen(Q,["touchmove","mousemove"],this.handleMove_,
{capture:f,passive:!1});this.JSC$10088_eventHandler_.listen(Q,["touchend","mouseup"],this.endDrag,f);this.useSetCapture_?(b.setCapture(!1),this.JSC$10088_eventHandler_.listen(b,"losecapture",this.endDrag)):this.JSC$10088_eventHandler_.listen(e2(Q),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10088_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,f);this.clientX=this.startX=A.clientX;this.clientY=this.startY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=VE(OX(this.JSC$10088_document_))}};
_.d.endDrag=function(A,Q){this.JSC$10088_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10088_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new zf("end",this,A.clientX,A.clientY,A,pEy(this,this.deltaX),PC1(this,this.deltaY),Q||A.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.d.handleMove_=function(A){if(this.enabled_){var Q=A.clientX-this.clientX,b=A.clientY-this.clientY;this.clientX=A.clientX;this.clientY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;if(!this.dragging_){var f=this.startX-this.clientX,a=this.startY-this.clientY;if(f*f+a*a>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new zf("start",this,A.clientX,A.clientY,A)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(A);return}}b=XEr(this,Q,b);Q=b.x;b=b.y;this.dragging_&&this.dispatchEvent(new zf("beforedrag",
this,A.clientX,A.clientY,A,Q,b))&&(SSL(this,A,Q,b),A.preventDefault())}};
var XEr=function(A,Q,b){var f=VE(OX(A.JSC$10088_document_));Q+=f.x-A.pageScroll.x;b+=f.y-A.pageScroll.y;A.pageScroll=f;A.deltaX+=Q;A.deltaY+=b;return new _.gQ(pEy(A,A.deltaX),PC1(A,A.deltaY))};
_.cX.prototype.onScroll_=function(A){var Q=XEr(this,0,0);A.clientX=this.clientX;A.clientY=this.clientY;SSL(this,A,Q.x,Q.y)};
var SSL=function(A,Q,b,f){A.target.style.left=b+"px";A.target.style.top=f+"px";A.dispatchEvent(new zf("drag",A,Q.clientX,Q.clientY,Q,b,f))},pEy=function(A,Q){var b=A.limits;
A=isNaN(b.left)?null:b.left;b=isNaN(b.width)?0:b.width;return Math.min(A!=null?A+b:Infinity,Math.max(A!=null?A:-Infinity,Q))},PC1=function(A,Q){var b=A.limits;
A=isNaN(b.top)?null:b.top;b=isNaN(b.height)?0:b.height;return Math.min(A!=null?A+b:Infinity,Math.max(A!=null?A:-Infinity,Q))};
_.cX.prototype.isDragging=function(){return this.dragging_};
var zf=function(A,Q,b,f,a,T,G){_.J1.call(this,A);this.clientX=b;this.clientY=f;this.browserEvent=a;this.left=T!==void 0?T:Q.deltaX;this.top=G!==void 0?G:Q.deltaY};
_.BD(zf,_.J1);var wd=function(A){this.JSC$10095_map_=new Map;var Q=arguments.length;if(Q>1){if(Q%2)throw Error("ka");for(var b=0;b<Q;b+=2)this.set(arguments[b],arguments[b+1])}else A&&this.addAll(A)};
_.d=wd.prototype;_.d.getCount=function(){return this.JSC$10095_map_.size};
_.d.getValues=function(){return Array.from(this.JSC$10095_map_.values())};
_.d.getKeys=function(){return Array.from(this.JSC$10095_map_.keys())};
_.d.containsKey=function(A){return this.JSC$10095_map_.has(A)};
_.d.containsValue=function(A){return this.getValues().some(function(Q){return Q==A})};
_.d.equals=function(A,Q){var b=this;Q=Q===void 0?function(f,a){return f===a}:Q;
return this===A?!0:this.JSC$10095_map_.size!=A.getCount()?!1:this.getKeys().every(function(f){return Q(b.JSC$10095_map_.get(f),A.get(f))})};
_.d.isEmpty=function(){return this.JSC$10095_map_.size==0};
_.d.clear=function(){this.JSC$10095_map_.clear()};
_.d.remove=function(A){return this.JSC$10095_map_.delete(A)};
_.d.get=function(A,Q){return this.JSC$10095_map_.has(A)?this.JSC$10095_map_.get(A):Q};
_.d.set=function(A,Q){this.JSC$10095_map_.set(A,Q);return this};
_.d.addAll=function(A){if(A instanceof wd){A=_.F(A.JSC$10095_map_);for(var Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;b=b.next().value;this.JSC$10095_map_.set(Q,b)}}else if(A)for(A=_.F(Object.entries(A)),Q=A.next();!Q.done;Q=A.next())b=_.F(Q.value),Q=b.next().value,b=b.next().value,this.JSC$10095_map_.set(Q,b)};
_.d.forEach=function(A,Q){var b=this;Q=Q===void 0?this:Q;this.JSC$10095_map_.forEach(function(f,a){return A.call(Q,f,a,b)})};
_.d.clone=function(){return new wd(this)};(function(){for(var A=["ms","moz","webkit","o"],Q,b=0;Q=A[b]&&!_.by.requestAnimationFrame;++b)_.by.requestAnimationFrame=_.by[Q+"RequestAnimationFrame"],_.by.cancelAnimationFrame=_.by[Q+"CancelAnimationFrame"]||_.by[Q+"CancelRequestAnimationFrame"];if(!_.by.requestAnimationFrame){var f=0;_.by.requestAnimationFrame=function(a){var T=(new Date).getTime(),G=Math.max(0,16-(T-f));f=T+G;return _.by.setTimeout(function(){a(T+G)},G)};
_.by.cancelAnimationFrame||(_.by.cancelAnimationFrame=function(a){clearTimeout(a)})}})();
var Ug1=[[],[]],Lky=0,M7$=!1,lgr=0,i4W=function(A,Q){var b=lgr++,f={measureTask:{id:b,fn:A.measure,context:Q},mutateTask:{id:b,fn:A.mutate,context:Q},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(f.args||(f.args=[]),f.args.length=0,f.args.push.apply(f.args,arguments),f.args.push(f.state)):f.args&&f.args.length!=0?(f.args[0]=f.state,f.args.length=1):f.args=[f.state];f.isScheduled||(f.isScheduled=!0,Ug1[Lky].push(f));M7$||(M7$=!0,window.requestAnimationFrame(Kkv))}},Kkv=
function(){M7$=!1;
var A=Ug1[Lky],Q=A.length;Lky=(Lky+1)%2;for(var b,f=0;f<Q;++f){b=A[f];var a=b.measureTask;b.isScheduled=!1;a.fn&&a.fn.apply(a.context,b.args)}for(f=0;f<Q;++f)b=A[f],a=b.mutateTask,b.isScheduled=!1,a.fn&&a.fn.apply(a.context,b.args),b.state={};A.length=0};var Jly=_.sC(["about:blank"]),V7j=_.sC(["javascript:undefined"]),O4y=_.GH(Jly);_.IT(O4y);var nTL=_.GH(V7j);_.IT(nTL);var u1=function(A){_.IH.call(this);this.JSC$10101_element_=A;this.listenKeyIn_=_.jM(this.JSC$10101_element_,"focus",this,!0);this.listenKeyOut_=_.jM(this.JSC$10101_element_,"blur",this,!0)};
_.BD(u1,_.IH);u1.prototype.handleEvent=function(A){var Q=new _.Vt(A.event_);Q.type=A.type=="focusin"||A.type=="focus"?"focusin":"focusout";this.dispatchEvent(Q)};
u1.prototype.disposeInternal=function(){u1.superClass_.disposeInternal.call(this);oP(this.listenKeyIn_);oP(this.listenKeyOut_);delete this.JSC$10101_element_};var kpx=function(A,Q){this.JSC$10104_element_=A;this.JSC$10104_dom_=Q};var Zu=function(A,Q){vX.call(this,Q);this.useIframeMask_=!!A;this.lastFocus_=null;this.resizeBackgroundTask_=i4W({mutate:this.resizeBackground_},this);i4W({mutate:this.updateModalAndBackground_},this)};
_.BD(Zu,vX);_.d=Zu.prototype;_.d.focusHandler_=null;_.d.visible_=!1;_.d.bgEl_=null;_.d.bgIframeEl_=null;_.d.tabCatcherElement_=null;_.d.backwardTabWrapInProgress_=!1;_.d.getCssClass=function(){return"goog-modalpopup"};
_.d.getBackgroundElement=function(){return this.bgEl_};
_.d.JSC$10085_createDom=function(){Zu.superClass_.JSC$10085_createDom.call(this);var A=this.getElement(),Q=SA(this.getCssClass()).split(" ");Yp(A,Q);A.tabIndex=0;_.um(A,!1);IgK(this);H4$(this)};
var IgK=function(A){if(A.useIframeMask_&&!A.bgIframeEl_){var Q=A.JSC$10083_dom_.JSC$9270_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Zi(Q,O4y);A.bgIframeEl_=Q;A.bgIframeEl_.className=A.getCssClass()+"-bg";_.um(A.bgIframeEl_,!1);Klv(A.bgIframeEl_,0)}A.bgEl_||(A.bgEl_=A.JSC$10083_dom_.JSC$9270_createDom("DIV",A.getCssClass()+"-bg"),_.um(A.bgEl_,!1))},H4$=function(A){A.tabCatcherElement_||(A.tabCatcherElement_=A.JSC$10083_dom_.createElement("SPAN"),_.um(A.tabCatcherElement_,
!1),A.tabCatcherElement_.tabIndex=0,A.tabCatcherElement_.style.position="absolute")};
_.d=Zu.prototype;_.d.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.d.canDecorate=function(A){return!!A&&A.tagName=="DIV"};
_.d.decorateInternal=function(A){Zu.superClass_.decorateInternal.call(this,A);A=SA(this.getCssClass()).split(" ");Yp(this.getElement(),A);IgK(this);H4$(this);this.getElement().tabIndex=0;_.um(this.getElement(),!1)};
_.d.enterDocument=function(){this.bgIframeEl_&&_.eE(this.bgIframeEl_,this.getElement());_.eE(this.bgEl_,this.getElement());Zu.superClass_.enterDocument.call(this);_.hd(this.tabCatcherElement_,this.getElement());this.focusHandler_=new u1(this.JSC$10083_dom_.JSC$9268_document_);Ef(this).listen(this.focusHandler_,"focusin",this.onFocus);CCN(this,!1)};
_.d.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.AT(this.focusHandler_);Zu.superClass_.exitDocument.call(this);_.im(this.bgIframeEl_);_.im(this.bgEl_);_.im(this.tabCatcherElement_)};
_.d.setVisible=function(A){if(A!=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_&&CCN(this,A),A){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10083_dom_.JSC$9268_document_.activeElement}catch(a){}this.updateModalAndBackground_();Ef(this).listen(this.JSC$10083_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10083_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);qSL(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)q7(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Ef(this).unlisten(this.JSC$10083_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10083_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)q7(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var Q=this.JSC$10083_dom_,b=Q.JSC$9268_document_.body,f=Q.JSC$9268_document_.activeElement||b;if(!this.lastFocus_||this.lastFocus_==b){this.lastFocus_=null;break a}(f==b||Q.contains(this.getElement(),f))&&this.lastFocus_.focus()}catch(a){}this.lastFocus_=
null}}};
var CCN=function(A,Q){A.modalAriaVisibilityHelper_||(A.modalAriaVisibilityHelper_=new kpx(A.JSC$10083_element_,A.JSC$10083_dom_));A=A.modalAriaVisibilityHelper_;if(Q){A.hiddenElements_||(A.hiddenElements_=[]);Q=A.JSC$10104_dom_.getChildren(A.JSC$10104_dom_.JSC$9268_document_.body);for(var b=0;b<Q.length;b++){var f=Q[b],a;if(a=f!=A.JSC$10104_element_)a=f.getAttribute("aria-hidden"),a=!(a==null||a==void 0?0:String(a));a&&(xH(f,"hidden",!0),A.hiddenElements_.push(f))}}else if(A.hiddenElements_){for(Q=
0;Q<A.hiddenElements_.length;Q++)A.hiddenElements_[Q].removeAttribute("aria-hidden");A.hiddenElements_=null}};
Zu.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var qSL=function(A,Q){A.bgIframeEl_&&_.um(A.bgIframeEl_,Q);A.bgEl_&&_.um(A.bgEl_,Q);_.um(A.getElement(),Q);_.um(A.tabCatcherElement_,Q)};
_.d=Zu.prototype;_.d.onShow=function(){this.dispatchEvent("show")};
_.d.onHide=function(){qSL(this,!1);this.dispatchEvent("hide")};
_.d.isVisible=function(){return this.visible_};
_.d.focus=function(){this.focusElement_()};
_.d.resizeBackground_=function(){this.bgIframeEl_&&_.um(this.bgIframeEl_,!1);this.bgEl_&&_.um(this.bgEl_,!1);var A=this.JSC$10083_dom_.JSC$9268_document_;var Q=_.J3(e2(this.JSC$10083_dom_.JSC$9268_document_)||window);var b=Math.max(Q.width,Math.max(A.body.scrollWidth,A.documentElement.scrollWidth));A=Math.max(Q.height,Math.max(A.body.scrollHeight,A.documentElement.scrollHeight));this.bgIframeEl_&&(_.um(this.bgIframeEl_,!0),_.UNL(this.bgIframeEl_,b,A));this.bgEl_&&(_.um(this.bgEl_,!0),_.UNL(this.bgEl_,
b,A))};
_.d.reposition=function(){var A;if(_.SNY(this.getElement())=="fixed")var Q=A=0;else Q=VE(this.JSC$10083_dom_),A=Q.x,Q=Q.y;var b=MFY(this.getElement());var f=_.J3(e2(this.JSC$10083_dom_.JSC$9268_document_)||window);A=Math.max(A+f.width/2-b.width/2,0);Q=Math.max(Q+f.height/2-b.height/2,0);zN(this.getElement(),A,Q);zN(this.tabCatcherElement_,A,Q)};
_.d.onFocus=function(A){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():A.target==this.tabCatcherElement_&&t1(this.focusElement_,0,this)};
_.d.focusElement_=function(){try{this.getElement().focus()}catch(A){}};
_.d.disposeInternal=function(){_.AT(this.popupShowTransition_);this.popupShowTransition_=null;_.AT(this.popupHideTransition_);this.popupHideTransition_=null;_.AT(this.bgShowTransition_);this.bgShowTransition_=null;_.AT(this.bgHideTransition_);this.bgHideTransition_=null;Zu.superClass_.disposeInternal.call(this)};var gv=function(A,Q,b){Zu.call(this,Q,b);this.JSC$10114_class_=A||"modal-dialog";this.buttons_=(new yJ).addButton(oTp,!0).addButton(t7j,!1,!0)};
_.BD(gv,Zu);_.d=gv.prototype;_.d.escapeToCancel_=!0;_.d.hasTitleCloseButton_=!0;_.d.modal_=!0;_.d.draggable_=!0;_.d.backgroundElementOpacity_=.5;_.d.title_="";_.d.JSC$10116_dragger_=null;_.d.JSC$10116_disposeOnHide_=!1;_.d.titleEl_=null;_.d.titleTextEl_=null;_.d.titleTextId_=null;_.d.titleCloseEl_=null;_.d.contentEl_=null;_.d.buttonEl_=null;_.d.getCssClass=function(){return this.JSC$10114_class_};
_.d.setTitle=function(A){this.title_=A;this.titleTextEl_&&_.vk(this.titleTextEl_,A)};
_.d.getTitle=function(){return this.title_};
_.d.getContent=function(){return""};
_.d.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var rl1=function(A){A.getElement()||A.render();return A.getElement()};
gv.prototype.getBackgroundElement=function(){this.getElement()||this.render();return gv.superClass_.getBackgroundElement.call(this)};
var jxj=function(A,Q){A.backgroundElementOpacity_=Q;A.getElement()&&(Q=A.getBackgroundElement())&&Klv(Q,A.backgroundElementOpacity_)};
gv.prototype.setDraggable=function(A){this.draggable_=A;RbY(this,A&&this.inDocument_)};
gv.prototype.handleDrag=function(){};
var RbY=function(A,Q){var b=SA(A.JSC$10114_class_+"-title-draggable").split(" ");A.getElement()&&(Q?Yp(A.titleEl_,b):FML(A.titleEl_,b));Q&&!A.JSC$10116_dragger_?(Q=new _.cX(A.getElement(),A.titleEl_),A.JSC$10116_dragger_=Q,Yp(A.titleEl_,b),_.jM(A.JSC$10116_dragger_,"start",A.setDraggerLimits_,!1,A),_.jM(A.JSC$10116_dragger_,"drag",A.handleDrag,!1,A)):!Q&&A.JSC$10116_dragger_&&(A.JSC$10116_dragger_.dispose(),A.JSC$10116_dragger_=null)};
_.d=gv.prototype;
_.d.JSC$10085_createDom=function(){gv.superClass_.JSC$10085_createDom.call(this);var A=this.getElement(),Q=this.JSC$10083_dom_;this.titleTextId_=this.getId();var b=this.getId()+".contentEl";this.titleEl_=Q.JSC$9270_createDom("DIV",this.JSC$10114_class_+"-title",this.titleTextEl_=Q.JSC$9270_createDom("SPAN",{className:this.JSC$10114_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=Q.JSC$9270_createDom("SPAN",this.JSC$10114_class_+"-title-close"));YLp(A,this.titleEl_,this.contentEl_=
Q.JSC$9270_createDom("DIV",{className:this.JSC$10114_class_+"-content",id:b}),this.buttonEl_=Q.JSC$9270_createDom("DIV",this.JSC$10114_class_+"-buttons"));Fkp(this.titleTextEl_,"heading");Fkp(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;xH(this.titleCloseEl_,"label","Close");Fkp(A,"dialog");xH(A,"labelledby",this.titleTextId_||"");_.um(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(A=this.buttons_,A.JSC$10117_element_=this.buttonEl_,A.render());_.um(this.buttonEl_,!!this.buttons_);
jxj(this,this.backgroundElementOpacity_)};
_.d.decorateInternal=function(A){gv.superClass_.decorateInternal.call(this,A);A=this.getElement();var Q=this.JSC$10114_class_+"-content";this.contentEl_=oB(document,null,Q,A)[0];this.contentEl_||(this.contentEl_=this.JSC$10083_dom_.JSC$9270_createDom("DIV",Q),A.appendChild(this.contentEl_));Q=this.JSC$10114_class_+"-title";var b=this.JSC$10114_class_+"-title-text",f=this.JSC$10114_class_+"-title-close";(this.titleEl_=oB(document,null,Q,A)[0])?(this.titleTextEl_=oB(document,null,b,this.titleEl_)[0],
this.titleCloseEl_=oB(document,null,f,this.titleEl_)[0]):(this.titleEl_=this.JSC$10083_dom_.JSC$9270_createDom("DIV",Q),A.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=GnL(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.rh("SPAN",{className:b,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;xH(A,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10083_dom_.JSC$9270_createDom("SPAN",f),this.titleEl_.appendChild(this.titleCloseEl_));_.um(this.titleCloseEl_,this.hasTitleCloseButton_);Q=this.JSC$10114_class_+"-buttons";(this.buttonEl_=oB(document,null,Q,A)[0])?(this.buttons_=new yJ(this.JSC$10083_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10083_dom_.JSC$9270_createDom("DIV",Q),A.appendChild(this.buttonEl_),this.buttons_&&(A=this.buttons_,A.JSC$10117_element_=this.buttonEl_,A.render()),_.um(this.buttonEl_,
!!this.buttons_));jxj(this,this.backgroundElementOpacity_)};
_.d.enterDocument=function(){gv.superClass_.enterDocument.call(this);Ef(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Ef(this).listen(this.buttonEl_,"click",this.onButtonClick_);RbY(this,this.draggable_);Ef(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var A=this.getElement();Fkp(A,"dialog");this.titleTextEl_.id!==""&&xH(A,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){A=this.JSC$10083_dom_;
var Q=this.getBackgroundElement();A.removeNode(this.bgIframeEl_);A.removeNode(Q)}this.isVisible()&&CCN(this,!1)}};
_.d.exitDocument=function(){this.isVisible()&&this.setVisible(!1);RbY(this,!1);gv.superClass_.exitDocument.call(this)};
_.d.setVisible=function(A){A!=this.isVisible()&&(this.inDocument_||this.render(),gv.superClass_.setVisible.call(this,A))};
_.d.onShow=function(){gv.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.d.onHide=function(){gv.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10116_disposeOnHide_&&this.dispose()};
_.d.setDraggerLimits_=function(){var A=this.JSC$10083_dom_.JSC$9268_document_,Q=_.J3(e2(A)||window),b=Math.max(A.body.scrollWidth,Q.width);A=Math.max(A.body.scrollHeight,Q.height);var f=MFY(this.getElement());_.SNY(this.getElement())=="fixed"?this.JSC$10116_dragger_.limits=new EJ(0,0,Math.max(0,Q.width-f.width),Math.max(0,Q.height-f.height)):this.JSC$10116_dragger_.limits=new EJ(0,0,b-f.width,A-f.height)};
_.d.onTitleCloseClick_=function(){gTy(this)};
var gTy=function(A){if(A.hasTitleCloseButton_){var Q=A.buttons_,b=Q&&Q.cancelButton_;b?(Q=Q.get(b),A.dispatchEvent(new YH(b,Q))&&A.setVisible(!1)):A.setVisible(!1)}},eb9=function(A){A.hasTitleCloseButton_=!1;
A.titleCloseEl_&&_.um(A.titleCloseEl_,A.hasTitleCloseButton_)};
gv.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;gv.superClass_.disposeInternal.call(this)};
gv.prototype.onButtonClick_=function(A){a:{for(A=A.target;A!=null&&A!=this.buttonEl_;){if(A.tagName=="BUTTON")break a;A=A.parentNode}A=null}if(A&&!A.disabled){A=A.name;var Q=this.buttons_.get(A);this.dispatchEvent(new YH(A,Q))&&this.setVisible(!1)}};
gv.prototype.onKey_=function(A){var Q=!1,b=!1,f=this.buttons_,a=A.target;if(A.type=="keydown")if(this.escapeToCancel_&&A.keyCode==27){var T=f&&f.cancelButton_;a=a.tagName=="SELECT"&&!a.disabled;T&&!a?(b=!0,Q=f.get(T),Q=this.dispatchEvent(new YH(T,Q))):a||(Q=!0)}else{if(A.keyCode==9&&A.shiftKey&&a==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(L){}t1(this.resetBackwardTabWrap_,0,this)}}else if(A.keyCode==13){if(a.tagName=="BUTTON"&&!a.disabled)T=a.name;
else if(a==this.titleCloseEl_)gTy(this);else if(f){var G=f.defaultButton_,p;if(p=G)a:{p=JT("BUTTON",f.JSC$10117_element_);for(var P,U=0;P=p[U];U++)if(P.name==G||P.id==G){p=P;break a}p=null}a=(a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="A")&&!a.disabled;!p||p.disabled||a||(T=G)}T&&f&&(b=!0,Q=this.dispatchEvent(new YH(T,String(f.get(T)))))}else a!=this.titleCloseEl_||A.keyCode!=32&&A.key!=" "||gTy(this);if(Q||b)A.stopPropagation(),A.preventDefault();Q&&this.setVisible(!1)};
var YH=function(A,Q){this.type="dialogselect";this.key=A;this.caption=Q};
_.BD(YH,_.J1);var yJ=function(A){wd.call(this);A||OX();this.cancelButton_=this.JSC$10117_element_=this.defaultButton_=null};
_.BD(yJ,wd);_.d=yJ.prototype;_.d.clear=function(){wd.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.d.set=function(A,Q,b,f){wd.prototype.set.call(this,A,Q);b&&(this.defaultButton_=A);f&&(this.cancelButton_=A);return this};
_.d.addButton=function(A,Q,b){return this.set(A.key,A.caption,Q,b)};
_.d.render=function(){if(this.JSC$10117_element_){_.Ao(this.JSC$10117_element_,SSi);var A=OX(this.JSC$10117_element_);this.forEach(function(Q,b){Q=A.JSC$9270_createDom("BUTTON",{name:b},Q);b==this.defaultButton_&&(Q.className="goog-buttonset-default");this.JSC$10117_element_.appendChild(Q)},this)}};
_.d.decorate=function(A){if(A&&A.nodeType==1){this.JSC$10117_element_=A;A=JT("BUTTON",this.JSC$10117_element_);for(var Q,b,f,a=0;Q=A[a];a++)if(b=Q.name||Q.id,f=GnL(Q)||Q.value,b){var T=a==0;this.set(b,f,T,Q.name=="cancel");T&&_.TZ(Q,"goog-buttonset-default")}}};
_.d.getElement=function(){return this.JSC$10117_element_};
var oTp={key:"ok",caption:"OK"},t7j={key:"cancel",caption:"Cancel"},hbp={key:"yes",caption:"Yes"},Wk$={key:"no",caption:"No"},vTM={key:"save",caption:"Save"},ETp={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new yJ).addButton(oTp,!0,!0),(new yJ).addButton(oTp,!0).addButton(t7j,!1,!0),(new yJ).addButton(hbp,!0).addButton(Wk$,!1,!0),(new yJ).addButton(hbp).addButton(Wk$,!0).addButton(t7j,!1,!0),(new yJ).addButton(ETp).addButton(vTM).addButton(t7j,!0,!0));_.BD(b4F,gv);_.BD(fge,eY);var xgM=_.sC(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),clp=_.sC(["//apis.google.com/js/rpc.js"]),XEX=_.GH(xgM),PCC=_.GH(clp),TOb=null;var hT=function(A,Q){_.IH.call(this);this.JSC$10126_element_=A;A=_.mk(this.JSC$10126_element_)?this.JSC$10126_element_:this.JSC$10126_element_?this.JSC$10126_element_.body:null;this.isRtl_=!!A&&_.isM(A);this.listenKey_=_.jM(this.JSC$10126_element_,_.U2?"DOMMouseScroll":"mousewheel",this,Q)};
_.BD(hT,_.IH);hT.prototype.handleEvent=function(A){var Q=0,b=0,f=A.event_;f.type=="mousewheel"?(A=zb9(-f.wheelDelta),f.wheelDeltaX!==void 0?(Q=zb9(-f.wheelDeltaX),b=zb9(-f.wheelDeltaY)):b=A):(A=f.detail,A>100?A=3:A<-100&&(A=-3),f.axis!==void 0&&f.axis===f.HORIZONTAL_AXIS?Q=A:b=A);typeof this.maxDeltaX_==="number"&&(Q=_.vZ(Q,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(b=_.vZ(b,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(Q=-Q);Q=new wEN(A,f,Q,b);this.dispatchEvent(Q)};
var zb9=function(A){return _.Le&&(_.nSW||Ij4)&&A%40!=0?A:A/40};
hT.prototype.disposeInternal=function(){hT.superClass_.disposeInternal.call(this);oP(this.listenKey_);this.listenKey_=null};
var wEN=function(A,Q,b,f){_.Vt.call(this,Q);this.type="mousewheel";this.detail=A;this.deltaX=b;this.deltaY=f};
_.BD(wEN,_.Vt);_.Tb=function(A){var Q="instance_";if(A.instance_&&A.hasOwnProperty(Q))return A.instance_;Q=new A;return A.instance_=Q};var pE9;var uHN=_.sC(["https://about:blank"]),Z4Y=_.sC(['javascript:""']),ylv=_.sC(["about:blank"]);_.BD(Z4,b4F);_.d=Z4.prototype;_.d.JSC$10134_url_="";_.d.JSC$10134_iframe_=null;_.d.iframeLoaded_=!1;_.d.loadedFired_=!1;_.d.callback_=function(){};
_.d.enterDocument=function(){Z4.superClass_.enterDocument.call(this);GpX(this.getBackgroundElement(),Ef(this))};
_.d.render=function(A){var Q=this;Z4.superClass_.render.call(this,A);this.useGapi_?y$p(this.iframeManager_,window).then(function(){return YSr(Q)}).then(null,function(){Q.callback_({action:"error"})}):Dgy(this)};
var YSr=function(A){var Q=A.JSC$10083_dom_.JSC$9270_createDom("div",["picker-dialog-content","picker-frame"]);_.um(Q,!1);A.getContentElement().appendChild(Q);return Yoy(A.iframeManager_,Q,function(b){var f=S$L(b["iframe-command"]);switch(f.getCommand()){case 1:b=A.callback_;f=_.dO(f,aH,2);var a="";switch(f.getStatus()){case 2:a="cancel";break;case 1:a="picked";break;case 3:a="error"}var T=_.fK(f,oI,2,_.aL($V6));f=T.length===0?{action:a}:CuL(T,a,_.dO(f,ph$,7));b.call(A,f);A.setVisible(!1);break;case 4:eb9(A);
A.callback_({action:"loaded"});break;case 7:case 8:b=A.callback_;a:{a=f.getCommand();T=_.dO(f,aH,2);switch(a){case 7:a="uploadScheduled";break;case 8:a="uploadStateChange";break;default:f={};break a}f=_.fK(T,oI,2,_.aL($V6));if(f.length===0)f={action:a};else{var G=_.dO(T,ph$,7);T=G&&_.gA(G,1);G=MtK(G);f=iJy(f,a,T,G)}}b.call(A,f)}},A.JSC$10134_url_,A.targetId_,A.rpcToken_).then(function(b){A.JSC$10134_iframe_=b.getIframeEl();
$gy(A);_.um(A.JSC$10134_iframe_.parentElement,!0);_.TZ(A.getElement(),"picker-dialog");NO1(A);return b})},Dgy=function(A){A.JSC$10134_iframe_=A.JSC$10083_dom_.JSC$9270_createDom("IFRAME",{id:A.targetId_,
name:A.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Zi(A.JSC$10134_iframe_,sx9(A));_.TZ(A.getElement(),"picker-dialog");A.getContentElement().appendChild(A.JSC$10134_iframe_);Ef(A).listen(A.JSC$10134_iframe_,"load",function(){return void $gy(A)});
A.JSC$10134_iframe_.src=A.JSC$10134_url_;NO1(A)},AqK=function(A){mgL(A,(0,_.IL)(function(Q){Q.setAuthToken(this.targetId_,this.rpcToken_)},A))},NO1=function(A){var Q=_.zz(_.co(A.JSC$10134_url_),"title");
Q&&A.setTitle(Q)},sx9=function(A){return _.Ufe("Internet Explorer")>=7&&_.TX(A.JSC$10134_url_,"https")?_.GH(uHN):_.S1?_.GH(Z4Y):_.GH(ylv)},$gy=function(A){AqK(A);
A.iframeLoaded_=!0;A.JSC$10134_iframe_.tabIndex=0;A.isVisible()&&A.focus()};
Z4.prototype.handleKeydown_=function(A){A.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),A.stopPropagation(),A.preventDefault())};
var mgL=function(A,Q){var b=A.JSC$10132_gadgetsDomHelper_;dgb(function(){Q(b.getWindow().gadgets.rpc)},b)};
Z4.prototype.setUrl=function(A){A=_.wv(new _.m7(A),"rpcService",this.targetId_);_.wv(A,"rpctoken",this.rpcToken_);_.Gf(A,"rpctoken="+this.rpcToken_);_.fo(A,"https");this.JSC$10134_url_=A.toString();this.JSC$10134_iframe_&&(this.JSC$10134_iframe_.src=this.JSC$10134_url_)};
var Q49=function(A,Q){A.callback_=Q;mgL(A,(0,_.IL)(function(b){b.register(this.targetId_,(0,_.IL)(this.handlePickerAction_,this))},A))};
Z4.prototype.handlePickerAction_=function(A){var Q=A.action;Q=="loaded"&&(this.loadedFired_=!0,bup(this,new Qx6(this.isVisible())),flp(this),eb9(this),Ef(this).unlisten(this.JSC$10083_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10134_iframe_.tabIndex=0);Q!="picked"&&Q!="cancel"||this.setVisible(!1);this.callback_(A)};
var flp=function(A){A.JSC$10134_appId_&&bup(A,new Ale(A.JSC$10134_appId_,window.location.protocol+"//"+window.location.host))};
Z4.prototype.setRelayUrl=function(A){mgL(this,(0,_.IL)(function(Q){Q.setRelayUrl(this.targetId_,A)},this))};
var bup=function(A,Q){A.useGapi_&&mQj(Q,A.iframeManager_).then(null,function(){A.callback_({action:"error"})});
mgL(A,(0,_.IL)(function(b){b.call(this.targetId_,"picker",null,Q)},A))};
Z4.prototype.resizePicker_=function(){var A=e2(this.JSC$10083_dom_.JSC$9268_document_)||window;if(_.zz(_.co(this.JSC$10134_url_),"ignoreLimits")=="true")A=new _.iw(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.zz(_.co(this.JSC$10134_url_),"shadeDialog")=="true"){var Q=rl1(this);Q=JM1(Q);var b=_.J3(A);A=b.width-80;b=b.height-40;Q&&(A-=Q.left?Q.left:0,A-=Q.right?Q.right:0,b-=Q.top?Q.top:0,b-=Q.bottom?Q.bottom:0);A=new _.iw(A>0?A:0,b>0?b:0)}else(Q=this.preferredDialogWidth_)?(Q=Math.max(320,
Math.min(1051,Q)),(b=this.preferredDialogHeight_)||(b=_.J3(A).height*.85),b=Math.max(480,Math.min(650,b))):(Q=_.J3(A),b=Q.width*.618,b=b<Q.height?Math.round(Math.max(480,Math.min(650,b*.85))):Math.round(Math.max(480,Math.min(650,Q.height*.85))),Q=Math.round(b/.618)),A=_.J3(A),Q=Math.min(Q,Math.max(A.width,320)),b=Math.min(b,Math.max(A.height,480)),A=new _.iw(Q,b);_.UNL(this.getContentElement(),A);this.reposition()};
Z4.prototype.reposition=function(){if(_.zz(_.co(this.JSC$10134_url_),"shadeDialog")=="true"){var A=MFY(this.getElement()),Q=_.J3(this.JSC$10083_dom_.getWindow());A=Math.floor(Q.width/2-A.width/2);Q=rl1(this);if(Q=JM1(Q)){var b=Q.left?Q.left:0;b+=Q.right?Q.right:0;A=Math.floor(A-b/2)}A=A>0?A:0;Q=VE(this.JSC$10083_dom_).y;zN(this.getElement(),A,Q)}else Z4.superClass_.reposition.call(this)};
Z4.prototype.setVisible=function(A){if(A!=this.isVisible()&&this.autoSizeDialog_){var Q=this.JSC$10083_dom_.getWindow();A?(this.resizePicker_(),Ef(this).listen(Q,"resize",this.resizePicker_),this.iframeLoaded_||Ef(this).listen(Q,"keydown",this.handleKeydown_)):(Ef(this).unlisten(Q,"resize",this.resizePicker_),this.iframeLoaded_||Ef(this).unlisten(Q,"keydown",this.handleKeydown_))}Z4.superClass_.setVisible.call(this,A);bup(this,new Qx6(A))};
Z4.prototype.focus=function(){Z4.superClass_.focus.call(this);if(this.JSC$10134_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10134_iframe_.focus()}catch(A){}};var hE=function(A,Q){Q=Q===void 0?Z4:Q;eY.call(this,A);this.pickerConstructor=Q;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(A=window.location.origin)||(A=window.location.protocol+"//"+window.location.host);A&&this.urlParamMap_.set("origin",A);this.postProcessors_=[]};
_.O(hE,fge);hE.prototype.JSC$10139_disposeOnHide_=!1;
hE.prototype.build=function(){this.JSC$10040_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10040_appId_);this.getRelayUrl()||this.setRelayUrl(_.dd(_.Gf(_.Fh(_.co(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var A=new this.pickerConstructor(alY(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);A.JSC$10116_disposeOnHide_=this.JSC$10139_disposeOnHide_;
A.JSC$10134_appId_=this.JSC$10040_appId_;A.loadedFired_&&flp(A);Q49(A,this.callback_);return A};
var Tov=function(A){A.urlParamMap_.set("multiselectEnabled","true");return A};
_.d=hE.prototype;_.d.getHeight=function(){return this.dialogHeight_};
_.d.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.d.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.d.getTitle=function(){return this.urlParamMap_.get("title")};
_.d.getWidth=function(){return this.dialogWidth_};
var d3p=function(A){A.JSC$10139_disposeOnHide_=void 0;return A};
hE.prototype.setRelayUrl=function(A){this.urlParamMap_.set("parent",A);return this};
var FS1=function(A,Q){A.urlParamMap_.set("selectButtonLabel",Q);return A};
hE.prototype.setSize=function(A,Q){this.dialogWidth_=A;this.dialogHeight_=Q;return this};
hE.prototype.setTitle=function(A){this.urlParamMap_.set("title",A);return this};
var alY=function(A){A.postProcessors_.length&&A.urlParamMap_.set("pp",JSON.stringify(A.postProcessors_));A.urlParamMap_.set("nav",Xry(A.nav_));var Q=new _.m7(A.getBaseUrl());A.urlParamMap_.forEach(function(b,f){_.wv(Q,f,b)});
return Q};var pvx=function(A,Q){A.name!==void 0?(this.name=A.name,this.code=GDr[A.name]):(this.code=A=A.code,this.name=Bo$(A));_.A4.call(this,tAy("%s %s",this.name,Q))};
_.BD(pvx,_.A4);var Bo$=function(A){var Q=_.j2.findKey(GDr,function(b){return A==b});
if(Q===void 0)throw Error("hb`"+A);return Q},Du={},GDr=(Du.AbortError=3,Du.EncodingError=5,Du.InvalidModificationError=9,Du.InvalidStateError=7,Du.NotFoundError=1,Du.NotReadableError=4,Du.NoModificationAllowedError=6,Du.PathExistsError=12,Du.QuotaExceededError=10,Du.SecurityError=2,Du.SyntaxError=8,Du.TypeMismatchError=11,Du);var PvN=function(A,Q){_.J1.call(this,A.type,Q);this.event_=A};
_.BD(PvN,_.J1);var XvN=function(A,Q,b){b===void 0&&(b=A.size);return A.slice?A.slice(Q,b):null};var Lk9=new WeakMap,UgC=function(A,Q){A=[A];for(var b=Q.length-1;b>=0;--b)A.push(typeof Q[b],Q[b]);return A.join("\v")};_.lgX(function(){if(!_.by.Blob)return!1;var A=new Uint8Array(100);try{var Q=new Blob([A])}catch(b){return!1}return Q.size!=100?!1:!0});
var StN=_.lgX(function(){if(!_.by.Blob)return!1;var A=new Uint8Array(100);try{var Q=new Blob([A])}catch(b){return!1}return XvN(Q,0,1)===null?!1:!0});_.by.U3bHHf!=null||(_.by.U3bHHf=0);_.by.U3bHHf++;_.U3$=new WeakMap;_.LSK=new WeakMap;var Kk4={};var $$=void 0;var Jl9=Symbol("pb");var Rby=mT("WizInjectionContext_Dispatcher");var Q6=Symbol("qb");var LH,V6;LH=function(){this.afterRenderCallbacks=null};
_.Z1Y=Symbol("rb");V6=function(A){this.props=A;this.__unmounted=!1};
V6.prototype.didPatch=function(){};
V6.prototype.didMount=function(){};
V6.prototype.didUnmount=function(){};
V6.prototype.didUpdate=function(){};_.qSb=mT("WizInjectionContext_RootElement");var t7J=mT("WizInjectionContext_AppContext"),oTY=mT("WizInjectionContext_ModelRootElement"),rlC=mT("WizInjectionContext_RendererData"),jxJ=mT("WizInjectionContext_InjectingConstructor"),CC6=mT("WizInjectionContext_AsyncDeps"),gT9={};var xge=!1;var uH6={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:lji,enableLazyTsx:KoA,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:MPb,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Qd=Object.assign({},{attributes:{},handleError:function(A){throw A;}},uH6);var MnL=Symbol("vb"),l4=Symbol("wb"),gk6=Symbol("xb"),j4e=Symbol("yb"),cqy=Ry(function(A){return b4(A)&&MnL in A});var sxW=Symbol("zb"),$H={},$g9=($H[sxW]=!0,$H.debugName="[component]",$H.getComponentStack=function(){for(var A=[],Q=this;Q;)mgi(Q)&&A.push(Q.debugName),Q=Q.parent;return A},$H.registerSignal=function(){},$H.registerEffect=function(){},$H);var fz=null,TI=!1,flY=1,GI=Symbol("Ab"),U7={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 NA=Symbol("Bb"),sf=Symbol("Cb"),F_=Symbol("Db"),Pv6=Object.assign({},U7,{value:NA,dirty:!0,error:null,equal:AqU,kind:"computed",producerMustRecompute:function(A){return A.value===NA||A.value===sf},
producerRecomputeValue:function(A){if(A.value===sf)throw Error("Z");var Q=A.value;A.value=sf;var b=GDX(A),f=!1;try{var a=A.computation();a7(null);f=Q!==NA&&Q!==F_&&a!==F_&&A.equal(Q,a)}catch(T){a=F_,A.error=T}finally{pvf(A,b)}f?A.value=Q:(A.value=a,A.version++)}});var LSU=function(){throw Error();};var llW=null,St6=Object.assign({},U7,{equal:AqU,value:void 0,kind:"signal"});Object.assign({},U7,{value:NA,dirty:!0,error:null,equal:AqU,kind:"linkedSignal",producerMustRecompute:function(A){return A.value===NA||A.value===sf},
producerRecomputeValue:function(A){if(A.value===sf)throw Error("Z");var Q=A.value;A.value=sf;var b=GDX(A);try{var f=A.source();var a=A.computation(f,Q===NA||Q===F_?void 0:{source:A.sourceValue,value:Q});A.sourceValue=f}catch(T){a=F_,A.error=T}finally{pvf(A,b)}Q!==NA&&a!==F_&&A.equal(Q,a)?A.value=Q:(A.value=a,A.version++)}});Object.assign({},U7,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(A){A.schedule!==null&&A.schedule(A.ref)},
hasRun:!1,cleanupFn:function(){}});var iuX=Symbol("Eb"),P_=Symbol("Fb");var X_=Array.isArray;var qtX;var ll9={},tnW=Cvy(Object.assign({},{consumerAllowSignalWrites:!0},ll9)),ld=Cvy(Object.assign({},{consumerAllowSignalWrites:!0},ll9));var Kz=0,i4=!1,mI=function(){this.queue=new Set};
mI.prototype.remove=function(A){this.queue.delete(A)};
mI.prototype.clear=function(){this.queue.clear()};
var KSK=function(){mI.apply(this,arguments)};
_.O(KSK,mI);KSK.prototype.schedule=function(A){this.queue.add(A)};
KSK.prototype.flush=function(){if(this.queue.size){i4=!0;try{for(var A=_.F(this.queue),Q=A.next();!Q.done;Q=A.next()){var b=Q.value;this.queue.delete(b);try{b.run()}catch(f){iur(f)}}}finally{i4=!1}}};
var JqM=new KSK,AV=function(){mI.apply(this,arguments)};
_.O(AV,mI);var Vnx=function(){AV.apply(this,arguments)};
_.O(Vnx,AV);Vnx.prototype.schedule=function(A){A.hasRun?this.queue.add(A):A.run()};
Vnx.prototype.flush=function(){if(this.queue.size)if(Qd.flushRenderEffectsDuringRender){var A=this.queue;this.queue=new Set;zJX(A)}else zJX(this.queue)};
var rqe=new Vnx,Ou9=function(){AV.apply(this,arguments)};
_.O(Ou9,AV);Ou9.prototype.schedule=function(A){var Q=this;return _.B(function(b){if(b.nextAddress==1)return A.hasRun?b.jumpTo(2):b.yield(Promise.resolve(),3);if(b.nextAddress!=2)return A.run(),b.return();Q.queue.add(A);_.Oi(b)})};
Ou9.prototype.flush=function(){var A=this;return _.B(function(Q){if(Q.nextAddress==1)return A.queue.size?Q.yield(Promise.resolve(),2):Q.return();zJX(A.queue);_.Oi(Q)})};
var eJi=new Ou9,nk9=function(){AV.apply(this,arguments)};
_.O(nk9,AV);nk9.prototype.schedule=function(A){this.queue.add(A)};
nk9.prototype.flush=function(){this.queue.size&&zJX(this.queue)};
var RJ9=new nk9,EkF=[rqe,JqM,RJ9,eJi],kDx=[rqe,RJ9,eJi],WS9=[];llW=function(){x3X();for(var A=_.F(WS9),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q()};
var iur=fF;var O7=Symbol("Kb");var Vd=null,ZuF,yqU=null,YtW;var QZ={},Ilp=Object.assign({},U7,(QZ[MnL]=!0,QZ.effectType=l4,QZ.isResettableContext=!0,QZ.hasRun=!1,QZ.effectFn=null,QZ.consumerIsAlwaysLive=!0,QZ.consumerAllowSignalWrites=!0,QZ.consumerMarkedDirty=hJF,QZ.kind="effect",QZ.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(TI)throw Error("Lb");this.dirty=!1;if(!this.hasRun||aly(this)){this.hasRun=!0;H4F(this);var A=_.Nu(this),Q=GDX(this);yl4("effectRun",this.debugName);try{I7(this.effectFn,this.componentStack,this)}catch(b){throw Qd.enableContextBasedComponentStacks&&
kA(b),b;}finally{YSX("effectRun",this.debugName),pvf(this,Q),_.Nu(A)}}}},QZ.componentStack=void 0,QZ.debugName="[effect]",QZ[Symbol.dispose]=function(){if(dY(this))for(var A=this.producers;A!==void 0;)A=BoF(A);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;A=_.F(kDx);for(var Q=A.next();!Q.done;Q=A.next())Q.value.remove(this);IgU(this)},QZ));var No9=Object.assign({},Ilp,{effectType:gk6});var s4F=Symbol("Mb");var m3b=Object.assign({},Ilp,{effectType:l4});var R2b=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 bk4={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},QN9=
{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}]}},q3e={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},TKb=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],afF={"*":{async:1,dir:0,loading:2,target:3}};var Hur=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,bI={},FLA=(bI[1]=null,bI[2]=function(A,Q){return Q instanceof zY?un(Q):ed.toString()},bI[3]=function(A,Q){return ts(Q)?_.r$(Q):Hur.test(String(Q))?String(Q):ed.toString()},bI[4]=function(A,Q){return Q instanceof np?_.IT(Q):ed.toString()},bI[5]=function(A,Q){return String(Q)},bI[7]=null,bI[8]=null,bI[10]=null,bI);var NzW=Symbol("Pb");var nNC=function(A){var Q=CvY,b=A,f="",a="",T=1;A<0&&(A=-A);if(A===Infinity)A=(Infinity*Math.sign(b)).toString();else{for(var G=0;G<qtr.length;G++){var p=qtr[G];T=Q[p];if(A>=T||T<=1&&A>.1*T){f=p;break}}f?(f+="B",a=" "):T=1;A=Math.round(b/T*10)/10+a+f}return A},qtr="Y Z E P T G M K  m u n".split(" "),CvY={"":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};_.ok1=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 BG={};RegExp.prototype.hasOwnProperty("sticky");var e2y=function(A){A=String(A);for(var Q=function(f,a,T){for(var G=Math.min(a.length-T,f.length),p=0;p<G;p++){var P=a[T+p];if(f[p]!==("A"<=P&&P<="Z"?P.toLowerCase():P))return!1}return!0},b=0;(b=A.indexOf("<",b))!=-1;){if(Q("\x3c/script",A,b)||Q("\x3c!--",A,b))return"zSoyz";
b+=1}return A};var eB={default:"__default"};var S8f=Object.prototype.hasOwnProperty;ptC.prototype=Object.create(null);var b0=Mc9();var DD=null;var C0y=function(A){this.created=[];this.deleted=[];this.node=A};var q89=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var A=this,Q=A;A;)Q=A,A=A.parentNode;return Q};var KLe=function(A,Q){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=A;this.key=Q;this.text=void 0};var c_=null,zI=null,E7=null,u4=null,nwW=[],OkA=JjC,yd=[],YA=[],$I6=function(A){return owY(function(Q,b,f){E7=zI=Q;zI=null;b(f);VcU(null);zI=E7;E7=E7.parentNode;return Q},A)}(),DIU=function(A){return owY(function(Q,b,f){var a={nextSibling:Q};
zI=a;b(f);E7&&VcU(Q.nextSibling);return a===zI?null:zI},A)}();var $A=[],rjY=0;var Nz=new ptC;var h8=new ptC;var tn9=Mc9(),vw6=tn9[eB.default],WLW=tn9.style,gwA=["focusin","focusout"],cjy="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var kL9=function(){},Sve=function(){},ofJ=function(){},H19=function(){};var Az=Symbol("Wb");var yjY,ZkX=uv6;var XF=Symbol("Xb");var qv9=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(" ")),
ChU=new Set(["a","font","script","style","title"]);var PG={setUp:dW6,tearDown:dW6,log:dW6,logNodeRange:dW6,graft:function(A,Q){Q()}};var KH={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var id=null,Jz=function(A,Q){V6.call(this,A);var b=this;this.functionComponent=Q;this.hooks=[];this.hookCounter=0;this.disposeEffects=qz(function(f){b.effectContext=f;_.Cz(function(){lyC(b,b.el)})},Qd.alwaysTrackContexts||!!$$)};
_.O(Jz,V6);Jz.prototype.render=function(A){var Q=id;id=this;this.hookCounter=0;var b=a7(ld),f=_.Nu(this.effectContext);try{return yl4("render",this.componentName),this.functionComponent(A)}finally{YSX("render",this.componentName),_.Nu(f),a7(b),id=Q}};
_.Qr.Object.defineProperties(Jz.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return wvi(this.functionComponent)}}});var tUi=Symbol("kc"),O14=function(A,Q,b){this.afterRenderCallbacks=null;this.kind=A;this.props=Q;this.children=b};
_.O(O14,LH);O14.prototype.render=function(){var A=VUJ(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var Q=_.F(this.afterRenderCallbacks),b=Q.next();!b.done;b=Q.next())b=b.value,A=b(A);return A};
O14.prototype.getChildren=function(){return this.children};var jiA=[];LSU=function(A){throw Error("ob`"+A.debugName);};
(function(){var A=DD;DD=function(Q){A==null||A(Q);Rzb(Q)}})();var rqM=new WeakMap,j4M=0;var RJy=void 0,gkN={},eJL=new WeakMap,vv4={getComponent:function(A){if(A.hasAttribute("ng-version"))return gkN;if(!A.__wizComponent)return null;A=A.__wizComponent;eJL.set(A.propsAndState,A);return A.propsAndState},
getDirectiveMetadata:function(A){if(A===gkN)return{framework:"wiz",name:"<Root>",props:{}};A=eJL.get(A);if(!A)throw Error("lc");return{framework:"wiz",name:A.name,props:Object.fromEntries(Object.keys(A.props).map(function(Q){return[Q,Q]}))}},
"\u0275setProfiler":function(A){var Q;(Q=RJy)==null||Q();RJy=vkb(function(){A(2)})},
getInjector:function(A){return A.__wizComponent},
"\u0275getSignalGraph":function(A){var Q;A=(Q=A.effects)!=null?Q:[];var b=gfe(A),f=Array.from(b.keys());Q=[];A=[];for(var a=new Map,T=0;T<f.length;T++)a.set(f[T],T);b=_.F(b.entries());for(f=b.next();!f.done;f=b.next()){T=_.F(f.value);f=T.next().value;var G=T.next().value;T=f;f=a.get(T);var p=rqM.get(T);p||(p=j4M.toString(),rqM.set(T,p),j4M++);var P=void 0,U=((P=T.debugName)!=null?P:"").replace(/@.+/,"");if(T.kind==="computed"){P=T.computation;var L=void 0;Q.push({label:U,value:T.value,kind:T.kind,
epoch:T.version,debuggableFn:(L=P.userFn)!=null?L:P,id:p})}else if(T.kind==="signal")Q.push({label:U,value:T.value,kind:T.kind,epoch:T.version,debuggableFn:T.debugFn,id:p});else if(T.kind==="effect"){L=void 0;P=(L=T.effectFn)!=null?L:void 0;var M=L=void 0;Q.push({label:U,kind:T.kind,epoch:T.version,debuggableFn:(M=(L=P)==null?void 0:L.userFn)!=null?M:P,id:p})}else Q.push({label:U,kind:T.kind,epoch:T.version,id:p});T=_.F(G);for(G=T.next();!G.done;G=T.next())A.push({consumer:f,producer:a.get(G.value)})}return{nodes:Q,
edges:A}},
isSignal:function(A){return typeof A==="function"&&A[GI]!==void 0}};Object.assign({},Ilp,{effectType:l4,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var A=this.elementRef;var Q;A.element!=null||(A.element=(Q=A.document.getElementById(A.value))!=null?Q:void 0);A=A.element;for(Q=this.attributes;Q;){var b=Q.signal();b!==Q.prevValue&&(Q.prevValue=b,R2b.has(Q.name)?gY(A,Q.name,b?"":null):gY(A,Q.name,b));Q=Q.next}}});Object.assign({},Ilp,{effectType:l4,hasRun:!0});_.S.debugName="RlDudd";var ezb={nonNullableCondIsNull:function(){return Error("qc")}};var cx6=function(){this.map=new Map};
cx6.prototype.push=function(A,Q){var b=this.map;b.has(A)&&(this.multi||(this.multi=new Map),this.multi.set(Q,b.get(A)));b.set(A,Q)};
cx6.prototype.pop=function(A){var Q=this.map,b=Q.get(A),f;b!==void 0&&((f=this.multi)==null?0:f.has(b))?(Q.set(A,this.multi.get(b)),this.multi.delete(b)):Q.delete(A);return b};_.Op.debugName="nsTGHd";_.nH.debugName="tbhMcf";_.kQ.debugName="zyMFzb";_.I8.debugName="vI1rtf";_.YvF={OUT_OF_ORDER_HOOK_CALL:function(A){return Error("rc`"+A)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("sc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("tc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("uc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(A,Q){return Error("vc`"+((Q===void 0?0:Q)?"IDOM":"Reactive")+"`"+A)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(A,Q){return Error("wc`"+A+"`"+Q)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(A){return Error("xc`"+A)},
USE_ELEMENT_NOT_ASSIGNED:function(A){return Error("yc`"+String(A))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(A){return Error("zc`"+String(A))}};yjY=nfy;var bD9=Symbol("Ac");L74({beforeRender:function(A){var Q=_.Nu(A.effectContext);try{var b;((b=A.__syncEffects)==null?0:b.length)&&aV6(A.__syncEffects)}finally{_.Nu(Q)}},
didPatch:function(A){var Q=_.Nu(A.effectContext);try{var b;((b=A.__syncEffects)==null?0:b.length)&&aV6(A.__syncEffects)}finally{_.Nu(Q)}},
didUnmount:function(A){var Q;((Q=A.hooks)==null?0:Q.length)&&A.hooks.forEach(fV6)}});var hJ$,WSy,vkL;hJ$=_.by.window;_.gN=(hJ$==null?void 0:(WSy=hJ$.yt)==null?void 0:WSy.config_)||(hJ$==null?void 0:(vkL=hJ$.ytcfg)==null?void 0:vkL.data_)||{};_.Al("yt.config_",_.gN);var Ek$={},Go6=[];_.IO=function(A){var Q=_.E$.apply(1,arguments);var b=Error.call(this,A);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.args=[].concat(_.ri(Q));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(_.IO,Error);var P_4=function(A,Q,b){this.actionName=A;this.optionalAction=Q===void 0?!1:Q;this.args=b===void 0?null:b;this.returnValue=[]};_.fU=function(A){this.name=A};_.uv=new _.fU("signalAction");var iDJ=/^[\w.]*$/,Sl6={q:!0,search_query:!0},Xn9=String(PiU);var aW;aW=Symbol("Bc");_.TS=function(A){this.name=A};
_.TS.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var JQU=function(A){this.key=A},IVb=function(A){this.deferredKey=A},ODy=function(){var A=this;
this.providers=new Map;this.JSC$10391_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(A.providers)}}};
ODy.prototype.addProvider=function(A){this.providers.set(A.provide,A);var Q=this.JSC$10391_deferred.get(A.provide);if(Q)try{Q.resolver(this.resolve(A.provide))}catch(b){Q.rejector(b)}};
ODy.prototype.resolve=function(A){return A instanceof IVb?x3r(this,A):A instanceof JQU?cqY(this,A.key,[],!0):cqY(this,A,[])};
var x3r=function(A,Q){Q=Q.deferredKey;if(A.JSC$10391_deferred.has(Q))return A.JSC$10391_deferred.get(Q).promise;var b={};b.promise=new Promise(function(f,a){b.resolver=f;b.rejector=a});
A.JSC$10391_deferred.set(Q,b);return b.promise},cqY=function(A,Q,b,f){f=f===void 0?!1:f;
if(b.indexOf(Q)>-1)throw Error("Cc`"+Q);if(A.cachedValues.has(Q))return A.cachedValues.get(Q);if(!A.providers.has(Q)){if(f)return;throw Error("Dc`"+Q);}f=A.providers.get(Q);b.push(Q);if(f.useValue!==void 0)var a=f.useValue;else if(f.useFactory)a=f[aW]?zJr(A,f[aW],b):[],a=f.useFactory.apply(f,_.ri(a));else if(f.useClass){a=f.useClass;var T=a[aW]?zJr(A,a[aW],b):[];a=new (Function.prototype.bind.apply(a,[null].concat(_.ri(T))))}else throw Error("Ec`"+Q);b.pop();f.skipCache||A.cachedValues.set(Q,a);return a},
zJr=function(A,Q,b){return Q?Q.map(function(f){return f instanceof JQU?cqY(A,f.key,b,!0):cqY(A,f,b)}):[]};var VT9;var Zl=new _.TS("ENDPOINT_HANDLER_TOKEN");_.y_=new _.fU("urlEndpoint");var wvL=function(){this.data=[];this.cachedPackedInt52=-1};
wvL.prototype.set=function(A,Q){Q=Q===void 0?!0:Q;0<=A&&A<52&&Number.isInteger(A)&&this.data[A]!==Q&&(this.data[A]=Q,this.cachedPackedInt52=-1)};
wvL.prototype.get=function(A){return!!this.data[A]};
var udM=function(A){A.cachedPackedInt52===-1&&(A.cachedPackedInt52=A.data.reduce(function(Q,b,f){return Q+(b?Math.pow(2,f):0)},0));
return A.cachedPackedInt52};var E_A=function(A){var Q=Zu$;A=A===void 0?_.zV("yt.ads.biscotti.lastId_")||"":A;var b=Object,f=b.assign,a={};a.dt=xux;a.flash="0";a:{try{var T=Q.JSC$10397_win_.top.location.href}catch(a9){T=2;break a}T=T?T===Q.doc_.location.href?0:1:2}a=(a.frm=T,a);try{a.u_tz=-(new Date).getTimezoneOffset();try{var G=wr.history.length}catch(a9){G=0}a.u_his=G;var p;a.u_h=(p=wr.screen)==null?void 0:p.height;var P;a.u_w=(P=wr.screen)==null?void 0:P.width;var U;a.u_ah=(U=wr.screen)==null?void 0:U.availHeight;var L;a.u_aw=
(L=wr.screen)==null?void 0:L.availWidth;var M;a.u_cd=(M=wr.screen)==null?void 0:M.colorDepth}catch(a9){}G=Q.JSC$10397_win_;try{var l=G.screenX;var J=G.screenY}catch(a9){}try{var n=G.outerWidth;var t=G.outerHeight}catch(a9){}try{var g=G.innerWidth;var e=G.innerHeight}catch(a9){}try{var x=G.screenLeft;var D=G.screenTop}catch(a9){}try{g=G.innerWidth,e=G.innerHeight}catch(a9){}try{var w=G.screen.availWidth;var u=G.screen.availTop}catch(a9){}l=[x,D,l,J,w,u,n,t,g,e];J=XoX(!1,Q.JSC$10397_win_.top);n={};
var y=y===void 0?_.by:y;t=new wvL;"SVGElement"in y&&"createElementNS"in y.document&&t.set(0);g=hN$();g["allow-top-navigation-by-user-activation"]&&t.set(1);g["allow-popups-to-escape-sandbox"]&&t.set(2);y.crypto&&y.crypto.subtle&&t.set(3);"TextDecoder"in y&&"TextEncoder"in y&&t.set(4);y=udM(t);Q=(n.bc=y,n.bih=J.height,n.biw=J.width,n.brdim=l.join(),n.vis=fRC(Q.doc_),n.wgl=!!wr.WebGLRenderingContext,n);b=f.call(b,a,Q);b.ca_type="image";A&&(b.bid=A);return b},Zu$=new function(){var A=window.document;
this.JSC$10397_win_=window;this.doc_=A};
_.Al("yt.ads_.signals_.getAdSignalsString",function(A){return UBX(E_A(A))});_.G0();navigator.userAgent.indexOf(" (CrKey ");var tTb="XMLHttpRequest"in _.by?function(){return new XMLHttpRequest}:null;var yqK="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Yt9=[].concat(_.ri(yqK),["client_dev_set_cookie"]);var v_U={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"},Rn4="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(_.ri(yqK)),DBf=!1,en4=_.xBi,ZD6=WEf;var MJf=[{messageFn:function(A){return"Cannot read property '"+A.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(A){return"Cannot call '"+A.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(A){return A.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var D3K={messageWeights:[],callbackWeights:[{callback:mBX,weight:500},{callback:AHJ,weight:500}]};var $3Y=function(){this.callbackWeights=[];this.messageWeights=[]},Noy,Lm6=function(){if(!Noy){var A=Noy=new $3Y;
A.messageWeights.length=0;A.callbackWeights.length=0;BBF(A,D3K)}return Noy},BBF=function(A,Q){Q.messageWeights&&A.messageWeights.push.apply(A.messageWeights,Q.messageWeights);
Q.callbackWeights&&A.callbackWeights.push.apply(A.callbackWeights,Q.callbackWeights)};_.BD(_.KJ,_.k$);_.KJ.prototype.subscribe=function(A,Q,b){var f=this.topics_[A];f||(f=this.topics_[A]=[]);var a=this.JSC$10421_key_;this.subscriptions_[a]=A;this.subscriptions_[a+1]=Q;this.subscriptions_[a+2]=b;this.JSC$10421_key_=a+3;f.push(a);return a};
var s4$=function(A){var Q=Jyf,b=!1,f=Q.subscribe("handleError",function(a){b||(b=!0,this.unsubscribeByKey(f),A.apply(void 0,arguments))},Q)};
_.KJ.prototype.unsubscribe=function(A,Q,b){if(A=this.topics_[A]){var f=this.subscriptions_;if(A=A.find(function(a){return f[a+1]==Q&&f[a+2]==b}))return this.unsubscribeByKey(A)}return!1};
_.KJ.prototype.unsubscribeByKey=function(A){var Q=this.subscriptions_[A];if(Q){var b=this.topics_[Q];this.publishDepth_!=0?(this.pendingKeys_.push(A),this.subscriptions_[A+1]=function(){}):(b&&_.Eb(b,A),delete this.subscriptions_[A],delete this.subscriptions_[A+1],delete this.subscriptions_[A+2])}return!!Q};
_.KJ.prototype.publish=function(A,Q){var b=this.topics_[A];if(b){var f=Array(arguments.length-1),a=arguments.length,T;for(T=1;T<a;T++)f[T-1]=arguments[T];if(this.async_)for(T=0;T<b.length;T++)a=b[T],m3L(this.subscriptions_[a+1],this.subscriptions_[a+2],f);else{this.publishDepth_++;try{for(T=0,a=b.length;T<a&&!this.isDisposed();T++){var G=b[T];this.subscriptions_[G+1].apply(this.subscriptions_[G+2],f)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;b=this.pendingKeys_.pop();)this.unsubscribeByKey(b)}}return T!=
0}return!1};
var m3L=function(A,Q,b){_.CG(function(){A.apply(Q,b)})};
_.KJ.prototype.clear=function(A){if(A){var Q=this.topics_[A];Q&&(Q.forEach(this.unsubscribeByKey,this),delete this.topics_[A])}else this.subscriptions_.length=0,this.topics_={}};
_.KJ.prototype.getCount=function(A){if(A){var Q=this.topics_[A];return Q?Q.length:0}A=0;for(Q in this.topics_)A+=this.getCount(Q);return A};
_.KJ.prototype.disposeInternal=function(){_.KJ.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var Jyf=new _.KJ;var BE=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(BE,_.fp);BE.prototype.getColdHashData=function(){return _.gA(this,3)};
BE.prototype.getHotHashData=function(){return _.gA(this,5)};
BE.prototype.setHotHashData=function(A){return _.nt(this,5,A)};var SYb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(SYb,_.fp);var xMA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(xMA,_.fp);_.d=xMA.prototype;_.d.getDeviceId=function(){return _.gA(this,6)};
_.d.getExperimentIds=function(A){var Q=_.cd(this,9,_.AM,3,!0);ZFF(Q,A);return Q[A]};
_.d.getPlayerType=function(){return _.e1(this,36)};
_.d.setHomeGroupInfo=function(A){return _.Lp(this,81,A)};
_.d.clearLocationPlayabilityToken=function(){return _.Gp(this,89)};var iv=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(iv,_.fp);iv.prototype.setKey=function(A){return _.nt(this,1,A)};
iv.prototype.getValue=function(){return WD(this,2,zvC)};
var zvC=[2,3,4,5,6];var AjN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(AjN,_.fp);AjN.prototype.setTrackingParams=function(A){return _.Gp(this,1,_.qx(A,!1))};var cf9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(cf9,_.fp);var MLX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(MLX,_.fp);MLX.prototype.getExperimentIds=function(A){var Q=_.cd(this,5,_.SLY,3,!0);ZFF(Q,A);return Q[A]};var nu=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(nu,_.fp);nu.prototype.getToken=function(){return _.Mu(this,2)};
nu.prototype.setToken=function(A){return _.nt(this,2,A)};var V_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(V_,_.fp);V_.prototype.setSafetyMode=function(A){return _.FH(this,5,A)};var Ku=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Ku,_.fp);Ku.prototype.setClient=function(A){return _.Lp(this,1,A)};var LWC={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 Ujb;_.g6=function(){var A=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.by.addEventListener("beforeinstallprompt",function(Q){Q.preventDefault();A.deferredInstallPrompt=Q});
_.by.addEventListener("appinstalled",function(){A.appInstalledEventFired=!0},{once:!0})};
Ujb=function(){if(!_.by.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.by.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.by.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.by.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.by.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(A){return"WEB_DISPLAY_MODE_UNKNOWN"}};var iTy=function(){this.syncHeaders=!0},JEX=function(A){var Q={},b=[];
"USER_SESSION_ID"in _.gN&&b.push({key:"u",value:_.vG("USER_SESSION_ID")});if(b=_.cuy(b))Q.Authorization=b,b=A=A==null?void 0:A.sessionIndex,b===void 0&&(b=Number(_.vG("SESSION_INDEX",0)),b=isNaN(b)?0:b),_.K("voice_search_auth_header_removal")||(Q["X-Goog-AuthUser"]=b.toString()),"INNERTUBE_HOST_OVERRIDE"in _.gN||(Q["X-Origin"]=window.location.origin),A===void 0&&"DELEGATED_SESSION_ID"in _.gN&&(Q["X-Goog-PageId"]=_.vG("DELEGATED_SESSION_ID"));return Q};var QNy={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var dP=_.zV("ytglobal.prefsUserPrefsPrefs_")||{},bkv;_.Al("ytglobal.prefsUserPrefsPrefs_",dP);_.F1=function(){this.cookieName=_.vG("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.vG("ALT_PREF_COOKIE_DOMAIN","youtube.com");var A=_.J$.get(this.cookieName,void 0);A&&this.parse(A)};
_.nD=function(){bkv||(bkv=new _.F1);return bkv};
_.F1.prototype.get=function(A,Q){ffW(A);af$(A);A=dP[A]!==void 0?dP[A].toString():null;return A!=null?A:Q?Q:""};
_.F1.prototype.set=function(A,Q){ffW(A);af$(A);if(Q==null)throw Error("Hc");dP[A]=Q.toString()};
_.F1.prototype.getFlag=function(A){return!!((TKL("f"+(Math.floor(A/31)+1))||0)&1<<A%31)};
_.k_=function(A,Q,b){A="f"+(Math.floor(Q/31)+1);Q=1<<Q%31;var f=TKL(A)||0;f=b?f|Q:f&~Q;f===0?delete dP[A]:(b=f.toString(16),dP[A]=b.toString())};
_.F1.prototype.remove=function(A){ffW(A);af$(A);delete dP[A]};
_.F1.prototype.save=function(){var A=!0;_.K("web_secure_pref_cookie_killswitch")&&(A=!1);_.Vb(this.cookieName,this.dump(),63072E3,this.cookieDomain,A)};
_.F1.prototype.clear=function(){_.j2.clear(dP)};
_.F1.prototype.dump=function(){var A=[],Q;for(Q in dP)dP.hasOwnProperty(Q)&&A.push(Q+"="+encodeURIComponent(String(dP[Q])));return A.join("&")};
var af$=function(A){if(/^f([1-9][0-9]*)$/.test(A))throw Error("Ic`"+A);},ffW=function(A){if(!/^\w+$/.test(A))throw Error("Jc`"+A);
},TKL=function(A){A=dP[A]!==void 0?dP[A].toString():null;
return A!=null&&/^[A-Fa-f0-9]+$/.test(A)?parseInt(A,16):null};
_.F1.prototype.parse=function(A){A=decodeURIComponent(A).split("&");for(var Q=0;Q<A.length;Q++){var b=A[Q].split("="),f=b[0];(b=b[1])&&(dP[f]=b.toString())}};var BsF={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"},lkC={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},KWA={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},Pgy={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var U4;_.GS=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Hv=function(A,Q,b){return A.addJob(Q,0,b)};
_.GS.prototype.addLowPriorityJob=function(A,Q){return this.addJob(A,1,Q)};
_.o$=function(A,Q,b){return A.addJob(Q,2,b)};
_.hy=function(A,Q,b){return A.addJob(Q,3,b)};
_.LE=function(A,Q,b){return A.addJob(Q,4,b)};
U4=function(A){var Q=_.zV("yt.scheduler.instance.addImmediateJob");Q?Q(A):A()};
_.GS.prototype.debounce=function(A,Q,b){var f=this,a=0,T=function(){a&&f.cancelJob(a);a=f.addJob(A,Q,b);f.cancelDebouncedJobMap.set(T,a)};
return T};
_.GS.prototype.cancelThrottle=function(A){(A=this.cancelThrottledJobMap.get(A))&&A()};var BB=function(){_.GS.apply(this,arguments)};
_.O(BB,_.GS);_.Rc=function(){BB.instance||(BB.instance=new BB);return BB.instance};
BB.prototype.addJob=function(A,Q,b){b!==void 0&&Number.isNaN(Number(b))&&(b=void 0);var f=_.zV("yt.scheduler.instance.addJob");return f?f(A,Q,b):b===void 0?(A(),NaN):_.Xe(A,b||0)};
BB.prototype.cancelJob=function(A){if(A===void 0||!Number.isNaN(Number(A))){var Q=_.zV("yt.scheduler.instance.cancelJob");Q?Q(A):_.Uo(A)}};
BB.prototype.start=function(){var A=_.zV("yt.scheduler.instance.start");A&&A()};
BB.prototype.pause=function(){var A=_.zV("yt.scheduler.instance.pause");A&&A()};
_.j7=_.Rc();_.Hr.prototype.set=function(A,Q){Q===void 0?this.mechanism.remove(A):this.mechanism.set(A,(0,_.jV)(Q))};
_.Hr.prototype.get=function(A){try{var Q=this.mechanism.get(A)}catch(b){return}if(Q!==null)try{return JSON.parse(Q)}catch(b){throw"Storage: Invalid value was encountered";}};
_.Hr.prototype.remove=function(A){this.mechanism.remove(A)};var pU=function(A){this.mechanism=A};
_.BD(pU,_.Hr);var dHp=function(A){this.data=A},FLW=function(A){return A===void 0||A instanceof dHp?A:new dHp(A)};
pU.prototype.set=function(A,Q){pU.superClass_.set.call(this,A,FLW(Q))};
pU.prototype.getWrapper=function(A){A=pU.superClass_.get.call(this,A);if(A===void 0||A instanceof Object)return A;throw"Storage: Invalid value was encountered";};
pU.prototype.get=function(A){if(A=this.getWrapper(A)){if(A=A.data,A===void 0)throw"Storage: Invalid value was encountered";}else A=void 0;return A};_.BD(CJ,pU);_.G9L=function(A){var Q=A.creation;A=A.expiration;return!!A&&A<_.G0()||!!Q&&Q>_.G0()};
CJ.prototype.set=function(A,Q,b){if(Q=FLW(Q)){if(b){if(b<_.G0()){CJ.prototype.remove.call(this,A);return}Q.expiration=b}Q.creation=_.G0()}CJ.superClass_.set.call(this,A,Q)};
CJ.prototype.getWrapper=function(A,Q){var b=CJ.superClass_.getWrapper.call(this,A);if(b)if(!Q&&_.G9L(b))CJ.prototype.remove.call(this,A);else return b};var PB=function(){};
PB.prototype.next=function(){return X1};
var X1={done:!0,value:void 0},S_=function(A){return{value:A,done:!1}};
PB.prototype.__iterator__=function(){return this};
_.BKy=function(A){if(A instanceof PB)return A;if(typeof A.__iterator__=="function")return A.__iterator__(!1);if(_.ce(A)){var Q=0,b=new PB;b.next=function(){for(;;){if(Q>=A.length)return X1;if(Q in A)return S_(A[Q++]);Q++}};
return b}throw Error("Kc");};var pt1=function(A){if(A instanceof U1||A instanceof LU||A instanceof M$)return A;if(typeof A.next=="function")return new U1(function(){return A});
if(typeof A[Symbol.iterator]=="function")return new U1(function(){return A[Symbol.iterator]()});
if(typeof A.__iterator__=="function")return new U1(function(){return A.__iterator__()});
throw Error("Lc");},U1=function(A){this.func_=A};
U1.prototype.__iterator__=function(){return new LU(this.func_())};
U1.prototype[Symbol.iterator]=function(){return new M$(this.func_())};
U1.prototype.toEs6=function(){return new M$(this.func_())};
var LU=function(A){this.JSC$10505_iter_=A};
_.O(LU,PB);LU.prototype.next=function(){return this.JSC$10505_iter_.next()};
LU.prototype[Symbol.iterator]=function(){return new M$(this.JSC$10505_iter_)};
LU.prototype.toEs6=function(){return new M$(this.JSC$10505_iter_)};
var M$=function(A){U1.call(this,function(){return A});
this.JSC$10508_iter_=A};
_.O(M$,U1);M$.prototype.next=function(){return this.JSC$10508_iter_.next()};var P0$=function(){};var lI=function(){};
_.BD(lI,P0$);lI.prototype.getCount=function(){for(var A=0,Q=_.F(this),b=Q.next();!b.done;b=Q.next())A++;return A};
lI.prototype[Symbol.iterator]=function(){return pt1(this.__iterator__(!0)).toEs6()};
lI.prototype.clear=function(){var A=Array.from(this);A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())this.remove(Q.value)};_.BD(qQ,lI);_.d=qQ.prototype;_.d.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var A=this.storage_;if(A)try{A.setItem("__sak","1");A.removeItem("__sak");var Q=!0}catch(b){Q=b instanceof DOMException&&(b.name==="QuotaExceededError"||b.code===22||b.code===1014||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&A&&A.length!==0}else Q=!1;this.cachedIsStorageAvailable_=Q}return this.cachedIsStorageAvailable_};
_.d.set=function(A,Q){KU(this);try{this.storage_.setItem(A,Q)}catch(b){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.d.get=function(A){KU(this);A=this.storage_.getItem(A);if(typeof A!=="string"&&A!==null)throw"Storage mechanism: Invalid value was encountered";return A};
_.d.remove=function(A){KU(this);this.storage_.removeItem(A)};
_.d.getCount=function(){KU(this);return this.storage_.length};
_.d.__iterator__=function(A){KU(this);var Q=0,b=this.storage_,f=new PB;f.next=function(){if(Q>=b.length)return X1;var a=b.key(Q++);if(A)return S_(a);a=b.getItem(a);if(typeof a!=="string")throw"Storage mechanism: Invalid value was encountered";return S_(a)};
return f};
_.d.clear=function(){KU(this);this.storage_.clear()};
_.d.key=function(A){KU(this);return this.storage_.key(A)};
var KU=function(A){if(A.storage_==null)throw Error("Mc");A.isAvailable()||fF(Error("Mc"))};_.BD(SrJ,qQ);_.BD(UeY,qQ);_.BD(oO,lI);oO.prototype.set=function(A,Q){this.mechanism_.set(this.JSC$10523_prefix_+A,Q)};
oO.prototype.get=function(A){return this.mechanism_.get(this.JSC$10523_prefix_+A)};
oO.prototype.remove=function(A){this.mechanism_.remove(this.JSC$10523_prefix_+A)};
oO.prototype.__iterator__=function(A){var Q=this.mechanism_[Symbol.iterator](),b=this,f=new PB;f.next=function(){var a=Q.next();if(a.done)return a;for(a=a.value;a.slice(0,b.JSC$10523_prefix_.length)!=b.JSC$10523_prefix_;){a=Q.next();if(a.done)return a;a=a.value}return S_(A?a.slice(b.JSC$10523_prefix_.length):b.mechanism_.get(a))};
return f};_.WE=function(A){this.expiringStorage_=(A=_.LOA(A))?new CJ(A):null;this.JSC$10527_domain_=document.domain||window.location.hostname};
_.WE.prototype.set=function(A,Q,b,f){b=b||31104E3;this.remove(A);if(this.expiringStorage_)try{this.expiringStorage_.set(A,Q,Date.now()+b*1E3);return}catch(T){}var a="";if(f)try{a=escape((0,_.jV)(Q))}catch(T){return}else a=escape(Q);_.Vb(A,a,b,this.JSC$10527_domain_)};
_.WE.prototype.get=function(A,Q){var b=void 0,f=!this.expiringStorage_;if(!f)try{b=this.expiringStorage_.get(A)}catch(a){f=!0}if(f&&(b=_.J$.get(A,void 0))&&(b=unescape(b),Q))try{b=JSON.parse(b)}catch(a){this.remove(A),b=void 0}return b};
_.WE.prototype.remove=function(A){this.expiringStorage_&&this.expiringStorage_.remove(A);_.dey(A,"/",this.JSC$10527_domain_)};
_.WE.prototype.getCreationTime=function(A){return this.expiringStorage_&&(A=(this.expiringStorage_.getWrapper(A)||{}).creation,typeof A==="number")?A:null};var l5A=function(){var A;return function(){A||(A=new _.WE("ytidb"));return A}}();var iOU;_.re=[];iOU=!1;var WO6=JHW||V$Y;var iI={},XtW=(iI.AUTH_INVALID="No user identifier specified.",iI.EXPLICIT_ABORT="Transaction was explicitly aborted.",iI.IDB_NOT_SUPPORTED="IndexedDB is not supported.",iI.MISSING_INDEX="Index not created.",iI.MISSING_OBJECT_STORES="Object stores not created.",iI.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",iI.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",iI.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",iI.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",iI.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",iI.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",iI.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",iI),JV={},S8x=(JV.AUTH_INVALID="ERROR",JV.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",JV.EXPLICIT_ABORT="IGNORED",
JV.IDB_NOT_SUPPORTED="ERROR",JV.MISSING_INDEX="WARNING",JV.MISSING_OBJECT_STORES="ERROR",JV.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",JV.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",JV.QUOTA_EXCEEDED="WARNING",JV.QUOTA_MAYBE_EXCEEDED="WARNING",JV.UNKNOWN_ABORT="WARNING",JV.INCOMPATIBLE_DB_VERSION="WARNING",JV),VZ={},UHN=(VZ.AUTH_INVALID=!1,VZ.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,VZ.EXPLICIT_ABORT=!1,VZ.IDB_NOT_SUPPORTED=!1,VZ.MISSING_INDEX=!1,VZ.MISSING_OBJECT_STORES=!1,VZ.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,VZ.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,VZ.QUOTA_EXCEEDED=!1,VZ.QUOTA_MAYBE_EXCEEDED=!0,VZ.UNKNOWN_ABORT=!0,VZ.INCOMPATIBLE_DB_VERSION=!1,VZ),Wr=function(A,Q,b,f,a){Q=Q===void 0?{}:Q;b=b===void 0?XtW[A]:b;f=f===void 0?S8x[A]:f;a=a===void 0?UHN[A]:a;_.IO.call(this,b,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:A},Q));this.type=A;this.message=b;this.level=f;this.retryable=a;Object.setPrototypeOf(this,Wr.prototype)};
_.O(Wr,_.IO);var LL1=function(A,Q){Wr.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:Q,foundObjectStores:A},XtW.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,LL1.prototype)};
_.O(LL1,Wr);var nL4=function(A,Q){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.index=A;this.objectStore=Q;Object.setPrototypeOf(this,nL4.prototype)};
_.O(nL4,Error);var k7W=["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 cr=function(A){this.executor=A},xR=function(A){var Q=this;
this.state={status:"PENDING"};this.JSC$10555_onFulfilled=[];this.JSC$10555_onRejected=[];A=A.executor;var b=function(a){if(Q.state.status==="PENDING"){Q.state={status:"FULFILLED",value:a};a=_.F(Q.JSC$10555_onFulfilled);for(var T=a.next();!T.done;T=a.next())T=T.value,T()}},f=function(a){if(Q.state.status==="PENDING"){Q.state={status:"REJECTED",
reason:a};a=_.F(Q.JSC$10555_onRejected);for(var T=a.next();!T.done;T=a.next())T=T.value,T()}};
try{A(b,f)}catch(a){f(a)}};
xR.all=function(A){return new xR(new cr(function(Q,b){var f=[],a=A.length;a===0&&Q(f);for(var T={i$jscomp$463:0};T.i$jscomp$463<A.length;T={i$jscomp$463:T.i$jscomp$463},++T.i$jscomp$463)xR.resolve(A[T.i$jscomp$463]).then(function(G){return function(p){f[G.i$jscomp$463]=p;a--;a===0&&Q(f)}}(T)).catch(function(G){b(G)})}))};
xR.resolve=function(A){return new xR(new cr(function(Q,b){A instanceof xR?A.then(Q,b):Q(A)}))};
xR.reject=function(A){return new xR(new cr(function(Q,b){b(A)}))};
xR.prototype.then=function(A,Q){var b=this,f=A!=null?A:CgF,a=Q!=null?Q:HOW;return new xR(new cr(function(T,G){b.state.status==="PENDING"?(b.JSC$10555_onFulfilled.push(function(){Mcy(b,b,f,T,G)}),b.JSC$10555_onRejected.push(function(){lf1(b,b,a,T,G)})):b.state.status==="FULFILLED"?Mcy(b,b,f,T,G):b.state.status==="REJECTED"&&lf1(b,b,a,T,G)}))};
xR.prototype.catch=function(A){return this.then(void 0,A)};
var Mcy=function(A,Q,b,f,a){try{if(A.state.status!=="FULFILLED")throw Error("Pc");var T=b(A.state.value);T instanceof xR?KLM(A,Q,T,f,a):f(T)}catch(G){a(G)}},lf1=function(A,Q,b,f,a){try{if(A.state.status!=="REJECTED")throw Error("Qc");
var T=b(A.state.reason);T instanceof xR?KLM(A,Q,T,f,a):f(T)}catch(G){a(G)}},KLM=function(A,Q,b,f,a){Q===b?a(new TypeError("Rc")):b.then(function(T){T instanceof xR?KLM(A,Q,T,f,a):f(T)},function(T){a(T)})};var O1;O1=window;_.f4=O1.ytcsi&&O1.ytcsi.now?O1.ytcsi.now:O1.performance&&O1.performance.timing&&O1.performance.now&&O1.performance.timing.navigationStart?function(){return O1.performance.timing.navigationStart+O1.performance.now()}:function(){return(new Date).getTime()};var we=function(A,Q){this.JSC$10567_wrapped=A;this.options=Q;this.transactionCount=0;this.startedMs=Math.round((0,_.f4)());this.hasUnknownAbortedTransaction=!1},nU=function(){return _.K("idb_immediate_commit")},VcK,OkW,HB,IfW;
we.prototype.add=function(A,Q,b){return _.D1(this,[A],{mode:"readwrite",enableRetries:!0,commit:nU()},function(f){return f.objectStore(A).add(Q,b)})};
we.prototype.clear=function(A){return _.D1(this,[A],{mode:"readwrite",enableRetries:!0},function(Q){return Q.objectStore(A).clear()})};
we.prototype.close=function(){this.JSC$10567_wrapped.close();var A;((A=this.options)==null?0:A.closed)&&this.options.closed()};
we.prototype.count=function(A,Q){return _.D1(this,[A],{mode:"readonly",enableRetries:!0,commit:nU()},function(b){return b.objectStore(A).count(Q)})};
var ES=function(A,Q,b){A=A.JSC$10567_wrapped.createObjectStore(Q,b);return new k4(A)};
we.prototype.delete=function(A,Q){return _.D1(this,[A],{mode:"readwrite",enableRetries:!0,commit:nU()&&!(Q instanceof IDBKeyRange)},function(b){return b.objectStore(A).delete(Q)})};
var ikM=function(A,Q){return _.D1(A,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore("ResponseStore").index("byInterface").delete(Q)})};
we.prototype.get=function(A,Q){return _.D1(this,[A],{mode:"readonly",enableRetries:!0,commit:nU()},function(b){return b.objectStore(A).get(Q)})};
we.prototype.getAll=function(A,Q,b){return _.D1(this,[A],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(A).getAll(Q,b)})};
we.prototype.put=function(A,Q,b){return _.D1(this,[A],{mode:"readwrite",enableRetries:!0,commit:nU()},function(f){return f.objectStore(A).put(Q,b)})};
we.prototype.objectStoreNames=function(){return Array.from(this.JSC$10567_wrapped.objectStoreNames)};
_.D1=function(A,Q,b,f){var a,T,G,p,P,U,L,M,l,J,n,t;return _.B(function(g){switch(g.nextAddress){case 1:var e={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof b==="string"?e.mode=b:Object.assign(e,b);a=e;A.transactionCount++;T=a.enableRetries?3:1;G=0;case 2:if(p){g.jumpTo(4);break}G++;P=Math.round((0,_.f4)());_.ML(g,5);U=A.JSC$10567_wrapped.transaction(Q,a.mode);e=g.yield;var x=!!a.commit;var D=new uu(U);x=Jj1(D,f,x);return e.call(g,x,7);case 7:return L=g.yieldResult,M=Math.round((0,_.f4)()),
VcK(A,P,M,G,void 0,Q.join(),a),g.return(L);case 5:l=_.Vw(g);J=Math.round((0,_.f4)());n=I5C(l,A.JSC$10567_wrapped.name,Q.join(),A.JSC$10567_wrapped.version);if((t=n instanceof Wr&&!n.retryable)||G>=T)VcK(A,P,J,G,n,Q.join(),a),p=n;g.jumpTo(2);break;case 4:return g.return(Promise.reject(p))}})};
VcK=function(A,Q,b,f,a,T,G){Q=b-Q;a?(a instanceof Wr&&(a.type==="QUOTA_EXCEEDED"||a.type==="QUOTA_MAYBE_EXCEEDED")&&RO("QUOTA_EXCEEDED",{dbName:et(A.JSC$10567_wrapped.name),objectStoreNames:T,transactionCount:A.transactionCount,transactionMode:G.mode}),a instanceof Wr&&a.type==="UNKNOWN_ABORT"&&(b-=A.startedMs,b<0&&b>=2147483648&&(b=0),RO("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:T,transactionDuration:Q,transactionCount:A.transactionCount,dbDuration:b}),A.hasUnknownAbortedTransaction=!0),
OkW(A,!1,f,T,Q,G.tag),_.jt(a)):OkW(A,!0,f,T,Q,G.tag)};
OkW=function(A,Q,b,f,a,T){RO("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:A.hasUnknownAbortedTransaction,duration:a,isSuccessful:Q,tryCount:b,tag:T===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":T})};
we.prototype.getVersion=function(){return this.JSC$10567_wrapped.version};
we.prototype.getName=function(){return this.JSC$10567_wrapped.name};
var k4=function(A){this.JSC$10582_wrapped=A};
k4.prototype.add=function(A,Q){return zP(this.JSC$10582_wrapped.add(A,Q))};
k4.prototype.autoIncrement=function(){return this.JSC$10582_wrapped.autoIncrement};
k4.prototype.clear=function(){return zP(this.JSC$10582_wrapped.clear()).then(function(){})};
var xT=function(A,Q,b){A.JSC$10582_wrapped.createIndex(Q,b,{unique:!1})};
k4.prototype.count=function(A){return zP(this.JSC$10582_wrapped.count(A))};
var nw9=function(A,Q){return NQ(A,{query:Q},function(b){return b.delete().then(function(){return b.continue()})}).then(function(){})};
k4.prototype.delete=function(A){return A instanceof IDBKeyRange?nw9(this,A):zP(this.JSC$10582_wrapped.delete(A))};
k4.prototype.get=function(A){return zP(this.JSC$10582_wrapped.get(A))};
k4.prototype.getAll=function(A,Q){return"getAll"in IDBObjectStore.prototype?zP(this.JSC$10582_wrapped.getAll(A,Q)):k9v(this,A,Q)};
var k9v=function(A,Q,b){var f=[];return NQ(A,{query:Q},function(a){if(!(b!==void 0&&f.length>=b))return f.push(a.getValue()),a.continue()}).then(function(){return f})};
k4.prototype.index=function(A){try{return new IW(this.JSC$10582_wrapped.index(A))}catch(Q){if(Q instanceof Error&&Q.name==="NotFoundError")throw new nL4(A,this.JSC$10582_wrapped.name);throw Q;}};
k4.prototype.getName=function(){return this.JSC$10582_wrapped.name};
k4.prototype.keyPath=function(){return this.JSC$10582_wrapped.keyPath};
k4.prototype.put=function(A,Q){return zP(this.JSC$10582_wrapped.put(A,Q))};
var NQ=function(A,Q,b){A=A.JSC$10582_wrapped.openCursor(Q.query,Q.direction);return IfW(A).then(function(f){return t$X(f,b)})},uu=function(A){var Q=this;
this.JSC$10590_wrapped=A;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(b,f){Q.JSC$10590_wrapped.addEventListener("complete",function(){b()});
Q.JSC$10590_wrapped.addEventListener("error",function(a){a.currentTarget===a.target&&f(Q.JSC$10590_wrapped.error)});
Q.JSC$10590_wrapped.addEventListener("abort",function(){var a=Q.JSC$10590_wrapped.error;if(a)f(a);else if(!Q.aborted){a=Wr;for(var T=Q.JSC$10590_wrapped.objectStoreNames,G=[],p=0;p<T.length;p++){var P=T.item(p);if(P===null)throw Error("Sc");G.push(P)}a=new a("UNKNOWN_ABORT",{objectStoreNames:G.join(),dbName:Q.JSC$10590_wrapped.db.name,mode:Q.JSC$10590_wrapped.mode});f(a)}})})},Jj1=function(A,Q,b){var f=new Promise(function(a,T){try{var G=Q(A);
b&&A.commit();G.then(function(p){a(p)}).catch(T)}catch(p){T(p),A.abort()}});
return Promise.all([f,A.done]).then(function(a){return _.F(a).next().value})};
uu.prototype.abort=function(){this.JSC$10590_wrapped.abort();this.aborted=!0;throw new Wr("EXPLICIT_ABORT");};
uu.prototype.commit=function(){if(!this.aborted){var A,Q;(Q=(A=this.JSC$10590_wrapped).commit)==null||Q.call(A)}};
uu.prototype.objectStore=function(A){A=this.JSC$10590_wrapped.objectStore(A);var Q=this.objectStoreCache.get(A);Q||(Q=new k4(A),this.objectStoreCache.set(A,Q));return Q};
var IW=function(A){this.JSC$10592_wrapped=A};
IW.prototype.count=function(A){return zP(this.JSC$10592_wrapped.count(A))};
IW.prototype.delete=function(A){return _.ax(this,{query:A},function(Q){return Q.delete().then(function(){return Q.continue()})})};
IW.prototype.get=function(A){return zP(this.JSC$10592_wrapped.get(A))};
IW.prototype.getAll=function(A,Q){return"getAll"in IDBIndex.prototype?zP(this.JSC$10592_wrapped.getAll(A,Q)):Hky(this,A,Q)};
var Hky=function(A,Q,b){var f=[];return _.ax(A,{query:Q},function(a){if(!(b!==void 0&&f.length>=b))return f.push(a.getValue()),a.continue()}).then(function(){return f})};
IW.prototype.keyPath=function(){return this.JSC$10592_wrapped.keyPath};
IW.prototype.unique=function(){return this.JSC$10592_wrapped.unique};
_.ax=function(A,Q,b){A=A.JSC$10592_wrapped.openCursor(Q.query===void 0?null:Q.query,Q.direction===void 0?"next":Q.direction);return IfW(A).then(function(f){return t$X(f,b)})};
HB=function(A,Q){this.request=A;this.cursor=Q};
IfW=function(A){return zP(A).then(function(Q){return Q?new HB(A,Q):null})};
HB.prototype.continue=function(A){this.cursor.continue(A);return IfW(this.request)};
HB.prototype.delete=function(){return zP(this.cursor.delete()).then(function(){})};
HB.prototype.getValue=function(){return this.cursor.value};
HB.prototype.update=function(A){return zP(this.cursor.update(A))};var CU=function(A,Q){this.name=A;this.options=Q;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},C0Y;
CU.prototype.openDb=function(A,Q,b){b=b===void 0?{}:b;return jX9(A,Q,b)};
CU.prototype.delete=function(A){A=A===void 0?{}:A;return _.yb(this.name,A)};
C0Y=function(A,Q){return new Wr("INCOMPATIBLE_DB_VERSION",{dbName:A.name,oldVersion:A.options.version,newVersion:Q})};
_.YR=function(A,Q){if(!Q)throw Eo("openWithToken",et(A.name));return A.open()};
CU.prototype.open=function(){var A=this;if(!this.isCompatible)throw C0Y(this);if(this.connectionPromise)return this.connectionPromise;var Q,b=function(){A.connectionPromise===Q&&(A.connectionPromise=void 0)},f={blocking:function(T){T.close()},
closed:b,terminated:b,upgrade:this.options.upgrade},a=function(){var T,G,p,P,U,L,M,l,J,n;return _.B(function(t){switch(t.nextAddress){case 1:return G=(T=Error().stack)!=null?T:"",_.ML(t,2),t.yield(A.openDb(A.name,A.options.version,f),4);case 4:for(var g=p=t.yieldResult,e=A.options,x=[],D=_.F(Object.keys(e.objectStores)),w=D.next();!w.done;w=D.next()){w=w.value;var u=e.objectStores[w],y=u.removedAtVersion===void 0?Number.MAX_VALUE:u.removedAtVersion;!(g.JSC$10567_wrapped.version>=u.addedAtVersion)||
g.JSC$10567_wrapped.version>=y||g.JSC$10567_wrapped.objectStoreNames.contains(w)||x.push(w)}P=x;if(P.length===0){t.jumpTo(5);break}U=Object.keys(A.options.objectStores);L=p.objectStoreNames();if(A.timesReopenedToFixMissingObjectStore<_.GP("ytidb_reopen_db_retries",0))return A.timesReopenedToFixMissingObjectStore++,p.close(),_.jt(new Wr("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:U,foundObjectStores:L})),t.return(a());if(!(A.timesDeletedToFixMissingObjectStore<_.GP("ytidb_remake_db_retries",
1))){t.jumpTo(6);break}A.timesDeletedToFixMissingObjectStore++;return t.yield(A.delete(),7);case 7:return _.jt(new Wr("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:U,foundObjectStores:L})),t.return(a());case 6:throw new LL1(L,U);case 5:return t.return(p);case 2:M=_.Vw(t);if(M instanceof DOMException?M.name!=="VersionError":"DOMError"in self&&M instanceof DOMError?M.name!=="VersionError":!(M instanceof Object&&"message"in M)||M.message!=="An attempt was made to open a database using a lower version than the existing version."){t.jumpTo(8);
break}return t.yield(A.openDb(A.name,void 0,Object.assign({},f,{upgrade:void 0})),9);case 9:l=t.yieldResult;J=l.getVersion();if(A.options.version!==void 0&&J>A.options.version+1)throw l.close(),A.isCompatible=!1,C0Y(A,J);return t.return(l);case 8:throw b(),M instanceof Error&&!_.K("ytidb_async_stack_killswitch")&&(M.stack=M.stack+"\n"+G.substring(G.indexOf("\n")+1)),I5C(M,A.name,"",(n=A.options.version)!=null?n:-1);}})};
return this.connectionPromise=Q=a()};var RmY=new CU("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(A,Q){Q(1)&&ES(A,"databases",{keyPath:"actualName"})}});var xeW,vLJ=new function(){}(new function(){});new _.Mj;var q8y=function(A,Q){CU.call(this,A,Q);this.options=Q;ge(A)};
_.O(q8y,CU);var NsX=function(A,Q){var b;return function(){b||(b=new q8y(A,Q));return b}};
q8y.prototype.openDb=function(A,Q,b){b=b===void 0?{}:b;return(this.options.shared?ZOU:ug6)(A,Q,Object.assign({},b))};
q8y.prototype.delete=function(A){A=A===void 0?{}:A;return(this.options.shared?$eA:yHW)(this.name,A)};var owp={},sXb=bC("ytGcfConfig",{objectStores:(owp.coldConfigStore={addedAtVersion:1},owp.hotConfigStore={addedAtVersion:1},owp),shared:!1,upgrade:function(A,Q){Q(1)&&(xT(ES(A,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),xT(ES(A,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var tcv=function(){_.k$.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var A=_.zV("yt.gcf.config.hotUpdateCallbacks");A?(this.localHotConfigJobQueue=[].concat(_.ri(A)),this.sharedHotConfigJobQueue=A):(this.sharedHotConfigJobQueue=[],_.Al("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.O(tcv,_.k$);tcv.prototype.disposeInternal=function(){for(var A=_.F(this.localHotConfigJobQueue),Q=A.next();!Q.done;Q=A.next()){var b=this.sharedHotConfigJobQueue;Q=b.indexOf(Q.value);Q>=0&&b.splice(Q,1)}this.localHotConfigJobQueue.length=0;_.k$.prototype.disposeInternal.call(this)};var Cu=function(){var A=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new tcv;this.TEST_ONLY={initializeConfigDb:function(){A.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return A.coldGlobalConfigGroup},
setHotConfigGroup:function(Q){rjp(A,Q)},
setHotHashData:function(Q){A.setHotHashData(Q)},
setColdConfigGroup:function(Q){jNp(A,Q)},
getColdHashData:function(){return A.coldHashData},
getHotHashData:function(){return A.hotHashData},
getHotConfigGroup:function(){return A.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return R2L()},
getExportedHotConfigGroup:function(){return q$()},
getExportedColdHashData:function(){return _.zV("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.zV("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){gwW(A)},
resetInstance:function(){A.setHotHashData(void 0);e2Y(A);delete Cu.instance},
setDebounceTimer:function(Q){A.debounceTimer=Q},
getDebounceTimer:function(){return A.debounceTimer}}},h2j=function(){if(!Cu.instance){var A=new Cu;
Cu.instance=A}return Cu.instance},Ewr=function(A){var Q;
_.B(function(b){if(b.nextAddress==1)return _.K("start_client_gcf")||_.K("delete_gcf_config_db")?_.K("start_client_gcf")?b.yield(_.Q7(),3):b.jumpTo(2):b.return();b.nextAddress!=2&&((Q=b.yieldResult)&&_.kR()&&!_.K("delete_gcf_config_db")?(A.isConfigDbInitialized=!0,gwW(A)):(WL9(A),vwN(A)));return _.K("delete_gcf_config_db")?b.yield(akW(),0):b.jumpTo(0)})},q3=function(){var A;
return(A=q$())!=null?A:_.vG("RAW_HOT_CONFIG_GROUP")},xHN=function(A){var Q,b,f,a,T,G;
return _.B(function(p){switch(p.nextAddress){case 1:if(A.hotGlobalConfigGroup)return p.return(q$());if(!A.isConfigDbInitialized)return Q=Eo("getHotConfig IDB not initialized"),_.wN(Q),p.return(Promise.reject(Q));b=m9();f=_.vG("TIME_CREATED_MS");if(!b){a=Eo("getHotConfig token error");_.wN(a);p.jumpTo(2);break}return p.yield(fkb(b),3);case 3:if((T=p.yieldResult)&&T.timestamp>f)return rjp(A,T.config),A.setHotHashData(T.hashData),p.return(q$());case 2:vwN(A);if(!(b&&A.hotGlobalConfigGroup&&A.hotHashData)){p.jumpTo(4);
break}return p.yield(AEf(A.hotGlobalConfigGroup,A.hotHashData,b,f),4);case 4:return A.hotGlobalConfigGroup?p.return(q$()):(G=new _.IO("Config not available in ytConfig"),_.wN(G),p.return(Promise.reject(G)))}})},z2N=function(A){var Q,b,f,a,T,G;
return _.B(function(p){switch(p.nextAddress){case 1:if(A.coldGlobalConfigGroup)return p.return(R2L());if(!A.isConfigDbInitialized)return Q=Eo("getColdConfig IDB not initialized"),_.wN(Q),p.return(Promise.reject(Q));b=m9();f=_.vG("TIME_CREATED_MS");if(!b){a=Eo("getColdConfig");_.wN(a);p.jumpTo(2);break}return p.yield(bTb(b),3);case 3:if((T=p.yieldResult)&&T.timestamp>f)return jNp(A,T.config),cjY(A,T.configData),e2Y(A,T.hashData),p.return(R2L());case 2:WL9(A);if(!(b&&A.coldGlobalConfigGroup&&A.coldHashData&&
A.configData)){p.jumpTo(4);break}return p.yield(QzU(A.coldGlobalConfigGroup,A.coldHashData,A.configData,b,f),4);case 4:return A.coldGlobalConfigGroup?p.return(R2L()):(G=new _.IO("Config not available in ytConfig"),_.wN(G),p.return(Promise.reject(G)))}})},gwW=function(A){if(!A.hotGlobalConfigGroup||!A.coldGlobalConfigGroup){if(!m9()){var Q=Eo("scheduleGetConfigs");
_.wN(Q)}A.initJob||(A.initJob=_.j7.addLowPriorityJob(function(){return _.B(function(b){switch(b.nextAddress){case 1:return _.ML(b,2),b.yield(xHN(A),4);case 4:_.Z1(b,3);break;case 2:_.Vw(b);case 3:return _.ML(b,5),b.yield(z2N(A),7);case 7:_.Z1(b,6);break;case 5:_.Vw(b);case 6:A.initJob&&(A.initJob=0),_.Oi(b)}})},100))}},Aye=function(A,Q,b){var f,a,T;
return _.B(function(G){switch(G.nextAddress){case 1:if(!_.K("start_client_gcf")){G.jumpTo(0);break}b&&rjp(A,b);A.setHotHashData(Q);f=m9();if(!f){G.jumpTo(3);break}if(b){G.jumpTo(4);break}return G.yield(fkb(f),5);case 5:a=G.yieldResult,b=(T=a)==null?void 0:T.config;case 4:return G.yield(AEf(b,Q,f),3);case 3:if(b)for(var p=b,P=_.F(A.configUpdateService.sharedHotConfigJobQueue),U=P.next();!U.done;U=P.next())U=U.value,U(p);_.Oi(G)}})},Q$C=function(A,Q,b){var f,a,T,G;
return _.B(function(p){if(p.nextAddress==1){if(!_.K("start_client_gcf"))return p.jumpTo(0);e2Y(A,Q);return(f=m9())?b?p.jumpTo(4):p.yield(bTb(f),5):p.jumpTo(0)}p.nextAddress!=4&&(a=p.yieldResult,b=(T=a)==null?void 0:T.config);if(!b)return p.jumpTo(0);G=b.configData;return p.yield(QzU(b,Q,G,f),0)})},OTX=function(){var A=h2j(),Q=(0,_.f4)()-A.debounceTimer;
if(!(A.debounceTimer!==0&&Q<_.GP("send_config_hash_timer"))){Q=_.zV("yt.gcf.config.coldConfigData");var b=_.zV("yt.gcf.config.hotHashData"),f=_.zV("yt.gcf.config.coldHashData");Q&&b&&f&&(A.debounceTimer=(0,_.f4)());return{coldConfigData:Q,hotHashData:b,coldHashData:f}}},WL9=function(A){jNp(A,_.vG("RAW_COLD_CONFIG_GROUP"));
e2Y(A,_.vG("SERIALIZED_COLD_HASH_DATA"));var Q;cjY(A,(Q=A.coldGlobalConfigGroup)==null?void 0:Q.configData)},vwN=function(A){rjp(A,_.vG("RAW_HOT_CONFIG_GROUP"));
A.setHotHashData(_.vG("SERIALIZED_HOT_HASH_DATA"))},rjp=function(A,Q){A.hotGlobalConfigGroup=Q;
_.Al("yt.gcf.config.hotConfigGroup",A.hotGlobalConfigGroup||null)},jNp=function(A,Q){A.coldGlobalConfigGroup=Q;
_.Al("yt.gcf.config.coldConfigGroup",A.coldGlobalConfigGroup||null)};
Cu.prototype.setHotHashData=function(A){this.hotHashData=A;_.Al("yt.gcf.config.hotHashData",this.hotHashData||null)};
var e2Y=function(A,Q){A.coldHashData=Q;_.Al("yt.gcf.config.coldHashData",A.coldHashData||null)},cjY=function(A,Q){A.configData=Q;
_.Al("yt.gcf.config.coldConfigData",A.configData||null)},q$=function(){return _.zV("yt.gcf.config.hotConfigGroup")},R2L=function(){return _.zV("yt.gcf.config.coldConfigGroup")};var US={},wtr=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";US.assign=function(A){for(var Q=Array.prototype.slice.call(arguments,1);Q.length;){var b=Q.shift();if(b){if(typeof b!=="object")throw new TypeError("Vc`"+b);for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(A[f]=b[f])}}return A};
US.shrinkBuf=function(A,Q){if(A.length===Q)return A;if(A.subarray)return A.subarray(0,Q);A.length=Q;return A};
var uvN={arraySet:function(A,Q,b,f,a){if(Q.subarray&&A.subarray)A.set(Q.subarray(b,b+f),a);else for(var T=0;T<f;T++)A[a+T]=Q[b+T]},
flattenChunks:function(A){var Q,b;var f=b=0;for(Q=A.length;f<Q;f++)b+=A[f].length;var a=new Uint8Array(b);f=b=0;for(Q=A.length;f<Q;f++){var T=A[f];a.set(T,b);b+=T.length}return a}},Zkr={arraySet:function(A,Q,b,f,a){for(var T=0;T<f;T++)A[a+T]=Q[b+T]},
flattenChunks:function(A){return[].concat.apply([],A)}};
US.setTyped=function(){wtr?(US.Buf8=Uint8Array,US.Buf16=Uint16Array,US.Buf32=Int32Array,US.assign(US,uvN)):(US.Buf8=Array,US.Buf16=Array,US.Buf32=Array,US.assign(US,Zkr))};
US.setTyped();var yjp=!0;try{new Uint8Array(1)}catch(A){yjp=!1}
var fwY=function(A){var Q,b,f=A.length,a=0;for(Q=0;Q<f;Q++){var T=A.charCodeAt(Q);if((T&64512)===55296&&Q+1<f){var G=A.charCodeAt(Q+1);(G&64512)===56320&&(T=65536+(T-55296<<10)+(G-56320),Q++)}a+=T<128?1:T<2048?2:T<65536?3:4}var p=new US.Buf8(a);for(Q=b=0;b<a;Q++)T=A.charCodeAt(Q),(T&64512)===55296&&Q+1<f&&(G=A.charCodeAt(Q+1),(G&64512)===56320&&(T=65536+(T-55296<<10)+(G-56320),Q++)),T<128?p[b++]=T:(T<2048?p[b++]=192|T>>>6:(T<65536?p[b++]=224|T>>>12:(p[b++]=240|T>>>18,p[b++]=128|T>>>12&63),p[b++]=
128|T>>>6&63),p[b++]=128|T&63);return p};var wYe={};wYe=function(A,Q,b,f){var a=A&65535|0;A=A>>>16&65535|0;for(var T;b!==0;){T=b>2E3?2E3:b;b-=T;do a=a+Q[f++]|0,A=A+a|0;while(--T);a%=65521;A%=65521}return a|A<<16|0};for(var C4={},oW,Y81=[],DH$=0;DH$<256;DH$++){oW=DH$;for(var $H$=0;$H$<8;$H$++)oW=oW&1?3988292384^oW>>>1:oW>>>1;Y81[DH$]=oW}C4=function(A,Q,b,f){b=f+b;for(A^=-1;f<b;f++)A=A>>>8^Y81[(A^Q[f])&255];return A^-1};var K4={};K4={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 jze=[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],gr9=[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],bcJ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cEW=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],OS=Array(576);p4(OS);var n4=Array(60);p4(n4);var Mg=Array(512);p4(Mg);var L4=Array(256);p4(L4);var RMX=Array(29);p4(RMX);var eMW=Array(30);p4(eMW);var mjF,AuJ,Q_U,szJ=!1;var rO;
rO=[new tl(0,0,0,0,function(A,Q){var b=65535;for(b>A.pending_buf_size-5&&(b=A.pending_buf_size-5);;){if(A.lookahead<=1){qg(A);if(A.lookahead===0&&Q===0)return 1;if(A.lookahead===0)break}A.strstart+=A.lookahead;A.lookahead=0;var f=A.block_start+b;if(A.strstart===0||A.strstart>=f)if(A.lookahead=A.strstart-f,A.strstart=f,kT(A,!1),A.strm.avail_out===0)return 1;if(A.strstart-A.block_start>=A.w_size-262&&(kT(A,!1),A.strm.avail_out===0))return 1}A.insert=0;if(Q===4)return kT(A,!0),A.strm.avail_out===0?3:
4;A.strstart>A.block_start&&kT(A,!1);return 1}),
new tl(4,4,8,4,uZX),new tl(4,5,16,8,uZX),new tl(4,6,32,32,uZX),new tl(4,4,16,16,ox),new tl(8,16,32,32,ox),new tl(8,16,128,128,ox),new tl(8,32,128,256,ox),new tl(32,128,258,1024,ox),new tl(32,258,258,4096,ox)];var N6b={};N6b=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 awJ=Object.prototype.toString;
$je.prototype.push=function(A,Q){var b=this.strm,f=this.options.chunkSize;if(this.ended)return!1;var a=Q===~~Q?Q:Q===!0?4:0;typeof A==="string"?b.input=fwY(A):awJ.call(A)==="[object ArrayBuffer]"?b.input=new Uint8Array(A):b.input=A;b.next_in=0;b.avail_in=b.input.length;do{b.avail_out===0&&(b.output=new US.Buf8(f),b.next_out=0,b.avail_out=f);A=DjC(b,a);if(A!==1&&A!==0)return NKY(this,A),this.ended=!0,!1;if(b.avail_out===0||b.avail_in===0&&(a===4||a===2))if(this.options.to==="string"){var T=US.shrinkBuf(b.output,
b.next_out);Q=T;T=T.length;if(T<65537&&(Q.subarray&&yjp||!Q.subarray))Q=String.fromCharCode.apply(null,US.shrinkBuf(Q,T));else{for(var G="",p=0;p<T;p++)G+=String.fromCharCode(Q[p]);Q=G}this.chunks.push(Q)}else Q=US.shrinkBuf(b.output,b.next_out),this.chunks.push(Q)}while((b.avail_in>0||b.avail_out===0)&&A!==1);if(a===4)return(b=this.strm)&&b.state?(f=b.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?A=iC(b,-2):(b.state=null,A=f===113?iC(b,-3):0)):A=-2,NKY(this,A),this.ended=
!0,A===0;a===2&&(NKY(this,0),b.avail_out=0);return!0};
var NKY=function(A,Q){Q===0&&(A.result=A.options.to==="string"?A.chunks.join(""):US.flattenChunks(A.chunks));A.chunks=[];A.err=Q;A.msg=A.strm.msg};var sNM=typeof TextEncoder!=="undefined"?new TextEncoder:null,RBX=sNM?function(A){return sNM.encode(A)}:function(A){A=_.nK(A);
for(var Q=new Uint8Array(A.length),b=0;b<Q.length;b++)Q[b]=A[b];return Q};var dX6={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},GyF={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var tV=function(A,Q){this.version=A;this.args=Q};
tV.prototype.serialize=function(){return{version:this.version,args:this.args}};var BnC=function(A,Q){this.topic=A;this.dataClass=Q};
BnC.prototype.toString=function(){return this.topic};var mHK=_.zV("ytPubsub2Pubsub2Instance")||new _.KJ;_.KJ.prototype.subscribe=_.KJ.prototype.subscribe;_.KJ.prototype.unsubscribeByKey=_.KJ.prototype.unsubscribeByKey;_.KJ.prototype.publish=_.KJ.prototype.publish;_.KJ.prototype.clear=_.KJ.prototype.clear;_.Al("ytPubsub2Pubsub2Instance",mHK);var GUU=_.zV("ytPubsub2Pubsub2SubscribedKeys")||{};_.Al("ytPubsub2Pubsub2SubscribedKeys",GUU);var PNA=_.zV("ytPubsub2Pubsub2TopicToKeys")||{};_.Al("ytPubsub2Pubsub2TopicToKeys",PNA);
var pje=_.zV("ytPubsub2Pubsub2IsAsync")||{};_.Al("ytPubsub2Pubsub2IsAsync",pje);_.Al("ytPubsub2Pubsub2SkipSubKey",null);var VKW=void 0,icW=void 0;var olb=_.GP("max_body_size_to_compress",5E5),tK6=_.GP("min_body_size_to_compress",500),gO=!0,hBJ=0,e7=0,eBF=_.GP("compression_performance_threshold_lr",250),W5U=_.GP("slow_compressions_before_abandon_count",4),kU4=!1,Iwy=new Map,j_A=1,ruf=!0;_.BD(hl,xJX);hl.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 AxW=function(A,Q,b){b||(b=0);var f=A.W_;if(typeof Q==="string")for(var a=0;a<16;a++)f[a]=Q.charCodeAt(b)<<24|Q.charCodeAt(b+1)<<16|Q.charCodeAt(b+2)<<8|Q.charCodeAt(b+3),b+=4;else for(a=0;a<16;a++)f[a]=Q[b]<<24|Q[b+1]<<16|Q[b+2]<<8|Q[b+3],b+=4;for(Q=16;Q<80;Q++)b=f[Q-3]^f[Q-8]^f[Q-14]^f[Q-16],f[Q]=(b<<1|b>>>31)&4294967295;Q=A.chain_[0];b=A.chain_[1];a=A.chain_[2];for(var T=A.chain_[3],G=A.chain_[4],p,P,U=0;U<80;U++)U<40?U<20?(p=T^b&(a^T),P=1518500249):(p=b^a^T,P=1859775393):U<60?(p=b&a|T&(b|a),
P=2400959708):(p=b^a^T,P=3395469782),p=(Q<<5|Q>>>27)+p+G+P+f[U]&4294967295,G=T,T=a,a=(b<<30|b>>>2)&4294967295,b=Q,Q=p;A.chain_[0]=A.chain_[0]+Q&4294967295;A.chain_[1]=A.chain_[1]+b&4294967295;A.chain_[2]=A.chain_[2]+a&4294967295;A.chain_[3]=A.chain_[3]+T&4294967295;A.chain_[4]=A.chain_[4]+G&4294967295};
hl.prototype.update=function(A,Q){if(A!=null){Q===void 0&&(Q=A.length);for(var b=Q-this.blockSize,f=0,a=this.buf_,T=this.inbuf_;f<Q;){if(T==0)for(;f<=b;)AxW(this,A,f),f+=this.blockSize;if(typeof A==="string")for(;f<Q;){if(a[T]=A.charCodeAt(f),++T,++f,T==this.blockSize){AxW(this,a);T=0;break}}else for(;f<Q;)if(a[T]=A[f],++T,++f,T==this.blockSize){AxW(this,a);T=0;break}}this.inbuf_=T;this.total_+=Q}};
hl.prototype.digest=function(){var A=[],Q=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var b=this.blockSize-1;b>=56;b--)this.buf_[b]=Q&255,Q/=256;AxW(this,this.buf_);for(b=Q=0;b<5;b++)for(var f=24;f>=0;f-=8)A[Q]=this.chain_[b]>>f&255,++Q;return A};var wj6;var j_=function(A){var Q=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(L){Q.databaseToken=L},
triggerThrottle:function(){Q.throttledSend()},
cancelThrottle:function(){Q.cancelThrottledSend()},
immediateSend:function(L){return _.B(function(M){return M.yield(Q.immediateSend(L),0)})},
requestWithinAgeLimit:function(L,M){return Q.requestWithinAgeLimit(L,M)},
retryQueuedRequests:function(){Q.retryQueuedRequests()}};
var b;this.throttleTimeout=(b=A.throttleTimeout)!=null?b:100;var f;this.retryMaxAttempts=(f=A.retryMaxAttempts)!=null?f:1;var a;this.requestAgeLimitMs=(a=A.requestAgeLimitMs)!=null?a:2592E6;var T;this.queuedRequestAgeLimitMs=(T=A.queuedRequestAgeLimitMs)!=null?T:12E4;var G;this.retryDelayMs=(G=A.retryDelayMs)!=null?G:5E3;var p;this.databaseToken=(p=A.databaseToken)!=null?p:void 0;this.enableCleaning=!!A.enableCleaning;var P;this.cleaningRate=(P=A.cleaningRate)!=null?P:.1;var U;this.potentialEsfErrorLimit=
(U=A.potentialEsfErrorLimit)!=null?U:10;A.handleError&&(this.handleError=A.handleError);A.handleWarning&&(this.handleWarning=A.handleWarning);A.disableYtIdbTransactions&&(this.disableYtIdbTransactions=A.disableYtIdbTransactions);A.bypassDbTokenDependency&&(this.bypassDbTokenDependency=A.bypassDbTokenDependency);this.getBooleanFlag=A.getBooleanFlag;this.jobManager=A.jobManager;this.logsStore=A.logsStore;this.networkManager=A.networkManager;this.sendFn=A.sendFn;this.onlineEvent=A.onlineEvent;this.offlineEvent=
A.offlineEvent;rP(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Qi1(this)},Qi1=function(A){rP(A)&&!A.disableYtIdbTransactions&&(A.initialized=!0,A.enableCleaning&&Math.random()<=A.cleaningRate&&A.logsStore.cleanLogsStore(A.databaseToken),A.retryQueuedRequests(),A.networkManager.isNetworkAvailable()&&A.throttledSend(),A.networkManager.listen(A.onlineEvent,A.throttledSend.bind(A)),A.networkManager.listen(A.offlineEvent,A.cancelThrottledSend.bind(A)))};
_.d=j_.prototype;_.d.writeThenSend=function(A,Q){var b=this;Q=Q===void 0?{}:Q;if(rP(this)&&this.initialized){var f={url:A,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(f,this.databaseToken).then(function(a){f.id=a;b.networkManager.isNetworkAvailable()&&b.immediateSend(f)}).catch(function(a){b.immediateSend(f);
b1r(b,a)})}else this.sendFn(A,Q)};
_.d.sendThenWrite=function(A,Q,b){var f=this;Q=Q===void 0?{}:Q;if(rP(this)&&this.initialized){var a={url:A,options:Q,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(a.skipRetry=b);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!a.skipRetry){if(!a.skipRetry){var T=Q.onError?Q.onError:function(){};
Q.onError=function(G,p){return _.B(function(P){if(P.nextAddress==1)return P.yield(f.logsStore.set(a,f.databaseToken).catch(function(U){b1r(f,U)}),2);
T(G,p);_.Oi(P)})}}this.sendFn(A,Q,a.skipRetry)}else this.logsStore.set(a,this.databaseToken).catch(function(G){f.sendFn(A,Q,a.skipRetry);
b1r(f,G)})}else this.sendFn(A,Q,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&b)};
_.d.sendAndWrite=function(A,Q){var b=this;Q=Q===void 0?{}:Q;if(rP(this)&&this.initialized){var f={url:A,options:Q,timestamp:this.now(),status:"NEW",sendCount:0},a=!1,T=Q.onSuccess?Q.onSuccess:function(){};
f.options.onSuccess=function(G,p){f.id!==void 0?b.logsStore.deleteRequest(f.id,b.databaseToken):a=!0;b.networkManager.networkStatusHint&&b.getBooleanFlag&&b.getBooleanFlag("vss_network_hint")&&b.networkManager.networkStatusHint(!0);T(G,p)};
this.sendFn(f.url,f.options,void 0,!0);this.logsStore.set(f,this.databaseToken).then(function(G){f.id=G;a&&b.logsStore.deleteRequest(f.id,b.databaseToken)}).catch(function(G){b1r(b,G)})}else this.sendFn(A,Q,void 0,!0)};
_.d.throttledSend=function(){var A=this;if(!rP(this))throw Error("Yc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(A.logsStore.getMostRecentByStatus("NEW",A.databaseToken),2);if(b.nextAddress!=3)return Q=b.yieldResult,Q?b.yield(A.immediateSend(Q),3):(A.cancelThrottledSend(),b.return());A.intervalJob&&(A.intervalJob=0,A.throttledSend());_.Oi(b)})},this.throttleTimeout))};
_.d.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.d.immediateSend=function(A){var Q=this,b;return _.B(function(f){switch(f.nextAddress){case 1:if(!rP(Q))throw Error("Zc");if(A.id===void 0){f.jumpTo(2);break}return f.yield(Q.logsStore.markAsQueued(A.id,Q.databaseToken),3);case 3:(b=f.yieldResult)||Q.handleWarning(Error("$c"));case 2:if(Q.requestWithinAgeLimit(A,Q.requestAgeLimitMs)){f.jumpTo(4);break}Q.handleWarning(Error("ad"));if(A.id===void 0){f.jumpTo(5);break}return f.yield(Q.logsStore.deleteRequest(A.id,Q.databaseToken),5);case 5:return f.return();
case 4:A.skipRetry||(A=fyW(Q,A));if(!A){f.jumpTo(0);break}if(!A.skipRetry||A.id===void 0){f.jumpTo(8);break}return f.yield(Q.logsStore.deleteRequest(A.id,Q.databaseToken),8);case 8:Q.sendFn(A.url,A.options,!!A.skipRetry),_.Oi(f)}})};
var fyW=function(A,Q){if(!rP(A))throw Error("bd");var b=Q.options.onError?Q.options.onError:function(){};
Q.options.onError=function(a,T){var G,p,P,U;return _.B(function(L){switch(L.nextAddress){case 1:G=DJb(T);(p=$J4(T))&&A.getBooleanFlag&&A.getBooleanFlag("web_enable_error_204")&&A.handleError(Error("cd"),Q.url,T);if(!(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&G||A.getBooleanFlag&&!A.getBooleanFlag("nwl_consider_error_code")&&A.potentialEsfErrorCounter<=A.potentialEsfErrorLimit)){L.jumpTo(2);break}if(!A.networkManager.sendNetworkCheckRequest){L.jumpTo(3);break}return L.yield(A.networkManager.sendNetworkCheckRequest(),
3);case 3:if(A.networkManager.isNetworkAvailable()){L.jumpTo(2);break}b(a,T);if(!A.getBooleanFlag||!A.getBooleanFlag("nwl_consider_error_code")||((P=Q)==null?void 0:P.id)===void 0){L.jumpTo(6);break}return L.yield(A.logsStore.resetRequest(Q.id,A.databaseToken,!1),6);case 6:return L.return();case 2:if(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&!G&&A.potentialEsfErrorCounter>A.potentialEsfErrorLimit)return L.return();A.potentialEsfErrorCounter++;if(((U=Q)==null?void 0:U.id)===void 0){L.jumpTo(8);
break}return Q.sendCount<A.retryMaxAttempts?L.yield(A.logsStore.resetRequest(Q.id,A.databaseToken,!0,p?!1:void 0),12):L.yield(A.logsStore.deleteRequest(Q.id,A.databaseToken),8);case 12:A.jobManager.addLowPriorityJob(function(){A.networkManager.isNetworkAvailable()&&A.throttledSend()},A.retryDelayMs);
case 8:b(a,T),_.Oi(L)}})};
var f=Q.options.onSuccess?Q.options.onSuccess:function(){};
Q.options.onSuccess=function(a,T){var G;return _.B(function(p){if(p.nextAddress==1)return((G=Q)==null?void 0:G.id)===void 0?p.jumpTo(2):p.yield(A.logsStore.deleteRequest(Q.id,A.databaseToken),2);A.networkManager.networkStatusHint&&A.getBooleanFlag&&A.getBooleanFlag("vss_network_hint")&&A.networkManager.networkStatusHint(!0);f(a,T);_.Oi(p)})};
return Q};
j_.prototype.requestWithinAgeLimit=function(A,Q){A=A.timestamp;return this.now()-A>=Q?!1:!0};
j_.prototype.retryQueuedRequests=function(){var A=this;if(!rP(this))throw Error("dd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(Q){Q&&!A.requestWithinAgeLimit(Q,A.queuedRequestAgeLimitMs)?A.jobManager.addLowPriorityJob(function(){return _.B(function(b){if(b.nextAddress==1)return Q.id===void 0?b.jumpTo(2):b.yield(A.logsStore.resetRequest(Q.id,A.databaseToken),2);A.retryQueuedRequests();_.Oi(b)})}):A.networkManager.isNetworkAvailable()&&A.throttledSend()})};
var b1r=function(A,Q){A.writeError&&!A.networkManager.isNetworkAvailable()?A.writeError(Q):A.handleError(Q)},rP=function(A){return!!A.databaseToken||A.bypassDbTokenDependency};var Nn4;var abJ={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var ayM={},FXC=bC("ServiceWorkerLogsDatabase",{objectStores:(ayM.SWHealthLog={addedAtVersion:1},ayM),shared:!0,upgrade:function(A,Q){Q(1)&&xT(ES(A,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var LXW={},U7J=0;var i0X;var RW=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Zg=function(){if(!RW.instance){var A=_.zV("yt.networkRequestMonitor.instance")||new RW;
_.Al("yt.networkRequestMonitor.instance",A);RW.instance=A}return RW.instance};
RW.prototype.requestComplete=function(A,Q){Q&&(this.anyRequestHasSucceeded=!0);A=this.removeParams(A);this.requestMap.get(A)||this.requestMap.set(A,Q)};
RW.prototype.isEndpointCFR=function(A){A=this.removeParams(A);return(A=this.requestMap.get(A))?!1:A===!1&&this.anyRequestHasSucceeded?!0:null};
RW.prototype.removeParams=function(A){return A.split("?")[0]};
RW.prototype.removeParams=RW.prototype.removeParams;RW.prototype.isEndpointCFR=RW.prototype.isEndpointCFR;RW.prototype.requestComplete=RW.prototype.requestComplete;RW.getInstance=Zg;var gP=function(A){_.IH.call(this);var Q=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=A!=null?A:{addLowPriorityJob:function(a,T){return setTimeout(a,T)},
cancelJob:function(a){clearTimeout(a)}};
var b,f;this.isOnline=(f=(b=window.navigator)==null?void 0:b.onLine)!=null?f:!0;this.onNavigatorChange=function(){return _.B(function(a){return a.yield(TGL(Q),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||dWN(this)};
_.O(gP,_.IH);gP.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete gP.instance};
gP.prototype.isNetworkAvailable=function(){return this.isOnline};
var dWN=function(A){A.pollingJob=A.jobManager.addLowPriorityJob(function(){var Q;return _.B(function(b){if(b.nextAddress==1)return A.isOnline?((Q=window.navigator)==null?0:Q.onLine)?b.jumpTo(3):b.yield(TGL(A),3):b.yield(TGL(A),3);dWN(A);_.Oi(b)})},3E4)},TGL=function(A,Q){return A.networkRequestPromise?A.networkRequestPromise:A.networkRequestPromise=new Promise(function(b){var f,a,T,G;
return _.B(function(p){switch(p.nextAddress){case 1:return f=window.AbortController?new window.AbortController:void 0,T=(a=f)==null?void 0:a.signal,G=!1,_.ML(p,2,3),f&&(A.abortTimeoutKey=A.jobManager.addLowPriorityJob(function(){f.abort()},Q||2E4)),p.yield(fetch("/generate_204",{method:"HEAD",
signal:T}),5);case 5:G=!0;case 3:_.KN(p);A.networkRequestPromise=void 0;A.abortTimeoutKey&&(A.jobManager.cancelJob(A.abortTimeoutKey),A.abortTimeoutKey=0);G!==A.isOnline&&(A.isOnline=G,A.isOnline?A.dispatchEvent("networkstatus-online"):A.dispatchEvent("networkstatus-offline"));b(G);_.Jo(p,0);break;case 2:_.Vw(p),G=!1,p.jumpTo(3)}})})};var e_=function(){_.IH.call(this);var A=this;this.shouldFlushErrors=!1;gP.instance||(gP.instance=new gP(_.j7));this.sharedNetworkStatusManager=gP.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(A.shouldFlushErrors&&_.K("offline_error_handling")){var Q=J8Y().get("errors",!0);if(Q){for(var b in Q)if(Q[b]){var f=new _.IO(b,"sent via offline_errors");f.name=Q[b].name;f.stack=Q[b].stack;f.level=Q[b].level;_.xQ(f)}J8Y().set("errors",{},2592E3,!0)}}})};
_.O(e_,_.IH);var F7x=function(){if(!e_.instance){var A=_.zV("yt.networkStatusManager.instance")||new e_;_.Al("yt.networkStatusManager.instance",A);e_.instance=A}return e_.instance};
_.d=e_.prototype;_.d.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.d.networkStatusHint=function(A){this.sharedNetworkStatusManager.isOnline=A};
_.d.getWindowStatus=function(){var A=window.navigator.onLine;return A===void 0?!0:A};
_.d.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.d.listen=function(A,Q){return this.sharedNetworkStatusManager.listen(A,Q)};
_.d.sendNetworkCheckRequest=function(A){A=TGL(this.sharedNetworkStatusManager,A);A.then(function(Q){_.K("use_cfr_monitor")&&Zg().requestComplete("generate_204",Q)});
return A};
e_.prototype.sendNetworkCheckRequest=e_.prototype.sendNetworkCheckRequest;e_.prototype.listen=e_.prototype.listen;e_.prototype.enableErrorFlushing=e_.prototype.enableErrorFlushing;e_.prototype.getWindowStatus=e_.prototype.getWindowStatus;e_.prototype.networkStatusHint=e_.prototype.networkStatusHint;e_.prototype.isNetworkAvailable=e_.prototype.isNetworkAvailable;e_.getInstance=F7x;_.uC=function(A){A=A===void 0?{}:A;_.IH.call(this);var Q=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=F7x();var b=_.zV("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);b&&(A.rateLimit?(this.rateLimit=A.rateLimit,b("networkstatus-online",function(){GL$(Q,"publicytnetworkstatus-online")}),b("networkstatus-offline",function(){GL$(Q,"publicytnetworkstatus-offline")})):(b("networkstatus-online",function(){Q.dispatchEvent("publicytnetworkstatus-online")}),b("networkstatus-offline",
function(){Q.dispatchEvent("publicytnetworkstatus-offline")})))};
_.O(_.uC,_.IH);_.uC.prototype.isNetworkAvailable=function(){var A=_.zV("yt.networkStatusManager.instance.isNetworkAvailable");return A?A.bind(this.nsmInstance)():!0};
_.uC.prototype.networkStatusHint=function(A){var Q=_.zV("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);Q&&Q(A)};
_.uC.prototype.sendNetworkCheckRequest=function(A){var Q=this,b;return _.B(function(f){b=_.zV("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(Q.nsmInstance);return _.K("skip_network_check_if_cfr")&&Zg().isEndpointCFR("generate_204")?f.return(new Promise(function(a){var T;Q.networkStatusHint(((T=window.navigator)==null?void 0:T.onLine)||!0);a(Q.isNetworkAvailable())})):b?f.return(b(A)):f.return(!0)})};
var GL$=function(A,Q){A.rateLimit?A.lastJobTime?(_.j7.cancelJob(A.schedulerJob),A.schedulerJob=_.j7.addLowPriorityJob(function(){A.lastPublicSignalSent!==Q&&(A.dispatchEvent(Q),A.lastPublicSignalSent=Q,A.lastJobTime=(0,_.f4)())},A.rateLimit-((0,_.f4)()-A.lastJobTime))):(A.dispatchEvent(Q),A.lastPublicSignalSent=Q,A.lastJobTime=(0,_.f4)()):A.dispatchEvent(Q)};var I3W,hV=function(){j_.call(this,{logsStore:{cleanLogsStore:TFW,deleteRequest:a3b,getMostRecentByStatus:QPJ,markAsQueued:b0y,resetRequest:f3b,set:A8A},networkManager:_.H04(),handleError:function(A,Q,b){var f,a=b==null?void 0:(f=b.error)==null?void 0:f.code;if(a===400||a===415){var T;A=new _.IO(A.message,Q,b==null?void 0:(T=b.error)==null?void 0:T.code);_.wN(A,void 0,void 0,void 0,!0)}else _.xQ(A)},
handleWarning:_.wN,sendFn:nzX,now:_.f4,writeError:VMy,jobManager:_.Rc(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.GP("potential_esf_error_limit",10),getBooleanFlag:_.K,disableYtIdbTransactions:!(_.kR()&&_.CeA())});this.initializationPromise=new _.Mj;_.K("networkless_immediately_drop_all_requests")&&d7y();$eA("LogsDatabaseV2")};
_.O(hV,j_);_.pR$=function(){var A=_.zV("yt.networklessRequestController.instance");A||(A=new hV,_.Al("yt.networklessRequestController.instance",A),_.K("networkless_logging")&&_.Q7().then(function(Q){A.databaseToken=Q;Qi1(A);A.initializationPromise.resolve();A.enableCleaning&&Math.random()<=A.cleaningRate&&A.databaseToken&&BFF(A.databaseToken);_.K("networkless_immediately_drop_sw_health_store")&&BGN(A)}));
return A};
hV.prototype.writeThenSend=function(A,Q){Q||(Q={});Q=key(A,Q);_.kR()||(this.initialized=!1);j_.prototype.writeThenSend.call(this,A,Q)};
hV.prototype.sendThenWrite=function(A,Q,b){Q||(Q={});Q=key(A,Q);_.kR()||(this.initialized=!1);j_.prototype.sendThenWrite.call(this,A,Q,b)};
hV.prototype.sendAndWrite=function(A,Q){Q||(Q={});Q=key(A,Q);_.kR()||(this.initialized=!1);j_.prototype.sendAndWrite.call(this,A,Q)};
hV.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var BGN=function(A){var Q;_.B(function(b){if(!A.databaseToken)throw Q=Eo("clearSWHealthLogsDb"),Q;return b.return(p8b(A.databaseToken).catch(function(f){A.handleError(f)}))})};_.oz6=!1;_.qGA=_.by.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.oz6};_.Al("ytNetworklessLoggingInitializationOptions",_.qGA);var ro=function(A){var Q=this;this.config_=null;A?this.config_=A:T6U()&&(this.config_=_.Tp());_.Hv(_.j7,function(){YcU(Q)},5E3)};
ro.prototype.isReady=function(){!this.config_&&T6U()&&(this.config_=_.Tp());return!!this.config_};
var yu4=function(A,Q,b,f){!_.vG("VISITOR_DATA")&&Q!=="visitor_id"&&Math.random()<.01&&_.wN(new _.IO("Missing VISITOR_DATA when sending innertube request.",Q,b,f));if(!A.isReady()){var a=new _.IO("innertube xhrclient not ready",Q,b,f);_.xQ(a);throw a;}var T={headers:f.headers||{},method:"POST",postParams:b,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()},
onFetchTimeout:f.onTimeout,onSuccess:function(M,l){if(f.onSuccess)f.onSuccess(l)},
onFetchSuccess:function(M){if(f.onSuccess)f.onSuccess(M)},
onProgress:function(M){if(f.onProgress)f.onProgress(M)},
onError:function(M,l){if(f.onError)f.onError(l)},
onFetchError:function(M){if(f.onError)f.onError(M)},
timeout:f.timeout,withCredentials:!0,compress:f.compress};T.headers["Content-Type"]||(T.headers["Content-Type"]="application/json");var G="";(a=A.config_.innertubeHostOverride)&&(G=a);var p=A.config_.innertubeUseThirdPartyAuth||!1,P=_.VL6(p,G,f);Object.assign(T.headers,P);T.headers.Authorization&&!G&&p&&(T.headers["x-origin"]=window.location.origin);var U=_.DR(G+("/youtubei/"+A.config_.innertubeApiVersion+"/"+Q),{alt:"json"}),L=function(M){M=M===void 0?!1:M;var l;if(f.retry&&G!="www.youtube-nocookie.com"&&
(M||_.K("skip_ls_gel_retry")||T.headers["Content-Type"]!=="application/json"||(l=usJ(Q,b,P,p)),l)){var J=T.onSuccess,n=T.onFetchSuccess;T.onSuccess=function(e,x){ZcW(l);J(e,x)};
b.onFetchSuccess=function(e,x){ZcW(l);n(e,x)}}try{if(M&&f.retry&&!f.networklessOptions.bypassNetworkless)T.method="POST",f.networklessOptions.writeThenSend?_.pR$().writeThenSend(U,T):_.pR$().sendAndWrite(U,T);
else if(f.compress){var t=!f.networklessOptions.writeThenSend;if(T.postBody){var g=T.postBody;typeof g!=="string"&&(g=JSON.stringify(T.postBody));gli(U,g,T,_.MQ,t)}else gli(U,JSON.stringify(T.postParams),T,cQi,t)}else _.K("web_all_payloads_via_jspb")?_.MQ(U,T):cQi(U,T)}catch(e){if(e.name==="InvalidAccessError")l&&(ZcW(l),l=0),_.wN(Error("ed"));else throw e;}l&&_.Hv(_.j7,function(){YcU(A)},5E3)};
_.tMi()?cHY().then(function(M){L(M)}):L(!1)};var Rke=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Rke,_.fp);var Php=0,jP9=_.Le?"webkit":_.U2?"moz":_.S1?"ms":JJU?"o":"";_.Al("ytDomDomGetNextId",_.zV("ytDomDomGetNextId")||function(){return++Php});var XRj={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},Q_=function(A){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(A=
A||window.event){this.event=A;for(var Q in A)Q in XRj||(this[Q]=A[Q]);this.scale=A.scale;this.rotation=A.rotation;var b=A.target||A.srcElement;b&&b.nodeType==3&&(b=b.parentNode);this.target=b;var f=A.relatedTarget;if(f)try{f=f.nodeName?f:null}catch(a){f=null}else this.type=="mouseover"?f=A.fromElement:this.type=="mouseout"&&(f=A.toElement);this.relatedTarget=f;this.clientX=A.clientX!=void 0?A.clientX:A.pageX;this.clientY=A.clientY!=void 0?A.clientY:A.pageY;this.keyCode=A.keyCode?A.keyCode:A.which;
this.charCode=A.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=A.altKey;this.ctrlKey=A.ctrlKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pageX_=A.pageX;this.pageY_=A.pageY}}catch(a){}},SvM=function(A){if(document.body&&document.documentElement){var Q=document.body.scrollTop+document.documentElement.scrollTop;
A.pageX_=A.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);A.pageY_=A.clientY+Q}};
Q_.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Q_.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Q_.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Aq=_.by.ytEventsEventsListeners||{};_.Al("ytEventsEventsListeners",Aq);var vzy=_.by.ytEventsEventsCounter||{count:0};_.Al("ytEventsEventsCounter",vzy);var Ez4=_.kE(function(){var A=!1;try{var Q=Object.defineProperty({},"capture",{get:function(){A=!0}});
window.addEventListener("test",null,Q)}catch(b){}return A});_.BD(fu,_.k$);fu.prototype.onMouseMove_=function(A){A.pageX_===void 0&&SvM(A);var Q=A.pageX_;A.pageY_===void 0&&SvM(A);this.position_=new _.gQ(Q,A.pageY_)};
fu.prototype.checkPosition_=function(){if(this.position_){var A=(0,_.f4)();if(this.previousTime_!=0){var Q=this.previousPosition_,b=this.position_,f=Q.x-b.x;Q=Q.y-b.y;f=Math.sqrt(f*f+Q*Q)/(A-this.previousTime_);this.cycles_[this.index_]=Math.abs((f-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(b=Q=0;b<4;b++)Q+=this.cycles_[b]||0;Q>=3&&this.callback_();this.previousVelocity_=f}this.previousTime_=A;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
fu.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.x7F(this.mouseListenerKey_)};var upC={};var mM4=new _.fU("rawColdConfigGroup");var sYA=new _.fU("rawHotConfigGroup");var UWL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(UWL,_.fp);var j14=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(j14,_.fp);var I4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A,500)};
_.O(I4,_.fp);I4.prototype.getPayloadCase=function(){return _.Ce(this,L7v)};
I4.prototype.getContext=function(){return _.dO(this,j14,33)};
var L7v=[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,527];var ZEU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(ZEU,_.fp);var VlA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(VlA,_.fp);VlA.prototype.setVideoId=function(A){return lv(this,1,OEW,SF(A))};
VlA.prototype.getPlaylistId=function(){return _.Mu(this,Ot(this,OEW,2))};
var OEW=[1,2];var Eof=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Eof,_.fp);Eof.prototype.getContext=function(){return _.dO(this,Ku,1)};
Eof.prototype.getTier=function(){return _.e1(this,7)};var MUx,GD,Bv;MUx=_.by.ytPubsubPubsubInstance||new _.KJ;GD=_.by.ytPubsubPubsubSubscribedKeys||{};Bv=_.by.ytPubsubPubsubTopicToKeys||{};_.Z0b=_.by.ytPubsubPubsubIsSynchronous||{};_.KJ.prototype.subscribe=_.KJ.prototype.subscribe;_.KJ.prototype.unsubscribeByKey=_.KJ.prototype.unsubscribeByKey;_.KJ.prototype.publish=_.KJ.prototype.publish;_.KJ.prototype.clear=_.KJ.prototype.clear;_.Al("ytPubsubPubsubInstance",MUx);_.Al("ytPubsubPubsubTopicToKeys",Bv);_.Al("ytPubsubPubsubIsSynchronous",_.Z0b);
_.Al("ytPubsubPubsubSubscribedKeys",GD);var Pv=window;var WB=_.K("web_enable_lifecycle_monitoring")&&NFA()!==0,ly1=_.K("web_enable_lifecycle_monitoring");var K7x=function(A){var Q=this;var b=b===void 0?0:b;var f=f===void 0?_.Rc():f;this.JSC$10789_defaultPriority=b;this.scheduler=f;this.completedResolver=new _.Mj;this.scheduledPayloads=A;for(A={i$jscomp$487:0};A.i$jscomp$487<this.scheduledPayloads.length;A={payload$jscomp$19:void 0,i$jscomp$487:A.i$jscomp$487},A.i$jscomp$487++)A.payload$jscomp$19=this.scheduledPayloads[A.i$jscomp$487],b=function(a){return function(){a.payload$jscomp$19.job();Q.scheduledPayloads[a.i$jscomp$487].processed=!0;Q.scheduledPayloads.every(function(T){return T.processed===
!0})&&Q.completedResolver.resolve()}}(A),f=this.getPriority(A.payload$jscomp$19),f=this.scheduler.addJob(b,f),this.scheduledPayloads[A.i$jscomp$487]=Object.assign({},A.payload$jscomp$19,{job:b,
jobId:f})};
K7x.prototype.flushJobs=function(){var A=this,Q=Array.from(this.scheduledPayloads.keys()).sort(function(f,a){return A.getPriority(A.scheduledPayloads[a])-A.getPriority(A.scheduledPayloads[f])});
Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=this.scheduledPayloads[b.value],b.jobId===void 0||b.processed||(this.scheduler.cancelJob(b.jobId),this.scheduler.addJob(b.job,10))};
K7x.prototype.cancel=function(){for(var A=_.F(this.scheduledPayloads),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.jobId===void 0||Q.processed||this.scheduler.cancelJob(Q.jobId),Q.processed=!0;this.completedResolver.resolve()};
K7x.prototype.getPriority=function(A){var Q;return(Q=A.priority)!=null?Q:this.JSC$10789_defaultPriority};var vB=function(A){this.state=A;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};WB&&sPC(this.state)};
vB.prototype.install=function(A){this.plugins.push(A);return this};
vB.prototype.uninstall=function(){var A=this;_.E$.apply(0,arguments).forEach(function(Q){Q=A.plugins.indexOf(Q);Q>-1&&A.plugins.splice(Q,1)})};
vB.prototype.transition=function(A,Q){var b=this;WB&&m79(this.state);var f=this.transitions.find(function(T){return Array.isArray(T.from)?T.from.find(function(G){return G===b.state&&T.to===A}):T.from===b.state&&T.to===A});
if(f){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);i1v(this,A,Q);this.state=A;WB&&sPC(this.state);f=f.action.bind(this);var a=this.plugins.filter(function(T){return T[A]}).map(function(T){return T[A]});
f(Jxr(this,a),Q)}else throw Error("fd`"+this.state+"`"+A);};
var Jxr=function(A,Q){var b=Q.filter(function(a){return VUj(A,a)===10}),f=Q.filter(function(a){return VUj(A,a)!==10});
return A.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var a=_.E$.apply(0,arguments);return _.B(function(T){if(T.nextAddress==1)return T.yield(A.runImmediateJobsAsync.apply(A,[b].concat(_.ri(a))),2);A.setJobSetWithScheduledJobs.apply(A,[f].concat(_.ri(a)));_.Oi(T)})}:function(){var a=_.E$.apply(0,arguments);
A.runImmediateJobsSync.apply(A,[b].concat(_.ri(a)));A.setJobSetWithScheduledJobs.apply(A,[f].concat(_.ri(a)))}};
vB.prototype.runImmediateJobsSync=function(A){var Q=_.E$.apply(1,arguments);_.Rc();for(var b=_.F(A),f=b.next(),a={};!f.done;a={lifecycle$jscomp$2:void 0},f=b.next())a.lifecycle$jscomp$2=f.value,U4(function(T){return function(){O1v(T.lifecycle$jscomp$2.name);QY6(function(){return T.lifecycle$jscomp$2.callback.apply(T.lifecycle$jscomp$2,_.ri(Q))});
E1(T.lifecycle$jscomp$2.name)}}(a))};
vB.prototype.runImmediateJobsAsync=function(A){var Q=_.E$.apply(1,arguments),b,f,a,T;return _.B(function(G){G.nextAddress==1&&(_.Rc(),b=_.F(A),f=b.next(),a={});if(G.nextAddress!=3){if(f.done)return G.jumpTo(0);a.lifecycle$jscomp$3=f.value;a.asyncJobCompletion=void 0;T=function(p){return function(){O1v(p.lifecycle$jscomp$3.name);var P=QY6(function(){return p.lifecycle$jscomp$3.callback.apply(p.lifecycle$jscomp$3,_.ri(Q))});
slC(P)?p.asyncJobCompletion=_.K("web_lifecycle_error_handling_killswitch")?P.then(function(){E1(p.lifecycle$jscomp$3.name)}):P.then(function(){E1(p.lifecycle$jscomp$3.name)},function(U){AfJ(U);
E1(p.lifecycle$jscomp$3.name)}):E1(p.lifecycle$jscomp$3.name)}}(a);
U4(T);return a.asyncJobCompletion?G.yield(a.asyncJobCompletion,3):G.jumpTo(3)}a={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};f=b.next();return G.jumpTo(2)})};
vB.prototype.setJobSetWithScheduledJobs=function(A){var Q=_.E$.apply(1,arguments),b=this,f=A.map(function(a){return{job:function(){O1v(a.name);QY6(function(){return a.callback.apply(a,_.ri(Q))});
E1(a.name)},
priority:VUj(b,a)}});
f.length&&(this.jobSet=new K7x(f))};
var VUj=function(A,Q){var b,f;return(f=(b=A.overridePriority)!=null?b:Q.priority)!=null?f:0},O1v=function(A){WB&&A&&sPC(A)},E1=function(A){WB&&A&&m79(A)},i1v=function(A,Q,b){ly1&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+A.constructor.name+"] '"+A.state+"' to '"+Q+"'"),console.log("with message: ",b),console.groupEnd())};
_.Qr.Object.defineProperties(vB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var nfY=function(A){vB.call(this,A===void 0?"none":A);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(){}}]},kLy;
_.O(nfY,vB);nfY.prototype.runApplicationNavigationBegin=function(A,Q){var b=this;this.navigationTimer=_.Hv(_.j7,function(){b.currentState==="application_navigating"&&b.transition("none")},5E3);
A(Q==null?void 0:Q.event)};
nfY.prototype.runApplicationNavigationEnd=function(A,Q){this.navigationTimer&&(_.j7.cancelJob(this.navigationTimer),this.navigationTimer=null);A(Q==null?void 0:Q.event)};
_.N_i=function(){kLy||(kLy=new nfY);return kLy};var $MX=[];_.Al("yt.logging.transport.getScrapedGelPayloads",function(){return $MX});var Xd=function(){var A=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return A.totalEntries}}};
Xd.prototype.storePayload=function(A,Q){A=bEU(A);this.store[A]?this.store[A].push(Q):(this.memoizedKeySequences={},this.store[A]=[Q]);this.totalEntries++;_.K("more_accurate_gel_parser")&&(Q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(Q));return A};
Xd.prototype.smartExtractMatchingEntries=function(A){if(!A.keys.length)return[];for(var Q=IyL(this,A.keys.splice(0,1)[0]),b=[],f=0;f<Q.length;f++)this.store[Q[f]]&&A.sizeLimit&&(this.store[Q[f]].length<=A.sizeLimit?(b.push.apply(b,_.ri(this.store[Q[f]])),delete this.store[Q[f]]):b.push.apply(b,_.ri(this.store[Q[f]].splice(0,A.sizeLimit))));this.totalEntries-=b.length;(A==null?0:A.sizeLimit)&&b.length<(A==null?void 0:A.sizeLimit)&&(A.sizeLimit-=b.length,b.push.apply(b,_.ri(this.smartExtractMatchingEntries(A))));
return b};
Xd.prototype.extractMatchingEntries=function(A){A=IyL(this,A);for(var Q=[],b=0;b<A.length;b++)this.store[A[b]]&&(Q.push.apply(Q,_.ri(this.store[A[b]])),delete this.store[A[b]]);this.totalEntries-=Q.length;return Q};
Xd.prototype.getSequenceCount=function(A){A=IyL(this,A);for(var Q=0,b=0;b<A.length;b++){var f=void 0;Q+=((f=this.store[A[b]])==null?void 0:f.length)||0}return Q};
var IyL=function(A,Q){var b=bEU(Q);if(A.memoizedKeySequences[b])return A.memoizedKeySequences[b];var f=Object.keys(A.store)||[];if(f.length<=1&&bEU(Q)===f[0])return f;for(var a=[],T=0;T<f.length;T++){var G=f[T].split("/");if(H1y(Q.auth,G[0])){var p=Q.isJspb;H1y(p===void 0?"undefined":p?"true":"false",G[1])&&H1y(Q.cttAuthInfo,G[2])&&(p=Q.tier,p=p===void 0?"undefined":JSON.stringify(p),H1y(p,G[3])&&a.push(f[T]))}}return A.memoizedKeySequences[b]=a},H1y=function(A,Q){return A===void 0||A==="undefined"?
!0:A===Q};
Xd.prototype.getSequenceCount=Xd.prototype.getSequenceCount;Xd.prototype.extractMatchingEntries=Xd.prototype.extractMatchingEntries;Xd.prototype.smartExtractMatchingEntries=Xd.prototype.smartExtractMatchingEntries;Xd.prototype.storePayload=Xd.prototype.storePayload;var rfy,ooy,jYU,Lu,ChK,fbb,b6e,q4W,Cci,Mli,tlU,Y49,kZY;rfy=_.GP("initial_gel_batch_timeout",2E3);ooy=_.GP("gel_queue_timeout_max_ms",6E4);jYU=_.GP("gel_min_batch_size",5);Lu=void 0;ChK=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
fbb=new ChK;b6e=new ChK;q4W=new ChK;Cci=new ChK;tlU=!0;Y49=1;_.yfF=new Map;kZY=_.by.ytLoggingTransportTokensToCttTargetIds_||{};_.Al("ytLoggingTransportTokensToCttTargetIds_",kZY);var noW=_.by.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Al("ytLoggingTransportTokensToJspbCttTargetIds_",noW);var Ut={};var o4=_.by.ytLoggingGelSequenceIdObj_||{};_.Al("ytLoggingGelSequenceIdObj_",o4);var dIy=[];var KmU=new Set,PJ6=0,O6y=0,VJf=0,ShA=[],XLJ=[],nsX=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var hQy=function(){};
hQy.prototype.getUrl=function(A,Q){Q=Q===void 0?!1:Q;return A.hasOwnProperty("shareEndpoint")?null:_.CJ4(A,null,Q)};
var yBY=function(A,Q,b){A={endpoint:Q,actions:[]};b=(b.path?b.path[0]:b.target).icon||"";Q=b.indexOf(":");Q>0&&(b=b.substr(Q+1));b&&A.actions.push(b);return A};var RQA=/Command$/,j$y=/Endpoint$/,os4=new Map;var qvy,ofj;qvy=1;_.Yk=function(){this.actionRoutingMap=new Map};
_.Yk.prototype.triggerAction=function(A){var Q=new P_4(A,!1,_.E$.apply(1,arguments));this.handleAction(Q);return Q.returnValue};
_.Yk.prototype.triggerOptionalAction=function(A){var Q=new P_4(A,!0,_.E$.apply(1,arguments));this.handleAction(Q);return Q.returnValue};
_.x4=function(A,Q,b){Q.forEach(function(f){var a=ry9(f);a&&A.triggerOptionalAction(a,f,b,void 0)})};
_.Yk.prototype.handleAction=function(A){var Q=this.actionRoutingMap.get(A.actionName);Q&&ofj(A,Q);A.optionalAction||A.returnValue.length!==0||(A=new _.IO("Unhandled action",A.actionName),_.wN(A))};
ofj=function(A,Q){Q.forEach(function(b){var f=null;b?f=b.apply(null,A.args):(b=Error("gd"),b.params=A.actionName,_.xQ(b));A.returnValue.push(f)})};
_.Dl=function(A,Q,b){b||(b=qvy++);for(var f=_.F(Object.keys(Q)),a=f.next();!a.done;a=f.next()){a=a.value;var T=A.actionRoutingMap.get(a);T||(T=new Map,A.actionRoutingMap.set(a,T));A.registerActionHandler(b,a,Q[a],T)}return b};
_.Yk.prototype.registerActionHandler=function(A,Q,b,f){f.set(A,_.cG(b))};
_.$k=function(A,Q,b){Q=_.F(Object.keys(Q));for(var f=Q.next();!f.done;f=Q.next())(f=A.actionRoutingMap.get(f.value))&&f.delete(b)};
_.FY(_.Yk);var Ese=function(A,Q){var b=_.Yk.getInstance();_.tz(function(){var f={},a=_.Dl(b,(f[A]=Q,f));_.Cz(function(){var T={};_.$k(b,(T[A]="",T),a)})})};var jqe=Symbol("id");yjY=nfy;var bSJ=new Set(["For","If","Match","Watch"]),tUL={},rx1=(tUL[eB.default]=function(){return EwX},tUL.style=function(){return EwX},tUL),jiW;
for(jiW in rx1)Qd.attributes[jiW]=rx1[jiW](Qd.attributes[jiW]);var aN=new _.TS("VISIBILITY_OBSERVER");var Xi4={retrieve:function(A){return this.id.\u0275prov.token===A.\u0275prov.token?this.contextValue:this?_.sO(this,this.id):Jl9}};var hEJ=function(A,Q,b){if(A!==Aj)return!1;A=$I6(document.createElement("div"),function(){var f=a8(!1);try{b[0]()}finally{a8(f)}});
A=Array.from(A.childNodes);A.length===1&&(A=A[0]);return A};var RzL=function(A){A=A.clone();f1j(A);HX(A,"dg",null);HX(A,"d","0");mq1(A,null);A$x(A,null);return A},gfM=!0,ezL=function(A,Q,b){var f=b===void 0?{}:b;
b=f.cssRowKey===void 0?void 0:f.cssRowKey;var a=f.combinedSignature===void 0?void 0:f.combinedSignature;var T=f.extraEdges===void 0?void 0:f.extraEdges;f=f.callback===void 0?void 0:f.callback;HX(A,"m",Q.join(","));T&&bJp(A,T);b&&(HX(A,"ck",b),a?HX(A,"rs",a):gfM&&(gfM=!1));if(f){if(f!=null&&!dQM.test(f))throw Error("Xa`"+f);HX(A,"cb",f)}A=A.toString();_.TX(A,"/")&&(A=R7W(document.location.href)+A);return _.k8(A)};var W7W=function(A){return hzp(A).then(function(Q){return JSON.parse(Q.responseText)})},hzp=function(A){var Q={},b=Q.xmlHttpFactory?Q.xmlHttpFactory.createInstance():V2Y.createInstance();
return(new _.M3(function(f,a){var T;try{b.open("GET",A,!0)}catch(P){a(new cB("Error opening XHR: "+P.message,A,b))}b.onreadystatechange=function(){if(b.readyState==4){_.by.clearTimeout(T);var P;!(P=J3v(b.status))&&(P=b.status===0)&&(P=jtx(A),P=!(P=="http"||P=="https"||P==""));P?f(b):a(new vf$(b.status,A,b))}};
b.onerror=function(){a(new cB("Network error",A,b))};
if(Q.headers)for(var G in Q.headers){var p=Q.headers[G];p!=null&&b.setRequestHeader(G,p)}Q.withCredentials&&(b.withCredentials=Q.withCredentials);Q.responseType&&(b.responseType=Q.responseType);Q.mimeType&&b.overrideMimeType(Q.mimeType);Q.timeoutMs>0&&(T=_.by.setTimeout(function(){b.onreadystatechange=function(){};
b.abort();a(new EfL(A,b))},Q.timeoutMs));
try{b.send(null)}catch(P){b.onreadystatechange=function(){},_.by.clearTimeout(T),a(new cB("Error sending XHR: "+P.message,A,b))}})).thenCatch(function(f){f instanceof _.Zh&&b.abort();
throw f;})},cB=function(A,Q,b){_.A4.call(this,A+", url="+Q);
this.url=Q;this.xhr=b};
_.BD(cB,_.A4);cB.prototype.name="XhrError";var vf$=function(A,Q,b){cB.call(this,"Request Failed, status="+A,Q,b);this.status=A};
_.BD(vf$,cB);vf$.prototype.name="XhrHttpError";var EfL=function(A,Q){cB.call(this,"Request timed out",A,Q)};
_.BD(EfL,cB);EfL.prototype.name="XhrTimeoutError";dA=dA||{};var zS=function(){_.k$.call(this)};
_.BD(zS,_.k$);zS.prototype.initialize=function(){};var xWx=function(A,Q){this.fn_=A;this.handler_=Q};
xWx.prototype.execute=function(A){this.fn_&&(this.fn_.call(this.handler_||null,A),this.fn_=this.handler_=null)};
xWx.prototype.abort=function(){this.handler_=this.fn_=null};var wP=function(A,Q){_.k$.call(this);this.deps_=A;this.JSC$10916_id_=Q;this.onloadCallbacks_=[];this.JSC$10916_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.BD(wP,_.k$);wP.prototype.moduleConstructor_=zS;wP.prototype.module_=null;wP.prototype.getId=function(){return this.JSC$10916_id_};
wP.prototype.registerCallback=function(A,Q){return cxN(this.onloadCallbacks_,A,Q)};
var zzv=function(A,Q){cxN(A.JSC$10916_onErrorCallbacks_,Q)},cxN=function(A,Q,b){Q=new xWx(Q,b);
A.push(Q);return Q};
wP.prototype.isLoaded=function(){return!!this.module_};
wP.prototype.onLoad=function(A){var Q=new this.moduleConstructor_;Q.initialize(A());this.module_=Q;Q=(Q=wRN(this.earlyOnloadCallbacks_,A()))||wRN(this.onloadCallbacks_,A());Q||(this.JSC$10916_onErrorCallbacks_.length=0);return Q};
wP.prototype.onError=function(A){(A=wRN(this.JSC$10916_onErrorCallbacks_,A))&&fF(Error("md`"+A));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var wRN=function(A,Q){for(var b=[],f=0;f<A.length;f++)try{A[f].execute(Q)}catch(a){fF(a),b.push(a)}A.length=0;return b.length?b:null};
wP.prototype.disposeInternal=function(){wP.superClass_.disposeInternal.call(this);_.AT(this.module_)};var uMM,NGL,DWr,$WK,yxL,Yv$,bDy,AQv,QFL;
_.ZQ=function(A,Q,b,f,a){f=f===void 0?!1:f;a=a===void 0?!1:a;var T=T===void 0?!0:T;this.scsReferenceUrl_=zbW(_.IT(A).toString(),T);this.cssRowKey_=Q;this.combinedSignature_=b;this.useNegativeLoading_=f;this.requestedModuleMap_={};this.JSC$10919_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(A=Ij(this.scsReferenceUrl_,"excm"))?A.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;wE6();_.uI(this,QOY(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
uMM=function(A,Q){if(Q.href||Q.getAttribute("data-href"))if(Q=Q.href||Q.getAttribute("data-href"),vTe(Q)&&!zbW(Q).urlPrefix_.endsWith("_/js/")){Q=QOY(zbW(Q));Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,A.loadedCssModuleList_.includes(b)||A.loadedCssModuleList_.push(b)}};
_.ZQ.prototype.JSC$10921_loadModules=function(A,Q,b){var f=b===void 0?{}:b;b=f.extraEdges;var a=f.onError;var T=f.onSuccess;f=f.forceReload;this.JSC$10919_moduleInfoMap_=Q;if(!A)throw Error("nd");if(this.shouldScanForCss_){Q=_.F(document.getElementsByTagName("style"));for(var G=Q.next();!G.done;G=Q.next())uMM(this,G.value);Q=_.F(document.getElementsByTagName("link"));for(G=Q.next();!G.done;G=Q.next())uMM(this,G.value)}Z1p(this,yxL(this,A),b,a,T,f)};
var Z1p=function(A,Q,b,f,a,T){f=f===void 0?function(){}:f;
a=a===void 0?function(){}:a;
T=T===void 0?!1:T;Yv$(A,Q,function(G,p,P){P=P===void 0?p:P;A.enableFallbackFetch&&T?A.loadWithFetch(G,p,f,a,P):A.load(G,p,f,a,P,b)},b)||f(-1)};
_.ZQ.prototype.loadWithFetch=function(){_.B(function(){throw Error("od");})};
_.ZQ.prototype.maybeSetAdditionalFields=function(){};
NGL=function(A,Q,b){if(A.useNegativeLoading_){var f=A.scsReferenceUrl_;A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,extraEdges:b,requestedModuleIds:DWr(A),requestedCssModuleIds:$WK(A)};var a=A===void 0?{}:A;A=a.requestedModuleIds===void 0?[]:a.requestedModuleIds;b=a.requestedCssModuleIds===void 0?[]:a.requestedCssModuleIds;var T=a.cssRowKey===void 0?void 0:a.cssRowKey;var G=a.combinedSignature===void 0?void 0:a.combinedSignature;var p=a.extraEdges===void 0?void 0:a.extraEdges;
a=a.callback===void 0?void 0:a.callback;f=RzL(f);HX(f,"d","1");mq1(f,A);A$x(f,b);Q=ezL(f,Q,{cssRowKey:T,combinedSignature:G,extraEdges:p,callback:a})}else f=A.scsReferenceUrl_,A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,requestedModuleIds:DWr(A),requestedCssModuleIds:$WK(A)},p=A===void 0?{}:A,A=p.requestedCssModuleIds===void 0?[]:p.requestedCssModuleIds,b=p.cssRowKey===void 0?void 0:p.cssRowKey,T=p.combinedSignature===void 0?void 0:p.combinedSignature,G=p.extraEdges===void 0?
void 0:p.extraEdges,p=p.callback===void 0?void 0:p.callback,f=RzL(f),A$x(f,A),Q=ezL(f,Q,{cssRowKey:b,combinedSignature:T,extraEdges:G,callback:p});return Q};
_.uI=function(A,Q){for(var b=!1,f=[],a=0;a<Q.length;++a){var T=Q[a];A.requestedModuleMap_[T]||(A.requestedModuleMap_[T]=!0,A.requestedModuleList_.push(T),b=!0,f.push(T))}b&&(A.requestedModuleListSorted_=!1)};
_.yZ=function(A,Q){for(var b=[],f=0;f<Q.length;++f){var a=Q[f];A.requestedModuleMap_[a]&&(delete A.requestedModuleMap_[a],_.Eb(A.requestedModuleList_,a),b.push(a))}};
_.ZQ.prototype.load=function(A,Q,b,f,a){a=a===void 0?Q:a;_.IT(A);var T=this.useCors_,G=this.corsMode_,p=this.fetchPriority,P=_.KK("SCRIPT");_.mw(P,A);T&&(P.crossOrigin=G);P.async=!1;p&&P.setAttribute("fetchpriority",p);_.uI(this,Q);_.si9(this,A,P,Q,b,f,a)};
_.si9=function(A,Q,b,f,a,T,G){G=G===void 0?f:G;A.lastScript_=b;A.insertPos.insertBefore(b,A.insertPos.firstChild);_.mWp(b,f,function(){b.parentElement.removeChild(b);A.lastScript_==b&&(A.lastScript_=null);var p=new Set;f.map(function(U){return p.add(U)});
for(var P in A.JSC$10919_moduleInfoMap_)A.JSC$10919_moduleInfoMap_[P].isLoaded()&&p.add(P);Array.from(p);T()},function(p){b.parentElement.removeChild(b);
A.lastScript_==b&&(A.lastScript_=null);_.yZ(A,p);A.pendingModuleGraphUpdate_?A.pendingModuleGraphUpdate_.then(function(){a(-1,Q)}):a(-1,Q)},G)};
_.mWp=function(A,Q,b,f,a){a=a===void 0?Q:a;var T=Q.length,G=function(){T=0;A.onload=null;A.onerror=null;p=function(){}},p=function(){G();
var U=a.filter(function(L){return!tT().getModuleInfo(L).isLoaded()});
U.length!==0?f(U,"Response was successful but was missing module(s) "+U+"."):b()},P=function(){T--;
T==0&&p()};
Q.forEach(function(U){U=tT().getModuleInfo(U);U.isLoaded()?P():(cxN(U.earlyOnloadCallbacks_,P),zzv(U,P))});
A.onload=function(){return p()};
A.onerror=function(){G();f(Q)}};
DWr=function(A){A.requestedModuleListSorted_||(A.requestedModuleListSorted_=!0,A.requestedModuleList_.sort());return A.requestedModuleList_};
$WK=function(A){A=A.loadedCssModuleList_;A.sort();return A};
yxL=function(A,Q){return Q.filter(function(b){return!A.requestedModuleMap_[b]})};
Yv$=function(A,Q,b,f){if(A.pendingModuleGraphUpdate_)return A.pendingModuleGraphUpdate_.then(function(){Yv$(A,Q,b,f)}),!0;
if(!A.useNegativeLoading_){var a=[],T=Object.assign({},A.requestedModuleMap_);AQv(A,Q,function(L){a.push(L.getId())},f,function(L){return!L.isLoaded()},T);
Q=a}for(T=0;T<Q.length;){for(var G=Q.length-T,p=T==0?Q:Q.slice(T,Q.length),P=NGL(A,p,f),U=_.IT(P).toString();U.length>A.urlMaxLength;)if(G>1)G-=Math.ceil((U.length-A.urlMaxLength)/6),G=Math.max(G,1),p=Q.slice(T,T+G),P=NGL(A,p,f),U=_.IT(P).toString();else return A.useNegativeLoading_?(A.useNegativeLoading_=!1,A.pendingModuleGraphUpdate_=QFL(A).then(function(L){bDy(A,L,f)}),Yv$(A,Q.slice(T),b,f)):!1;
T+=G;A.useNegativeLoading_?b(P,p):b(P,p,T===Q.length?Q:[])}return!0};
bDy=function(A,Q,b){tT().setAllModuleInfoString((Q||{}).moduleGraph);AQv(A,DWr(A),function(f){_.uI(A,[f.getId()])},b);
A.pendingModuleGraphUpdate_=null};
AQv=function(A,Q,b,f,a,T){T=T===void 0?{}:T;var G=tT();Q=_.F(Q);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;var P=G.getModuleInfo(p);if(!(T[p]||a&&!a(P))){T[p]=!0;var U=P.deps_||[];if(f){var L=[];f[p]&&(L=Object.keys(f[p]));U=U.concat(L)}AQv(A,U,b,f,a,T);b(P)}}};
QFL=function(A){A=A.scsReferenceUrl_.clone();f1j(A);HX(A,"dg",null);HX(A,"md","1");return W7W(A.toString())};var LPe=new Uint8Array(123);var fVN=[];var aVN=function(){this.JSC$9995_loader_=null};
_.d=aVN.prototype;_.d.setBatchModeEnabled=function(){};
_.d.setAllModuleInfoString=function(){};
_.d.addExtraEdge=function(){throw Error("pd");};
_.d.removeExtraEdge=function(){throw Error("qd");};
_.d.getModuleContext=function(){return null};
_.d.isActive=function(){return!1};
_.d.isUserActive=function(){return!1};
_.d.registerCallback=function(){};var Y4=function(A,Q,b,f,a){var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.name="ModuleLoadFailure";this.type=A;this.status=Q;this.requestedModuleIds=b;this.url=f;this.cause=a;this.message=this.toString()};
_.O(Y4,Error);Y4.prototype.toString=function(){return T29(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var T29=function(A){switch(A.type){case Y4.Type.UNAUTHORIZED:return"Unauthorized";case Y4.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Y4.Type.TIMEOUT:return"Timed out";case Y4.Type.OLD_CODE_GONE:return"Out of date module id";case Y4.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+A.type}};
dA.ModuleLoadFailure=Y4;dA.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var DQ=function(){this.moduleIds_=this.JSC$9995_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$10934_extraEdges_={};this.JSC$10934_callbackMap_={};this.JSC$10934_currentlyLoadingModule_=this.baseModuleInfo_=new wP([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new $p;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.BD(DQ,aVN);var dBL=function(A,Q){_.A4.call(this,"Error loading "+A+": "+Q)};
_.BD(dBL,_.A4);DQ.prototype.setBatchModeEnabled=function(A){this.batchModeEnabled_=A};
DQ.prototype.setAllModuleInfoString=function(A,Q){if(!(this instanceof DQ))this.setAllModuleInfoString(A,Q);else if(typeof A==="string"){if(A.startsWith("d$")){A=A.substring(2);for(var b=[],f=0,a=A.indexOf("/"),T=0,G=!1,p=0;;){var P=G?A.substring(T):A.substring(T,a);if(P.length===0)f++,T="sy"+f.toString(36),P=[];else{var U=P.indexOf(":");if(U<0)T=P,P=[];else if(U===P.length-1)T=P.substring(0,U),P=Array(b[p-1]);else{T=P.substring(0,U);P=P.substring(U+1).split(",");U=p;for(var L=0;L<P.length;L++)U-=
P[L].length===0?1:Number(P[L]),P[L]=b[U]}U=0;if(T.length===0)U=1;else if(T.charAt(0)==="+"||T.charAt(0)==="-")U=Number(T);U!==0&&(f+=U,T="sy"+f.toString(36))}b.push(T);FEM(this,T,P);if(G)break;T=a+1;a=A.indexOf("/",T);a===-1&&(G=!0);p++}this.moduleIds_=b}else if(A.startsWith("p$"))GoN(this,A);else{A=A.split("/");b=[];for(f=0;f<A.length;f++){p=A[f].split(":");a=p[0];G=[];if(p[1])for(G=p[1].split(","),p=0;p<G.length;p++)G[p]=b[parseInt(G[p],36)];b.push(a);FEM(this,a,G)}this.moduleIds_=b}Q&&Q.length?
(_.zX(this.loadingModuleIds_,Q),this.lastInitialModuleId_=_.rW(Q)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$10934_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$10934_currentlyLoadingModule_=null,(Q=this.baseModuleInfo_.onLoad((0,_.IL)(this.getModuleContext,this)))&&Q.length&&B2p(this,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,Q[0])),$4(this))}};
var GoN=function(A,Q){var b=Q.substring(2);for(Q=0;Q<64;Q++)LPe["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(Q)]=Q;var f={buf:b,pos:0};Fv(f);var a=Fv(f),T=Fv(f)+1;Q=Array(a);var G=Array(a),p=Array(a);T=Array(T);var P=0,U=0,L=f.pos,M=f.buf.indexOf("|",f.pos);f.pos=M+1;for(M=0;M<a;M++){var l=Fv(f),J=l&2,n=l&1;l>>>=2;n?(P+=l>>>1^-(l&1),l="sy"+P.toString(36)):(n=L,L+=l,l=b.substring(n,L));Q[M]=l;J&&(T[U++]=l)}T[U]="";f.pos++;U=a&-2;b=a&1;for(P=0;P<U;P+=2)L=MQb(f),p[P]=
L&7,p[P+1]=L>>>3&7;b&&(b=MQb(f),p[U]=b&7);f.pos++;for(U=0;U<a;U++)p[U]===7&&(p[U]=Fv(f));f.pos++;for(b=U=0;b<a;b++){P=p[b];L=P===0?fVN:Array(P);G[b]=L;M=U;for(J=0;J<P;J++)M-=Fv(f),L[J]=T[M];T[U]===Q[b]&&U++}for(f=0;f<Q.length;f++)FEM(A,Q[f],G[f]);A.moduleIds_=Q};
_.d=DQ.prototype;_.d.getModuleInfo=function(A){return this.moduleInfoMap[A]};
_.d.addExtraEdge=function(A,Q){var b=this.getModuleInfo(A);b&&b.isLoaded()?this.load(Q):(this.JSC$10934_extraEdges_[A]||(this.JSC$10934_extraEdges_[A]={}),this.JSC$10934_extraEdges_[A][Q]=!0)};
_.d.removeExtraEdge=function(A,Q){if(this.JSC$10934_extraEdges_[A]){delete this.JSC$10934_extraEdges_[A][Q];for(var b in this.JSC$10934_extraEdges_[A])return;delete this.JSC$10934_extraEdges_[A]}};
_.d.isActive=function(){return this.loadingModuleIds_.length>0};
_.d.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var $4=function(A){var Q=A.lastActive_,b=A.isActive();b!=Q&&(A.executeCallbacks_(b?"active":"idle"),A.lastActive_=b);Q=A.isUserActive();Q!=A.userLastActive_&&(A.executeCallbacks_(Q?"userActive":"userIdle"),A.userLastActive_=Q)},FEM=function(A,Q,b){A.moduleInfoMap[Q]?(A=A.moduleInfoMap[Q].deps_,A!=b&&A.splice.apply(A,[0,
A.length].concat(_.ri(b)))):A.moduleInfoMap[Q]=new wP(b,Q)},PiK=function(A,Q,b){var f=[];
HFe(Q,f);Q=[];for(var a={},T=0;T<f.length;T++){var G=f[T],p=A.getModuleInfo(G);if(!p)throw Error("rd`"+G);var P=new $p;a[G]=P;p.isLoaded()?P.callback(null):(pnY(A,G,p,!!b,P),A.isModuleLoading(G)||Q.push(G))}Q.length>0&&(A.loadingModuleIds_.length===0?A.loadModules_(Q):(A.requestedModuleIdsQueue_.push(Q),$4(A)));return a},pnY=function(A,Q,b,f,a){b.registerCallback(a.callback,a);
zzv(b,function(T){a.errback(new dBL(Q,T))});
A.isModuleLoading(Q)?f&&(Xny(A,Q),$4(A)):f&&Xny(A,Q)};
DQ.prototype.loadModules_=function(A,Q,b){var f=this;Q||(this.consecutiveFailures_=0);var a=SlN(this,A);this.loadingModuleIds_=a;this.requestedLoadingModuleIds_=this.batchModeEnabled_?A:_.xC(a);$4(this);if(a.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,a);if(Object.keys(this.JSC$10934_extraEdges_).length>0&&!this.JSC$9995_loader_.supportsExtraEdges)throw Error("sd");A=(0,_.IL)(this.JSC$9995_loader_.JSC$10921_loadModules,this.JSC$9995_loader_,_.xC(a),this.moduleInfoMap,
{extraEdges:this.JSC$10934_extraEdges_,forceReload:!!b,onError:function(T,G){var p=f.requestedLoadingModuleIds_;T=T!=null?T:void 0;f.consecutiveFailures_++;var P=_.xC(a);f.requestedLoadingModuleIds_=p;a.forEach(_.Ol(_.Eb,f.requestedModuleIds_),f);T==401?(B2p(f,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.UNAUTHORIZED,T)),f.requestedModuleIdsQueue_.length=0):T==410?(UBr(f,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.OLD_CODE_GONE,T)),LE9(f)):f.consecutiveFailures_>=3?(UBr(f,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
T,P,G)),LE9(f)):f.loadModules_(f.requestedLoadingModuleIds_,!0,T==8001||!1)},
onTimeout:(0,_.IL)(this.handleLoadTimeout_,this)});(Q=Math.pow(this.consecutiveFailures_,2)*5E3)?_.by.setTimeout(A,Q):A()}};
var SlN=function(A,Q){Q=Q.filter(function(a){return A.moduleInfoMap[a].isLoaded()?(_.by.setTimeout(function(){return Error("td`"+a)},0),!1):!0});
for(var b=[],f=0;f<Q.length;f++)b=b.concat(MTY(A,Q[f]));HFe(b);return!A.batchModeEnabled_&&b.length>1?(Q=b.shift(),A.requestedModuleIdsQueue_=b.map(function(a){return[a]}).concat(A.requestedModuleIdsQueue_),[Q]):b},MTY=function(A,Q){var b=_.j2.createSet(A.requestedModuleIds_),f=[];
b[Q]||f.push(Q);Q=[Q];for(var a=0;a<Q.length;a++)for(var T=A.getModuleInfo(Q[a]).deps_,G=T.length-1;G>=0;G--){var p=T[G];A.getModuleInfo(p).isLoaded()||b[p]||(f.push(p),Q.push(p))}f.reverse();HFe(f);return f};
DQ.prototype.JSC$10929_setLoaded=function(){if(this.JSC$10934_currentlyLoadingModule_){var A=this.JSC$10934_currentlyLoadingModule_.getId(),Q=[];if(this.JSC$10934_extraEdges_[A]){for(var b=_.F(Object.keys(this.JSC$10934_extraEdges_[A])),f=b.next();!f.done;f=b.next()){f=f.value;var a=this.getModuleInfo(f);a&&!a.isLoaded()&&(this.removeExtraEdge(A,f),Q.push(f))}this.loadMultiple(Q)}this.isDisposed()||((Q=this.moduleInfoMap[A].onLoad((0,_.IL)(this.getModuleContext,this)))&&Q.length&&B2p(this,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,Q[0])),_.Eb(this.userInitiatedLoadingModuleIds_,A),_.Eb(this.loadingModuleIds_,A),this.loadingModuleIds_.length===0&&LE9(this),this.lastInitialModuleId_&&A==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),$4(this),this.JSC$10934_currentlyLoadingModule_=null)}};
DQ.prototype.isModuleLoading=function(A){if(_.ve(this.loadingModuleIds_,A))return!0;for(var Q=0;Q<this.requestedModuleIdsQueue_.length;Q++)if(_.ve(this.requestedModuleIdsQueue_[Q],A))return!0;return!1};
DQ.prototype.load=function(A,Q){return PiK(this,[A],Q)[A]};
DQ.prototype.loadMultiple=function(A){return PiK(this,A)};
var Xny=function(A,Q){_.ve(A.userInitiatedLoadingModuleIds_,Q)||A.userInitiatedLoadingModuleIds_.push(Q)};
DQ.prototype.beforeLoadModuleCode=function(A){var Q=this;this.JSC$10934_currentlyLoadingModule_&&this.JSC$10934_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$10929_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[A]&&lVL(this,this.moduleInfoMap[A].deps_||[],function(b){b.module_=new zS;_.Eb(Q.loadingModuleIds_,b.getId())},function(b){return!b.isLoaded()});
this.JSC$10934_currentlyLoadingModule_=this.getModuleInfo(A)};
DQ.prototype.handleLoadTimeout_=function(){UBr(this,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.TIMEOUT));LE9(this)};
var UBr=function(A,Q){A.requestedLoadingModuleIds_.length>1?A.requestedModuleIdsQueue_=A.requestedLoadingModuleIds_.map(function(b){return[b]}).concat(A.requestedModuleIdsQueue_):B2p(A,Q)},B2p=function(A,Q){var b=A.requestedLoadingModuleIds_;
A.loadingModuleIds_.length=0;for(var f=[],a=0;a<A.requestedModuleIdsQueue_.length;a++){var T=A.requestedModuleIdsQueue_[a].filter(function(P){var U=MTY(this,P);return y7(b,function(L){return _.ve(U,L)})},A);
_.zX(f,T)}for(a=0;a<b.length;a++)_.OF9(f,b[a]);for(a=0;a<f.length;a++){for(T=0;T<A.requestedModuleIdsQueue_.length;T++)_.Eb(A.requestedModuleIdsQueue_[T],f[a]);_.Eb(A.userInitiatedLoadingModuleIds_,f[a])}if(a=A.JSC$10934_callbackMap_.error)for(T=0;T<a.length;T++)for(var G=a[T],p=0;p<f.length;p++)G("error",f[p],Q);for(f=0;f<b.length;f++)if(A.moduleInfoMap[b[f]])A.moduleInfoMap[b[f]].onError(Q);A.requestedLoadingModuleIds_.length=0;$4(A)},LE9=function(A){for(;A.requestedModuleIdsQueue_.length;){var Q=
A.requestedModuleIdsQueue_.shift().filter(function(b){return!this.getModuleInfo(b).isLoaded()},A);
if(Q.length>0){A.loadModules_(Q);return}}$4(A)};
DQ.prototype.registerCallback=function(A,Q){Array.isArray(A)||(A=[A]);for(var b=0;b<A.length;b++){var f=A[b],a=Q,T=this.JSC$10934_callbackMap_;T[f]||(T[f]=[]);T[f].push(a)}};
DQ.prototype.executeCallbacks_=function(A){for(var Q=this.JSC$10934_callbackMap_[A],b=0;Q&&b<Q.length;b++)Q[b](A)};
var lVL=function(A,Q,b,f,a){f=f===void 0?function(){return!0}:f;
a=a===void 0?{}:a;Q=_.F(Q);for(var T=Q.next();!T.done;T=Q.next()){T=T.value;var G=A.getModuleInfo(T);!a[T]&&f(G)&&(a[T]=!0,lVL(A,G.deps_||[],b,f,a),b(G))}};
DQ.prototype.dispose=function(){_.QO(_.j2.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$10934_callbackMap_={};this.isDisposed_=!0};
DQ.prototype.isDisposed=function(){return this.isDisposed_};
_.oL=function(){return new DQ};var KEL=[5E3,2E4],iDj=function(){this.JSC$9995_loader_=null;this.JSC$10942_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$10942_queue_=[];this.JSC$10942_extraEdges_=Object.create(null);this.JSC$10942_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.O(iDj,aVN);_.d=iDj.prototype;_.d.setAllModuleInfoString=function(){this.JSC$10942_currentlyLoadingModule_&&this.JSC$10942_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$10929_setLoaded()};
_.d.getModuleInfo=function(A){var Q=this.JSC$10942_moduleInfoMap_[A];Q||(Q=new wP([],A),this.JSC$10942_moduleInfoMap_[A]=Q);return Q};
_.d.addExtraEdge=function(A,Q){this.getModuleInfo(A).isLoaded()?this.load(Q):(this.JSC$10942_extraEdges_[A]||(this.JSC$10942_extraEdges_[A]={}),this.JSC$10942_extraEdges_[A][Q]=!0)};
_.d.removeExtraEdge=function(A,Q){if(this.JSC$10942_extraEdges_[A]){delete this.JSC$10942_extraEdges_[A][Q];for(var b in this.JSC$10942_extraEdges_[A])return;delete this.JSC$10942_extraEdges_[A]}};
_.d.isModuleLoading=function(A){return!!this.loadingModules_[A]};
_.d.load=function(A){JQK(this,[A]);return VTy(this,A)};
_.d.loadMultiple=function(A){var Q=this,b=Object.create(null),f=[];A.forEach(function(a){b[a]||(b[a]=VTy(Q,a),f.push(a))});
JQK(this,f);return b};
_.d.beforeLoadModuleCode=function(A){var Q;((Q=this.JSC$10942_currentlyLoadingModule_)==null?void 0:Q.getId())==="synthetic_module_overhead"&&this.JSC$10929_setLoaded();var b,f;ODY(this,(f=(b=this.JSC$10942_moduleInfoMap_[A])==null?void 0:b.deps_)!=null?f:[],function(a){a.module_=new zS},function(a){return!a.isLoaded()});
this.JSC$10942_currentlyLoadingModule_=this.getModuleInfo(A)};
_.d.JSC$10929_setLoaded=function(){if(this.JSC$10942_currentlyLoadingModule_){var A=this.JSC$10942_currentlyLoadingModule_.getId(),Q=[];if(this.JSC$10942_extraEdges_[A]){for(var b=_.F(Object.keys(this.JSC$10942_extraEdges_[A])),f=b.next();!f.done;f=b.next())f=f.value,this.getModuleInfo(f).isLoaded()||(this.removeExtraEdge(A,f),Q.push(f));this.loadMultiple(Q)}this.JSC$10942_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$10942_currentlyLoadingModule_=null;(!this.isModuleLoading(A)&&/^sy[0-9a-z]{0,4}$/.test(A)||A==="synthetic_module_overhead")&&delete this.JSC$10942_moduleInfoMap_[A];this.unsetModulesAsLoading(A)}};
_.d.setModulesAsLoading=function(){var A=this;_.E$.apply(0,arguments).forEach(function(Q){A.loadingModules_[Q]=!0})};
_.d.unsetModulesAsLoading=function(){var A=this;_.E$.apply(0,arguments).forEach(function(Q){delete A.loadingModules_[Q]})};
var VTy=function(A,Q){return new _.M3(function(b,f){var a=A.getModuleInfo(Q);a.isLoaded()?b(null):(a.registerCallback(function(){b(null)}),zzv(a,function(T){var G="Error loading "+Q+": "+T;
T instanceof dA.ModuleLoadFailure&&T.url&&(G=G+", requested url: "+T.url.toString());f(Error(G))}))})},JQK=function(A,Q){Q=Q.filter(function(b){return!A.isModuleLoading(b)&&!A.getModuleInfo(b).isLoaded()});
Q.length>0&&(A.setModulesAsLoading.apply(A,_.ri(Q)),A.JSC$10942_queue_.push(Q),n_p(A))},n_p=function(A){for(var Q={};A.activeLoads_<Infinity&&A.JSC$10942_queue_.length>0;Q={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})Q.ids$jscomp$36=A.JSC$10942_queue_.shift().filter(function(b){return!A.getModuleInfo(b).isLoaded()}),Q.ids$jscomp$36.length>0&&(A.activeLoads_++,Q.finishLoad=function(b){return function(){A.activeLoads_--;
n_p(A);b.finishLoad=function(){}}}(Q),_.qY(Q.ids$jscomp$36.map(function(b){return VTy(A,b)})).then(function(b){return function(){(0,b.finishLoad)()}}(Q)),Q.attempt$jscomp$6=0,Q.load$jscomp$1=function(b){return function(){if(Object.keys(A.JSC$10942_extraEdges_).length>0&&!A.JSC$9995_loader_.supportsExtraEdges)throw Error("sd");
A.JSC$9995_loader_.JSC$10921_loadModules(b.ids$jscomp$36,A.JSC$10942_moduleInfoMap_,{extraEdges:A.JSC$10942_extraEdges_,onError:function(f,a){var T=KEL[b.attempt$jscomp$6++];T!==void 0?setTimeout(function(){(0,b.load$jscomp$1)()},T):(A.unsetModulesAsLoading.apply(A,_.ri(b.ids$jscomp$36)),(0,b.finishLoad)(),b.ids$jscomp$36.forEach(function(G){G=A.getModuleInfo(G);
if(!G.isLoaded())G.onError(new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,f,b.ids$jscomp$36,a))}))}})}}(Q),(0,Q.load$jscomp$1)())},ODY=function(A,Q,b,f,a){f=f===void 0?function(){return!0}:f;
a=a===void 0?{}:a;Q=_.F(Q);for(var T=Q.next();!T.done;T=Q.next()){T=T.value;var G=A.getModuleInfo(T);!a[T]&&f(G)&&(a[T]=!0,ODY(A,G.deps_||[],b,f,a),b(G))}};var ko9=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var KPb=Symbol("vd");window.JSCompiler_renameProperty=function(A){return A};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var IVL=!ko9||HTMLElement.es5Shimmed||_.by.Reflect===void 0||_.by.customElements===void 0||_.by.customElements.polyfillWrapFlushCallback||!1,HDL,u$W=function(){var A=HTMLElement;if(IVL)return A;if(HDL!==void 0)return HDL;var Q=_.by.Reflect,b=function(){return Q.construct(A,[],this.constructor)};
b.prototype=A.prototype;b.prototype.constructor=b;b.es5Shimmed=!0;Object.setPrototypeOf(b,A);return HDL=b},Cir=!1;IVL||Cir||(Cir=!0,_.by.HTMLElement=u$W());/*

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 nB9=/(url\()([^)]*)(\))/g,VQe=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,OSb,G9;var ct=!window.ShadyDOM||!window.ShadyDOM.inUse,qlL=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),o_L=!window.customElements.polyfillWrapFlushCallback,tTL;if(tTL=ct&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var rQW=new CSSStyleSheet;rQW.replaceSync("");var jFN=document.createElement("div");jFN.attachShadow({mode:"open"});jFN.shadowRoot.adoptedStyleSheets=[rQW];tTL=jFN.shadowRoot.adoptedStyleSheets[0]===rQW}catch(A){tTL=!1}
var Rnv=tTL,g_L=window.Polymer&&window.Polymer.rootPath||IhJ(document.baseURI||window.location.href),O8=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,RiA=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Zf=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,env=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,xw=window.Polymer&&window.Polymer.legacyOptimizations||!1,u0=window.Polymer&&window.Polymer.legacyWarnings||!1,hnW=window.Polymer&&window.Polymer.syncInitialRender||
!1,kw=window.Polymer&&window.Polymer.legacyUndefined||!1,WEx=window.Polymer&&window.Polymer.orderedComputed||!1,N$=window.Polymer&&window.Polymer.removeNestedTemplates||!1,s1=window.Polymer&&window.Polymer.fastDomIf||!1,m2=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,v_K=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,E_W=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var A2={},xBL={},qH=function(){return HTMLElement.apply(this,arguments)||this};
_.O(qH,HTMLElement);qH.import=function(A,Q){return A?(A=A2[A]||xBL[A.toLowerCase()])&&Q?A.querySelector(Q):A:null};
qH.prototype.attributeChangedCallback=function(A,Q,b){Q!==b&&this.register()};
qH.prototype.register=function(A){if(A=A||this.id){if(Zf&&(A2[A]||xBL[A.toLowerCase()])!==void 0)throw A2[A]=xBL[A.toLowerCase()]=null,Error("wd`"+A);this.id=A;A2[A]=xBL[A.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Qr.Object.defineProperties(qH.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var A=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;A=_.Bt(this.getAttribute("assetpath")||"",A.baseURI);this.__assetpath=IhJ(A)}return this.__assetpath}}});
_.Qr.Object.defineProperties(qH,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
qH["import"]=qH.import;qH.prototype.modules=A2;customElements.define("dom-module",qH);var cQL=0,Cp6=0,pk=[],zn$=0,HS9=!1,wn1=document.createTextNode(""),u5$,vt;(new window.MutationObserver(qsA)).observe(wn1,{characterData:!0});_.Q5={after:function(A){return{run:function(Q){return window.setTimeout(Q,A)},
cancel:function(Q){window.clearTimeout(Q)}}},
run:function(A,Q){return window.setTimeout(A,Q)},
cancel:function(A){window.clearTimeout(A)}};
_.RP={run:function(A){return window.requestAnimationFrame(A)},
cancel:function(A){window.cancelAnimationFrame(A)}};
u5$={run:function(A){return window.requestIdleCallback?window.requestIdleCallback(A):window.setTimeout(A,16)},
cancel:function(A){window.cancelIdleCallback?window.cancelIdleCallback(A):window.clearTimeout(A)}};
vt={run:function(A){HS9||(HS9=!0,wn1.textContent=zn$++);pk.push(A);return cQL++},
cancel:function(A){var Q=A-Cp6;if(Q>=0){if(!pk[Q])throw Error("xd`"+A);pk[Q]=null}}};var ZDN=0,b_=function(A){var Q=A.__mixinApplications;Q||(Q=new WeakMap,A.__mixinApplications=Q);var b=ZDN++;return function(f){var a=f.__mixinSet;if(a&&a[b])return f;var T=Q,G=T.get(f);G||(G=A(f),T.set(f,G),f=Object.create(G.__mixinSet||a||null),f[b]=!0,G.__mixinSet=f);return G}};_.Vu=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(A){return ShadyDOM.patch(A)}:function(A){return A};var yQK=b_(function(A){var Q=function(){var b=A.call(this)||this;b.__dataEnabled=!1;b.__dataReady=!1;b.__dataInvalid=!1;b.__data={};b.__dataPending=null;b.__dataOld=null;b.__dataInstanceProps=null;b.__dataCounter=0;b.__serializing=!1;b._initializeProperties();return b};
_.O(Q,A);Q.createProperties=function(b){var f=this.prototype,a;for(a in b)a in f||f._createPropertyAccessor(a)};
Q.attributeNameForProperty=function(b){return b.toLowerCase()};
Q.typeForProperty=function(){};
Q.prototype._createPropertyAccessor=function(b,f){this._addPropertyToAttributeMap(b);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[b]||(this.__dataHasAccessor[b]=!0,this._definePropertyAccessor(b,f))};
Q.prototype._addPropertyToAttributeMap=function(b){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var f=this.__dataAttributes[b];f||(f=this.constructor.attributeNameForProperty(b),this.__dataAttributes[f]=b);return f};
Q.prototype._definePropertyAccessor=function(b,f){Object.defineProperty(this,b,{get:function(){return this.__data[b]},
set:f?function(){}:function(a){this._setPendingProperty(b,a,!0)&&this._invalidateProperties()}})};
Q.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
Q.prototype._initializeProperties=function(){for(var b in this.__dataHasAccessor)this.hasOwnProperty(b)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[b]=this[b],delete this[b])};
Q.prototype._initializeInstanceProperties=function(b){Object.assign(this,b)};
Q.prototype._setProperty=function(b,f){this._setPendingProperty(b,f)&&this._invalidateProperties()};
Q.prototype._getProperty=function(b){return this.__data[b]};
Q.prototype._setPendingProperty=function(b,f){var a=this.__data[b],T=this._shouldPropertyChange(b,f,a);T&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||b in this.__dataOld||(this.__dataOld[b]=a),this.__data[b]=f,this.__dataPending[b]=f);return T};
Q.prototype._isPropertyPending=function(b){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(b))};
Q.prototype._invalidateProperties=function(){var b=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,vt.run(function(){b.__dataInvalid&&(b.__dataInvalid=!1,b._flushProperties())}))};
Q.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
Q.prototype._flushProperties=function(){this.__dataCounter++;var b=this.__data,f=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(b,f,a)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(b,f,a));this.__dataCounter--};
Q.prototype._shouldPropertiesChange=function(b,f){return!!f};
Q.prototype._propertiesChanged=function(){};
Q.prototype._shouldPropertyChange=function(b,f,a){return a!==f&&(a===a||f===f)};
Q.prototype.attributeChangedCallback=function(b,f,a,T){f!==a&&this._attributeToProperty(b,a);A.prototype.attributeChangedCallback&&A.prototype.attributeChangedCallback.call(this,b,f,a,T)};
Q.prototype._attributeToProperty=function(b,f,a){if(!this.__serializing){var T=this.__dataAttributes;b=T&&T[b]||b;this[b]=this._deserializeValue(f,a||this.constructor.typeForProperty(b))}};
Q.prototype._propertyToAttribute=function(b,f,a){this.__serializing=!0;a=arguments.length<3?this[b]:a;this._valueToNodeAttribute(this,a,f||this.constructor.attributeNameForProperty(b));this.__serializing=!1};
Q.prototype._valueToNodeAttribute=function(b,f,a){f=this._serializeValue(f);if(a==="class"||a==="name"||a==="slot")b=(0,_.Vu)(b);f===void 0?b.removeAttribute(a):b.setAttribute(a,f===""&&window.trustedTypes?window.trustedTypes.emptyScript:f)};
Q.prototype._serializeValue=function(b){switch(typeof b){case "boolean":return b?"":void 0;default:return b!=null?b.toString():void 0}};
Q.prototype._deserializeValue=function(b,f){switch(f){case Boolean:return b!==null;case Number:return Number(b);default:return b}};
return Q});var YlL=0,oBW=[];var DBx=b_(function(A){function Q(T){T=Object.getPrototypeOf(T);return T.prototype instanceof a?T:null}
function b(T){if(!T.hasOwnProperty("__ownProperties")){var G=null;if(T.hasOwnProperty("properties")){var p=T.properties;if(p){G={};for(var P in p){var U=p[P];G[P]=typeof U==="function"?{type:U}:U}}}T.__ownProperties=G}return T.__ownProperties}
var f=yQK(A),a=function(){return f.apply(this,arguments)||this};
_.O(a,f);a.finalize=function(){if(!this.hasOwnProperty("__finalized")){var T=Q(this);T&&T.finalize();this.__finalized=!0;this._finalizeClass()}};
a._finalizeClass=function(){var T=b(this);T&&this.createProperties(T)};
a.typeForProperty=function(T){return(T=this._properties[T])&&T.type};
a.prototype._initializeProperties=function(){YlL++;this.constructor.finalize();f.prototype._initializeProperties.call(this)};
a.prototype.connectedCallback=function(){f.prototype.connectedCallback&&f.prototype.connectedCallback.call(this);this._enableProperties()};
a.prototype.disconnectedCallback=function(){f.prototype.disconnectedCallback&&f.prototype.disconnectedCallback.call(this)};
_.Qr.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var T=this;if(!this.hasOwnProperty("__observedAttributes")){tQ4(this.prototype);var G=this._properties;this.__observedAttributes=G?Object.keys(G).map(function(p){return T.prototype._addPropertyToAttributeMap(p)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var T=Q(this);this.__properties=Object.assign({},T&&T._properties,b(this))}return this.__properties}}});
return a});var rcC={},jbC=/-[a-z]/g,RS9=/([A-Z])/g;for(var $Bv={},N2j=HTMLElement.prototype;N2j;){for(var sFN=Object.getOwnPropertyNames(N2j),mBr=0;mBr<sFN.length;mBr++)$Bv[sFN[mBr]]=!0;N2j=Object.getPrototypeOf(N2j)}var AHj=window.trustedTypes?function(A){return trustedTypes.isHTML(A)||trustedTypes.isScript(A)||trustedTypes.isScriptURL(A)}:function(){return!1},QXj=b_(function(A){var Q=yQK(A);
A=function(){return Q.apply(this,arguments)||this};
_.O(A,Q);A.createPropertiesForAttributes=function(){for(var b=this.observedAttributes,f=0;f<b.length;f++)this.prototype._createPropertyAccessor(Pt(b[f]))};
A.attributeNameForProperty=function(b){return Xv(b)};
A.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);Q.prototype._initializeProperties.call(this)};
A.prototype._initializeProtoProperties=function(b){for(var f in b)this._setProperty(f,b[f])};
A.prototype._ensureAttribute=function(b,f){this.hasAttribute(b)||this._valueToNodeAttribute(this,f,b)};
A.prototype._serializeValue=function(b){switch(typeof b){case "object":if(b instanceof Date)return b.toString();if(b){if(AHj(b))return b;try{return JSON.stringify(b)}catch(f){return""}}default:return Q.prototype._serializeValue.call(this,b)}};
A.prototype._deserializeValue=function(b,f){switch(f){case Object:try{var a=JSON.parse(b)}catch(T){a=b}break;case Array:try{a=JSON.parse(b)}catch(T){a=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+b)}break;case Date:a=isNaN(b)?String(b):Number(b);a=new Date(a);break;default:a=Q.prototype._deserializeValue.call(this,b,f)}return a};
A.prototype._definePropertyAccessor=function(b,f){if(!$Bv[b]){var a=this[b];a!==void 0&&(this.__data?this._setPendingProperty(b,a):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[b]=a))}Q.prototype._definePropertyAccessor.call(this,b,f)};
A.prototype._hasAccessor=function(b){return this.__dataHasAccessor&&this.__dataHasAccessor[b]};
A.prototype._isPropertyPending=function(b){return!!(this.__dataPending&&b in this.__dataPending)};
return A});var bOy={"dom-if":!0,"dom-repeat":!0},f5Y=!1,a59=!1,Ts$=function(){var A=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(Q){return Q}});
return function(Q,b,f){b=b.getAttribute(f);A&&f.startsWith("on-")?Q.setAttribute(f,A.createScript(b,f)):Q.setAttribute(f,b)}}(),deY=b_(function(A){var Q=function(){return A.apply(this,arguments)||this};
_.O(Q,A);Q._parseTemplate=function(b,f){if(!b._templateInfo){var a=b._templateInfo={};a.nodeInfoList=[];a.nestedTemplate=!!f;a.stripWhiteSpace=f&&f.stripWhiteSpace||b.hasAttribute&&b.hasAttribute("strip-whitespace");this._parseTemplateContent(b,a,{parent:null})}return b._templateInfo};
Q._parseTemplateContent=function(b,f,a){return this._parseTemplateNode(b.content,f,a)};
Q._parseTemplateNode=function(b,f,a){var T=!1;b.localName!="template"||b.hasAttribute("preserve-content")?b.localName==="slot"&&(f.hasInsertionPoint=!0):T=this._parseTemplateNestedTemplate(b,f,a)||T;if(!f5Y){f5Y=!0;var G=document.createElement("textarea");G.placeholder="a";a59=G.placeholder===G.textContent}a59&&b.localName==="textarea"&&b.placeholder&&b.placeholder===b.textContent&&(b.textContent=null);b.firstChild&&this._parseTemplateChildNodes(b,f,a);b.hasAttributes&&b.hasAttributes()&&(T=this._parseTemplateNodeAttributes(b,
f,a)||T);return T||a.noted};
Q._parseTemplateChildNodes=function(b,f,a){if(b.localName!=="script"&&b.localName!=="style")for(var T=b.firstChild,G=0,p;T;T=p){if(T.localName=="template"){var P=T.getAttribute("is");if(P&&bOy[P])for(p=T,p.removeAttribute("is"),T=p.ownerDocument.createElement(P),p.parentNode.replaceChild(T,p),T.appendChild(p);p.attributes.length;)P=p.attributes[0].name,Ts$(T,p,P),p.removeAttribute(P)}p=T.nextSibling;if(T.nodeType===Node.TEXT_NODE){for(P=p;P&&P.nodeType===Node.TEXT_NODE;)T.textContent+=P.textContent,
p=P.nextSibling,b.removeChild(P),P=p;if(f.stripWhiteSpace&&!T.textContent.trim()){b.removeChild(T);continue}}P={parentIndex:G,parentInfo:a};this._parseTemplateNode(T,f,P)&&(P.infoIndex=f.nodeInfoList.push(P)-1);T.parentNode&&G++}};
Q._parseTemplateNestedTemplate=function(b,f,a){f=this._parseTemplate(b,f);(f.content=b.content.ownerDocument.createDocumentFragment()).appendChild(b.content);a.templateInfo=f;return!0};
Q._parseTemplateNodeAttributes=function(b,f,a){for(var T=!1,G=Array.from(b.attributes),p=G.length-1,P;P=G[p];p--)T=this._parseTemplateNodeAttribute(b,f,a,P.name,P.value)||T;return T};
Q._parseTemplateNodeAttribute=function(b,f,a,T,G){return T.slice(0,3)==="on-"?(b.removeAttribute(T),a.events=a.events||[],a.events.push({name:T.slice(3),value:G}),!0):T==="id"?(a.id=G,!0):!1};
Q._contentForTemplate=function(b){var f=b._templateInfo;return f&&f.content||b.content};
Q.prototype._stampTemplate=function(b,f){b&&!b.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(b);f=f||this.constructor._parseTemplate(b);var a=f.nodeInfoList;b=document.importNode(f.content||b.content,!0);b.__noInsertionPoint=!f.hasInsertionPoint;var T=b.nodeList=Array(a.length);b.$={};for(var G=0,p=a.length,P=void 0;G<p&&(P=a[G]);G++){var U=T[G]=gBW(b,P);P.id&&(b.$[P.id]=U);var L=U,M=P,l=f;M.templateInfo&&(L._templateInfo=M.templateInfo,L._parentTemplateInfo=
l);if(P.events&&P.events.length)for(L=0,M=P.events,l=void 0;L<M.length&&(l=M[L]);L++)this._addMethodEventListenerToNode(U,l.name,l.value,this)}return b};
Q.prototype._addMethodEventListenerToNode=function(b,f,a,T){a=eSY(T||b,a);this._addEventListenerToNode(b,f,a);return a};
Q.prototype._addEventListenerToNode=function(b,f,a){b.addEventListener(f,a)};
Q.prototype._removeEventListenerFromNode=function(b,f,a){b.removeEventListener(f,a)};
return Q});var i0=0,nk=[],FO$={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},G7W=/[A-Z]/,Bs$=function(A,Q,b,f,a){var T=a?U8(A):A;if(Q=Q[T])for(T=0;T<Q.length;T++){var G=Q[T];if(G.info.lastRun!==i0&&(!a||cce(A,G.trigger))){G.info.lastRun=i0;G=G.info;for(var p=b,P=f,U=0,L=p.length-1,M=-1;U<=L;){var l=U+L>>1,J=P.get(p[l].methodInfo)-P.get(G.methodInfo);if(J<0)U=l+1;else if(J>0)L=l-1;else{M=l;break}}M<
0&&(M=L+1);p.splice(M,0,G)}}},fNC=[],pOx=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"),a1=b_(function(A){var Q=deY(QXj(A));
A=function(){var b=Q.call(this)||this;b.__isPropertyEffectsClient=!0;return b};
_.O(A,Q);A.prototype._initializeProperties=function(){Q.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};
A.prototype._registerHost=function(){if(fn.length){var b=fn[fn.length-1];b._enqueueClient(this);this.__dataHost=b}};
A.prototype._initializeProtoProperties=function(b){this.__data=Object.create(b);this.__dataPending=Object.create(b);this.__dataOld={}};
A.prototype._initializeInstanceProperties=function(b){var f=this.__readOnly,a;for(a in b)f&&f[a]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[a]=this.__dataPending[a]=b[a])};
A.prototype._addPropertyEffect=function(b,f,a){this._createPropertyAccessor(b,f=="__readOnly");var T=xl6(this,f,!0)[b];T||(T=this[f][b]=[]);T.push(a)};
A.prototype._removePropertyEffect=function(b,f,a){b=xl6(this,f,!0)[b];a=b.indexOf(a);a>=0&&b.splice(a,1)};
A.prototype._hasPropertyEffect=function(b,f){f=this[f];return!(!f||!f[b])};
A.prototype._hasReadOnlyEffect=function(b){return this._hasPropertyEffect(b,"__readOnly")};
A.prototype._hasNotifyEffect=function(b){return this._hasPropertyEffect(b,"__notifyEffects")};
A.prototype._hasReflectEffect=function(b){return this._hasPropertyEffect(b,"__reflectEffects")};
A.prototype._hasComputedEffect=function(b){return this._hasPropertyEffect(b,"__computeEffects")};
A.prototype._setPendingPropertyOrPath=function(b,f,a,T){if(T||U8(Array.isArray(b)?b[0]:b)!==b){if(!T&&(T=Kk(this,b),b=EB9(this,b,f),!b||!Q.prototype._shouldPropertyChange.call(this,b,f,T)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(b,f,a)){if(a=this.__dataLinkedPaths)for(var G in a)T=a[G],Lk(G,b)?(T=MH(G,T,b),this._setPendingPropertyOrPath(T,f,!0,!0)):Lk(T,b)&&(T=MH(T,G,b),this._setPendingPropertyOrPath(T,f,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[b])return this._setPendingProperty(b,
f,a);this[b]=f}return!1};
A.prototype._setUnmanagedPropertyToNode=function(b,f,a){if(a!==b[f]||typeof a=="object")f==="className"&&(b=(0,_.Vu)(b)),b[f]=a};
A.prototype._setPendingProperty=function(b,f,a){var T=this.__dataHasPaths&&Sc(b);if(this._shouldPropertyChange(b,f,(T?this.__dataTemp:this.__data)[b])){this.__dataPending||(this.__dataPending={},this.__dataOld={});b in this.__dataOld||(this.__dataOld[b]=this.__data[b]);T?this.__dataTemp[b]=f:this.__data[b]=f;this.__dataPending[b]=f;if(T||this.__notifyEffects&&this.__notifyEffects[b])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[b]=a;return!0}return!1};
A.prototype._setProperty=function(b,f){this._setPendingProperty(b,f,!0)&&this._invalidateProperties()};
A.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
A.prototype._enqueueClient=function(b){this.__dataPendingClients=this.__dataPendingClients||[];b!==this&&this.__dataPendingClients.push(b)};
A.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
A.prototype.__enableOrFlushClients=function(){var b=this.__dataPendingClients;if(b){this.__dataPendingClients=null;for(var f=0;f<b.length;f++){var a=b[f];a.__dataEnabled?a.__dataPending&&a._flushProperties():a._enableProperties()}}};
A.prototype._readyClients=function(){this.__enableOrFlushClients()};
A.prototype.setProperties=function(b,f){for(var a in b)!f&&this.__readOnly&&this.__readOnly[a]||this._setPendingPropertyOrPath(a,b[a],!0);this._invalidateProperties()};
A.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
A.prototype._propertiesChanged=function(b,f,a){b=this.__dataHasPaths;this.__dataHasPaths=!1;var T;if(T=this.__computeEffects)if(WEx){i0++;var G=Ys6(this),p=[],P;for(P in f)Bs$(P,T,p,G,b);for(;P=p.shift();)$lY(this,"",f,a,P)&&Bs$(P.methodInfo,T,p,G,b);Object.assign(a,this.__dataOld);Object.assign(f,this.__dataPending);this.__dataPending=null}else for(G=f;Jj(this,T,G,a,b);)Object.assign(a,this.__dataOld),Object.assign(f,this.__dataPending),G=this.__dataPending,this.__dataPending=null;T=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(f,a,b);this._flushClients();Jj(this,this.__reflectEffects,f,a,b);Jj(this,this.__observeEffects,f,a,b);if(T){G=this.__notifyEffects;p=i0++;for(var U in T)if(T[U]){if(P=G){var L=G;P=p;var M=U,l=f,J=a,n=b,t=!1,g=n?U8(M):M;if(L=L[g]){g=0;for(var e=L.length,x=void 0;g<e&&(x=L[g]);g++)x.info&&x.info.lastRun===P||n&&!cce(M,x.trigger)||(x.info&&(x.info.lastRun=P),x.fn(this,M,l,J,x.info,n,void 0),t=!0)}P=t}if(P)var D=!0;else{if(P=b)P=U,M=f,l=U8(P),l!==
P?(l=Xv(l)+"-changed",wiC(this,l,M[P],P),P=!0):P=!1;P&&(D=!0)}}var w;D&&(w=this.__dataHost)&&w._invalidateProperties&&w._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
A.prototype._propagatePropertyChanges=function(b,f,a){this.__propagateEffects&&Jj(this,this.__propagateEffects,b,f,a);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,b,f,a)};
A.prototype._runEffectsForTemplate=function(b,f,a,T){var G=this,p=function(P,U){Jj(G,b.propertyEffects,P,a,U,b.nodeList);for(var L=b.firstChild;L;L=L.nextSibling)G._runEffectsForTemplate(L,P,a,U)};
b.runEffects?b.runEffects(p,f,T):p(f,T)};
A.prototype.linkPaths=function(b,f){b=l0(b);f=l0(f);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[b]=f};
A.prototype.unlinkPaths=function(b){b=l0(b);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[b]};
A.prototype.notifySplices=function(b,f){var a={path:""};b=Kk(this,b,a);FUY(this,b,a.path,f)};
A.prototype.get=function(b,f){return Kk(f||this,b)};
A.prototype.set=function(b,f,a){a?EB9(a,b,f):this.__readOnly&&this.__readOnly[b]||this._setPendingPropertyOrPath(b,f,!0)&&this._invalidateProperties()};
A.prototype.push=function(b){var f=_.E$.apply(1,arguments),a={path:""},T=Kk(this,b,a),G=T.length,p=T.push.apply(T,_.ri(f));f.length&&IN(this,T,a.path,G,f.length,[]);return p};
A.prototype.pop=function(b){var f={path:""};b=Kk(this,b,f);var a=!!b.length,T=b.pop();a&&IN(this,b,f.path,b.length,0,[T]);return T};
A.prototype.splice=function(b,f,a){var T=_.E$.apply(3,arguments),G={path:""},p=Kk(this,b,G);f<0?f=p.length-Math.floor(-f):f&&(f=Math.floor(f));var P=arguments.length===2?p.splice(f):p.splice.apply(p,[f,a].concat(_.ri(T)));(T.length||P.length)&&IN(this,p,G.path,f,T.length,P);return P};
A.prototype.shift=function(b){var f={path:""};b=Kk(this,b,f);var a=!!b.length,T=b.shift();a&&IN(this,b,f.path,0,0,[T]);return T};
A.prototype.unshift=function(b){var f=_.E$.apply(1,arguments),a={path:""},T=Kk(this,b,a),G=T.unshift.apply(T,_.ri(f));f.length&&IN(this,T,a.path,0,f.length,[]);return G};
A.prototype.notifyPath=function(b,f){if(arguments.length==1){var a={path:""};f=Kk(this,b,a);a=a.path}else a=Array.isArray(b)?l0(b):b;this._setPendingPropertyOrPath(a,f,!0,!0)&&this._invalidateProperties()};
A.prototype._createReadOnlyProperty=function(b,f){this._addPropertyEffect(b,"__readOnly");f&&(this["_set"+(b[0].toUpperCase()+b.substring(1))]=function(a){this._setProperty(b,a)})};
A.prototype._createPropertyObserver=function(b,f,a){var T={property:b,method:f,dynamicFn:!!a};this._addPropertyEffect(b,"__observeEffects",{fn:zSC,info:T,trigger:{name:b}});a&&this._addPropertyEffect(f,"__observeEffects",{fn:zSC,info:T,trigger:{name:f}})};
A.prototype._createMethodObserver=function(b,f){var a=Tyb(b);if(!a)throw Error("yd`"+b);QcX(this,a,"__observeEffects",DlA,null,f)};
A.prototype._createNotifyingProperty=function(b){this._addPropertyEffect(b,"__notifyEffects",{fn:uGX,info:{eventName:Xv(b)+"-changed",property:b}})};
A.prototype._createReflectedProperty=function(b){var f=this.constructor.attributeNameForProperty(b);f[0]==="-"?console.warn("Property "+b+" cannot be reflected to attribute "+f+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(b,"__reflectEffects",{fn:ZSX,info:{attrName:f}})};
A.prototype._createComputedProperty=function(b,f,a){var T=Tyb(f);if(!T)throw Error("zd`"+f);f=QcX(this,T,"__computeEffects",$lY,b,a);xl6(this,"__computeInfo")[b]=f};
A.prototype._marshalArgs=function(b,f,a){for(var T=this.__data,G=[],p=0,P=b.length;p<P;p++){var U=b[p],L=U.name,M=U.structured,l=U.wildcard,J=U.value;U.literal||(l?(U=Lk(L,f),M=dr6(T,a,U?f:L),J={path:U?f:L,value:M,base:U?Kk(T,L):M}):J=M?dr6(T,a,L):T[L]);if(kw&&!this._overrideLegacyUndefined&&J===void 0&&b.length>1)return nk;G[p]=J}return G};
A.addPropertyEffect=function(b,f,a){this.prototype._addPropertyEffect(b,f,a)};
A.createPropertyObserver=function(b,f,a){this.prototype._createPropertyObserver(b,f,a)};
A.createMethodObserver=function(b,f){this.prototype._createMethodObserver(b,f)};
A.createNotifyingProperty=function(b){this.prototype._createNotifyingProperty(b)};
A.createReadOnlyProperty=function(b,f){this.prototype._createReadOnlyProperty(b,f)};
A.createReflectedProperty=function(b){this.prototype._createReflectedProperty(b)};
A.createComputedProperty=function(b,f,a){this.prototype._createComputedProperty(b,f,a)};
A.bindTemplate=function(b){return this.prototype._bindTemplate(b)};
A.prototype._bindTemplate=function(b,f){var a=this.constructor._parseTemplate(b),T=this.__preBoundTemplateInfo==a;if(!T)for(var G in a.propertyEffects)this._createPropertyAccessor(G);f?(a=Object.create(a),a.wasPreBound=T,this.__templateInfo?(b=b._parentTemplateInfo||this.__templateInfo,f=b.lastChild,a.parent=b,b.lastChild=a,(a.previousSibling=f)?f.nextSibling=a:b.firstChild=a):this.__templateInfo=a):this.__preBoundTemplateInfo=a;return a};
A._addTemplatePropertyEffect=function(b,f,a){(b.hostProps=b.hostProps||{})[f]=!0;b=b.propertyEffects=b.propertyEffects||{};(b[f]=b[f]||[]).push(a)};
A.prototype._stampTemplate=function(b,f){f=f||this._bindTemplate(b,!0);fn.push(this);b=Q.prototype._stampTemplate.call(this,b,f);fn.pop();f.nodeList=b.nodeList;if(!f.wasPreBound)for(var a=f.childNodes=[],T=b.firstChild;T;T=T.nextSibling)a.push(T);b.templateInfo=f;a=f.nodeList;T=f.nodeInfoList;if(T.length)for(var G=0;G<T.length;G++){var p=a[G],P=T[G].bindings;if(P)for(var U=0;U<P.length;U++){var L=P[U],M=p,l=L;if(l.isCompound){for(var J=M.__dataCompoundStorage||(M.__dataCompoundStorage={}),n=l.parts,
t=Array(n.length),g=0;g<n.length;g++)t[g]=n[g].literal;n=l.target;J[n]=t;l.literal&&l.kind=="property"&&(n==="className"&&(M=(0,_.Vu)(M)),M[n]=l.literal)}AbJ(p,this,L)}p.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(f,this.__data,null,!1),this._flushClients());return b};
A.prototype._removeBoundDom=function(b){b=b.templateInfo;var f=b.previousSibling,a=b.nextSibling,T=b.parent;f?f.nextSibling=a:T&&(T.firstChild=a);a?a.previousSibling=f:T&&(T.lastChild=f);b.nextSibling=b.previousSibling=null;b=b.childNodes;for(f=0;f<b.length;f++)a=b[f],(0,_.Vu)((0,_.Vu)(a).parentNode).removeChild(a)};
A._parseTemplateNode=function(b,f,a){var T=Q._parseTemplateNode.call(this,b,f,a);if(b.nodeType===Node.TEXT_NODE){var G=this._parseBindings(b.textContent,f);G&&(b.textContent=b7f(G)||" ",mlf(this,f,a,"text","textContent",G),T=!0)}return T};
A._parseTemplateNodeAttribute=function(b,f,a,T,G){var p=this._parseBindings(G,f);if(p){G=T;var P="property";G7W.test(T)?P="attribute":T[T.length-1]=="$"&&(T=T.slice(0,-1),P="attribute");var U=b7f(p);U&&P=="attribute"&&(T=="class"&&b.hasAttribute("class")&&(U+=" "+b.getAttribute(T)),b.setAttribute(T,U));P=="attribute"&&G=="disable-upgrade$"&&b.setAttribute(T,"");b.localName==="input"&&G==="value"&&b.setAttribute(G,"");b.removeAttribute(G);P==="property"&&(T=Pt(T));mlf(this,f,a,P,T,p,U);return!0}return Q._parseTemplateNodeAttribute.call(this,
b,f,a,T,G)};
A._parseTemplateNestedTemplate=function(b,f,a){var T=Q._parseTemplateNestedTemplate.call(this,b,f,a),G=b.parentNode,p=a.templateInfo,P=G.localName==="dom-if",U=G.localName==="dom-repeat";N$&&(P||U)&&(G.removeChild(b),a=a.parentInfo,a.templateInfo=p,a.noted=!0,T=!1);b=p.hostProps;if(s1&&P)b&&(f.hostProps=Object.assign(f.hostProps||{},b),N$||(a.parentInfo.noted=!0));else for(var L in b)mlf(this,f,a,"property","_host_"+L,[{mode:"{",source:L,dependencies:[L],hostProp:!0}]);return T};
A._parseBindings=function(b,f){for(var a=[],T=0,G;(G=pOx.exec(b))!==null;){G.index>T&&a.push({literal:b.slice(T,G.index)});T=G[1][0];var p=!!G[2];G=G[3].trim();var P=!1,U="",L=-1;T=="{"&&(L=G.indexOf("::"))>0&&(U=G.substring(L+2),G=G.substring(0,L),P=!0);L=Tyb(G);var M=[];if(L){var l=L,J=l.args;l=l.methodName;for(var n=0;n<J.length;n++){var t=J[n];t.literal||M.push(t)}if((J=f.dynamicFns)&&J[l]||L.static)M.push(l),L.dynamicFn=!0}else M.push(G);a.push({source:G,mode:T,negate:p,customEvent:P,signature:L,
dependencies:M,event:U});T=pOx.lastIndex}T&&T<b.length&&(b=b.substring(T))&&a.push({literal:b});return a.length?a:null};
A._evaluateBinding=function(b,f,a,T,G,p){b=f.signature?DlA(b,a,T,G,f.signature):a!=f.source?Kk(b,f.source):p&&Sc(a)?Kk(b,a):b.__data[a];f.negate&&(b=!b);return b};
_.Qr.Object.defineProperties(A.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return FO$}}});
return A}),fn=[];var PgY=window.ShadyCSS&&window.ShadyCSS.cssBuild,Td=b_(function(A){function Q(f,a,T,G){if(!PgY){for(var p=a.content.querySelectorAll("style"),P=P6J(a),U=XZy(T),L=a.content.firstElementChild,M=0;M<U.length;M++){var l=U[M];l.textContent=f._processStyleText(l.textContent,G);a.content.insertBefore(l,L)}for(L=U=0;L<P.length;L++)M=P[L],l=p[U],l!==M?(M=M.cloneNode(!0),l.parentNode.insertBefore(M,l)):U++,M.textContent=f._processStyleText(M.textContent,G)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(a,
T);if(E_W&&PgY&&Rnv&&(a=a.content.querySelectorAll("style"))){var J="";Array.from(a).forEach(function(n){J+=n.textContent;n.parentNode.removeChild(n)});
f._styleSheet=new CSSStyleSheet;f._styleSheet.replaceSync(J)}}
var b=DBx(a1(A));A=function(){return b.call(this)||this};
_.O(A,b);A._finalizeClass=function(){b._finalizeClass.call(this);var f;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(f=this.__ownObservers)&&this.createObservers(f,this._properties);this._prepareTemplate()};
A._prepareTemplate=function(){var f=this.template;f&&(typeof f==="string"?(console.error("template getter must return HTMLTemplateElement"),f=null):xw||(f=f.cloneNode(!0)));this.prototype._template=f};
A.createProperties=function(f){for(var a in f){var T=this.prototype,G=a,p=f[a],P=f;p.computed&&(p.readOnly=!0);p.computed&&(T._hasReadOnlyEffect(G)?console.warn("Cannot redefine computed property '"+G+"'."):T._createComputedProperty(G,p.computed,P));p.readOnly&&!T._hasReadOnlyEffect(G)?T._createReadOnlyProperty(G,!p.computed):p.readOnly===!1&&T._hasReadOnlyEffect(G)&&console.warn("Cannot make readOnly property '"+G+"' non-readOnly.");p.reflectToAttribute&&!T._hasReflectEffect(G)?T._createReflectedProperty(G):
p.reflectToAttribute===!1&&T._hasReflectEffect(G)&&console.warn("Cannot make reflected property '"+G+"' non-reflected.");p.notify&&!T._hasNotifyEffect(G)?T._createNotifyingProperty(G):p.notify===!1&&T._hasNotifyEffect(G)&&console.warn("Cannot make notify property '"+G+"' non-notify.");p.observer&&T._createPropertyObserver(G,p.observer,P[p.observer]);T._addPropertyToAttributeMap(G)}};
A.createObservers=function(f,a){for(var T=this.prototype,G=0;G<f.length;G++)T._createMethodObserver(f[G],a)};
A.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);b.prototype._initializeProperties.call(this);this.rootPath=g_L;this.importPath=this.constructor.importPath;var f=this.constructor;if(!f.hasOwnProperty("__propertyDefaults")){f.__propertyDefaults=null;var a=f._properties,T;for(T in a){var G=a[T];"value"in G&&(f.__propertyDefaults=f.__propertyDefaults||{},f.__propertyDefaults[T]=G)}}if(f=f.__propertyDefaults)for(var p in f)a=f[p],
this._canApplyPropertyDefault(p)&&(a=typeof a.value=="function"?a.value.call(this):a.value,this._hasAccessor(p)?this._setPendingProperty(p,a,!0):this[p]=a)};
A.prototype._canApplyPropertyDefault=function(f){return!this.hasOwnProperty(f)};
A._processStyleText=function(f,a){return kkb(f,a)};
A._finalizeTemplate=function(f){var a=this.prototype._template;if(a&&!a.__polymerFinalized){a.__polymerFinalized=!0;var T=this.importPath;T=T?_.Bt(T):"";Q(this,a,f,T);this.prototype._bindTemplate(a)}};
A.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);b.prototype.connectedCallback.call(this)};
A.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);b.prototype.ready.call(this)};
A.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));b.prototype._readyClients.call(this)};
A.prototype._attachDom=function(f){var a=(0,_.Vu)(this);if(a.attachShadow)return f?(a.shadowRoot||(a.attachShadow({mode:"open",shadyUpgradeFragment:f}),a.shadowRoot.appendChild(f),this.constructor._styleSheet&&(a.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),hnW&&window.ShadyDOM&&window.ShadyDOM.flushInitial(a.shadowRoot),a.shadowRoot):null;throw Error("Bd");};
A.prototype.updateStyles=function(f){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,f)};
A.prototype.resolveUrl=function(f,a){!a&&this.importPath&&(a=_.Bt(this.importPath));return _.Bt(f,a)};
A._parseTemplateContent=function(f,a,T){a.dynamicFns=a.dynamicFns||this._properties;return b._parseTemplateContent.call(this,f,a,T)};
A._addTemplatePropertyEffect=function(f,a,T){!u0||a in this._properties||T.info.part.signature&&T.info.part.signature.static||T.info.part.hostProp||f.nestedTemplate||console.warn("Property '"+a+"' used in template but not declared in 'properties'; attribute will not be observed.");return b._addTemplatePropertyEffect.call(this,f,a,T)};
_.Qr.Object.defineProperties(A,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var f=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof f==="function"&&(f=f());if(f===void 0){if(f=this.hasOwnProperty("is")){f=this.is;var a=null;if(f&&(!Zf||env)&&(a=qH.import(f,"template"),Zf&&!a))throw Error("Ad`"+f);f=a}f=f||Object.getPrototypeOf(this.prototype).constructor.template}this._template=f}return this._template},
set:function(f){this._template=f}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var f=this.importMeta;f?this._importPath=IhJ(f.url):this._importPath=(f=qH.import(this.is))&&f.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return A});var XOr=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(A){return A}}),i79=function(A,Q){Srj(A,Q);
this.value=Q.reduce(function(b,f,a){return b+Jby(f)+A[a+1]},A[0]).toString()},Srj;
i79.prototype.toString=function(){return this.value};
_.Uep=function(A){var Q=_.E$.apply(1,arguments);Srj(A,Q);var b=document.createElement("template");Q=Q.reduce(function(f,a,T){if(a instanceof HTMLTemplateElement)a=a.innerHTML;else if(a instanceof i79)a=Jby(a);else throw Error("Dd`"+a);return f+a+A[T+1]},A[0]);
XOr&&(Q=XOr.createHTML(Q));b.innerHTML=Q;return b};
Srj=function(A,Q){if(!Array.isArray(A)||!Array.isArray(A.raw)||Q.length!==A.length-1)throw new TypeError("Ed");};var db=Td(HTMLElement);var LOW=b_(function(A){var Q=Td(A);A=function(){var b=Q.call(this)||this;b.__lastItems=null;b.__lastMulti=null;b.__selectedMap=null;return b};
_.O(A,Q);A.prototype.__updateSelection=function(b,f){var a=f.path;a=="items"?(f=f.base||[],a=this.__lastItems,b!==this.__lastMulti&&this.clearSelection(),a&&(a=KU9(f,a),this.__applySplices(a)),this.__lastItems=f,this.__lastMulti=b):f.path=="items.splices"?this.__applySplices(f.value.indexSplices):(b=a.slice(6),f=parseInt(b,10),b.indexOf(".")<0&&b==f&&this.__deselectChangedIdx(f))};
A.prototype.__applySplices=function(b){for(var f=this,a=this.__selectedMap,T={},G=0;G<b.length;T={s$jscomp$108:void 0},G++){T.s$jscomp$108=b[G];a.forEach(function(L){return function(M,l){M<L.s$jscomp$108.index||(M>=L.s$jscomp$108.index+L.s$jscomp$108.removed.length?a.set(l,M+L.s$jscomp$108.addedCount-L.s$jscomp$108.removed.length):a.set(l,-1))}}(T));
for(var p=0;p<T.s$jscomp$108.addedCount;p++){var P=T.s$jscomp$108.index+p;a.has(this.items[P])&&a.set(this.items[P],P)}}this.__updateLinks();var U=0;a.forEach(function(L,M){L<0?(f.multi?f.splice("selected",U,1):f.selected=f.selectedItem=null,a.delete(M)):U++})};
A.prototype.__updateLinks=function(){var b=this;this.__dataLinkedPaths={};if(this.multi){var f=0;this.__selectedMap.forEach(function(a){a>=0&&b.linkPaths("items."+a,"selected."+f++)})}else this.__selectedMap.forEach(function(a){b.linkPaths("selected","items."+a);
b.linkPaths("selectedItem","items."+a)})};
A.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
A.prototype.isSelected=function(b){return this.__selectedMap.has(b)};
A.prototype.isIndexSelected=function(b){return this.isSelected(this.items[b])};
A.prototype.__deselectChangedIdx=function(b){var f=this,a=this.__selectedIndexForItemIndex(b);if(a>=0){var T=0;this.__selectedMap.forEach(function(G,p){a==T++&&f.deselect(p)})}};
A.prototype.__selectedIndexForItemIndex=function(b){if(b=this.__dataLinkedPaths["items."+b])return parseInt(b.slice(9),10)};
A.prototype.deselect=function(b){var f=this.__selectedMap.get(b);if(f>=0){this.__selectedMap.delete(b);var a;this.multi&&(a=this.__selectedIndexForItemIndex(f));this.__updateLinks();this.multi?this.splice("selected",a,1):this.selected=this.selectedItem=null}};
A.prototype.deselectIndex=function(b){this.deselect(this.items[b])};
A.prototype.select=function(b){this.selectIndex(this.items.indexOf(b))};
A.prototype.selectIndex=function(b){var f=this.items[b];this.isSelected(f)?this.toggle&&this.deselectIndex(b):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(f,b),this.__updateLinks(),this.multi?this.push("selected",f):this.selected=this.selectedItem=f)};
_.Qr.Object.defineProperties(A,{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 A}),M$M=LOW(db),Fr=function(){return M$M.apply(this,arguments)||this};
_.O(Fr,M$M);_.Qr.Object.defineProperties(Fr,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Fr.is,Fr);var l5W=window.Polymer;window.Polymer=function(A){return window.Polymer._polymerFn(A)};
l5W&&Object.assign(Polymer,l5W);Polymer._polymerFn=function(){throw Error("Fd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:kkb,resolveUrl:_.Bt,pathFromUrl:IhJ};Polymer.DomModule=qH;Polymer.Async={timeOut:_.Q5,animationFrame:_.RP,idlePeriod:u5$,microTask:vt};Polymer.dedupingMixin=b_;Polymer.wrap=_.Vu;Polymer.PropertiesChanged=yQK;Polymer.telemetry={instanceCount:YlL,incrementInstanceCount:function(){YlL++},
registrations:oBW,register:tQ4,dumpRegistrations:function(){oBW.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=DBx;Polymer.CaseMap={dashToCamelCase:Pt,camelToDashCase:Xv};Polymer.PropertyAccessors=QXj;Polymer.TemplateStamp=deY;Polymer.Path={isPath:Sc,root:U8,isAncestor:hSU,isDescendant:Lk,translate:MH,matches:WP9,normalize:l0,split:vBC,get:Kk,set:EB9,isDeep:Sc};Polymer.Settings={useShadow:ct,useNativeCSSProperties:qlL,useNativeCustomElements:o_L,get rootPath(){return g_L},setRootPath:function(A){g_L=A},
get sanitizeDOMValue(){return O8},setSanitizeDOMValue:function(A){O8=A},
get passiveTouchGestures(){return RiA},setPassiveTouchGestures:function(A){RiA=A},
get strictTemplatePolicy(){return Zf},setStrictTemplatePolicy:function(A){Zf=A},
get allowTemplateFromDomModule(){return env},setAllowTemplateFromDomModule:function(A){env=A},
get legacyOptimizations(){return xw},setLegacyOptimizations:function(A){xw=A},
get syncInitialRender(){return hnW},setSyncInitialRender:function(A){hnW=A},
get legacyUndefined(){return kw},setLegacyUndefined:function(A){kw=A},
get legacyWarnings(){return u0},setLegacyWarnings:function(A){u0=A},
get orderedComputed(){return WEx},setOrderedComputed:function(A){WEx=A},
get fastDomIf(){return s1},setFastDomIf:function(A){s1=A},
get removeNestedTemplates(){return N$},setRemoveNestedTemplates:function(A){N$=A},
get suppressTemplateNotifications(){return m2},setSuppressTemplateNotifications:m2};Polymer.rootPath!==void 0&&(g_L=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(O8=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(RiA=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Zf=Polymer.strictTemplatePolicy);env=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(xw=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(hnW=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(kw=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(u0=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(WEx=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(s1=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(N$=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(m2=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return O8},
set:function(A){O8=A}});Polymer.PropertyEffects=a1;Polymer.StyleGather={stylesFromModules:pZb,stylesFromModule:By4,stylesFromTemplate:P6J,stylesFromModuleImports:XZy,cssFromModules:Urb,cssFromModule:SCA,cssFromTemplate:LUW,cssFromModuleImports:function(A){return(A=qH.import(A))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):""}};Polymer.ElementMixin=Td;Polymer.updateStyles=function(A){window.ShadyCSS&&window.ShadyCSS.styleDocument(A)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:KU9};Polymer.html=_.Uep;Polymer.htmlLiteral=function(A){return new i79(A,_.E$.apply(1,arguments))};Polymer.Element=db;Polymer.ArraySelectorMixin=LOW;Polymer.ArraySelector=Fr;var KOM=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,iOK=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,AdA=/@media\s(.*)/;var kbF=null,nGJ=window.HTMLImports&&window.HTMLImports.whenReady||null,INJ;var JH9=null,Gd=null,BT=function(){this.customStyles=[];this.enqueued=!1;H7Y(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},V$p=function(A){!A.enqueued&&Gd&&(A.enqueued=!0,H7Y(Gd))};
BT.prototype.addCustomStyle=function(A){A.__seenByShadyCSS||(A.__seenByShadyCSS=!0,this.customStyles.push(A),V$p(this))};
BT.prototype.getStyleForCustomStyle=function(A){if(A.__shadyCSSCachedStyle)return A.__shadyCSSCachedStyle;var Q;A.getStyle?Q=A.getStyle():Q=A;return Q};
BT.prototype.processStyles=function(){for(var A=this.customStyles,Q=0;Q<A.length;Q++){var b=A[Q];if(!b.__shadyCSSCachedStyle){var f=this.getStyleForCustomStyle(b);f&&(f=f.__appliedElement||f,JH9&&JH9(f),b.__shadyCSSCachedStyle=f)}}return A};
BT.prototype.addCustomStyle=BT.prototype.addCustomStyle;BT.prototype.getStyleForCustomStyle=BT.prototype.getStyleForCustomStyle;BT.prototype.processStyles=BT.prototype.processStyles;Object.defineProperties(BT.prototype,{transformCallback:{get:function(){return JH9},
set:function(A){JH9=A}},
validateCallback:{get:function(){return Gd},
set:function(A){var Q=!1;Gd||(Q=!0);Gd=A;Q&&V$p(this)}}});var qCW=!(window.ShadyDOM&&window.ShadyDOM.inUse),C6A,Ax;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Ax=window.ShadyCSS.cssBuild);var OO$=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?C6A=window.ShadyCSS.nativeCss:window.ShadyCSS?(oGb(window.ShadyCSS),window.ShadyCSS=void 0):oGb(window.WebComponents&&window.WebComponents.flags);var NAC=C6A;var nLv=new BT;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(A,Q){nLv.processStyles();VOW(A,Q)},
styleElement:function(){nLv.processStyles()},
styleDocument:function(A){nLv.processStyles();VOW(document.body,A)},
getComputedStyleValue:function(A,Q){return O7U(A,Q)},
flushCustomStyles:function(){},
nativeCss:NAC,nativeShadow:qCW,cssBuild:Ax,disableRuntime:OO$});window.ShadyCSS.CustomStyleInterface=nLv;var k79=window.ShadyCSS.CustomStyleInterface,pn=function(){var A=HTMLElement.call(this)||this;A._style=null;k79.addCustomStyle(A);return A};
_.O(pn,HTMLElement);pn.prototype.getStyle=function(){if(this._style)return this._style;var A=this.querySelector("style");if(!A)return null;this._style=A;var Q=A.getAttribute("include");Q&&(A.removeAttribute("include"),A.textContent=Urb(Q)+A.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
pn.prototype.getStyle=pn.prototype.getStyle;window.customElements.define("custom-style",pn);Polymer.CustomStyle=pn;var PT=function(){this._timer=this._callback=this._asyncModule=null},Xr,HO9;
PT.prototype.setConfig=function(A,Q){var b=this;this._asyncModule=A;this._callback=Q;this._timer=this._asyncModule.run(function(){b._timer=null;Xr.delete(b);b._callback()})};
PT.prototype.cancel=function(){this.isActive()&&(I51(this),Xr.delete(this))};
var I51=function(A){A.isActive()&&(A._asyncModule.cancel(A._timer),A._timer=null)};
PT.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
PT.prototype.isActive=function(){return this._timer!=null};
_.Sb=function(A,Q,b){A instanceof PT?I51(A):A=new PT;A.setConfig(Q,b);return A};
Xr=new Set;_.U0=function(A){Xr.add(A)};
HO9=function(){var A=!!Xr.size;Xr.forEach(function(Q){try{Q.flush()}catch(b){setTimeout(function(){throw b;})}});
return A};var rbf=typeof document.head.style.touchAction==="string",tOe=["mousedown","mousemove","mouseup","click"],xrF=[0,1,4,2],Cg$;try{Cg$=(new MouseEvent("test",{buttons:1})).buttons===1}catch(A){Cg$=!1}var EG9=Cg$,jc4=!1;(function(){try{var A=Object.defineProperty({},"passive",{get:function(){jc4=!0}});
window.addEventListener("test",null,A);window.removeEventListener("test",null,A)}catch(Q){}})();
var eiF=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),hiW=[],qrL={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},mrY={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},WUe=function(A){var Q=A.sourceCapabilities;if(!Q||Q.firesTouchEvents)if(A.__polymerGesturesHandled={skip:!0},A.type==="click"){Q=!1;for(var b=uw6(A),f=0;f<b.length;f++){if(b[f].nodeType===Node.ELEMENT_NODE)if(b[f].localName==="label")hiW.push(b[f]);
else if(qrL[b[f].localName]){var a=b[f];var T=Array.prototype.slice.call(a.labels||[]);if(!T.length){T=[];try{var G=a.getRootNode();if(a.id){var p=G.querySelectorAll("label[for = '"+a.id+"']");for(a=0;a<p.length;a++)T.push(p[a])}}catch(P){}}for(a=0;a<T.length;a++)Q=Q||hiW.indexOf(T[a])>-1}if(b[f]===oLy)return}Q||(A.preventDefault(),A.stopPropagation())}},oLy=null,Ln=null,ybb=0,YCb=0,Z7A=-1,Dre=!1;
document.addEventListener("touchend",function(A){Ln||vGA(!0);oLy=uw6(A)[0];Ln=_.Sb(Ln,_.Q5.after(2500),function(){vGA();Ln=oLy=null})},jc4?{passive:!0}:!1);
var uw6=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(A){return A.composedPath&&A.composedPath()||[]},gK={},jc=[];
$r6({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){rK(this.info)},
mousedown:function(A){if(tj(A)){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),b=this;zi9(this.info,function(f){tj(f)||(E8("up",Q,f),rK(b.info))},function(f){tj(f)&&E8("up",Q,f);
rK(b.info)});
E8("down",Q,A)}},
touchstart:function(A){E8("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)},
touchend:function(A){E8("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)}});
$r6({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(A){this.moves.length>2&&this.moves.shift();this.moves.push(A)},
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;rK(this.info)},
mousedown:function(A){if(tj(A)){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),b=this,f=function(a){var T=a.clientX,G=a.clientY;NyU(b.info,T,G)&&(b.info.state=b.info.started?a.type==="mouseup"?"end":"track":"start",b.info.state==="start"&&RN("tap"),b.info.addMove({x:T,y:G}),tj(a)||(b.info.state="end",rK(b.info)),Q&&scY(b.info,Q,a),b.info.started=!0)};
zi9(this.info,f,function(a){b.info.started&&f(a);rK(b.info)});
this.info.x=A.clientX;this.info.y=A.clientY}},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchmove:function(A){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];var b=A.clientX,f=A.clientY;NyU(this.info,b,f)&&(this.info.state==="start"&&RN("tap"),this.info.addMove({x:b,y:f}),scY(this.info,Q,A),this.info.state="track",this.info.started=!0)},
touchend:function(A){var Q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:A.clientX,y:A.clientY}),scY(this.info,Q,A))}});
$r6({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(A){tj(A)&&(this.info.x=A.clientX,this.info.y=A.clientY)},
click:function(A){tj(A)&&ArX(this.info,A)},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchend:function(A){ArX(this.info,A.changedTouches[0],A)}});var t$r=b_(function(A){var Q=function(){return A.apply(this,arguments)||this};
_.O(Q,A);Q.prototype._addEventListenerToNode=function(b,f,a){ec(b,f,a)||A.prototype._addEventListenerToNode.call(this,b,f,a)};
Q.prototype._removeEventListenerFromNode=function(b,f,a){hj(b,f,a)||A.prototype._removeEventListenerFromNode.call(this,b,f,a)};
return Q});var MF=b_(function(A){var Q=function(){return A.apply(this,arguments)||this};
_.O(Q,A);Q.prototype._shouldPropertyChange=function(b,f,a){return QIJ(this,b,f,a,!0)};
return Q}),rHv=b_(function(A){var Q=function(){return A.apply(this,arguments)||this};
_.O(Q,A);Q.prototype._shouldPropertyChange=function(b,f,a){return QIJ(this,b,f,a,this.mutableData)};
_.Qr.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return Q});
MF._mutablePropertyChange=QIJ;var beW=!1;var jXy=t$r(rHv(a1(HTMLElement))),l_=function(){var A=jXy.call(this)||this;if(Zf)throw Error("Gd");A.root=null;A.$=null;A.__children=null;return A};
_.O(l_,jXy);_.d=l_.prototype;_.d.attributeChangedCallback=function(){this.mutableData=!0};
_.d.connectedCallback=function(){feX()||(this.style.display="none");this.render()};
_.d.disconnectedCallback=function(){this.__removeChildren()};
_.d.__insertChildren=function(){(0,_.Vu)((0,_.Vu)(this).parentNode).insertBefore(this.root,this)};
_.d.__removeChildren=function(){if(this.__children)for(var A=0;A<this.__children.length;A++)this.root.appendChild(this.__children[A])};
_.d.render=function(){var A=this;if(!this.__children){var Q=Q||this.querySelector("template");if(!Q){var b=new MutationObserver(function(){if(Q=A.querySelector("template"))b.disconnect(),A.render();else throw Error("Hd");});
b.observe(this,{childList:!0});return}this.root=this._stampTemplate(Q);this.$=this.root.$;this.__children=[];for(var f=this.root.firstChild;f;f=f.nextSibling)this.__children[this.__children.length]=f;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Qr.Object.defineProperties(l_,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",l_);Polymer.Debouncer=PT;Polymer.Gestures={gestures:gK,recognizers:jc,deepTargetFind:wZ9,addListener:ec,removeListener:hj,register:$r6,setTouchAction:_.Wt,prevent:RN,resetMouseCanceller:function(){Ln&&Ln.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ec,remove:hj};Polymer.GestureEventListeners=t$r;Polymer.MutableData=MF;Polymer.OptionalMutableData=rHv;Polymer.DomBind=l_;_.Kn=function(){do{var A=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var Q=HO9()}while(A||Q)};var aei=null;TAU.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:TAU,writable:!0}});var S2X=a1(TAU),XDf=MF(S2X),Rmp=a1(function(){}),z9=function(A){var Q=Rmp.call(this)||this;
Q._configureProperties(A);Q.root=Q._stampTemplate(Q.__dataHost);var b=[];Q.children=b;for(var f=Q.root.firstChild;f;f=f.nextSibling)b.push(f),f.__templatizeInstance=Q;Q.__templatizeOwner&&Q.__templatizeOwner.__hideTemplateChildren__&&Q._showHideChildren(!0);b=Q.__templatizeOptions;(A&&b.instanceProps||!b.instanceProps)&&Q._enableProperties();return Q};
_.O(z9,Rmp);_.d=z9.prototype;_.d._configureProperties=function(A){if(this.__templatizeOptions.forwardHostProp)for(var Q in this.__hostProps)this._setPendingProperty(Q,this.__dataHost["_host_"+Q]);for(var b in A)this._setPendingProperty(b,A[b])};
_.d.forwardHostProp=function(A,Q){this._setPendingPropertyOrPath(A,Q,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.d._addEventListenerToNode=function(A,Q,b){var f=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(A,Q,function(T){T.model=f;b(T)});
else{var a=this.__dataHost.__dataHost;a&&a._addEventListenerToNode(A,Q,b)}};
_.d._showHideChildren=function(A){F_A(A,this.children)};
_.d._setUnmanagedPropertyToNode=function(A,Q,b){A.__hideTemplateChildren__&&A.nodeType==Node.TEXT_NODE&&Q=="textContent"?A.__polymerTextContent__=b:Rmp.prototype._setUnmanagedPropertyToNode.call(this,A,Q,b)};
_.d.dispatchEvent=function(){return!0};
_.Qr.Object.defineProperties(z9.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var A=this.__parentModel;if(!A){var Q;A=this;do A=A.__dataHost.__dataHost;while((Q=A.__templatizeOptions)&&!Q.parentModel);this.__parentModel=A}return A}}});
var BAA=MF(z9);var i_=function(){var A=db.call(this)||this;A.__renderDebouncer=null;A._lastIf=!1;A.__hideTemplateChildren__=!1;return A};
_.O(i_,db);_.d=i_.prototype;_.d.__debounceRender=function(){var A=this;this.__renderDebouncer=_.Sb(this.__renderDebouncer,vt,function(){return A.__render()});
_.U0(this.__renderDebouncer)};
_.d.disconnectedCallback=function(){db.prototype.disconnectedCallback.call(this);var A=(0,_.Vu)(this).parentNode;A&&(A.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Vu)(A).host)||this.__teardownInstance()};
_.d.connectedCallback=function(){db.prototype.connectedCallback.call(this);feX()||(this.style.display="none");this.if&&this.__debounceRender()};
_.d.__ensureTemplate=function(){var A=this;if(!this.__template){var Q=this._templateInfo?this:(0,_.Vu)(this).querySelector("template");if(!Q){var b=new MutationObserver(function(){if((0,_.Vu)(A).querySelector("template"))b.disconnect(),A.__render();else throw Error("Kd");});
b.observe(this,{childList:!0});return!1}this.__template=Q}return!0};
_.d.__ensureInstance=function(){var A=(0,_.Vu)(this).parentNode;if(this.__hasInstance()){var Q=this.__getInstanceNodes();if(Q&&Q.length&&(0,_.Vu)(this).previousSibling!==Q[Q.length-1])for(var b=0,f=void 0;b<Q.length&&(f=Q[b]);b++)(0,_.Vu)(A).insertBefore(f,this)}else{if(!A||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(A)}return!0};
_.d.render=function(){_.Kn()};
_.d.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();m2&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.d.__hasInstance=function(){};
_.d.__getInstanceNodes=function(){};
_.d.__createAndInsertInstance=function(){};
_.d.__teardownInstance=function(){};
_.d._showHideChildren=function(){};
_.Qr.Object.defineProperties(i_,{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:i_.prototype.__debounceRender},restamp:{type:Boolean,observer:i_.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var gLM=function(){var A=i_.call(this)||this;A.__instance=null;A.__syncInfo=null;return A};
_.O(gLM,i_);_.d=gLM.prototype;_.d.__hasInstance=function(){return!!this.__instance};
_.d.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.d.__createAndInsertInstance=function(A){var Q=this,b=this.__dataHost||this;if(Zf&&!this.__dataHost)throw Error("Id");var f=b._bindTemplate(this.__template,!0);f.runEffects=function(a,T,G){var p=Q.__syncInfo;if(Q.if)p&&(Q.__syncInfo=null,Q._showHideChildren(),T=Object.assign(p.changedProps,T)),a(T,G);else if(Q.__instance)if(p||(p=Q.__syncInfo={runEffects:a,changedProps:{}}),G)for(var P in T)a=U8(P),p.changedProps[a]=Q.__dataHost[a];else Object.assign(p.changedProps,T)};
this.__instance=b._stampTemplate(this.__template,f);(0,_.Vu)(A).insertBefore(this.__instance,this)};
_.d.__syncHostProperties=function(){var A=this.__syncInfo;A&&(this.__syncInfo=null,A.runEffects(A.changedProps,!1))};
_.d.__teardownInstance=function(){var A=this.__dataHost||this;this.__instance&&(A._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.d._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,F_A(A,this.__instance.templateInfo.childNodes));A||this.__syncHostProperties()};
var emj=function(){var A=i_.call(this)||this;A.__ctor=null;A.__instance=null;A.__invalidProps=null;return A};
_.O(emj,i_);_.d=emj.prototype;_.d.__hasInstance=function(){return!!this.__instance};
_.d.__getInstanceNodes=function(){return this.__instance.children};
_.d.__createAndInsertInstance=function(A){this.__ctor||(this.__ctor=wK(this.__template,this,{mutableData:!0,forwardHostProp:function(Q,b){this.__instance&&(this.if?this.__instance.forwardHostProp(Q,b):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[U8(Q)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Vu)(A).insertBefore(this.__instance.root,this)};
_.d.__teardownInstance=function(){if(this.__instance){var A=this.__instance.children;if(A&&A.length){var Q=(0,_.Vu)(A[0]).parentNode;if(Q){Q=(0,_.Vu)(Q);for(var b=0,f=void 0;b<A.length&&(f=A[b]);b++)Q.removeChild(f)}}this.__instance=this.__invalidProps=null}};
_.d.__syncHostProperties=function(){var A=this.__invalidProps;if(A){this.__invalidProps=null;for(var Q in A)this.__instance._setPendingProperty(Q,this.__dataHost[Q]);this.__instance._flushProperties()}};
_.d._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,this.__instance._showHideChildren(A));A||this.__syncHostProperties()};
_.hu=s1?gLM:emj;customElements.define(_.hu.is,_.hu);Polymer.enqueueDebouncer=_.U0;Polymer.flush=_.Kn;Polymer.Templatize={templatize:wK,modelForElement:ief};Polymer.TemplateInstanceBase=z9;Polymer.DomIf=_.hu;var hmj=rHv(db),eK=function(){var A=hmj.call(this)||this;A.__instances=[];A.__renderDebouncer=null;A.__itemsIdxToInstIdx={};A.__chunkCount=null;A.__renderStartTime=null;A.__itemsArrayChanged=!1;A.__shouldMeasureChunk=!1;A.__shouldContinueChunking=!1;A.__chunkingId=0;A.__sortFn=null;A.__filterFn=null;A.__observePaths=null;A.__ctor=null;A.__isDetached=!0;A.template=null;return A};
_.O(eK,hmj);_.d=eK.prototype;_.d.disconnectedCallback=function(){hmj.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var A=0;A<this.__instances.length;A++)this.__detachInstance(A);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.d.connectedCallback=function(){hmj.prototype.connectedCallback.call(this);feX()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var A=(0,_.Vu)((0,_.Vu)(this).parentNode),Q=0;Q<this.__instances.length;Q++)this.__attachInstance(Q,A);this.__chunkingId&&this.__render()}};
_.d.__ensureTemplatized=function(){var A=this;if(!this.__ctor){var Q=this.template=this._templateInfo?this:this.querySelector("template");if(!Q){var b=new MutationObserver(function(){if(A.querySelector("template"))b.disconnect(),A.__render();else throw Error("Ld");});
b.observe(this,{childList:!0});return!1}var f={};f[this.as]=!0;f[this.indexAs]=!0;f[this.itemsIndexAs]=!0;this.__ctor=wK(Q,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:f,forwardHostProp:function(a,T){for(var G=this.__instances,p=0,P=void 0;p<G.length&&(P=G[p]);p++)P.forwardHostProp(a,T)},
notifyInstanceProp:function(a,T,G){WP9(this.as,T)&&(a=a[this.itemsIndexAs],T==this.as&&(this.items[a]=G),T=MH(this.as,"items."+a,T),this.notifyPath(T,G))}})}return!0};
_.d.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.d.__functionFromPropertyValue=function(A){if(typeof A==="string"){var Q=this.__getMethodHost();return function(){return Q[A].apply(Q,arguments)}}return A};
_.d.__sortChanged=function(A){this.__sortFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.d.__filterChanged=function(A){this.__filterFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.d.__computeFrameTime=function(A){return Math.ceil(1E3/A)};
_.d.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.d.__handleObservedPaths=function(A){if(this.__sortFn||this.__filterFn)if(!A)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var Q=this.__observePaths,b=0;b<Q.length;b++)A.indexOf(Q[b])===0&&this.__debounceRender(this.__render,this.delay)};
_.d.__itemsChanged=function(A){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(A.path,A.value)||(A.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.d.__debounceRender=function(A,Q){Q=Q===void 0?0:Q;this.__renderDebouncer=_.Sb(this.__renderDebouncer,Q>0?_.Q5.after(Q):vt,A.bind(this));_.U0(this.__renderDebouncer)};
_.d.render=function(){this.__debounceRender(this.__render);_.Kn()};
_.d.__render=function(){var A=this;if(this.__ensureTemplatized()){var Q=this.items||[],b=this.__sortAndFilterItems(Q),f=this.__calculateLimit(b.length);this.__updateInstances(Q,f,b);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){A.__chunkingId=null;A.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);m2&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.d.__sortAndFilterItems=function(A){for(var Q=this,b=Array(A.length),f=0;f<A.length;f++)b[f]=f;this.__filterFn&&(b=b.filter(function(a,T,G){return Q.__filterFn(A[a],T,G)}));
this.__sortFn&&b.sort(function(a,T){return Q.__sortFn(A[a],A[T])});
return b};
_.d.__calculateLimit=function(A){var Q=A,b=this.__instances.length;if(this.initialCount){var f;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(Q=Math.min(A,this.initialCount),this.__chunkCount=(f=Math.max(Q-b,0))||1):(f=Math.min(Math.max(A-b,0),this.__chunkCount),Q=Math.min(b+f,A));this.__shouldMeasureChunk=f===this.__chunkCount;this.__shouldContinueChunking=Q<A;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return Q};
_.d.__continueChunking=function(){if(this.__shouldMeasureChunk){var A=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/A*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.d.__updateInstances=function(A,Q,b){var f=this.__itemsIdxToInstIdx={},a;for(a=0;a<Q;a++){var T=this.__instances[a],G=b[a],p=A[G];f[G]=a;T?(T._setPendingProperty(this.as,p),T._setPendingProperty(this.indexAs,a),T._setPendingProperty(this.itemsIndexAs,G),T._flushProperties()):this.__insertInstance(p,a,G)}for(A=this.__instances.length-1;A>=a;A--)this.__detachAndRemoveInstance(A)};
_.d.__detachInstance=function(A){A=this.__instances[A];for(var Q=(0,_.Vu)(A.root),b=0;b<A.children.length;b++)Q.appendChild(A.children[b]);return A};
_.d.__attachInstance=function(A,Q){Q.insertBefore(this.__instances[A].root,this)};
_.d.__detachAndRemoveInstance=function(A){this.__detachInstance(A);this.__instances.splice(A,1)};
_.d.__stampInstance=function(A,Q,b){var f={};f[this.as]=A;f[this.indexAs]=Q;f[this.itemsIndexAs]=b;return new this.__ctor(f)};
_.d.__insertInstance=function(A,Q,b){A=this.__stampInstance(A,Q,b);b=(b=this.__instances[Q+1])?b.children[0]:this;(0,_.Vu)((0,_.Vu)(this).parentNode).insertBefore(A.root,b);return this.__instances[Q]=A};
_.d._showHideChildren=function(A){for(var Q=0;Q<this.__instances.length;Q++)this.__instances[Q]._showHideChildren(A)};
_.d.__handleItemPath=function(A,Q){var b=A.slice(6),f=b.indexOf(".");A=f<0?b:b.substring(0,f);if(A==parseInt(A,10)){b=f<0?"":b.substring(f+1);this.__handleObservedPaths(b);if(A=this.__instances[this.__itemsIdxToInstIdx[A]])A._setPendingPropertyOrPath(this.as+(b?"."+b:""),Q,!1,!0),A._flushProperties();return!0}};
_.d.itemForElement=function(A){return(A=this.modelForElement(A))&&A[this.as]};
_.d.indexForElement=function(A){return(A=this.modelForElement(A))&&A[this.indexAs]};
_.d.modelForElement=function(A){return ief(this.template,A)};
_.Qr.Object.defineProperties(eK,{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:eK.prototype.__sortChanged},filter:{type:Function,observer:eK.prototype.__filterChanged},observe:{type:String,observer:eK.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!m2,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.*)"]}}});
eK.prototype._setRenderedItemCount=function(){};
customElements.define(eK.is,eK);Polymer.DomRepeat=eK;var WON=function(A,Q){var b=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=A;this.callback=Q;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){b._schedule()};
this.connect();this._schedule()},vLj=function(A){var Q=(0,_.Vu)(A);
if(yu(A))return Q.assignedNodes({flatten:!0});A=[];for(var b=0;b<Q.childNodes.length;b++){var f=Q.childNodes[b];yu(f)?A.push.apply(A,_.ri((0,_.Vu)(f).assignedNodes({flatten:!0}))):A.push(f)}return A};
_.d=WON.prototype;_.d.connect=function(){var A=this;yu(this._target)?this._listenSlots([this._target]):(0,_.Vu)(this._target).children&&(this._listenSlots((0,_.Vu)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(Q){A._processMutations(Q)}):(this._nativeChildrenObserver=new MutationObserver(function(Q){A._processMutations(Q)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.d.disconnect=function(){yu(this._target)?this._unlistenSlots([this._target]):(0,_.Vu)(this._target).children&&(this._unlistenSlots((0,_.Vu)(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};
_.d._schedule=function(){var A=this;this._scheduled||(this._scheduled=!0,vt.run(function(){return A.flush()}))};
_.d._processMutations=function(A){this._processSlotMutations(A);this.flush()};
_.d._processSlotMutations=function(A){if(A)for(var Q=0;Q<A.length;Q++){var b=A[Q];b.addedNodes&&this._listenSlots(b.addedNodes);b.removedNodes&&this._unlistenSlots(b.removedNodes)}};
_.d.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 A={target:this._target,addedNodes:[],removedNodes:[]},Q=vLj(this._target),b=KU9(Q,this._effectiveNodes),f=0,a=void 0;f<b.length&&(a=b[f]);f++)for(var T=0,G=void 0;T<a.removed.length&&(G=a.removed[T]);T++)A.removedNodes.push(G);
f=0;for(a=void 0;f<b.length&&(a=b[f]);f++)for(T=a.index;T<a.index+a.addedCount;T++)A.addedNodes.push(Q[T]);this._effectiveNodes=Q;Q=!1;if(A.addedNodes.length||A.removedNodes.length)Q=!0,this.callback.call(this._target,A);return Q};
_.d._listenSlots=function(A){for(var Q=0;Q<A.length;Q++){var b=A[Q];yu(b)&&b.addEventListener("slotchange",this._boundSchedule)}};
_.d._unlistenSlots=function(A){for(var Q=0;Q<A.length;Q++){var b=A[Q];yu(b)&&b.removeEventListener("slotchange",this._boundSchedule)}};var J2=Element.prototype,ELL=J2.matches||J2.matchesSelector||J2.mozMatchesSelector||J2.msMatchesSelector||J2.oMatchesSelector||J2.webkitMatchesSelector,xe9=function(A,Q){return ELL.call(A,Q)},Yw=function(A){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(A);
this.node=A},ugN;
_.d=Yw.prototype;_.d.observeNodes=function(A){return new WON(this.node,A)};
_.d.unobserveNodes=function(A){A.disconnect()};
_.d.notifyObserver=function(){};
_.d.deepContains=function(A){if((0,_.Vu)(this.node).contains(A))return!0;var Q=A;for(A=A.ownerDocument;Q&&Q!==A&&Q!==this.node;)Q=(0,_.Vu)(Q).parentNode||(0,_.Vu)(Q).host;return Q===this.node};
_.d.getOwnerRoot=function(){return(0,_.Vu)(this.node).getRootNode()};
_.d.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Vu)(this.node).assignedNodes({flatten:!0}):[]};
_.d.getDestinationInsertionPoints=function(){for(var A=[],Q=(0,_.Vu)(this.node).assignedSlot;Q;)A.push(Q),Q=(0,_.Vu)(Q).assignedSlot;return A};
_.d.importNode=function(A,Q){return(0,_.Vu)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(A,Q)};
_.d.getEffectiveChildNodes=function(){return vLj(this.node)};
_.d.queryDistributedElements=function(A){for(var Q=this.getEffectiveChildNodes(),b=[],f=0,a=Q.length,T=void 0;f<a&&(T=Q[f]);f++)T.nodeType===Node.ELEMENT_NODE&&xe9(T,A)&&b.push(T);return b};
_.Qr.Object.defineProperties(Yw.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var A=this.node;return A._activeElement!==void 0?A._activeElement:A.activeElement}}});
var V5=function(A){this.event=A};
_.Qr.Object.defineProperties(V5.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 cHp=Yw;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var zm9=window.ShadyDOM.Wrapper,wOM=function(){return zm9.apply(this,arguments)||this};
_.O(wOM,zm9);Object.getOwnPropertyNames(Yw.prototype).forEach(function(A){A!="activeElement"&&A!="constructor"&&(wOM.prototype[A]=Yw.prototype[A])});
V1A(wOM.prototype,["classList"]);cHp=wOM;Object.defineProperties(V5.prototype,{localTarget:{get:function(){var A=this.event.currentTarget;A=A&&_.oi(A).getOwnerRoot();for(var Q=this.path,b=0;b<Q.length;b++){var f=Q[b];if(_.oi(f).getOwnerRoot()===A)return f}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Jrb(),V1A(Yw.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Oef();ugN=cHp;_.oi=function(A){A=A||document;if(A instanceof cHp)return A;if(A instanceof V5)return A;var Q=A.__domApi;Q||(A instanceof Event?Q=new V5(A):Q=new cHp(A),A.__domApi=Q);return Q};var ZOK=/:host\(:dir\((ltr|rtl)\)\)/g,yH9=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Yr9=/:dir\((?:ltr|rtl)\)/,Der=!(!window.ShadyDOM||!window.ShadyDOM.inUse),$w=[],O0=null,Df="",$eW=b_(function(A){Der||O0||(Df=document.documentElement.getAttribute("dir"),O0=new MutationObserver(nUb),O0.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var Q=QXj(A);A=function(){var b=Q.call(this)||this;b.__autoDirOptOut=!1;return b};
_.O(A,Q);A._processStyleText=function(b,f){b=Q._processStyleText.call(this,b,f);!Der&&Yr9.test(b)&&(b=this._replaceDirInCssText(b),this.__activateDir=!0);return b};
A._replaceDirInCssText=function(b){b=b.replace(ZOK,':host([dir="$1"])');return b=b.replace(yH9,':host([dir="$2"]) $1')};
A.prototype.ready=function(){Q.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
A.prototype.connectedCallback=function(){Q.prototype.connectedCallback&&Q.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(O0&&O0.takeRecords().length&&nUb(),$w.push(this),this.__autoDirOptOut||this.setAttribute("dir",Df))};
A.prototype.disconnectedCallback=function(){Q.prototype.disconnectedCallback&&Q.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var b=$w.indexOf(this);b>-1&&$w.splice(b,1)}};
A.__activateDir=!1;return A});var Nsr=function(A){for(;A;){var Q=Object.getOwnPropertyDescriptor(A,"observedAttributes");if(Q)return Q.get;A=Object.getPrototypeOf(A.prototype).constructor}return function(){return[]}};
b_(function(A){var Q=Td(A),b=Nsr(Q);A=function(){return Q.call(this)||this};
_.O(A,Q);A.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:Q.prototype._initializeProperties.call(this)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||Q.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(f){return Q.prototype._canApplyPropertyDefault.call(this,f)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(f))};
A.prototype.attributeChangedCallback=function(f,a,T,G){f=="disable-upgrade"?this.__isUpgradeDisabled&&T==null&&(Q.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Vu)(this).isConnected&&Q.prototype.connectedCallback.call(this)):Q.prototype.attributeChangedCallback.call(this,f,a,T,G)};
A.prototype.connectedCallback=function(){this.__isUpgradeDisabled||Q.prototype.connectedCallback.call(this)};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||Q.prototype.disconnectedCallback.call(this)};
_.Qr.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return b.call(this).concat("disable-upgrade")}}});
return A});var NH=!1,Ieb=[],s8=[];var oUY=window.ShadyDOM,t1A=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",jIY):document.readyState==="interactive"||document.readyState==="complete"?jIY():window.addEventListener("DOMContentLoaded",jIY);var ejb=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=""},RjA=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,gUW=/@import[^;]*;/gim,cri=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,zjU=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,wDf=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,uYy=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,EUJ=/^@[^\s]*keyframes/,
vUU=/\s+/g;var Zeb={};var DPU=Promise.resolve();var sXL=new Set;var meW=/;\s*/m,AEx=/^\s*(initial)|(inherit)\s*$/,QzK=/\s*!important/,bTL=function(){this._map={}};
bTL.prototype.set=function(A,Q){A=A.trim();this._map[A]={properties:Q,dependants:{}}};
bTL.prototype.get=function(A){A=A.trim();return this._map[A]||null};
var fkL=null,nn=function(){this._measureElement=this._currentElement=null;this._map=new bTL};
_.d=nn.prototype;_.d.detectMixin=function(A){A=iOK.test(A)||KOM.test(A);iOK.lastIndex=0;KOM.lastIndex=0;return A};
_.d.transformTemplate=function(A,Q){if(A._gatheredStyle===void 0){var b=[];for(var f=A.content.querySelectorAll("style"),a=0;a<f.length;a++){var T=f[a];if(T.hasAttribute("shady-unscoped")){if(!qCW){var G=T.textContent;if(!sXL.has(G)){sXL.add(G);var p=document.createElement("style");p.setAttribute("shady-unscoped","");p.textContent=G;document.head.appendChild(p)}T.parentNode.removeChild(T)}}else b.push(T.textContent),T.parentNode.removeChild(T)}(b=b.join("").trim())?(f=document.createElement("style"),
f.textContent=b,A.content.insertBefore(f,A.content.firstChild),b=f):b=null;A._gatheredStyle=b}return(A=A._gatheredStyle)?this.JSC$11151_transformStyle(A,Q):null};
_.d.JSC$11151_transformStyle=function(A,Q){Q=Q===void 0?"":Q;var b=mPC(A);this.transformRules(b,Q);A.textContent=sI6(b);return b};
_.d.transformCustomStyle=function(A){var Q=this,b=mPC(A);QBW(b,function(f){f.selector===":root"&&(f.selector="html");Q.transformRule(f)});
A.textContent=sI6(b);return b};
_.d.transformRules=function(A,Q){var b=this;this._currentElement=Q;QBW(A,function(f){b.transformRule(f)});
this._currentElement=null};
_.d.transformRule=function(A){A.cssText=ak9(this,A.parsedCssText,A);A.selector===":root"&&(A.selector=":host > *")};
var ak9=function(A,Q,b){Q=Q.replace(KOM,function(f,a,T,G){return A._produceCssProperties(f,a,T,G,b)});
return A._consumeCssProperties(Q,b)};
_.d=nn.prototype;_.d._getInitialValueForProperty=function(A){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(A)};
_.d._fallbacksFromPreviousRules=function(A){for(var Q=this,b=A;b.parent;)b=b.parent;var f={},a=!1;QBW(b,function(T){(a=a||T===A)||T.selector===A.selector&&Object.assign(f,Q._cssTextToMap(T.parsedCssText))});
return f};
_.d._consumeCssProperties=function(A,Q){for(var b;b=iOK.exec(A);){var f=b[0],a=b[1];b=b.index;var T=b+f.indexOf("@apply"),G=b+f.length;f=A.slice(0,T);A=A.slice(G);T=Q?this._fallbacksFromPreviousRules(Q):{};Object.assign(T,this._cssTextToMap(f));a=this._atApplyToCssProperties(a,T);A=f+a+A;iOK.lastIndex=b+a.length}return A};
_.d._atApplyToCssProperties=function(A,Q){A=A.replace(meW,"");var b=[],f=this._map.get(A);f||(this._map.set(A,{}),f=this._map.get(A));if(f){this._currentElement&&(f.dependants[this._currentElement]=!0);var a,T=f.properties;for(a in T){var G=Q&&Q[a];f=[a,": var(",A,"_-_",a];G&&f.push(",",G.replace(QzK,""));f.push(")");QzK.test(T[a])&&f.push(" !important");b.push(f.join(""))}}return b.join("; ")};
_.d._replaceInitialOrInherit=function(A,Q){var b=AEx.exec(Q);b&&(Q=b[1]?this._getInitialValueForProperty(A):"apply-shim-inherit");return Q};
_.d._cssTextToMap=function(A,Q){Q=Q===void 0?!1:Q;A=A.split(";");for(var b,f,a={},T=0;T<A.length;T++)if(b=A[T])f=b.split(":"),f.length>1&&(b=f[0].trim(),f=f.slice(1).join(":"),Q&&(f=this._replaceInitialOrInherit(b,f)),a[b]=f);return a};
_.d._invalidateMixinEntry=function(A){if(fkL)for(var Q in A.dependants)Q!==this._currentElement&&fkL(Q)};
_.d._produceCssProperties=function(A,Q,b,f,a){var T=this;b&&bw9(b,function(n,t){t&&T._map.get(t)&&(f="@apply "+t+";")});
if(!f)return A;var G=this._consumeCssProperties(""+f,a);a=A.slice(0,A.indexOf("--"));var p=G=this._cssTextToMap(G,!0),P=this._map.get(Q),U=P&&P.properties;U?p=Object.assign(Object.create(U),G):this._map.set(Q,p);var L=[],M,l=!1;for(M in p){var J=G[M];J===void 0&&(J="initial");!U||M in U||(l=!0);L.push(Q+"_-_"+M+": "+J)}l&&this._invalidateMixinEntry(P);P&&(P.properties=p);b&&(a=A+";"+a);return a+L.join("; ")+";"};
nn.prototype.detectMixin=nn.prototype.detectMixin;nn.prototype.transformStyle=nn.prototype.JSC$11151_transformStyle;nn.prototype.transformCustomStyle=nn.prototype.transformCustomStyle;nn.prototype.transformRules=nn.prototype.transformRules;nn.prototype.transformRule=nn.prototype.transformRule;nn.prototype.transformTemplate=nn.prototype.transformTemplate;nn.prototype._separator="_-_";Object.defineProperty(nn.prototype,"invalidCallback",{get:function(){return fkL},
set:function(A){fkL=A}});var k7=new nn,T6K=function(){this.customStyleInterface=null;k7.invalidCallback=yri},I1=function(A){!A.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(A.customStyleInterface=window.ShadyCSS.CustomStyleInterface,A.customStyleInterface.transformCallback=function(Q){k7.transformCustomStyle(Q)},A.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){A.customStyleInterface.enqueued&&A.flushCustomStyles()})})};
_.d=T6K.prototype;_.d.prepareTemplate=function(A,Q){I1(this);fW6(A)===""&&(Zeb[Q]=A,Q=k7.transformTemplate(A,Q),A._styleAst=Q)};
_.d.flushCustomStyles=function(){I1(this);if(this.customStyleInterface){var A=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var Q=0;Q<A.length;Q++){var b=this.customStyleInterface.getStyleForCustomStyle(A[Q]);b&&k7.transformCustomStyle(b)}this.customStyleInterface.enqueued=!1}}};
_.d.styleSubtree=function(A,Q){I1(this);Q&&VOW(A,Q);if(A.shadowRoot)for(this.styleElement(A),A=A.shadowRoot.children||A.shadowRoot.childNodes,Q=0;Q<A.length;Q++)this.styleSubtree(A[Q]);else for(A=A.children||A.childNodes,Q=0;Q<A.length;Q++)this.styleSubtree(A[Q])};
_.d.styleElement=function(A){I1(this);var Q=A.localName,b;Q?Q.indexOf("-")>-1?b=Q:b=A.getAttribute&&A.getAttribute("is")||"":b=A.is;Q=Zeb[b];if(!(Q&&fW6(Q)!==""||!Q||Y2J(Q))){if(Y2J(Q)||Q._applyShimValidatingVersion!==Q._applyShimNextVersion)this.prepareTemplate(Q,b),$PW(Q);if(A=A.shadowRoot)if(A=A.querySelector("style"))A.__cssRules=Q._styleAst,A.textContent=sI6(Q._styleAst)}};
_.d.styleDocument=function(A){I1(this);this.styleSubtree(document.body,A)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var HT=new T6K,dj9=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(A,Q){HT.flushCustomStyles();HT.prepareTemplate(A,Q)},
prepareTemplateStyles:function(A,Q,b){window.ShadyCSS.prepareTemplate(A,Q,b)},
prepareTemplateDom:function(){},
styleSubtree:function(A,Q){HT.flushCustomStyles();HT.styleSubtree(A,Q)},
styleElement:function(A){HT.flushCustomStyles();HT.styleElement(A)},
styleDocument:function(A){HT.flushCustomStyles();HT.styleDocument(A)},
getComputedStyleValue:function(A,Q){return O7U(A,Q)},
flushCustomStyles:function(){HT.flushCustomStyles()},
nativeCss:NAC,nativeShadow:qCW,cssBuild:Ax,disableRuntime:OO$};dj9&&(window.ShadyCSS.CustomStyleInterface=dj9)}window.ShadyCSS.ApplyShim=k7;var FWM;FWM=window.ShadyCSS;_.Cn=b_(function(A){A=t$r(Td(A));var Q=PgY?A:$eW(A),b=Nsr(Q),f={x:"pan-x",y:"pan-y",none:"none",all:"auto"};A=function(){return Q.call(this)||this};
_.O(A,Q);A.prototype.created=function(){};
A.prototype.__attributeReaction=function(a,T,G){(this.__dataAttributes&&this.__dataAttributes[a]||a==="disable-upgrade")&&this.attributeChangedCallback(a,T,G,null)};
A.prototype.setAttribute=function(a,T){if(v_K&&!this._legacyForceObservedAttributes){var G=this.getAttribute(a);Q.prototype.setAttribute.call(this,a,T);this.__attributeReaction(a,G,String(T))}else Q.prototype.setAttribute.call(this,a,T)};
A.prototype.removeAttribute=function(a){if(v_K&&!this._legacyForceObservedAttributes){var T=this.getAttribute(a);Q.prototype.removeAttribute.call(this,a);this.__attributeReaction(a,T,null)}else Q.prototype.removeAttribute.call(this,a)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||Q.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(a){return Q.prototype._canApplyPropertyDefault.call(this,a)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(a))};
A.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(Q.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
A.prototype.attached=function(){};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(Q.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
A.prototype.detached=function(){};
A.prototype.attributeChangedCallback=function(a,T,G,p){T!==G&&(a=="disable-upgrade"?this.__isUpgradeDisabled&&G==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Vu)(this).isConnected&&this.connectedCallback()):(Q.prototype.attributeChangedCallback.call(this,a,T,G,p),this.attributeChanged(a,T,G)))};
A.prototype.attributeChanged=function(){};
A.prototype._initializeProperties=function(){if(xw&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var a=Object.getPrototypeOf(this);a.hasOwnProperty("__hasRegisterFinished")||(this._registered(),a.__hasRegisterFinished=!0);Q.prototype._initializeProperties.call(this);this.root=this;this.created();v_K&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
A.prototype._takeAttributes=function(){for(var a=this.attributes,T=0,G=a.length;T<G;T++){var p=a[T];this.__attributeReaction(p.name,null,p.value)}};
A.prototype._registered=function(){};
A.prototype.ready=function(){this._ensureAttributes();Q.prototype.ready.call(this)};
A.prototype._ensureAttributes=function(){};
A.prototype._applyListeners=function(){};
A.prototype.serialize=function(a){return this._serializeValue(a)};
A.prototype.deserialize=function(a,T){return this._deserializeValue(a,T)};
A.prototype.reflectPropertyToAttribute=function(a,T,G){this._propertyToAttribute(a,T,G)};
A.prototype.serializeValueToAttribute=function(a,T,G){this._valueToNodeAttribute(G||this,a,T)};
A.prototype.extend=function(a,T){if(!a||!T)return a||T;for(var G=Object.getOwnPropertyNames(T),p=0,P=void 0;p<G.length&&(P=G[p]);p++){var U=Object.getOwnPropertyDescriptor(T,P);U&&Object.defineProperty(a,P,U)}return a};
A.prototype.mixin=function(a,T){for(var G in T)a[G]=T[G];return a};
A.prototype.chainObject=function(a,T){a&&T&&a!==T&&(a.__proto__=T);return a};
A.prototype.instanceTemplate=function(a){a=this.constructor._contentForTemplate(a);return document.importNode(a,!0)};
A.prototype.fire=function(a,T,G){G=G||{};T=T===null||T===void 0?{}:T;a=new Event(a,{bubbles:G.bubbles===void 0?!0:G.bubbles,cancelable:!!G.cancelable,composed:G.composed===void 0?!0:G.composed});a.detail=T;(0,_.Vu)(G.node||this).dispatchEvent(a);return a};
A.prototype.listen=function(a,T,G){a=a||this;var p=this.__boundListeners||(this.__boundListeners=new WeakMap),P=p.get(a);P||(P={},p.set(a,P));p=T+G;P[p]||(P[p]=this._addMethodEventListenerToNode(a,T,G,this))};
A.prototype.unlisten=function(a,T,G){a=a||this;var p=this.__boundListeners&&this.__boundListeners.get(a);G=T+G;var P=p&&p[G];P&&(this._removeEventListenerFromNode(a,T,P),p[G]=null)};
A.prototype.setScrollDirection=function(a,T){_.Wt(T||this,f[a]||"auto")};
A.prototype.$$=function(a){return this.root.querySelector(a)};
A.prototype.distributeContent=function(){var a=_.oi(this);window.ShadyDOM&&a.shadowRoot&&ShadyDOM.flush()};
A.prototype.getEffectiveChildNodes=function(){return _.oi(this).getEffectiveChildNodes()};
A.prototype.queryDistributedElements=function(a){return _.oi(this).queryDistributedElements(a)};
A.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(a){return a.nodeType===Node.ELEMENT_NODE})};
A.prototype.getEffectiveTextContent=function(){for(var a=this.getEffectiveChildNodes(),T=[],G=0,p;p=a[G];G++)p.nodeType!==Node.COMMENT_NODE&&T.push(p.textContent);return T.join("")};
A.prototype.queryEffectiveChildren=function(a){return(a=this.queryDistributedElements(a))&&a[0]};
A.prototype.queryAllEffectiveChildren=function(a){return this.queryDistributedElements(a)};
A.prototype.getContentChildNodes=function(a){return(a=this.root.querySelector(a||"slot"))?_.oi(a).getDistributedNodes():[]};
A.prototype.getContentChildren=function(a){return this.getContentChildNodes(a).filter(function(T){return T.nodeType===Node.ELEMENT_NODE})};
A.prototype.isLightDescendant=function(a){return this!==a&&(0,_.Vu)(this).contains(a)&&(0,_.Vu)(this).getRootNode()===(0,_.Vu)(a).getRootNode()};
A.prototype.isLocalDescendant=function(a){return this.root===(0,_.Vu)(a).getRootNode()};
A.prototype.scopeSubtree=function(a,T){return rre(a,T===void 0?!1:T)};
A.prototype.getComputedStyleValue=function(a){return FWM.getComputedStyleValue(this,a)};
A.prototype.debounce=function(a,T,G){this._debouncers=this._debouncers||{};return this._debouncers[a]=_.Sb(this._debouncers[a],G>0?_.Q5.after(G):vt,T.bind(this))};
A.prototype.isDebouncerActive=function(a){this._debouncers=this._debouncers||{};a=this._debouncers[a];return!(!a||!a.isActive())};
A.prototype.flushDebouncer=function(a){this._debouncers=this._debouncers||{};(a=this._debouncers[a])&&a.flush()};
A.prototype.cancelDebouncer=function(a){this._debouncers=this._debouncers||{};(a=this._debouncers[a])&&a.cancel()};
A.prototype.async=function(a,T){return T>0?_.Q5.run(a.bind(this),T):~vt.run(a.bind(this))};
A.prototype.cancelAsync=function(a){a<0?vt.cancel(~a):_.Q5.cancel(a)};
A.prototype.create=function(a,T){a=document.createElement(a);if(T)if(a.setProperties)a.setProperties(T);else for(var G in T)a[G]=T[G];return a};
A.prototype.elementMatches=function(a,T){return xe9(T||this,a)};
A.prototype.toggleAttribute=function(a,T){var G=this;arguments.length===3&&(G=arguments[2]);arguments.length==1&&(T=!G.hasAttribute(a));if(T)return(0,_.Vu)(G).setAttribute(a,""),!0;(0,_.Vu)(G).removeAttribute(a);return!1};
A.prototype.toggleClass=function(a,T,G){G=G||this;arguments.length==1&&(T=!G.classList.contains(a));T?G.classList.add(a):G.classList.remove(a)};
A.prototype.transform=function(a,T){T=T||this;T.style.webkitTransform=a;T.style.transform=a};
A.prototype.translate3d=function(a,T,G,p){this.transform("translate3d("+a+","+T+","+G+")",p||this)};
A.prototype.arrayDelete=function(a,T){if(Array.isArray(a)){if(T=a.indexOf(T),T>=0)return a.splice(T,1)}else if(T=Kk(this,a).indexOf(T),T>=0)return this.splice(a,T,1);return null};
A.prototype._logger=function(a,T){Array.isArray(T)&&T.length===1&&Array.isArray(T[0])&&(T=T[0]);switch(a){case "log":case "warn":case "error":console[a].apply(console,_.ri(T))}};
A.prototype._log=function(){this._logger("log",_.E$.apply(0,arguments))};
A.prototype._warn=function(){this._logger("warn",_.E$.apply(0,arguments))};
A.prototype._error=function(){this._logger("error",_.E$.apply(0,arguments))};
A.prototype._logf=function(a){return["[%s::%s]",this.is,a].concat(_.ri(_.E$.apply(1,arguments)))};
_.Qr.Object.defineProperties(A.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var a=(0,_.Vu)(this).getRootNode();return a instanceof DocumentFragment?a.host:a}}});
_.Qr.Object.defineProperties(A,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return v_K&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],tQ4(this.prototype)),this.__observedAttributes):b.call(this).concat("disable-upgrade")}}});
A.prototype.is="";return A});Polymer.FlattenedNodesObserver=WON;Polymer.DomApi=ugN;Polymer.EventApi=V5;Polymer.dom=_.oi;Polymer.dom.matchesSelector=xe9;Polymer.dom.flush=_.Kn;Polymer.dom.addDebouncer=_.U0;Polymer.DirMixin=$eW;Polymer.RenderStatus={beforeNextRender:_.q29,afterNextRender:_.mL,flush:function(){for(;Ieb.length||s8.length;)k0Y(Ieb),k0Y(s8);NH=!1}};Polymer.LegacyElementMixin=_.Cn;var Gx$;Gx$=MF._mutablePropertyChange;var B6L={properties:{mutableData:Boolean},_shouldPropertyChange:function(A,Q,b){return Gx$(this,A,Q,b,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(A,Q,b){return Gx$(this,A,Q,b,!0)}};
Polymer.OptionalMutableDataBehavior=B6L;var aWW={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Bhi={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},GNi=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Bhi),pYM=(0,_.Cn)(HTMLElement),su9=function(A,Q){A||console.warn("Polymer.Class requires `info` argument");Q=Q?Q(pYM):pYM;Q=pki(A,Q,A.behaviors);Q.is=Q.prototype.is=
A.is;return Q};Polymer.Class=su9;Polymer.mixinBehaviors=function(A,Q){return pki({},(0,_.Cn)(Q),A)};
Polymer.GenerateClassFromInfo=pki;_.gn=function(A){var Q=typeof A==="function"?A:_.gn.Class(A);A._legacyForceObservedAttributes&&(Q.prototype._legacyForceObservedAttributes=A._legacyForceObservedAttributes);customElements.define(Q.is,Q);return Q};
_.gn.Class=su9;Polymer._polymerFn=_.gn;var PBj=window.onLegacyPolymerFunctionDefinedCallback;PBj&&PBj();var A_W={templatize:function(A,Q){this._templatizerTemplate=A;this.ctor=wK(A,this,{mutableData:!!Q,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(A){return new this.ctor(A)},
modelForElement:function(A){return ief(this._templatizerTemplate,A)}};Polymer.Templatizer=A_W;_.qF=(0,_.Cn)(HTMLElement).prototype;Polymer.Base=_.qF;var XkX=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.bh=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(_.bh,PolymerFakeBaseClass);var f1=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.O(f1,PolymerFakeBaseClass);var SJe=Symbol("Md"),VEC=[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 XYL=XYL||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},SYL;(function(A){function Q(w,u,y){var a9=D.get(w);if(!a9){if(!y)return;a9=new e;D.set(w,a9)}w=a9.get(u);if(!w){if(!y)return;w=new e;a9.set(u,w)}return w}
function b(w,u,y){if(f(w,u,y))return!0;u=l(u);return u!==null?b(w,u,y):!1}
function f(w,u,y){u=Q(u,y,!1);return u===void 0?!1:!!u.has(w)}
function a(w,u,y){if(f(w,u,y))return T(w,u,y);u=l(u);if(u!==null)return a(w,u,y)}
function T(w,u,y){u=Q(u,y,!1);if(u!==void 0)return u.get(w)}
function G(w,u){var y=p(w,u);w=l(w);if(w===null)return y;var a9=G(w,u);if(a9.length<=0)return y;if(y.length<=0)return a9;u=new x;w=[];y=_.F(y);for(var pF=y.next();!pF.done;pF=y.next())pF=pF.value,u.has(pF)||(u.add(pF),w.push(pF));y=_.F(a9);for(a9=y.next();!a9.done;a9=y.next())a9=a9.value,u.has(a9)||(u.add(a9),w.push(a9));return w}
function p(w,u){w=Q(w,u,!1);var y=[];w&&w.forEach(function(a9,pF){return y.push(pF)});
return y}
function P(w){return w===void 0}
function U(w){return typeof w==="object"?w!==null:typeof w==="function"}
function L(w){return typeof w==="function"}
function M(w){return typeof w==="symbol"?w:String(w)}
function l(w){var u=Object.getPrototypeOf(w);if(typeof w!=="function"||w===g||u!==g)return u;var y=Object.getPrototypeOf(w.prototype);if(y==null||y===Object.prototype)return u;y=y.constructor;return typeof y!=="function"||y===w?u:y}
function J(){function w(){this._keys=[];this._values=[];this._cache=u}
var u={};w.prototype={get size(){return this._keys.length},has:function(y){return y===this._cache?!0:this._find(y)>=0?(this._cache=y,!0):!1},
get:function(y){var a9=this._find(y);if(a9>=0)return this._cache=y,this._values[a9]},
set:function(y,a9){this.delete(y);this._keys.push(y);this._values.push(a9);this._cache=y;return this},
delete:function(y){y=this._find(y);return y>=0?(this._keys.splice(y,1),this._values.splice(y,1),this._cache=u,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=u},
forEach:function(y){for(var a9=this.size,pF=0;pF<a9;++pF){var Ub=this._keys[pF],Ob=this._values[pF];this._cache=Ub;y.call(this,Ob,Ub,this)}},
_find:function(y){for(var a9=this._keys,pF=a9.length,Ub=0;Ub<pF;++Ub)if(a9[Ub]===y)return Ub;return-1}};
return w}
function n(){function w(){this._map=new e}
w.prototype={get size(){return this._map.length},has:function(u){return this._map.has(u)},
add:function(u){this._map.set(u,u);return this},
delete:function(u){return this._map.delete(u)},
clear:function(){this._map.clear()},
forEach:function(u,y){this._map.forEach(u,y)}};
return w}
function t(){function w(){this._key=y()}
function u(iy,wW){for(var h4=0;h4<wW;++h4)iy[h4]=Math.random()*255|0}
function y(){do{if(pF)var iy=pF.randomBytes(16);else typeof Uint8Array==="function"?(iy=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(iy):u(iy,16)):(iy=Array(16),u(iy,16));iy[6]=iy[6]&79|64;iy[8]=iy[8]&191|128;for(var wW="",h4=0;h4<16;++h4){var SW=iy[h4];if(h4===4||h4===6||h4===8)wW+="-";SW<16&&(wW+="0");wW+=SW.toString(16).toLowerCase()}iy="@@WeakMap@@"+wW}while(Ub.call(Ob,iy));Ob[iy]=!0;return iy}
function a9(iy,wW){if(!Ub.call(iy,I9)){if(!wW)return;Object.defineProperty(iy,I9,{value:Object.create(null)})}return iy[I9]}
var pF=typeof global!=="undefined"&&typeof XYL==="object"&&typeof require==="function"&&require("crypto"),Ub=Object.prototype.hasOwnProperty,Ob={},I9=y();w.prototype={has:function(iy){return(iy=a9(iy,!1))?this._key in iy:!1},
get:function(iy){if(iy=a9(iy,!1))return iy[this._key]},
set:function(iy,wW){a9(iy,!0)[this._key]=wW;return this},
delete:function(iy){return(iy=a9(iy,!1))&&this._key in iy?delete iy[this._key]:!1},
clear:function(){this._key=y()}};
return w}
var g=Object.getPrototypeOf(Function),e=typeof Map==="function"?Map:J(),x=typeof Set==="function"?Set:n(),D=new (typeof WeakMap==="function"?WeakMap:t());A.decorate=function(w,u,y,a9){if(P(a9)){if(P(y)){if(!Array.isArray(w))throw new TypeError;if(!L(u))throw new TypeError;for(y=w.length-1;y>=0;--y)if(a9=(0,w[y])(u),!P(a9)){if(!L(a9))throw new TypeError;u=a9}return u}if(!Array.isArray(w))throw new TypeError;if(!U(u))throw new TypeError;y=M(y);for(a9=w.length-1;a9>=0;--a9)(0,w[a9])(u,y)}else{if(Array.isArray(w))if(U(u)){if(P(y))throw new TypeError;
if(!U(a9))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=M(y);for(var pF=w.length-1;pF>=0;--pF){var Ub=(0,w[pF])(u,y,a9);if(!P(Ub)){if(!U(Ub))throw new TypeError;a9=Ub}}return a9}};
A.metadata=function(w,u){return function(y,a9){if(P(a9)){if(!L(y))throw new TypeError;Q(y,void 0,!0).set(w,u)}else{if(!U(y))throw new TypeError;a9=M(a9);Q(y,a9,!0).set(w,u)}}};
A.defineMetadata=function(w,u){var y;if(U(u))P(y)||(y=M(y));else throw new TypeError;Q(u,y,!0).set("parameters",w)};
A.hasMetadata=function(w,u,y){if(U(u))P(y)||(y=M(y));else throw new TypeError;return b(w,u,y)};
A.hasOwnMetadata=function(w,u,y){if(U(u))P(y)||(y=M(y));else throw new TypeError;return f(w,u,y)};
A.getMetadata=function(w,u,y){if(U(u))P(y)||(y=M(y));else throw new TypeError;return a(w,u,y)};
A.getOwnMetadata=function(w,u,y){if(U(u))P(y)||(y=M(y));else throw new TypeError;return T(w,u,y)};
A.getMetadataKeys=function(w,u){if(U(w))P(u)||(u=M(u));else throw new TypeError;return G(w,u)};
A.getOwnMetadataKeys=function(w,u){if(U(w))P(u)||(u=M(u));else throw new TypeError;return p(w,u)};
A.deleteMetadata=function(w,u,y){if(U(u))P(y)||(y=M(y));else throw new TypeError;var a9=Q(u,y,!1);if(!P(a9)){if(!a9.delete(w))return!1;if(a9.size>0)return!0;w=D.get(u);w.delete(y);if(w.size>0)return!0;D.delete(u);return!0}};
(function(w){if(typeof w.Reflect!=="undefined"){if(w.Reflect!==A)for(var u in A)w.Reflect[u]=A[u]}else w.Reflect=A})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(SYL||(SYL={}));var UjL=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
UjL.prototype.addEventListener=function(A,Q,b){this.target.addEventListener(A,Q,b)};
UjL.prototype.removeEventListener=function(A,Q,b){this.target.removeEventListener(A,Q,b)};
UjL.prototype.dispatchEvent=function(A){if(this.onabort&&A.type==="abort")this.onabort(A);return this.target.dispatchEvent(A)};var LW1=function(){this.signal=new UjL};
LW1.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var A=document.createEvent("Event");A.initEvent("abort",!1,!1);this.signal.dispatchEvent(A)}};var hRY=self;var MLr=[0,_.$U,_.s2,_.$U];var lk1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(lk1,_.fp);var KWW=_.Ph(lk1,[0,_.AL9,_.m_,MLr,_.s2,_.QH]);_.BD(_.TL,_.k$);_.d=_.TL.prototype;_.d.start=function(){this.stop();this.usingListeners_=!1;var A=iTY(this),Q=JEr(this);A&&!Q&&this.JSC$11200_win_.mozRequestAnimationFrame?(this.JSC$11200_id_=_.jM(this.JSC$11200_win_,"MozBeforePaint",this.callback_),this.JSC$11200_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11200_id_=A&&Q?A.call(this.JSC$11200_win_,this.callback_):this.JSC$11200_win_.setTimeout(PYW(this.callback_),20)};
_.d.stop=function(){if(this.isActive()){var A=iTY(this),Q=JEr(this);A&&!Q&&this.JSC$11200_win_.mozRequestAnimationFrame?oP(this.JSC$11200_id_):A&&Q?Q.call(this.JSC$11200_win_,this.JSC$11200_id_):this.JSC$11200_win_.clearTimeout(this.JSC$11200_id_)}this.JSC$11200_id_=null};
_.d.fire=function(){this.stop();this.JSC$11202_doAction_()};
_.d.isActive=function(){return this.JSC$11200_id_!=null};
_.d.JSC$11202_doAction_=function(){this.usingListeners_&&this.JSC$11200_id_&&oP(this.JSC$11200_id_);this.JSC$11200_id_=null;this.JSC$11200_listener_.call(this.handler_,_.G0())};
_.d.disposeInternal=function(){this.stop();_.TL.superClass_.disposeInternal.call(this)};
var iTY=function(A){A=A.JSC$11200_win_;return A.requestAnimationFrame||A.webkitRequestAnimationFrame||A.mozRequestAnimationFrame||A.oRequestAnimationFrame||A.msRequestAnimationFrame||null},JEr=function(A){A=A.JSC$11200_win_;
return A.cancelAnimationFrame||A.cancelRequestAnimationFrame||A.webkitCancelRequestAnimationFrame||A.mozCancelRequestAnimationFrame||A.oCancelRequestAnimationFrame||A.msCancelRequestAnimationFrame||null};_.Ac=function(A,Q,b){_.k$.call(this);this.JSC$11203_listener_=b!=null?A.bind(b):A;this.JSC$11203_interval_=Q;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11203_timer_=null};
_.O(_.Ac,_.k$);_.d=_.Ac.prototype;_.d.fire=function(A){this.args_=arguments;this.JSC$11203_timer_||this.pauseCount_?this.shouldFire_=!0:VLN(this)};
_.d.stop=function(){this.JSC$11203_timer_&&(_.by.clearTimeout(this.JSC$11203_timer_),this.JSC$11203_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.d.pause=function(){this.pauseCount_++};
_.d.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11203_timer_||(this.shouldFire_=!1,VLN(this))};
_.d.disposeInternal=function(){_.k$.prototype.disposeInternal.call(this);this.stop()};
var VLN=function(A){A.JSC$11203_timer_=t1(function(){A.JSC$11203_timer_=null;A.shouldFire_&&!A.pauseCount_&&(A.shouldFire_=!1,VLN(A))},A.JSC$11203_interval_);
var Q=A.args_;A.args_=null;A.JSC$11203_listener_.apply(null,Q)};var OTr=function(A,Q){this.childIterator_=A[_.by.Symbol.iterator]();this.mapFn_=Q};
OTr.prototype[Symbol.iterator]=function(){return this};
OTr.prototype.next=function(){var A=this.childIterator_.next();return{value:A.done?void 0:this.mapFn_.call(void 0,A.value),done:A.done}};
var nry=function(A,Q){return new OTr(A,Q)};var kxL={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 LAe=function(A){var Q=Ik1(A);if(!Q)throw Error("Qd`"+A);return Q},Ik1=function(A){var Q={};
A=String(A);var b=A.charAt(0)=="#"?A:"#"+A;if(HTM.test(b))return Q.hex=BDY(b),Q.type="hex",Q;b=il4(A);return b.length?(Q.hex=ASy(b[0],b[1],b[2]),Q.type="rgb",Q):kxL&&(A=kxL[A.toLowerCase()])?(Q.hex=A,Q.type="named",Q):null},CBj=/#(.)(.)(.)/,BDY=function(A){if(!HTM.test(A))throw Error("Sd`"+A);
A.length==4&&(A=A.replace(CBj,"#$1$1$2$2$3$3"));return A.toLowerCase()},MZU=function(A){A=BDY(A);
A=parseInt(A.slice(1),16);return[A>>16,A>>8&255,A&255]},ASy=function(A,Q,b){A=Number(A);
Q=Number(Q);b=Number(b);if(A!=(A&255)||Q!=(Q&255)||b!=(b&255))throw Error("Td`"+A+"`"+Q+"`"+b);Q=A<<16|Q<<8|b;return A<16?"#"+(16777216|Q).toString(16).slice(1):"#"+Q.toString(16)},HTM=/^#(?:[0-9a-f]{3}){1,2}$/i,qYj=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,il4=function(A){var Q=A.match(qYj);
if(Q){A=Number(Q[1]);var b=Number(Q[2]);Q=Number(Q[3]);if(A>=0&&A<=255&&b>=0&&b<=255&&Q>=0&&Q<=255)return[A,b,Q]}return[]};var or9={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},kB=or9;kB=or9;var Lay,tLY,rEj;Lay=function(A,Q){switch(Q){case 1:return A%4!=0||A%100==0&&A%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
tLY=function(A,Q,b,f,a){A=new Date(A,Q,b);a=a||0;return A.valueOf()+(((f!==void 0?f:3)-a+7)%7-((A.getDay()+6)%7-a+7)%7)*864E5};
_.o1=function(A,Q,b){typeof A==="number"?(this.date=rEj(A,Q||0,b||1),jzM(this,b||1)):_.ZU(A)?(this.date=rEj(A.getFullYear(),A.getMonth(),A.getDate()),jzM(this,A.getDate())):(this.date=new Date(_.G0()),A=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),jzM(this,A))};
rEj=function(A,Q,b){Q=new Date(A,Q,b);A>=0&&A<100&&Q.setFullYear(Q.getFullYear()-1900);return Q};
_.d=_.o1.prototype;_.d.firstDayOfWeek_=kB.FIRSTDAYOFWEEK;_.d.firstWeekCutOffDay_=kB.FIRSTWEEKCUTOFFDAY;_.d.clone=function(){var A=new _.o1(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
_.d.getFullYear=function(){return this.date.getFullYear()};
_.d.getYear=function(){return this.getFullYear()};
_.d.getMonth=function(){return this.date.getMonth()};
_.d.getDate=function(){return this.date.getDate()};
_.d.getTime=function(){return this.date.getTime()};
_.d.getDay=function(){return this.date.getDay()};
_.d.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.d.getUTCMonth=function(){return this.date.getUTCMonth()};
_.d.getUTCDate=function(){return this.date.getUTCDate()};
_.d.getUTCDay=function(){return this.date.getDay()};
_.d.getUTCHours=function(){return this.date.getUTCHours()};
_.d.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.d.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.d.set=function(A){this.date=new Date(A.getFullYear(),A.getMonth(),A.getDate())};
_.d.setFullYear=function(A){this.date.setFullYear(A)};
_.d.setYear=function(A){this.setFullYear(A)};
_.d.setMonth=function(A){this.date.setMonth(A)};
_.d.setDate=function(A){this.date.setDate(A)};
_.d.setTime=function(A){this.date.setTime(A)};
_.d.setUTCFullYear=function(A){this.date.setUTCFullYear(A)};
_.d.setUTCMonth=function(A){this.date.setUTCMonth(A)};
_.d.setUTCDate=function(A){this.date.setUTCDate(A)};
_.d.add=function(A){if(A.years||A.months){var Q=this.getMonth()+A.months+A.years*12,b=this.getYear()+Math.floor(Q/12);Q%=12;Q<0&&(Q+=12);var f=Math.min(Lay(b,Q),this.getDate());this.setDate(1);this.setFullYear(b);this.setMonth(Q);this.setDate(f)}A.days&&(b=this.getYear(),Q=b>=0&&b<=99?-1900:0,A=new Date((new Date(b,this.getMonth(),this.getDate(),12)).getTime()+A.days*864E5),this.setDate(1),this.setFullYear(A.getFullYear()+Q),this.setMonth(A.getMonth()),this.setDate(A.getDate()),jzM(this,A.getDate()))};
_.d.JSC$11216_toIsoString=function(A){var Q=this.getFullYear(),b=Q<0?"-":Q>=1E4?"+":"";return[b+_.FC(Math.abs(Q),b?6:4),_.FC(this.getMonth()+1,2),_.FC(this.getDate(),2)].join(A?"-":"")};
_.d.equals=function(A){return!(!A||this.getYear()!=A.getYear()||this.getMonth()!=A.getMonth()||this.getDate()!=A.getDate())};
_.d.toString=function(){return this.JSC$11216_toIsoString()};
var jzM=function(A,Q){A.getDate()!=Q&&A.date.setUTCHours(A.date.getUTCHours()+(A.getDate()<Q?1:-1))};
_.o1.prototype.valueOf=function(){return this.date.valueOf()};var rb=function(A,Q,b,f,a){this.reversed=!!Q;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!b;A&&t2(this,A,f);this.depth=a!=void 0?a:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.BD(rb,PB);var t2=function(A,Q,b,f){if(A.node=Q)A.tagType=typeof b==="number"?b:A.node.nodeType!=1?0:A.reversed?-1:1;typeof f==="number"&&(A.depth=f)};
_.d=rb.prototype;_.d.JSC$11231_copyFrom=function(A){this.node=A.node;this.tagType=A.tagType;this.depth=A.depth;this.reversed=A.reversed;this.constrained=A.constrained};
_.d.clone=function(){return new rb(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.d.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return X1;var A=this.node;var Q=this.reversed?-1:1;if(this.tagType==Q){var b=this.reversed?A.lastChild:A.firstChild;b?t2(this,b):t2(this,A,Q*-1)}else(b=this.reversed?A.previousSibling:A.nextSibling)?t2(this,b):t2(this,A.parentNode,Q*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(A=this.node)?S_(A):X1};
_.d.equals=function(A){return A.node==this.node&&(!this.node||A.tagType==this.tagType)};
_.d.splice=function(A){var Q=this.node,b=this.reversed?1:-1;this.tagType==b&&(this.tagType=b*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;rb.prototype.next.call(this);this.reversed=!this.reversed;b=_.ce(arguments[0])?arguments[0]:arguments;for(var f=b.length-1;f>=0;f--)_.hd(b[f],Q);_.im(Q)};var RMr=function(){},jb=function(A){for(var Q=[],b=A.getTextRangeCount(),f=0;f<b;f++)Q.push(A.getTextRange(f));
return Q};
RMr.prototype.isReversed=function(){return!1};
RMr.prototype.getWindow=function(){return e2(_.h3(this.JSC$11233_getStartNode()))};
var gry=function(A,Q){rb.call(this,A,Q,!0)};
_.BD(gry,rb);var R1=function(A,Q,b,f,a){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!a;if(A){this.startNode_=A;this.startOffset_=Q;this.endNode_=b;this.endOffset_=f;if(A.nodeType==1&&A.tagName!="BR")if(A=A.childNodes,Q=A[Q])this.startNode_=Q,this.startOffset_=0;else{A.length&&(this.startNode_=_.rW(A));var T=!0}b.nodeType==1&&((this.endNode_=b.childNodes[f])?this.endOffset_=0:this.endNode_=b)}rb.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);T&&this.next()};
_.BD(R1,gry);_.d=R1.prototype;_.d.JSC$11239_getStartNode=function(){return this.startNode_};
_.d.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)};
_.d.next=function(){return this.isLast()?X1:R1.superClass_.next.call(this)};
_.d.JSC$11231_copyFrom=function(A){this.startNode_=A.startNode_;this.endNode_=A.endNode_;this.startOffset_=A.startOffset_;this.endOffset_=A.endOffset_;this.isReversed_=A.isReversed_;R1.superClass_.JSC$11231_copyFrom.call(this,A)};
_.d.clone=function(){var A=new R1(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);A.JSC$11231_copyFrom(this);return A};var eM9=function(){};
eM9.prototype.__iterator__=function(){return new R1(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var gb=function(A){this.range_=A};
_.BD(gb,eM9);var hMx=function(A){var Q=_.h3(A).createRange();if(A.nodeType==3)Q.setStart(A,0),Q.setEnd(A,A.length);else if(RB(A)||A.nodeType==3){for(var b,f=A;(b=f.firstChild)&&(RB(b)||b.nodeType==3);)f=b;Q.setStart(f,0);for(f=A;(b=f.lastChild)&&(RB(b)||b.nodeType==3);)f=b;Q.setEnd(f,f.nodeType==1?f.childNodes.length:f.length)}else b=A.parentNode,A=Array.prototype.indexOf.call(b.childNodes,A),Q.setStart(b,A),Q.setEnd(b,A+1);return Q},WW9=function(A,Q,b,f){var a=_.h3(A).createRange();
a.setStart(A,Q);a.setEnd(b,f);return a};
_.d=gb.prototype;_.d.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.d.getContainer=function(){return this.range_.commonAncestorContainer};
_.d.compareBrowserRangeEndpoints=function(A,Q,b){return this.range_.compareBoundaryPoints(b==1?Q==1?_.by.Range.START_TO_START:_.by.Range.START_TO_END:Q==1?_.by.Range.END_TO_START:_.by.Range.END_TO_END,A)};
_.d.isCollapsed=function(){return this.range_.collapsed};
_.d.select=function(A){this.selectInternal(e2(_.h3(this.range_.startContainer)).getSelection(),A)};
_.d.selectInternal=function(A){A.removeAllRanges();A.addRange(this.range_)};
_.d.insertNode=function(A,Q){var b=this.range_.cloneRange();b.collapse(Q);b.insertNode(A);b.detach();return A};
_.d.collapse=function(A){this.range_.collapse(A)};_.BD(dG,gb);dG.prototype.selectInternal=function(A,Q){!Q||this.isCollapsed()?dG.superClass_.selectInternal.call(this,A,Q):(A.collapse(this.range_.endContainer,this.range_.endOffset),A.extend(this.range_.startContainer,this.range_.startOffset))};_.BD(FM,gb);FM.prototype.compareBrowserRangeEndpoints=function(A,Q,b){return FM.superClass_.compareBrowserRangeEndpoints.call(this,A,Q,b)};
FM.prototype.selectInternal=function(A,Q){Q?A.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):A.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var vrj=function(A){return _.Le?new FM(A):_.U2?new dG(A):new gb(A)};var eb=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Erv;
_.BD(eb,RMr);Erv=function(A,Q){var b=new eb;b.browserRangeWrapper_=A;b.isReversed_=!!Q;return b};
_.xjp=function(A){A=_.Le?new FM(hMx(A)):_.U2?new dG(hMx(A)):new gb(hMx(A));return Erv(A)};
_.h2=function(A,Q,b,f){var a=new eb;a.isReversed_=cE9(A,Q,b,f);if(_.mk(A)&&!RB(A)){var T=A.parentNode;Q=Array.prototype.indexOf.call(T.childNodes,A);A=T}_.mk(b)&&!RB(b)&&(T=b.parentNode,f=Array.prototype.indexOf.call(T.childNodes,b),b=T);a.isReversed_?(a.startNode_=b,a.startOffset_=f,a.endNode_=A,a.endOffset_=Q):(a.startNode_=A,a.startOffset_=Q,a.endNode_=b,a.endOffset_=f);return a};
_.d=eb.prototype;_.d.clone=function(){var A=new eb;A.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();A.startNode_=this.startNode_;A.startOffset_=this.startOffset_;A.endNode_=this.endNode_;A.endOffset_=this.endOffset_;A.isReversed_=this.isReversed_;return A};
_.d.JSC$11233_getType=function(){return"text"};
_.d.getBrowserRangeObject=function(){return WT(this).range_};
_.d.getTextRangeCount=function(){return 1};
_.d.getTextRange=function(){return this};
var WT=function(A){var Q;if(!(Q=A.browserRangeWrapper_)){Q=A.JSC$11233_getStartNode();var b=A.JSC$11233_getStartOffset(),f=A.JSC$11233_getEndNode(),a=A.JSC$11233_getEndOffset();Q=_.Le?new FM(WW9(Q,b,f,a)):_.U2?new dG(WW9(Q,b,f,a)):new gb(WW9(Q,b,f,a));Q=A.browserRangeWrapper_=Q}return Q};
_.d=eb.prototype;_.d.getContainer=function(){return WT(this).getContainer()};
_.d.JSC$11233_getStartNode=function(){return this.startNode_||(this.startNode_=WT(this).range_.startContainer)};
_.d.JSC$11233_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=WT(this).range_.startOffset};
_.d.JSC$11233_getEndNode=function(){return this.endNode_||(this.endNode_=WT(this).range_.endContainer)};
_.d.JSC$11233_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=WT(this).range_.endOffset};
_.d.isReversed=function(){return this.isReversed_};
_.d.JSC$11233_containsRange=function(A,Q){if(A.JSC$11233_getType()=="text"){var b=WT(this);A=WT(A);Q=Q&&!A.isCollapsed();A=A.range_;b=Q?b.compareBrowserRangeEndpoints(A,0,1)>=0&&b.compareBrowserRangeEndpoints(A,1,0)<=0:b.compareBrowserRangeEndpoints(A,0,0)>=0&&b.compareBrowserRangeEndpoints(A,1,1)<=0}else b=!1;return b};
_.d.isCollapsed=function(){return WT(this).isCollapsed()};
_.d.JSC$11233_getText=function(){return WT(this).range_.toString()};
_.d.__iterator__=function(){return new R1(this.JSC$11233_getStartNode(),this.JSC$11233_getStartOffset(),this.JSC$11233_getEndNode(),this.JSC$11233_getEndOffset())};
_.d.select=function(){WT(this).select(this.isReversed_)};
_.d.JSC$11233_removeContents=function(){var A=WT(this).range_;A.extractContents();if(A.startContainer.hasChildNodes()&&(A=A.startContainer.childNodes[A.startOffset])){var Q=A.previousSibling;BxW(A)==""&&_.im(A);Q&&BxW(Q)==""&&_.im(Q)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.d.insertNode=function(A,Q){A=WT(this).insertNode(A,Q);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return A};
_.d.collapse=function(A){A=this.isReversed()?!A:A;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(A);A?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var zM1=function(){};
_.BD(zM1,RMr);zM1.prototype.JSC$11233_containsRange=function(A,Q){var b=jb(this);A=jb(A);return(Q?y7:_.QZi)(A,function(f){return y7(b,function(a){return a.JSC$11233_containsRange(f,Q)})})};
zM1.prototype.insertNode=function(A,Q){Q?_.eE(A,this.JSC$11233_getStartNode()):_.hd(A,this.JSC$11233_getEndNode());return A};var wYM,uZr=OX().JSC$9268_document_.documentElement;wYM=uZr.requestFullscreen?"fullscreenchange":uZr.webkitRequestFullscreen?"webkitfullscreenchange":uZr.mozRequestFullScreen?"mozfullscreenchange":uZr.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var ZTW=function(){var A=OX().JSC$9268_document_;return!!(A.webkitIsFullScreen||A.mozFullScreen||A.msFullscreenElement||A.fullscreenElement)};var vT=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.BD(vT,zM1);_.d=vT.prototype;_.d.clone=function(){var A=new vT;A.browserRanges_=_.xC(this.browserRanges_);return A};
_.d.JSC$11233_getType=function(){return"mutli"};
_.d.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.d.getTextRangeCount=function(){return this.browserRanges_.length};
_.d.getTextRange=function(A){this.ranges_[A]||(this.ranges_[A]=Erv(vrj(this.browserRanges_[A])));return this.ranges_[A]};
_.d.getContainer=function(){if(!this.container_){for(var A=[],Q=this.getTextRangeCount(),b=0;b<Q;b++)A.push(this.getTextRange(b).getContainer());this.container_=bs$.apply(null,A)}return this.container_};
var E0=function(A){A.sortedRanges_||(A.sortedRanges_=jb(A),A.sortedRanges_.sort(function(Q,b){var f=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();var a=b.JSC$11233_getStartNode();b=b.JSC$11233_getStartOffset();return f==a&&Q==b?0:cE9(f,Q,a,b)?1:-1}));
return A.sortedRanges_};
_.d=vT.prototype;_.d.JSC$11233_getStartNode=function(){return E0(this)[0].JSC$11233_getStartNode()};
_.d.JSC$11233_getStartOffset=function(){return E0(this)[0].JSC$11233_getStartOffset()};
_.d.JSC$11233_getEndNode=function(){return _.rW(E0(this)).JSC$11233_getEndNode()};
_.d.JSC$11233_getEndOffset=function(){return _.rW(E0(this)).JSC$11233_getEndOffset()};
_.d.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.d.JSC$11233_getText=function(){return jb(this).map(function(A){return A.JSC$11233_getText()}).join("")};
_.d.__iterator__=function(){return new x7(this)};
_.d.select=function(){var A=this.getWindow().getSelection();A.removeAllRanges();for(var Q=this.getTextRangeCount(),b=0;b<Q;b++)A.addRange(this.getTextRange(b).getBrowserRangeObject())};
_.d.JSC$11233_removeContents=function(){jb(this).forEach(function(A){A.JSC$11233_removeContents()})};
_.d.collapse=function(A){if(!this.isCollapsed()){var Q=A?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;Q.collapse(A);this.ranges_=[Q];this.sortedRanges_=[Q];this.browserRanges_=[Q.getBrowserRangeObject()]}};
var x7=function(A){this.iterators_=null;this.currentIdx_=0;A&&(this.iterators_=E0(A).map(function(Q){return _.BKy(Q)}));
rb.call(this,A?this.JSC$11239_getStartNode():null,!1,!0)};
_.BD(x7,gry);_.d=x7.prototype;_.d.JSC$11239_getStartNode=function(){return this.iterators_[0].JSC$11239_getStartNode()};
_.d.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.d.next=function(){for(;this.currentIdx_<this.iterators_.length;){var A=this.iterators_[this.currentIdx_],Q=A.next();if(Q.done)this.currentIdx_++;else return t2(this,A.node,A.tagType,A.depth),Q}return X1};
_.d.JSC$11231_copyFrom=function(A){this.iterators_=_.xC(A.iterators_);x7.superClass_.JSC$11231_copyFrom.call(this,A)};
_.d.clone=function(){var A=new x7(null);A.JSC$11231_copyFrom(this);return A};var yE1,cE9;_.ip=function(){var A=window.getSelection();return A&&yE1(A)};
yE1=function(A){var Q=!1;if(A.createRange)try{var b=A.createRange()}catch(a){return null}else if(A.rangeCount){if(A.rangeCount>1){b=new vT;Q=A.rangeCount;for(var f=0;f<Q;f++)b.browserRanges_.push(A.getRangeAt(f));return b}b=A.getRangeAt(0);Q=cE9(A.anchorNode,A.anchorOffset,A.focusNode,A.focusOffset)}else return null;return Erv(vrj(b),Q)};
_.cT=function(A,Q){return _.h2(A,Q,A,Q)};
_.zd=function(A,Q,b,f){return _.h2(A,Q,b,f)};
cE9=function(A,Q,b,f){if(A==b)return f<Q;var a;if(A.nodeType==1&&Q)if(a=A.childNodes[Q])A=a,Q=0;else if(_.vo(A,b))return!0;if(b.nodeType==1&&f)if(a=b.childNodes[f])b=a,f=0;else if(_.vo(b,A))return!1;return(Qtr(A,b)||Q-f)>0};var wb=function(){_.IH.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.IL)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.IL)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.IL)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.IL)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.IL)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.IL)(this.dispatchProgressEvent_,this)};
_.BD(wb,_.IH);wb.prototype.abort=function(){try{this.reader_.abort()}catch(A){throw new pvx(A,"aborting read");}};
wb.prototype.getError=function(){return this.reader_.error&&new pvx(this.reader_.error,"reading file")};
wb.prototype.dispatchProgressEvent_=function(A){this.dispatchEvent(new PvN(A,this))};
wb.prototype.disposeInternal=function(){wb.superClass_.disposeInternal.call(this);delete this.reader_};
var Dj1=function(A){var Q=new wb,b=YY9(Q);Q.reader_.readAsArrayBuffer(A);return b},$jM=function(A){var Q=new wb,b=YY9(Q);
Q.reader_.readAsDataURL(A);return b},YY9=function(A){var Q=new $p;
A.listen("loadend",_.Ol(function(b,f){var a=f.reader_.result,T=f.getError();a==null||T?b.errback(T):b.callback(a);f.dispose()},Q,A));
return Q};var u_=function(){_.IH.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11273_eventHandler_=new _.BR(this);this.JSC$11273_isInitialized_=!1};
_.BD(u_,_.IH);var N6L=new _.i9("d"),szj=new _.i9("beforedragstart"),mj$=new _.i9("dragstart"),Auj=new _.i9("beforedragmove"),Q_K=new _.i9("dragmove"),bcj=new _.i9("beforedragend"),fwp=new _.i9("dragend"),awj=new _.i9("e");u_.prototype.isDragging=function(){return!!this.JSC$11273_dragger_};
var Tnx=function(A,Q){Q.dlgGrowthDirection_=0;Q.dlgDragHoverClass_=void 0;Q.dlgDragPermission=0;A.dragLists_.push(Q)},dJW=function(A,Q){A.getHandleForDragItem_=Q};
u_.prototype.init=function(){if(!this.JSC$11273_isInitialized_){for(var A=this.dragLists_.length,Q=0;Q<A;Q++)for(var b=_.Wk(this.dragLists_[Q]),f=b.length,a=0;a<f;++a){var T=b[a],G=this.getHandleForDragItem_(T),p=_.YC(G);this.dragItemForHandle_[p]=T;this.dragItemHoverClasses_&&(this.JSC$11273_eventHandler_.listen(T,"mouseover",this.handleDragItemMouseover_),this.JSC$11273_eventHandler_.listen(T,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11273_eventHandler_.listen(G,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11273_eventHandler_.listen(G,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(T);this.JSC$11273_eventHandler_.listen(G,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11273_isInitialized_=!0}};
u_.prototype.disposeInternal=function(){this.JSC$11273_eventHandler_.dispose();for(var A=this.dragLists_.length,Q=0;Q<A;Q++){var b=this.dragLists_[Q];b.dlgGrowthDirection_=void 0;b.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;F5v(this);u_.superClass_.disposeInternal.call(this)};
var GUK=function(A,Q){for(var b=A.dragLists_.length,f=0;f<b;f++){var a=A.dragLists_[f];a.dlgBounds_=CGX(a)}b=A.dragItems_.length;for(f=0;f<b;f++)a=A.dragItems_[f],a!=Q&&(a.dlgBounds_=CGX(a))};
_.d=u_.prototype;
_.d.handlePotentialDragStart_=function(A){var Q=_.YC(A.currentTarget);Q=this.dragItemForHandle_[Q];if(Q.parentElement.dlgDragPermission!=2){this.currDragItem_=Q;a:{Q=this.currDragItem_;for(var b=Q.cloneNode(!0),f=JT("TEXTAREA",Q),a=JT("TEXTAREA",b),T=0;T<f.length;T++)a[T].value=f[T].value;switch(Q.tagName){case "TR":Q=_.rh("TABLE",null,_.rh("TBODY",null,b));break a;case "TD":case "TH":Q=_.rh("TABLE",null,_.rh("TBODY",null,_.rh("TR",null,b)));break a;case "TEXTAREA":b.value=Q.value;default:Q=b;break a}Q=
void 0}this.draggerEl_=Q;this.draggerElClasses_&&Yp(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.h3(this.currDragItem_).body.appendChild(this.draggerEl_);b=_.Wl(this.currDragItem_);Q=this.draggerEl_;f=_.Wl(Q);if(b instanceof _.gQ){var G=b.y;b=b.x}zN(Q,Q.offsetLeft+(b-f.x),Q.offsetTop+(Number(G)-f.y));this.JSC$11273_dragger_=new _.cX(this.draggerEl_);_.BO9(this.JSC$11273_dragger_,this.hysteresisDistance_);
_.jM(this.JSC$11273_dragger_,"start",this.handleDragStart_,!1,this);_.jM(this.JSC$11273_dragger_,"end",this.handleDragEnd_,!1,this);_.jM(this.JSC$11273_dragger_,"earlycancel",this.JSC$11275_cleanup_,!1,this);this.dispatchEvent(new Zm(N6L,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11273_dragger_));this.JSC$11273_dragger_.startDrag(A)}};
_.d.handleDragStart_=function(A){if(this.dispatchEvent(new Zm(szj,this,A.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.sy9(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Yp(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var Q=Ll1(this.draggerEl_);this.draggerEl_.halfWidth=Q.width/2;this.draggerEl_.halfHeight=Q.height/2;Q=this.draggerEl_.getBoundingClientRect();
var b=A.clientY,f=pEy(this.JSC$11273_dragger_,A.clientX);if(f>Q.right){var a=this.currDragItem_.getBoundingClientRect();this.JSC$11273_dragger_.deltaX=f-(f-a.left)/a.width*Q.width}b=PC1(this.JSC$11273_dragger_,b);b>Q.bottom&&(this.JSC$11273_dragger_.deltaY+=b-Q.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";GUK(this,this.currDragItem_);this.currDragItem_.style.display="";_.jM(this.JSC$11273_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Zm(mj$,
this,A.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11273_dragger_))}else A.preventDefault(),this.JSC$11275_cleanup_()};
_.d.handleDragMove_=function(A){var Q=_.Wl(this.draggerEl_);Q=new _.gQ(Q.x+this.draggerEl_.halfWidth,Q.y+this.draggerEl_.halfHeight);a:{var b=null;if(this.currDragItem_.style.display!="none"){b=this.currDragItem_.parentNode;var f=CGX(b);if(Bn1(Q,f))break a}f=this.dragLists_.length;for(var a=0;a<f;a++){var T=this.dragLists_[a];if(T!=b&&Bn1(Q,T.dlgBounds_)){b=T;break a}}b=null}if(b){if(b==null)throw Error("Ud");f=0;a=!1;T=void 0;switch(b.dlgGrowthDirection_){case 0:f=Q.y;var G=pjM;var p=PNW;break;case 4:a=
!0;case 2:f=Q.x;G=XjY;p=PNW;break;case 5:a=!0;case 3:f=Q.x,G=Sc$,p=UJx}for(var P=null,U,L=_.Wk(b),M=L.length,l=0;l<M;l++){var J=L[l];if(J!=this.currDragItem_){var n=G(J.dlgBounds_);if(a){var t=L5j(J,Q);T===void 0&&(T=t);p(f,n)&&(U==void 0||t<T||t==T&&(p(n,U)||n==U))&&(P=J,U=n);t<T&&(T=t)}else p(f,n)&&(U==void 0||p(n,U))&&(P=J,U=n)}}G=P!==null&&L5j(P,Q)>T?null:P}else G=null;if(!this.dispatchEvent(new Zm(Auj,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11273_dragger_,Q,b,G)))return!1;if(b&&b.dlgDragPermission!=
1)this.currDragItem_.parentNode==b&&_.sy9(this.currDragItem_)==G||b.insertBefore(this.currDragItem_,G),this.currDragItem_.style.display="",b.dlgDragHoverClass_&&_.TZ(b,b.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",p=this.dragLists_.length,U=0;U<p;U++)f=this.dragLists_[U],f.dlgDragHoverClass_&&_.fE(f,f.dlgDragHoverClass_);b!=this.currHoverList_&&(this.currHoverList_=b,GUK(this,this.currDragItem_));this.dispatchEvent(new Zm(Q_K,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11273_dragger_,
Q,b,G));return!1};
_.d.JSC$11275_cleanup_=function(){F5v(this);this.JSC$11273_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var A=this.dragLists_.length,Q=0;Q<A;Q++)this.dragLists_[Q].dlgBounds_=null;A=this.dragItems_.length;for(Q=0;Q<A;Q++)this.dragItems_[Q].dlgBounds_=null};
_.d.handleDragEnd_=function(A){if(!this.dispatchEvent(new Zm(bcj,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11273_dragger_)))return!1;F5v(this);this.dispatchEvent(new Zm(fwp,this,A,this.currDragItem_,this.draggerEl_,this.JSC$11273_dragger_));this.JSC$11275_cleanup_();return!0};
var F5v=function(A){_.AT(A.JSC$11273_dragger_);var Q=A.draggerEl_&&A.draggerEl_.parentElement;A.draggerEl_&&_.im(A.draggerEl_);A.currDragItem_&&A.currDragItem_.style.display=="none"&&(A.origList_.insertBefore(A.currDragItem_,A.origNextItem_),A.currDragItem_.style.display="");A.currDragItemClasses_&&A.currDragItem_?FML(A.currDragItem_,A.currDragItemClasses_||[]):A.currDragItem_&&(A.currDragItem_.style.visibility="");for(var b=A.dragLists_.length,f=0;f<b;f++){var a=A.dragLists_[f];a.dlgDragHoverClass_&&
_.fE(a,a.dlgDragHoverClass_)}Q&&A.dispatchEvent(new Zm(awj,A,null,A.currDragItem_,A.draggerEl_,A.JSC$11273_dragger_))};
_.d=u_.prototype;_.d.getHandleForDragItem_=function(A){return A};
_.d.handleDragItemMouseover_=function(A){Yp(A.currentTarget,this.dragItemHoverClasses_||[])};
_.d.handleDragItemMouseout_=function(A){FML(A.currentTarget,this.dragItemHoverClasses_||[])};
_.d.handleDragItemHandleMouseover_=function(A){Yp(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.d.handleDragItemHandleMouseout_=function(A){FML(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Bn1=function(A,Q){return A.x>Q.left&&A.x<Q.left+Q.width&&A.y>Q.top&&A.y<Q.top+Q.height},L5j=function(A,Q){A=A.dlgBounds_;
return Math.abs(Q.y-(A.top+(A.height-1)/2))},pjM=function(A){return A.top+A.height-1},XjY=function(A){return A.left+A.width-1},Sc$=function(A){return A.left||0},PNW=function(A,Q){return A<Q},UJx=function(A,Q){return A>Q},Zm=function(A,Q,b,f,a,T){_.J1.call(this,A);
this.event=b;this.currDragItem=f;this.draggerEl=a;this.JSC$11277_dragger=T};
_.BD(Zm,_.J1);_.BD(p1,_.k$);var MKp=new _.gQ(0,0);p1.prototype.JSC$11281_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
p1.prototype.JSC$11281_onMouseMove=function(A){var Q=this.containerIsActuallyContent_?MKp:VE(OX(this.containerNode_)),b=this.horizontalScrolling_?this.calculateScrollDelta(A.clientX+Q.x,this.scrollBounds_.left,this.scrollBounds_.width):0,f=this.calculateScrollDelta(A.clientY+Q.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=b;this.scrollDelta_.y=f;!(b=!b&&!f)&&(b=this.constrainScroll_)&&(b=A.clientX+Q.x,A=A.clientY+Q.y,Q=this.containerBounds_,b=!(Q.left<=b&&Q.left+Q.width>=
b&&Q.top<=A&&Q.top+Q.height>=A));b?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
p1.prototype.calculateScrollDelta=function(A,Q,b){var f=0;A<Q?f=-8:A>Q+b&&(f=8);return f};
p1.prototype.disposeInternal=function(){p1.superClass_.disposeInternal.call(this);this.JSC$11279_eventHandler_.dispose();this.scrollTimer_.dispose()};var lwM={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"}}},y5=lwM;y5=lwM;var Y7={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 K5W=function(){},D5=function(A){if(typeof A=="number"){var Q=new K5W;
Q.standardOffset_=A;var b=A;if(b==0)b="Etc/GMT";else{var f=["Etc/GMT",b<0?"-":"+"];b=Math.abs(b);f.push(Math.floor(b/60)%100);b%=60;b!=0&&f.push(":",_.FC(b,2));b=f.join("")}Q.timeZoneId_=b;b=A;b==0?b="UTC":(f=["UTC",b<0?"+":"-"],b=Math.abs(b),f.push(Math.floor(b/60)%100),b%=60,b!=0&&f.push(":",b),b=f.join(""));A=ic9(A);Q.tzNames_=[b,b];Q.tzNamesExt_={STD_LONG_NAME_GMT:A,STD_GENERIC_LOCATION:A};Q.transitions_=[];return Q}Q=new K5W;Q.timeZoneId_=A.id;Q.standardOffset_=-A.std_offset;Q.tzNames_=A.names;
Q.tzNamesExt_=A.names_ext;Q.transitions_=A.transitions;return Q},ic9=function(A){var Q=["GMT"];
Q.push(A<=0?"+":"-");A=Math.abs(A);Q.push(_.FC(Math.floor(A/60)%100,2),":",_.FC(A%60,2));return Q.join("")},JuY=function(A,Q){Q=Date.UTC(Q.getUTCFullYear(),Q.getUTCMonth(),Q.getUTCDate(),Q.getUTCHours(),Q.getUTCMinutes())/36E5;
for(var b=0;b<A.transitions_.length&&Q>=A.transitions_[b];)b+=2;return b==0?0:A.transitions_[b-1]},VK9=function(A,Q){A=A.standardOffset_-JuY(A,Q);
return A===-1440?0:A};var $L=function(A,Q){this.patternParts_=[];this.JSC$11292_dateTimeSymbols_=Q||kB;typeof A=="number"?Ocr(this,A):nlK(this,A)},kUv=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Dm=function(A){return A.getHours?A.getHours():0},nlK=function(A,Q){for(k14&&(Q=Q.replace(/\u200f/g,""));Q;){for(var b=Q,f=0;f<kUv.length;++f){var a=Q.match(kUv[f]);
if(a){var T=a[0];Q=Q.substring(T.length);f==0&&(T=="''"?T="'":(T=T.substring(1,a[1]=="'"?T.length-1:T.length),T=T.replace(/''/g,"'")));A.patternParts_.push({text:T,type:f});break}}if(b===Q)throw Error("Vd`"+Q);}};
$L.prototype.format=function(A,Q){if(!A)throw Error("Wd");var b=Q?(A.getTimezoneOffset()-VK9(Q,A))*6E4:0,f=b?new Date(A.getTime()+b):A,a=f;Q&&f.getTimezoneOffset()!=A.getTimezoneOffset()&&(f=new Date(f.getTime()+(f.getTimezoneOffset()-A.getTimezoneOffset())*6E4),a=new Date(A.getTime()+(b+(b>0?-864E5:864E5))));b=[];for(var T=0;T<this.patternParts_.length;++T){var G=this.patternParts_[T].text;1==this.patternParts_[T].type?b.push(IwY(this,G,A,f,a,Q)):b.push(G)}return b.join("")};
var Ocr=function(A,Q){if(Q<4)var b=A.JSC$11292_dateTimeSymbols_.DATEFORMATS[Q];else if(Q<8)b=A.JSC$11292_dateTimeSymbols_.TIMEFORMATS[Q-4];else if(Q<12)b=A.JSC$11292_dateTimeSymbols_.DATETIMEFORMATS[Q-8],b=b.replace("{1}",A.JSC$11292_dateTimeSymbols_.DATEFORMATS[Q-8]),b=b.replace("{0}",A.JSC$11292_dateTimeSymbols_.TIMEFORMATS[Q-8]);else if(Q===12)b=A.JSC$11292_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(Q===13)b=A.JSC$11292_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Ocr(A,10);return}nlK(A,b)},$7=function(A,Q){Q=String(Q);
A=A.JSC$11292_dateTimeSymbols_||kB;if(A.ZERODIGIT!==void 0&&!n3C){for(var b=[],f=0;f<Q.length;f++){var a=Q.charCodeAt(f);b.push(48<=a&&a<=57?String.fromCharCode(A.ZERODIGIT+a-48):Q.charAt(f))}Q=b.join("")}return Q},n3C=!1,k14=!1,CNY=function(A,Q,b,f){b=b.getFullYear();
b<=0&&f&&(b=1-b);return $7(A,Hc$(b,Q))},Hc$=function(A,Q){Q==2&&(A%=100);
A<0&&Q++;return _.FC(A,Q)},NF=function(A){if(!(A.getHours&&A.getSeconds&&A.getMinutes))throw Error("Xd");
},qcW=function(A,Q){NF(Q);
Q=Dm(Q);return A.JSC$11292_dateTimeSymbols_.AMPMS[Q>=12&&Q<24?1:0]},IwY=function(A,Q,b,f,a,T){var G=Q.length;
switch(Q.charAt(0)){case "G":return b=f.getFullYear()>0?1:0,G>=4?A.JSC$11292_dateTimeSymbols_.ERANAMES[b]:A.JSC$11292_dateTimeSymbols_.ERAS[b];case "y":return CNY(A,G,f,!0);case "Y":return b=(new Date(tLY(f.getFullYear(),f.getMonth(),f.getDate(),A.JSC$11292_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$11292_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),G==2&&(b%=100),$7(A,Hc$(b,G));case "u":return CNY(A,G,f,!1);case "M":a:switch(b=f.getMonth(),G){case 5:G=A.JSC$11292_dateTimeSymbols_.NARROWMONTHS[b];
break a;case 4:G=A.JSC$11292_dateTimeSymbols_.MONTHS[b];break a;case 3:G=A.JSC$11292_dateTimeSymbols_.SHORTMONTHS[b];break a;default:G=$7(A,_.FC(b+1,G))}return G;case "k":return NF(a),$7(A,_.FC(Dm(a)||24,G));case "S":return $7(A,(a.getMilliseconds()/1E3).toFixed(Math.min(3,G)).slice(2)+(G>3?_.FC(0,G-3):""));case "E":return b=f.getDay(),G>=4?A.JSC$11292_dateTimeSymbols_.WEEKDAYS[b]:A.JSC$11292_dateTimeSymbols_.SHORTWEEKDAYS[b];case "a":return qcW(A,a);case "b":return qcW(A,a);case "B":return qcW(A,
a);case "h":return NF(a),$7(A,_.FC(Dm(a)%12||12,G));case "K":return NF(a),$7(A,_.FC(Dm(a)%12,G));case "H":return NF(a),$7(A,_.FC(Dm(a),G));case "c":a:switch(b=f.getDay(),G){case 5:G=A.JSC$11292_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[b];break a;case 4:G=A.JSC$11292_dateTimeSymbols_.STANDALONEWEEKDAYS[b];break a;case 3:G=A.JSC$11292_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[b];break a;default:G=$7(A,_.FC(b,1))}return G;case "L":a:switch(b=f.getMonth(),G){case 5:G=A.JSC$11292_dateTimeSymbols_.STANDALONENARROWMONTHS[b];
break a;case 4:G=A.JSC$11292_dateTimeSymbols_.STANDALONEMONTHS[b];break a;case 3:G=A.JSC$11292_dateTimeSymbols_.STANDALONESHORTMONTHS[b];break a;default:G=$7(A,_.FC(b+1,G))}return G;case "Q":return b=Math.floor(f.getMonth()/3),G<4?A.JSC$11292_dateTimeSymbols_.SHORTQUARTERS[b]:A.JSC$11292_dateTimeSymbols_.QUARTERS[b];case "d":return $7(A,_.FC(f.getDate(),G));case "m":return NF(a),$7(A,_.FC(a.getMinutes?a.getMinutes():0,G));case "s":return NF(a),$7(A,_.FC(a.getSeconds(),G));case "v":return(T||D5(b.getTimezoneOffset())).timeZoneId_;
case "V":return A=T||D5(b.getTimezoneOffset()),G<=2?A.timeZoneId_:JuY(A,b)>0?A.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?A.tzNamesExt_.STD_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return b=tLY(a.getFullYear(),a.getMonth(),a.getDate(),A.JSC$11292_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$11292_dateTimeSymbols_.FIRSTDAYOFWEEK),$7(A,_.FC(Math.floor(Math.round((b-(new Date((new Date(b)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,G));case "z":return A=T||D5(b.getTimezoneOffset()),G<4?A.tzNames_[JuY(A,b)>0?2:0]:A.tzNames_[JuY(A,b)>0?3:1];case "Z":return Q=T||D5(b.getTimezoneOffset()),G<4?(G=-VK9(Q,b),A=[G<0?"-":"+"],G=Math.abs(G),A.push(_.FC(Math.floor(G/60)%100,2),_.FC(G%60,2)),G=A.join("")):G=$7(A,ic9(VK9(Q,b))),G;default:return""}};var olL=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,tKN=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,x5W=function(A){this.patternParts_=[];this.JSC$11301_dateTimeSymbols_=kB;if(typeof A=="number"){A>11&&(A=10);if(A<4)var Q=this.JSC$11301_dateTimeSymbols_.DATEFORMATS[A];else A<8?Q=this.JSC$11301_dateTimeSymbols_.TIMEFORMATS[A-4]:(Q=this.JSC$11301_dateTimeSymbols_.DATETIMEFORMATS[A-8],Q=Q.replace("{1}",this.JSC$11301_dateTimeSymbols_.DATEFORMATS[A-8]),Q=Q.replace("{0}",this.JSC$11301_dateTimeSymbols_.TIMEFORMATS[A-
8]));rux(this,Q)}else rux(this,A)},rux=function(A,Q){for(var b=!1,f="",a=0;a<Q.length;a++){var T=Q.charAt(a);
if(olL.test(T))for(f.length>0&&(A.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f=""),A.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});a<Q.length-1&&Q.charAt(a+1)==" ";)a++;else if(b)T=="'"?a+1<Q.length&&Q.charAt(a+1)=="'"?(f+="'",a++):b=!1:f+=T;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(T)>=0){f.length>0&&(A.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f="");for(var G=Q.charAt(a),p=a+1;p<Q.length&&Q.charAt(p)==G;)p++;G=p-a;G<=0?p=!1:(p="MydhHmsSDkK".indexOf(T),
p=p>0||p==0&&G<3);A.patternParts_.push({text:T,count:G,abutStart:!1,numeric:p});a+=G-1}else T=="'"?a+1<Q.length&&Q.charAt(a+1)=="'"?(f+="'",a++):b=!0:f+=T}f.length>0&&A.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1});Q=!1;for(b=0;b<A.patternParts_.length;b++)A.patternParts_[b].numeric?!Q&&b+1<A.patternParts_.length&&A.patternParts_[b+1].numeric&&(Q=!0,A.patternParts_[b].abutStart=!0):Q=!1};
x5W.prototype.parse=function(A,Q,b){var f=!1,a=!1;b&&(f=b.predictive||!1,a=b.validate||!1);if(f)for(b=0;b<this.patternParts_.length;b++){var T=this.patternParts_[b];if(T.count>0&&("abBhHkKm".indexOf(T.text.charAt(0))<0||T.count>2||T.abutStart))throw Error("Yd`"+T.text.charAt(0));}T=new j_W;b=[0];T.dayPeriodIndex=-1;for(var G=0;G<this.patternParts_.length&&!(f&&b[0]>=A.length);G++){if(this.patternParts_[G].count==0){a:{var p=A;var P=b,U=this.patternParts_[G],L=f;if(U.text.match(olL)!=null){if(U=P[0],
RBr(p,P),P[0]>U){p=!0;break a}}else{if(p.indexOf(U.text,P[0])==P[0]){P[0]+=U.text.length;p=!0;break a}if(L&&U.text.indexOf(p.substring(P[0]))==0){P[0]+=p.length-P[0];p=!0;break a}}p=!1}if(p)continue;return 0}if(this.patternParts_[G].abutStart){a:{P=A;U=b;L=G;var M=U[0],l=0;for(p=L;p<this.patternParts_.length;p++){var J=this.patternParts_[p],n=J.count;if(n===0)break;if(p==L&&(n-=l,l++,n==0)){p=0;break a}var t=p>L&&J.numeric,g=U[0];if(!glL(this,P,U,J,n,T,!1)||t&&U[0]-g<n)p=L-1,U[0]=M}p-=L}if(p<=0)return 0;
G+=p-1}else if(!glL(this,A,b,this.patternParts_[G],0,T,f))return 0}a:{A=a;if(Q==null)throw Error("Zd");T.era!=void 0&&T.year!=void 0&&T.era==0&&T.year>0&&(T.year=-(T.year-1));T.year!=void 0&&Q.setFullYear(T.year);f=Q.getDate();Q.setDate(1);T.month!=void 0&&Q.setMonth(T.month);T.day!=void 0?Q.setDate(T.day):(a=Lay(Q.getFullYear(),Q.getMonth()),Q.setDate(f>a?a:f));typeof Q.setHours==="function"&&(T.hours==void 0&&(T.hours=Q.getHours()),T.hours<12&&(T.ampm!=void 0&&T.ampm>0?T.hours+=12:T.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(T.dayPeriodName)||["night1","night2"].includes(T.dayPeriodName)&&T.hours>=6)&&(T.hours+=12)),Q.setHours(T.hours));typeof Q.setMinutes==="function"&&T.minutes!=void 0&&Q.setMinutes(T.minutes);typeof Q.setSeconds==="function"&&T.seconds!=void 0&&Q.setSeconds(T.seconds);typeof Q.setMilliseconds==="function"&&T.milliseconds!=void 0&&Q.setMilliseconds(T.milliseconds);if(A&&(T.year&&T.year!=Q.getFullYear()||T.month&&T.month!=
Q.getMonth()||T.day&&T.day!=Q.getDate()||T.hours&&T.hours>=24||T.minutes&&T.minutes>=60||T.seconds&&T.seconds>=60||T.milliseconds&&T.milliseconds>=1E3))Q=!1;else{T.tzOffset!=void 0&&Q.setTime(Q.getTime()+(T.tzOffset-Q.getTimezoneOffset())*60*1E3);T.ambiguousYear&&(A=new Date,A.setFullYear(A.getFullYear()-80),Q.getTime()<A.getTime()&&Q.setFullYear(A.getFullYear()+100));if(T.dayOfWeek!=void 0)if(T.day==void 0)T=(7+T.dayOfWeek-Q.getDay())%7,T>3&&(T-=7),A=Q.getMonth(),Q.setDate(Q.getDate()+T),Q.getMonth()!=
A&&Q.setDate(Q.getDate()+(T>0?-7:7));else if(T.dayOfWeek!=Q.getDay()){Q=!1;break a}Q=!0}}return Q?b[0]:0};
var glL=function(A,Q,b,f,a,T,G){RBr(Q,b);if(f.numeric&&a>0&&b[0]+a>Q.length)return!1;switch(f.text.charAt(0)){case "G":return s0(Q,b,[A.JSC$11301_dateTimeSymbols_.ERAS],function(p){return T.era=p}),!0;
case "M":case "L":return eB$(A,Q,b,a,f,T);case "E":return s0(Q,b,[A.JSC$11301_dateTimeSymbols_.WEEKDAYS,A.JSC$11301_dateTimeSymbols_.SHORTWEEKDAYS],function(p){return T.dayOfWeek=p});
case "B":case "b":return a=[],A=[[].concat(A.JSC$11301_dateTimeSymbols_.AMPMS)],a.push("isAm"),a.push("isPm"),Q=s0(Q,b,A,function(p){return T.dayPeriodIndex=p},G),T.dayPeriodName=a[T.dayPeriodIndex],G?Q:!0;
case "a":return Q=s0(Q,b,[A.JSC$11301_dateTimeSymbols_.AMPMS],function(p){return T.ampm=p},G),G?Q:!0;
case "y":return hBj(A,Q,b,f,a,T);case "Q":return s0(Q,b,[A.JSC$11301_dateTimeSymbols_.QUARTERS,A.JSC$11301_dateTimeSymbols_.SHORTQUARTERS],function(p){T.month=p*3;T.day=1});
case "d":return mf(A,Q,b,f,a,function(p){T.day=p}),!0;
case "S":return W5K(A,Q,b,a,T);case "h":case "K":case "H":case "k":return Q=mf(A,Q,b,f,a,function(p){T.hours=f.text.charAt(0)==="h"&&p===12?0:p},G),G?Q:!0;
case "m":return Q=mf(A,Q,b,f,a,function(p){T.minutes=p},G),G?Q:!0;
case "s":return mf(A,Q,b,f,a,function(p){T.seconds=p}),!0;
case "z":case "Z":case "v":return vl9(A,Q,b,T);default:return!1}},hBj=function(A,Q,b,f,a,T){var G=b[0];
a=A7(A,Q,b,a);a===null&&(a=A7(A,Q,b,0,!0));if(a===null)return!1;a>=0&&b[0]-G==2&&f.count==2?(A=a,Q=(new Date).getFullYear()-80,b=Q%100,T.ambiguousYear=A==b,A+=Math.floor(Q/100)*100+(A<b?100:0),T.year=A):T.year=a;return!0},eB$=function(A,Q,b,f,a,T){return a.numeric&&mf(A,Q,b,a,f,function(G){T.month=G-1})?!0:s0(Q,b,[A.JSC$11301_dateTimeSymbols_.MONTHS,
A.JSC$11301_dateTimeSymbols_.STANDALONEMONTHS,A.JSC$11301_dateTimeSymbols_.SHORTMONTHS,A.JSC$11301_dateTimeSymbols_.STANDALONESHORTMONTHS],function(G){T.month=G})},W5K=function(A,Q,b,f,a){var T=b[0];
A=A7(A,Q,b,f);if(A===null)return!1;b=b[0]-T;a.milliseconds=b<3?A*Math.pow(10,3-b):Math.round(A/Math.pow(10,b-3));return!0},vl9=function(A,Q,b,f){Q.indexOf("GMT",b[0])==b[0]&&(b[0]+=3);
if(b[0]>=Q.length)return f.tzOffset=0,!0;var a=b[0],T=A7(A,Q,b,0,!0);if(T===null)return!1;if(b[0]<Q.length&&Q.charAt(b[0])==":"){var G=T*60;b[0]++;T=A7(A,Q,b,0);if(T===null)return!1;G+=T}else G=T,G=G<24&&b[0]-a<=3?G*60:G%100+G/100*60;f.tzOffset=-G;return!0},mf=function(A,Q,b,f,a,T,G){G=G||!1;
var p=b[0];A=A7(A,Q,b,a);if(A===null)return!1;if(G&&b[0]-p<f.count){if(b[0]<Q.length)return!1;A*=Math.pow(10,f.count-(b[0]-p))}T(A);return!0},s0=function(A,Q,b,f,a){a=a||!1;
for(var T,G=0;G<b.length;G++){T=Q;for(var p=b[G],P=a,U=0,L=null,M=A.substring(T[0]).toLowerCase(),l=0;l<p.length;l++){var J=p[l].toLowerCase();if(P&&J.indexOf(M)==0){U=M.length;L=l;break}p[l].length>U&&M.indexOf(J)==0&&(U=p[l].length,L=l)}L!==null&&(T[0]+=U);T=L;if(T!==null)return f(T),!0}return!1},RBr=function(A,Q){(A=A.substring(Q[0]).match(tKN))&&(Q[0]+=A[0].length)},A7=function(A,Q,b,f,a){Q=f>0?Q.substring(0,b[0]+f):Q;
a=a||!1;if(A.JSC$11301_dateTimeSymbols_.ZERODIGIT){f=[];for(var T=b[0];T<Q.length;T++){var G=Q.charCodeAt(T)-A.JSC$11301_dateTimeSymbols_.ZERODIGIT;f.push(0<=G&&G<=9?String.fromCharCode(G+48):Q.charAt(T))}Q=f.join("")}else Q=Q.substring(b[0]);A=Q.match(new RegExp("^"+(a?"[+-]?":"")+"\\d+"));if(!A)return null;b[0]+=A[0].length;return parseInt(A[0],10)},j_W=function(){};
j_W.prototype.ambiguousYear=!1;_.Elv={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 xJr={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"},cuY=xJr,zB$=xJr;zB$=cuY=xJr;var usj,QA,fb,PxJ,br,wjN;
_.Z5=function(A,Q,b,f){var a;if(a=Q){a:if(Q&&Q.length===3){for(a=0;a<3;a++){var T=Q[a];if(T<"A"||T>"Z"&&T<"a"||T>"z"){a=!1;break a}}a=!0}else a=!1;a=!a}if(a)throw new TypeError("$d");this.intlCurrencyCode_=Q?Q.toUpperCase():null;this.currencyStyle_=b||0;this.overrideNumberFormatSymbols_=f||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_=QA(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof A==="number")switch(A){case 1:br(this,QA(this).DECIMAL_PATTERN);break;case 2:br(this,QA(this).SCIENTIFIC_PATTERN);break;case 3:br(this,QA(this).PERCENT_PATTERN);break;case 4:A=QA(this).CURRENCY_PATTERN;Q=["0"];if(b=
Y7[fb(this)]){b=b[0]&7;if(b>0)for(Q.push("."),f=0;f<b;f++)Q.push("0");A=A.replace(/0.00/g,Q.join(""))}br(this,A);break;case 5:wjN(this,1);break;case 6:wjN(this,2);break;default:throw Error("ce");}else br(this,A)};
usj=!1;QA=function(A){return A.overrideNumberFormatSymbols_||(usj?zB$:cuY)};
fb=function(A){return A.intlCurrencyCode_||QA(A).DEF_CURRENCY_CODE};
PxJ=function(A,Q){if(Q>308)throw Error("be`"+Q);A.maximumFractionDigits_=Q;return A};
br=function(A,Q){var b=[0];A.positivePrefix_=Zc9(A,Q,b);for(var f=b[0],a=-1,T=0,G=0,p=0,P=-1,U=Q.length,L=!0;b[0]<U&&L;b[0]++)switch(Q.charAt(b[0])){case "#":G>0?p++:T++;P>=0&&a<0&&P++;break;case "0":if(p>0)throw Error("ie`"+Q);G++;P>=0&&a<0&&P++;break;case ",":P>0&&A.groupingArray_.push(P);P=0;break;case ".":if(a>=0)throw Error("je`"+Q);a=T+G+p;break;case "E":if(A.useExponentialNotation_)throw Error("ke`"+Q);A.useExponentialNotation_=!0;A.minExponentDigits_=0;b[0]+1<U&&Q.charAt(b[0]+1)=="+"&&(b[0]++,
A.useSignForPositiveExponent_=!0);for(;b[0]+1<U&&Q.charAt(b[0]+1)=="0";)b[0]++,A.minExponentDigits_++;if(T+G<1||A.minExponentDigits_<1)throw Error("le`"+Q);L=!1;break;default:b[0]--,L=!1}G==0&&T>0&&a>=0&&(G=a,G==0&&G++,p=T-G,T=G-1,G=1);if(a<0&&p>0||a>=0&&(a<T||a>T+G)||P==0)throw Error("me`"+Q);p=T+G+p;A.maximumFractionDigits_=a>=0?p-a:0;a>=0&&(A.minimumFractionDigits_=T+G-a,A.minimumFractionDigits_<0&&(A.minimumFractionDigits_=0));A.minimumIntegerDigits_=(a>=0?a:p)-T;A.useExponentialNotation_&&(A.maximumIntegerDigits_=
T+A.minimumIntegerDigits_,A.maximumFractionDigits_==0&&A.minimumIntegerDigits_==0&&(A.minimumIntegerDigits_=1));A.groupingArray_.push(Math.max(0,P));A.decimalSeparatorAlwaysShown_=a==0||a==p;f=b[0]-f;A.positiveSuffix_=Zc9(A,Q,b);b[0]<Q.length&&Q.charAt(b[0])==";"?(b[0]++,A.multiplier_!=1&&(A.negativePercentSignExpected_=!0),A.negativePrefix_=Zc9(A,Q,b),b[0]+=f,A.negativeSuffix_=Zc9(A,Q,b)):(A.negativePrefix_+=A.positivePrefix_,A.negativeSuffix_+=A.positiveSuffix_)};
wjN=function(A,Q){A.compactStyle_=Q;br(A,QA(A).DECIMAL_PATTERN);A.minimumFractionDigits_=0;PxJ(A,2);if(A.minimumFractionDigits_>0)throw Error("ae");A.significantDigits_=2};
_.Z5.prototype.parse=function(A,Q){Q=Q||[0];if(this.compactStyle_!==0)throw Error("de");A=A.replace(/ |\u202f/g,"\u00a0");var b=A.indexOf(this.positivePrefix_,Q[0])==Q[0],f=A.indexOf(this.negativePrefix_,Q[0])==Q[0];b&&f&&(this.positivePrefix_.length>this.negativePrefix_.length?f=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(b=!1));b?Q[0]+=this.positivePrefix_.length:f&&(Q[0]+=this.negativePrefix_.length);if(A.indexOf(QA(this).INFINITY,Q[0])==Q[0]){Q[0]+=QA(this).INFINITY.length;var a=
Infinity}else{a=A;var T=!1,G=!1,p=!1,P=-1,U=1,L=QA(this).DECIMAL_SEP,M=QA(this).GROUP_SEP,l=QA(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ee");M=M.replace(/\u202f/g,"\u00a0");for(var J="";Q[0]<a.length;Q[0]++){var n=a.charAt(Q[0]),t=yuv(this,n);if(t>=0&&t<=9)J+=t,p=!0;else if(n==L.charAt(0)){if(T||G)break;J+=".";T=!0}else if(n==M.charAt(0)&&("\u00a0"!=M.charAt(0)||Q[0]+1<a.length&&yuv(this,a.charAt(Q[0]+1))>=0)){if(T||G)break}else if(n==l.charAt(0)){if(G)break;J+="E";G=!0;P=Q[0]}else if(n==
"+"||n=="-"){if(p&&P!=Q[0]-1)break;J+=n}else if(this.multiplier_==1&&n==QA(this).PERCENT.charAt(0)){if(U!=1)break;U=100;if(p){Q[0]++;break}}else if(this.multiplier_==1&&n==QA(this).PERMILL.charAt(0)){if(U!=1)break;U=1E3;if(p){Q[0]++;break}}else break}this.multiplier_!=1&&(U=this.multiplier_);a=parseFloat(J)/U}if(b){if(A.indexOf(this.positiveSuffix_,Q[0])!=Q[0])return NaN;Q[0]+=this.positiveSuffix_.length}else if(f){if(A.indexOf(this.negativeSuffix_,Q[0])!=Q[0])return NaN;Q[0]+=this.negativeSuffix_.length}return f?
-a:a};
_.Z5.prototype.format=function(A){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("fe");if(isNaN(A))return QA(this).NAN;var Q=[];var b=A;if(this.compactStyle_==0)b=aJ;else{b=Math.abs(b);var f=YcK(this,b<=1?0:DJL(b)).divisorBase;b=YcK(this,f+DJL($Jv(this,Ty(b,-f)).intValue))}A=Ty(A,-b.divisorBase);(f=A<0||A==0&&1/A<0)?b.negative_prefix?Q.push(b.negative_prefix):(Q.push(b.prefix),Q.push(this.negativePrefix_)):(Q.push(b.prefix),Q.push(this.positivePrefix_));if(isFinite(A))if(A*=
f?-1:1,A*=this.multiplier_,this.useExponentialNotation_){var a=A;if(a==0)Nnv(this,a,this.minimumIntegerDigits_,Q),s_1(this,0,Q);else{var T=Math.floor(Math.log(a)/Math.log(10)+2E-15);a=Ty(a,-T);var G=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(G=T%this.maximumIntegerDigits_,G<0&&(G=this.maximumIntegerDigits_+G),a=Ty(a,G),T-=G,G=1):this.minimumIntegerDigits_<1?(T++,a=Ty(a,-1)):(T-=this.minimumIntegerDigits_-1,a=Ty(a,this.minimumIntegerDigits_-
1));Nnv(this,a,G,Q);s_1(this,T,Q)}}else Nnv(this,A,this.minimumIntegerDigits_,Q);else Q.push(QA(this).INFINITY);f?b.negative_suffix?Q.push(b.negative_suffix):(isFinite(A)&&Q.push(b.suffix),Q.push(this.negativeSuffix_)):(isFinite(A)&&Q.push(b.suffix),Q.push(this.positiveSuffix_));return Q.join("")};
var $Jv=function(A,Q){var b=Ty(Q,A.maximumFractionDigits_);A.significantDigits_>0&&(b=mJr(b,A.significantDigits_,A.maximumFractionDigits_));b=Math.round(b);if(isFinite(b)){var f=Math.floor(Ty(b,-A.maximumFractionDigits_));b=Math.floor(b-Ty(f,A.maximumFractionDigits_));if(b<0||b>=Ty(1,A.maximumFractionDigits_))f=Math.round(Q),b=0}else f=Q,b=0;return{intValue:f,fracValue:b}},Nnv=function(A,Q,b,f){if(A.minimumFractionDigits_>A.maximumFractionDigits_)throw Error("fe");
f||(f=[]);Q=$Jv(A,Q);var a=Q.intValue,T=Q.fracValue,G=A.minimumFractionDigits_>0||T>0||!1;Q=A.minimumFractionDigits_;G&&(Q=A.minimumFractionDigits_);for(var p="",P=a;P>1E20;)p="0"+p,P=Math.round(Ty(P,-1));p=P+p;var U=QA(A).DECIMAL_SEP;P=QA(A).ZERO_DIGIT.codePointAt(0);var L=p.length,M=0;if(a>0||b>0){for(a=L;a<b;a++)f.push(String.fromCodePoint(P));if(A.groupingArray_.length>=2)for(b=1;b<A.groupingArray_.length;b++)M+=A.groupingArray_[b];b=L-M;if(b>0){a=A.groupingArray_;M=L=0;for(var l,J=QA(A).GROUP_SEP,
n=p.length,t=0;t<n;t++)if(f.push(String.fromCodePoint(P+Number(p.charAt(t)))),n-t>1)if(l=a[M],t<b){var g=b-t;(l===1||l>0&&g%l===1)&&f.push(J)}else M<a.length&&(t===b?M+=1:l===t-b-L+1&&(f.push(J),L+=l,M+=1))}else{b=p;p=A.groupingArray_;a=QA(A).GROUP_SEP;l=b.length;J=[];for(L=p.length-1;L>=0&&l>0;L--){M=p[L];for(n=0;n<M&&l-n-1>=0;n++)J.push(String.fromCodePoint(P+Number(b.charAt(l-n-1))));l-=M;l>0&&J.push(a)}f.push.apply(f,J.reverse())}}else G||f.push(String.fromCodePoint(P));(A.decimalSeparatorAlwaysShown_||
G)&&f.push(U);T=String(T);G=T.split("e+");G.length==2&&(T=String(mJr(parseFloat(G[0]),A.significantDigits_,1)),T=T.replace(".",""),T+=(0,_.gCv)("0",parseInt(G[1],10)-T.length+1));A.maximumFractionDigits_+1>T.length&&(T="1"+(0,_.gCv)("0",A.maximumFractionDigits_-T.length)+T);for(A=T.length;T.charAt(A-1)=="0"&&A>Q+1;)A--;for(Q=1;Q<A;Q++)f.push(String.fromCodePoint(P+Number(T.charAt(Q))))},s_1=function(A,Q,b){b.push(QA(A).EXP_SYMBOL);
Q<0?(Q=-Q,b.push(QA(A).MINUS_SIGN)):A.useSignForPositiveExponent_&&b.push(QA(A).PLUS_SIGN);Q=""+Q;for(var f=QA(A).ZERO_DIGIT,a=Q.length;a<A.minExponentDigits_;a++)b.push(f);A=f.codePointAt(0)-A8W;for(f=0;f<Q.length;f++)b.push(String.fromCodePoint(A+Q.codePointAt(f)))},yuv=function(A,Q){Q=Q.codePointAt(0);
if(48<=Q&&Q<58)return Q-48;A=QA(A).ZERO_DIGIT.codePointAt(0);return A<=Q&&Q<A+10?Q-A:-1},A8W="0".codePointAt(0),Zc9=function(A,Q,b){for(var f="",a=!1,T=Q.length;b[0]<T;b[0]++){var G=Q.charAt(b[0]);
if(G=="'")b[0]+1<T&&Q.charAt(b[0]+1)=="'"?(b[0]++,f+="'"):a=!a;else if(a)f+=G;else switch(G){case "#":case "0":case ",":case ".":case ";":return f;case "\u00a4":if(b[0]+1<T&&Q.charAt(b[0]+1)=="\u00a4")b[0]++,f+=fb(A);else switch(A.currencyStyle_){case 0:G=fb(A);f+=G in Y7?Y7[G][1]:G;break;case 2:G=fb(A);var p=Y7[G];f+=p?G==p[1]?G:G+" "+p[1]:G;break;case 1:G=fb(A),f+=G in Y7?Y7[G][2]:G}break;case "%":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ge");if(A.negativePercentSignExpected_&&
A.multiplier_!=100)throw Error("he");A.multiplier_=100;A.negativePercentSignExpected_=!1;f+=QA(A).PERCENT;break;case "\u2030":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ge");if(A.negativePercentSignExpected_&&A.multiplier_!=1E3)throw Error("he");A.multiplier_=1E3;A.negativePercentSignExpected_=!1;f+=QA(A).PERMILL;break;default:f+=G}}return f},aJ={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},YcK=function(A,Q){A=A.compactStyle_==1?y5.COMPACT_DECIMAL_SHORT_PATTERN:y5.COMPACT_DECIMAL_LONG_PATTERN;A==null&&(A=y5.COMPACT_DECIMAL_SHORT_PATTERN);if(Q<3)return aJ;Q=Math.min(14,Q);var b=A[Ty(1,Q)];for(--Q;!b&&Q>=3;)b=A[Ty(1,Q)],Q--;if(!b)return aJ;b=b.other;var f=A="",a=b.indexOf(";");a>=0&&(b=b.substring(0,a),a=b.substring(a+1))&&(f=/([^0]*)(0+)(.*)/.exec(a),A=f[1],f=f[3]);return b&&b!="0"?(b=/([^0]*)(0+)(.*)/.exec(b))?{divisorBase:Q+
1-(b[2].length-1),negative_prefix:A,negative_suffix:f,prefix:b[1],suffix:b[3]}:aJ:aJ},DJL=function(A){if(!isFinite(A))return A>0?A:0;
for(var Q=0;(A/=10)>=1;)Q++;return Q},Ty=function(A,Q){if(!A||!isFinite(A)||Q==0)return A;
A=String(A).split("e");return parseFloat(A[0]+"e"+(parseInt(A[1]||0,10)+Q))},QPj=function(A,Q){return A&&isFinite(A)?Ty(Math.round(Ty(A,Q)),-Q):A},mJr=function(A,Q,b){if(!A)return A;
Q=Q-DJL(A)-1;return Q<-b?QPj(A,-b):QPj(A,Q)};var b0Y=function(A){return A%10==1&&A%100!=11?"one":A%10==2&&A%100!=12?"two":A%10==3&&A%100!=13?"few":"other"},f3L=b0Y;
f3L=b0Y;var a3L;a3L=function(A,Q){var b=A|0;if(void 0===Q){Q=Math;var f=Q.min,a=A+"",T=a.indexOf(".");Q=f.call(Q,T===-1?0:a.length-T-1,3)}f=Math.pow(10,Q);A={v:Q,f:(A*f|0)%f};return b==1&&A.v==0?"one":"other"};
_.Ne=a3L;_.Ne=a3L;var TF9,d7Y,FX1,BF$,p8L;_.Ge1=function(A){this.JSC$11344_pattern_=A;this.parsedPattern_=this.literals_=this.initialLiterals_=null;A=cuY;var Q=y5;if(TF9!==A||d7Y!==Q)TF9=A,d7Y=Q,FX1=new _.Z5(1);this.numberFormatter_=FX1};
TF9=null;d7Y=null;FX1=null;BF$=RegExp("'([{}#].*?)'","g");p8L=RegExp("''","g");
_.Ge1.prototype.format=function(A){if(this.JSC$11344_pattern_){this.initialLiterals_=[];var Q=PeN(this,this.JSC$11344_pattern_);this.parsedPattern_=X81(this,Q);this.JSC$11344_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.xC(this.initialLiterals_),Q=[],SGK(this,this.parsedPattern_,A,!1,Q),A=Q.join("");this.literals_.length>0;)A=A.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else A="";return A};
var SGK=function(A,Q,b,f,a){for(var T=0;T<Q.length;T++)switch(Q[T].type){case 4:a.push(Q[T].value);break;case 3:var G=Q[T].value;var p=A,P=a,U=b[G];U===void 0?P.push("Undefined parameter - "+G):(p.literals_.push(U),P.push(p.buildPlaceholder_(p.literals_)));break;case 2:G=Q[T].value;p=A;P=b;U=f;var L=a,M=G.argumentIndex;P[M]===void 0?L.push("Undefined parameter - "+M):(M=G[P[M]],M===void 0&&(M=G.other),SGK(p,M,P,U,L));break;case 0:G=Q[T].value;U7j(A,G,b,_.Ne,f,a);break;case 1:G=Q[T].value,U7j(A,G,
b,f3L,f,a)}},U7j=function(A,Q,b,f,a,T){var G=Q.argumentIndex,p=Q.argumentOffset,P=+b[G];
isNaN(P)?T.push("Undefined or invalid parameter - "+G):(p=P-p,G=Q[b[G]],G===void 0&&(f=f(Math.abs(p)),G=Q[f],G===void 0&&(G=Q.other)),Q=[],SGK(A,G,b,a,Q),b=Q.join(""),a?T.push(b):(A=A.numberFormatter_.format(p),T.push(b.replace(/#/g,A))))},PeN=function(A,Q){var b=A.initialLiterals_,f=A.buildPlaceholder_.bind(A);
Q=Q.replace(p8L,function(){b.push("'");return f(b)});
return Q=Q.replace(BF$,function(a,T){b.push(T);return f(b)})},LX9=function(A){var Q=0,b=[],f=[],a=/[{}]/g;
a.lastIndex=0;for(var T;T=a.exec(A);){var G=T.index;T[0]=="}"?(b.pop(),b.length==0&&(T={type:1},T.value=A.substring(Q,G),f.push(T),Q=G+1)):(b.length==0&&(Q=A.substring(Q,G),Q!=""&&f.push({type:0,value:Q}),Q=G+1),b.push("{"))}A=A.substring(Q);A!=""&&f.push({type:0,value:A});return f},MM9=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,l31=/^\s*(\w+)\s*,\s*selectordinal\s*,/,KXM=/^\s*(\w+)\s*,\s*select\s*,/,X81=function(A,Q){var b=[];
Q=LX9(Q);for(var f=0;f<Q.length;f++){var a={};if(0==Q[f].type)a.type=4,a.value=Q[f].value;else if(1==Q[f].type){var T=Q[f].value;switch(MM9.test(T)?0:l31.test(T)?1:KXM.test(T)?2:/^\s*\w+\s*/.test(T)?3:5){case 2:a.type=2;a.value=i0r(A,Q[f].value);break;case 0:a.type=0;a.value=J8p(A,Q[f].value);break;case 1:a.type=1;a.value=VMY(A,Q[f].value);break;case 3:a.type=3,a.value=Q[f].value}}b.push(a)}return b},i0r=function(A,Q){var b="";
Q=Q.replace(KXM,function(p,P){b=P;return""});
var f={};f.argumentIndex=b;Q=LX9(Q);for(var a=0;a<Q.length;){var T=Q[a].value;a++;var G=void 0;1==Q[a].type&&(G=X81(A,Q[a].value));f[T.replace(/\s/g,"")]=G;a++}return f},J8p=function(A,Q){var b="",f=0;
Q=Q.replace(MM9,function(P,U,L){b=U;L&&(f=parseInt(L,10));return""});
var a={};a.argumentIndex=b;a.argumentOffset=f;Q=LX9(Q);for(var T=0;T<Q.length;){var G=Q[T].value;T++;var p=void 0;1==Q[T].type&&(p=X81(A,Q[T].value));a[G.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=p;T++}return a},VMY=function(A,Q){var b="";
Q=Q.replace(l31,function(p,P){b=P;return""});
var f={};f.argumentIndex=b;f.argumentOffset=0;Q=LX9(Q);for(var a=0;a<Q.length;){var T=Q[a].value;a++;var G=void 0;1==Q[a].type&&(G=X81(A,Q[a].value));f[T.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=G;a++}return f};
_.Ge1.prototype.buildPlaceholder_=function(A){return"\ufddf_"+(A.length-1).toString(10)+"_"};var O0v;
O0v={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 C76=function(){this.rdtfSymbols_=nzr||O0v;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
C76.prototype.format=function(A,Q){a:{Q=keY(this,Q);switch(this.style_){case 2:if(Q.NARROW!=void 0){Q=Q.NARROW;break a}case 1:if(Q.SHORT!=void 0){Q=Q.SHORT;break a}default:Q=Q.LONG;break a}Q=void 0}if(!this.alwaysNumeric_&&Q&&Q.R&&Q.R[""+A])A=Q.R[""+A];else if(Q){var b=Math.abs(A);A=(new _.Ge1("{N,plural,"+(A>0||A==0&&1/A==Infinity?Q.F:Q.P)+"}")).format({N:b})}else A="";return A};
var keY=function(A,Q){switch(Q){default:case 0:return A.rdtfSymbols_.YEAR;case 1:return A.rdtfSymbols_.QUARTER;case 2:return A.rdtfSymbols_.MONTH;case 3:return A.rdtfSymbols_.WEEK;case 4:return A.rdtfSymbols_.DAY;case 5:return A.rdtfSymbols_.HOUR;case 6:return A.rdtfSymbols_.MINUTE;case 7:return A.rdtfSymbols_.SECOND}};var I39=function(A,Q,b,f,a,T,G,p){this.x0=A;this.y0=Q;this.x1=b;this.y1=f;this.x2=a;this.y2=T;this.x3=G;this.y3=p};
I39.prototype.clone=function(){return new I39(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
I39.prototype.equals=function(A){return this.x0==A.x0&&this.y0==A.y0&&this.x1==A.x1&&this.y1==A.y1&&this.x2==A.x2&&this.y2==A.y2&&this.x3==A.x3&&this.y3==A.y3};
var H0v=function(A,Q){if(Q==0)return A.x0;if(Q==1)return A.x3;var b=Cw(A.x0,A.x1,Q),f=Cw(A.x1,A.x2,Q);A=Cw(A.x2,A.x3,Q);b=Cw(b,f,Q);f=Cw(f,A,Q);return Cw(b,f,Q)},CeW=function(A,Q){var b=(Q-A.x0)/(A.x3-A.x0);
if(b<=0)return 0;if(b>=1)return 1;for(var f=0,a=1,T=0,G=0;G<8;G++){T=H0v(A,b);var p=(H0v(A,b+1E-6)-T)/1E-6;if(Math.abs(T-Q)<1E-6)return b;if(Math.abs(p)<1E-6)break;else T<Q?f=b:a=b,b-=(T-Q)/p}for(G=0;Math.abs(T-Q)>1E-6&&G<8;G++)T<Q?(f=b,b=(b+a)/2):(a=b,b=(b+f)/2),T=H0v(A,b);return b};var d7=function(){_.IH.call(this);this.JSC$11365_name_="closure_frame"+qGW++;this.iframesForDisposal_=[];ozN[this.JSC$11365_name_]=this},Fz;
_.BD(d7,_.IH);var ozN={},qGW=0,tML=function(A,Q){var b=OX(A);ckp(Q,function(f,a){Array.isArray(f)||(f=[f]);_.ZR(f,function(T){T=b.JSC$9270_createDom("INPUT",{type:"hidden",name:a,value:T});A.appendChild(T)})})};
_.d=d7.prototype;_.d.JSC$11367_form_=null;_.d.JSC$11367_iframe_=null;_.d.iframeName_=null;_.d.nextIframeId_=0;_.d.JSC$11367_active_=!1;_.d.complete_=!1;_.d.success_=!1;_.d.lastContent_=null;_.d.JSC$11367_lastErrorCode_=0;_.d.iframeDisposalTimer_=null;
_.d.send=function(A,Q,b,f){if(this.JSC$11367_active_)throw Error("ne");A=new _.m7(A);Q=Q?Q.toUpperCase():"GET";b&&_.Xh(A);Fz||(Fz=_.rh("FORM"),Fz.acceptCharset="utf-8",b=Fz.style,b.position="absolute",b.visibility="hidden",b.top=b.left="-10px",b.width=b.height="10px",b.overflow="hidden",document.body.appendChild(Fz));this.JSC$11367_form_=Fz;Q=="GET"&&tML(this.JSC$11367_form_,A.JSC$9973_queryData_);f&&tML(this.JSC$11367_form_,f);b=A.toString();b=ZJf(b);f=this.JSC$11367_form_;b=_.x8(qs(b));b!==void 0&&
(f.action=b);this.JSC$11367_form_.method=Q;r8$(this);jPy(this)};
_.d.abort=function(A){if(this.JSC$11367_active_){var Q=Gy(this);if(Q)if(O3(Q))Q.removeAllListeners(void 0);else if(Q=nG(Q)){var b=0,f;for(f in Q.listeners)for(var a=Q.listeners[f].concat(),T=0;T<a.length;++T)oP(a[T])&&++b}this.success_=this.JSC$11367_active_=this.complete_=!1;this.JSC$11367_lastErrorCode_=A||7;this.dispatchEvent("abort");RUv(this)}};
_.d.disposeInternal=function(){this.JSC$11367_active_&&this.abort();d7.superClass_.disposeInternal.call(this);this.JSC$11367_iframe_&&gzN(this);jPy(this);this.JSC$11367_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11367_form_=null;this.JSC$11367_lastErrorCode_=0;delete ozN[this.JSC$11365_name_]};
_.d.isComplete=function(){return this.complete_};
_.d.isSuccess=function(){return this.success_};
_.d.isActive=function(){return this.JSC$11367_active_};
_.d.getResponseText=function(){return this.lastContent_};
_.d.getLastError=function(){return _.itY(this.JSC$11367_lastErrorCode_)};
var r8$=function(A){A.JSC$11367_active_=!0;A.complete_=!1;A.JSC$11367_lastErrorCode_=0;A.iframeName_=A.JSC$11365_name_+"_"+(A.nextIframeId_++).toString(36);A.JSC$11367_iframe_=OX(A.JSC$11367_form_).JSC$9270_createDom("IFRAME",{name:A.iframeName_,id:A.iframeName_});var Q=A.JSC$11367_iframe_.style;Q.visibility="hidden";Q.width=Q.height="10px";Q.display="none";_.Le?Q.marginTop=Q.marginLeft="-10px":(Q.position="absolute",Q.top=Q.left="-10px");OX(A.JSC$11367_form_).JSC$9268_document_.body.appendChild(A.JSC$11367_iframe_);
Q=A.iframeName_+"_inner";var b=fry(A.JSC$11367_iframe_);if(document.baseURI){var f=lJ(Q);f='<head><base href="'+lJ(document.baseURI)+'"></head><body><iframe id="'+f+'" name="'+f+'"></iframe>';f=w$(f)}else f=lJ(Q),f=w$('<body><iframe id="'+f+'" name="'+f+'"></iframe>');b.write(un(f));_.jM(b.getElementById(Q),"load",A.onIframeLoaded_,!1,A);f=JT("TEXTAREA",A.JSC$11367_form_);for(var a=0,T=f.length;a<T;a++){var G=f[a].value;BxW(f[a])!=G&&(_.vk(f[a],G),f[a].value=G)}f=b.importNode(A.JSC$11367_form_,!0);
f.target=Q;f.action=A.JSC$11367_form_.action;b.body.appendChild(f);a=JT("SELECT",A.JSC$11367_form_);T=JT("SELECT",f);G=0;for(var p=a.length;G<p;G++)for(var P=JT("OPTION",a[G]),U=JT("OPTION",T[G]),L=0,M=P.length;L<M;L++)U[L].selected=P[L].selected;a=JT("INPUT",A.JSC$11367_form_);T=JT("INPUT",f);G=0;for(p=a.length;G<p;G++)if(a[G].type=="file"&&a[G].value!=T[G].value){A.JSC$11367_form_.target=Q;f=A.JSC$11367_form_;break}try{A.errorHandled_=!1,f.submit(),b.close(),_.U2&&setTimeout(A.testForFirefoxSilentError_.bind(A),
250)}catch(l){_.kp(b.getElementById(Q),"load",A.onIframeLoaded_,!1,A),b.close(),Bp(A,2)}};
d7.prototype.onIframeLoaded_=function(){_.kp(Gy(this),"load",this.onIframeLoaded_,!1,this);try{var A=this.JSC$11367_iframe_?fry(Gy(this)):null;this.complete_=!0;this.JSC$11367_active_=!1;try{var Q=A.body;this.lastContent_=Q.textContent||Q.innerText}catch(a){var b=1}var f;b||typeof this.errorChecker_!="function"||(f=this.errorChecker_(A))&&(b=4);b?Bp(this,b):(this.success_=!0,this.JSC$11367_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),RUv(this))}catch(a){Bp(this,1)}};
var Bp=function(A,Q){A.errorHandled_||(A.success_=!1,A.JSC$11367_active_=!1,A.complete_=!0,A.JSC$11367_lastErrorCode_=Q,A.dispatchEvent("complete"),A.dispatchEvent("error"),RUv(A),A.errorHandled_=!0)},RUv=function(A){gzN(A);
jPy(A);A.JSC$11367_form_=null;A.dispatchEvent("ready")},gzN=function(A){var Q=A.JSC$11367_iframe_;
Q&&(Q.onreadystatechange=null,Q.onload=null,Q.onerror=null,A.iframesForDisposal_.push(Q));A.iframeDisposalTimer_&&(clearTimeout(A.iframeDisposalTimer_),A.iframeDisposalTimer_=null);_.U2?A.iframeDisposalTimer_=setTimeout(A.disposeIframes_.bind(A),2E3):A.disposeIframes_();A.JSC$11367_iframe_=null;A.iframeName_=null};
d7.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var A=this.iframesForDisposal_.pop();_.im(A)}};
var jPy=function(A){A.JSC$11367_form_&&A.JSC$11367_form_==Fz&&_.gh(A.JSC$11367_form_)},Gy=function(A){return A.JSC$11367_iframe_?fry(A.JSC$11367_iframe_).getElementById(A.iframeName_+"_inner"):null};
d7.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11367_active_){var A=this.JSC$11367_iframe_?fry(Gy(this)):null;A&&!n5Y(A,"documentUri")?(_.kp(Gy(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Bp(this,3):Bp(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.pb=function(A){return A=="\r"||A=="\n"||A==" "||A=="\t"};var eUW;_.Pp=function(A){this.errorMessage_=null;this.result_=[];this.JSC$11369_buffer_="";this.stack_=[];this.JSC$11369_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!A||!A.deliverMessageAsRawString)};
eUW={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};_.Pp.prototype.isInputValid=function(){return this.streamState_!=3};
_.Pp.prototype.done=function(){return this.streamState_===2};
var Xz=function(A,Q,b){A.streamState_=3;A.errorMessage_="The stream is broken @"+A.JSC$11369_pos_+"/"+b+". With input:\n"+Q;throw Error(A.errorMessage_);};
_.Pp.prototype.acceptsBinaryInput=function(){return!1};
_.Pp.prototype.parse=function(A){function Q(){for(;l<A.length;)if(_.pb(A[l]))l++,T.JSC$11369_pos_++;else break;return l<U}
function b(){for(var n;;){n=A[l++];if(!n)break;T.JSC$11369_pos_++;switch(T.state_){case P.INIT:n==="{"?T.state_=P.OBJECT_OPEN:n==="["?T.state_=P.ARRAY_OPEN:_.pb(n)||Xz(T,A,l);continue;case P.KEY_START:case P.OBJECT_OPEN:if(_.pb(n))continue;if(T.state_===P.KEY_START)G.push(P.KEY_END);else if(n==="}"){a("{}");T.state_=f();continue}else G.push(P.OBJECT_END);n==='"'?T.state_=P.STRING:Xz(T,A,l);continue;case P.KEY_END:case P.OBJECT_END:if(_.pb(n))continue;n===":"?(T.state_===P.OBJECT_END&&(G.push(P.OBJECT_END),
T.depth_++),T.state_=P.VALUE):n==="}"?(T.depth_--,a(),T.state_=f()):n===","?(T.state_===P.OBJECT_END&&G.push(P.OBJECT_END),T.state_=P.KEY_START):Xz(T,A,l);continue;case P.ARRAY_OPEN:case P.VALUE:if(_.pb(n))continue;if(T.state_===P.ARRAY_OPEN)if(T.depth_++,T.state_=P.VALUE,n==="]"){T.depth_--;if(T.depth_===0){T.state_=P.ARRAY_END;return}a("[]");T.state_=f();continue}else G.push(P.ARRAY_END);n==='"'?T.state_=P.STRING:n==="{"?T.state_=P.OBJECT_OPEN:n==="["?T.state_=P.ARRAY_OPEN:n==="t"?T.state_=P.TRUE1:
n==="f"?T.state_=P.FALSE1:n==="n"?T.state_=P.NULL1:n!=="-"&&("0123456789".indexOf(n)!==-1?T.state_=P.NUM_DIGIT:Xz(T,A,l));continue;case P.ARRAY_END:if(n===",")G.push(P.ARRAY_END),T.state_=P.VALUE,T.depth_===1&&(M=l);else if(n==="]"){T.depth_--;if(T.depth_===0)return;a();T.state_=f()}else if(_.pb(n))continue;else Xz(T,A,l);continue;case P.STRING:var t=l;a:for(;;){for(;T.unicodeCount_>0;)if(n=A[l++],T.unicodeCount_===4?T.unicodeCount_=0:T.unicodeCount_++,!n)break a;if(n==='"'&&!T.slashed_){T.state_=
f();break}if(n==="\\"&&!T.slashed_&&(T.slashed_=!0,n=A[l++],!n))break;if(T.slashed_)if(T.slashed_=!1,n==="u"&&(T.unicodeCount_=1),n=A[l++])continue;else break;p.lastIndex=l;n=p.exec(A);if(!n){l=A.length+1;break}l=n.index+1;n=A[n.index];if(!n)break}T.JSC$11369_pos_+=l-t;continue;case P.TRUE1:if(!n)continue;n==="r"?T.state_=P.TRUE2:Xz(T,A,l);continue;case P.TRUE2:if(!n)continue;n==="u"?T.state_=P.TRUE3:Xz(T,A,l);continue;case P.TRUE3:if(!n)continue;n==="e"?T.state_=f():Xz(T,A,l);continue;case P.FALSE1:if(!n)continue;
n==="a"?T.state_=P.FALSE2:Xz(T,A,l);continue;case P.FALSE2:if(!n)continue;n==="l"?T.state_=P.FALSE3:Xz(T,A,l);continue;case P.FALSE3:if(!n)continue;n==="s"?T.state_=P.FALSE4:Xz(T,A,l);continue;case P.FALSE4:if(!n)continue;n==="e"?T.state_=f():Xz(T,A,l);continue;case P.NULL1:if(!n)continue;n==="u"?T.state_=P.NULL2:Xz(T,A,l);continue;case P.NULL2:if(!n)continue;n==="l"?T.state_=P.NULL3:Xz(T,A,l);continue;case P.NULL3:if(!n)continue;n==="l"?T.state_=f():Xz(T,A,l);continue;case P.NUM_DECIMAL_POINT:n===
"."?T.state_=P.NUM_DIGIT:Xz(T,A,l);continue;case P.NUM_DIGIT:if("0123456789.eE+-".indexOf(n)!==-1)continue;else l--,T.JSC$11369_pos_--,T.state_=f();continue;default:Xz(T,A,l)}}}
function f(){var n=G.pop();return n!=null?n:P.VALUE}
function a(n){T.depth_>1||(n||(n=M===-1?T.JSC$11369_buffer_+A.substring(L,l):A.substring(M,l)),T.deliverMessageAsRawString_?T.result_.push(n):T.result_.push(JSON.parse(n)),M=l)}
for(var T=this,G=T.stack_,p=T.stringInputPattern_,P=eUW,U=A.length,L=0,M=-1,l=0;l<U;)switch(T.streamState_){case 3:return Xz(T,A,l),null;case 2:return Q()&&Xz(T,A,l),null;case 0:if(Q()){var J=A[l++];T.JSC$11369_pos_++;if(J==="["){T.streamState_=1;L=l;T.state_=P.ARRAY_OPEN;continue}else Xz(T,A,l)}return null;case 1:return b(),T.depth_===0&&T.state_==P.ARRAY_END?(T.streamState_=2,T.JSC$11369_buffer_=A.substring(l)):T.JSC$11369_buffer_=M===-1?T.JSC$11369_buffer_+A.substring(L):A.substring(M),T.result_.length>
0?(J=T.result_,T.result_=[],J):null}return null};_.BD(_.PR,CJ);XM.prototype.getValue=function(){return this.JSC$11377_value_};
XM.prototype.clone=function(){return new XM(this.JSC$11377_key_,this.JSC$11377_value_)};var SI=function(A){this.nodes_=[];if(A)a:{if(A instanceof SI){var Q=A.getKeys();A=A.getValues();if(this.getCount()<=0){for(var b=this.nodes_,f=0;f<Q.length;f++)b.push(new XM(Q[f],A[f]));break a}}else Q=_.j2.getKeys(A),A=_.j2.getValues(A);for(b=0;b<Q.length;b++)this.insert(Q[b],A[b])}};
_.d=SI.prototype;_.d.insert=function(A,Q){var b=this.nodes_;b.push(new XM(A,Q));A=b.length-1;Q=this.nodes_;for(b=Q[A];A>0;){var f=A-1>>1;if(Q[f].JSC$11377_key_>b.JSC$11377_key_)Q[A]=Q[f],A=f;else break}Q[A]=b};
_.d.remove=function(){var A=this.nodes_,Q=A.length,b=A[0];if(!(Q<=0)){if(Q==1)A.length=0;else{A[0]=A.pop();A=0;Q=this.nodes_;for(var f=Q.length,a=Q[A];A<f>>1;){var T=A*2+1,G=A*2+2;T=G<f&&Q[G].JSC$11377_key_<Q[T].JSC$11377_key_?G:T;if(Q[T].JSC$11377_key_>a.JSC$11377_key_)break;Q[A]=Q[T];A=T}Q[A]=a}return b.getValue()}};
_.d.peek=function(){var A=this.nodes_;if(A.length!=0)return A[0].getValue()};
_.d.getValues=function(){for(var A=this.nodes_,Q=[],b=A.length,f=0;f<b;f++)Q.push(A[f].getValue());return Q};
_.d.getKeys=function(){for(var A=this.nodes_,Q=[],b=A.length,f=0;f<b;f++)Q.push(A[f].JSC$11377_key_);return Q};
_.d.containsValue=function(A){return this.nodes_.some(function(Q){return Q.getValue()==A})};
_.d.containsKey=function(A){return this.nodes_.some(function(Q){return Q.JSC$11377_key_==A})};
_.d.clone=function(){return new SI(this)};
_.d.getCount=function(){return this.nodes_.length};
_.d.isEmpty=function(){return this.nodes_.length===0};
_.d.clear=function(){this.nodes_.length=0};_.Uz=function(A,Q){this.JSC$11383_map_={};this.JSC$11383_keys_=[];this.version_=this.size=0;var b=arguments.length;if(b>1){if(b%2)throw Error("ka");for(var f=0;f<b;f+=2)this.set(arguments[f],arguments[f+1])}else A&&this.addAll(A)};
_.d=_.Uz.prototype;_.d.getCount=function(){return this.size};
_.d.getValues=function(){Lb(this);for(var A=[],Q=0;Q<this.JSC$11383_keys_.length;Q++)A.push(this.JSC$11383_map_[this.JSC$11383_keys_[Q]]);return A};
_.d.getKeys=function(){Lb(this);return this.JSC$11383_keys_.concat()};
_.d.containsKey=function(A){return this.has(A)};
_.d.has=function(A){return MX(this.JSC$11383_map_,A)};
_.d.containsValue=function(A){for(var Q=0;Q<this.JSC$11383_keys_.length;Q++){var b=this.JSC$11383_keys_[Q];if(MX(this.JSC$11383_map_,b)&&this.JSC$11383_map_[b]==A)return!0}return!1};
_.d.equals=function(A,Q){if(this===A)return!0;if(this.size!=A.getCount())return!1;Q=Q||hUx;Lb(this);for(var b,f=0;b=this.JSC$11383_keys_[f];f++)if(!Q(this.get(b),A.get(b)))return!1;return!0};
var hUx=function(A,Q){return A===Q};
_.Uz.prototype.isEmpty=function(){return this.size==0};
_.Uz.prototype.clear=function(){this.JSC$11383_map_={};this.version_=this.size=this.JSC$11383_keys_.length=0};
_.Uz.prototype.remove=function(A){return this.delete(A)};
_.Uz.prototype.delete=function(A){return MX(this.JSC$11383_map_,A)?(delete this.JSC$11383_map_[A],--this.size,this.version_++,this.JSC$11383_keys_.length>2*this.size&&Lb(this),!0):!1};
var Lb=function(A){if(A.size!=A.JSC$11383_keys_.length){for(var Q=0,b=0;Q<A.JSC$11383_keys_.length;){var f=A.JSC$11383_keys_[Q];MX(A.JSC$11383_map_,f)&&(A.JSC$11383_keys_[b++]=f);Q++}A.JSC$11383_keys_.length=b}if(A.size!=A.JSC$11383_keys_.length){Q={};for(f=b=0;b<A.JSC$11383_keys_.length;){var a=A.JSC$11383_keys_[b];MX(Q,a)||(A.JSC$11383_keys_[f++]=a,Q[a]=1);b++}A.JSC$11383_keys_.length=f}};
_.d=_.Uz.prototype;_.d.get=function(A,Q){return MX(this.JSC$11383_map_,A)?this.JSC$11383_map_[A]:Q};
_.d.set=function(A,Q){MX(this.JSC$11383_map_,A)||(this.size+=1,this.JSC$11383_keys_.push(A),this.version_++);this.JSC$11383_map_[A]=Q};
_.d.addAll=function(A){if(A instanceof _.Uz)for(var Q=A.getKeys(),b=0;b<Q.length;b++)this.set(Q[b],A.get(Q[b]));else for(Q in A)this.set(Q,A[Q])};
_.d.forEach=function(A,Q){for(var b=this.getKeys(),f=0;f<b.length;f++){var a=b[f],T=this.get(a);A.call(Q,T,a,this)}};
_.d.clone=function(){return new _.Uz(this)};
_.d.transpose=function(){for(var A=new _.Uz,Q=0;Q<this.JSC$11383_keys_.length;Q++){var b=this.JSC$11383_keys_[Q];A.set(this.JSC$11383_map_[b],b)}return A};
_.d.keys=function(){return pt1(this.__iterator__(!0)).toEs6()};
_.d.values=function(){return pt1(this.__iterator__(!1)).toEs6()};
_.d.entries=function(){var A=this;return nry(this.keys(),function(Q){return[Q,A.get(Q)]})};
_.d.__iterator__=function(A){Lb(this);var Q=0,b=this.version_,f=this,a=new PB;a.next=function(){if(b!=f.version_)throw Error("oe");if(Q>=f.JSC$11383_keys_.length)return X1;var T=f.JSC$11383_keys_[Q++];return S_(A?T:f.JSC$11383_map_[T])};
return a};
var MX=function(A,Q){return Object.prototype.hasOwnProperty.call(A,Q)};var vzY=function(){this.JSC$11386_map_=new _.Uz;this.JSC$11386_head_=new WXL("");this.JSC$11386_head_.next=this.JSC$11386_head_.prev=this.JSC$11386_head_},Ezv=function(A,Q){if(Q=A.JSC$11386_map_.get(Q))Q.remove(),A.insert_(Q);
return Q};
_.d=vzY.prototype;_.d.get=function(A,Q){return(A=Ezv(this,A))?A.value:Q};
_.d.set=function(A,Q){var b=Ezv(this,A);b?b.value=Q:(b=new WXL(A,Q),this.JSC$11386_map_.set(A,b),this.insert_(b))};
_.d.peek=function(){return this.JSC$11386_head_.next.value};
_.d.shift=function(){return x7$(this,this.JSC$11386_head_.next)};
_.d.pop=function(){return x7$(this,this.JSC$11386_head_.prev)};
_.d.remove=function(A){return(A=this.JSC$11386_map_.get(A))?(this.removeNode(A),!0):!1};
_.d.removeNode=function(A){A.remove();this.JSC$11386_map_.remove(A.key)};
_.d.getCount=function(){return this.JSC$11386_map_.getCount()};
_.d.isEmpty=function(){return this.JSC$11386_map_.isEmpty()};
_.d.getKeys=function(){return this.map(function(A,Q){return Q})};
_.d.getValues=function(){return this.map(function(A){return A})};
_.d.contains=function(A){return this.some(function(Q){return Q==A})};
_.d.containsKey=function(A){return this.JSC$11386_map_.containsKey(A)};
_.d.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11386_head_.prev)};
_.d.forEach=function(A,Q){for(var b=this.JSC$11386_head_.next;b!=this.JSC$11386_head_;b=b.next)A.call(Q,b.value,b.key,this)};
_.d.map=function(A,Q){for(var b=[],f=this.JSC$11386_head_.next;f!=this.JSC$11386_head_;f=f.next)b.push(A.call(Q,f.value,f.key,this));return b};
_.d.some=function(A,Q){for(var b=this.JSC$11386_head_.next;b!=this.JSC$11386_head_;b=b.next)if(A.call(Q,b.value,b.key,this))return!0;return!1};
_.d.every=function(A,Q){for(var b=this.JSC$11386_head_.next;b!=this.JSC$11386_head_;b=b.next)if(!A.call(Q,b.value,b.key,this))return!1;return!0};
_.d.insert_=function(A){A.next=this.JSC$11386_head_.next;A.prev=this.JSC$11386_head_;this.JSC$11386_head_.next=A;for(A.next.prev=A;this.getCount()>100;)this.removeNode(this.JSC$11386_head_.prev)};
var x7$=function(A,Q){A.JSC$11386_head_!=Q&&A.removeNode(Q);return Q.value},WXL=function(A,Q){this.key=A;
this.value=Q};
WXL.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var c8j=function(){SI.apply(this,arguments)};
_.O(c8j,SI);c8j.prototype.enqueue=function(A,Q){this.insert(A,Q)};var zUL=function(){var A=Error();A.name="SecurityError";throw A;},o9Y=function(){return{get opener(){return null},
get closed(){return!0},get location(){zUL()},get document(){zUL()},postMessage:function(){},
close:function(){},
focus:function(){}}};var qJC={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 jB4={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 w8y={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(jB4).join("|");var up1=function(){function A(p){p.substr(-1)!==";"&&(p+=";");return G(p)}
for(var Q=Object.keys(w8y).sort(tEy),b=Object.keys(jB4).sort(tEy),f=0,a=0;f<b.length;f++)Q[a]===b[f]?(b[f]+=";?",a++):b[f]+=";";var T=new RegExp("&(?:"+b.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),G=RuF();return function(p){return String(p).replace(T,A)}}();/*

 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 Z0L={};var y8L=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"),YG1=/[\\&]/,D7x=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),$7x=RegExp('[&<>"]',"g"),NFW=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),sP1=function(A){return A.charCodeAt(0)===92?A.charAt(1):up1(A)},m7y=function(A){return YG1.test(A)?A.replace(D7x,sP1):A},Afj=function(A){try{var Q,b="";
if(typeof a!=="string"){var f=a;var a=";/?:@&=+$,-_.!~*'()#"}typeof f==="undefined"&&(f=!0);var T,G=Z0L[a];if(G)var p=G;else{G=Z0L[a]=[];for(T=0;T<128;T++){var P=String.fromCharCode(T);/^[0-9a-z]$/i.test(P)?G.push(P):G.push("%"+("0"+T.toString(16).toUpperCase()).slice(-2))}for(T=0;T<a.length;T++)G[a.charCodeAt(T)]=a[T];p=G}var U=0;for(Q=A.length;U<Q;U++){var L=A.charCodeAt(U);if(f&&L===37&&U+2<Q&&/^[0-9a-f]{2}$/i.test(A.slice(U+1,U+3)))b+=A.slice(U,U+3),U+=2;else if(L<128)b+=p[L];else if(L>=55296&&
L<=57343){if(L>=55296&&L<=56319&&U+1<Q){var M=A.charCodeAt(U+1);if(M>=56320&&M<=57343){b+=encodeURIComponent(A[U]+A[U+1]);U++;continue}}b+="%EF%BF%BD"}else b+=encodeURIComponent(A[U])}return b}catch(l){return A}},QYN=function(A){switch(A){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return A}},lr=function(A,Q){return $7x.test(A)?Q?A.replace(NFW,QYN):A.replace($7x,QYN):A};/*

 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 Kb;if(String.fromCodePoint)Kb=function(A){try{return String.fromCodePoint(A)}catch(Q){if(Q instanceof RangeError)return String.fromCharCode(65533);throw Q;}};
else{var bEK=String.fromCharCode,fc$=Math.floor;Kb=function(){var A=[],Q=-1,b=arguments.length;if(!b)return"";for(var f="";++Q<b;){var a=Number(arguments[Q]);if(!isFinite(a)||a<0||a>1114111||fc$(a)!==a)return String.fromCharCode(65533);if(a<=65535)A.push(a);else{a-=65536;var T=(a>>10)+55296;a=a%1024+56320;A.push(T,a)}if(Q+1===b||A.length>16384)f+=bEK.apply(null,A),A.length=0}return f}};var acy=function(A){this.root=this.current=A;this.entering=!0};
acy.prototype.next=function(){var A=this.current,Q=this.entering;if(A===null)return null;a:switch(A._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 b=!0;break a;default:b=!1}Q&&b?A._firstChild?(this.current=A._firstChild,this.entering=!0):this.entering=!1:A===this.root?this.current=null:A._next===null?(this.current=
A._parent,this.entering=!1):(this.current=A._next,this.entering=!0);return{entering:Q,node:A}};
var MW=function(A,Q){this._type=A;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=Q;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};
MW.prototype.appendChild=function(A){A.unlink();A._parent=this;this._lastChild?(this._lastChild._next=A,A._prev=this._lastChild):this._firstChild=A;this._lastChild=A};
MW.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 T_y=function(A,Q){Q.unlink();Q._next=A._next;Q._next&&(Q._next._prev=Q);Q._prev=A;A._next=Q;Q._parent=A._parent;Q._next||(Q._parent._lastChild=Q)};
MW.prototype.insertBefore=function(A){A.unlink();A._prev=this._prev;A._prev&&(A._prev._next=A);A._next=this;this._prev=A;A._parent=this._parent;A._prev||(A._parent._firstChild=A)};
_.Qr.Object.defineProperties(MW.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(A){this._literal=A}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(A){this._destination=A}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(A){this._title=A}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(A){this._info=A}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(A){this._level=A}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(A){this._listData.type=A}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(A){this._listData.tight=A}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(A){this._listData.start=A}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(A){this._onEnter=A}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(A){this._onExit=A}}});var gEb=/[ \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,
euC={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 dM$=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]/),
F4r=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),GZY=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),B_y=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),pzL=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Pc9=/`+/,XzL=/^`+/,S4y=/\.\.\./g,UML=/--+/g,L4M=/^<([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])?)*)>/,
MlL=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,lc9=/^ *(?:\n *)?/,K4v=/^[ \t\n\x0b\x0c\x0d]/,iEy=/[ \t\n\x0b\x0c\x0d]+/g,Jfr=/^\s/,VlW=/ *$/,OE9=/^ */,no9=/^ *(?:\n|$)/,kZp=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Icv=/^[^\n`\[\]\\!<&*_'"]+/m,ir=function(A){var Q=new MW("text");Q._literal=A;return Q},J7=function(A){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=A||{}};
J7.prototype.match=function(A){A=A.exec(this.subject.slice(this.pos));if(A===null)return null;this.pos+=A.index+A[0].length;return A[0]};
J7.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var VA=function(A){A.match(lc9);return!0},HEp=function(A,Q,b){var f=0;
var a=A.pos;if(Q===39||Q===34)f++,A.pos++;else for(;A.peek()===Q;)f++,A.pos++;if(f===0)f=null;else{var T=a===0?"\n":A.subject.charAt(a-1);var G=A.peek();G=G===-1?"\n":Kb(G);var p=Jfr.test(G);G=dM$.test(G);var P=Jfr.test(T);var U=dM$.test(T);T=!p&&!(G&&!P&&!U);p=!P&&!(U&&!p&&!G);Q===95?(P=T&&(!p||U),G=p&&(!T||G)):(P=Q===39||Q===34?T&&!p:T,G=p);A.pos=a;f={numdelims:f,can_open:P,can_close:G}}if(!f)return!1;a=f.numdelims;G=A.pos;A.pos+=a;G=Q===39?"\u2019":Q===34?"\u201c":A.subject.slice(G,A.pos);G=ir(G);
b.appendChild(G);A.delimiters={cc:Q,numdelims:a,origdelims:a,node:G,previous:A.delimiters,next:null,can_open:f.can_open,can_close:f.can_close};A.delimiters.previous!==null&&(A.delimiters.previous.next=A.delimiters);return!0},CcL=function(A,Q){Q.previous!==null&&(Q.previous.next=Q.next);
Q.next===null?A.delimiters=Q.previous:Q.next.previous=Q.previous},q49=function(A,Q){var b,f,a=[],T=!1;
a[95]=Q;a[42]=Q;a[39]=Q;a[34]=Q;for(b=A.delimiters;b!==null&&b.previous!==Q;)b=b.previous;for(;b!==null;){var G=b.cc;if(b.can_close){var p=b.previous;for(f=!1;p!==null&&p!==Q&&p!==a[G];){T=(b.can_open||p.can_close)&&(p.origdelims+b.origdelims)%3===0;if(p.cc===b.cc&&p.can_open&&!T){f=!0;break}p=p.previous}var P=b;if(G===42||G===95)if(f){var U=b.numdelims>=2&&p.numdelims>=2?2:1;var L=p.node;var M=b.node;p.numdelims-=U;b.numdelims-=U;L._literal=L._literal.slice(0,L._literal.length-U);M._literal=M._literal.slice(0,
M._literal.length-U);var l=new MW(U===1?"emph":"strong");for(U=L._next;U&&U!==M;){var J=U._next;U.unlink();l.appendChild(U);U=J}T_y(L,l);U=p;J=b;U.next!==J&&(U.next=J,J.previous=U);p.numdelims===0&&(L.unlink(),CcL(A,p));b.numdelims===0&&(M.unlink(),p=b.next,CcL(A,b),b=p)}else b=b.next;else G===39?(b.node._literal="\u2019",f&&(p.node._literal="\u2018"),b=b.next):G===34&&(b.node._literal="\u201d",f&&(p.node.literal="\u201c"),b=b.next);f||T||(a[G]=P.previous,P.can_open||CcL(A,P))}else b=b.next}for(;A.delimiters!==
null&&A.delimiters!==Q;)CcL(A,A.delimiters)},ooY=function(A){A=A.match(F4r);
return A===null?null:m7y(A.substr(1,A.length-2))},tlK=function(A){var Q=A.match(GZY);
if(Q===null){Q=A.pos;for(var b=0,f;(f=A.peek())!==-1;)if(f===92)A.pos+=1,A.peek()!==-1&&(A.pos+=1);else if(f===40)A.pos+=1,b+=1;else if(f===41)if(b<1)break;else A.pos+=1,--b;else if(K4v.exec(Kb(f))!==null)break;else A.pos+=1;Q=A.subject.substr(Q,A.pos-Q);return Afj(m7y(Q))}return Afj(m7y(Q.substr(1,Q.length-2)))},rfY=function(A){A=A.match(kZp);
return A===null||A.length>1001?0:A.length},jYK=function(A,Q,b,f){A.brackets!==null&&(A.brackets.bracketAfter=!0);
A.brackets={node:Q,previous:A.brackets,previousDelimiter:A.delimiters,index:b,image:f,active:!0}},RvM=function(A,Q){var b;
return(b=A.match(Icv))?(A.options.smart?Q.appendChild(ir(b.replace(S4y,"\u2026").replace(UML,function(f){var a=0,T=0;f.length%3===0?T=f.length/3:f.length%2===0?a=f.length/2:f.length%3===2?(a=1,T=(f.length-2)/3):(a=2,T=(f.length-4)/3);f="";var G;for(G=0;G<T;G++)f+="\u2014";for(G=0;G<a;G++)f+="\u2013";return f}))):Q.appendChild(ir(b)),!0):!1},goL=function(A,Q,b){A.subject=Q;
A.pos=0;Q=A.pos;var f=rfY(A);if(f===0)return 0;var a=A.subject.substr(0,f);if(A.peek()===58)A.pos++;else return A.pos=Q,0;VA(A);f=tlK(A);if(f===null||f.length===0)return A.pos=Q,0;var T=A.pos;VA(A);var G=ooY(A);G===null&&(G="",A.pos=T);var p=!0;A.match(no9)===null&&(G===""?p=!1:(G="",A.pos=T,p=A.match(no9)!==null));if(!p)return A.pos=Q,0;a=hub(a);if(a==="")return A.pos=Q,0;b[a]||(b[a]={destination:f,title:G});return A.pos-Q},ev$=function(A,Q){var b,f=A.peek();
if(f===-1)return!1;switch(f){case 10:A.pos+=1;if((b=Q._lastChild)&&b.type==="text"&&b._literal[b._literal.length-1]===" "){var a=b._literal[b._literal.length-2]===" ";b._literal=b._literal.replace(VlW,"");Q.appendChild(new MW(a?"linebreak":"softbreak"))}else Q.appendChild(new MW("softbreak"));A.match(OE9);b=!0;break;case 92:b=A.subject;A.pos+=1;A.peek()===10?(A.pos+=1,b=new MW("linebreak"),Q.appendChild(b)):B_y.test(b.charAt(A.pos))?(Q.appendChild(ir(b.charAt(A.pos))),A.pos+=1):Q.appendChild(ir("\\"));
b=!0;break;case 96:a:if(b=A.match(XzL),b===null)b=!1;else{a=A.pos;for(var T;(T=A.match(Pc9))!==null;)if(T===b){T=new MW("code");T._literal=A.subject.slice(a,A.pos-b.length).trim().replace(iEy," ");Q.appendChild(T);b=!0;break a}A.pos=a;Q.appendChild(ir(b));b=!0}break;case 42:case 95:b=HEp(A,f,Q);break;case 39:case 34:b=A.options.smart&&HEp(A,f,Q);break;case 91:b=A.pos;A.pos+=1;a=ir("[");Q.appendChild(a);jYK(A,a,b,!1);b=!0;break;case 33:b=A.pos;A.pos+=1;A.peek()===91?(A.pos+=1,a=ir("!["),Q.appendChild(a),
jYK(A,a,b+1,!0)):Q.appendChild(ir("!"));b=!0;break;case 93:var G,p=!1,P;A.pos+=1;var U=A.pos;a=A.brackets;if(a===null)Q.appendChild(ir("]"));else if(a.active){b=a.image;var L=A.pos;A.peek()===40&&(A.pos++,VA(A)&&(T=tlK(A))!==null&&VA(A)&&(K4v.test(A.subject.charAt(A.pos-1))&&(G=ooY(A)),1)&&VA(A)&&A.peek()===41?(A.pos+=1,p=!0):A.pos=L);if(!p){var M=A.pos,l=rfY(A);l>2?P=A.subject.slice(M,M+l):a.bracketAfter||(P=A.subject.slice(a.index,U));l===0&&(A.pos=L);P&&(P=A.refmap[hub(P)])&&(T=P.destination,G=
P.title,p=!0)}if(p){U=new MW(b?"image":"link");U._destination=T;U._title=G||"";for(T=a.node._next;T;)G=T._next,T.unlink(),U.appendChild(T),T=G;Q.appendChild(U);q49(A,a.previousDelimiter);A.brackets=A.brackets.previous;a.node.unlink();if(!b)for(a=A.brackets;a!==null;)a.image||(a.active=!1),a=a.previous}else A.brackets=A.brackets.previous,A.pos=U,Q.appendChild(ir("]"))}else Q.appendChild(ir("]")),A.brackets=A.brackets.previous;b=!0;break;case 60:(b=A.match(L4M))?(b=b.slice(1,b.length-1),a=new MW("link"),
a._destination=Afj("mailto:"+b),a._title="",a.appendChild(ir(b)),Q.appendChild(a),b=!0):(b=A.match(MlL))?(b=b.slice(1,b.length-1),a=new MW("link"),a._destination=Afj(b),a._title="",a.appendChild(ir(b)),Q.appendChild(a),b=!0):b=!1;b||(b=A.match(y8L),b===null?b=!1:(a=new MW("html_inline"),a._literal=b,Q.appendChild(a),b=!0));break;case 38:(b=A.match(pzL))?(Q.appendChild(ir(up1(b))),b=!0):b=!1;break;default:b=RvM(A,Q)}b||(A.pos+=1,Q.appendChild(ir(Kb(f))));return!0};
J7.prototype.parseInlines=function(A){this.subject=A._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;ev$(this,A););A._string_content=null;q49(this,null)};
J7.prototype.parse=J7.prototype.parseInlines;var hv9=[/./,/^<(?: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")],W4W=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],vop=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Eox=/^[#`~*+_=<>0-9-\|]|\|/,xMW=/[^ \t\f\v\r\n]/,cfy=/^[*+-]/,zv1=/^(\d{1,9})([.)])/,wz9=/^#{1,6}(?:[ \t]+|$)/,uS$=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,ZEK=/^(?:`{3,}|~{3,})(?= *$)/,yf$=/^(?:=+|-+)[ \t]*$/,Y4y=/\r\n|\n|\r/,vEi=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,EEe=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,DM9={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(A,Q){for(A=Q._firstChild;A;){if(WQU(A)&&A._next){Q._listData.tight=!1;break}for(var b=A._firstChild;b;){if(WQU(b)&&(A._next||b._next)){Q._listData.tight=!1;break}b=b._next}A=A._next}},
canContain:function(A){return A==="item"},
acceptsLines:!1},block_quote:{continue:function(A){var Q=A.currentLine;if(A.indented||Uv(Q,A.nextNonspace)!==62)return 1;Oz(A);nb(A,1,!1);SU(Uv(Q,A.offset))&&nb(A,1,!0);return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},item:{continue:function(A,Q){if(A.blank){if(Q._firstChild==null)return 1;Oz(A)}else if(A.indent>=Q._listData.markerOffset+Q._listData.padding)nb(A,Q._listData.markerOffset+Q._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(A){return A!=="item"&&!x_9(A)},
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(A,Q){var b=A.currentLine,f=A.indent;if(Q._isFenced){if((f=f<=3&&b.charAt(A.nextNonspace)===Q._fenceChar&&b.slice(A.nextNonspace).match(ZEK))&&f[0].length>=Q._fenceLength)return A.finalize(Q,A.lineNumber),2;for(Q=Q._fenceOffset;Q>0&&SU(Uv(b,A.offset));)nb(A,1,!0),Q--}else if(f>=4)nb(A,4,!0);else if(A.blank)Oz(A);else return 1;return 0},
finalize:function(A,Q){if(Q._isFenced){var b=Q._string_content,f=b.indexOf("\n");A=b.slice(0,f);b=b.slice(f+1);Q.info=m7y(A.trim());Q._literal=b}else Q._literal=Q._string_content.replace(/(\n *)+$/,"\n");Q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(A,Q){return!A.blank||Q._htmlBlockType!==6&&Q._htmlBlockType!==7?0:1},
finalize:function(A,Q){Q._literal=Q._string_content.replace(/(\n *)+$/,"");Q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(A){return A.blank?1:0},
finalize:function(A,Q){for(var b,f=!1;Uv(Q._string_content,0)===91&&(b=goL(A.inlineParser,Q._string_content,A.refmap));)Q._string_content=Q._string_content.slice(b),f=!0;f&&!xMW.test(Q._string_content)&&Q.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(A){return L1(A.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(A){return A=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(A,Q){if(!Q._rowIsDelimiter){A=Q._isHeader?"th":"td";for(var b=Q._parent._tableColumns,f=Q._string_content,a=0,T="",G,p=Q._sourcepos[0][0];a<f.length;){switch(f[a]){case "|":G&&(G._string_content=T.trim(),T="",G=null,b--,b<=0&&(a=f.length));break;default:if(!G){G=new MW(A,[[p,a],[p,a]]);var P=Q._parent._columnAlignment,U=Q._parent._tableColumns-b;P&&U<=P.length&&U>=0&&(G._alignment=P[U]);Q.appendChild(G)}T+=f[a];G._sourcepos[1][1]=a}a++}G&&(G._string_content=T.trim());Q._string_content=
""}},
canContain:function(A){return A!=="row"},
acceptsLines:!1}},$Mr=[function(A){if(A.indented||Uv(A.currentLine,A.nextNonspace)!==62)return 0;Oz(A);nb(A,1,!1);SU(Uv(A.currentLine,A.offset))&&nb(A,1,!0);kt(A);A.addChild("block_quote",A.nextNonspace);return 1},
function(A){var Q;if(!A.indented&&(Q=A.currentLine.slice(A.nextNonspace).match(wz9))){Oz(A);nb(A,Q[0].length,!1);kt(A);var b=A.addChild("heading",A.nextNonspace);b.level=Q[0].trim().length;b._string_content=A.currentLine.slice(A.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");nb(A,A.currentLine.length-A.offset);return 2}return 0},
function(A){var Q;if(!A.indented&&(Q=A.currentLine.slice(A.nextNonspace).match(uS$))){var b=Q[0].length;kt(A);var f=A.addChild("code_block",A.nextNonspace);f._isFenced=!0;f._fenceLength=b;f._fenceChar=Q[0][0];f._fenceOffset=A.indent;Oz(A);nb(A,b,!1);return 2}return 0},
function(A,Q){if(!A.indented&&Uv(A.currentLine,A.nextNonspace)===60){var b=A.currentLine.slice(A.nextNonspace),f;for(f=1;f<=7;f++)if(hv9[f].test(b)&&(f<7||Q.type!=="paragraph"))return kt(A),A.addChild("html_block",A.offset)._htmlBlockType=f,2}return 0},
function(A,Q){var b;if(!A.indented&&Q.type==="paragraph"&&(b=A.currentLine.slice(A.nextNonspace).match(yf$))){kt(A);var f=new MW("heading",Q.sourcepos);f.level=b[0][0]==="="?1:2;f._string_content=Q._string_content;T_y(Q,f);Q.unlink();A.tip=f;nb(A,A.currentLine.length-A.offset,!1);return 2}return 0},
function(A){return!A.indented&&vop.test(A.currentLine.slice(A.nextNonspace))?(kt(A),A.addChild("thematic_break",A.nextNonspace),nb(A,A.currentLine.length-A.offset,!1),2):0},
function(A,Q){var b,f;if(!(f=A.indented&&Q.type!=="list")){a:{var a=Q,T=A.currentLine.slice(A.nextNonspace);f={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:A.indent};if(b=T.match(cfy))f.type="bullet",f.bulletChar=b[0][0];else{if(!(b=T.match(zv1))||a.type==="paragraph"&&b[1]!=="1"){b=null;break a}f.type="ordered";f.start=parseInt(b[1],10);f.delimiter=b[2]}var G=Uv(A.currentLine,A.nextNonspace+b[0].length);if(G!==-1&&G!==9&&G!==32||a.type==="paragraph"&&!A.currentLine.slice(A.nextNonspace+
b[0].length).match(xMW))b=null;else{Oz(A);nb(A,b[0].length,!0);a=A.column;T=A.offset;do nb(A,1,!0),G=Uv(A.currentLine,A.offset);while(A.column-a<5&&SU(G));G=Uv(A.currentLine,A.offset)===-1;var p=A.column-a;p>=5||p<1||G?(f.padding=b[0].length+1,A.column=a,A.offset=T,SU(Uv(A.currentLine,A.offset))&&nb(A,1,!0)):f.padding=b[0].length+p;b=f}}f=!b}if(f)return 0;kt(A);(f=A.tip.type!=="list")||(Q=Q._listData,f=!(Q.type===b.type&&Q.delimiter===b.delimiter&&Q.bulletChar===b.bulletChar));f&&(Q=A.addChild("list",
A.nextNonspace),Q._listData=b);Q=A.addChild("item",A.nextNonspace);Q._listData=b;return 1},
function(A){var Q;return((Q=A.options.shouldParseIndentAsCodeBlock)!=null?Q:1)&&A.indented&&A.tip.type!=="paragraph"&&!A.blank?(nb(A,4,!0),kt(A),A.addChild("code_block",A.offset),2):0},
function(A,Q){var b=L1(A.currentLine),f=L1(A.lookahead);if(b!==0&&f<0&&Math.abs(b)==Math.abs(f)&&!x_9(Q.type)){kt(A);Q=A.addChild("table",A.nextNonspace);Q._tableRows=1;Q._tableColumns=Math.abs(b);b=A.lookahead;if(EEe.test(b)){f=[];for(var a=0,T=!1,G=0,p=void 0;a<b.length;){var P=G>=3;switch(b[a]){case "-":G++;break;case "|":T&&(f.push(p),p=void 0,G=0);T=!0;break;case ":":p||P||(p="left"),!p&&P&&(p="right"),p==="left"&&P&&(p="center")}a++}b=f}else b=void 0;Q._columnAlignment=b;Q=A.addChild("row",
A.nextNonspace);Q._isHeader=!0;nb(A,A.currentLine.length-A.offset,!1);Q._string_content=A.currentLine;return 1}return 0},
function(A,Q){if(Q.type=="table"&&L1(A.currentLine)!==0){kt(A);var b=Q;Q=A.addChild("row",A.nextNonspace);L1(A.currentLine)<0?Q._rowIsDelimiter=!0:b._tableRows+=1;nb(A,A.currentLine.length-A.offset,!1);Q._string_content=A.currentLine;return 2}return 0}],CaA=function(){var A={shouldParseIndentAsCodeBlock:!1};
A=A===void 0?{}:A;this.lastMatchedContainer=this.doc=cdy();this.refmap={};this.lastLineLength=0;this.inlineParser=new J7(A);this.options=A;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=DM9;this.blockStarts=$Mr},N_L=function(A){A.partiallyConsumedTab&&(A.offset+=1,A.tip._string_content+=" ".repeat(4-A.column%
4));
A.tip._string_content+=A.currentLine.slice(A.offset)+"\n"};
CaA.prototype.addChild=function(A,Q){for(;!this.blocks[this.tip.type].canContain(A);)this.finalize(this.tip,this.lineNumber-1);A=new MW(A,[[this.lineNumber,Q+1],[0,0]]);A._string_content="";this.tip.appendChild(A);return this.tip=A};
var kt=function(A){if(!A.allClosed){for(;A.oldtip!==A.lastMatchedContainer;){var Q=A.oldtip._parent;A.finalize(A.oldtip,A.lineNumber-1);A.oldtip=Q}A.allClosed=!0}},nb=function(A,Q,b){for(var f=A.currentLine,a,T;Q>0&&(T=f[A.offset]);)T==="\t"?(a=4-A.column%4,b?(A.partiallyConsumedTab=a>Q,a=a>Q?Q:a,A.column+=a,A.offset+=A.partiallyConsumedTab?0:1,Q-=a):(A.partiallyConsumedTab=!1,A.column+=a,A.offset+=1,--Q)):(A.partiallyConsumedTab=!1,A.offset+=1,A.column+=1,--Q)},Oz=function(A){A.offset=A.nextNonspace;
A.column=A.nextNonspaceColumn;A.partiallyConsumedTab=!1},sYW=function(A){for(var Q=A.currentLine,b=A.offset,f=A.column,a;(a=Q.charAt(b))!=="";)if(a===" ")b++,f++;
else if(a==="\t")b++,f+=4-f%4;else break;A.blank=a==="\n"||a==="\r"||a==="";A.nextNonspace=b;A.nextNonspaceColumn=f;A.indent=A.nextNonspaceColumn-A.column;A.indented=A.indent>=4};
CaA.prototype.finalize=function(A,Q){var b=A._parent;A._open=!1;A.sourcepos[1]=[Q,this.lastLineLength];this.blocks[A.type].finalize(this,A);this.tip=b};
CaA.prototype.parse=function(A){this.tip=this.doc=cdy();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!A)return this.doc;this.options.time&&console.time("preparing input");var Q=A.split(Y4y),b=Q.length;A.charCodeAt(A.length-1)===10&&--b;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(A=0;A<b;A++)a:{var f=void 0,a=Q[A],T=Q[A+1],G=!0,p=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=T;(f=p._lastChild)&&f._open;){p=f;sYW(this);switch(this.blocks[p.type].continue(this,p)){case 0:break;case 1:G=!1;break;case 2:this.lastLineLength=a.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!G){p=p._parent;break}}this.allClosed=p===this.oldtip;this.lastMatchedContainer=
p;f=p.type!=="paragraph"&&DM9[p.type].acceptsLines;T=this.blockStarts;for(G=T.length;!f;){sYW(this);if(!this.indented&&!Eox.test(a.slice(this.nextNonspace))){Oz(this);break}for(var P=0;P<G;){var U=T[P](this,p);if(U===1){p=this.tip;break}else if(U===2){p=this.tip;f=!0;break}else P++}if(P===G){Oz(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){kt(this);this.blank&&p.lastChild&&(p.lastChild._lastLineBlank=!0);f=p.type;T=this.blank&&!(f==="block_quote"||f==="code_block"&&p._isFenced||
f==="item"&&!p._firstChild&&p.sourcepos[0][0]===this.lineNumber);for(G=p;G;)G._lastLineBlank=T,G=G._parent;this.blocks[f].acceptsLines?(N_L(this),f==="html_block"&&p._htmlBlockType>=1&&p._htmlBlockType<=5&&W4W[p._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(p,this.lineNumber)):this.offset<a.length&&!this.blank&&(this.addChild("paragraph",this.offset),Oz(this),N_L(this))}else N_L(this);this.lastLineLength=a.length}for(;this.tip;)this.finalize(this.tip,b);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");a=new acy(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;b=a.next();)Q=b.node,A=Q.type,b.entering||A!=="paragraph"&&A!=="heading"&&A!=="th"&&A!="td"||this.inlineParser.parse(Q);this.options.time&&console.timeEnd("inline parsing");return this.doc};zuy.prototype.render=function(A){A=new acy(A);var Q;this.buffer="";for(this.lastOut="\n";Q=A.next();){var b=Q.node.type;if(this[b])this[b](Q.node,Q.entering)}return this.buffer};
zuy.prototype.out=function(A){IJ(this,A)};
var IJ=function(A,Q){A.buffer+=Q;A.lastOut=Q};
zuy.prototype.cr=function(){this.lastOut!=="\n"&&IJ(this,"\n")};var mMv=/^javascript:|vbscript:|file:|data:/i,AyM=/^data:image\/(?:png|gif|jpeg|webp)/i,Q$1=function(A){return mMv.test(A)&&!AyM.test(A)};
lh.prototype=Object.create(zuy.prototype);_.d=lh.prototype;_.d.text=function(A){this.out(A.literal)};
_.d.html_inline=function(A){this.options.safe?IJ(this,"\x3c!-- raw HTML omitted --\x3e"):IJ(this,A.literal)};
_.d.html_block=function(A){this.cr();this.options.safe?IJ(this,"\x3c!-- raw HTML omitted --\x3e"):IJ(this,A.literal);this.cr()};
_.d.softbreak=function(){IJ(this,this.options.softbreak)};
_.d.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.d.link=function(A,Q){var b=this.attrs(A);Q?(this.options.safe&&Q$1(A.destination)||b.push(["href",lr(A.destination,!0)]),A.title&&b.push(["title",lr(A.title,!0)]),this.tag("a",b)):this.tag("/a")};
_.d.image=function(A,Q){Q?(this.disableTags===0&&(this.options.safe&&Q$1(A.destination)?IJ(this,'<img src="" alt="'):IJ(this,'<img src="'+lr(A.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(A.title&&IJ(this,'" title="'+lr(A.title,!0)),IJ(this,'" />')))};
_.d.emph=function(A,Q){this.tag(Q?"em":"/em")};
_.d.strong=function(A,Q){this.tag(Q?"strong":"/strong")};
_.d.paragraph=function(A,Q){var b=A.parent.parent;A=this.attrs(A);b!==null&&b.type==="list"&&b.listTight||(Q?(this.cr(),this.tag("p",A)):(this.tag("/p"),this.cr()))};
_.d.heading=function(A,Q){var b="h"+A.level;A=this.attrs(A);Q?(this.cr(),this.tag(b,A)):(this.tag("/"+b),this.cr())};
_.d.code=function(A){this.tag("code");this.out(A.literal);this.tag("/code")};
_.d.code_block=function(A){var Q=A.info?A.info.split(/\s+/):[],b=this.attrs(A);Q.length>0&&Q[0].length>0&&b.push(["class","language-"+lr(Q[0],!0)]);this.cr();this.tag("pre");this.tag("code",b);this.out(A.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.d.thematic_break=function(A){A=this.attrs(A);this.cr();this.tag("hr",A,!0);this.cr()};
_.d.block_quote=function(A,Q){A=this.attrs(A);Q?(this.cr(),this.tag("blockquote",A)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.d.list=function(A,Q){var b=A.listType==="bullet"?"ul":"ol",f=this.attrs(A);Q?(A=A.listStart,A!==null&&A!==1&&f.push(["start",A.toString()]),this.cr(),this.tag(b,f)):(this.cr(),this.tag("/"+b));this.cr()};
_.d.item=function(A,Q){A=this.attrs(A);Q?this.tag("li",A):(this.tag("/li"),this.cr())};
_.d.custom_inline=function(A,Q){Q&&A.onEnter?IJ(this,A.onEnter):!Q&&A.onExit&&IJ(this,A.onExit)};
_.d.custom_block=function(A,Q){this.cr();Q&&A.onEnter?IJ(this,A.onEnter):!Q&&A.onExit&&IJ(this,A.onExit);this.cr()};
_.d.table=function(A,Q){A=this.attrs(A);Q?(this.cr(),this.tag("table",A)):(this.tag("/table"),this.cr())};
_.d.row=function(A,Q){A._rowIsDelimiter||(A=this.attrs(A),Q?this.tag("tr",A):this.tag("/tr"))};
_.d.td=function(A,Q){var b=this.attrs(A);A._alignment&&b.push(["align",A._alignment]);Q?this.tag("td",b):this.tag("/td")};
_.d.th=function(A,Q){var b=this.attrs(A);A._alignment&&b.push(["align",A._alignment]);Q?this.tag("th",b):this.tag("/th")};
_.d.out=function(A){IJ(this,lr(A,!1))};
_.d.tag=function(A,Q,b){if(!(this.disableTags>0)){this.buffer+="<"+A;if(Q&&Q.length>0){A=0;for(var f;(f=Q[A])!==void 0;)this.buffer+=" "+f[0]+'="'+f[1]+'"',A++}b&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.d.attrs=function(A){var Q=[];this.options.sourcepos&&(A=A.sourcepos)&&Q.push(["data-sourcepos",String(A[0][0])+":"+String(A[0][1])+"-"+String(A[1][0])+":"+String(A[1][1])]);return Q};
lh.prototype.text=lh.prototype.text;lh.prototype.html_inline=lh.prototype.html_inline;lh.prototype.html_block=lh.prototype.html_block;lh.prototype.softbreak=lh.prototype.softbreak;lh.prototype.linebreak=lh.prototype.linebreak;lh.prototype.link=lh.prototype.link;lh.prototype.image=lh.prototype.image;lh.prototype.emph=lh.prototype.emph;lh.prototype.strong=lh.prototype.strong;lh.prototype.paragraph=lh.prototype.paragraph;lh.prototype.heading=lh.prototype.heading;lh.prototype.code=lh.prototype.code;
lh.prototype.code_block=lh.prototype.code_block;lh.prototype.thematic_break=lh.prototype.thematic_break;lh.prototype.block_quote=lh.prototype.block_quote;lh.prototype.list=lh.prototype.list;lh.prototype.item=lh.prototype.item;lh.prototype.custom_inline=lh.prototype.custom_inline;lh.prototype.custom_block=lh.prototype.custom_block;lh.prototype.table=lh.prototype.table;lh.prototype.row=lh.prototype.row;lh.prototype.td=lh.prototype.td;lh.prototype.th=lh.prototype.th;lh.prototype.out=lh.prototype.out;
lh.prototype.tag=lh.prototype.tag;lh.prototype.attrs=lh.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 b6M,fbL,KAf;(function(){function A(R,r){return R<r?-1:R>r?1:R>=r?0:NaN}
function Q(R){return function(r,v){return A(R(r),v)}}
function b(){for(var R=0,r=arguments.length,v={},m;R<r;++R){if(!(m=arguments[R]+"")||m in v)throw Error("qe`"+m);v[m]=[]}return new f(v)}
function f(R){this._=R}
function a(R,r){return R.trim().split(/^|\s+/).map(function(v){var m="",GX=v.indexOf(".");GX>=0&&(m=v.slice(GX+1),v=v.slice(0,GX));if(v&&!r.hasOwnProperty(v))throw Error("re`"+v);return{type:v,name:m}})}
function T(R,r,v){for(var m=0,GX=R.length;m<GX;++m)if(R[m].name===r){R[m]=q0n;R=R.slice(0,m).concat(R.slice(m+1));break}v!=null&&R.push({name:r,value:v});return R}
function G(R){var r=R,v=r.indexOf(":");v>=0&&(r=R.slice(0,v))!=="xmlns"&&(R=R.slice(v+1));return n7.hasOwnProperty(r)?{space:n7[r],local:R}:R}
function p(R){return function(){var r=this.ownerDocument,v=this.namespaceURI;return v==="http://www.w3.org/1999/xhtml"&&r.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?r.createElement(R):r.createElementNS(v,R)}}
function P(R){return function(){return this.ownerDocument.createElementNS(R.space,R.local)}}
function U(R){R=G(R);return(R.local?P:p)(R)}
function L(){}
function M(R){return R==null?L:function(){return this.querySelector(R)}}
function l(R){return Array(R.length)}
function J(R,r){this.ownerDocument=R.ownerDocument;this.namespaceURI=R.namespaceURI;this._next=null;this._parent=R;this.__data__=r}
function n(R){return function(){return R}}
function t(R,r,v,m,GX,ly){for(var nF=0,jA,Qp=r.length,sb=ly.length;nF<sb;++nF)(jA=r[nF])?(jA.__data__=ly[nF],m[nF]=jA):v[nF]=new J(R,ly[nF]);for(;nF<Qp;++nF)if(jA=r[nF])GX[nF]=jA}
function g(R,r,v,m,GX,ly,nF){var jA,Qp,sb={},f$=r.length,Mx=ly.length,$1=Array(f$),kq;for(jA=0;jA<f$;++jA)if(Qp=r[jA])$1[jA]=kq="$"+nF.call(Qp,Qp.__data__,jA,r),kq in sb?GX[jA]=Qp:sb[kq]=Qp;for(jA=0;jA<Mx;++jA)kq="$"+nF.call(R,ly[jA],jA,ly),(Qp=sb[kq])?(m[jA]=Qp,Qp.__data__=ly[jA],sb[kq]=null):v[jA]=new J(R,ly[jA]);for(jA=0;jA<f$;++jA)(Qp=r[jA])&&sb[$1[jA]]===Qp&&(GX[jA]=Qp)}
function e(R,r){return R<r?-1:R>r?1:R>=r?0:NaN}
function x(R){return function(){this.removeAttribute(R)}}
function D(R){return function(){this.removeAttributeNS(R.space,R.local)}}
function w(R,r){return function(){this.setAttribute(R,r)}}
function u(R,r){return function(){this.setAttributeNS(R.space,R.local,r)}}
function y(R,r){return function(){var v=r.apply(this,arguments);v==null?this.removeAttribute(R):this.setAttribute(R,v)}}
function a9(R,r){return function(){var v=r.apply(this,arguments);v==null?this.removeAttributeNS(R.space,R.local):this.setAttributeNS(R.space,R.local,v)}}
function pF(R){return function(){this.style.removeProperty(R)}}
function Ub(R,r,v){return function(){this.style.setProperty(R,r,v)}}
function Ob(R,r,v){return function(){var m=r.apply(this,arguments);m==null?this.style.removeProperty(R):this.style.setProperty(R,m,v)}}
function I9(R,r){return R.style.getPropertyValue(r)||(R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView).getComputedStyle(R,null).getPropertyValue(r)}
function iy(R){return function(){delete this[R]}}
function wW(R,r){return function(){this[R]=r}}
function h4(R,r){return function(){var v=r.apply(this,arguments);v==null?delete this[R]:this[R]=v}}
function SW(){this.textContent=""}
function r9(R){return function(){this.textContent=R}}
function PM(R){return function(){var r=R.apply(this,arguments);this.textContent=r==null?"":r}}
function Nf(){this.innerHTML=""}
function L$(R){return function(){this.innerHTML=R}}
function UL(R){return function(){var r=R.apply(this,arguments);this.innerHTML=r==null?"":r}}
function HM(){return null}
function Ks(){var R=this.parentNode;R&&R.removeChild(this)}
function Y1(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function dW(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function bY(R,r,v){R=OL(R,r,v);return function(m){var GX=m.relatedTarget;GX&&(GX===this||GX.compareDocumentPosition(this)&8)||R.call(this,m)}}
function OL(R,r,v){return function(){R.call(this,this.__data__,r,v)}}
function iO(R){return R.trim().split(/^|\s+/).map(function(r){var v="",m=r.indexOf(".");m>=0&&(v=r.slice(m+1),r=r.slice(0,m));return{type:r,name:v}})}
function Jv(R){return function(){var r=this.__on;if(r){for(var v=0,m=-1,GX=r.length,ly;v<GX;++v)(ly=r[v],R.type&&ly.type!==R.type||ly.name!==R.name)?r[++m]=ly:this.removeEventListener(ly.type,ly.listener,ly.capture);++m?r.length=m:delete this.__on}}}
function zr(R,r,v){var m=C$L.hasOwnProperty(R.type)?bY:OL;return function(GX,ly,nF){GX=this.__on;var jA;ly=m(r,ly,nF);if(GX){nF=0;for(var Qp=GX.length;nF<Qp;++nF)if((jA=GX[nF]).type===R.type&&jA.name===R.name){this.removeEventListener(jA.type,jA.listener,jA.capture);this.addEventListener(jA.type,jA.listener=ly,jA.capture=v);jA.value=r;return}}this.addEventListener(R.type,ly,v);jA={type:R.type,name:R.name,value:r,listener:ly,capture:v};GX?GX.push(jA):this.__on=[jA]}}
function fN(R,r,v){var m=R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView,GX=m.CustomEvent;typeof GX==="function"?GX=new GX(r,v):(GX=m.document.createEvent("Event"),v?(GX.initEvent(r,v.bubbles,v.cancelable),GX.detail=v.detail):GX.initEvent(r,!1,!1));R.dispatchEvent(GX)}
function sL(R,r){return function(){return fN(this,R,r)}}
function FL(R,r){return function(){return fN(this,R,r.apply(this,arguments))}}
function Qx(R,r){this._groups=R;this._parents=r}
function Ls(){return new Qx([[document.documentElement]],o7K)}
function k1(){this._="@"+(++tbd).toString(36)}
function oy(R,r,v){R.prototype=r.prototype=v;v.constructor=R}
function ON(R,r){R=Object.create(R.prototype);for(var v in r)R[v]=r[v];return R}
function Sx(){}
function UN(R){var r;R=(R+"").trim().toLowerCase();return(r=r2O.exec(R))?(r=parseInt(r[1],16),new wx(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1)):(r=j1M.exec(R))?k5(parseInt(r[1],16)):(r=Rkd.exec(R))?new wx(r[1],r[2],r[3],1):(r=g7O.exec(R))?new wx(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=eks.exec(R))?mE(r[1],r[2],r[3],r[4]):(r=hkq.exec(R))?mE(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Wfl.exec(R))?o8(r[1],r[2]/100,r[3]/100,1):(r=v7F.exec(R))?o8(r[1],r[2]/100,r[3]/100,r[4]):qZ$.hasOwnProperty(R)?
k5(qZ$[R]):R==="transparent"?new wx(NaN,NaN,NaN,0):null}
function k5(R){return new wx(R>>16&255,R>>8&255,R&255,1)}
function mE(R,r,v,m){m<=0&&(R=r=v=NaN);return new wx(R,r,v,m)}
function w9(R){R instanceof Sx||(R=UN(R));if(!R)return new wx;R=R.rgb();return new wx(R.r,R.g,R.b,R.opacity)}
function zn(R,r,v,m){return arguments.length===1?w9(R):new wx(R,r,v,m==null?1:m)}
function wx(R,r,v,m){this.r=+R;this.g=+r;this.b=+v;this.opacity=+m}
function bn(R){R=Math.max(0,Math.min(255,Math.round(R)||0));return(R<16?"0":"")+R.toString(16)}
function o8(R,r,v,m){m<=0?R=r=v=NaN:v<=0||v>=1?R=r=NaN:r<=0&&(R=NaN);return new aO(R,r,v,m)}
function Fu(R){if(R instanceof aO)return new aO(R.h,R.s,R.l,R.opacity);R instanceof Sx||(R=UN(R));if(!R)return new aO;if(R instanceof aO)return R;R=R.rgb();var r=R.r/255,v=R.g/255,m=R.b/255,GX=Math.min(r,v,m),ly=Math.max(r,v,m),nF=NaN,jA=ly-GX,Qp=(ly+GX)/2;jA?(nF=r===ly?(v-m)/jA+(v<m)*6:v===ly?(m-r)/jA+2:(r-v)/jA+4,jA/=Qp<.5?ly+GX:2-ly-GX,nF*=60):jA=Qp>0&&Qp<1?0:nF;return new aO(nF,jA,Qp,R.opacity)}
function jn(R,r,v,m){return arguments.length===1?Fu(R):new aO(R,r,v,m==null?1:m)}
function aO(R,r,v,m){this.h=+R;this.s=+r;this.l=+v;this.opacity=+m}
function $m(R,r,v){return(R<60?r+(v-r)*R/60:R<180?v:R<240?r+(v-r)*(240-R)/60:r)*255}
function ai(R){if(R instanceof He)return new He(R.l,R.a,R.b,R.opacity);if(R instanceof n$){if(isNaN(R.h))return new He(R.l,0,0,R.opacity);var r=R.h*og1;return new He(R.l,Math.cos(r)*R.c,Math.sin(r)*R.c,R.opacity)}R instanceof wx||(R=w9(R));var v=XK(R.r),m=XK(R.g),GX=XK(R.b);r=We(.2225045*v+.7168786*m+.0606169*GX);if(v===m&&m===GX)var ly=v=r;else ly=We((.4360747*v+.3850649*m+.1430804*GX)/.96422),v=We((.0139322*v+.0971045*m+.7141733*GX)/.82521);return new He(116*r-16,500*(ly-r),200*(r-v),R.opacity)}
function He(R,r,v,m){this.l=+R;this.a=+r;this.b=+v;this.opacity=+m}
function We(R){return R>E7t?Math.pow(R,1/3):R/t3y+rY9}
function uy(R){return R>N4?R*R*R:t3y*(R-rY9)}
function iY(R){return 255*(R<=.0031308?12.92*R:1.055*Math.pow(R,1/2.4)-.055)}
function XK(R){return(R/=255)<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}
function jd(R){if(R instanceof n$)return new n$(R.h,R.c,R.l,R.opacity);R instanceof He||(R=ai(R));if(R.a===0&&R.b===0)return new n$(NaN,0,R.l,R.opacity);var r=Math.atan2(R.b,R.a)*jRM;return new n$(r<0?r+360:r,Math.sqrt(R.a*R.a+R.b*R.b),R.l,R.opacity)}
function ns(R,r,v,m){return arguments.length===1?jd(R):new n$(R,r,v,m==null?1:m)}
function n$(R,r,v,m){this.h=+R;this.c=+r;this.l=+v;this.opacity=+m}
function K$(R,r,v,m){if(arguments.length===1){var GX=R;if(GX instanceof Rt)GX=new Rt(GX.h,GX.s,GX.l,GX.opacity);else{GX instanceof wx||(GX=w9(GX));var ly=GX.g/255,nF=GX.b/255,jA=(R5p*nF+GX.r/255*-1.7884503806-3.5172982438*ly)/(R5p+-1.7884503806-3.5172982438);nF-=jA;var Qp=(1.97294*(ly-jA)- -.29227*nF)/-.90649;nF=(ly=Math.sqrt(Qp*Qp+nF*nF)/(1.97294*jA*(1-jA)))?Math.atan2(Qp,nF)*jRM-120:NaN;GX=new Rt(nF<0?nF+360:nF,ly,jA,GX.opacity)}}else GX=new Rt(R,r,v,m==null?1:m);return GX}
function Rt(R,r,v,m){this.h=+R;this.s=+r;this.l=+v;this.opacity=+m}
function oT(R,r,v,m,GX){var ly=R*R,nF=ly*R;return((1-3*R+3*ly-nF)*r+(4-6*ly+3*nF)*v+(1+3*R+3*ly-3*nF)*m+nF*GX)/6}
function lY(R){return function(){return R}}
function yE(R,r){return function(v){return R+v*r}}
function fH(R,r,v){return R=Math.pow(R,v),r=Math.pow(r,v)-R,v=1/v,function(m){return Math.pow(R+m*r,v)}}
function Wh(R,r){var v=r-R;return v?yE(R,v>180||v<-180?v-360*Math.round(v/360):v):lY(isNaN(R)?r:R)}
function Ik(R){return(R=+R)===1?$T:function(r,v){return v-r?fH(r,v,R):lY(isNaN(r)?v:r)}}
function $T(R,r){var v=r-R;return v?yE(R,v):lY(isNaN(R)?r:R)}
function p7(R){return function(r){var v=r.length,m=Array(v),GX=Array(v),ly=Array(v),nF;for(nF=0;nF<v;++nF){var jA=zn(r[nF]);m[nF]=jA.r||0;GX[nF]=jA.g||0;ly[nF]=jA.b||0}m=R(m);GX=R(GX);ly=R(ly);jA.opacity=1;return function(Qp){jA.r=m(Qp);jA.g=GX(Qp);jA.b=ly(Qp);return jA+""}}}
function yY(R,r){return R=+R,r-=R,function(v){return R+r*v}}
function FK(R){return function(){return R}}
function yx(R){return function(r){return R(r)+""}}
function ml(R,r){var v=YkJ.lastIndex=DOf.lastIndex=0,m,GX,ly,nF=-1,jA=[],Qp=[];R+="";for(r+="";(m=YkJ.exec(R))&&(GX=DOf.exec(r));)(ly=GX.index)>v&&(ly=r.slice(v,ly),jA[nF]?jA[nF]+=ly:jA[++nF]=ly),(m=m[0])===(GX=GX[0])?jA[nF]?jA[nF]+=GX:jA[++nF]=GX:(jA[++nF]=null,Qp.push({i:nF,x:yY(m,GX)})),v=DOf.lastIndex;v<r.length&&(ly=r.slice(v),jA[nF]?jA[nF]+=ly:jA[++nF]=ly);return jA.length<2?Qp[0]?yx(Qp[0].x):FK(r):(r=Qp.length,function(sb){for(var f$=0,Mx;f$<r;++f$)jA[(Mx=Qp[f$]).i]=Mx.x(sb);return jA.join("")})}
function Xu(R,r,v,m,GX,ly){var nF,jA,Qp;if(nF=Math.sqrt(R*R+r*r))R/=nF,r/=nF;if(Qp=R*v+r*m)v-=R*Qp,m-=r*Qp;if(jA=Math.sqrt(v*v+m*m))v/=jA,m/=jA,Qp/=jA;R*m<r*v&&(R=-R,r=-r,Qp=-Qp,nF=-nF);return{translateX:GX,translateY:ly,rotate:Math.atan2(r,R)*ggK,skewX:Math.atan(Qp)*ggK,scaleX:nF,scaleY:jA}}
function Hl(R,r,v,m){function GX(sb){return sb.length?sb.pop()+" ":""}
function ly(sb,f$,Mx,$1,kq,VV){sb!==Mx||f$!==$1?(kq=kq.push("translate(",null,r,null,v),VV.push({i:kq-4,x:yY(sb,Mx)},{i:kq-2,x:yY(f$,$1)})):(Mx||$1)&&kq.push("translate("+Mx+r+$1+v)}
function nF(sb,f$,Mx,$1){sb!==f$?(sb-f$>180?f$+=360:f$-sb>180&&(sb+=360),$1.push({i:Mx.push(GX(Mx)+"rotate(",null,m)-2,x:yY(sb,f$)})):f$&&Mx.push(GX(Mx)+"rotate("+f$+m)}
function jA(sb,f$,Mx,$1){sb!==f$?$1.push({i:Mx.push(GX(Mx)+"skewX(",null,m)-2,x:yY(sb,f$)}):f$&&Mx.push(GX(Mx)+"skewX("+f$+m)}
function Qp(sb,f$,Mx,$1,kq,VV){sb!==Mx||f$!==$1?(kq=kq.push(GX(kq)+"scale(",null,",",null,")"),VV.push({i:kq-4,x:yY(sb,Mx)},{i:kq-2,x:yY(f$,$1)})):Mx===1&&$1===1||kq.push(GX(kq)+"scale("+Mx+","+$1+")")}
return function(sb,f$){var Mx=[],$1=[];sb=R(sb);f$=R(f$);ly(sb.translateX,sb.translateY,f$.translateX,f$.translateY,Mx,$1);nF(sb.rotate,f$.rotate,Mx,$1);jA(sb.skewX,f$.skewX,Mx,$1);Qp(sb.scaleX,sb.scaleY,f$.scaleX,f$.scaleY,Mx,$1);sb=f$=null;return function(kq){for(var VV=-1,xm=$1.length,km;++VV<xm;)Mx[(km=$1[VV]).i]=km.x(kq);return Mx.join("")}}}
function Js(R){return function(r,v){var m=R((r=jn(r)).h,(v=jn(v)).h),GX=$T(r.s,v.s),ly=$T(r.l,v.l),nF=$T(r.opacity,v.opacity);return function(jA){r.h=m(jA);r.s=GX(jA);r.l=ly(jA);r.opacity=nF(jA);return r+""}}}
function MJ(R){return function(r,v){var m=R((r=ns(r)).h,(v=ns(v)).h),GX=$T(r.c,v.c),ly=$T(r.l,v.l),nF=$T(r.opacity,v.opacity);return function(jA){r.h=m(jA);r.c=GX(jA);r.l=ly(jA);r.opacity=nF(jA);return r+""}}}
function yF(R){return function m(v){function GX(ly,nF){var jA=R((ly=K$(ly)).h,(nF=K$(nF)).h),Qp=$T(ly.s,nF.s),sb=$T(ly.l,nF.l),f$=$T(ly.opacity,nF.opacity);return function(Mx){ly.h=jA(Mx);ly.s=Qp(Mx);ly.l=sb(Math.pow(Mx,v));ly.opacity=f$(Mx);return ly+""}}
v=+v;GX.gamma=m;return GX}(1)}
function p8(){return j0||(e5y(DsY),j0=PQ.now()+l1C)}
function DsY(){j0=0}
function PK(){this._call=this._time=this._next=null}
function GC(R,r,v){var m=new PK;m.restart(R,r,v);return m}
function Bw(){j0=(K9W=PQ.now())+l1C;sg=X0=0;try{p8();++sg;for(var R=iJ9,r;R;)(r=j0-R._time)>=0&&R._call.call(null,r),R=R._next;--sg}finally{sg=0;R=iJ9;for(var v=Infinity;R;)if(R._call){v>R._time&&(v=R._time);var m=R;R=R._next}else r=R._next,R._next=null,R=m?m._next=r:iJ9=r;Sg=m;pQ(v);j0=0}}
function rdW(){var R=PQ.now(),r=R-K9W;r>1E3&&(l1C-=r,K9W=R)}
function pQ(R){sg||(X0&&(X0=clearTimeout(X0)),R-j0>24?(R<Infinity&&(X0=setTimeout(Bw,R-PQ.now()-l1C)),UQ&&(UQ=clearInterval(UQ))):(UQ||(K9W=PQ.now(),UQ=setInterval(rdW,1E3)),sg=1,e5y(Bw)))}
function h5p(R,r,v){var m=new PK;r=r==null?0:+r;m.restart(function(GX){m.stop();R(GX+r)},r,v);
return m}
function $Oe(R,r,v,m,GX,ly){var nF=R.__transition;if(!nF)R.__transition={};else if(v in nF)return;xFO(R,v,{name:r,index:m,group:GX,on:c2F,tween:zkF,time:ly.time,delay:ly.delay,duration:ly.duration,ease:ly.ease,timer:null,state:0})}
function NkJ(R,r){R=MA(R,r);if(R.state>0)throw Error("se");return R}
function Rn(R,r){R=MA(R,r);if(R.state>2)throw Error("te");return R}
function MA(R,r){R=R.__transition;if(!R||!(R=R[r]))throw Error("ue");return R}
function xFO(R,r,v){function m(Qp){var sb,f$;if(v.state!==1)return ly();for($1 in nF){var Mx=nF[$1];if(Mx.name===v.name){if(Mx.state===3)return h5p(m);Mx.state===4?(Mx.state=6,Mx.timer.stop(),Mx.on.call("interrupt",R,R.__data__,Mx.index,Mx.group),delete nF[$1]):+$1<r&&(Mx.state=6,Mx.timer.stop(),delete nF[$1])}}h5p(function(){v.state===3&&(v.state=4,v.timer.restart(GX,v.delay,v.time),GX(Qp))});
v.state=2;v.on.call("start",R,R.__data__,v.index,v.group);if(v.state===2){v.state=3;jA=Array(f$=v.tween.length);var $1=0;for(sb=-1;$1<f$;++$1)if(Mx=v.tween[$1].value.call(R,R.__data__,v.index,v.group))jA[++sb]=Mx;jA.length=sb+1}}
function GX(Qp){Qp=Qp<v.duration?v.ease.call(null,Qp/v.duration):(v.timer.restart(ly),v.state=5,1);for(var sb=-1,f$=jA.length;++sb<f$;)jA[sb].call(null,Qp);v.state===5&&(v.on.call("end",R,R.__data__,v.index,v.group),ly())}
function ly(){v.state=6;v.timer.stop();delete nF[r];for(var Qp in nF)return;delete R.__transition}
var nF=R.__transition,jA;nF[r]=v;v.timer=GC(function(Qp){v.state=1;v.timer.restart(m,v.delay,v.time);v.delay<=Qp&&m(Qp-v.delay)},0,v.time)}
function wTO(R,r){var v,m;return function(){var GX=Rn(this,R),ly=GX.tween;if(ly!==v){m=v=ly;ly=0;for(var nF=m.length;ly<nF;++ly)if(m[ly].name===r){m=m.slice();m.splice(ly,1);break}}GX.tween=m}}
function urx(R,r,v){var m,GX;if(typeof v!=="function")throw Error();return function(){var ly=Rn(this,R),nF=ly.tween;if(nF!==m){GX=(m=nF).slice();nF={name:r,value:v};for(var jA=0,Qp=GX.length;jA<Qp;++jA)if(GX[jA].name===r){GX[jA]=nF;break}jA===Qp&&GX.push(nF)}ly.tween=GX}}
function sa4(R,r,v){var m=R._id;R.each(function(){var GX=Rn(this,m);(GX.value||(GX.value={}))[r]=v.apply(this,arguments)});
return function(GX){return MA(GX,m).value[r]}}
function Wc9(R,r){var v;return(typeof r==="number"?yY:r instanceof UN?vgL:(v=UN(r))?(r=v,vgL):ml)(R,r)}
function ZnN(R){return function(){this.removeAttribute(R)}}
function y2n(R){return function(){this.removeAttributeNS(R.space,R.local)}}
function Y0F(R,r,v){var m,GX;return function(){var ly=this.getAttribute(R);return ly===v?null:ly===m?GX:GX=r(m=ly,v)}}
function DFO(R,r,v){var m,GX;return function(){var ly=this.getAttributeNS(R.space,R.local);return ly===v?null:ly===m?GX:GX=r(m=ly,v)}}
function $Fq(R,r,v){var m,GX,ly;return function(){var nF=v(this);if(nF==null)return void this.removeAttribute(R);var jA=this.getAttribute(R);return jA===nF?null:jA===m&&nF===GX?ly:ly=r(m=jA,GX=nF)}}
function Nbn(R,r,v){var m,GX,ly;return function(){var nF=v(this);if(nF==null)return void this.removeAttributeNS(R.space,R.local);var jA=this.getAttributeNS(R.space,R.local);return jA===nF?null:jA===m&&nF===GX?ly:ly=r(m=jA,GX=nF)}}
function s1x(R,r){function v(){var m=this,GX=r.apply(m,arguments);return GX&&function(ly){m.setAttributeNS(R.space,R.local,GX(ly))}}
v._value=r;return v}
function mFx(R,r){function v(){var m=this,GX=r.apply(m,arguments);return GX&&function(ly){m.setAttribute(R,GX(ly))}}
v._value=r;return v}
function A7O(R,r){return function(){NkJ(this,R).delay=+r.apply(this,arguments)}}
function QJN(R,r){return r=+r,function(){NkJ(this,R).delay=r}}
function bbd(R,r){return function(){Rn(this,R).duration=+r.apply(this,arguments)}}
function fOq(R,r){return r=+r,function(){Rn(this,R).duration=r}}
function aOr(R,r){if(typeof r!=="function")throw Error();return function(){Rn(this,R).ease=r}}
function T7n(R){return(R+"").trim().split(/^|\s+/).every(function(r){var v=r.indexOf(".");v>=0&&(r=r.slice(0,v));return!r||r==="start"})}
function dX7(R,r,v){var m,GX,ly=T7n(r)?NkJ:Rn;return function(){var nF=ly(this,R),jA=nF.on;if(jA!==m)(GX=(m=jA).copy()).on(r,v);nF.on=GX}}
function F6K(R){return function(){var r=this.parentNode,v;for(v in this.__transition)if(+v!==R)return;r&&r.removeChild(this)}}
function Gys(R,r){var v,m,GX;return function(){var ly=I9(this,R),nF=(this.style.removeProperty(R),I9(this,R));return ly===nF?null:ly===v&&nF===m?GX:GX=r(v=ly,m=nF)}}
function B7n(R){return function(){this.style.removeProperty(R)}}
function ppl(R,r,v){var m,GX;return function(){var ly=I9(this,R);return ly===v?null:ly===m?GX:GX=r(m=ly,v)}}
function PrM(R,r,v){var m,GX,ly;return function(){var nF=I9(this,R),jA=v(this);jA==null&&(jA=(this.style.removeProperty(R),I9(this,R)));return nF===jA?null:nF===m&&jA===GX?ly:ly=r(m=nF,GX=jA)}}
function XpK(R,r,v){function m(){var GX=this,ly=r.apply(GX,arguments);return ly&&function(nF){GX.style.setProperty(R,ly(nF),v)}}
m._value=r;return m}
function Sz7(R){return function(){this.textContent=R}}
function UXd(R){return function(){var r=R(this);this.textContent=r==null?"":r}}
function t9(R,r,v,m){this._groups=R;this._parents=r;this._name=v;this._id=m}
function mOF(R){return{type:R}}
function A9J(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function J$A(){}
function Egr(R,r){var v=new J$A;if(R instanceof J$A)R.each(function(nF,jA){v.set(jA,nF)});
else if(Array.isArray(R)){var m=-1,GX=R.length,ly;if(r==null)for(;++m<GX;)v.set(m,R[m]);else for(;++m<GX;)v.set(r(ly=R[m],m,R),ly)}else if(R)for(m in R)v.set(m,R[m]);return v}
function Vtf(){}
function xk$(R){return function(r){for(var v={},m=0;m<R.length;m++)v[R[m]]=r[m]||"";return v}}
function L67(R,r){var v=xk$(R);return function(m,GX){return r(v(m),GX,R)}}
function MIO(R){var r=Object.create(null),v=[];R.forEach(function(m){for(var GX in m)GX in r||v.push(r[GX]=GX)});
return v}
function cYx(R){function r(nF,jA){function Qp(){if(VV)return Q3U;if(xm)return xm=!1,z51;var vv,hk=Mx,BO;if(nF.charCodeAt(hk)===34){for(;Mx++<f$&&nF.charCodeAt(Mx)!==34||nF.charCodeAt(++Mx)===34;);(vv=Mx)>=f$?VV=!0:(BO=nF.charCodeAt(Mx++))===10?xm=!0:BO===13&&(xm=!0,nF.charCodeAt(Mx)===10&&++Mx);return nF.slice(hk+1,vv-1).replace(/""/g,'"')}for(;Mx<f$;){if((BO=nF.charCodeAt(vv=Mx++))===10)xm=!0;else if(BO===13)xm=!0,nF.charCodeAt(Mx)===10&&++Mx;else if(BO!==ly)continue;return nF.slice(hk,vv)}return VV=
!0,nF.slice(hk,f$)}
var sb=[],f$=nF.length,Mx=0,$1=0,kq,VV=f$<=0,xm=!1;nF.charCodeAt(f$-1)===10&&--f$;for(nF.charCodeAt(f$-1)===13&&--f$;(kq=Qp())!==Q3U;){for(var km=[];kq!==z51&&kq!==Q3U;)km.push(kq),kq=Qp();jA&&(km=jA(km,$1++))==null||sb.push(km)}return sb}
function v(nF){return nF.map(m).join(R)}
function m(nF){return nF==null?"":GX.test(nF)?'"'+nF.replace(/"/g,'""')+'"':nF}
var GX=new RegExp('["'+R+"\n\r]"),ly=R.charCodeAt(0);return{parse:function(nF,jA){var Qp,sb;nF=r(nF,function(f$,Mx){if(Qp)return Qp(f$,Mx-1);sb=f$;Qp=jA?L67(f$,jA):xk$(f$)});
nF.columns=sb||[];return nF},
parseRows:r,format:function(nF,jA){jA==null&&(jA=MIO(nF));return[jA.map(m).join(R)].concat(nF.map(function(Qp){return jA.map(function(sb){return m(Qp[sb])}).join(R)})).join("\n")},
formatRows:function(nF){return nF.map(v).join("\n")}}}
function lO7(R){if(!R.ok)throw Error("ve`"+R.status+"`"+R.statusText);return R.text()}
function w1j(R){return function(r,v,m){arguments.length===2&&typeof v==="function"&&(m=v,v=void 0);return fetch(r,v).then(lO7).then(function(GX){return R(GX,m)})}}
function uEL(R,r,v,m){if(isNaN(r)||isNaN(v))return R;var GX,ly=R._root;m={data:m};var nF=R._x0,jA=R._y0,Qp=R._x1,sb=R._y1,f$,Mx,$1,kq,VV;if(!ly)return R._root=m,R;for(;ly.length;)if(($1=r>=(f$=(nF+Qp)/2))?nF=f$:Qp=f$,(kq=v>=(Mx=(jA+sb)/2))?jA=Mx:sb=Mx,GX=ly,!(ly=ly[VV=kq<<1|$1]))return GX[VV]=m,R;var xm=+R._x.call(null,ly.data);var km=+R._y.call(null,ly.data);if(r===xm&&v===km)return m.next=ly,GX?GX[VV]=m:R._root=m,R;do GX=GX?GX[VV]=Array(4):R._root=Array(4),($1=r>=(f$=(nF+Qp)/2))?nF=f$:Qp=f$,(kq=
v>=(Mx=(jA+sb)/2))?jA=Mx:sb=Mx;while((VV=kq<<1|$1)===($1=(km>=Mx)<<1|xm>=f$));return GX[$1]=ly,GX[VV]=m,R}
function rn(R,r,v,m,GX){this.node=R;this.x0=r;this.y0=v;this.x1=m;this.y1=GX}
function K6K(R){return R[0]}
function ibF(R){return R[1]}
function b36(R,r,v,m,GX,ly){this._x=R;this._y=r;this._x0=v;this._y0=m;this._x1=GX;this._y1=ly;this._root=void 0}
function Z2L(R){for(var r={data:R.data},v=r;R=R.next;)v=v.next={data:R.data};return r}
function OJC(R,r){if((r=(R=r?R.toExponential(r-1):R.toExponential()).indexOf("e"))<0)return null;var v=R.slice(0,r);return[v.length>1?v[0]+v.slice(2):v,+R.slice(r+1)]}
function J7N(R){return R=OJC(Math.abs(R)),R?R[1]:NaN}
function VIx(R,r){return function(v,m){for(var GX=v.length,ly=[],nF=0,jA=R[0],Qp=0;GX>0&&jA>0;){Qp+jA+1>m&&(jA=Math.max(1,m-Qp));ly.push(v.substring(GX-=jA,GX+jA));if((Qp+=jA+1)>m)break;jA=R[nF=(nF+1)%R.length]}return ly.reverse().join(r)}}
function Obr(R){return function(r){return r.replace(/[0-9]/g,function(v){return R[+v]})}}
function f89(R){return new a8C(R)}
function a8C(R){if(!(r=ntq.exec(R)))throw Error("we`"+R);var r;this.fill=r[1]||" ";this.align=r[2]||">";this.sign=r[3]||"-";this.symbol=r[4]||"";this.zero=!!r[5];this.width=r[6]&&+r[6];this.comma=!!r[7];this.precision=r[8]&&+r[8].slice(1);this.trim=!!r[9];this.type=r[10]||""}
function yYK(R,r){r=OJC(R,r);if(!r)return R+"";R=r[0];r=r[1];return r<0?"0."+Array(-r).join("0")+R:R.length>r+1?R.slice(0,r+1)+"."+R.slice(r+1):R+Array(r-R.length+2).join("0")}
function YZK(R){return R}
function kyF(R){function r(jA){function Qp(yV){var sS=BO,hM=vL,ln,Fc;if(hk==="c")hM=W_(yV)+hM,yV="";else{yV=+yV;var qN=yV<0;yV=W_(Math.abs(yV),km);if(vv){var hz=yV.length,Ht=1,Et=-1;a:for(;Ht<hz;++Ht)switch(yV[Ht]){case ".":Et=ln=Ht;break;case "0":Et===0&&(Et=Ht);ln=Ht;break;default:if(!+yV[Ht])break a;Et>0&&(Et=0)}yV=Et>0?yV.slice(0,Et)+yV.slice(ln+1):yV}qN&&+yV===0&&(qN=!1);sS=(qN?Mx==="("?Mx:"-":Mx==="-"||Mx==="("?"":Mx)+sS;hM=(hk==="s"?DkM[8+$kr/3]:"")+hM+(qN&&Mx==="("?")":"");if(lm)for(qN=-1,
ln=yV.length;++qN<ln;)if(Fc=yV.charCodeAt(qN),48>Fc||Fc>57){hM=(Fc===46?GX+yV.slice(qN+1):yV.slice(qN))+hM;yV=yV.slice(0,qN);break}}xm&&!kq&&(yV=v(yV,Infinity));Fc=sS.length+yV.length+hM.length;qN=Fc<VV?Array(VV-Fc+1).join(sb):"";xm&&kq&&(yV=v(qN+yV,qN.length?VV-hM.length:Infinity),qN="");switch(f$){case "<":yV=sS+yV+hM+qN;break;case "=":yV=sS+qN+yV+hM;break;case "^":yV=qN.slice(0,Fc=qN.length>>1)+sS+yV+hM+qN.slice(Fc);break;default:yV=qN+sS+yV+hM}return ly(yV)}
jA=f89(jA);var sb=jA.fill,f$=jA.align,Mx=jA.sign,$1=jA.symbol,kq=jA.zero,VV=jA.width,xm=jA.comma,km=jA.precision,vv=jA.trim,hk=jA.type;hk==="n"?(xm=!0,hk="g"):NlL[hk]||(km==null&&(km=12),vv=!0,hk="g");if(kq||sb==="0"&&f$==="=")kq=!0,sb="0",f$="=";var BO=$1==="$"?m[0]:$1==="#"&&/[boxX]/.test(hk)?"0"+hk.toLowerCase():"",vL=$1==="$"?m[1]:/[%p]/.test(hk)?nF:"",W_=NlL[hk],lm=/[defgprs%]/.test(hk);km=km==null?6:/[gprs]/.test(hk)?Math.max(1,Math.min(21,km)):Math.max(0,Math.min(20,km));Qp.toString=function(){return jA+
""};
return Qp}
var v=R.grouping&&R.thousands?VIx(R.grouping,R.thousands):YZK,m=R.currency,GX=R.decimal,ly=R.numerals?Obr(R.numerals):YZK,nF=R.percent||"%";return{format:r,formatPrefix:function(jA,Qp){var sb=r((jA=f89(jA),jA.type="f",jA));jA=Math.max(-8,Math.min(8,Math.floor(J7N(Qp)/3)))*3;var f$=Math.pow(10,-jA),Mx=DkM[8+jA/3];return function($1){return sb(f$*$1)+Mx}}}}
function XC(){this.reset()}
function sRW(R,r,v){var m=R.s=r+v,GX=m-r;R.t=r-(m-GX)+(v-GX)}
function nRF(R){return R>1?kG:R<-1?-kG:Math.asin(R)}
function ION(){}
function mkL(R){var r=R[0];R=R[1];var v=Ic(R);return[v*Ic(r),v*LT(r),LT(R)]}
function AXY(R,r){return[R[1]*r[2]-R[2]*r[1],R[2]*r[0]-R[0]*r[2],R[0]*r[1]-R[1]*r[0]]}
function QaY(R){var r=kPW(R[0]*R[0]+R[1]*R[1]+R[2]*R[2]);R[0]/=r;R[1]/=r;R[2]/=r}
function Hbl(){var R=[],r;return{point:function(v,m){r.push([v,m])},
lineStart:function(){R.push(r=[])},
lineEnd:ION,rejoin:function(){R.length>1&&R.push(R.pop().concat(R.shift()))},
result:function(){var v=R;R=[];r=null;return v}}}
function I14(R,r,v,m){this.x=R;this.z=r;this.o=v;this.e=m;this.v=!1;this.n=this.p=null}
function Crn(R,r,v,m,GX){var ly=[],nF=[];R.forEach(function(Mx){if(!(($1=Mx.length-1)<=0)){var $1,kq=Mx[0],VV=Mx[$1],xm=kq;if(ru(xm[0]-VV[0])<1E-6&&ru(xm[1]-VV[1])<1E-6){GX.lineStart();for(jA=0;jA<$1;++jA)GX.point((kq=Mx[jA])[0],kq[1]);GX.lineEnd()}else ly.push($1=new I14(kq,Mx,null,!0)),nF.push($1.o=new I14(kq,null,$1,!1)),ly.push($1=new I14(VV,Mx,null,!1)),nF.push($1.o=new I14(VV,null,$1,!0))}});
if(ly.length){nF.sort(r);bWM(ly);bWM(nF);var jA=0;for(R=nF.length;jA<R;++jA)nF[jA].e=v=!v;v=ly[0];for(var Qp;;){for(var sb=v,f$=!0;sb.v;)if((sb=sb.n)===v)return;r=sb.z;GX.lineStart();do{sb.v=sb.o.v=!0;if(sb.e){if(f$)for(jA=0,R=r.length;jA<R;++jA)GX.point((Qp=r[jA])[0],Qp[1]);else m(sb.x,sb.n.x,1,GX);sb=sb.n}else{if(f$)for(r=sb.p.z,jA=r.length-1;jA>=0;--jA)GX.point((Qp=r[jA])[0],Qp[1]);else m(sb.x,sb.p.x,-1,GX);sb=sb.p}sb=sb.o;r=sb.z;f$=!f$}while(!sb.v);GX.lineEnd()}}}
function bWM(R){if(r=R.length){for(var r,v=0,m=R[0],GX;++v<r;)m.n=GX=R[v],GX.p=m,m=GX;m.n=GX=R[0];GX.p=m}}
function qzK(R){return R.length>1}
function ots(R,r){return((R=R.x)[0]<0?R[1]-kG-1E-6:kG-R[1])-((r=r.x)[0]<0?r[1]-kG-1E-6:kG-r[1])}
function TuU(){}
function fBW(R){return function(r,v){var m=Ic(r),GX=Ic(v);m=R(m*GX);return[m*GX*LT(r),m*LT(v)]}}
function Lv(R){return function(r,v){var m=kPW(r*r+v*v),GX=R(m),ly=LT(GX);GX=Ic(GX);return[aBj(r*ly,m*GX),nRF(m&&v*ly/m)]}}
function tIs(R){var r=0,v=R.children,m=v&&v.length;if(m)for(;--m>=0;)r+=v[m].value;else r=1;R.value=r}
function TkL(R,r){var v=new Mt(R);R=+R.value&&(v.value=R.value);var m,GX=[v],ly,nF,jA,Qp;for(r==null&&(r=r7K);m=GX.pop();)if(R&&(m.value=+m.data.value),(nF=r(m.data))&&(Qp=nF.length))for(m.children=Array(Qp),jA=Qp-1;jA>=0;--jA)GX.push(ly=m.children[jA]=new Mt(nF[jA])),ly.parent=m,ly.depth=m.depth+1;return v.eachBefore(jJd)}
function r7K(R){return R.children}
function RtK(R){R.data=R.data.data}
function jJd(R){var r=0;do R.height=r;while((R=R.parent)&&R.height<++r)}
function Mt(R){this.data=R;this.depth=this.height=0;this.parent=null}
function To(R,r,v,m){function GX(ly){return R(ly=new Date(+ly)),ly}
GX.floor=GX;GX.ceil=function(ly){return R(ly=new Date(ly-1)),r(ly,1),R(ly),ly};
GX.round=function(ly){var nF=GX(ly),jA=GX.ceil(ly);return ly-nF<jA-ly?nF:jA};
GX.offset=function(ly,nF){return r(ly=new Date(+ly),nF==null?1:Math.floor(nF)),ly};
GX.range=function(ly,nF,jA){var Qp=[],sb;ly=GX.ceil(ly);jA=jA==null?1:Math.floor(jA);if(!(ly<nF&&jA>0))return Qp;do Qp.push(sb=new Date(+ly)),r(ly,jA),R(ly);while(sb<ly&&ly<nF);return Qp};
GX.filter=function(ly){return To(function(nF){if(nF>=nF)for(;R(nF),!ly(nF);)nF.setTime(nF-1)},function(nF,jA){if(nF>=nF)if(jA<0)for(;++jA<=0;)for(;r(nF,-1),!ly(nF););
else for(;--jA>=0;)for(;r(nF,1),!ly(nF););})};
v&&(GX.count=function(ly,nF){dbJ.setTime(+ly);FDX.setTime(+nF);R(dbJ);R(FDX);return Math.floor(v(dbJ,FDX))},GX.every=function(ly){ly=Math.floor(ly);
return isFinite(ly)&&ly>0?ly>1?GX.filter(m?function(nF){return m(nF)%ly===0}:function(nF){return GX.count(0,nF)%ly===0}):GX:null});
return GX}
function g5(R){return To(function(r){r.setDate(r.getDate()-(r.getDay()+7-R)%7);r.setHours(0,0,0,0)},function(r,v){r.setDate(r.getDate()+v*7)},function(r,v){return(v-r-(v.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/6048E5})}
function e0(R){return To(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-R)%7);r.setUTCHours(0,0,0,0)},function(r,v){r.setUTCDate(r.getUTCDate()+v*7)},function(r,v){return(v-r)/6048E5})}
function gtx(R){if(0<=R.y&&R.y<100){var r=new Date(-1,R.m,R.d,R.H,R.M,R.S,R.L);r.setFullYear(R.y);return r}return new Date(R.y,R.m,R.d,R.H,R.M,R.S,R.L)}
function HJe(R){if(0<=R.y&&R.y<100){var r=new Date(Date.UTC(-1,R.m,R.d,R.H,R.M,R.S,R.L));r.setUTCFullYear(R.y);return r}return new Date(Date.UTC(R.y,R.m,R.d,R.H,R.M,R.S,R.L))}
function lD(R){return{y:R,m:0,d:1,H:0,M:0,S:0,L:0}}
function etq(R){function r(hM,ln){return function(Fc){var qN=[],hz=-1,Ht=0,Et=hM.length,TP,sz;for(Fc instanceof Date||(Fc=new Date(+Fc));++hz<Et;)if(hM.charCodeAt(hz)===37){qN.push(hM.slice(Ht,hz));(Ht=dOp[TP=hM.charAt(++hz)])!=null?TP=hM.charAt(++hz):Ht=TP==="e"?" ":"0";if(sz=ln[TP])TP=sz(Fc,Ht);qN.push(TP);Ht=hz+1}qN.push(hM.slice(Ht,hz));return qN.join("")}}
function v(hM,ln){return function(Fc){var qN=lD(1900);if(m(qN,hM,Fc,0)!=Fc.length)return null;if("Q"in qN)return new Date(qN.Q);"p"in qN&&(qN.H=qN.H%12+qN.p*12);if("V"in qN){if(qN.V<1||qN.V>53)return null;"w"in qN||(qN.w=1);if("Z"in qN){Fc=HJe(lD(qN.y));var hz=Fc.getUTCDay();Fc=hz>4||hz===0?GWX.ceil(Fc):GWX(Fc);Fc=FdM.offset(Fc,(qN.V-1)*7);qN.y=Fc.getUTCFullYear();qN.m=Fc.getUTCMonth();qN.d=Fc.getUTCDate()+(qN.w+6)%7}else Fc=ln(lD(qN.y)),hz=Fc.getDay(),Fc=hz>4||hz===0?BuY.ceil(Fc):BuY(Fc),Fc=G1j.offset(Fc,
(qN.V-1)*7),qN.y=Fc.getFullYear(),qN.m=Fc.getMonth(),qN.d=Fc.getDate()+(qN.w+6)%7}else if("W"in qN||"U"in qN)"w"in qN||(qN.w="u"in qN?qN.u%7:"W"in qN?1:0),hz="Z"in qN?HJe(lD(qN.y)).getUTCDay():ln(lD(qN.y)).getDay(),qN.m=0,qN.d="W"in qN?(qN.w+6)%7+qN.W*7-(hz+5)%7:qN.w+qN.U*7-(hz+6)%7;return"Z"in qN?(qN.H+=qN.Z/100|0,qN.M+=qN.Z%100,HJe(qN)):ln(qN)}}
function m(hM,ln,Fc,qN){for(var hz=0,Ht=ln.length,Et=Fc.length,TP;hz<Ht;){if(qN>=Et)return-1;TP=ln.charCodeAt(hz++);if(TP===37){if(TP=ln.charAt(hz++),TP=sS[TP in dOp?ln.charAt(hz++):TP],!TP||(qN=TP(hM,Fc,qN))<0)return-1}else if(TP!=Fc.charCodeAt(qN++))return-1}return qN}
var GX=R.dateTime,ly=R.date,nF=R.time,jA=R.periods,Qp=R.days,sb=R.shortDays,f$=R.months,Mx=R.shortMonths,$1=Kv(jA),kq=iD(jA),VV=Kv(Qp),xm=iD(Qp),km=Kv(sb),vv=iD(sb),hk=Kv(f$),BO=iD(f$),vL=Kv(Mx),W_=iD(Mx),lm={a:function(hM){return sb[hM.getDay()]},
A:function(hM){return Qp[hM.getDay()]},
b:function(hM){return Mx[hM.getMonth()]},
B:function(hM){return f$[hM.getMonth()]},
c:null,d:BkL,e:BkL,f:htM,H:W6s,I:vtt,j:Etx,L:p3N,m:xXt,M:c7x,p:function(hM){return jA[+(hM.getHours()>=12)]},
Q:P7L,s:X3j,S:ztO,u:wpr,U:uzO,V:ZbK,w:y7M,W:YzN,x:null,X:null,y:DXq,Y:$Xr,Z:N7l,"%":Sk$},yV={a:function(hM){return sb[hM.getUTCDay()]},
A:function(hM){return Qp[hM.getUTCDay()]},
b:function(hM){return Mx[hM.getUTCMonth()]},
B:function(hM){return f$[hM.getUTCMonth()]},
c:null,d:UOv,e:UOv,f:sJK,H:mXn,I:Ahx,j:QAF,L:LdY,m:bYx,M:f6K,p:function(hM){return jA[+(hM.getUTCHours()>=12)]},
Q:P7L,s:X3j,S:a6N,u:TEq,U:d8M,V:Fr7,w:Gct,W:BEn,x:null,X:null,y:pV7,Y:P3r,Z:XVr,"%":Sk$},sS={a:function(hM,ln,Fc){return(ln=km.exec(ln.slice(Fc)))?(hM.w=vv[ln[0].toLowerCase()],Fc+ln[0].length):-1},
A:function(hM,ln,Fc){return(ln=VV.exec(ln.slice(Fc)))?(hM.w=xm[ln[0].toLowerCase()],Fc+ln[0].length):-1},
b:function(hM,ln,Fc){return(ln=vL.exec(ln.slice(Fc)))?(hM.m=W_[ln[0].toLowerCase()],Fc+ln[0].length):-1},
B:function(hM,ln,Fc){return(ln=hk.exec(ln.slice(Fc)))?(hM.m=BO[ln[0].toLowerCase()],Fc+ln[0].length):-1},
c:function(hM,ln,Fc){return m(hM,GX,ln,Fc)},
d:MNx,e:MNx,f:Sq7,H:lB9,I:lB9,j:U8d,L:Lrr,m:Mut,M:l6t,p:function(hM,ln,Fc){return(ln=$1.exec(ln.slice(Fc)))?(hM.p=kq[ln[0].toLowerCase()],Fc+ln[0].length):-1},
Q:Krn,s:iYd,S:Jhx,u:Vun,U:OYx,V:njr,w:kcK,W:I6d,x:function(hM,ln,Fc){return m(hM,ly,ln,Fc)},
X:function(hM,ln,Fc){return m(hM,nF,ln,Fc)},
y:HYO,Y:C3x,Z:qqd,"%":ojN};lm.x=r(ly,lm);lm.X=r(nF,lm);lm.c=r(GX,lm);yV.x=r(ly,yV);yV.X=r(nF,yV);yV.c=r(GX,yV);return{format:function(hM){var ln=r(hM,lm);ln.toString=function(){return hM};
return ln},
parse:function(hM){var ln=v(hM,gtx);ln.toString=function(){return hM};
return ln},
utcFormat:function(hM){var ln=r(hM,yV);ln.toString=function(){return hM};
return ln},
utcParse:function(hM){var ln=v(hM,HJe);ln.toString=function(){return hM};
return ln}}}
function GV(R,r,v){var m=R<0?"-":"";R=(m?-R:R)+"";var GX=R.length;return m+(GX<v?Array(v-GX+1).join(r)+R:R)}
function tur(R){return R.replace(rh7,"\\$&")}
function Kv(R){return new RegExp("^(?:"+R.map(tur).join("|")+")","i")}
function iD(R){for(var r={},v=-1,m=R.length;++v<m;)r[R[v].toLowerCase()]=v;return r}
function kcK(R,r,v){return(r=pO.exec(r.slice(v,v+1)))?(R.w=+r[0],v+r[0].length):-1}
function Vun(R,r,v){return(r=pO.exec(r.slice(v,v+1)))?(R.u=+r[0],v+r[0].length):-1}
function OYx(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.U=+r[0],v+r[0].length):-1}
function njr(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.V=+r[0],v+r[0].length):-1}
function I6d(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.W=+r[0],v+r[0].length):-1}
function C3x(R,r,v){return(r=pO.exec(r.slice(v,v+4)))?(R.y=+r[0],v+r[0].length):-1}
function HYO(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.y=+r[0]+(+r[0]>68?1900:2E3),v+r[0].length):-1}
function qqd(R,r,v){return(r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(v,v+6)))?(R.Z=r[1]?0:-(r[2]+(r[3]||"00")),v+r[0].length):-1}
function Mut(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.m=r[0]-1,v+r[0].length):-1}
function MNx(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.d=+r[0],v+r[0].length):-1}
function U8d(R,r,v){return(r=pO.exec(r.slice(v,v+3)))?(R.m=0,R.d=+r[0],v+r[0].length):-1}
function lB9(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.H=+r[0],v+r[0].length):-1}
function l6t(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.M=+r[0],v+r[0].length):-1}
function Jhx(R,r,v){return(r=pO.exec(r.slice(v,v+2)))?(R.S=+r[0],v+r[0].length):-1}
function Lrr(R,r,v){return(r=pO.exec(r.slice(v,v+3)))?(R.L=+r[0],v+r[0].length):-1}
function Sq7(R,r,v){return(r=pO.exec(r.slice(v,v+6)))?(R.L=Math.floor(r[0]/1E3),v+r[0].length):-1}
function ojN(R,r,v){return(R=jAl.exec(r.slice(v,v+1)))?v+R[0].length:-1}
function Krn(R,r,v){return(r=pO.exec(r.slice(v)))?(R.Q=+r[0],v+r[0].length):-1}
function iYd(R,r,v){return(r=pO.exec(r.slice(v)))?(R.Q=+r[0]*1E3,v+r[0].length):-1}
function BkL(R,r){return GV(R.getDate(),r,2)}
function W6s(R,r){return GV(R.getHours(),r,2)}
function vtt(R,r){return GV(R.getHours()%12||12,r,2)}
function Etx(R,r){return GV(1+G1j.count(mv(R),R),r,3)}
function p3N(R,r){return GV(R.getMilliseconds(),r,3)}
function htM(R,r){return p3N(R,r)+"000"}
function xXt(R,r){return GV(R.getMonth()+1,r,2)}
function c7x(R,r){return GV(R.getMinutes(),r,2)}
function ztO(R,r){return GV(R.getSeconds(),r,2)}
function wpr(R){R=R.getDay();return R===0?7:R}
function uzO(R,r){return GV(ROr.count(mv(R),R),r,2)}
function ZbK(R,r){var v=R.getDay();R=v>=4||v===0?pJX(R):pJX.ceil(R);return GV(pJX.count(mv(R),R)+(mv(R).getDay()===4),r,2)}
function y7M(R){return R.getDay()}
function YzN(R,r){return GV(BuY.count(mv(R),R),r,2)}
function DXq(R,r){return GV(R.getFullYear()%100,r,2)}
function $Xr(R,r){return GV(R.getFullYear()%1E4,r,4)}
function N7l(R){R=R.getTimezoneOffset();return(R>0?"-":(R*=-1,"+"))+GV(R/60|0,"0",2)+GV(R%60,"0",2)}
function UOv(R,r){return GV(R.getUTCDate(),r,2)}
function mXn(R,r){return GV(R.getUTCHours(),r,2)}
function Ahx(R,r){return GV(R.getUTCHours()%12||12,r,2)}
function QAF(R,r){return GV(1+FdM.count(AW(R),R),r,3)}
function LdY(R,r){return GV(R.getUTCMilliseconds(),r,3)}
function sJK(R,r){return LdY(R,r)+"000"}
function bYx(R,r){return GV(R.getUTCMonth()+1,r,2)}
function f6K(R,r){return GV(R.getUTCMinutes(),r,2)}
function a6N(R,r){return GV(R.getUTCSeconds(),r,2)}
function TEq(R){R=R.getUTCDay();return R===0?7:R}
function d8M(R,r){return GV(gjr.count(AW(R),R),r,2)}
function Fr7(R,r){var v=R.getUTCDay();R=v>=4||v===0?PzJ(R):PzJ.ceil(R);return GV(PzJ.count(AW(R),R)+(AW(R).getUTCDay()===4),r,2)}
function Gct(R){return R.getUTCDay()}
function BEn(R,r){return GV(GWX.count(AW(R),R),r,2)}
function pV7(R,r){return GV(R.getUTCFullYear()%100,r,2)}
function P3r(R,r){return GV(R.getUTCFullYear()%1E4,r,4)}
function XVr(){return"+0000"}
function Sk$(){return"%"}
function P7L(R){return+R}
function X3j(R){return Math.floor(+R/1E3)}
function UX(R){for(var r=R.length/6|0,v=Array(r),m=0;m<r;)v[m]="#"+R.slice(m*6,++m*6);return v}
function WG(R){return eOx(R[R.length-1])}
function Cub(R){var r=R.length;return function(v){return R[Math.max(0,Math.min(r-1,Math.floor(v*r)))]}}
function Kd1(R){this._context=R}
function iWj(R){this._curve=R}
function JXj(R,r,v){var m=R._x1-R._x0;r-=R._x1;var GX=(R._y1-R._y0)/(m||r<0&&-0);R=(v-R._y1)/(r||m<0&&-0);return((GX<0?-1:1)+(R<0?-1:1))*Math.min(Math.abs(GX),Math.abs(R),.5*Math.abs((GX*r+R*m)/(m+r)))||0}
function VNM(R,r){var v=R._x1-R._x0;return v?(3*(R._y1-R._y0)/v-r)/2:r}
function XJ4(R,r,v){var m=R._x0,GX=R._x1,ly=R._y1,nF=(GX-m)/3;R._context.bezierCurveTo(m+nF,R._y0+nF*r,GX-nF,ly-nF*v,GX,ly)}
function SnY(R){this._context=R}
function OW$(R){this._context=R}
function Jm(R,r,v){this.k=R;this.x=r;this.y=v}
(function(R){R.length===1&&(R=Q(R));return{left:function(r,v,m,GX){m==null&&(m=0);GX==null&&(GX=r.length);for(;m<GX;){var ly=m+GX>>>1;R(r[ly],v)<0?m=ly+1:GX=ly}return m},
right:function(r,v,m,GX){m==null&&(m=0);GX==null&&(GX=r.length);for(;m<GX;){var ly=m+GX>>>1;R(r[ly],v)>0?GX=ly:m=ly+1}return m}}})(A);
var q0n={value:function(){}};
f.prototype=b.prototype={constructor:f,on:function(R,r){var v=this._,m=a(R+"",v),GX,ly=-1,nF=m.length;if(arguments.length<2)for(;++ly<nF;){var jA;if(jA=GX=(R=m[ly]).type){a:{jA=v[GX];for(var Qp=0,sb=jA.length;Qp<sb;++Qp)if((GX=jA[Qp]).name===R.name){GX=GX.value;break a}GX=void 0}jA=GX}if(jA)return GX}else{if(r!=null&&typeof r!=="function")throw Error("xe`"+r);for(;++ly<nF;)if(GX=(R=m[ly]).type)v[GX]=T(v[GX],R.name,r);else if(r==null)for(GX in v)v[GX]=T(v[GX],R.name,null);return this}},
copy:function(){var R={},r=this._,v;for(v in r)R[v]=r[v].slice();return new f(R)},
call:function(R,r){if((GX=arguments.length-2)>0)for(var v=Array(GX),m=0,GX,ly;m<GX;++m)v[m]=arguments[m+2];if(!this._.hasOwnProperty(R))throw Error("re`"+R);ly=this._[R];m=0;for(GX=ly.length;m<GX;++m)ly[m].value.apply(r,v)},
apply:function(R,r,v){if(!this._.hasOwnProperty(R))throw Error("re`"+R);R=this._[R];for(var m=0,GX=R.length;m<GX;++m)R[m].value.apply(r,v)}};
var n7={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/"},n31=function(R){return function(){return this.matches(R)}};
if(typeof document!=="undefined"){var Vy=document.documentElement;if(!Vy.matches){var hOs=Vy.webkitMatchesSelector||Vy.msMatchesSelector||Vy.mozMatchesSelector||Vy.oMatchesSelector;n31=function(R){return function(){return hOs.call(this,R)}}}}var k1v=n31;
J.prototype={constructor:J,appendChild:function(R){return this._parent.insertBefore(R,this._next)},
insertBefore:function(R,r){return this._parent.insertBefore(R,r)},
querySelector:function(R){return this._parent.querySelector(R)},
querySelectorAll:function(R){return this._parent.querySelectorAll(R)}};
var C$L={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(C$L={mouseenter:"mouseover",mouseleave:"mouseout"}));var o7K=[null];Qx.prototype=Ls.prototype={constructor:Qx,select:function(R){typeof R!=="function"&&(R=M(R));for(var r=this._groups,v=r.length,m=Array(v),GX=0;GX<v;++GX)for(var ly=r[GX],nF=ly.length,jA=m[GX]=Array(nF),Qp,sb,f$=0;f$<nF;++f$)(Qp=ly[f$])&&(sb=R.call(Qp,Qp.__data__,f$,ly))&&("__data__"in Qp&&(sb.__data__=Qp.__data__),jA[f$]=sb);return new Qx(m,this._parents)},
filter:function(R){typeof R!=="function"&&(R=k1v(R));for(var r=this._groups,v=r.length,m=Array(v),GX=0;GX<v;++GX)for(var ly=r[GX],nF=ly.length,jA=m[GX]=[],Qp,sb=0;sb<nF;++sb)(Qp=ly[sb])&&R.call(Qp,Qp.__data__,sb,ly)&&jA.push(Qp);return new Qx(m,this._parents)},
data:function(R,r){if(!R)return kq=Array(this.size()),sb=-1,this.each(function(hk){kq[++sb]=hk}),kq;
var v=r?g:t,m=this._parents,GX=this._groups;typeof R!=="function"&&(R=n(R));for(var ly=GX.length,nF=Array(ly),jA=Array(ly),Qp=Array(ly),sb=0;sb<ly;++sb){var f$=m[sb],Mx=GX[sb],$1=Mx.length,kq=R.call(f$,f$&&f$.__data__,sb,m),VV=kq.length,xm=jA[sb]=Array(VV),km=nF[sb]=Array(VV);$1=Qp[sb]=Array($1);v(f$,Mx,xm,km,$1,kq,r);Mx=f$=0;for(var vv;f$<VV;++f$)if($1=xm[f$]){for(f$>=Mx&&(Mx=f$+1);!(vv=km[Mx])&&++Mx<VV;);$1._next=vv||null}}nF=new Qx(nF,m);nF._enter=jA;nF._exit=Qp;return nF},
enter:function(){return new Qx(this._enter||this._groups.map(l),this._parents)},
exit:function(){return new Qx(this._exit||this._groups.map(l),this._parents)},
merge:function(R){var r=this._groups;R=R._groups;for(var v=r.length,m=Math.min(v,R.length),GX=Array(v),ly=0;ly<m;++ly)for(var nF=r[ly],jA=R[ly],Qp=nF.length,sb=GX[ly]=Array(Qp),f$,Mx=0;Mx<Qp;++Mx)if(f$=nF[Mx]||jA[Mx])sb[Mx]=f$;for(;ly<v;++ly)GX[ly]=r[ly];return new Qx(GX,this._parents)},
order:function(){for(var R=this._groups,r=-1,v=R.length;++r<v;)for(var m=R[r],GX=m.length-1,ly=m[GX],nF;--GX>=0;)if(nF=m[GX])ly&&ly!==nF.nextSibling&&ly.parentNode.insertBefore(nF,ly),ly=nF;return this},
sort:function(R){function r(Mx,$1){return Mx&&$1?R(Mx.__data__,$1.__data__):!Mx-!$1}
R||(R=e);for(var v=this._groups,m=v.length,GX=Array(m),ly=0;ly<m;++ly){for(var nF=v[ly],jA=nF.length,Qp=GX[ly]=Array(jA),sb,f$=0;f$<jA;++f$)if(sb=nF[f$])Qp[f$]=sb;Qp.sort(r)}return(new Qx(GX,this._parents)).order()},
call:function(){var R=arguments[0];arguments[0]=this;R.apply(null,arguments);return this},
nodes:function(){var R=Array(this.size()),r=-1;this.each(function(){R[++r]=this});
return R},
node:function(){for(var R=this._groups,r=0,v=R.length;r<v;++r)for(var m=R[r],GX=0,ly=m.length;GX<ly;++GX){var nF=m[GX];if(nF)return nF}return null},
size:function(){var R=0;this.each(function(){++R});
return R},
empty:function(){return!this.node()},
each:function(R){for(var r=this._groups,v=0,m=r.length;v<m;++v)for(var GX=r[v],ly=0,nF=GX.length,jA;ly<nF;++ly)(jA=GX[ly])&&R.call(jA,jA.__data__,ly,GX);return this},
attr:function(R,r){var v=G(R);if(arguments.length<2){var m=this.node();return v.local?m.getAttributeNS(v.space,v.local):m.getAttribute(v)}return this.each((r==null?v.local?D:x:typeof r==="function"?v.local?a9:y:v.local?u:w)(v,r))},
style:function(R,r,v){return arguments.length>1?this.each((r==null?pF:typeof r==="function"?Ob:Ub)(R,r,v==null?"":v)):I9(this.node(),R)},
property:function(R,r){return arguments.length>1?this.each((r==null?iy:typeof r==="function"?h4:wW)(R,r)):this.node()[R]},
text:function(R){return arguments.length?this.each(R==null?SW:(typeof R==="function"?PM:r9)(R)):this.node().textContent},
html:function(R){return arguments.length?this.each(R==null?Nf:(typeof R==="function"?UL:L$)(R)):this.node().innerHTML},
append:function(R){var r=typeof R==="function"?R:U(R);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},
insert:function(R,r){var v=typeof R==="function"?R:U(R),m=r==null?HM:typeof r==="function"?r:M(r);return this.select(function(){return this.insertBefore(v.apply(this,arguments),m.apply(this,arguments)||null)})},
remove:function(){return this.each(Ks)},
clone:function(R){return this.select(R?dW:Y1)},
datum:function(R){return arguments.length?this.property("__data__",R):this.node().__data__},
on:function(R,r,v){var m=iO(R+""),GX=m.length,ly;if(arguments.length<2){var nF=this.node().__on;if(nF)for(var jA=0,Qp=nF.length,sb;jA<Qp;++jA){var f$=0;for(sb=nF[jA];f$<GX;++f$)if((ly=m[f$]).type===sb.type&&ly.name===sb.name)return sb.value}}else{nF=r?zr:Jv;v==null&&(v=!1);for(f$=0;f$<GX;++f$)this.each(nF(m[f$],r,v));return this}},
dispatch:function(R,r){return this.each((typeof r==="function"?FL:sL)(R,r))}};
var tbd=0;k1.prototype=function(){return new k1}.prototype={constructor:k1,
get:function(R){for(var r=this._;!(r in R);)if(!(R=R.parentNode))return;return R[r]},
set:function(R,r){return R[this._]=r},
remove:function(R){return this._ in R&&delete R[this._]},
toString:function(){return this._}};
var Qc=1/.7,r2O=/^#([0-9a-f]{3})$/,j1M=/^#([0-9a-f]{6})$/,Rkd=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),g7O=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),eks=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),hkq=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*\\)$"),
Wfl=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),v7F=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*\\)$"),qZ$={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};
oy(Sx,UN,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
oy(wx,zn,ON(Sx,{brighter:function(R){R=R==null?Qc:Math.pow(Qc,R);return new wx(this.r*R,this.g*R,this.b*R,this.opacity)},
darker:function(R){R=R==null?.7:Math.pow(.7,R);return new wx(this.r*R,this.g*R,this.b*R,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"#"+bn(this.r)+bn(this.g)+bn(this.b)},
toString:function(){var R=this.opacity;R=isNaN(R)?1:Math.max(0,Math.min(1,R));return(R===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))+(R===1?")":", "+R+")")}}));
oy(aO,jn,ON(Sx,{brighter:function(R){R=R==null?Qc:Math.pow(Qc,R);return new aO(this.h,this.s,this.l*R,this.opacity)},
darker:function(R){R=R==null?.7:Math.pow(.7,R);return new aO(this.h,this.s,this.l*R,this.opacity)},
rgb:function(){var R=this.h%360+(this.h<0)*360,r=this.l,v=r+(r<.5?r:1-r)*(isNaN(R)||isNaN(this.s)?0:this.s);r=2*r-v;return new wx($m(R>=240?R-240:R+120,r,v),$m(R,r,v),$m(R<120?R+240:R-120,r,v),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 og1=Math.PI/180,jRM=180/Math.PI,rY9=4/29,N4=6/29,t3y=3*N4*N4,E7t=N4*N4*N4;oy(He,function(R,r,v,m){return arguments.length===1?ai(R):new He(R,r,v,m==null?1:m)},ON(Sx,{brighter:function(R){return new He(this.l+18*(R==null?1:R),this.a,this.b,this.opacity)},
darker:function(R){return new He(this.l-18*(R==null?1:R),this.a,this.b,this.opacity)},
rgb:function(){var R=(this.l+16)/116,r=isNaN(this.a)?R:R+this.a/500,v=isNaN(this.b)?R:R-this.b/200;r=.96422*uy(r);R=1*uy(R);v=.82521*uy(v);return new wx(iY(3.1338561*r-1.6168667*R-.4906146*v),iY(-.9787684*r+1.9161415*R+.033454*v),iY(.0719453*r-.2289914*R+1.4052427*v),this.opacity)}}));
oy(n$,ns,ON(Sx,{brighter:function(R){return new n$(this.h,this.c,this.l+18*(R==null?1:R),this.opacity)},
darker:function(R){return new n$(this.h,this.c,this.l-18*(R==null?1:R),this.opacity)},
rgb:function(){return ai(this).rgb()}}));
var R5p=1.78277*-.29227-.1347134789;oy(Rt,K$,ON(Sx,{brighter:function(R){R=R==null?Qc:Math.pow(Qc,R);return new Rt(this.h,this.s,this.l*R,this.opacity)},
darker:function(R){R=R==null?.7:Math.pow(.7,R);return new Rt(this.h,this.s,this.l*R,this.opacity)},
rgb:function(){var R=isNaN(this.h)?0:(this.h+120)*og1,r=+this.l,v=isNaN(this.s)?0:this.s*r*(1-r),m=Math.cos(R);R=Math.sin(R);return new wx(255*(r+v*(-.14861*m+1.78277*R)),255*(r+v*(-.29227*m+-.90649*R)),255*(r+1.97294*m*v),this.opacity)}}));
var vgL=function v(r){function m(ly,nF){var jA=GX((ly=zn(ly)).r,(nF=zn(nF)).r),Qp=GX(ly.g,nF.g),sb=GX(ly.b,nF.b),f$=$T(ly.opacity,nF.opacity);return function(Mx){ly.r=jA(Mx);ly.g=Qp(Mx);ly.b=sb(Mx);ly.opacity=f$(Mx);return ly+""}}
var GX=Ik(r);m.gamma=v;return m}(1),eOx=p7(function(r){var v=r.length-1;
return function(m){var GX=m<=0?m=0:m>=1?(m=1,v-1):Math.floor(m*v),ly=r[GX],nF=r[GX+1];return oT((m-GX/v)*v,GX>0?r[GX-1]:2*ly-nF,ly,nF,GX<v-1?r[GX+2]:2*nF-ly)}});
p7(function(r){var v=r.length;return function(m){var GX=Math.floor(((m%=1)<0?++m:m)*v);return oT((m-GX/v)*v,r[(GX+v-1)%v],r[GX%v],r[(GX+1)%v],r[(GX+2)%v])}});
var YkJ=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,DOf=new RegExp(YkJ.source,"g"),ggK=180/Math.PI,UbJ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},OQ,LDe,IBx,qoC,WrK=Hl(function(r){if(r==="none")return UbJ;OQ||(OQ=document.createElement("DIV"),LDe=document.documentElement,IBx=document.defaultView);OQ.style.transform=r;r=IBx.getComputedStyle(LDe.appendChild(OQ),null).getPropertyValue("transform");LDe.removeChild(OQ);r=r.slice(7,-1).split(",");return Xu(+r[0],+r[1],+r[2],+r[3],
+r[4],+r[5])},"px, ","px)","deg)"),vjN=Hl(function(r){if(r==null)return UbJ;
qoC||(qoC=document.createElementNS("http://www.w3.org/2000/svg","g"));qoC.setAttribute("transform",r);if(!(r=qoC.transform.baseVal.consolidate()))return UbJ;r=r.matrix;return Xu(r.a,r.b,r.c,r.d,r.e,r.f)},", ",")",")");
Js(Wh);Js($T);MJ(Wh);MJ($T);yF(Wh);var Mq6=yF($T),sg=0,X0=0,UQ=0,iJ9,Sg,K9W=0,j0=0,l1C=0,PQ=typeof performance==="object"&&performance.now?performance:Date,e5y=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};
PK.prototype=GC.prototype={constructor:PK,restart:function(r,v,m){if(typeof r!=="function")throw new TypeError("ye");m=(m==null?p8():+m)+(v==null?0:+v);this._next||Sg===this||(Sg?Sg._next=this:iJ9=this,Sg=this);this._call=r;this._time=m;pQ()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,pQ())}};
var c2F=b("start","end","interrupt"),zkF=[],Ejd=Ls.prototype.constructor,HW$=0,bK=Ls.prototype;t9.prototype=function(r){return Ls().transition(r)}.prototype={constructor:t9,
select:function(r){var v=this._name,m=this._id;typeof r!=="function"&&(r=M(r));for(var GX=this._groups,ly=GX.length,nF=Array(ly),jA=0;jA<ly;++jA)for(var Qp=GX[jA],sb=Qp.length,f$=nF[jA]=Array(sb),Mx,$1,kq=0;kq<sb;++kq)(Mx=Qp[kq])&&($1=r.call(Mx,Mx.__data__,kq,Qp))&&("__data__"in Mx&&($1.__data__=Mx.__data__),f$[kq]=$1,$Oe(f$[kq],v,m,kq,f$,MA(Mx,m)));return new t9(nF,this._parents,v,m)},
filter:function(r){typeof r!=="function"&&(r=k1v(r));for(var v=this._groups,m=v.length,GX=Array(m),ly=0;ly<m;++ly)for(var nF=v[ly],jA=nF.length,Qp=GX[ly]=[],sb,f$=0;f$<jA;++f$)(sb=nF[f$])&&r.call(sb,sb.__data__,f$,nF)&&Qp.push(sb);return new t9(GX,this._parents,this._name,this._id)},
merge:function(r){if(r._id!==this._id)throw Error();var v=this._groups;r=r._groups;for(var m=v.length,GX=Math.min(m,r.length),ly=Array(m),nF=0;nF<GX;++nF)for(var jA=v[nF],Qp=r[nF],sb=jA.length,f$=ly[nF]=Array(sb),Mx,$1=0;$1<sb;++$1)if(Mx=jA[$1]||Qp[$1])f$[$1]=Mx;for(;nF<m;++nF)ly[nF]=v[nF];return new t9(ly,this._parents,this._name,this._id)},
selection:function(){return new Ejd(this._groups,this._parents)},
transition:function(){for(var r=this._name,v=this._id,m=++HW$,GX=this._groups,ly=GX.length,nF=0;nF<ly;++nF)for(var jA=GX[nF],Qp=jA.length,sb,f$=0;f$<Qp;++f$)if(sb=jA[f$]){var Mx=MA(sb,v);$Oe(sb,r,m,f$,jA,{time:Mx.time+Mx.delay+Mx.duration,delay:0,duration:Mx.duration,ease:Mx.ease})}return new t9(GX,this._parents,r,m)},
call:bK.call,nodes:bK.nodes,node:bK.node,size:bK.size,empty:bK.empty,each:bK.each,on:function(r,v){var m=this._id;return arguments.length<2?MA(this.node(),m).on.on(r):this.each(dX7(m,r,v))},
attr:function(r,v){var m=G(r),GX=m==="transform"?vjN:Wc9;return this.attrTween(r,typeof v==="function"?(m.local?Nbn:$Fq)(m,GX,sa4(this,"attr."+r,v)):v==null?(m.local?y2n:ZnN)(m):(m.local?DFO:Y0F)(m,GX,v+""))},
attrTween:function(r,v){var m="attr."+r;if(arguments.length<2)return(m=this.tween(m))&&m._value;if(v==null)return this.tween(m,null);if(typeof v!=="function")throw Error();var GX=G(r);return this.tween(m,(GX.local?s1x:mFx)(GX,v))},
style:function(r,v,m){var GX=r==="transform"?WrK:Wc9;return v==null?this.styleTween(r,Gys(r,GX)).on("end.style."+r,B7n(r)):this.styleTween(r,typeof v==="function"?PrM(r,GX,sa4(this,"style."+r,v)):ppl(r,GX,v+""),m)},
styleTween:function(r,v,m){var GX="style."+r;if(arguments.length<2)return(GX=this.tween(GX))&&GX._value;if(v==null)return this.tween(GX,null);if(typeof v!=="function")throw Error();return this.tween(GX,XpK(r,v,m==null?"":m))},
text:function(r){return this.tween("text",typeof r==="function"?UXd(sa4(this,"text",r)):Sz7(r==null?"":r+""))},
remove:function(){return this.on("end.remove",F6K(this._id))},
tween:function(r,v){var m=this._id;if(arguments.length<2){m=MA(this.node(),m).tween;for(var GX=0,ly=m.length,nF;GX<ly;++GX)if((nF=m[GX]).name===r)return nF.value;return null}return this.each((v==null?wTO:urx)(m,r,v))},
delay:function(r){var v=this._id;return arguments.length?this.each((typeof r==="function"?A7O:QJN)(v,r)):MA(this.node(),v).delay},
duration:function(r){var v=this._id;return arguments.length?this.each((typeof r==="function"?bbd:fOq)(v,r)):MA(this.node(),v).duration},
ease:function(r){var v=this._id;return arguments.length?this.each(aOr(v,r)):MA(this.node(),v).ease}};
var l8F={time:null,delay:0,duration:250,ease:function(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}};
Ls.prototype.transition=function(r){var v;if(r instanceof t9){var m=r._id;r=r._name}else m=++HW$,(v=l8F).time=p8(),r=r==null?null:r+"";for(var GX=this._groups,ly=GX.length,nF=0;nF<ly;++nF)for(var jA=GX[nF],Qp=jA.length,sb,f$=0;f$<Qp;++f$)if(sb=jA[f$]){var Mx=sb,$1=r,kq=m,VV=f$,xm=jA,km;if(!(km=v))a:{km=void 0;for(var vv=m;!(km=sb.__transition)||!(km=km[vv]);)if(!(sb=sb.parentNode)){km=(l8F.time=p8(),l8F);break a}}$Oe(Mx,$1,kq,VV,xm,km)}return new t9(GX,this._parents,r,m)};
["e","w"].map(mOF);["n","s"].map(mOF);"n e s w nw ne se sw".split(" ").map(mOF);A9J.prototype=function(){return new A9J}.prototype={constructor:A9J,
moveTo:function(r,v){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+v)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(r,v){this._+="L"+(this._x1=+r)+","+(this._y1=+v)},
bezierCurveTo:function(r,v,m,GX,ly,nF){this._+="C"+ +r+","+ +v+","+ +m+","+ +GX+","+(this._x1=+ly)+","+(this._y1=+nF)},
rect:function(r,v,m,GX){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+v)+"h"+ +m+"v"+ +GX+"h"+-m+"Z"},
toString:function(){return this._}};
J$A.prototype=Egr.prototype={constructor:J$A,has:function(r){return" "+r in this},
get:function(r){return this[" "+r]},
set:function(r,v){this[" "+r]=v;return this},
remove:function(r){r=" "+r;return r in this&&delete this[r]},
clear:function(){for(var r in this)r[0]===" "&&delete this[r]},
keys:function(){var r=[],v;for(v in this)v[0]===" "&&r.push(v.slice(1));return r},
values:function(){var r=[],v;for(v in this)v[0]===" "&&r.push(this[v]);return r},
entries:function(){var r=[],v;for(v in this)v[0]===" "&&r.push({key:v.slice(1),value:this[v]});return r},
size:function(){var r=0,v;for(v in this)v[0]===" "&&++r;return r},
empty:function(){for(var r in this)if(r[0]===" ")return!1;return!0},
each:function(r){for(var v in this)v[0]===" "&&r(this[v],v.slice(1),this)}};
var h_=Egr.prototype;Vtf.prototype=function(r,v){var m=new Vtf;if(r instanceof Vtf)r.each(function(nF){m.add(nF)});
else if(r){var GX=-1,ly=r.length;if(v==null)for(;++GX<ly;)m.add(r[GX]);else for(;++GX<ly;)m.add(v(r[GX],GX,r))}return m}.prototype={constructor:Vtf,
has:h_.has,add:function(r){this[" "+r]=r;return this},
remove:h_.remove,clear:h_.clear,values:h_.keys,size:h_.size,empty:h_.empty,each:h_.each};var z51={},Q3U={},x8x=cYx(",").parse,chM=cYx("\t").parse;w1j(x8x);w1j(chM);var jK=function(r,v,m){v=new b36(v==null?K6K:v,m==null?ibF:m,NaN,NaN,NaN,NaN);return r==null?v:v.addAll(r)}.prototype=b36.prototype;
jK.copy=function(){var r=new b36(this._x,this._y,this._x0,this._y0,this._x1,this._y1),v=this._root,m,GX;if(!v)return r;if(!v.length)return r._root=Z2L(v),r;for(m=[{source:v,target:r._root=Array(4)}];v=m.pop();)for(var ly=0;ly<4;++ly)if(GX=v.source[ly])GX.length?m.push({source:GX,target:v.target[ly]=Array(4)}):v.target[ly]=Z2L(GX);return r};
jK.add=function(r){var v=+this._x.call(null,r),m=+this._y.call(null,r);return uEL(this.cover(v,m),v,m,r)};
jK.addAll=function(r){var v,m,GX=r.length,ly,nF,jA=Array(GX),Qp=Array(GX),sb=Infinity,f$=Infinity,Mx=-Infinity,$1=-Infinity;for(m=0;m<GX;++m)isNaN(ly=+this._x.call(null,v=r[m]))||isNaN(nF=+this._y.call(null,v))||(jA[m]=ly,Qp[m]=nF,ly<sb&&(sb=ly),ly>Mx&&(Mx=ly),nF<f$&&(f$=nF),nF>$1&&($1=nF));Mx<sb&&(sb=this._x0,Mx=this._x1);$1<f$&&(f$=this._y0,$1=this._y1);this.cover(sb,f$).cover(Mx,$1);for(m=0;m<GX;++m)uEL(this,jA[m],Qp[m],r[m]);return this};
jK.cover=function(r,v){if(isNaN(r=+r)||isNaN(v=+v))return this;var m=this._x0,GX=this._y0,ly=this._x1,nF=this._y1;if(isNaN(m))ly=(m=Math.floor(r))+1,nF=(GX=Math.floor(v))+1;else if(m>r||r>ly||GX>v||v>nF){var jA=ly-m,Qp=this._root,sb;switch(sb=(v<(GX+nF)/2)<<1|r<(m+ly)/2){case 0:do{var f$=Array(4);f$[sb]=Qp;Qp=f$}while(jA*=2,ly=m+jA,nF=GX+jA,r>ly||v>nF);break;case 1:do f$=Array(4),f$[sb]=Qp,Qp=f$;while(jA*=2,m=ly-jA,nF=GX+jA,m>r||v>nF);break;case 2:do f$=Array(4),f$[sb]=Qp,Qp=f$;while(jA*=2,ly=m+jA,
GX=nF-jA,r>ly||GX>v);break;case 3:do f$=Array(4),f$[sb]=Qp,Qp=f$;while(jA*=2,m=ly-jA,GX=nF-jA,m>r||GX>v)}this._root&&this._root.length&&(this._root=Qp)}else return this;this._x0=m;this._y0=GX;this._x1=ly;this._y1=nF;return this};
jK.data=function(){var r=[];this.visit(function(v){if(!v.length){do r.push(v.data);while(v=v.next)}});
return r};
jK.extent=function(r){return arguments.length?this.cover(+r[0][0],+r[0][1]).cover(+r[1][0],+r[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
jK.find=function(r,v,m){var GX=this._x0,ly=this._y0,nF,jA,Qp,sb,f$=this._x1,Mx=this._y1,$1=[],kq=this._root,VV;kq&&$1.push(new rn(kq,GX,ly,f$,Mx));m==null?m=Infinity:(GX=r-m,ly=v-m,f$=r+m,Mx=v+m,m*=m);for(;VV=$1.pop();)if(!(!(kq=VV.node)||(nF=VV.x0)>f$||(jA=VV.y0)>Mx||(Qp=VV.x1)<GX||(sb=VV.y1)<ly))if(kq.length){VV=(nF+Qp)/2;var xm=(jA+sb)/2;$1.push(new rn(kq[3],VV,xm,Qp,sb),new rn(kq[2],nF,xm,VV,sb),new rn(kq[1],VV,jA,Qp,xm),new rn(kq[0],nF,jA,VV,xm));if(kq=(v>=xm)<<1|r>=VV)VV=$1[$1.length-1],$1[$1.length-
1]=$1[$1.length-1-kq],$1[$1.length-1-kq]=VV}else if(VV=r-+this._x.call(null,kq.data),xm=v-+this._y.call(null,kq.data),VV=VV*VV+xm*xm,VV<m){var km=Math.sqrt(m=VV);GX=r-km;ly=v-km;f$=r+km;Mx=v+km;km=kq.data}return km};
jK.remove=function(r){if(isNaN(sb=+this._x.call(null,r))||isNaN(f$=+this._y.call(null,r)))return this;var v,m=this._root,GX,ly=this._x0,nF=this._y0,jA=this._x1,Qp=this._y1,sb,f$,Mx,$1,kq,VV,xm;if(!m)return this;if(m.length)for(;;){(kq=sb>=(Mx=(ly+jA)/2))?ly=Mx:jA=Mx;(VV=f$>=($1=(nF+Qp)/2))?nF=$1:Qp=$1;if(!(v=m,m=m[xm=VV<<1|kq]))return this;if(!m.length)break;if(v[xm+1&3]||v[xm+2&3]||v[xm+3&3]){var km=v;var vv=xm}}for(;m.data!==r;)if(!(GX=m,m=m.next))return this;(r=m.next)&&delete m.next;if(GX)return r?
GX.next=r:delete GX.next,this;if(!v)return this._root=r,this;r?v[xm]=r:delete v[xm];(m=v[0]||v[1]||v[2]||v[3])&&m===(v[3]||v[2]||v[1]||v[0])&&!m.length&&(km?km[vv]=m:this._root=m);return this};
jK.removeAll=function(r){for(var v=0,m=r.length;v<m;++v)this.remove(r[v]);return this};
jK.root=function(){return this._root};
jK.size=function(){var r=0;this.visit(function(v){if(!v.length){do++r;while(v=v.next)}});
return r};
jK.visit=function(r){var v=[],m,GX=this._root,ly,nF,jA,Qp,sb;for(GX&&v.push(new rn(GX,this._x0,this._y0,this._x1,this._y1));m=v.pop();)if(!r(GX=m.node,nF=m.x0,jA=m.y0,Qp=m.x1,sb=m.y1)&&GX.length){m=(nF+Qp)/2;var f$=(jA+sb)/2;(ly=GX[3])&&v.push(new rn(ly,m,f$,Qp,sb));(ly=GX[2])&&v.push(new rn(ly,nF,f$,m,sb));(ly=GX[1])&&v.push(new rn(ly,m,jA,Qp,f$));(ly=GX[0])&&v.push(new rn(ly,nF,jA,m,f$))}};
jK.visitAfter=function(r){var v=[],m=[],GX;for(this._root&&v.push(new rn(this._root,this._x0,this._y0,this._x1,this._y1));GX=v.pop();){var ly=GX.node;if(ly.length){var nF,jA=GX.x0,Qp=GX.y0,sb=GX.x1,f$=GX.y1,Mx=(jA+sb)/2,$1=(Qp+f$)/2;(nF=ly[0])&&v.push(new rn(nF,jA,Qp,Mx,$1));(nF=ly[1])&&v.push(new rn(nF,Mx,Qp,sb,$1));(nF=ly[2])&&v.push(new rn(nF,jA,$1,Mx,f$));(nF=ly[3])&&v.push(new rn(nF,Mx,$1,sb,f$))}m.push(GX)}for(;GX=m.pop();)r(GX.node,GX.x0,GX.y0,GX.x1,GX.y1);return this};
jK.x=function(r){return arguments.length?(this._x=r,this):this._x};
jK.y=function(r){return arguments.length?(this._y=r,this):this._y};
var ntq=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;f89.prototype=a8C.prototype;a8C.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 $kr,NlL={"%":function(r,v){return(r*100).toFixed(v)},
b:function(r){return Math.round(r).toString(2)},
c:function(r){return r+""},
d:function(r){return Math.round(r).toString(10)},
e:function(r,v){return r.toExponential(v)},
f:function(r,v){return r.toFixed(v)},
g:function(r,v){return r.toPrecision(v)},
o:function(r){return Math.round(r).toString(8)},
p:function(r,v){return yYK(r*100,v)},
r:yYK,s:function(r,v){var m=OJC(r,v);if(!m)return r+"";var GX=m[0];m=m[1];m=m-($kr=Math.max(-8,Math.min(8,Math.floor(m/3)))*3)+1;var ly=GX.length;return m===ly?GX:m>ly?GX+Array(m-ly+1).join("0"):m>0?GX.slice(0,m)+"."+GX.slice(m):"0."+Array(1-m).join("0")+OJC(r,Math.max(0,v+m-1))[0]},
X:function(r){return Math.round(r).toString(16).toUpperCase()},
x:function(r){return Math.round(r).toString(16)}},DkM="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),zON;
(function(r){return zON=kyF(r)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});XC.prototype={constructor:XC,reset:function(){this.s=this.t=0},
add:function(r){sRW(oRF,r,this.t);sRW(this,oRF.s,this.s);this.s?this.t+=oRF.t:this.s=oRF.t},
valueOf:function(){return this.s}};
var oRF=new XC,Ck=Math.PI,kG=Ck/2,C7N=Ck/4,wVd=Ck*2,KDU=Ck/180,ru=Math.abs,i3e=Math.atan,aBj=Math.atan2,Ic=Math.cos,LT=Math.sin,kPW=Math.sqrt;new XC;new XC;new XC;var J9X=new XC;(function(r,v,m,GX){return function(ly){function nF(W_,lm){r(W_,lm)&&ly.point(W_,lm)}
function jA(W_,lm){kq.point(W_,lm)}
function Qp(){vL.point=jA;kq.lineStart()}
function sb(){vL.point=nF;kq.lineEnd()}
function f$(W_,lm){BO.push([W_,lm]);xm.point(W_,lm)}
function Mx(){xm.lineStart();BO=[]}
function $1(){f$(BO[0][0],BO[0][1]);xm.lineEnd();var W_=xm.clean(),lm=VV.result(),yV=lm.length,sS;BO.pop();vv.push(BO);BO=null;if(yV)if(W_&1){if(yV=lm[0],(lm=yV.length-1)>0){km||(ly.polygonStart(),km=!0);ly.lineStart();for(W_=0;W_<lm;++W_)ly.point((sS=yV[W_])[0],sS[1]);ly.lineEnd()}}else yV>1&&W_&2&&lm.push(lm.pop().concat(lm.shift())),hk.push(lm.filter(qzK))}
var kq=v(ly),VV=Hbl(),xm=v(VV),km=!1,vv,hk,BO,vL={point:nF,lineStart:Qp,lineEnd:sb,polygonStart:function(){vL.point=f$;vL.lineStart=Mx;vL.lineEnd=$1;hk=[];vv=[]},
polygonEnd:function(){vL.point=nF;vL.lineStart=Qp;vL.lineEnd=sb;var W_=hk,lm=W_.length;var yV=-1;for(var sS=0,hM,ln;++yV<lm;)sS+=W_[yV].length;for(hM=Array(sS);--lm>=0;)for(ln=W_[lm],yV=ln.length;--yV>=0;)hM[--sS]=ln[yV];hk=hM;W_=vv;lm=GX[0];sS=GX[1];var Fc=LT(sS);yV=[LT(lm),-Ic(lm),0];ln=hM=0;J9X.reset();Fc===1?sS=kG+1E-6:Fc===-1&&(sS=-kG-1E-6);Fc=0;for(var qN=W_.length;Fc<qN;++Fc)if(Ht=(hz=W_[Fc]).length){var hz,Ht,Et=hz[Ht-1],TP=Et[0],sz=Et[1]/2+C7N,ttb=LT(sz),qk9=Ic(sz);for(sz=0;sz<Ht;++sz,TP=
Vq6,ttb=o3r,qk9=nv,Et=r$y){var r$y=hz[sz],Vq6=r$y[0];nv=r$y[1]/2+C7N;var o3r=LT(nv),nv=Ic(nv),fR=Vq6-TP,O36=fR>=0?1:-1,nZi=O36*fR,jO4=nZi>Ck;ttb*=o3r;J9X.add(aBj(ttb*O36*LT(nZi),qk9*nv+ttb*Ic(nZi)));hM+=jO4?fR+O36*wVd:fR;jO4^TP>=lm^Vq6>=lm&&(Et=AXY(mkL(Et),mkL(r$y)),QaY(Et),TP=AXY(yV,Et),QaY(TP),TP=(jO4^fR>=0?-1:1)*nRF(TP[2]),sS>TP||sS===TP&&(Et[0]||Et[1]))&&(ln+=jO4^fR>=0?1:-1)}}W_=(hM<-1E-6||hM<1E-6&&J9X<-1E-6)^ln&1;hk.length?(km||(ly.polygonStart(),km=!0),Crn(hk,ots,W_,m,ly)):W_&&(km||(ly.polygonStart(),
km=!0),ly.lineStart(),m(null,null,1,ly),ly.lineEnd());km&&(ly.polygonEnd(),km=!1);hk=vv=null},
sphere:function(){ly.polygonStart();ly.lineStart();m(null,null,1,ly);ly.lineEnd();ly.polygonEnd()}};
return vL}})(function(){return!0},function(r){var v=NaN,m=NaN,GX=NaN,ly;
return{lineStart:function(){r.lineStart();ly=1},
point:function(nF,jA){var Qp=nF>0?Ck:-Ck,sb=ru(nF-v);if(ru(sb-Ck)<1E-6)r.point(v,m=(m+jA)/2>0?kG:-kG),r.point(GX,m),r.lineEnd(),r.lineStart(),r.point(Qp,m),r.point(nF,m),ly=0;else if(GX!==Qp&&sb>=Ck){ru(v-GX)<1E-6&&(v-=GX*1E-6);ru(nF-Qp)<1E-6&&(nF-=Qp*1E-6);sb=v;var f$=m,Mx=nF,$1,kq,VV=LT(sb-Mx);m=ru(VV)>1E-6?i3e((LT(f$)*(kq=Ic(jA))*LT(Mx)-LT(jA)*($1=Ic(f$))*LT(sb))/($1*kq*VV)):(f$+jA)/2;r.point(GX,m);r.lineEnd();r.lineStart();r.point(Qp,m);ly=0}r.point(v=nF,m=jA);GX=Qp},
lineEnd:function(){r.lineEnd();v=m=NaN},
clean:function(){return 2-ly}}},function(r,v,m,GX){r==null?(m*=kG,GX.point(-Ck,m),GX.point(0,m),GX.point(Ck,m),GX.point(Ck,0),GX.point(Ck,-m),GX.point(0,-m),GX.point(-Ck,-m),GX.point(-Ck,0),GX.point(-Ck,m)):ru(r[0]-v[0])>1E-6?(r=r[0]<v[0]?Ck:-Ck,m=m*r/2,GX.point(-r,m),GX.point(0,m),GX.point(r,m)):GX.point(v[0],v[1])},[-Ck,
-kG]);new XC;new XC;new XC;new XC;TuU.prototype={constructor:TuU,point:function(r,v){this.stream.point(r,v)},
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()}};
Ic(30*KDU);(function(r){return function(v){var m=new TuU,GX;for(GX in r)m[GX]=r[GX];m.stream=v;return m}})({point:function(r,v){this.stream.point(r*KDU,v*KDU)}});
fBW(function(r){return kPW(2/(1+r))}).invert=Lv(function(r){return 2*nRF(r/2)});
fBW(function(r){return(r=r>1?0:r<-1?Ck:Math.acos(r))&&r/LT(r)}).invert=Lv(function(r){return r});
kPW(3);Lv(i3e);Lv(nRF);Lv(function(r){return 2*i3e(r)});
Mt.prototype=TkL.prototype={constructor:Mt,count:function(){return this.eachAfter(tIs)},
each:function(r){var v,m=[this],GX;do{var ly=m.reverse();for(m=[];v=ly.pop();)if(r(v),v=v.children){var nF=0;for(GX=v.length;nF<GX;++nF)m.push(v[nF])}}while(m.length);return this},
eachAfter:function(r){for(var v,m=[this],GX=[],ly,nF;v=m.pop();)if(GX.push(v),v=v.children)for(ly=0,nF=v.length;ly<nF;++ly)m.push(v[ly]);for(;v=GX.pop();)r(v);return this},
eachBefore:function(r){for(var v,m=[this],GX;v=m.pop();)if(r(v),v=v.children)for(GX=v.length-1;GX>=0;--GX)m.push(v[GX]);return this},
sum:function(r){return this.eachAfter(function(v){for(var m=+r(v.data)||0,GX=v.children,ly=GX&&GX.length;--ly>=0;)m+=GX[ly].value;v.value=m})},
sort:function(r){return this.eachBefore(function(v){v.children&&v.children.sort(r)})},
path:function(r){var v=this;var m=v;var GX=r;if(m!==GX){var ly=m.ancestors(),nF=GX.ancestors(),jA=null;m=ly.pop();for(GX=nF.pop();m===GX;)jA=m,m=ly.pop(),GX=nF.pop();m=jA}for(GX=[v];v!==m;)v=v.parent,GX.push(v);for(v=GX.length;r!==m;)GX.splice(v,0,r),r=r.parent;return GX},
ancestors:function(){for(var r=this,v=[r];r=r.parent;)v.push(r);return v},
links:function(){var r=this,v=[];r.each(function(m){m!==r&&v.push({source:m.parent,target:m})});
return v},
copy:function(){return TkL(this).eachBefore(RtK)}};
(function(r,v){this._=r;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=v}).prototype=Object.create(Mt.prototype);
var dbJ=new Date,FDX=new Date,tNp=To(function(){},function(r,v){r.setTime(+r+v)},function(r,v){return v-r});
tNp.every=function(r){r=Math.floor(r);return isFinite(r)&&r>0?r>1?To(function(v){v.setTime(Math.floor(v/r)*r)},function(v,m){v.setTime(+v+m*r)},function(v,m){return(m-v)/r}):tNp:null};
To(function(r){r.setTime(Math.floor(r/1E3)*1E3)},function(r,v){r.setTime(+r+v*1E3)},function(r,v){return(v-r)/1E3},function(r){return r.getUTCSeconds()});
To(function(r){r.setTime(Math.floor(r/6E4)*6E4)},function(r,v){r.setTime(+r+v*6E4)},function(r,v){return(v-r)/6E4},function(r){return r.getMinutes()});
To(function(r){var v=r.getTimezoneOffset()*6E4%36E5;v<0&&(v+=36E5);r.setTime(Math.floor((+r-v)/36E5)*36E5+v)},function(r,v){r.setTime(+r+v*36E5)},function(r,v){return(v-r)/36E5},function(r){return r.getHours()});
var G1j=To(function(r){r.setHours(0,0,0,0)},function(r,v){r.setDate(r.getDate()+v)},function(r,v){return(v-r-(v.getTimezoneOffset()-r.getTimezoneOffset())*6E4)/864E5},function(r){return r.getDate()-1}),ROr=g5(0),BuY=g5(1);
g5(2);g5(3);var pJX=g5(4);g5(5);g5(6);To(function(r){r.setDate(1);r.setHours(0,0,0,0)},function(r,v){r.setMonth(r.getMonth()+v)},function(r,v){return v.getMonth()-r.getMonth()+(v.getFullYear()-r.getFullYear())*12},function(r){return r.getMonth()});
var mv=To(function(r){r.setMonth(0,1);r.setHours(0,0,0,0)},function(r,v){r.setFullYear(r.getFullYear()+v)},function(r,v){return v.getFullYear()-r.getFullYear()},function(r){return r.getFullYear()});
mv.every=function(r){return isFinite(r=Math.floor(r))&&r>0?To(function(v){v.setFullYear(Math.floor(v.getFullYear()/r)*r);v.setMonth(0,1);v.setHours(0,0,0,0)},function(v,m){v.setFullYear(v.getFullYear()+m*r)}):null};
To(function(r){r.setUTCSeconds(0,0)},function(r,v){r.setTime(+r+v*6E4)},function(r,v){return(v-r)/6E4},function(r){return r.getUTCMinutes()});
To(function(r){r.setUTCMinutes(0,0,0)},function(r,v){r.setTime(+r+v*36E5)},function(r,v){return(v-r)/36E5},function(r){return r.getUTCHours()});
var FdM=To(function(r){r.setUTCHours(0,0,0,0)},function(r,v){r.setUTCDate(r.getUTCDate()+v)},function(r,v){return(v-r)/864E5},function(r){return r.getUTCDate()-1}),gjr=e0(0),GWX=e0(1);
e0(2);e0(3);var PzJ=e0(4);e0(5);e0(6);To(function(r){r.setUTCDate(1);r.setUTCHours(0,0,0,0)},function(r,v){r.setUTCMonth(r.getUTCMonth()+v)},function(r,v){return v.getUTCMonth()-r.getUTCMonth()+(v.getUTCFullYear()-r.getUTCFullYear())*12},function(r){return r.getUTCMonth()});
var AW=To(function(r){r.setUTCMonth(0,1);r.setUTCHours(0,0,0,0)},function(r,v){r.setUTCFullYear(r.getUTCFullYear()+v)},function(r,v){return v.getUTCFullYear()-r.getUTCFullYear()},function(r){return r.getUTCFullYear()});
AW.every=function(r){return isFinite(r=Math.floor(r))&&r>0?To(function(v){v.setUTCFullYear(Math.floor(v.getUTCFullYear()/r)*r);v.setUTCMonth(0,1);v.setUTCHours(0,0,0,0)},function(v,m){v.setUTCFullYear(v.getUTCFullYear()+m*r)}):null};
var dOp={"-":"",_:" ",0:"0"},pO=/^\s*\d+/,jAl=/^%/,rh7=/[\\^$*+?|[\]().{}]/g,RoJ;(function(r){RoJ=etq(r);b6M=RoJ.utcFormat;fbL=RoJ.utcParse;return RoJ})({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||b6M("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||fbL("%Y-%m-%dT%H:%M:%S.%LZ");UX("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
UX("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");UX("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");UX("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");UX("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");UX("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");UX("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
UX("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");UX("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");UX("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");UX("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");UX("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var ukK=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(UX);WG(ukK);var ZYt=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(UX);WG(ZYt);var yhM=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(UX);WG(yhM);var Yqx=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(UX);
WG(Yqx);var D8q=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(UX);WG(D8q);var $8O=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(UX);WG($8O);var NEx=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(UX);WG(NEx);var sAr=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(UX);WG(sAr);var m8s=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(UX);WG(m8s);var AYO=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(UX);WG(AYO);var QR7=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(UX);WG(QR7);var b2M=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(UX);WG(b2M);var fXq=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(UX);WG(fXq);var aXt=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(UX);WG(aXt);var TlM=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(UX);WG(TlM);var dks=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(UX);WG(dks);var Fcn=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(UX);WG(Fcn);var Gmx=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(UX);WG(Gmx);var Blr=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(UX);WG(Blr);var p1N=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(UX);WG(p1N);var P$t=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(UX);WG(P$t);var X1N=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(UX);WG(X1N);var SZN=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(UX);WG(SZN);var Ukx=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(UX);WG(Ukx);var Lcs=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(UX);WG(Lcs);var M3O=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(UX);WG(M3O);var lXx=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(UX);WG(lXx);Mq6(K$(300,.5,0),K$(-240,.5,1));Mq6(K$(-100,.75,.35),K$(80,1.5,.8));Mq6(K$(260,.75,.35),K$(80,1.5,.8));K$();zn();Cub(UX("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Cub(UX("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Cub(UX("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Cub(UX("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Kd1.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(r,v){r=+r;v=+v;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,v):this._context.moveTo(r,v);break;case 1:this._point=2;default:this._context.lineTo(r,v)}}};
(function(r){function v(m){return new iWj(r(m))}
v._curve=r;return v})(function(r){return new Kd1(r)});
iWj.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(r,v){this._curve.point(v*Math.sin(r),v*-Math.cos(r))}};
SnY.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:XJ4(this,this._t0,VNM(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(r,v){var m=NaN;r=+r;v=+v;if(r!==this._x1||v!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(r,v):this._context.moveTo(r,v);break;case 1:this._point=2;break;case 2:this._point=3;XJ4(this,VNM(this,m=JXj(this,r,v)),m);break;default:XJ4(this,this._t0,m=JXj(this,r,v))}this._x0=this._x1;this._x1=r;this._y0=this._y1;this._y1=v;this._t0=m}}};
(function(r){this._context=new OW$(r)}.prototype=Object.create(SnY.prototype)).point=function(r,v){SnY.prototype.point.call(this,v,r)};
OW$.prototype={moveTo:function(r,v){this._context.moveTo(v,r)},
closePath:function(){this._context.closePath()},
lineTo:function(r,v){this._context.lineTo(v,r)},
bezierCurveTo:function(r,v,m,GX,ly,nF){this._context.bezierCurveTo(v,r,GX,m,nF,ly)}};
Jm.prototype={constructor:Jm,scale:function(r){return r===1?this:new Jm(this.k*r,this.x,this.y)},
translate:function(r,v){return r===0&v===0?this:new Jm(this.k,this.x+this.k*r,this.y+this.k*v)},
apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},
invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Jm(1,0,0);KAf=UN;n7.svg=n7.svg;n7.xhtml=n7.xhtml;n7.xlink=n7.xlink;n7.xml=n7.xml;n7.xmlns=n7.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 abj="hammer_"+(Math.random()*1E6|0),Tz9=function(){var A=document||document;if(!A[abj]){var Q=function(){(function(b,f,a,T){function G(He,We,uy){return setTimeout(l(He,uy),We)}
function p(He,We,uy){return Array.isArray(He)?(P(He,uy[We],uy),!0):!1}
function P(He,We,uy){var iY;if(He)if(He.forEach)He.forEach(We,uy);else if(He.length!==T){var XK=0;for(iY=He.length;XK<iY;XK++)We.call(uy,He[XK],XK,He)}else for(XK in He)He.hasOwnProperty(XK)&&We.call(uy,He[XK],XK,He)}
function U(He,We,uy){for(var iY=Object.keys(We),XK=0,jd=iY.length;XK<jd;XK++)if(!uy||uy&&He[iY[XK]]===T)He[iY[XK]]=We[iY[XK]];return He}
function L(He,We){return U(He,We,!0)}
function M(He,We,uy){We=We.prototype;var iY=He.prototype=Object.create(We);iY.constructor=He;iY._super=We;uy&&U(iY,uy)}
function l(He,We){return function(){return He.apply(We,arguments)}}
function J(He,We){return typeof He=="function"?He.apply(We?We[0]||T:T,We):He}
function n(He,We,uy){P(g(We),function(iY){He.addEventListener(iY,uy,!1)})}
function t(He,We,uy){P(g(We),function(iY){He.removeEventListener(iY,uy,!1)})}
function g(He){return He.trim().split(/\s+/g)}
function e(He,We,uy){if(He.indexOf&&!uy)return He.indexOf(We);for(var iY=0,XK=He.length;iY<XK;iY++)if(uy&&He[iY][uy]==We||!uy&&He[iY]===We)return iY;return-1}
function x(He,We,uy){for(var iY=[],XK=[],jd=0,ns=He.length;jd<ns;jd++){var n$=We?He[jd][We]:He[jd];e(XK,n$)<0&&iY.push(He[jd]);XK[jd]=n$}uy&&(iY=We?iY.sort(function(K$,Rt){return K$[We]>Rt[We]}):iY.sort());
return iY}
function D(He,We){for(var uy,iY=We[0].toUpperCase()+We.slice(1),XK=0,jd=FL.length;XK<jd;XK++)if(uy=(uy=FL[XK])?uy+iY:We,uy in He)return uy;return T}
function w(He,We){var uy=this;this.manager=He;this.callback=We;this.element=He.element;this.target=He.options.inputTarget;this.domHandler=function(iY){J(He.options.enable,[He])&&uy.handler(iY)};
this.evEl&&n(this.element,this.evEl,this.domHandler);this.evTarget&&n(this.target,this.evTarget,this.domHandler);this.evWin&&n(b,this.evWin,this.domHandler)}
function u(He){var We;k5?We=wW:mE?We=h4:UN?We=SW:We=iy;return new We(He,y)}
function y(He,We,uy){var iY=uy.pointers.length,XK=uy.changedPointers.length,jd=We&1&&iY-XK===0;uy.isFirst=!!jd;uy.isFinal=!!(We&12&&iY-XK===0);jd&&(He.session={});uy.eventType=We;We=He.session;iY=uy.pointers;XK=iY.length;We.firstInput||(We.firstInput=a9(uy));XK>1&&!We.firstMultiple?We.firstMultiple=a9(uy):XK===1&&(We.firstMultiple=!1);jd=We.firstInput;var ns=(XK=We.firstMultiple)?XK.center:jd.center,n$=uy.center=pF(iY);uy.timeStamp=oy();uy.deltaTime=uy.timeStamp-jd.timeStamp;uy.angle=I9(ns,n$);uy.distance=
Ob(ns,n$);jd=uy.center;ns=We.offsetDelta||{};n$=We.prevDelta||{};var K$=We.prevInput||{};if(uy.eventType===1||K$.eventType===4)n$=We.prevDelta={x:K$.deltaX||0,y:K$.deltaY||0},ns=We.offsetDelta={x:jd.x,y:jd.y};uy.deltaX=n$.x+(jd.x-ns.x);uy.deltaY=n$.y+(jd.y-ns.y);uy.offsetDirection=Ub(uy.deltaX,uy.deltaY);XK?(jd=XK.pointers,jd=Ob(iY[0],iY[1],zn)/Ob(jd[0],jd[1],zn)):jd=1;uy.scale=jd;XK?(XK=XK.pointers,iY=I9(iY[1],iY[0],zn)-I9(XK[1],XK[0],zn)):iY=0;uy.rotation=iY;ns=We.lastInterval||uy;iY=uy.timeStamp-
ns.timeStamp;uy.eventType!=8&&(iY>25||ns.velocity===T)?(jd=ns.deltaX-uy.deltaX,ns=ns.deltaY-uy.deltaY,n$=jd/iY||0,K$=ns/iY||0,iY=n$,XK=K$,n$=k1(n$)>k1(K$)?n$:K$,jd=Ub(jd,ns),We.lastInterval=uy):(n$=ns.velocity,iY=ns.velocityX,XK=ns.velocityY,jd=ns.direction);uy.velocity=n$;uy.velocityX=iY;uy.velocityY=XK;uy.direction=jd;We=He.element;a:{for(iY=uy.srcEvent.target;iY;){if(iY==We){iY=!0;break a}iY=iY.parentNode}iY=!1}iY&&(We=uy.srcEvent.target);uy.target=We;He.emit("hammer.input",uy);He.recognize(uy);
He.session.prevInput=uy}
function a9(He){for(var We=[],uy=0;uy<He.pointers.length;uy++)We[uy]={clientX:Ls(He.pointers[uy].clientX),clientY:Ls(He.pointers[uy].clientY)};return{timeStamp:oy(),pointers:We,center:pF(We),deltaX:He.deltaX,deltaY:He.deltaY}}
function pF(He){var We=He.length;if(We===1)return{x:Ls(He[0].clientX),y:Ls(He[0].clientY)};for(var uy=0,iY=0,XK=0;XK<We;XK++)uy+=He[XK].clientX,iY+=He[XK].clientY;return{x:Ls(uy/We),y:Ls(iY/We)}}
function Ub(He,We){return He===We?1:k1(He)>=k1(We)?He>0?2:4:We>0?8:16}
function Ob(He,We,uy){uy||(uy=w9);var iY=We[uy[0]]-He[uy[0]];He=We[uy[1]]-He[uy[1]];return Math.sqrt(iY*iY+He*He)}
function I9(He,We,uy){uy||(uy=w9);return Math.atan2(We[uy[1]]-He[uy[1]],We[uy[0]]-He[uy[0]])*180/Math.PI}
function iy(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;w.apply(this,arguments)}
function wW(){this.evEl=Fu;this.evWin=jn;w.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function h4(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};w.apply(this,arguments)}
function SW(){w.apply(this,arguments);var He=l(this.handler,this);this.touch=new h4(this.manager,He);this.mouse=new iy(this.manager,He)}
function r9(He,We){this.manager=He;this.set(We)}
function PM(He){if(He.indexOf("none")>-1)return"none";var We=He.indexOf("pan-x")>-1,uy=He.indexOf("pan-y")>-1;return We&&uy?"pan-x pan-y":We||uy?We?"pan-x":"pan-y":He.indexOf("manipulation")>-1?"manipulation":"auto"}
function Nf(He){this.id=ON++;this.manager=null;this.options=L(He||{},this.defaults);He=this.options.enable;this.options.enable=He===T?!0:He;this.state=1;this.simultaneous={};this.requireFail=[]}
function L$(He){return He==16?"down":He==8?"up":He==2?"left":He==4?"right":""}
function UL(He,We){return(We=We.manager)?We.get(He):He}
function HM(){Nf.apply(this,arguments)}
function Ks(){HM.apply(this,arguments);this.pY=this.pX=null}
function Y1(){HM.apply(this,arguments)}
function dW(){Nf.apply(this,arguments);this._input=this._timer=null}
function bY(){HM.apply(this,arguments)}
function OL(){HM.apply(this,arguments)}
function iO(){Nf.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Jv(He,We){We=We||{};var uy=We.recognizers;We.recognizers=uy===T?Jv.defaults.preset:uy;return new zr(He,We)}
function zr(He,We){We=We||{};this.options=L(We,Jv.defaults);this.options.inputTarget=this.options.inputTarget||He;this.handlers={};this.session={};this.recognizers=[];this.element=He;this.input=u(this);this.touchAction=new r9(this,this.options.touchAction);fN(this,!0);P(We.recognizers,function(uy){var iY=this.add(new uy[0](uy[1]));uy[2]&&iY.recognizeWith(uy[2]);uy[3]&&iY.requireFailure(uy[2])},this)}
function fN(He,We){var uy=He.element;P(He.options.cssProps,function(iY,XK){uy.style[D(uy.style,XK)]=We?iY:""})}
function sL(He,We){var uy=f.createEvent("Event");uy.initEvent(He,!0,!0);uy.gesture=We;We.target.dispatchEvent(uy)}
var FL=" webkit moz MS ms o".split(" "),Qx=f.createElement("div"),Ls=Math.round,k1=Math.abs,oy=Date.now,ON=1,Sx=/mobile|tablet|ip(ad|hone|od)|android/i,UN="ontouchstart"in b,k5=D(b,"PointerEvent")!==T,mE=UN&&Sx.test(navigator.userAgent),w9=["x","y"],zn=["clientX","clientY"];w.prototype={handler:function(){},
destroy:function(){this.evEl&&t(this.element,this.evEl,this.domHandler);this.evTarget&&t(this.target,this.evTarget,this.domHandler);this.evWin&&t(b,this.evWin,this.domHandler)}};
var wx={mousedown:1,mousemove:2,mouseup:4};M(iy,w,{handler:function(He){var We=wx[He.type];We&1&&He.button===0&&(this.pressed=!0);We&2&&He.which!==1&&(We=4);this.pressed&&this.allow&&(We&4&&(this.pressed=!1),this.callback(this.manager,We,{pointers:[He],changedPointers:[He],pointerType:"mouse",srcEvent:He}))}});
var bn={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},o8={2:"touch",3:"pen",4:"mouse",5:"kinect"},Fu="pointerdown",jn="pointermove pointerup pointercancel";b.MSPointerEvent&&(Fu="MSPointerDown",jn="MSPointerMove MSPointerUp MSPointerCancel");M(wW,w,{handler:function(He){var We=this.store,uy=!1,iY=He.type.toLowerCase().replace("ms","");iY=bn[iY];var XK=o8[He.pointerType]||He.pointerType;iY&1&&(He.button===0||XK=="touch")?We.push(He):iY&12&&(uy=!0);var jd=e(We,He.pointerId,"pointerId");
jd<0||(We[jd]=He,this.callback(this.manager,iY,{pointers:We,changedPointers:[He],pointerType:XK,srcEvent:He}),uy&&We.splice(jd,1))}});
var aO={touchstart:1,touchmove:2,touchend:4,touchcancel:8};M(h4,w,{handler:function(He){var We=aO[He.type];var uy=Array.prototype.slice.call(He.touches,0);var iY=this.targetIds;if(We&3&&uy.length===1)iY[uy[0].identifier]=!0,iY=[uy,uy];else{var XK,jd=Array.prototype.slice.call(He.targetTouches,0),ns=Array.prototype.slice.call(He.changedTouches,0),n$=[];if(We===1)for(uy=0,XK=jd.length;uy<XK;uy++)iY[jd[uy].identifier]=!0;uy=0;for(XK=ns.length;uy<XK;uy++)iY[ns[uy].identifier]&&n$.push(ns[uy]),We&12&&
delete iY[ns[uy].identifier];iY=n$.length?[x(jd.concat(n$),"identifier",!0),n$]:void 0}iY&&this.callback(this.manager,We,{pointers:iY[0],changedPointers:iY[1],pointerType:"touch",srcEvent:He})}});
M(SW,w,{handler:function(He,We,uy){var iY=uy.pointerType=="mouse";if(uy.pointerType=="touch")this.mouse.allow=!1;else if(iY&&!this.mouse.allow)return;We&12&&(this.mouse.allow=!0);this.callback(He,We,uy)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var $m=D(Qx.style,"touchAction"),ai=$m!==T;r9.prototype={set:function(He){He=="compute"&&(He=this.compute());ai&&(this.manager.element.style[$m]=He);this.actions=He.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var He=[];P(this.manager.recognizers,function(We){J(We.options.enable,[We])&&(He=He.concat(We.getTouchAction()))});
return PM(He.join(" "))},
preventDefaults:function(He){if(!ai){var We=He.srcEvent;He=He.offsetDirection;if(this.manager.session.prevented)We.preventDefault();else{var uy=this.actions,iY=uy.indexOf("none")>-1,XK=uy.indexOf("pan-y")>-1;uy=uy.indexOf("pan-x")>-1;if(iY||XK&&uy||XK&&He&6||uy&&He&24)return this.preventSrc(We)}}},
preventSrc:function(He){this.manager.session.prevented=!0;He.preventDefault()}};
Nf.prototype={defaults:{},set:function(He){U(this.options,He);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(He){if(p(He,"recognizeWith",this))return this;var We=this.simultaneous;He=UL(He,this);We[He.id]||(We[He.id]=He,He.recognizeWith(this));return this},
dropRecognizeWith:function(He){if(p(He,"dropRecognizeWith",this))return this;He=UL(He,this);delete this.simultaneous[He.id];return this},
requireFailure:function(He){if(p(He,"requireFailure",this))return this;var We=this.requireFail;He=UL(He,this);e(We,He)===-1&&(We.push(He),He.requireFailure(this));return this},
dropRequireFailure:function(He){if(p(He,"dropRequireFailure",this))return this;He=UL(He,this);He=e(this.requireFail,He);He>-1&&this.requireFail.splice(He,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(He){return!!this.simultaneous[He.id]},
emit:function(He){function We(XK){uy.manager.emit(uy.options.event+(XK?iY&16?"cancel":iY&8?"end":iY&4?"move":iY&2?"start":"":""),He)}
var uy=this,iY=this.state;iY<8&&We(!0);We();iY>=8&&We(!0)},
tryEmit:function(He){if(this.canEmit())return this.emit(He);this.state=32},
canEmit:function(){for(var He=0;He<this.requireFail.length;He++)if(!(this.requireFail[He].state&33))return!1;return!0},
recognize:function(He){He=U({},He);J(this.options.enable,[this,He])?(this.state&56&&(this.state=1),this.state=this.process(He),this.state&30&&this.tryEmit(He)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
M(HM,Nf,{defaults:{pointers:1},attrTest:function(He){var We=this.options.pointers;return We===0||He.pointers.length===We},
process:function(He){var We=this.state,uy=He.eventType,iY=We&6;He=this.attrTest(He);return iY&&(uy&8||!He)?We|16:iY||He?uy&4?We|8:We&2?We|4:2:32}});
M(Ks,HM,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var He=this.options.direction;if(He===30)return["none"];var We=[];He&6&&We.push("pan-y");He&24&&We.push("pan-x");return We},
directionTest:function(He){var We=this.options,uy=!0,iY=He.distance,XK=He.direction,jd=He.deltaX,ns=He.deltaY;XK&We.direction||(We.direction&6?(XK=jd===0?1:jd<0?2:4,uy=jd!=this.pX,iY=Math.abs(He.deltaX)):(XK=ns===0?1:ns<0?8:16,uy=ns!=this.pY,iY=Math.abs(He.deltaY)));He.direction=XK;return uy&&iY>We.threshold&&XK&We.direction},
attrTest:function(He){return HM.prototype.attrTest.call(this,He)&&(this.state&2||!(this.state&2)&&this.directionTest(He))},
emit:function(He){this.pX=He.deltaX;this.pY=He.deltaY;var We=L$(He.direction);We&&this.manager.emit(this.options.event+We,He);this._super.emit.call(this,He)}});
M(Y1,HM,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(He){return this._super.attrTest.call(this,He)&&(Math.abs(He.scale-1)>this.options.threshold||this.state&2)},
emit:function(He){this._super.emit.call(this,He);He.scale!==1&&this.manager.emit(this.options.event+(He.scale<1?"in":"out"),He)}});
M(dW,Nf,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(He){var We=this.options,uy=He.pointers.length===We.pointers,iY=He.distance<We.threshold,XK=He.deltaTime>We.time;this._input=He;if(!iY||!uy||He.eventType&12&&!XK)this.reset();else if(He.eventType&1)this.reset(),this._timer=G(function(){this.state=8;this.tryEmit()},We.time,this);
else if(He.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(He){this.state===8&&(He&&He.eventType&4?this.manager.emit(this.options.event+"up",He):(this._input.timeStamp=oy(),this.manager.emit(this.options.event,this._input)))}});
M(bY,HM,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(He){return this._super.attrTest.call(this,He)&&(Math.abs(He.rotation)>this.options.threshold||this.state&2)}});
M(OL,HM,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Ks.prototype.getTouchAction.call(this)},
attrTest:function(He){var We=this.options.direction;if(We&30)var uy=He.velocity;else We&6?uy=He.velocityX:We&24&&(uy=He.velocityY);return this._super.attrTest.call(this,He)&&We&He.direction&&k1(uy)>this.options.velocity&&He.eventType&4},
emit:function(He){var We=L$(He.direction);We&&this.manager.emit(this.options.event+We,He);this.manager.emit(this.options.event,He)}});
M(iO,Nf,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(He){var We=this.options,uy=He.pointers.length===We.pointers,iY=He.distance<We.threshold,XK=He.deltaTime<We.time;this.reset();if(He.eventType&1&&this.count===0)return this.failTimeout();if(iY&&XK&&uy){if(He.eventType!=4)return this.failTimeout();uy=this.pTime?He.timeStamp-this.pTime<We.interval:!0;iY=!this.pCenter||Ob(this.pCenter,He.center)<We.posThreshold;this.pTime=He.timeStamp;this.pCenter=He.center;iY&&uy?this.count+=1:this.count=1;this._input=He;if(this.count%We.taps===0)return this.hasRequireFailures()?
(this._timer=G(function(){this.state=8;this.tryEmit()},We.interval,this),2):8}return 32},
failTimeout:function(){this._timer=G(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))}});
Jv.VERSION="2.0.2";Jv.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[bY,{enable:!1}],[Y1,{enable:!1},["rotate"]],[OL,{direction:6}],[Ks,{direction:6},["swipe"]],[iO],[iO,{event:"doubletap",taps:2},["tap"]],[dW]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};zr.prototype={set:function(He){U(this.options,He);return this},
stop:function(He){this.session.stopped=He?2:1},
recognize:function(He){var We=this.session;if(!We.stopped){this.touchAction.preventDefaults(He);var uy=this.recognizers,iY=We.curRecognizer;if(!iY||iY&&iY.state&8)iY=We.curRecognizer=null;for(var XK=0,jd=uy.length;XK<jd;XK++){var ns=uy[XK];We.stopped===2||iY&&ns!=iY&&!ns.canRecognizeWith(iY)?ns.reset():ns.recognize(He);!iY&&ns.state&14&&(iY=We.curRecognizer=ns)}}},
get:function(He){if(He instanceof Nf)return He;for(var We=this.recognizers,uy=0;uy<We.length;uy++)if(We[uy].options.event==He)return We[uy];return null},
add:function(He){if(p(He,"add",this))return this;var We=this.get(He.options.event);We&&this.remove(We);this.recognizers.push(He);He.manager=this;this.touchAction.update();return He},
remove:function(He){if(p(He,"remove",this))return this;var We=this.recognizers;He=this.get(He);We.splice(e(We,He),1);this.touchAction.update();return this},
on:function(He,We){var uy=this.handlers;P(g(He),function(iY){uy[iY]=uy[iY]||[];uy[iY].push(We)});
return this},
off:function(He,We){var uy=this.handlers;P(g(He),function(iY){We?uy[iY].splice(e(uy[iY],We),1):delete uy[iY]});
return this},
emit:function(He,We){this.options.domEvents&&sL(He,We);var uy=this.handlers[He]&&this.handlers[He].slice();if(uy&&uy.length){We.type=He;We.preventDefault=function(){We.srcEvent.preventDefault()};
He=0;for(var iY=uy.length;He<iY;He++)uy[He](We)}},
destroy:function(){this.element&&fN(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
U(Jv,{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:zr,Input:w,TouchAction:r9,Recognizer:Nf,AttrRecognizer:HM,Tap:iO,Pan:Ks,Swipe:OL,Pinch:Y1,Rotate:bY,Press:dW,on:n,off:t,each:P,merge:L,extend:U,inherit:M,bindFn:l,prefixed:D});
b[a]=Jv})(window,document,"Hammer");
return window.Hammer}.call({});
Q.DOCUMENT=A;A[abj]=Q}return A[abj]};/*

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

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 osv;_.qhj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");osv=function(){var A=[],Q;var b=b||_.qhj.length;for(Q=0;Q<8;Q++)A[Q]=_.qhj[0|Math.random()*b];return A.join("")};var dY6=function(){return Math.random().toString(36).substring(7).split("").join(".")},Trb="@@redux/INIT"+dY6(),Bri="@@redux/REPLACE"+dY6();var p2Y=typeof Symbol==="function"&&Symbol.observable||"@@observable";var tJj=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var ryy="top right bottom left width height size weight".split(" "),j$Y=typeof MutationObserver!=="undefined",RQW=tJj&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,gsj=function(){this.mutationEventsAdded_=this.JSC$11642_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=P9A(this.refresh.bind(this))},eQp=function(A,
Q){var b=A.observers_;
Q=b.indexOf(Q);~Q&&b.splice(Q,1);!b.length&&A.JSC$11642_connected_&&tJj&&A.JSC$11642_connected_&&(document.removeEventListener("transitionend",A.onTransitionEnd_),window.removeEventListener("resize",A.refresh),A.mutationsObserver_&&(A.mutationsObserver_.disconnect(),RQW&&(HTMLElement.prototype.attachShadow=RQW)),A.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",A.refresh),A.mutationsObserver_=null,A.mutationEventsAdded_=!1,A.JSC$11642_connected_=!1)};
gsj.prototype.refresh=function(){hQY(this)&&this.refresh()};
var hQY=function(A){A=A.observers_.filter(function(Q){return Wmj(Q),Q.activeObservations_.length>0});
A.forEach(function(Q){return vsp(Q)});
return A.length>0},EsM=function(A){if(tJj&&!A.JSC$11642_connected_){document.addEventListener("transitionend",A.onTransitionEnd_);
window.addEventListener("resize",A.refresh);if(j$Y){A.mutationsObserver_=new MutationObserver(A.refresh);var Q={attributes:!0,childList:!0,characterData:!0,subtree:!0};A.mutationsObserver_.observe(document,Q);RQW&&(function a(f){var T=f.shadowRoot;T&&(A.mutationsObserver_.observe(T,Q),a(T));for(f=f.firstElementChild;f;)a(f),f=f.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var f=RQW.apply(this,_.E$.apply(0,arguments));
A.mutationsObserver_.observe(f,Q);return f})}else document.addEventListener("DOMSubtreeModified",A.refresh),A.mutationEventsAdded_=!0;
A.JSC$11642_connected_=!0}};
gsj.prototype.onTransitionEnd_=function(A){var Q=A.propertyName===void 0?"":A.propertyName;ryy.some(function(b){return!!~Q.indexOf(b)})&&this.refresh()};
var xIM=null;var cyM=function(A,Q){for(var b=_.F(Object.keys(Q)),f=b.next();!f.done;f=b.next())f=f.value,Object.defineProperty(A,f,{value:Q[f],enumerable:!1,writable:!1,configurable:!0})};var vp=function(A){var Q;return(A==null?void 0:(Q=A.ownerDocument)==null?void 0:Q.defaultView)||globalThis};var zQj={x:0,y:0,width:0,height:0},wLW=typeof SVGGraphicsElement!=="undefined"?function(A){return A instanceof vp(A).SVGGraphicsElement}:function(A){return A instanceof vp(A).SVGElement&&typeof A.getBBox==="function"};var u7$=function(A){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=A};
u7$.prototype.isActive=function(){var A=this.target;if(tJj)if(wLW(A)){var Q=A.getBBox();Q={x:0,y:0,width:Q.width,height:Q.height}}else{var b=A.clientWidth,f=A.clientHeight;if(b||f){var a=vp(A).getComputedStyle(A);Q=Jx(a["padding-top"]);var T=Jx(a["padding-left"]),G=T+Jx(a["padding-right"]),p=Q+Jx(a["padding-bottom"]),P=Jx(a.width),U=Jx(a.height);a.boxSizing==="border-box"&&(Math.round(P+G)!==b&&(P-=X2W(a,"left","right")+G),Math.round(U+p)!==f&&(U-=X2W(a,"top","bottom")+p));A!==vp(A).document.documentElement&&
(A=Math.round(P+G)-b,f=Math.round(U+p)-f,Math.abs(A)!==1&&(P-=A),Math.abs(f)!==1&&(U-=f));Q={x:T,y:Q,width:P,height:U}}else Q=zQj}else Q=zQj;this.contentRect_=Q;return Q.width!==this.broadcastWidth||Q.height!==this.broadcastHeight};var Z6p=function(A,Q){var b=Q.x;var f=Q.y;var a=Q.width;Q=Q.height;var T=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);cyM(T,{x:b,y:f,width:a,height:Q,top:f,right:b+a,bottom:Q+f,left:b});cyM(this,{target:A,contentRect:T})};var yyY=function(A,Q){var b=xIM;this.activeObservations_=[];this.observations_=new Map;if(typeof A!=="function")throw new TypeError("Pe");this.callback_=A;this.controller_=b;this.callbackCtx_=Q};
yyY.prototype.observe=function(A){if(A===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof vp(A).Element))throw new TypeError("Re");var Q=this.observations_;Q.has(A)||(Q.set(A,new u7$(A)),A=this.controller_,~A.observers_.indexOf(this)||A.observers_.push(this),A.JSC$11642_connected_||EsM(A),this.controller_.refresh())}};
yyY.prototype.unobserve=function(A){if(A===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof vp(A).Element))throw new TypeError("Re");var Q=this.observations_;Q.has(A)&&(Q.delete(A),Q.size||eQp(this.controller_,this))}};
yyY.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();eQp(this.controller_,this)};
var Wmj=function(A){A.activeObservations_.splice(0);A.observations_.forEach(function(Q){Q.isActive()&&A.activeObservations_.push(Q)})},vsp=function(A){if(A.activeObservations_.length>0){var Q=A.callbackCtx_,b=A.activeObservations_.map(function(f){var a=f.target,T=f.contentRect_;
f.broadcastWidth=T.width;f.broadcastHeight=T.height;return new Z6p(a,T)});
A.callback_.call(Q,b,Q);A.activeObservations_.splice(0)}};var Ez=function(A){if(!(this instanceof Ez))throw new TypeError("Se");if(!arguments.length)throw new TypeError("Qe");xIM||(xIM=new gsj);this.observer_=new yyY(A,this)};
Ez.prototype.observe=function(A){this.observer_.observe(A)};
Ez.prototype.unobserve=function(A){this.observer_.unobserve(A)};
Ez.prototype.disconnect=function(){this.observer_.disconnect()};var xa4=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Ez;var J1e="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(" "),iGY={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Kp4=null,S3U=null;var VVi={},OGy=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 opA={text:1},I7C={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var Yhx=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,DIK={CONSTANT:{isUnwrappable:function(A){return A instanceof cv},
unwrap:v1j},JAVASCRIPT:{isUnwrappable:function(A){return A instanceof _.$8},
unwrap:dL4},HTML:{isUnwrappable:function(A){return A instanceof zY},
unwrap:function(A){return un(A)}},
RESOURCE_URL:{isUnwrappable:function(A){return A instanceof np},
unwrap:_.IT},STRING:{isUnwrappable:function(A){return A instanceof Object},
unwrap:function(A){return String(A)}},
STYLE:{isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A}},
URL:{isUnwrappable:function(A){return ts(A)},
unwrap:_.r$}},$IN={CONSTANT:tV6,JAVASCRIPT:tV6,HTML:function(A){A=A instanceof zY?A:w$(String(A).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return un(A)},
RESOURCE_URL:tV6,STRING:String,STYLE:tV6,URL:function(A,Q){A=Yhx.test(A)?A:void 0;return A===void 0?Q:A}};var c19=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,r1W=/[\t\n\f\r ]+/,RVJ=/[\t\n\f\r ,]+/g,eVA=function(A,Q,b){return b},kf={},Nz9=function(){var A=function(){var f={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",f):f}(),Q=A.createHTML(""),b=A.createScript("");
A=A.createScriptURL("");return{INNOCUOUS_STRING:Q,INNOCUOUS_SCRIPT:b,INNOCUOUS_URL:A}}(),n1=Nz9.INNOCUOUS_STRING,xYX=Nz9.INNOCUOUS_SCRIPT,Ep6=Nz9.INNOCUOUS_URL;var s$1=function(A){var Q=zVf(A);return function(b,f,a,T){return T?Q(T,f,a,b):n1}}({reportHandler:function(A,Q){if(A)try{throw Error(Q);
}catch(b){_.en(b)}},
safeTypesBridge:function(A,Q,b){var f=DIK[Q];return f.isUnwrappable(A)&&(f=f.unwrap(A,b),f!==b)?f:(0,$IN[Q])(String(A),b)},
allowedIdentifierPrefixes:[""]});if(O8!==void 0)throw Error("Te");O8=s$1;if(O8!==s$1)throw Error("Ue");Ii("Injectable",[]);var LI9=Ii("Inject",[["token",void 0]]),luU=Ii("Optional",[]);Ii("Injectable",[]);var KIU=Ii("Self",[]),io6=Ii("SkipSelf",[]);Ii("Host",[]);var mIr={},AcM=function(){};
AcM.prototype.resolve=function(){throw Error("We");};
AcM.prototype.addProvider=function(){throw Error("We");};var SfY=Function;var QbL=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,bSj=function(){this._reflect=window.Reflect};
_.d=bSj.prototype;_.d.factory=function(A){return function(){return new (Function.prototype.bind.apply(A,[null].concat(_.ri(_.E$.apply(0,arguments)))))}};
_.d._zipTypesAndAnnotations=function(A,Q){var b=typeof A==="undefined"?Array(Q.length):Array(A.length);for(var f=0;f<b.length;f++)b[f]=typeof A==="undefined"?[]:A[f]!=Object?[A[f]]:[],Q&&utC(Q[f])&&(b[f]=b[f].concat(Q[f]));return b};
_.d._ownParameters=function(A,Q){if(QbL.exec(A.toString()))return null;if(A.parameters&&A.parameters!==Q.parameters)return A.parameters;var b=A.ctorParameters;return b&&b!==Q.ctorParameters?(Q=typeof b==="function"?b():b,A=Q.map(function(f){return f&&f.type}),Q=Q.map(function(f){return f&&y1i(f.decorators)}),this._zipTypesAndAnnotations(A,Q)):utC(this._reflect)&&utC(this._reflect.getOwnMetadata)&&(Q=this._reflect.getOwnMetadata("parameters",A),(b=this._reflect.getOwnMetadata("design:paramtypes",A))||
Q)?this._zipTypesAndAnnotations(b,Q):Array(A.length).fill(void 0)};
_.d.parameters=function(A){if(!A.prototype)return[];var Q=Object.getPrototypeOf(A.prototype).constructor;(A=this._ownParameters(A,Q))||Q===Object||(A=this.parameters(Q));return A||[]};
_.d._ownAnnotations=function(A,Q){if(A.annotations&&A.annotations!==Q.annotations)return A=A.annotations,typeof A==="function"&&A.annotations&&(A=A.annotations),A;if(A.decorators&&A.decorators!==Q.decorators)return y1i(A.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",A)};
_.d.annotations=function(A){var Q=Object.getPrototypeOf(A.prototype).constructor;A=this._ownAnnotations(A,Q)||[];return(Q!==Object?this.annotations(Q):[]).concat(A)};
_.d._ownPropMetadata=function(A,Q){if(A.propMetadata&&A.propMetadata!==Q.propMetadata)return A=A.propMetadata,typeof A==="function"&&A.propMetadata&&(A=A.propMetadata),A;if(A.propDecorators&&A.propDecorators!==Q.propDecorators){var b=A.propDecorators,f={};Object.keys(b).forEach(function(a){f[a]=y1i(b[a])});
return f}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",A)};
_.d.propMetadata=function(A){var Q=Object.getPrototypeOf(A.prototype).constructor,b={};if(Q!==Object){var f=this.propMetadata(Q);Object.keys(f).forEach(function(T){b[T]=f[T]})}var a=this._ownPropMetadata(A,Q);
a&&Object.keys(a).forEach(function(T){var G=[];b.hasOwnProperty(T)&&G.push.apply(G,_.ri(b[T]));G.push.apply(G,_.ri(a[T]));b[T]=G});
return b};
_.d.getter=function(A){return function(Q){return Q[A]}};
_.d.setter=function(A){return function(Q,b){return Q[A]=b}};
_.d.method=function(A){return function(Q,b){if(!Q[A])throw Error("Xe`"+A);return Q[A].apply(Q,b)}};var fhM=function(){};var ah1=function(A){this.reflectionCapabilities=A};
_.O(ah1,fhM);_.d=ah1.prototype;_.d.factory=function(A){return this.reflectionCapabilities.factory(A)};
_.d.parameters=function(A){return this.reflectionCapabilities.parameters(A)};
_.d.annotations=function(A){return this.reflectionCapabilities.annotations(A)};
_.d.propMetadata=function(A){return this.reflectionCapabilities.propMetadata(A)};
_.d.getter=function(A){return this.reflectionCapabilities.getter(A)};
_.d.setter=function(A){return this.reflectionCapabilities.setter(A)};
_.d.method=function(A){return this.reflectionCapabilities.method(A)};var boi=new ah1(new bSj);var xt=function(A,Q){this.token=A;this.id=Q;if(A===void 0||A===null)throw Error("bf");};
_.Qr.Object.defineProperties(xt.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return HR(this.token)}}});
_.Qr.Object.defineProperties(xt,{JSC$11684_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return qW.JSC$11688_numberOfKeys}}});
var TLL=function(){this._allKeys=new Map};
TLL.prototype.get=function(A){if(A instanceof xt)return A;if(this._allKeys.has(A))return this._allKeys.get(A);var Q=new xt(A,xt.JSC$11684_numberOfKeys);this._allKeys.set(A,Q);return Q};
_.Qr.Object.defineProperties(TLL.prototype,{JSC$11688_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var qW=new TLL;var JP6=function(A,Q,b){this.key=A;this.optional=Q;this.visibility=b},auA=function(A){return new JP6(A,!1,null)},dAi=[],BdF=function(A,Q,b){this.key=A;
this.resolvedFactories=Q;this.multiProvider=b},FIU=function(A,Q,b,f){this.factory=A;
this.dependencies=Q;this.providerClass=b;this.providerValue=f};var cp={},zy=function(A,Q){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=Q===void 0?null:Q;A=_.F(A);for(Q=A.next();!Q.done;Q=A.next())this.addProvider(Q.value)};
_.d=zy.prototype;_.d.addProvider=function(A){this.keyIdToIndex.set(A.key.id,this.keyIds.length);this.providers.push(A);this.keyIds.push(A.key.id);this.objs.push(cp)};
_.d.resolve=function(A,Q){Q=Q===void 0?mIr:Q;return this._getByKey(qW.get(C1(A)),null,Q)};
_.d._new=function(A){if(this.constructedKeyIds[A.key.id])throw mYb(this,A.key);this.constructedKeyIds[A.key.id]=!0;return this._instantiateProvider(A)};
_.d._instantiateProvider=function(A){if(A.multiProvider){for(var Q=Array(A.resolvedFactories.length),b=0;b<A.resolvedFactories.length;++b)Q[b]=this._instantiate(A,A.resolvedFactories[b]);return Q}return this._instantiate(A,A.resolvedFactories[0])};
_.d._instantiate=function(A,Q){var b=this,f=Q.factory;try{var a=Q.dependencies.map(function(G){return b._getByReflectiveDependency(G)})}catch(G){throw G.addKey&&G.addKey(this,A.key),G;
}try{var T=f.apply(null,_.ri(a))}catch(G){throw APC(this,G,A.key);}return T};
_.d._getByReflectiveDependency=function(A){return this._getByKey(A.key,A.visibility,A.optional?null:mIr)};
_.d._getByKey=function(A,Q,b){return A===dlM?this:Q instanceof KIU?this._getByKeySelf(A,b):this._getByKeyDefault(A,b,Q)};
_.d._getObjByKeyId=function(A){for(var Q=0;Q<this.keyIds.length;Q++)if(this.keyIds[Q]===A)return this.objs[Q]===cp&&(this.objs[Q]=this._new(this.providers[Q])),this.objs[Q];return cp};
_.d._throwOrNull=function(A,Q){if(Q!==mIr)return Q;throw sHi(this,A);};
_.d._getByKeySelf=function(A,Q){var b=this._getObjByKeyId(A.id);return b!==cp?b:this._throwOrNull(A,Q)};
_.d._getByKeyDefault=function(A,Q,b){for(var f=b=b instanceof io6?this.parent:this;b instanceof zy;){var a=b._getObjByKeyId(A.id);if(a!==cp)return a;b=b.parent}a=void 0;if(b!==null)try{var T=b.resolve(A.token,Q);if(T!==cp)return T}catch(G){a=G}if(!(f instanceof zy&&Oo9(A.token))){if(a)throw a;return this._throwOrNull(A,Q)}for(T=f;T.parent instanceof zy;)T=T.parent;T.addProvider(pXW({provide:A.token,useClass:A.token}));return T.resolve(A.token,Q)};
_.d.toString=function(){return this.displayName};
_.Qr.Object.defineProperties(zy.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Vp9(this,function(A){return' "'+A.key.displayName+'" '}).join(", ")+"])"}}});
var dlM=qW.get(C1(AcM));(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 FPM=window.XRegExp;var Gkx=-1,BLM=function(A){addEventListener("pageshow",function(Q){Q.persisted&&(Gkx=Q.timeStamp,A(Q))},!0)};var PpK=function(A,Q,b){var f=piM,a,T;return function(G){if(Q.value>=0&&(G||b)){var p;if((T=Q.value-((p=a)!=null?p:0))||a===void 0)a=Q.value,Q.delta=T,G=Q.value,Q.rating=G>f[1]?"poor":G>f[0]?"needs-improvement":"good",A(Q)}}};var Xiv=function(A){requestAnimationFrame(function(){return requestAnimationFrame(function(){return A()})})};var SsM=function(){var A=performance.getEntriesByType("navigation")[0];if(A&&A.responseStart>0&&A.responseStart<performance.now())return A};var Uly=function(){var A,Q;return(Q=(A=SsM())==null?void 0:A.activationStart)!=null?Q:0};var LPM=function(){var A=A===void 0?-1:A;var Q=SsM(),b="navigate";Gkx>=0?b="back-forward-cache":Q&&(document.prerendering||Uly()>0?b="prerender":document.wasDiscarded?b="restore":Q.type&&(b=Q.type.replace(/_/g,"-")));return{name:"LCP",value:A,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:b}};var kfb=new WeakMap;var MQL=function(A){var Q=Q===void 0?{}:Q;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var b=new PerformanceObserver(function(f){Promise.resolve().then(function(){A(f.getEntries())})});
b.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},Q));return b}}catch(f){}};var lh9=function(A){var Q=!1;return function(){Q||(A(),Q=!0)}};var w7=-1,KPL=function(A){document.visibilityState==="hidden"&&w7>-1&&(w7=A.type==="visibilitychange"?A.timeStamp:0,removeEventListener("visibilitychange",KPL,!0),removeEventListener("prerenderingchange",KPL,!0))},iSv=function(){addEventListener("visibilitychange",KPL,!0);
addEventListener("prerenderingchange",KPL,!0)},Jcr=function(){if(w7<0){var A=Uly(),Q,b;
w7=(b=document.prerendering?void 0:(Q=globalThis.performance.getEntriesByType("visibility-state").filter(function(f){return f.name==="hidden"&&f.startTime>A})[0])==null?void 0:Q.startTime)!=null?b:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
iSv();BLM(function(){setTimeout(function(){w7=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;iSv()})})}return{get firstHiddenTime(){return w7}}};var VQM=function(A){document.prerendering?addEventListener("prerenderingchange",function(){return A()},!0):A()};var OSL=function(A){var Q=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?A():(A=lh9(A),document.addEventListener("visibilitychange",A,{once:!0}),Q(function(){A();document.removeEventListener("visibilitychange",A)}))};var nHy=function(){};
nHy.prototype._processEntry=function(A){var Q;(Q=this._onBeforeProcessingEntry)==null||Q.call(this,A)};var piM=[2500,4E3],$Z6=function(A){var Q=Q===void 0?{}:Q;VQM(function(){var b=Jcr(),f=LPM(),a=Iu9(Q),T=function(M){Q.reportAllChanges||(M=M.slice(-1));M=_.F(M);for(var l=M.next();!l.done;l=M.next())l=l.value,a._processEntry(l),l.startTime<b.firstHiddenTime&&(f.value=Math.max(l.startTime-Uly(),0),f.entries=[l],p())},G=MQL(T);
if(G){var p=PpK(A,f,Q.reportAllChanges);for(var P=lh9(function(){T(G.takeRecords());G.disconnect();p(!0)}),U=_.F(["keydown",
"click","visibilitychange"]),L=U.next();!L.done;L=U.next())addEventListener(L.value,function(){return OSL(P)},{capture:!0,
once:!0});BLM(function(M){f=LPM();p=PpK(A,f,Q.reportAllChanges);Xiv(function(){f.value=performance.now()-M.timeStamp;p(!0)})})}})};var nBy;var kkL;_.z=function(){return kkL!==void 0?kkL:kkL=document.createElement("template")};
document.head.appendChild(_.z().content);var Ihj;_.gn({_template:function(){if(Ihj!==void 0)return Ihj;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;nBy===void 0&&(nBy=document.createElement("template"));var f=nBy;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Ihj=A},
is:"tp-yt-app-toolbar"});var HSy;var CpN;_.ur=function(){};
_.ur=_.gn({_template:function(){if(CpN!==void 0)return CpN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;HSy===void 0&&(HSy=document.createElement("template"));var f=HSy;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return CpN=A},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.ur.instance||(_.ur.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(A){this._text===A&&(A+="\u00a0");this._text="";this.async(function(){this._text=A},this.timeout)},
_onIronAnnounce:function(A){A.detail&&A.detail.text&&this.announce(A.detail.text)}});
_.ur.instance=null;_.ur.requestAvailability=function(){_.ur.instance||(_.ur.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.ur.instance):document.addEventListener("load",function(){document.body.appendChild(_.ur.instance)})};var qsW;var oB9;/*

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

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 ZO,hSK,WPy;ZO=Element.prototype;hSK=ZO.matches||ZO.matchesSelector||ZO.mozMatchesSelector||ZO.msMatchesSelector||ZO.oMatchesSelector||ZO.webkitMatchesSelector;WPy=function(){};
_.EBy=function(A){var Q=vB1,b=[];return Q._collectTabbableNodes(A,b)?Q._sortByTabIndex(b):b};
_.d=WPy.prototype;_.d._normalizedTabIndex=function(A){return(hSK.call(A,"input, select, textarea, button, object")?hSK.call(A,":not([disabled])"):hSK.call(A,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(A=A.getAttribute("tabindex")||0,Number(A)):-1};
_.d._collectTabbableNodes=function(A,Q){if(A.nodeType!==Node.ELEMENT_NODE||!this._isVisible(A))return!1;var b=this._normalizedTabIndex(A),f=b>0;b>=0&&Q.push(A);if(A.localName==="content"||A.localName==="slot")b=_.oi(A).getDistributedNodes();else{var a;b=((a=_.oi(A).shadowRoot)!=null?a:_.oi(A.root||A)).children}for(A=0;A<b.length;A++)f=this._collectTabbableNodes(b[A],Q)||f;return f};
_.d._isVisible=function(A){var Q=A.style;return Q.visibility!=="hidden"&&Q.display!=="none"?(Q=window.getComputedStyle(A),Q.visibility!=="hidden"&&Q.display!=="none"):!1};
_.d._sortByTabIndex=function(A){var Q=A.length;if(Q<2)return A;var b=Math.ceil(Q/2);Q=this._sortByTabIndex(A.slice(0,b));A=this._sortByTabIndex(A.slice(b));return this._mergeSortByTabIndex(Q,A)};
_.d._mergeSortByTabIndex=function(A,Q){for(var b=[];A.length>0&&Q.length>0;)this._hasLowerTabOrder(A[0],Q[0])?b.push(Q.shift()):b.push(A.shift());return b.concat(A,Q)};
_.d._hasLowerTabOrder=function(A,Q){A=Math.max(A.tabIndex,0);Q=Math.max(Q.tabIndex,0);return A===0||Q===0?Q>A:A>Q};
var vB1=new WPy;var xlN;var ccM;_.gn({_template:function(){if(ccM!==void 0)return ccM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;xlN===void 0&&(xlN=document.createElement("template"));var f=xlN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return ccM=A},
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&&_.oi(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.oi(this.parentNode).removeChild(this)},
_onTransitionend:function(A){A&&A.target===this&&this.complete()},
_openedChanged:function(A){A?this.prepare():(A=window.getComputedStyle(this),A.transitionDuration!=="0s"&&A.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 yA=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ec(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)};
yA.prototype._bringOverlayAtIndexToFront=function(A){var Q=this._overlays[A];if(Q){var b=this._overlays.length-1,f=this._overlays[b];f&&this._shouldBeBehindOverlay(Q,f)&&b--;if(!(A>=b)){f=Math.max(this._getZ(_.zS1(this)),this._minimumZ);for(this._getZ(Q)<=f&&this._applyOverlayZ(Q,f);A<b;)this._overlays[A]=this._overlays[A+1],A++;this._overlays[b]=Q}}};
yA.prototype.addOverlay=function(A){var Q=this._overlays.indexOf(A);if(Q>=0)this._bringOverlayAtIndexToFront(Q);else{Q=this._overlays.length;var b=this._overlays[Q-1],f=Math.max(this._getZ(b),this._minimumZ),a=this._getZ(A);b&&this._shouldBeBehindOverlay(A,b)&&(this._applyOverlayZ(b,f),Q--,f=Math.max(this._getZ(this._overlays[Q-1]),this._minimumZ));a<=f&&this._applyOverlayZ(A,f);this._overlays.splice(Q,0,A)}this.trackBackdrop()};
yA.prototype.removeOverlay=function(A){A=this._overlays.indexOf(A);A!==-1&&(this._overlays.splice(A,1),this.trackBackdrop())};
_.zS1=function(A){return A._overlays[A._overlays.length-1]};
_.d=yA.prototype;_.d.trackBackdrop=function(){var A=this._overlayWithBackdrop();if(A||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(A)-1,this.backdropElement.opened=!!A,this.backdropElement.prepare()};
_.d._overlayWithBackdrop=function(){for(var A=this._overlays.length-1;A>=0;A--)if(this._overlays[A].withBackdrop)return this._overlays[A]};
_.d._getZ=function(A){var Q=this._minimumZ;if(A){var b,f,a=Number(((b=A.hostElement)!=null?b:A).style.zIndex||window.getComputedStyle((f=A.hostElement)!=null?f:A).zIndex);a===a&&(Q=a)}return Q};
_.d._setZ=function(A,Q){var b;((b=A.hostElement)!=null?b:A).style.zIndex=Q};
_.d._applyOverlayZ=function(A,Q){this._setZ(A,Q+2)};
_.d._overlayInPath=function(A){A=A||[];for(var Q=0;Q<A.length;Q++){var b=void 0;if(((b=A[Q].polymerController)!=null?b:A[Q])._manager===this)return A[Q]}};
_.d._onCaptureClick=function(A){var Q=this._overlays.length-1;if(Q!==-1)for(var b=_.oi(A).path,f,a;(f=this._overlays[Q])&&this._overlayInPath(b)!==((a=f.hostElement)!=null?a:f);)if(f._onCaptureClick(A),f.allowClickThrough)Q--;else break};
_.d._onCaptureFocus=function(A){var Q=_.zS1(this);Q&&Q._onCaptureFocus(A)};
_.d._onCaptureKeyDown=function(A){var Q=_.zS1(this);Q&&(_.Hp.keyboardEventMatchesKeys(A,"esc")?Q._onCaptureEsc(A):_.Hp.keyboardEventMatchesKeys(A,"tab")&&Q._onCaptureTab(A))};
_.d._shouldBeBehindOverlay=function(A,Q){return!A.alwaysOnTop&&Q.alwaysOnTop&&!Q.contains(A)};
_.Qr.Object.defineProperties(yA.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 A=document.activeElement;A&&A instanceof Element!==!1||(A=document.body);for(;A.root&&_.oi(A.root).activeElement;)A=_.oi(A.root).activeElement;return A}}});
_.Yt=new yA;var HoJ=0,C1e=0,qfJ=null,oHe=[],tx=["wheel","mousewheel","DOMMouseScroll"],tpX;_.K("web_no_lock_on_touchstart_killswitch")&&(tx.push("touchstart"),tx.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;_.DO={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:_.Yt},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var A;return this._focusedChild||_.oi((A=this.hostElement)!=null?A:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var A;return _.EBy((A=this.hostElement)!=null?A: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 A;this._observer=_.oi((A=this.hostElement)!=null?A:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var A;_.oi((A=this.hostElement)!=null?A:this).unobserveNodes(this._observer)}this._observer=null;for(var Q in this.__rafs)this.__rafs[Q]!==null&&cancelAnimationFrame(this.__rafs[Q]);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(A){this.fire("iron-overlay-canceled",A,{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 A;((A=this.hostElement)!=null?A:this).style.outline="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display="none"}},
_openedChanged:function(A){if(A){var Q;((Q=this.hostElement)!=null?Q:this).removeAttribute("aria-hidden")}else{var b;((b=this.hostElement)!=null?b: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 A;if(this.withBackdrop&&!((A=this.hostElement)!=null?A:this).hasAttribute("tabindex")){var Q;((Q=this.hostElement)!=null?Q:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var b;((b=this.hostElement)!=null?b: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 A;((A=this.hostElement)!=null?A:this).style.display="none";var Q;((Q=this.hostElement)!=null?Q:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var A,Q;((A=this.hostElement)!=null?A:this).style.transition=((Q=this.hostElement)!=null?Q:this).style.webkitTransition="none";var b,f;((b=this.hostElement)!=null?b:this).style.transform=((f=this.hostElement)!=null?f:this).style.webkitTransform="none";var a;((a=this.hostElement)!=null?a:this).style.display=""},
_finishPositioning:function(){var A;((A=this.hostElement)!=null?A:this).style.display="none";this.scrollTop=this.scrollTop;var Q,b;((Q=this.hostElement)!=null?Q:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="";var f,a;((f=this.hostElement)!=null?f:this).style.transform=((a=this.hostElement)!=null?a:this).style.webkitTransform="";var T;((T=this.hostElement)!=null?T:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var A=this._manager.deepActiveElement,Q;if(!(Q=A===document.body))a:{for(;A;A=A.assignedSlot||A.parentNode||A.host)if(A===this){Q=!0;break a}Q=!1}Q&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(A){this.noCancelOnOutsideClick||this.cancel(A)},
_onCaptureFocus:function(A){if(this.withBackdrop){var Q=_.oi(A).path;Q.indexOf(this)===-1?(A.stopPropagation(),this._applyFocus()):this._focusedChild=Q[0]}},
_onCaptureEsc:function(A){this.noCancelOnEscKey||this.cancel(A)},
_onCaptureTab:function(A){if(this.withBackdrop){this.__ensureFirstLastFocusables();var Q=A.shiftKey,b=Q?this.__firstFocusableNode:this.__lastFocusableNode;Q=Q?this.__lastFocusableNode:this.__firstFocusableNode;if(b===Q)b=!0;else{var f=this._manager.deepActiveElement;b=f===b||f===this}b&&(A.preventDefault(),this._focusedChild=Q,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 A=this._focusableNodes;this.__firstFocusableNode=A[0];this.__lastFocusableNode=A[A.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(A,Q){var b=this.__rafs;b[A]!==null&&cancelAnimationFrame(b[A]);b[A]=requestAnimationFrame(function(){b[A]=null;Q.call(this)}.bind(this))},
__updateScrollObservers:function(A,Q,b){A&&Q&&this.__isValidScrollAction(b)?(b==="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),tpX=_._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()):(A=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),A!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(A,1),tpX=_._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(ct)for(var A=this;A;)A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&A.host&&this.__rootNodes.push(A),A=A.host||A.assignedSlot||A.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(Q){Q.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(A){A.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(A){return A==="lock"||A==="refit"||A==="cancel"},
__onCaptureScroll:function(A){if(!(this.__isAnimating||_.oi(A).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(A)}},
__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)}};
_.$t=[eSp,_.eI,_.DO];_.gn({_template:function(){if(RSy!==void 0)return RSy;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;jb1===void 0&&(jb1=document.createElement("template"));var f=jb1;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return RSy=A},
is:"tp-yt-iron-dropdown",behaviors:[_.Cb,_.Hp,_.$t,nsr],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 A=_.oi(this.$.content).getDistributedNodes(),Q=0,b=A.length;Q<b;Q++)if(A[Q].nodeType===Node.ELEMENT_NODE)return A[Q]},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(),_.DO._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.DO._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.DO._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var A=this.containedElement,Q=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),b=0;b<Q.length;b++)Q[b].node=A;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(A){this._readied&&(A?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var A=this.focusTarget||this.containedElement;A&&this.opened&&!this.noAutoFocus?A.focus():_.DO._applyFocus.apply(this,arguments)}});var wi1;var uGr;/*

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 ZSr=new _.r7({type:"iconset"});
_.gn({_template:function(){if(uGr!==void 0)return uGr;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;wi1===void 0&&(wi1=document.createElement("template"));
var f=wi1;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return uGr=A},
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(A){A=(A||"").split(":");this._iconName=A.pop();this._iconsetName=A.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&&_.oi(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=ZSr.byKey(this._iconsetName)){var A=this._iconset.applyIcon(this,this._iconName,this.theme);A&&A.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,_.oi(this.root).appendChild(this._img)}});var yc1;var YsN;_.gn({_template:function(){if(YsN!==void 0)return YsN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;yc1===void 0&&(yc1=document.createElement("template"));var f=yc1;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return YsN=A},
is:"tp-yt-iron-input",behaviors:[_.RJ],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(){_.ur.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.oi(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.oi(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 A=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":A=/[0-9.,e-]/}return A},_bindValueChanged:function(A,Q){Q&&(A===void 0?Q.value=null:A!==Q.value&&(this.inputElement.value=A),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:A}))},
_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(A){var Q=A.keyCode==19||A.keyCode==20||A.keyCode==45||A.keyCode==46||A.keyCode==144||A.keyCode==145||A.keyCode>32&&A.keyCode<41||A.keyCode>111&&A.keyCode<124;return!(A.keyCode==8||A.keyCode==9||A.keyCode==13||A.keyCode==27)&&!(A.charCode==0&&Q)},
_onKeypress:function(A){if(this.allowedPattern||this.inputElement.type==="number"){var Q=this._patternRegExp;if(Q&&!(A.metaKey||A.ctrlKey||A.altKey)){this._patternAlreadyChecked=!0;var b=String.fromCharCode(A.charCode);this._isPrintable(A)&&!Q.test(b)&&(A.preventDefault(),this._announceInvalidCharacter("Invalid character "+b+" not entered."))}}},
_checkPatternValidity:function(){var A=this._patternRegExp;if(!A)return!0;for(var Q=0;Q<this.inputElement.value.length;Q++)if(!A.test(this.inputElement.value[Q]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var A=this.inputElement.checkValidity();A&&(this.required&&this.bindValue===""?A=!1:this.hasValidator()&&(A=_.RJ.validate.call(this,this.bindValue)));this.invalid=!A;this.fire("iron-input-validate");return A},
_announceInvalidCharacter:function(A){this.fire("iron-announce",{text:A})},
_computeValue:function(A){return A}});var DlW;var $lp;var NL$=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),sb9=NL$&&NL$[1]>=8;
_.gn({_template:function(){if($lp!==void 0)return $lp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;DlW===void 0&&(DlW=document.createElement("template"));var f=DlW;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return $lp=A},
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:[A_W,_.eI,_.O6Y,B6L],_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 _.oi(_.oi(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var A=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,A-this._physicalCount)},set _virtualStart(A){A=this._clamp(A,0,this._maxVirtualStart);this.grid&&(A-=A%this._itemsPerRow);this._virtualStartVal=A},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(A){A%=this._physicalCount;A<0&&(A=this._physicalCount+A);this.grid&&(A-=A%this._itemsPerRow);this._physicalStartVal=A},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(A){this._physicalCountVal=A},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 A=this._firstVisibleIndexVal;if(A==null){var Q=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
A=this._iterateItems(function(b,f){Q+=this._getPhysicalSizeIncrement(b);if(Q>this._scrollPosition)return this.grid?f-f%this._itemsPerRow:f;if(this.grid&&this._virtualCount-1===f)return f-f%this._itemsPerRow})||0}return A},
get lastVisibleIndex(){var A=this._lastVisibleIndexVal;if(A==null){if(this.grid)A=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var Q=this._physicalTop+this._scrollOffset;this._iterateItems(function(b,f){Q<this._scrollBottom&&(A=f);Q+=this._getPhysicalSizeIncrement(b)})}this._lastVisibleIndexVal=A}return A},
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,_.RP);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(A){this.style.webkitOverflowScrolling=A===this?"touch":"";this.style.overflowY=A===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.RP)},
updateViewportBoundaries:function(){var A=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(A["padding-top"],10);this._isRTL=A.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var A=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),Q=A-this._scrollPosition,b=Q>=0;this._scrollPosition=A;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(Q)>this._physicalSize&&this._physicalSize>0?(Q-=this._scrollOffset,b=Math.round(Q/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=b,this._physicalStart+=b,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(A=this._getReusables(b),b?(this._physicalTop=A.physicalTop,this._virtualStart+=A.indexes.length,this._physicalStart+=A.indexes.length):(this._virtualStart=this._virtualStart-A.indexes.length,this._physicalStart=this._physicalStart-A.indexes.length),this._update(A.indexes,b?null:A.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),vt))},
_getReusables:function(A){var Q=[],b=this._hiddenContentSize*this._ratio,f=this._virtualStart,a=this._virtualEnd,T=this._physicalCount,G=this._physicalTop+this._scrollOffset;var p=this._physicalBottom+this._scrollOffset;var P=this._scrollPosition,U=this._scrollBottom;if(A){var L=this._physicalStart;p=P-G}else L=this._physicalEnd,p-=U;for(;;){var M=this._getPhysicalSizeIncrement(L);p-=M;if(Q.length>=T||p<=b)break;if(A){if(a+Q.length+1>=this._virtualCount)break;if(G+M>=P-this._scrollOffset)break;Q.push(L);
G+=M;L=(L+1)%T}else{if(f-Q.length<=0)break;if(G+this._physicalSize-M<=U)break;Q.push(L);G-=M;L=L===0?T-1:L-1}}return{indexes:Q,physicalTop:G-this._scrollOffset}},
_update:function(A,Q){if(!(A&&A.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(A);this._updateMetrics(A);if(Q)for(;Q.length;)A=Q.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(A);this._positionItems();this._updateScrollerSize()}},
_createPool:function(A){this._ensureTemplatized();var Q,b=Array(A);for(Q=0;Q<A;Q++){var f=this.stamp(null);b[Q]=f.root.querySelector("*");this._itemsParent.appendChild(f.root)}return b},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(A){A=this._clamp(this._physicalCount+A,3,this._virtualCount-this._virtualStart);A=this._convertIndexToCompleteRow(A);if(this.grid){var Q=A%this._itemsPerRow;Q&&A-Q<=this._physicalCount&&(A+=this._itemsPerRow);A-=Q}A-=this._physicalCount;Q=Math.round(this._physicalCount*.5);if(!(A<0)){if(A>0){Q=window.performance.now();[].push.apply(this._physicalItems,this._createPool(A));for(var b=0;b<A;b++)this._physicalSizes.push(0);this._physicalCount+=A;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=A);this._update();this._templateCost=(window.performance.now()-Q)/A;Q=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||Q===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,Q)),u5$):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,Q),vt))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var A=this._getReusables(!0);this._physicalTop=A.physicalTop;this._virtualStart+=A.indexes.length;this._physicalStart+=A.indexes.length;this._update(A.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 A={__key__:!0};A[this.as]=!0;A[this.indexAs]=!0;A[this.selectedAs]=!0;A.tabIndex=!0;this._instanceProps=A;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(A,Q){typeof Q!=="undefined"&&(this.notifyResize(),_.Kn(),A&&this._updateGridMetrics())},
_itemsChanged:function(A){if(A.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,
_.RP);else if(A.path==="items.splices"){this._adjustVirtualIndex(A.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(A.value.indexSplices.some(function(b){return b.addedCount>0||b.removed.length>0})){var Q=this._getActiveElement();
this.contains(Q)&&Q.blur()}A=A.value.indexSplices.some(function(b){return b.index+b.addedCount>=this._virtualStart&&b.index<=this._virtualEnd},this);
this._isClientFull()&&!A||this._debounce("_render",this._render,_.RP)}else A.path!=="items.length"&&this._forwardItemPath(A.path,A.value)},
_forwardItemPath:function(A,Q){A=A.slice(6);var b=A.indexOf(".");b===-1&&(b=A.length);var f,a=this.modelForElement(this._offscreenFocusedItem),T=parseInt(A.substring(0,b),10);if(f=this._isIndexRendered(T)){var G=this._getPhysicalIndex(T);var p=this.modelForElement(this._physicalItems[G])}else a&&(p=a);p&&p[this.indexAs]===T&&(A=A.substring(b+1),A=this.as+(A?"."+A:""),p._setPendingPropertyOrPath(A,Q,!1,!0),p._flushProperties&&p._flushProperties(),f&&(this._updateMetrics([G]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(A){A.forEach(function(Q){Q.removed.forEach(this._removeItem,this);Q.index<this._virtualStart&&(Q=Math.max(Q.addedCount-Q.removed.length,Q.index-this._virtualStart),this._virtualStart+=Q,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=Q))},this)},
_removeItem:function(A){this.$.selector.deselect(A);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===A&&this._removeFocusedItem()},
_iterateItems:function(A,Q){var b,f;if(arguments.length===2&&Q)for(f=0;f<Q.length;f++){var a=Q[f];var T=this._computeVidx(a);if((b=A.call(this,a,T))!=null)return b}else{a=this._physicalStart;for(T=this._virtualStart;a<this._physicalCount;a++,T++)if((b=A.call(this,a,T))!=null)return b;for(a=0;a<this._physicalStart;a++,T++)if((b=A.call(this,a,T))!=null)return b}},
_computeVidx:function(A){return A>=this._physicalStart?this._virtualStart+(A-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+A},
_assignModels:function(A){this._iterateItems(function(Q,b){var f=this._physicalItems[Q],a=this.items&&this.items[b];if(a!=null){var T=this.modelForElement(f);T.__key__=null;this._forwardProperty(T,this.as,a);this._forwardProperty(T,this.selectedAs,this.$.selector.isSelected(a));this._forwardProperty(T,this.indexAs,b);this._forwardProperty(T,"tabIndex",this._focusedVirtualIndex===b?0:-1);this._physicalIndexForKey[T.__key__]=Q;T._flushProperties&&T._flushProperties(!0);f.removeAttribute("hidden")}else f.setAttribute("hidden",
"")},A)},
_updateMetrics:function(A){_.Kn();var Q=0,b=0,f=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems(function(T){b+=this._physicalSizes[T];this._physicalSizes[T]=this._physicalItems[T].offsetHeight;Q+=this._physicalSizes[T];this._physicalAverageCount+=this._physicalSizes[T]?1:0},A);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(b=this._itemsPerRow===1?b:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+Q-b,this._itemsPerRow=1);this._physicalAverageCount!==f&&(this._physicalAverage=Math.round((a*f+Q)/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 A=this._physicalTop;if(this.grid){var Q=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(b,f){var a=Math.floor(f%this._itemsPerRow*this._itemWidth+Q);this._isRTL&&(a*=-1);this.translate3d(a+"px",A+"px",0,this._physicalItems[b]);this._shouldRenderNextRow(f)&&(A+=this._rowHeight)})}else this._iterateItems(function(b){this.translate3d(0,A+"px",0,this._physicalItems[b]);
A+=this._physicalSizes[b]})},
_getPhysicalSizeIncrement:function(A){return this.grid?this._computeVidx(A)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[A]},
_shouldRenderNextRow:function(A){return A%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var A=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(A!==0){this._physicalTop=this._physicalTop-A;var Q=this._scrollPosition;!sb9&&Q>0&&this._resetScrollPosition(Q-A)}},
_resetScrollPosition:function(A){this.scrollTarget&&A>=0&&(this._scrollPosition=this._scrollTop=A)},
_updateScrollerSize:function(A){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((A=(A=(A=A||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(A){return this.scrollToIndex(this.items.indexOf(A))},
scrollToIndex:function(A){if(!(typeof A!=="number"||A<0||A>this.items.length-1)&&(_.Kn(),this._physicalCount!==0)){A=this._clamp(A,0,this._virtualCount-1);if(!this._isIndexRendered(A)||A>=this._maxVirtualStart)this._virtualStart=this.grid?A-this._itemsPerRow*2:A-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var Q=this._physicalStart,b=this._virtualStart,f=0,a=this._hiddenContentSize;b<A&&
f<=a;)f+=this._getPhysicalSizeIncrement(Q),Q=(Q+1)%this._physicalCount,b++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+f);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)},_.RP)},
selectItem:function(A){return this.selectIndex(this.items.indexOf(A))},
selectIndex:function(A){if(!(A<0||A>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(A)){var Q=this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)]);Q&&(Q[this.selectedAs]=!0);this.updateSizeForIndex(A)}this.$.selector.selectIndex(A)}},
deselectItem:function(A){return this.deselectIndex(this.items.indexOf(A))},
deselectIndex:function(A){A<0||A>=this._virtualCount||(this._isIndexRendered(A)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)])[this.selectedAs]=!1,this.updateSizeForIndex(A)),this.$.selector.deselectIndex(A))},
toggleSelectionForItem:function(A){return this.toggleSelectionForIndex(this.items.indexOf(A))},
toggleSelectionForIndex:function(A){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(A):this.$.selector.isSelected(this.items[A]))?this.deselectIndex(A):this.selectIndex(A)},
clearSelection:function(){this._iterateItems(function(A){this.modelForElement(this._physicalItems[A])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(A){(A?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(A){var Q=this.modelForElement(A.target);if(Q){var b=_.oi(A).path[0];A=this._getActiveElement();var f=this._physicalItems[this._getPhysicalIndex(Q[this.indexAs])];if(b.localName!=="input"&&b.localName!=="button"&&b.localName!=="select"){b=Q.tabIndex;Q.tabIndex=-100;var a=A?A.tabIndex:-1;Q.tabIndex=b;A&&f!==A&&f.contains(A)&&a!==-100||this.toggleSelectionForItem(Q[this.as])}}},
_multiSelectionChanged:function(A){this.clearSelection();this.$.selector.multi=A},
updateSizeForItem:function(A){return this.updateSizeForIndex(this.items.indexOf(A))},
updateSizeForIndex:function(A){if(!this._isIndexRendered(A))return null;this._updateMetrics([this._getPhysicalIndex(A)]);this._positionItems();return null},
_manageFocus:function(){var A=this._focusedVirtualIndex;A>=0&&A<this._virtualCount?this._isIndexRendered(A)?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(A){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(A/this._itemsPerRow)*this._itemsPerRow:A},
_isIndexRendered:function(A){return A>=this._virtualStart&&A<=this._virtualEnd},
_isIndexVisible:function(A){return A>=this.firstVisibleIndex&&A<=this.lastVisibleIndex},
_getPhysicalIndex:function(A){return(this._physicalStart+(A-this._virtualStart))%this._physicalCount},
focusItem:function(A){this._focusPhysicalItem(A)},
_focusPhysicalItem:function(A){if(!(A<0||A>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(A)||this.scrollToIndex(A);var Q=this._physicalItems[this._getPhysicalIndex(A)],b=this.modelForElement(Q),f;b.tabIndex=-100;Q.tabIndex===-100&&(f=Q);f||(f=_.oi(Q).querySelector('[tabindex="-100"]'));b.tabIndex=0;this._focusedVirtualIndex=A;f&&f.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 A=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var Q=this.stamp(null);this._focusBackfillItem=Q.root.querySelector("*");this._itemsParent.appendChild(Q.root)}this._offscreenFocusedItem=this._physicalItems[A];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[A]=this._focusBackfillItem;this._focusedPhysicalIndex=A;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var A=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),Q=this._physicalItems[A];if(Q){var b=this.modelForElement(Q),f=this.modelForElement(this._offscreenFocusedItem);b[this.as]===f[this.as]?(this._focusBackfillItem=Q,b.tabIndex=-1,this._physicalItems[A]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(A){A=this.modelForElement(A.target);var Q=this.modelForElement(this._focusedItem),b=this._offscreenFocusedItem!==null,f=this._focusedVirtualIndex;A&&(Q===A?this._isIndexVisible(f)||this.scrollToIndex(f):(this._restoreFocusedItem(),Q&&(Q.tabIndex=-1),A.tabIndex=0,this._focusedVirtualIndex=f=A[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(f),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],b&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(A){switch(A.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&A.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&&A.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(A)}},
_clamp:function(A,Q,b){return Math.min(b,Math.max(Q,A))},
_debounce:function(A,Q,b){this._debouncers=this._debouncers||{};this._debouncers[A]=_.Sb(this._debouncers[A],b,Q.bind(this));_.U0(this._debouncers[A])},
_forwardProperty:function(A,Q,b){A._setPendingProperty(Q,b)},
_forwardHostPropV2:function(A,Q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&this.modelForElement(b).forwardHostProp(A,Q)},this)},
_notifyInstancePropV2:function(A,Q,b){WP9(this.as,Q)&&(A=A[this.indexAs],Q==this.as&&(this.items[A]=b),this.notifyPath(MH(this.as,"items."+A,Q),b))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(A,Q,b){Q.indexOf(this.as+".")===0&&this.notifyPath("items."+A.__key__+"."+Q.slice(this.as.length+1),b)},
_forwardParentPath:function(A,Q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&this.modelForElement(b).notifyPath(A,Q)},this)},
_forwardParentProp:function(A,Q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&(this.modelForElement(b)[A]=Q)},this)},
_getActiveElement:function(){var A=this._itemsParent.node.domHost;return _.oi(A?A.root:document).activeElement},
_scrollTargetChanged:function(A,Q){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(Q)if(A==="document")this.scrollTarget=this._doc;else if(typeof A==="string"){var b,f;this.scrollTarget=(Q=(f=(b=this.domHost)==null?void 0:b.polymerController)!=null?f:this.domHost)&&Q.$?Q.$[A]:_.oi(this.ownerDocument).querySelector("#"+A)}else this._isValidScrollTarget()&&(this._oldScrollTarget=A,this._toggleScrollListener(this._shouldHaveListener,A))}});var mlx;var Abj;var Qcr=function(A,Q,b,f){A-=b;Q-=f;return Math.sqrt(A*A+Q*Q)},b7x=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
rPi.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var jjy=function(A){A.maxRadius=0;A.mouseDownStart=0;A.mouseUpStart=0;A.xStart=0;A.yStart=0;A.xEnd=0;A.yEnd=0;A.containerMetrics=new rPi(A.element)};
R9F.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var A=b7x()-this.mouseDownStart;this.mouseUpStart&&(A-=this.mouseUpElapsed);return A},get mouseUpElapsed(){return this.mouseUpStart?b7x()-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 A=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(A*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-A/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var A=this.radius/(this.containerMetrics.size/2);var Q=this.xNow-this.containerMetrics.width/2;var b=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+Q+"px, "+b+"px)";this.waveContainer.style.transform="translate3d("+Q+"px, "+b+"px, 0)";this.wave.style.webkitTransform="scale("+A+","+A+")";this.wave.style.transform="scale3d("+A+","+A+",1)"},
downAction:function(A){var Q=this.containerMetrics.width/2,b=this.containerMetrics.height/2;jjy(this);this.mouseDownStart=b7x();this.center?(this.xStart=Q,this.yStart=b):(this.xStart=A?A.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=A?A.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=Q,this.yEnd=b);A=this.containerMetrics;Q=this.xStart;b=this.yStart;this.maxRadius=Math.max(Qcr(Q,b,0,0),Qcr(Q,b,
A.width,0),Qcr(Q,b,0,A.height),Qcr(Q,b,A.width,A.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=b7x())},
remove:function(){_.oi(_.oi(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.gn({_template:function(){if(Abj!==void 0)return Abj;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;mlx===void 0&&(mlx=document.createElement("template"));var f=mlx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Abj=A},
is:"tp-yt-paper-ripple",behaviors:[_.Hp],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(){_.oi(this).parentNode.nodeType==11?this.keyEventTarget=_.oi(this).getOwnerRoot().host:this.keyEventTarget=_.oi(this).parentNode;var A=this.keyEventTarget;this.listen(A,"up","uiUpAction");this.listen(A,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(A){A.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var A=0;A<this.ripples.length;++A)if(!this.ripples[A].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(A){this.noink||this.downAction(A)},
downAction:function(A){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(A),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(A){this.noink||this.upAction(A)},
upAction:function(A){this.holdDown||(this.ripples.forEach(function(Q){Q.upAction(A)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var A=0;A<this.ripples.length;++A){var Q=this.ripples[A];Q.isOpacityFullyDecayed&&!Q.isRestingAtMaxRadius&&this.removeRipple(Q)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var A=new R9F(this);_.oi(this.$.waves).appendChild(A.waveContainer);this.$.background.style.backgroundColor=A.color;this.ripples.push(A);this._setAnimating(!0);return A},
removeRipple:function(A){var Q=this.ripples.indexOf(A);Q<0||(this.ripples.splice(Q,1),A.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var A;for(A=0;A<this.ripples.length;++A){var Q=this.ripples[A];Q.draw();this.$.background.style.opacity=Q.outerOpacity;Q.isOpacityFullyDecayed&&!Q.isRestingAtMaxRadius&&this.removeRipple(Q)}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(A,Q){Q!==void 0&&(A?this.downAction():this.upAction())}});var NX={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(A){qX._downHandler.call(this,A);this.pressed&&this.ensureRipple(A)},
ensureRipple:function(A){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var Q=this._rippleContainer||this.root;Q&&_.oi(Q).appendChild(this._ripple);if(A){Q=_.oi(this._rippleContainer||this);var b=_.oi(A).rootTarget;Q.deepContains(b)&&this._ripple.uiDownAction(A)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(A){this.hasRipple()&&(this._ripple.noink=A)}};var fN1={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 A=1;this.disabled?A=0:this.active||this.pressed?A=4:this.receivedFocusFromKeyboard&&(A=3);this._setElevation(A)},
_computeKeyboardClass:function(A){this.toggleClass("keyboard-focus",A)},
_spaceKeyDownHandler:function(A){qX._spaceKeyDownHandler.call(this,A);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(A){qX._spaceKeyUpHandler.call(this,A);this.hasRipple()&&this._ripple.uiUpAction()}},aNM=[PJN,
_.Cb,NX,fN1];_.TyL={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=A)},
_createRipple:function(){var A=NX._createRipple();A.id="ink";A.setAttribute("center","");A.classList.add("circle");return A}};
_.drN=[PJN,_.Cb,NX,_.TyL];_.FUp=[_.drN,UIM,{_checkedChanged:function(){ShW._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){NX._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Gbv;var Byv;var pZL=function(){};
_.d=pZL.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._buttonStateChanged=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._createRipple=function(){};
_.d._noinkChanged=function(){};
_.d._computeKeyboardClass=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
_.d._setElevation=function(){};
pZL=_.gn({_template:function(){if(Byv!==void 0)return Byv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;Gbv===void 0&&(Gbv=document.createElement("template"));var f=Gbv;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Byv=A},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[aNM],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?fN1._calculateElevation.apply(this):this._setElevation(0)}});var P6j;var XZY;var SCW={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(A){_.K("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(A)},
_onDialogClickWrapped:function(A){_.K("dialog_behavior_no_tap_killswitch")||this._onDialogClick(A)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(A,Q){Q&&(A?(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(A){if(A){var Q;((Q=this.hostElement)!=null?Q:this).setAttribute("aria-modal","true")}else{var b;((b=this.hostElement)!=null?b:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(A){this.closingReason=this.closingReason||{};this.closingReason.confirmed=A},
_onDialogClick:function(A){for(var Q=_.oi(A).path,b=0,f,a=Q.indexOf((f=this.hostElement)!=null?f:this);b<a;b++)if(f=Q[b],f.hasAttribute&&(f.hasAttribute("dialog-dismiss")||f.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(f.hasAttribute("dialog-confirm"));this.close();A.stopPropagation();break}}},UrL=[_.$t,
SCW];var LU9=document.createElement("template");_.k(LU9,'<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(LU9.content);var MOx=document.createElement("template");_.k(MOx,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(MOx.content);_.gn({_template:function(){if(XZY!==void 0)return XZY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;P6j===void 0&&(P6j=document.createElement("template"));var f=P6j;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return XZY=A},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[UrL,nsr],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 lNY;var KUy;_.gn({_template:function(){if(KUy!==void 0)return KUy;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;lNY===void 0&&(lNY=document.createElement("template"));var f=lNY;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return KUy=A},
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 A,Q,b;if(((A=window.ShadyDOM)==null?void 0:A.noPatch)!==!0&&((Q=window.ShadyDOM)==null?void 0:Q.noPatch)!=="on-demand"||((b=this.__shady_parentNode)==null?void 0:b.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(SCW)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var i7y=_.sC(['<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>']),JbY=_.Uep(i7y);JbY.setAttribute("style","display: none;");document.head.appendChild(JbY.content);var VO9;var O7K;var nGj;var kb$;_.gn({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[h7],configure:function(A){var Q=A.node,b=Q.getBoundingClientRect().height;return this._effect=new KeyframeEffect(Q,[{height:b/2+"px"},{height:b+"px"}],this.timingFromConfig(A))}});
_.gn({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[h7],configure:function(A){var Q=A.node,b=Q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Q,[{width:b/2+"px"},{width:b+"px"}],this.timingFromConfig(A))}});
_.gn({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[h7],configure:function(A){var Q=A.node,b=Q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(Q,[{width:b+"px"},{width:b-b/20+"px"}],this.timingFromConfig(A))}});
_.gn({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[h7],configure:function(A){var Q=A.node,b=Q.getBoundingClientRect().height;this.setPrefixedProperty(Q,"transformOrigin","0 0");return this._effect=new KeyframeEffect(Q,[{height:b+"px",transform:"translateY(0)"},{height:b/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(A))}});var m6={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},INj=function(){};
_.d=INj.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._focusBlurHandler=function(){};
_.d._changedControlState=function(){};
_.d._setFocused=function(){};
INj=_.gn({_template:function(){if(kb$!==void 0)return kb$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;nGj===void 0&&(nGj=document.createElement("template"));var f=nGj;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return kb$=A},
is:"tp-yt-paper-menu-button",behaviors:[_.Hp,_.Cb],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:m6.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:m6.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:m6.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 A=_.oi(this.$.content).getDistributedNodes(),Q=0,b=A.length;Q<b;Q++)if(A[Q].nodeType===Node.ELEMENT_NODE)return A[Q]},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(A,Q){A?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):Q!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(A){_.Cb._disabledChanged.apply(this,arguments);A&&this.opened&&this.close()},
__onIronOverlayCanceled:function(A){var Q=this.$.trigger;_.oi(A.detail).path.indexOf(Q)>-1&&A.preventDefault()}});
Object.keys(m6).forEach(function(A){INj[A]=m6[A]});var H7p=_.oJ.IronButtonState,C6W=(0,_.Cn)(HTMLElement);
_.gn({_template:function(){if(O7K!==void 0)return O7K;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;VO9===void 0&&(VO9=document.createElement("template"));var f=VO9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return O7K=A},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[H7p,_.Cb,NX,_.t7,_.RJ],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(A){var Q=(0,_.Vu)(this);Q.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:A});Q.shadowRoot.appendChild(A);return C6W.prototype._attachDom.call(this,A)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.oi(this.$.content).getDistributedNodes(),Q=0,b=A.length;Q<b;Q++)if(A[Q].nodeType===Node.ELEMENT_NODE)return A[Q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var Q="";A?Q=A.label||A.getAttribute("label")||A.textContent.trim():Q="";this.value=Q;this._setSelectedItemLabel(Q)},
_computeMenuVerticalOffset:function(A,Q){return Q?Q:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",Q=this.contentElement;Q&&Q.setAttribute("aria-expanded",A)},
_computeLabelClass:function(A,Q,b){var f="label";if(A)b&&(f+=" label-is-hidden");else if(b||Q)f+=" label-is-floating";return f},
_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 qC9;var oGL;_.gn({is:"tp-yt-paper-icon-button",_template:function(){if(oGL!==void 0)return oGL;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;qC9===void 0&&(qC9=document.createElement("template"));var f=qC9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return oGL=A},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.drN],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(A,Q){var b=this.getAttribute("aria-label");b&&Q!=b||this.setAttribute("aria-label",A)}});var tOM;var rbx;_.Ah=[PJN,_.Cb,{hostAttributes:{role:"option",tabindex:"0"}}];_.gn({_template:function(){if(rbx!==void 0)return rbx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;tOM===void 0&&(tOM=document.createElement("template"));var f=tOM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return rbx=A},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Ah]});var jcv;var RiW;var gG9={attached:function(){this.fire("addon-attached")},
update:function(){}};var ei$=1,hi9=1,WUM=1,vGW=[_.Cb,_.Hp,{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();!db&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(A,Q){A?A=A+" "+Q:A=Q;return A},
_onAddonAttached:function(A){A=_.oi(A).rootTarget;if(A.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,A.id);else{var Q="paper-input-add-on-"+hi9++;A.id=Q;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,Q)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(A){_.Cb._focusBlurHandler.call(this,A);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var A=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",A);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(A){try{var Q=this.inputElement.selectionStart;this.value=A;this.inputElement.selectionStart=Q;this.inputElement.selectionEnd=Q}catch(b){this.value=A}},
_computeAlwaysFloatLabel:function(A,Q){return Q||A},
_updateAriaLabelledBy:function(){var A=_.oi(this.root).querySelector("label");if(A){if(A.id)var Q=A.id;else Q="paper-input-label-"+ei$++,A.id=Q;this._ariaLabelledBy=Q}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+WUM++)},
_onChange:function(A){this.shadowRoot&&this.fire(A.type,{sourceEvent:A},{node:this,bubbles:A.bubbles,cancelable:A.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var A=document.activeElement;A instanceof HTMLElement&&A!==document.body&&A!==document.documentElement||this._focusableElement.focus()}}}];var EGy;var xr$;_.gn({_template:function(){if(xr$!==void 0)return xr$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;EGy===void 0&&(EGy=document.createElement("template"));var f=EGy;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return xr$=A},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[gG9],properties:{_charCounterStr:{type:String,value:"0"}},update:function(A){if(A.inputElement){A.value=A.value||"";var Q=A.value.toString().length.toString();A.inputElement.hasAttribute("maxlength")&&(Q+="/"+A.inputElement.getAttribute("maxlength"));this._charCounterStr=Q}}});var cbM;var ziy;_.gn({_template:function(){if(ziy!==void 0)return ziy;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;cbM===void 0&&(cbM=document.createElement("template"));var f=cbM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return ziy=A},
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 Pt(this.attrForValue)},get _inputElement(){return _.oi(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(A){this._addons||(this._addons=[]);A=A.target;this._addons.indexOf(A)===-1&&(this._addons.push(A),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(A){this._handleValueAndAutoValidate(A.target)},
_onValueChanged:function(A){var Q=A.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,Q.value===void 0||Q.value===""))return;this._handleValueAndAutoValidate(A.target)},
_handleValue:function(A){var Q=this._inputElementValue;Q||Q===0||A.type==="number"&&!A.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:A,value:Q,invalid:this.invalid})},
_handleValueAndAutoValidate:function(A){this.autoValidate&&A&&(this.invalid=!(A.validate?A.validate(this._inputElementValue):A.checkValidity()));this._handleValue(A)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(A){if(this._addons)for(var Q,b=0;Q=this._addons[b];b++)Q.update(A)},
_computeInputContentClass:function(A,Q,b,f,a){var T="input-content";A?(a&&(T+=" label-is-hidden"),f&&!this.noUnfloatedLabelError&&(T+=" is-invalid")):(A=this.querySelector("label"),Q||a?(T+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",f?T+=" is-invalid":b&&(T+=" label-is-highlighted")):(A&&(this.$.labelAndInputContainer.style.position="relative"),f&&!this.noUnfloatedLabelError&&(T+=" is-invalid")));b&&(T+=" focused");return T},
_computeUnderlineClass:function(A,Q){var b="underline";Q?b+=" is-invalid":A&&(b+=" is-highlighted");return b},
_computeAddOnContentClass:function(A,Q){var b="add-on-content";Q?b+=" is-invalid":A&&(b+=" is-highlighted");return b}});var wZy;var uwN;_.gn({_template:function(){if(uwN!==void 0)return uwN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;wZy===void 0&&(wZy=document.createElement("template"));var f=wZy;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return uwN=A},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[gG9],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(A){this._setInvalid(A.invalid)}});_.gn({is:"tp-yt-paper-input",_template:function(){if(RiW!==void 0)return RiW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;jcv===void 0&&(jcv=document.createElement("template"));var f=jcv;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return RiW=A},
behaviors:[vGW,_.t7],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 Z7W;var ybL;_.gn({_template:function(){if(ybL!==void 0)return ybL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=
A.content,b=Q.insertBefore;Z7W===void 0&&(Z7W=document.createElement("template"));var f=Z7W;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return ybL=A},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Ah]});var YCL;var DrM;_.gn({_template:function(){if(DrM!==void 0)return DrM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;YCL===void 0&&(YCL=document.createElement("template"));var f=YCL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return DrM=A},
is:"tp-yt-paper-item-body"});var $rN;var NyK;var scp=function(){};
_.d=scp.prototype;_.d.indexOf=function(){};
_.d.selectPrevious=function(){};
_.d.selectNext=function(){};
_.d.selectIndex=function(){};
_.d.forceSynchronousItemUpdate=function(){};
_.d._checkFallback=function(){};
_.d._addListener=function(){};
_.d._removeListener=function(){};
_.d._activateEventChanged=function(){};
_.d._updateItems=function(){};
_.d._selectSelected=function(){};
_.d._filterItem=function(){};
_.d._valueToItem=function(){};
_.d._valueToIndex=function(){};
_.d._indexToValue=function(){};
_.d._valueForItem=function(){};
_.d._observeItems=function(){};
_.d._itemActivate=function(){};
_.d.multiChanged=function(){};
_.d._updateAttrForSelected=function(){};
_.d._updateSelected=function(){};
_.d._selectMulti=function(){};
_.d._selectionChange=function(){};
_.d._toggleSelected=function(){};
_.d._valuesToItems=function(){};
_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d.select=function(){};
_.d._resetTabindices=function(){};
_.d._updateMultiselectable=function(){};
_.d._focusWithKeyboardEvent=function(){};
_.d._clearSearchText=function(){};
_.d._focusPrevious=function(){};
_.d._focusNext=function(){};
_.d._applySelection=function(){};
_.d._focusedItemChanged=function(){};
_.d._onIronItemsChanged=function(){};
_.d._onShiftTabDown=function(){};
_.d._onFocus=function(){};
_.d._onUpKey=function(){};
_.d._onDownKey=function(){};
_.d._onEscKey=function(){};
_.d._onKeydown=function(){};
_.d._activateHandler=function(){};
_.d._disabledChanged=function(){};
_.d._setSelectedItem=function(){};
_.d._setItems=function(){};
_.d._setSelectedItems=function(){};
_.d._setFocusedItem=function(){};
scp=_.gn({_template:function(){if(NyK!==void 0)return NyK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;$rN===void 0&&($rN=document.createElement("template"));var f=$rN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return NyK=A},
is:"tp-yt-paper-listbox",behaviors:[KmK],hostAttributes:{role:"listbox"}});var mrp;var Arr;var QIj={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(A,Q){return[A||Q?"active":"",Q?"cooldown":""].join(" ")},
__activeChanged:function(A,Q){this.__setAriaHidden(!A);this.__coolingDown=!A&&Q},
__altChanged:function(A){this.setAttribute("aria-label",A||"loading")},
__setAriaHidden:function(A){A?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.gn({_template:function(){if(Arr!==void 0)return Arr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;mrp===void 0&&(mrp=document.createElement("template"));var f=mrp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Arr=A},
is:"tp-yt-paper-spinner",behaviors:[QIj]});var be9;var fer;_.gn({_template:function(){if(fer!==void 0)return fer;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;be9===void 0&&(be9=document.createElement("template"));var f=be9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return fer=A},
is:"tp-yt-paper-spinner-lite",behaviors:[QIj]});var aeL;var TAK;_.gn({_template:function(){if(TAK!==void 0)return TAK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;aeL===void 0&&(aeL=document.createElement("template"));var f=aeL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return TAK=A},
is:"tp-yt-paper-tab",behaviors:[_.Cb,_.oJ.IronButtonState,NX],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 A=_.oi(this).parentNode;return!!A&&!!A.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(A){if(this.link){var Q=this.queryEffectiveChildren("a");Q&&A.target!==Q&&Q.click()}}});var dPY;var F_W;var G0p=_.sC(['<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>']),BAW=_.Uep(G0p);document.head.appendChild(BAW.content);_.gn({_template:function(){if(F_W!==void 0)return F_W;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;dPY===void 0&&(dPY=document.createElement("template"));var f=dPY;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return F_W=A},
is:"tp-yt-paper-tabs",behaviors:[_.eI,_.Jyx],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(A){_.oi(this).querySelectorAll("tp-yt-paper-tab").forEach(A?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(A){A.setAttribute("noink","")},
_removeNoinkAttribute:function(A){A.removeAttribute("noink")},
_computeScrollButtonClass:function(A,Q,b,f){return!Q||b?"hidden":A?f?"hidden":"not-visible":""},
_computeTabsContentClass:function(A,Q){var b="tabs-content";A&&(b+=" scrollable");if(!A||Q)b+=" fit-container";return b},
_computeSelectionBarClass:function(A,Q){var b="selection-bar";A?b+=" hidden":Q&&(b+=" align-bottom");return b},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(A){return""+A},
_onIronSelect:function(A){this._tabChanged(A.detail.item,this._previousTab);this._previousTab=A.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();_.g7._activateHandler.apply(this,arguments)},
_scheduleActivation:function(A,Q){this._pendingActivationItem=A;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,Q)},
_delayedActivationHandler:function(){var A=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;A.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(A){A.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(A,Q){this.scrollable&&this._affectScroll(Q&&-Q.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(A){this.$.tabsContainer.scrollLeft+=A;A=this.$.tabsContainer.scrollLeft;this._leftHidden=A===0||this.hideScrollButtons;this._rightHidden=A===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(A,Q){if(A){var b=this.$.tabsContent.getBoundingClientRect(),f=b.width,a=A.getBoundingClientRect();b=a.left-b.left;this._pos={width:this._calcPercent(a.width,f),left:this._calcPercent(b,f)};if(this.noSlide||Q==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var T=Q.getBoundingClientRect();Q=this.items.indexOf(Q);A=this.items.indexOf(A);this.$.selectionBar.classList.add("expand");
A=Q<A;this._isRTL&&(A=!A);A?this._positionBar(this._calcPercent(a.left+a.width-T.left,f)-5,this._left):this._positionBar(this._calcPercent(T.left+T.width-a.left,f)-5,this._calcPercent(b,f)+5);this.scrollable&&this._scrollToSelectedIfNeeded(a.width,b)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(A,Q){Q-=this.$.tabsContainer.scrollLeft;Q<0?this.$.tabsContainer.scrollLeft+=Q:(Q+=A-this.$.tabsContainer.offsetWidth,Q>0&&(this.$.tabsContainer.scrollLeft+=Q))},
_calcPercent:function(A,Q){return 100*A/Q},
_positionBar:function(A,Q){A=A||0;Q=Q||0;this._width=A;this._left=Q;this.transform("translateX("+Q+"%) scaleX("+A/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var A=this.$.selectionBar.classList;A.contains("expand")?(A.remove("expand"),A.add("contract"),this._positionBar(this._pos.width,this._pos.left)):A.contains("contract")&&A.remove("contract")}});var pDp;var PTY;_.gn({_template:function(){if(PTY!==void 0)return PTY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;pDp===void 0&&(pDp=document.createElement("template"));var f=pDp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return PTY=A},
is:"tp-yt-paper-textarea",behaviors:[vGW,_.t7],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(A){this.$.input.textarea.selectionStart=A},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(A){this.$.input.textarea.selectionEnd=A},_ariaLabelledByChanged:function(A){this._focusableElement.setAttribute("aria-labelledby",A)},
_ariaDescribedByChanged:function(A){this._focusableElement.setAttribute("aria-describedby",A)},
get _focusableElement(){return this.inputElement.textarea}});var XDx;var S2r;/*

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 UPM=function(){};
_.d=UPM.prototype;_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._focusedChanged=function(){};
_.d.registered=function(){};
_.d._invalidChanged=function(){};
_.d.hasValidator=function(){};
_.d.validate=function(){};
_.d._getValidity=function(){};
_.d._requiredChanged=function(){};
_.d._valueChanged=function(){};
_.d._checkedChanged=function(){};
_.d._buttonStateChanged=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
UPM=_.gn({is:"tp-yt-paper-toggle-button",_template:function(){if(S2r!==void 0)return S2r;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;XDx===void 0&&(XDx=document.createElement("template"));var f=XDx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return S2r=A},
behaviors:[_.FUp],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");_.mL(this,function(){_.Wt(this,"pan-y")})},
_ontrack:function(A){A=A.detail;A.state==="start"?this._trackStart(A):A.state==="track"?this._trackMove(A):A.state==="end"&&this._trackEnd(A)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(A){A=A.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+A:A)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+A:A));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 A=NX._createRipple();A.id="ink";A.setAttribute("recenters","");A.classList.add("circle","toggle-ink");return A}});var L_x;var M1r;_.gn({_template:function(){if(M1r!==void 0)return M1r;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;L_x===void 0&&(L_x=document.createElement("template"));var f=L_x;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return M1r=A},
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 A=_.oi(this).parentNode,Q=_.oi(this).getOwnerRoot(),b;this.for?b=_.oi(Q).querySelector("#"+this.for):b=A.nodeType==Node.DOCUMENT_FRAGMENT_NODE?Q.host:A;return b},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(A){A==="entry"?this.show():A==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.oi(this).textContent.trim()===""){for(var A=!0,Q=_.oi(this).getEffectiveChildNodes(),b=0;b<Q.length;b++)if(Q[b].textContent.trim()!==""){A=!1;break}if(A)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 A=this.offset;this.marginTop!=14&&this.offset==14&&(A=this.marginTop);var Q=this.offsetParent.getBoundingClientRect(),b=this._target.getBoundingClientRect(),f=this.getBoundingClientRect(),a=(b.width-f.width)/2,T=(b.height-f.height)/2,G=b.left-Q.left,p=b.top-Q.top;switch(this.position){case "top":var P=G+a;var U=p-f.height-A;break;case "bottom":P=G+a;U=p+b.height+A;break;case "left":P=G-f.width-A;U=p+T;break;case "right":P=G+b.width+
A,U=p+T}this.fitToVisibleBounds?(Q.left+P+f.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,P)+"px",this.style.right="auto"),Q.top+U+f.height>window.innerHeight?(this.style.bottom=Q.height+"px",this.style.top="auto"):(this.style.top=Math.max(-Q.top,U)+"px",this.style.bottom="auto")):(this.style.left=P+"px",this.style.top=U+"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(A){A!==500&&this.updateStyles({"--paper-tooltip-delay-in":A+"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(A){if(A==="entry"&&this.animationEntry!=="")return this.animationEntry;if(A==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[A]&&typeof this.animationConfig[A][0].name==="string"){if(this.animationConfig[A][0].timing&&this.animationConfig[A][0].timing.delay&&this.animationConfig[A][0].timing.delay!==0){var Q=this.animationConfig[A][0].timing.delay;A==="entry"?this.updateStyles({"--paper-tooltip-delay-in":Q+"ms"}):A==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":Q+
"ms"})}return this.animationConfig[A][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 lej=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(lej,_.fp);var K_1=_.Ph(lej,[0,_.QH]);var Qg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Qg,_.fp);var iex=[3,4],JrL=[5,6];var V1W=[0,iex,JrL,_.GYK,-1,_.Ad,_.B$Y,-1,QVi,bqA];var Oex=_.Ph(Qg,V1W),nUL=_.Xc(V1W);var k0p=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(k0p,_.fp);var IeL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(IeL,_.fp);var HeW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(HeW,_.fp);var CTL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(CTL,_.fp);var q2y=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(q2y,_.fp);var b3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(b3,_.fp);b3.prototype.getSource=function(){return _.e1(this,1)};
b3.prototype.getMessage=function(){return _.gA(this,4)};
b3.prototype.getData=function(){return _.dO(this,q2y,8)};var oUp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(oUp,_.fp);var fY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(fY,_.fp);var aA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(aA,_.fp);var Tc=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Tc,_.fp);Tc.prototype.getUrl=function(){return _.gA(this,1)};
Tc.prototype.setUrl=function(A){return _.nt(this,1,A)};
Tc.prototype.hasUrl=function(){return _.MN(_.O2(this,1))!=null};var t1W=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(t1W,_.fp);var rrM=[3];var jIp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(jIp,_.fp);var dE=function(A){var Q=new jIp;return _.FH(Q,2,A)};
jIp.prototype.getLanguage=function(){return WD(this,4,Fk)};
var RjW=function(A){var Q=dE(1);return _.Ms(Q,6,Fk,A)},Fk=[3,
4,5,6];var gU9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(gU9,_.fp);var Gc=function(A){var Q=new gU9;return _.FH(Q,1,A)},BV=function(A,Q){return _.Ms(A,2,ejL,Q)},ejL=[2,
3,4,5];var hj$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(hj$,_.fp);var pY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(pY,_.fp);var W_y=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(W_y,_.fp);var vUK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(vUK,_.fp);var EUj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(EUj,_.fp);var xP1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(xP1,_.fp);var crL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(crL,_.fp);var PV=function(A){return _.dO(A,aA,5)};var zjK=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(zjK,_.fp);zjK.prototype.getValue=function(){return j1(this,1)};var wDx=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(wDx,_.fp);var Xk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Xk,_.fp);Xk.prototype.getMetadata=function(){return _.vD(this,EUj,7,Su)};
Xk.prototype.hasMetadata=function(){return _.kU(this,EUj,7,Su)};
var uYY=_.WwU(Xk),Su=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Uq=function(A){this.JSC$11908_name_=A;this.files_=[];this.directories_=[];this.directoryMap_={}};
Uq.prototype.getName=function(){return this.JSC$11908_name_};var M8=function(A,Q){this.callback_=Q;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Uq("");ZeL(this,A,this.rootDirectory_);LY(this)},ZeL=function(A,Q,b){for(var f=0;f<Q.length;f++){var a=Q[f];
a.isFile?(A.fileOps_++,a.file((0,_.IL)(A.handleFileSuccess_,A,b),(0,_.IL)(A.handleFileError_,A))):A.unscannedDirectories_.push(new yrL(a,b))}},LY=function(A){if(A.unscannedDirectories_.length>0&&A.directoryOps_<5&&!A.hasError_){A.directoryOps_++;
var Q=A.unscannedDirectories_.shift(),b=Q.entry,f=new Uq(b.name);Q=Q.parent;Q.directoryMap_[f.getName()]=f;Q.directories_.push(f);b=b.createReader();b.readEntries((0,_.IL)(A.handleDirectorySuccess_,A,b,f),(0,_.IL)(A.handleDirectoryError_,A))}A.directoryOps_!=0||A.fileOps_!=0||A.unscannedDirectories_.length!=0&&!A.hasError_||A.callback_(A.rootDirectory_.files_,A.rootDirectory_.directories_,A.hasError_)};
M8.prototype.handleDirectorySuccess_=function(A,Q,b){ZeL(this,b,Q);b.length==0?(this.directoryOps_--,LY(this)):A.readEntries((0,_.IL)(this.handleDirectorySuccess_,this,A,Q),(0,_.IL)(this.handleDirectoryError_,this))};
M8.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;LY(this)};
M8.prototype.handleFileSuccess_=function(A,Q){A.files_.push(Q);this.fileOps_--;LY(this)};
M8.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;LY(this)};
var yrL=function(A,Q){this.entry=A;this.parent=Q};var l3=function(A){_.IH.call(this);_.jM(A,"drop",this.onObjectsDropped_,!1,this);_.jM(A,"dragenter",this.onFilesDragged_,!1,this);_.jM(A,"dragover",this.onFilesDragged_,!1,this);_.jM(A,"dragleave",this.onDragLeave_,!1,this);_.jM(A,"dragend",this.onDragLeave_,!1,this)};
_.BD(l3,_.IH);var Y2j=function(A,Q){_.J1.call(this,"f");this.files=A;this.directories=Q};
_.BD(Y2j,_.J1);var DPK=function(){_.J1.call(this,"h")};
_.BD(DPK,_.J1);var $P9=function(){_.J1.call(this,"i")};
_.BD($P9,_.J1);var NA1=function(){_.J1.call(this,"g")};
_.BD(NA1,_.J1);l3.prototype.onObjectsDropped_=function(A){var Q=this;A.preventDefault();var b=A.event_.dataTransfer;if((A=b&&b.items)&&A.length>0&&A[0].webkitGetAsEntry){b=[];for(var f=[],a=0;a<A.length;a++){var T=A[a].webkitGetAsEntry();T?b.push(T):f.push(A[a])}new M8(b,function(G,p,P){P?Q.dispatchEvent(new NA1("Error occurred while reading from the file system.")):Q.dispatchEvent(new Y2j(G,p,f))})}else(A=b&&b.files)&&this.dispatchEvent(new Y2j(Array.from(A),[]))};
l3.prototype.onFilesDragged_=function(A){A.type==="dragenter"&&this.dispatchEvent(new DPK);A.preventDefault()};
l3.prototype.onDragLeave_=function(){this.dispatchEvent(new $P9)};var sIN=function(A,Q){this.JSC$11931_name_=A;this.inputElement_=Q};
sIN.prototype.getName=function(){return this.JSC$11931_name_};
sIN.prototype.getInputElement=function(){return this.inputElement_};var KY=function(A,Q,b){Q=Q===void 0?"single_file":Q;b=b===void 0?[]:b;_.IH.call(this);this.overlayTarget_=A;this.parentOverlay_=A!=null?A.parentNode:_.KK("scotty-overlay-parent");this.selectorType_=Q;this.acceptTypes_=b;this.overlay_=mP1(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.O(KY,_.IH);
var mP1=function(A,Q,b,f){var a=document.createElement("input");a.setAttribute("type","file");a.setAttribute("name","Filedata");_.jM(a,"change",A.onFilesSelected_,!1,A);b==="multiple_file"&&(a.multiple="true");b==="single_directory"&&(a.webkitdirectory="true");f.length>0&&a.setAttribute("accept",f.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(A.overlayTarget_!=
null)return a.style.height=Q.offsetHeight+"px",a.style.width=Q.offsetWidth+"px",A.parentOverlay_&&(A.parentOverlay_.style.position="relative"),_.hd(a,Q),zN(a,new _.gQ(Q.offsetLeft,Q.offsetTop)),a;A.parentOverlay_.appendChild(a);return a};
KY.prototype.click=function(){this.overlay_.click()};
KY.prototype.onFilesSelected_=function(A){a:{try{var Q=(new XMLHttpRequest).upload!==void 0;break a}catch(U){}Q=!1}if(Q){var b;A=Array.from((b=A.target.files)!=null?b:[]);b=[];if(this.selectorType_==="single_directory"&&(_.Le||so||_.U2)){b=new Uq("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(Q=0;Q<A.length;Q++)for(var f=A[Q],a=f.webkitRelativePath.split("/"),T=b,G=0;G<a.length;G++){var p=a[G];if(G==a.length-1){p!="."&&T.files_.push(f);break}var P=T.directoryMap_[p];P==void 0&&(p=
P=new Uq(p),T.directoryMap_[p.getName()]=p,T.directories_.push(p));T=P}b=b.directories_}this.dispatchEvent(new AdW(A,b,null))}else A=A.target.value,A.match(/^c:\\fakepath\\/i)&&(A=A.substring(12)),this.dispatchEvent(new AdW([],[],new sIN(A,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=mP1(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var AdW=function(A,Q){_.J1.call(this,"j");this.files=A;this.directories=Q};
_.O(AdW,_.J1);var QB9=function(A){this.uploadUrl_=A};var bwy=function(){_.IH.call(this)};
_.BD(bwy,_.IH);var i3=function(A){_.J1.call(this,A)};
_.BD(i3,_.J1);var Jh=function(A){_.J1.call(this,A)};
_.BD(Jh,_.J1);var fWN=function(A,Q,b,f,a){_.IH.call(this);b=document.createElement("form");b.setAttribute("method",Q);b.setAttribute("enctype","multipart/form-data");b.setAttribute("encoding","multipart/form-data");Q=document.createElement("input");Q.setAttribute("type","hidden");Q.setAttribute("name","metadata");Q.setAttribute("value",a);b.appendChild(Q);b.appendChild(f);this.JSC$11948_form_=b;A=new _.m7(A);_.wv(A,"upload_protocol","multipart");this.JSC$11948_url_=A.toString();this.JSC$11948_request_=new d7;this.state_=
"Ready";this.JSC$11948_errorDescription_=null;this.JSC$11948_eventHandler_=new _.BR(this);_.SY(this,this.JSC$11948_eventHandler_);this.JSC$11948_eventHandler_.listen(this.JSC$11948_request_,"success",this.onTransferSuccess_);this.JSC$11948_eventHandler_.listen(this.JSC$11948_request_,"error",this.onTransferError_)};
_.O(fWN,bwy);_.d=fWN.prototype;_.d.run=function(){this.state_="Transferring";var A=this.JSC$11948_request_,Q=this.JSC$11948_form_;if(A.JSC$11367_active_)throw Error("ne");var b=new _.m7(this.JSC$11948_url_||Q.action);A.JSC$11367_form_=Q;Q=A.JSC$11367_form_;b=_.x8(b.toString());b!==void 0&&(Q.action=b);r8$(A)};
_.d.getResponseCode=function(){return null};
_.d.getResponseText=function(){return this.JSC$11948_request_&&this.JSC$11948_request_.getResponseText()||null};
_.d.JSC$29238_getErrorDescription=function(){return this.JSC$11948_errorDescription_};
_.d.cancel=function(){this.JSC$11948_request_&&this.JSC$11948_request_.abort();this.state_="Cancelled";this.dispatchEvent(new i3("o"))};
_.d.pause=function(){};
_.d.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new i3("l"))};
_.d.onTransferError_=function(){this.JSC$11948_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new i3("n"))};var Vg=function(){_.RH.call(this)};
_.O(Vg,_.RH);Vg.prototype.createXhr=function(){var A=_.RH.prototype.createXhr.call(this);A.upload&&(A.upload.onprogress=(0,_.IL)(this.onProgress_,this));return A};
Vg.prototype.onProgress_=function(A){this.dispatchEvent(A)};var aW9=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},d_N=function(A,Q){var b=A.attempt_+1;
if(A.maxAttempts_>0&&b>A.maxAttempts_)return!1;b==0?Q():A.delayCallId_=t1(function(){A.delayCallId_=null;Q()},Thv(A),A);
A.attempt_=b;return!0};
aW9.prototype.reset=function(){this.delayCallId_&&_.by.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Thv=function(A){var Q=250*Math.pow(2,A.attempt_);A.maxDelayMs_>=0&&(Q=Math.min(Q,A.maxDelayMs_));return Q};var e9F=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Oq=function(){_.IH.call(this);this.JSC$11958_request_=this.state_=null;this.JSC$11958_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$11958_bytesTransferred_=0;this.retryIterator_=new aW9;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$11958_errorDescription_=null;this.JSC$11958_eventHandler_=new _.BR(this);_.SY(this,this.JSC$11958_eventHandler_);this.JSC$11958_url_=this.blob_=null;this.JSC$11958_method_=void 0;this.chunkSize_=this.JSC$11958_metadata_=
this.JSC$11958_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$11958_responseText_=this.JSC$11958_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.BD(Oq,bwy);_.d=Oq.prototype;_.d.run=function(){nY(this)};
_.d.getResponseCode=function(){return this.JSC$11958_responseCode_};
_.d.getResponseText=function(){return this.JSC$11958_responseText_};
_.d.JSC$29238_getErrorDescription=function(){return this.JSC$11958_errorDescription_};
_.d.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$11958_eventHandler_.removeAll();this.JSC$11958_request_&&this.JSC$11958_request_.abort();this.retryIterator_.reset();var A=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(A==="Upload"||A==="Query")A=new Vg,A.JSC$9738_withCredentials_=this.JSC$11958_withCredentials_,A.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$11958_bytesTransferred_=
0;this.dispatchEvent(new i3("o"))}};
_.d.pause=function(){this.pauseRequested_=!0};
var nY=function(A){var Q=A.state_;A.pauseRequested_?(A.pauseRequested_=!1,A.stateAfterUnpausing_=Q,A.state_="Paused"):d_N(A.retryIterator_,function(){switch(A.state_){case "Start":A.JSC$11958_request_=new Vg;var b=_.j2.clone(A.JSC$11958_headers_);A.blob_.size!=null&&(b["Content-Length"]=A.blob_.size);b=h9C(b);b["X-Goog-Upload-Protocol"]="resumable";b["X-Goog-Upload-Command"]="start";A.JSC$11958_eventHandler_.removeAll();A.JSC$11958_eventHandler_.listen(A.JSC$11958_request_,"complete",A.onStartComplete_);
A.JSC$11958_request_.JSC$9738_withCredentials_=A.JSC$11958_withCredentials_;A.JSC$11958_request_.send(A.JSC$11958_url_,A.JSC$11958_method_,A.JSC$11958_metadata_,b);A.lastCommandResponseCode_=null;A.dispatchEvent(new Jh("q"));break;case "Upload":b=A.transferHandle_.uploadUrl_;var f=A.blob_.size;if(StN()){var a=A.chunkSize_;var T=A.offset_+a>=f;f=XvN(A.blob_,A.offset_,T?f:A.offset_+a)}else A.offset_=0,f=A.blob_,T=!0;A.JSC$11958_request_=new Vg;A.JSC$11958_request_.JSC$9738_withCredentials_=A.JSC$11958_withCredentials_;
A.JSC$11958_eventHandler_.removeAll();A.JSC$11958_eventHandler_.listen(A.JSC$11958_request_,"progress",A.onUploadProgress_);a=(0,_.IL)(A.JSC$11960_onUploadComplete_,A,A.offset_+f.size,T);A.JSC$11958_eventHandler_.listen(A.JSC$11958_request_,"complete",a);A.lastCommandResponseCode_=null;A.dispatchEvent(new Jh("q"));T=Object.assign({},A.JSC$11958_headers_||{},{"X-Goog-Upload-Command":"upload"+(T?", finalize":""),"X-Goog-Upload-Offset":A.offset_});A.JSC$11958_request_.send(b,"POST",f,T);break;case "Query":A.JSC$11958_request_=
new Vg;A.JSC$11958_eventHandler_.removeAll();A.JSC$11958_eventHandler_.listen(A.JSC$11958_request_,"complete",A.onQueryComplete_);b=Object.assign({},A.JSC$11958_headers_||{},{"X-Goog-Upload-Command":"query"});A.JSC$11958_request_.send(A.transferHandle_.uploadUrl_,"POST","",b);A.lastCommandResponseCode_=null;A.dispatchEvent(new Jh("q"));break;default:throw Error("cf");}})||kj(A,"Transfer encountered too many consecutive failures.")},kj=function(A,Q){A.state_="Error";
A.JSC$11958_errorDescription_=Q;A.dispatchEvent(new i3("n"))};
Oq.prototype.onStartComplete_=function(A){var Q=A.target;this.lastCommandResponseCode_=Q.getStatus();this.dispatchEvent(new Jh("r"));if(FQr(Q))GNL(this,Q);else if(BhL(Q)){A=Y$(A.target.getAllResponseHeaders());for(var b in A)_.TX(b.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new i3("m"));b=rG(A,"X-Goog-Upload-URL");A=(A=rG(A,"X-Goog-Upload-Chunk-Granularity"))?parseInt(A,10):1;b===void 0||isNaN(A)||A<=0?kj(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
A)*A,this.transferHandle_=new QB9(b),this.dispatchEvent(new i3("p")),this.state_="Upload",this.retryIterator_.reset(),nY(this))}else nY(this)};
Oq.prototype.onUploadProgress_=function(A){this.JSC$11958_bytesTransferred_=this.offset_+A.loaded;this.dispatchEvent(new i3("k"))};
Oq.prototype.JSC$11960_onUploadComplete_=function(A,Q,b){var f=this,a,T;return _.B(function(G){switch(G.nextAddress){case 1:a=b.target;f.lastCommandResponseCode_=a.getStatus();f.dispatchEvent(new Jh("r"));if(pkL(a)||a.getStatus()==404)return f.JSC$11958_bytesTransferred_=A,GNL(f,a),G.return();if(BhL(a)){G.jumpTo(2);break}if(!(T=f.detectCorruptedBlobEnabled_)){G.jumpTo(3);break}return G.yield(PGY(f),4);case 4:T=G.yieldResult;case 3:if(T)return kj(f,"Blob has been modified or corrupted."),G.return();
f.requireUploadRequestModification_=a.getStatus()==400;f.state_="Query";nY(f);return G.return();case 2:if(Q)return kj(f,"Got a non-final success response after issuing a finalize command."),G.return();f.JSC$11958_bytesTransferred_=A;f.offset_=A;f.retryIterator_.reset();nY(f);return G.return()}})};
Oq.prototype.onQueryComplete_=function(A){var Q=A.target;this.lastCommandResponseCode_=Q.getStatus();this.dispatchEvent(new Jh("r"));FQr(Q)?(Q.getStatus()===200&&(this.JSC$11958_bytesTransferred_=this.blob_.size),GNL(this,Q)):BhL(Q)?(A=Y$(A.target.getAllResponseHeaders()),A=parseInt(rG(A,"X-Goog-Upload-Size-Received"),10),isNaN(A)?kj(this,"Server did not respond with current offset."):A<this.offset_?kj(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
A+"."):this.requireUploadRequestModification_&&this.offset_===A?kj(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<A&&this.retryIterator_.reset(),this.offset_=this.JSC$11958_bytesTransferred_=A,this.state_="Upload",nY(this))):nY(this)};
var GNL=function(A,Q){A.JSC$11958_responseCode_=Q.getStatus();var b=Y$(Q.getAllResponseHeaders());WI6(b);A.JSC$11958_responseText_=Q.getResponseText();A.state_="Response received";A.dispatchEvent(new i3("l"))},BhL=function(A){var Q=A.getStatus();
A=Y$(A.getAllResponseHeaders());A=rG(A,"X-Goog-Upload-Status");return Q===200&&A==="active"},pkL=function(A){A=Y$(A.getAllResponseHeaders());
return rG(A,"X-Goog-Upload-Status")==="final"},FQr=function(A){if(pkL(A))return!0;
A=A.getStatus();return A>=400&&A<500},PGY=function(A){var Q;
return _.B(function(b){if(b.nextAddress==1){if(!A.blob_||A.originalBlobSize_<=0)return b.return(!1);if(A.blob_.size!==A.originalBlobSize_)return b.return(!0);_.ML(b,2);if(Q=XvN(A.blob_,0,1)){var f=b.yield,a=new wb,T=YY9(a);a.reader_.readAsBinaryString(Q);b=f.call(b,T,4)}else b=b.return(!0);return b}if(b.nextAddress!=2)return b.return(A.blob_.size!==A.originalBlobSize_);_.Vw(b);return b.return(!0)})};var Xkr=function(A,Q,b,f,a,T){_.IH.call(this);this.payload_=f;this.JSC$11961_url_=A;this.JSC$11961_method_=Q;this.JSC$11961_headers_=b;this.JSC$11961_metadata_=a;this.encoding_=T||"binary";A=new _.o1;this.boundary_="uploader-"+x$()+"-"+A.JSC$11216_toIsoString();this.JSC$11961_responseText_=this.JSC$11961_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$11961_errorDescription_=null;this.JSC$11961_eventHandler_=new _.BR(this);_.SY(this,this.JSC$11961_eventHandler_)};
_.O(Xkr,bwy);_.d=Xkr.prototype;
_.d.run=function(){var A=_.j2.clone(this.JSC$11961_headers_);this.payload_.length!=null&&(A["Content-Length"]=this.payload_.length);A=h9C(A);A["X-Goog-Upload-Protocol"]="multipart";A["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Vg;this.JSC$11961_eventHandler_.removeAll();this.JSC$11961_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$11961_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$11961_url_,this.JSC$11961_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$11961_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",A)};
_.d.getResponseCode=function(){return this.JSC$11961_responseCode_};
_.d.getResponseText=function(){return this.JSC$11961_responseText_};
_.d.JSC$29238_getErrorDescription=function(){return this.JSC$11961_errorDescription_};
_.d.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$11961_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new i3("o")))};
_.d.pause=function(){};
_.d.onTransferProgress_=function(){this.dispatchEvent(new i3("k"))};
_.d.onTransferComplete_=function(A){var Q=A.target.getStatus();Q===void 0||Q===-1?(this.JSC$11961_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new i3("n"))):(this.JSC$11961_responseCode_=Q,A=A.target,Q=Y$(A.getAllResponseHeaders()),WI6(Q),this.JSC$11961_responseText_=A.getResponseText(),this.state_="Complete",this.dispatchEvent(new i3("l")))};_.SJM=function(A,Q,b,f){f=f===void 0?!1:f;if(b instanceof sIN)return new fWN(A,"POST",Q,b.getInputElement(),"");if(typeof b==="string"||b instanceof String)return new Xkr(A,"POST",Q,b,"");var a=new Oq(void 0);a.JSC$11958_url_=A;a.JSC$11958_method_="POST";a.JSC$11958_headers_=Q;a.blob_=b;a.originalBlobSize_=b.size;a.JSC$11958_metadata_="";f&&(a.JSC$11958_withCredentials_=f);a.state_="Start";return a};var IA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(IA,_.fp);_.d=IA.prototype;_.d.getEnableSsEngine=function(){return _.rA(this,2)};
_.d.getEnableAwr=function(){return _.rA(this,3)};
_.d.getAlohaAutoGaRollout=function(){return _.rA(this,5)};
_.d.getEnableConfigurator=function(){return _.rA(this,6)};
_.d.getEnableMweb=function(){return _.rA(this,7)};
var LQ1=function(){var A=U_Y();return _.Ri(A,7,!0)};
IA.prototype.getEnableCtlConsentCheckbox=function(){return _.rA(this,8)};
IA.prototype.getEnableIframe=function(){return _.rA(this,9)};
var U_Y=function(){var A=new IA;A=_.Ri(A,5,!0);A=_.Ri(A,2,!0);A=_.Ri(A,4,!1);A=_.Ri(A,8,!0);return _.Ri(A,9,!0)};
IA.prototype.getEnableScreenshotNudge=function(){return _.rA(this,10)};
var MEL=function(){var A=LQ1();return _.Ri(A,10,!0)};
IA.prototype.getEnableWebStartupConfigEndpoint=function(){return _.rA(this,11)};
IA.prototype.getEnableJunkNudge=function(){return _.rA(this,12)};
var fQi=function(){var A=MEL();return _.Ri(A,12,!0)};
_.d=IA.prototype;_.d.getEnableConfiguratorLocale=function(){return _.rA(this,13)};
_.d.getEnableTinyNoPointer=function(){return _.rA(this,14)};
_.d.getEnableSupportSessionLogging=function(){return _.rA(this,15)};
_.d.getEnableFileUploadForScreenshot=function(){return _.rA(this,16)};
_.d.getEnableDirectDeflectionForSingleCategory=function(){return _.rA(this,17)};
_.d.getEnableImageSanitization=function(){return _.rA(this,18)};
_.d.getEnableAlohaBinarySplit=function(){return _.rA(this,19)};
_.d.getEnableDbFeedbackIntents=function(){return _.rA(this,20)};
_.d.getEnableMarkMandatoryFieldsWithRequired=function(){return _.rA(this,21)};
_.d.getEnableFeedbackCategoryCustomUi=function(){return _.rA(this,22)};
_.d.getEnableRealtimeCtl=function(){return _.rA(this,23)};var bUA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(bUA,_.fp);var vHX=[/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 xA4="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 cPX=_.sC(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),z9i=_.sC(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var uhi,Yf4,Zoi,DAU;var lW$,KQ1;
lW$=function(A,Q,b){A.timeOfStartCall=(new Date).getTime();var f=b||_.by,a=f.document,T=A.nonce||_.Di(f.document);T&&!A.nonce&&(A.nonce=T);if(A.flow=="help"){var G=_.zV("document.location.href",f);!A.helpCenterContext&&G&&(A.helpCenterContext=G.substring(0,1200));G=!0;if(Q&&JSON&&JSON.stringify){var p=JSON.stringify(Q);(G=p.length<=1200)&&(A.psdJson=p)}G||(Q={invalidPsd:!0})}Q=[A,Q,b];f.GOOGLE_FEEDBACK_START_ARGUMENTS=Q;b=A.feedbackServerUri||"//www.google.com/tools/feedback";if(G=f.GOOGLE_FEEDBACK_START)G.apply(f,Q);
else{f=b+"/load.js?";for(var P in A)Q=A[P],Q==null||_.ZU(Q)||(f+=encodeURIComponent(P)+"="+encodeURIComponent(Q)+"&");A=OX(a).createElement("SCRIPT");T&&A.setAttribute("nonce",T);_.mw(A,_.k8(f));a.body.appendChild(A)}};
KQ1=function(A,Q,b,f){var a,T;_.B(function(G){a=b||_.by;var p=A.serverEnvironment==="DEV",P=b||_.by;P=A.nonce||_.Di(P.document);p={integrationKeys:{productId:A.productId,feedbackBucket:A.bucket,triggerId:A.triggerId},callbacks:{onClose:A.callback,onLoad:A.onLoadCallback},formContent:{locale:A.locale,disableScreenshot:A.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:A.abuseLink,additionalDataConsent:A.additionalDataConsent},initializationData:{isLocalServer:p,nonce:P,useNightlyRelease:p,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:A.feedbackServerUri,colorScheme:A.colorScheme},extraData:{productVersion:A.productVersion,authUser:A.authuser,configuratorId:A.configuratorId,customZIndex:A.customZIndex,tinyNoPointer:A.tinyNoPointer,
allowNonLoggedInFeedback:A.allowNonLoggedInFeedback,enableAnonymousFeedback:A.enableAnonymousFeedback}};Q&&(P=new Map(Object.entries(Q)),p.extraData.productSpecificData=P);T=p;return G.yield(mAJ(T,f,a),0)})};
_.iwj=function(A,Q,b){try{if(A.flow==="help"){var f=A.helpCenterPath.replace(/^\//,"");_.Y8(b||window,"https://support.google.com/"+f)}else A.flow==="submit"?lW$(A,Q,b):aQJ(A.productId,A.feedbackServerUri).then(function(a){a=_.dO(a,IA,1);var T=!OmC||(a==null?void 0:a.getEnableMweb()),G=!A.tinyNoPointer||(a==null?void 0:a.getEnableTinyNoPointer());!a||a.getAlohaAutoGaRollout()&&T&&G?KQ1(A,Q,b,a):lW$(A,Q,b)},function(a){a&&a.name!=="DuplicateFormError"&&lW$(A,Q,b)})}catch(a){KQ1(A,Q,b,null)}};
_.Al("userfeedback.api.startFeedback",_.iwj);var TPA=/https?:\/\/\S+\.\S+/,d$J=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],F2e=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var cte=function(A){var Q=A.split(""),b=[-263237435,15,Q,function(f,a,T){var G=a.length;T.forEach(function(p,P,U){this.push(U[P]=a[(a.indexOf(p)-a.indexOf(this[P])+P+G--)%a.length])},f.split(""))},
function(f,a){f=(f%a.length+a.length)%a.length;a.splice(-f).reverse().forEach(function(T){a.unshift(T)})},
"response",function(){for(var f=64,a=[];++f-a.length-32;){switch(f){case 58:f-=14;case 91:case 92:case 93:continue;case 123:f=47;case 94:case 95:case 96:continue;case 46:f=95}a.push(String.fromCharCode(f))}return a},
null,12,1540023973,65941107,null,Q,function(f,a){for(f=(f%a.length+a.length)%a.length;f--;)a.unshift(a.pop())},
695603893,function(f){for(var a=f.length;a;)f.push(f.splice(--a,1)[0])},
"'[;'[(",function(f,a){f.push(a)},
null,function(f,a,T,G,p){return a(T,G,p)},
"continuation",Q,function(f,a){if(f.length!=0){a=(a%f.length+f.length)%f.length;var T=f[0];f[0]=f[a];f[a]=T}},
function(){for(var f=64,a=[];++f-a.length-32;){switch(f){case 91:f=44;continue;case 123:f=65;break;case 65:f-=18;continue;case 58:f=96;continue;case 46:f=95}a.push(String.fromCharCode(f))}return a},
'"),/]];'];b[7]=b;b[11]=b;b[18]=b;try{(((0,b[15])(b[21]),b[22])(b[11],b[9]),b[22])(b[new Date("1970-01-01T04:30:12.000+04:30")/1E3],b[1]),((0,b[22])(b[11],b[23]),b[4])(b[10],b[18]),(0,b[20])(b[21],b[14])<<(0,b[17])(b[18],b[1]),(0,b[4])(b[8],b[21]),(0,b[19])((0,b[19])((0,b[17])(b[7],b[9]),b[3],b[20],(0,b[6])(),b[2]),b[3],b[5],(0,b[15])(),b[2])}catch(f){return"aTlOUOubTO4AP____8P_"+A}return Q.join("")};_.Jdr=new _.fU("runAttestationCommand");var VE1=new _.fU("verifyCommand");_.HV=new _.fU("accessibilityContext");var Ow9=new _.fU("accessibilityData");var nEL=new _.fU("profileCardCommand");var RP4=new _.fU("signInEndpoint");var jmi=new _.fU("signOutEndpoint");var IWK;_.kNp=new _.fU("accountItemSectionRenderer");IWK=new _.fU("accountItemRenderer");_.Hwr=new _.fU("saveCommandToSessionStorageAction");var CGr=new _.fU("crossAccountChannelTransferEndpoint");var qmY=new _.fU("getAccountMenuEndpoint");_.oWC=new _.fU("getAccountSwitcherEndpoint");var CKA=new _.fU("getAccountsListEndpoint");var qJ1=new _.fU("getAccountsListInnertubeEndpoint");_.CY=new _.fU("addToToastAction");var oEv=new _.fU("hideEnclosingAction");_.q8=new _.fU("replaceEnclosingAction");var tEY=new _.fU("buttonRefreshAction");var rd9=new _.fU("adsControlFlowOpportunityReceivedCommand");var jBv=new _.fU("openAdAllowlistInstructionCommand");var Ru$=new _.fU("videoMastheadAdPrimaryVideoRenderer");var gEL=new _.fU("displayAdRenderer");var DCi=new _.fU("instreamVideoAdRenderer");_.eu1=new _.fU("inFeedAdLayoutRenderer");var huL=new _.fU("sequenceItemInPlayerAdLayoutRenderer");_.WQK=new _.fU("adSlotRenderer");var vEL=new _.fU("adAvatarViewModel");var EEM=new _.fU("adBadgeViewModel");var x_y=new _.fU("adImageViewModel");var Fa6=new _.fU("reelsAdCardButtonedViewModel");var cdY=new _.fU("reelsPlayerOverlayLayoutViewModel");var zuY=new _.fU("showSchedulingPanelCommand");var wk$=new _.fU("backstageCommentsRenderer");var uCj=new _.fU("backstageImageRenderer");var Zwr=new _.fU("backstagePostRenderer");var ydr=new _.fU("backstageZeroStateRenderer");var YJr=new _.fU("postRenderer");var D_L=new _.fU("sharedPostRenderer");var $_N=new _.fU("createBackstagePostEndpoint");var NhK=new _.fU("getPostVideoPreviewEndpoint");var sBY=new _.fU("updateBackstagePostEndpoint");var m_v=new _.fU("filterChipTransformCommand");var A1K=new _.fU("insertRichSectionCommand");var ApY=new _.fU("talkToRecsDeselectCommand");var QHL=new _.fU("talkToRecsNextCommand");var mZX=new _.fU("talkToRecsSelectCommand");var bGy=new _.fU("talkToRecsUpdateTextCommand");_.nT=new _.fU("browseEndpoint");_.f7Y=new _.fU("confirmDialogEndpoint");var a7$=new _.fU("expandOnHoverCardRenderer");var TrL=new _.fU("lumiereShelfDetailsRenderer");var dYN=new _.fU("revealBusinessEmailCommand");var FpL=new _.fU("validateChannelHandleCommand");var GsW=new _.fU("channelCreationFormEndpoint");var BrL=new _.fU("aboutChannelViewModel");var p2p=new _.fU("channelThumbnailWithLinkRenderer");var P9W=new _.fU("channelCreationServiceEndpoint");var X29=new _.fU("updateChannelPageSettingsEndpoint");var oA=function(A){this.delegate=A},th=function(){oA.apply(this,arguments)};
_.O(th,oA);_.Qr.Object.defineProperties(th.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(A){this.delegate.entityMetadata=A}}});var S3K=function(){th.apply(this,arguments)};
_.O(S3K,th);S3K.prototype.getAssociations=function(){return[]};
S3K.prototype.getTypeName=function(){return"channelHandle"};var tHi=new _.fU("webThumbnailDetailsExtensionData");var fGJ=new _.fU("commandContext");var UYL=new _.fU("addVideoLinkAction");var Lpp=new _.fU("banAuthorAction");var MVL=new _.fU("createCommentAction");var l79=new _.fU("createCommentReplyAction");var Kpv=new _.fU("createPollAction");var iGp=new _.fU("hideIdentityChipAction");var J1M=new _.fU("openUpdateCommentDialogAction");var VVL=new _.fU("pinCommentAction");var OGY=new _.fU("removeCommentAction");var np1=new _.fU("unpinCommentAction");var rE=new _.fU("updateBackstagePollAction");var ksx=new _.fU("updateCommentVoteAction");var I71=new _.fU("commentThreadRenderer");var HG$=function(){th.apply(this,arguments)};
_.O(HG$,th);HG$.prototype.getAssociations=function(){return[]};
HG$.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var C9Y=function(){th.apply(this,arguments)};
_.O(C9Y,th);C9Y.prototype.getAssociations=function(){return[]};
C9Y.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.q3M=new _.fU("commentDialogRenderer");var opW=new _.fU("reloadCommentsCommand");var tVN=new _.fU("updateCommentsSettingsEndpoint");var r19=new _.fU("commentViewModel");var jHv=new _.fU("triStateButtonViewModel");var RVj=new _.fU("voiceReplyContainerViewModel");_.LD=new _.fU("commandExecutorCommand");var c8=new _.fU("emoji");var gpL=new _.fU("updateCreatorChannelInnertubeCommand");_.eVW=new _.fU("appendContinuationItemsAction");_.hVy=new _.fU("changeEngagementPanelVisibilityAction");_.Yo=new _.fU("continuationCommand");var WpY=new _.fU("hideReportedCommentAction");var vpp=new _.fU("listMutationCommand");_.ju=new _.fU("openPopupAction");var EpN=new _.fU("persistSubscriptionsDisplayPreferencesCommand");var Y3y;_.xYr=new _.fU("playlistRemoveVideosAction");_.c1y=new _.fU("updatePlaylistAction");_.zVx=new _.fU("addToPlaylistCommand");_.w21=new _.fU("endPlaylistCommand");_.ut1=new _.fU("recoverPlaylistCommand");_.ZGM=new _.fU("refreshPlaylistCommand");_.y1L=new _.fU("refreshFormCommand");Y3y=new _.fU("openOnePickAddVideoModalCommand");_.eyY=new _.fU("reloadContinuationItemsCommand");_.DY9=new _.fU("scrollToEngagementPanelCommand");var $Yp=new _.fU("selectCountryCommand");var NrL=new _.fU("showReloadUiCommand");var sHL=new _.fU("undoFeedbackAction");var mYL=new _.fU("updateButtonAction");var AP1=new _.fU("updateSubscribeButtonAction");var QjM=new _.fU("updateToggleAction");var boL=new _.fU("webNativeShareCommand");_.KD=new _.fU("webCommandMetadata");_.RA=new _.fU("webHandleServiceEndpointExtension");var HXC=new _.fU("webNavigationEndpointData");var fu1=new _.fU("backgroundAudioPlaybackCommand");var auW=new _.fU("copyLinkCommand");var Tdp=new _.fU("playlistVotingRefreshPopupCommand");var dAL=new _.fU("selectChipCommand");var FIK=new _.fU("setCookieCommand");var GfW=new _.fU("setLocalStorageCommand");var Bd$=new _.fU("setPrefStorageEntryCommand");var Sfp;_.pX9=new _.fU("settingsUpdateCheckboxCommand");_.P1Y=new _.fU("settingsUpdateTextCommand");_.XXL=new _.fU("settingsUpdateOptionsCommand");Sfp=new _.fU("settingsUpdateSwitchCommand");_.UAL=new _.fU("settingsUpdateConnectedAppRendererCommand");var LIy=new _.fU("updateTextInputFormFieldRendererCommand");var Mpy=new _.fU("updateToggleButtonStateCommand");var luK=new _.fU("updateUrlParamCommand");var KIK=new _.fU("webSubmitFormCommand");var ioN=new _.fU("channelSwitcherPageRenderer"),JPN=new _.fU("updateChannelSwitcherPageAction");_.ac=new _.fU("continuationItemRenderer");_.gE=new _.fU("richItemRenderer");var Vpy=new _.fU("richSectionRenderer");_.Ooy=new _.fU("richShelfRenderer");_.nHY=new _.fU("metadataBadgeRenderer");_.kfL=new _.fU("multiPageMenuNotificationSectionRenderer");_.Iuy=new _.fU("playlistLoopButtonStateRenderer");var Hoj=new _.fU("claimLegacyYoutubeChannelEndpoint");var C1M=new _.fU("getNotificationMenuEndpoint");var qfj=new _.fU("getSearchInVideoCommand");_.oHM=new _.fU("getTranscriptEndpoint");_.li=new _.fU("signalServiceEndpoint");var tpr=new _.fU("verifyAgeEndpoint");var uaA=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(uaA,_.fp);uaA.prototype.getPath=function(){return _.gA(this,1)};
uaA.prototype.getValue=function(){return _.gA(this,2)};var rPL=[0,_.s2,-1];var jjY=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(jjY,_.fp);var w5J=_.Ph(jjY,[0,_.m_,rPL]);var R9$=new _.fU("dismissalEndpoint");var gH$=new _.fU("elementsCommand");_.wF=new _.fU("innertubeCommand");var e9$=new _.fU("multipleInlinePlaybackCommand");var pf9=new _.fU("loggingDirectives");var h91=new _.fU("acknowledgeChannelTouStrikeCommand");var WIN=function(){th.apply(this,arguments)};
_.O(WIN,th);WIN.prototype.getAssociations=function(){return[]};
WIN.prototype.getTypeName=function(){return"booleanEntity"};var vHr=function(){th.apply(this,arguments)};
_.O(vHr,th);vHr.prototype.getAssociations=function(){return[]};
vHr.prototype.getTypeName=function(){return"stringEntity"};var f6=new _.fU("entityBatchUpdate");_.EHL=new _.fU("entityUpdateCommand");var xAv=function(){th.apply(this,arguments)};
_.O(xAv,th);xAv.prototype.getAssociations=function(){var A=[];this.delegate.alternateChannel&&A.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&A.push.apply(A,_.ri(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&A.push(this.delegate.oneofChannelEntity);return[].concat(_.ri(new Set(A)))};
xAv.prototype.getTypeName=function(){return"fakeChannel"};var cPr=function(){th.apply(this,arguments)};
_.O(cPr,th);cPr.prototype.getAssociations=function(){var A=[];this.delegate.entryCollection&&A.push(this.delegate.entryCollection);return[].concat(_.ri(new Set(A)))};
cPr.prototype.getTypeName=function(){return"fakePlaylist"};
var z9L=function(){th.apply(this,arguments)};
_.O(z9L,th);z9L.prototype.getAssociations=function(){var A=[];this.delegate.parentPlaylist&&A.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var Q=_.F(this.delegate.entries),b=Q.next();!b.done;b=Q.next())A.push.apply(A,_.ri((new wXN(b.value)).getAssociations()));return[].concat(_.ri(new Set(A)))};
z9L.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var wXN=function(){oA.apply(this,arguments)};
_.O(wXN,oA);wXN.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);return[].concat(_.ri(new Set(A)))};var uhL=function(){th.apply(this,arguments)};
_.O(uhL,th);uhL.prototype.getAssociations=function(){var A=[];this.delegate.descriptionEntity&&A.push(this.delegate.descriptionEntity);this.delegate.creators&&A.push.apply(A,_.ri(this.delegate.creators));this.delegate.theBiggestFan&&A.push(this.delegate.theBiggestFan);return[].concat(_.ri(new Set(A)))};
uhL.prototype.getTypeName=function(){return"fakeVideo"};
var ZoL=function(){th.apply(this,arguments)};
_.O(ZoL,th);ZoL.prototype.getAssociations=function(){return[]};
ZoL.prototype.getTypeName=function(){return"fakeVideoDescription"};var yPp=new _.fU("fantasyRosterViewModel");var Yfv=new _.fU("addFollowUpSurveyCommand");var DAK=new _.fU("getSurveyCommand");var $A$=new _.fU("ratingSurveyOptionRenderer");_.WZ=new _.fU("feedbackEndpoint");var Ndj=new _.fU("reportHistoryTableCellRenderer"),sjj=new _.fU("reportHistoryTableTextCellRenderer"),mAj=new _.fU("reportHistoryTableReasonCellRenderer");_.AVr=new _.fU("flagEndpoint");var QWN=new _.fU("getFlowCommand");var bUW=new _.fU("submitFormWithValidationFlowCommand");var fQL=function(){th.apply(this,arguments)};
_.O(fQL,th);fQL.prototype.getAssociations=function(){return[]};
fQL.prototype.getTypeName=function(){return"flowStateEntity"};var aQj=new _.fU("flowFormState");var TPW=new _.fU("gameCardRenderer");var d$j=new _.fU("accountLinkingStateChangedCommand");var F2M=function(){th.apply(this,arguments)};
_.O(F2M,th);F2M.prototype.getAssociations=function(){return[]};
F2M.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var GSL=new _.fU("changeMiniAppPlayStateCommand");var BPj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(BPj,_.fp);var eu=[1,2,3];var pBY=[0,eu,$py,_.N1X,zH4];var PIy=_.Ph(BPj,pBY),XBL=_.Xc(pBY);var S1N=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(S1N,_.fp);var U$W=[0,_.De,_.s2];var L2N=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(L2N,_.fp);var M_L=[0,_.s2,_.De,-1];var hh=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(hh,_.fp);var lQL=_.Xc([0,1,U$W,_.QH,M_L]);var K2W=new _.fU("miniAppScoreChallengeViewModel");var iU$=new _.fU("miniGameCardViewModel");var JVL=new _.fU("teaserCardViewModel");var V_1=function(){th.apply(this,arguments)};
_.O(V_1,th);V_1.prototype.getAssociations=function(){return[]};
V_1.prototype.getTypeName=function(){return"logoEntity"};_.OUL=new _.fU("feedbackItemRenderer");var n4$=function(){th.apply(this,arguments)};
_.O(n4$,th);n4$.prototype.getAssociations=function(){return[]};
n4$.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.kSp=new _.fU("playerInterstitialRenderer");var IQK=new _.fU("getKidsBlocklistPickerCommand");_.HUv=new _.fU("updateKidsBlacklistEndpoint");var CIM=new _.fU("learningJourneyCanvasCommand");_.up=new _.fU("likeEndpoint");var q1W,o4j,t_L;q1W=new _.fU("addChatItemAction");o4j=new _.fU("removeChatItemAction");t_L=new _.fU("markChatItemAsDeletedAction");_.rVL=new _.fU("setLiveChatCollapsedStateAction");var jWj=function(){th.apply(this,arguments)};
_.O(jWj,th);jWj.prototype.getAssociations=function(){return[]};
jWj.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var R$y=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(R$y,_.fp);var g4p=_.Ph(R$y,[0,1,_.De]);var e$Y=new _.fU("liveChatEndpoint");var h$j=new _.fU("liveChatItemContextMenuEndpoint");var W2L=new _.fU("liveChatReplayEndpoint");_.v4Y=new _.fU("emojiPickerRenderer");var E4r=new _.fU("liveChatAuthorBadgeViewModel");var x$M=new _.fU("deleteLiveChatMessageCommand");var cV9=new _.fU("liveChatActionEndpoint");var z$j=new _.fU("createLiveChatPollEndpoint");var wBY=new _.fU("manageLiveChatUserEndpoint");var u19=new _.fU("moderateLiveChatEndpoint");_.ZU9=new _.fU("sendLiveChatMessageEndpoint");var yV$=new _.fU("sendLiveChatVoteEndpoint");var Y1W=new _.fU("clearLocationCommand");var D$9=new _.fU("resolveLocationCommand");var $$1=new _.fU("interactionLoggingCommandMetadata");var NP1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(NP1,_.fp);var sWr=function(A,Q){return _.Bo(A,1,Q)};var m$j=[0,_.NP];var A29=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(A29,_.fp);var Q1L=function(A,Q){return Jq(A,1,NP1,Q)};A29.prototype.JSC$12055_serializeBinary=hxb([0,_.m_,m$j]);var o4J={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 bn1={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"},
fmY={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 YbC={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"};_.NaX=new _.fU("logFlowLoggingEventCommand");_.H8=new _.fU("loggingContext");var am9=new _.fU("captionLanguageSelectActionCommand");var Tbx=new _.fU("showCaptionLanguageSelectActionCommand");var dFp=new _.fU("dismissDialogEndpoint");var Ffy=new _.fU("dismissPlayerOverlayCommand");var GdM=new _.fU("hideItemSectionVideosByIdCommand");var BbL=new _.fU("showMiniplayerCommand");var pTL=function(){th.apply(this,arguments)};
_.O(pTL,th);pTL.prototype.getAssociations=function(){return[]};
pTL.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var P_v=function(){th.apply(this,arguments)};
_.O(P_v,th);P_v.prototype.getAssociations=function(){return[]};
P_v.prototype.getTypeName=function(){return"downloadStatusEntity"};var XT1=function(){th.apply(this,arguments)};
_.O(XT1,th);XT1.prototype.getAssociations=function(){return[]};
XT1.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var S0L=function(){th.apply(this,arguments)};
_.O(S0L,th);S0L.prototype.getAssociations=function(){var A=[];this.delegate.downloadsList&&A.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&A.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&A.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.ri(new Set(A)))};
S0L.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var UFL=function(){th.apply(this,arguments)};
_.O(UFL,th);UFL.prototype.getAssociations=function(){var A=[];this.delegate.refresh&&A.push(this.delegate.refresh);if(this.delegate.downloads)for(var Q=_.F(this.delegate.downloads),b=Q.next();!b.done;b=Q.next())A.push.apply(A,_.ri((new LfY(b.value)).getAssociations()));return[].concat(_.ri(new Set(A)))};
UFL.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var LfY=function(){oA.apply(this,arguments)};
_.O(LfY,oA);LfY.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playlist&&A.push(this.delegate.playlist);this.delegate.videoItem&&A.push(this.delegate.videoItem);this.delegate.playlistItem&&A.push(this.delegate.playlistItem);return[].concat(_.ri(new Set(A)))};var MbW=function(){th.apply(this,arguments)};
_.O(MbW,th);MbW.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.ri(this.delegate.localImageEntities));return[].concat(_.ri(new Set(A)))};
MbW.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var lmW=function(){th.apply(this,arguments)};
_.O(lmW,th);lmW.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.ri(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ri(new Set(A)))};
lmW.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var KfN=function(){th.apply(this,arguments)};
_.O(KfN,th);KfN.prototype.getAssociations=function(){return[]};
KfN.prototype.getTypeName=function(){return"offlineabilityEntity"};var inL=function(){th.apply(this,arguments)};
_.O(inL,th);inL.prototype.getAssociations=function(){var A=[];this.delegate.fakeChildren&&A.push.apply(A,_.ri(this.delegate.fakeChildren));return[].concat(_.ri(new Set(A)))};
inL.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var J2L=function(){th.apply(this,arguments)};
_.O(J2L,th);J2L.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);return[].concat(_.ri(new Set(A)))};
J2L.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var VbL=function(){th.apply(this,arguments)};
_.O(VbL,th);VbL.prototype.getAssociations=function(){return[]};
VbL.prototype.getTypeName=function(){return"continuationTokenEntity"};var On$=function(){th.apply(this,arguments)};
_.O(On$,th);On$.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.videos&&A.push.apply(A,_.ri(this.delegate.videos));this.delegate.collaboratorChannels&&A.push.apply(A,_.ri(this.delegate.collaboratorChannels));this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.ri(new Set(A)))};
On$.prototype.getTypeName=function(){return"mainPlaylistEntity"};var n7j=function(){th.apply(this,arguments)};
_.O(n7j,th);n7j.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.channelContributor&&A.push(this.delegate.channelContributor);return[].concat(_.ri(new Set(A)))};
n7j.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var kdW=function(){oA.apply(this,arguments)};
_.O(kdW,oA);kdW.prototype.getAssociations=function(){var A=[];this.delegate.recommendedVideoMetadata&&A.push.apply(A,_.ri((new Imx(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.ri(new Set(A)))};
var Imx=function(){oA.apply(this,arguments)};
_.O(Imx,oA);Imx.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.ri(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ri(new Set(A)))};var Hn9=function(){oA.apply(this,arguments)};
_.O(Hn9,oA);Hn9.prototype.getAssociations=function(){var A=[];this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);return[].concat(_.ri(new Set(A)))};var C_K=function(){th.apply(this,arguments)};
_.O(C_K,th);C_K.prototype.getAssociations=function(){var A=[];this.delegate.owner&&A.push(this.delegate.owner);this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.userState&&A.push.apply(A,_.ri((new Hn9(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&A.push.apply(A,_.ri((new kdW(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.ri(new Set(A)))};
C_K.prototype.getTypeName=function(){return"mainVideoEntity"};var q0r=function(){th.apply(this,arguments)};
_.O(q0r,th);q0r.prototype.getAssociations=function(){var A=[];this.delegate.userChannelDetails&&A.push(this.delegate.userChannelDetails);return[].concat(_.ri(new Set(A)))};
q0r.prototype.getTypeName=function(){return"ytMainChannelEntity"};var o7L=function(){th.apply(this,arguments)};
_.O(o7L,th);o7L.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&A.push.apply(A,_.ri(this.delegate.localImageEntities));this.delegate.downloadStatus&&A.push(this.delegate.downloadStatus);return[].concat(_.ri(new Set(A)))};
o7L.prototype.getTypeName=function(){return"ytMainVideoEntity"};var IXU=new _.fU("downloadsPageSmartDownloadsOptInBannerParams");var ogC=new _.fU("downloadsPageUpsellBannerParams");var tbM=function(){th.apply(this,arguments)};
_.O(tbM,th);tbM.prototype.getAssociations=function(){return[]};
tbM.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var r2Y=function(){th.apply(this,arguments)};
_.O(r2Y,th);r2Y.prototype.getAssociations=function(){return[]};
r2Y.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var j1v=function(){th.apply(this,arguments)};
_.O(j1v,th);j1v.prototype.getAssociations=function(){return[]};
j1v.prototype.getTypeName=function(){return"macroMarkerEntity"};var RkM=function(){th.apply(this,arguments)};
_.O(RkM,th);RkM.prototype.getAssociations=function(){return[]};
RkM.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var g7Y=function(){th.apply(this,arguments)};
_.O(g7Y,th);g7Y.prototype.getAssociations=function(){return[]};
g7Y.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var ek$=function(){th.apply(this,arguments)};
_.O(ek$,th);ek$.prototype.getAssociations=function(){return[]};
ek$.prototype.getTypeName=function(){return"playerStateEntity"};var hk1=function(){th.apply(this,arguments)};
_.O(hk1,th);hk1.prototype.getAssociations=function(){return[]};
hk1.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Wfj=function(){th.apply(this,arguments)};
_.O(Wfj,th);Wfj.prototype.getAssociations=function(){return[]};
Wfj.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var v7W=function(){th.apply(this,arguments)};
_.O(v7W,th);v7W.prototype.getAssociations=function(){return[]};
v7W.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.WV=new _.fU("dislikeButtonViewModel");_.vV=new _.fU("likeButtonViewModel");var E7y=new _.fU("videoSummaryContentViewModel");var xFY=new _.fU("videoSummaryParagraphViewModel");var c2W=new _.fU("changeTimelyActionVisibilityCommand");var zkW=new _.fU("hideEngagementPanelEndpoint");var wTY=new _.fU("refreshPanelEndpoint");var urp=new _.fU("scrollToSectionEndpoint");var Znx=new _.fU("seekToVideoTimestampCommand");_.hb=new _.fU("showEngagementPanelEndpoint");var y2r=new _.fU("showTransientPlayerScrimOverlayCommand");var Y0W=new _.fU("toggleEngagementPanelCommand");_.DFY=new _.fU("createBroadcastCommand");var $F1=new _.fU("metadataUpdateCommand");var Nbr=function(){th.apply(this,arguments)};
_.O(Nbr,th);Nbr.prototype.getAssociations=function(){return[]};
Nbr.prototype.getTypeName=function(){return"featuredProductsEntity"};var s19=function(){th.apply(this,arguments)};
_.O(s19,th);s19.prototype.getAssociations=function(){return[]};
s19.prototype.getTypeName=function(){return"pinnedProductEntity"};var mF9=function(){th.apply(this,arguments)};
_.O(mF9,th);mF9.prototype.getAssociations=function(){return[]};
mF9.prototype.getTypeName=function(){return"trendingOfferEntity"};_.A7Y=new _.fU("merchandiseShelfRenderer");var QJL=new _.fU("gridMovieRenderer");_.bbM=new _.fU("movieRenderer");var fO1=function(){th.apply(this,arguments)};
_.O(fO1,th);fO1.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.ri(this.delegate.trackDownloadMetadatas));return[].concat(_.ri(new Set(A)))};
fO1.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var aOK=function(){th.apply(this,arguments)};
_.O(aOK,th);
aOK.prototype.getAssociations=function(){var A=[];this.delegate.downloadedTracks&&A.push.apply(A,_.ri(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&A.push.apply(A,_.ri(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&A.push.apply(A,_.ri(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&A.push.apply(A,_.ri(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&A.push.apply(A,_.ri(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
A.push.apply(A,_.ri(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&A.push.apply(A,_.ri(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&A.push.apply(A,_.ri(this.delegate.metadataOnlyTracks));return[].concat(_.ri(new Set(A)))};
aOK.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var T7r=function(){th.apply(this,arguments)};
_.O(T7r,th);T7r.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.ri(this.delegate.trackDownloadMetadatas));return[].concat(_.ri(new Set(A)))};
T7r.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var dXN=function(){th.apply(this,arguments)};
_.O(dXN,th);dXN.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.ri(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ri(new Set(A)))};
dXN.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var F6L=function(){th.apply(this,arguments)};
_.O(F6L,th);
F6L.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&A.push.apply(A,_.ri(this.delegate.primaryArtists));this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.tracks&&A.push.apply(A,_.ri(this.delegate.tracks));this.delegate.share&&A.push(this.delegate.share);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.refresh&&
A.push(this.delegate.refresh);return[].concat(_.ri(new Set(A)))};
F6L.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Gy$=function(){th.apply(this,arguments)};
_.O(Gy$,th);Gy$.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.tracks&&A.push.apply(A,_.ri(this.delegate.tracks));return[].concat(_.ri(new Set(A)))};
Gy$.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var B7r=function(){th.apply(this,arguments)};
_.O(B7r,th);B7r.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);return[].concat(_.ri(new Set(A)))};
B7r.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var ppj=function(){th.apply(this,arguments)};
_.O(ppj,th);ppj.prototype.getAssociations=function(){var A=[];this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);return[].concat(_.ri(new Set(A)))};
ppj.prototype.getTypeName=function(){return"musicArtist"};
var Prv=function(){th.apply(this,arguments)};
_.O(Prv,th);Prv.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.ri(new Set(A)))};
Prv.prototype.getTypeName=function(){return"musicArtistDetail"};
var XpL=function(){th.apply(this,arguments)};
_.O(XpL,th);XpL.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.ri(new Set(A)))};
XpL.prototype.getTypeName=function(){return"musicArtistUserDetail"};var SzN=function(){th.apply(this,arguments)};
_.O(SzN,th);SzN.prototype.getAssociations=function(){return[]};
SzN.prototype.getTypeName=function(){return"musicLibraryEdit"};var UXM=function(){th.apply(this,arguments)};
_.O(UXM,th);UXM.prototype.getAssociations=function(){return[]};
UXM.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var L6N=function(){th.apply(this,arguments)};
_.O(L6N,th);
L6N.prototype.getAssociations=function(){var A=[];this.delegate.tracks&&A.push.apply(A,_.ri(this.delegate.tracks));this.delegate.refresh&&A.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&A.push(this.delegate.details);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&A.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.entryCollection&&
A.push(this.delegate.entryCollection);this.delegate.share&&A.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&A.push.apply(A,_.ri((new MIY(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.ri(new Set(A)))};
L6N.prototype.getTypeName=function(){return"musicPlaylist"};
var MIY=function(){oA.apply(this,arguments)};
_.O(MIY,oA);MIY.prototype.getAssociations=function(){var A=[];this.delegate.creatorEntity&&A.push(this.delegate.creatorEntity);return[].concat(_.ri(new Set(A)))};var lON=function(){th.apply(this,arguments)};
_.O(lON,th);lON.prototype.getAssociations=function(){return[]};
lON.prototype.getTypeName=function(){return"musicShare"};var K6L=function(){th.apply(this,arguments)};
_.O(K6L,th);
K6L.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&A.push.apply(A,_.ri(this.delegate.artists));this.delegate.audioModeVersion&&A.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&A.push(this.delegate.videoModeVersion);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.details&&A.push(this.delegate.details);this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.share&&
A.push(this.delegate.share);this.delegate.libraryEdit&&A.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.lyrics&&A.push(this.delegate.lyrics);return[].concat(_.ri(new Set(A)))};
K6L.prototype.getTypeName=function(){return"musicTrack"};
var ibW=function(){th.apply(this,arguments)};
_.O(ibW,th);ibW.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.ri(new Set(A)))};
ibW.prototype.getTypeName=function(){return"musicTrackDetail"};
var J7x=function(){th.apply(this,arguments)};
_.O(J7x,th);J7x.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.ri(new Set(A)))};
J7x.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Qa=new _.fU("musicResponsiveListItemRenderer");var EWe=new _.fU("addToPlaylistEndpoint");var VIp=new _.fU("captionPickerEndpoint");var ObK=new _.fU("suggestStats");var nt1=new _.fU("backstageImageUploadEndpoint");var kyW=new _.fU("createBackstagePostDialogEndpoint");_.IOL=new _.fU("createCommentReplyDialogEndpoint");_.Hbj=new _.fU("updateCommentDialogEndpoint");_.Crr=new _.fU("updateCommentReplyDialogEndpoint");var qzL=new _.fU("menuEndpoint");var naY=new _.fU("modalEndpoint");var ot$=new _.fU("playlistEditorEndpoint");var tI$=new _.fU("copyTextEndpoint");var r7L,jJM;r7L=new _.fU("shareEndpoint");jJM=new _.fU("shareEntityEndpoint");_.RtL=new _.fU("shareEntityServiceEndpoint");_.YgY=new _.fU("userFeedbackEndpoint");_.sv=new _.fU("watchEndpoint");var d6W=new _.fU("watchPlaylistEndpoint");var gtp=new _.fU("addUpcomingEventReminderEndpoint");_.Eq=new _.fU("getCommentsFromInboxCommand");var et1=new _.fU("notificationOptOutEndpoint");var htv=new _.fU("recordNotificationInteractionsEndpoint");var W6$=new _.fU("removeUpcomingEventReminderEndpoint");var Wqy=new _.fU("getDownloadActionCommand");_.vty=new _.fU("offlineOrchestrationActionCommand");var Etp=function(){th.apply(this,arguments)};
_.O(Etp,th);Etp.prototype.getAssociations=function(){return[]};
Etp.prototype.getTypeName=function(){return"captionTrack"};var xXy=function(){th.apply(this,arguments)};
_.O(xXy,th);xXy.prototype.getAssociations=function(){return[]};
xXy.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var c79=function(){th.apply(this,arguments)};
_.O(c79,th);c79.prototype.getAssociations=function(){return[]};
c79.prototype.getTypeName=function(){return"offlineVideoPolicy"};var ztY=function(){th.apply(this,arguments)};
_.O(ztY,th);ztY.prototype.getAssociations=function(){return[]};
ztY.prototype.getTypeName=function(){return"offlineVideoStreams"};var wpK=function(){th.apply(this,arguments)};
_.O(wpK,th);wpK.prototype.getAssociations=function(){var A=[];this.delegate.transfer&&A.push(this.delegate.transfer);this.delegate.adsPlaybackData&&A.push.apply(A,_.ri(this.delegate.adsPlaybackData));this.delegate.drmLicense&&A.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.ri(new Set(A)))};
wpK.prototype.getTypeName=function(){return"playbackData"};var uzY=function(){th.apply(this,arguments)};
_.O(uzY,th);uzY.prototype.getAssociations=function(){return[]};
uzY.prototype.getTypeName=function(){return"refresh"};var ZbL=function(){th.apply(this,arguments)};
_.O(ZbL,th);ZbL.prototype.getAssociations=function(){var A=[];this.delegate.offlineVideoStreams&&A.push.apply(A,_.ri(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&A.push.apply(A,_.ri(this.delegate.captionTrack));return[].concat(_.ri(new Set(A)))};
ZbL.prototype.getTypeName=function(){return"transfer"};var y7v=function(){th.apply(this,arguments)};
_.O(y7v,th);y7v.prototype.getAssociations=function(){return[]};
y7v.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Yzx=new _.fU("showMoreDrawerCommand");var DX1=new _.fU("updateEngagementPanelContentCommand");var $XK=new _.fU("getPdgBuyFlowCommand");var N7j=new _.fU("liveChatPurchaseMessageEndpoint");var sJL=new _.fU("openSuperStickerBuyFlowCommand");var mXr=new _.fU("updatePdgFeatureEnablementCommand");var Ahp=function(){th.apply(this,arguments)};
_.O(Ahp,th);Ahp.prototype.getAssociations=function(){return[]};
Ahp.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var QAW=function(){th.apply(this,arguments)};
_.O(QAW,th);QAW.prototype.getAssociations=function(){return[]};
QAW.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.bY9=new _.fU("pdgCommentChipRenderer");_.f6L=new _.fU("permissionRoleBottomBarRenderer");_.a6L=new _.fU("updatePermissionRoleCommand");var TE1=new _.fU("prefetchWatchCommand");var d8v=new _.fU("updatePlayerErrorMessageCommand");var tm6=new _.fU("toggleCaptionsVisibilityCommand");_.FrN=new _.fU("quickActionsViewModel");var Gcy=new _.fU("playerResponse");var BEr=new _.fU("playlistRenderer");_.pVN=new _.fU("playlistVideoListRenderer");_.xj=new _.fU("playlistEditEndpoint");var P3K=new _.fU("createImagePollCommand");var XVK=new _.fU("createQuizCommand");var SqN=new _.fU("quizRenderer");var U8M=new _.fU("uploadedVideoRenderer");var LrK=new _.fU("decorateMessageEndpoint");var Muy=new _.fU("lpOfferCardOptionViewModel");var l6y=new _.fU("sfvAudioItemPlaybackCommand");var Krr=function(){th.apply(this,arguments)};
_.O(Krr,th);Krr.prototype.getAssociations=function(){return[]};
Krr.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.cV=new _.fU("reelNonVideoContentEndpoint");_.CT=new _.fU("reelWatchEndpoint");_.zc=new _.fU("reelItemRenderer");_.iYM=new _.fU("reelMetapanelViewModel");_.Jh9=new _.fU("reelNonVideoContentRenderer");_.Vur=new _.fU("reelPlayerOverlayRenderer");var OYp=new _.fU("shortsLockupViewModel");var njK=new _.fU("sponsorButtonViewModel");var kcL=new _.fU("reelItemWatchResponse");var I6M=new _.fU("textBadgeRenderer");_.wE=new _.fU("buttonRenderer");_.u3=new _.fU("toggleButtonRenderer");var AwA=new _.fU("switchButtonViewModel");_.HYY=new _.fU("confirmDialogRenderer");var C39;C39=new _.fU("menuRenderer");_.qqM=new _.fU("menuFlexibleItemRenderer");var ojL=new _.fU("pollRenderer");_.tuK=new _.fU("backgroundPromoRenderer");var jAj;_.rhN=new _.fU("chipCloudRenderer");jAj=new _.fU("chipCloudChipRenderer");var ROK=new _.fU("dropdownRenderer");var gjK=new _.fU("gridVideoRenderer");_.eO9=new _.fU("itemSectionRenderer");_.hO$=new _.fU("messageRenderer");var WrL=new _.fU("sortFilterHeaderRenderer");_.Z6=new _.fU("videoRenderer");var vjL=new _.fU("resolveUrlCommandMetadata");var EjM=function(){th.apply(this,arguments)};
_.O(EjM,th);EjM.prototype.getAssociations=function(){return[]};
EjM.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.x8p=new _.fU("getAnswerCommand");_.kr=new _.fU("searchEndpoint");var chv=new _.fU("genAiRichTextViewModel");var hy4=new _.fU("overviewAnswerViewModel");var zOL=new _.fU("addToPlaylistServiceEndpoint");var wVM=new _.fU("clearSearchHistoryEndpoint");var ukL=new _.fU("clearWatchHistoryEndpoint");var ZYy=new _.fU("webSerializedServiceEndpointExtension");_.yhv=new _.fU("createCommentEndpoint");var Yqp=new _.fU("createCommentReplyEndpoint");var D81=new _.fU("performCommentActionEndpoint");var $8Y=new _.fU("updateCommentEndpoint");var NE9=new _.fU("updateCommentReplyEndpoint");_.yg=new _.fU("createPlaylistServiceEndpoint");var sAK=new _.fU("deletePlaylistEndpoint");var m8$=new _.fU("deleteVideoEndpoint");var vWU=new _.fU("getReportFormEndpoint");var AYY=new _.fU("modifyChannelNotificationPreferenceEndpoint");var QpA;_.ks=new _.fU("offlinePlaylistEndpoint");QpA={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 bIA;_.n6=new _.fU("offlineVideoEndpoint");bIA={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 QRN=new _.fU("pingingEndpoint");_.b2v=new _.fU("selectActiveIdentityEndpoint");var fX1=new _.fU("setSettingEndpoint");var Qef=new _.fU("undoFeedbackEndpoint");var aXy=new _.fU("unsubscribeEndpoint");_.Tlv=new _.fU("updatedMetadataEndpoint");var dk$=function(){th.apply(this,arguments)};
_.O(dk$,th);dk$.prototype.getAssociations=function(){return[]};
dk$.prototype.getTypeName=function(){return"settingEntity"};_.Fcr=new _.fU("updateLocalAppSettingCommand");var Gmp=new _.fU("saveImageToDeviceEndpoint");var BlK=new _.fU("shareImageCommand");var p1x=new _.fU("sharingProviderDataCommand");var P$y=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(P$y,_.fp);var X1x=[0,_.s2,-1];P$y.prototype.JSC$12256_serializeBinary=hxb(X1x);var SZL=_.Xc(X1x);var Uk9=new _.fU("userMentionSuggestionRenderer");var Lc$=new _.fU("liveChatTunnelCommand");var M3Y=new _.fU("showSponsorshipsGiftOfferDialogCommand");var lX9=new _.fU("sponsorshipsScrollableShelfViewModel");var KcL=new _.fU("updateUpcomingEventReminderButtonStateCommand");var i2L=new _.fU("upcomingEventReminderButtonStateRenderer");var JYr=new _.fU("subscribeEndpoint");var V3p=new _.fU("registerTasksCommand");var O2$=new _.fU("hideSnackbarCommand");var ngL=new _.fU("showDialogCommand");_.C6=new _.fU("showSheetCommand");var kmp=new _.fU("showSnackbarCommand");var IXK=function(){th.apply(this,arguments)};
_.O(IXK,th);IXK.prototype.getAssociations=function(){return[]};
IXK.prototype.getTypeName=function(){return"chipEntity"};var H29=function(){th.apply(this,arguments)};
_.O(H29,th);H29.prototype.getAssociations=function(){return[]};
H29.prototype.getTypeName=function(){return"dismissState"};_.yh=new _.fU("avatarViewModel");var rXy=new _.fU("badgeViewModel");_.jJ=new _.fU("buttonViewModel");_.Yj=new _.fU("chipViewModel");var Pay=new _.fU("collectionThumbnailViewModel");var jaK=new _.fU("contentPreviewImageViewModel");var RGW=new _.fU("decoratedAvatarViewModel");var dvf=new _.fU("downloadButtonViewModel");_.dhe=new _.fU("engagementBarViewModel");_.g3W=new _.fU("imageBannerViewModel");var eGY=new _.fU("lockupContentMetadataRowExtension");_.hGL=new _.fU("lockupMetadataViewModel");_.Wdv=new _.fU("lockupViewModel");var v3v=new _.fU("avatarStackViewModel");_.E3$=new _.fU("contentMetadataViewModel");var xOv=function(){th.apply(this,arguments)};
_.O(xOv,th);xOv.prototype.getAssociations=function(){return[]};
xOv.prototype.getTypeName=function(){return"pageHeaderEntity"};_.cXy=new _.fU("pageHeaderViewModel");var zGM=new _.fU("snackbarViewModel");var w3x=new _.fU("thumbnailHoverOverlayToggleActionsViewModel");_.R$=new _.fU("toggleButtonViewModel");var uIL=function(){th.apply(this,arguments)};
_.O(uIL,th);uIL.prototype.getAssociations=function(){return[]};
uIL.prototype.getTypeName=function(){return"votingEntity"};_.Fsi=new _.fU("votingViewModel");var ZWj=new _.fU("sectionHeaderViewModel");var yXN=new _.fU("notifyDropdownOptionSelectedCommand");var ZIe=new _.fU("listViewModel");_.qI=new _.fU("listItemViewModel");var pw9=new _.fU("toggleableListItemViewModel");var Ykj=new _.fU("dialogHeaderViewModel");var DOx=function(){th.apply(this,arguments)};
_.O(DOx,th);DOx.prototype.getAssociations=function(){return[]};
DOx.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var $OM=function(){th.apply(this,arguments)};
_.O($OM,th);$OM.prototype.getAssociations=function(){return[]};
$OM.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var Nkj=function(){th.apply(this,arguments)};
_.O(Nkj,th);Nkj.prototype.getAssociations=function(){return[]};
Nkj.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.sav=new _.fU("transcriptSubmitCaptionCorrectionCommand");var mO$=function(){th.apply(this,arguments)};
_.O(mO$,th);mO$.prototype.getAssociations=function(){return[]};
mO$.prototype.getTypeName=function(){return"buttonEntity"};var PRX=new _.fU("unpluggedStringRunImage");var A9j=new _.fU("tabViewModel");var Q3K=new _.fU("tabbedViewModel");var b3N=function(){th.apply(this,arguments)};
_.O(b3N,th);b3N.prototype.getAssociations=function(){return[]};
b3N.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.f8y=new _.fU("updateDescriptionAction");var a81=new _.fU("updateToggleButtonTextAction");_.TuK=new _.fU("autoplaySwitchButtonRenderer");var EC;_.dbj=new _.fU("multiMarkersPlayerBarRenderer");EC=new _.fU("chapterRenderer");var FDr=new _.fU("heatMarkerRenderer");var SyW=new _.fU("heatmapRenderer");var GWr=new _.fU("smartSkipPlayerScrimOverlayRenderer");var Bup=new _.fU("timedMarkerDecorationRenderer");var unA=new _.fU("postWebToNativeMessageCommand");var Es=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Es,_.fp);Es.prototype.getMethodName=function(){return _.gA(this,1)};var pJr=[0,_.s2,-2];Es.prototype.JSC$12276_serializeBinary=hxb(pJr);var Pzj=_.Ph(Es,pJr);var XJv=new _.fU("whitelistEditEndpoint");var Snp=new _.fU("clearUrlParamCommand");var Ubj=new _.fU("commerceActionCommand");_.LDM=new _.fU("getPaymentInstrumentsParamsCommand");var MqN=new _.fU("getPaymentsClientTokenCommand");var l8$=new _.fU("googlePaymentBillingCommand");var KDK=new _.fU("googlePaymentPurchaseManagerCommand");_.i3M=new _.fU("logGtmCommand");var J9r=new _.fU("updateCardItemOnClickCommand");_.VqN=new _.fU("ypcPauseSubscriptionCommand");_.O3N=new _.fU("ypcResumeSubscriptionCommand");var nZL=function(){th.apply(this,arguments)};
_.O(nZL,th);nZL.prototype.getAssociations=function(){return[]};
nZL.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var kWK=function(){th.apply(this,arguments)};
_.O(kWK,th);kWK.prototype.getAssociations=function(){return[]};
kWK.prototype.getTypeName=function(){return"commerceCartListEntity"};var I8p=function(){th.apply(this,arguments)};
_.O(I8p,th);I8p.prototype.getAssociations=function(){return[]};
I8p.prototype.getTypeName=function(){return"iconBadgeEntity"};var H3y=function(){th.apply(this,arguments)};
_.O(H3y,th);H3y.prototype.getAssociations=function(){return[]};
H3y.prototype.getTypeName=function(){return"pdpStateEntity"};var CzM=function(){th.apply(this,arguments)};
_.O(CzM,th);CzM.prototype.getAssociations=function(){return[]};
CzM.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var gei=new _.fU("ypcOffersEndpoint");var qnv=new _.fU("cardItemRenderer"),oZL=new _.fU("cardItemTextRenderer");var tq$=new _.fU("commerceCartItemQuantityPickerRenderer");var r9j=new _.fU("linkCardRenderer");var vVC=new _.fU("quantityIncrementerButtonViewModel");var j39=new _.fU("quantityIncrementerViewModel");var Raj=new _.fU("themedImageViewModel");_.gZ9=new _.fU("ypcCancelRecurrenceEndpoint");var eaW=new _.fU("ypcCompleteTransactionEndpoint");_.haL=new _.fU("ypcGetCartEndpoint");_.Tk=new _.fU("ypcGetOffersEndpoint");_.D6=new _.fU("ypcHandleTransactionEndpoint");var WDy=new _.fU("ypcLogWalletAnalyticDataEndpoint");_.vZN=new _.fU("ypcRedeemCodeEndpoint");var EZp=new _.fU("ypcUpdateFopEndpoint");BV(Gc(1),dE(4));t9i((new MessageChannel).port2);var xbp=function(){this.register=new Map},rVb=function(A,Q,b){A=A+"_"+Q;
N8.register.has(A)?b=N8.register.get(A):(b=b(),N8.register.set(A,b));return b},c9N=function(A){A=_.F(A.register.values());
for(var Q=A.next();!Q.done;Q=A.next())_.Mr(Q.value,"ABORTED")};
xbp.prototype.clear=function(){c9N(this);this.register.clear()};
var N8=new xbp;var PI9=Date.now().toString();var U$A=S16();var OUi={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 zav,eU;zav=1;eU=function(A){this.veData=A};
_.t8=function(A){return new eU({trackingParams:A})};
_.K6=function(A,Q,b,f,a,T){var G=zav++;return new eU({veType:A,veCounter:G,elementIndex:b,dataElement:Q,youtubeData:f,jspbYoutubeData:a,loggingDirectives:T})};
_.d=eU.prototype;
_.d.getAsJson=function(){var A={};this.veData.trackingParams!==void 0?A.trackingParams=this.veData.trackingParams:(A.veType=this.veData.veType,this.veData.veCounter!==void 0&&(A.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(A.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(A.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(A.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(A.isCounterfactual=!0);
return A};
_.d.getAsJspb=function(){var A=new AjN;this.veData.trackingParams!==void 0?A.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.E2(A,2,this.veData.veType),this.veData.veCounter!==void 0&&_.E2(A,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.E2(A,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Bo(A,5,!0));if(this.veData.dataElement!==void 0){var Q=this.veData.dataElement.getAsJspb();_.Lp(A,7,Q)}this.veData.youtubeData!==void 0&&_.Lp(A,8,this.veData.jspbYoutubeData);
return A};
_.d.toString=function(){return JSON.stringify(this.getAsJson())};
_.d.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.d.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Al("yt_logging_screen.getRootVeType",iUF);_.Al("yt_logging_screen.getCurrentCsn",_.WR);_.Al("yt_logging_screen.getCttAuthInfo",vR);_.Al("yt_logging_screen.setCurrentScreen",_.Ev);var wJY=function(){this.events=new Map},u6j=function(A){var Q=[];
A=_.F(A.events.values());for(var b=A.next();!b.done;b=A.next())Q.push(b.value);return Q};
wJY.prototype.clear=function(){this.events.clear()};var y9$=function(){this.logTransport=new Z3v;this.loggedEventRegister=new wJY;this.unloggedEventRegister=new wJY;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12313_flushTimer=new _.GL(this.flushInterval);this.JSC$12313_flushTimer.listen("tick",this.flush,!1,this)};
y9$.prototype.flush=function(){if(this.eventsCount){var A={loggedEvents:u6j(this.loggedEventRegister),unloggedEvents:u6j(this.unloggedEventRegister)};if(_.K("export_player_version_to_ytconfig")){var Q;(Q=_.vG("PLAYER_CLIENT_VERSION"))?(Q=Q.split("-")[0].replace(/\./g,""),Q=isNaN(Number(Q))?"0":Q):Q="";var b=_.vG("PLAYER_CLIENT_VERSION");if(b){b=b.split("-");var f="";b.length>1&&(f=b[b.length-1]);b=pBy(f.startsWith("canary_experiment")?"canary":f.startsWith("canary_control")?"control":"none")}else b=
"CLIENT_CANARY_STATE_UNKNOWN";A.dimensions={playerClientVersion:Q,playerCanaryState:b}}this.logTransport.flush(A);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12313_flushTimer.enabled&&this.JSC$12313_flushTimer.stop()}};
var YnN=function(A){sq==null&&(sq=new y9$);var Q=sq;var b=Q.loggedEventRegister;A.dimensions=A.dimensions||{};A.dimensions.csn=_.WR()||"";var f=IQU(A.dimensions).join(";");if(A.records!=null)if(b.events.has(f)){var a;(a=b.events.get(f).records)==null||a.push.apply(a,_.ri(A.records))}else b.events.set(f,A);Q.JSC$12313_flushTimer.enabled||Q.JSC$12313_flushTimer.start();Q.eventsCount++;Q.eventsCount>=100&&Q.flush()};var Z3v=function(){};
Z3v.prototype.flush=function(A,Q){_.K("enable_client_sli_logging")&&_.R4("sliEventBatch",A,{sendIsolatedPayload:!!Q})};var sq;var $bM;$bM=function(A){var Q=Dbp;A=A===void 0?{}:A;Q=Q.name;var b=t_i("SUCCESS");YnN({dimensions:A,records:[{name:Q,state:"SLI_STATE_END",status:b}]})};
_.jWJ=function(A,Q,b,f){this.name=A;this.sliId=Q;this.timeoutMs=b;this.statusOnTimeout=f;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.jWJ.prototype.getId=function(){return this.sliId};
_.L7=function(A,Q){Q=Q===void 0?{}:Q;A.ongoing||(A.ongoing=!0,A.dimensions=Q,A.logSliId=osv(),YnN({dimensions:A.dimensions,records:[{name:A.name,state:"SLI_STATE_START",sliId:A.logSliId}]}),A.timeoutMs>0&&(A.timeoutHandle=setTimeout(function(){_.Mr(A,A.statusOnTimeout)},A.timeoutMs)))};
_.Mr=function(A,Q){A.ongoing&&(A.timeoutMs>0&&clearTimeout(A.timeoutHandle),A.ongoing=!1,Q={dimensions:A.dimensions,records:[{name:A.name,status:t_i(Q),state:"SLI_STATE_END",sliId:A.logSliId}]},N8.register.delete(A.name+"_"+A.sliId),YnN(Q))};var Dbp=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Nuy=function(){th.apply(this,arguments)};
_.O(Nuy,th);Nuy.prototype.getAssociations=function(){return[]};
Nuy.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var YaA=new _.fU("highlightTextDecoratorColorMapExtension");var ZXi=new _.fU("styleRunColorMapExtension");var E4X=_.sC(["data-"]),z$J={};var u1W={};var mr=function(A){this.wrappedPromise_=A===void 0?null:A;this.state_=0;this.JSC$12345_value_=null};
mr.prototype.then=function(A,Q,b){return this.wrappedPromise_?this.wrappedPromise_.then(A,Q,b):this.state_===1&&A?(A=A.call(b,this.JSC$12345_value_))&&typeof A.then==="function"?A:_.AY(A):this.state_===2&&Q?(A=Q.call(b,this.JSC$12345_value_))&&typeof A.then==="function"?A:_.s3$(A):this};
mr.prototype.getValue=function(){return this.JSC$12345_value_};
mr.prototype.isRejected=function(){return this.state_==2};
Yip(mr);_.s3$=function(A){var Q=new mr;A=A===void 0?null:A;Q.state_=2;Q.JSC$12345_value_=A===void 0?null:A;return Q};
_.AY=function(A){var Q=new mr;A=A===void 0?null:A;Q.state_=1;Q.JSC$12345_value_=A===void 0?null:A;return Q};var dFY="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var mbN=["load","abort","error"],Q2=function(A,Q,b){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12365_maxAspectRatio_=A;this.disableAnimation_=Q===void 0?!1:Q;this.disableExifRotation_=b===void 0?!1:b;this.JSC$12365_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12365_reject_=this.resolve_=null};
Q2.prototype.transform=function(A){var Q=this;this.mime_=A.type;s3($jM(A),this.dataUrlRead_,this.readError_,this);s3(Dj1(A.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(b,f){Q.resolve_=b;Q.JSC$12365_reject_=f})};
Q2.prototype.dataUrlRead_=function(A){this.dataUrl_=A;this.angle_!=null&&AFM(this)};
Q2.prototype.exifRead_=function(A){if(this.disableExifRotation_)this.angle_=0;else{a:if(A=new DataView(A),A.byteLength<2||A.getUint16(0)!==65496)A=-2;else{for(var Q=2,b=A.byteLength;Q<b;){var f=A.getUint16(Q),a=A.getUint16(Q+2);if(f===65505){Q+=4;f=A.getUint32(Q);a=A.getUint16(Q+4);if(f!==1165519206||a!==0)break;Q+=6;f=A.getUint16(Q)===18761;Q+=A.getUint32(Q+4,f);a=A.getUint16(Q,f);Q+=2;for(var T=0;T<a;T++){if(A.getUint16(Q,f)===274){Q+=8;A=A.getUint16(Q,f);break a}Q+=12}}else if(f>>8!==255)break;
else Q+=a+2}A=-1}switch(A){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&&AFM(this)};
Q2.prototype.readError_=function(){this.JSC$12365_reject_()};
var AFM=function(A){q7(A.JSC$12365_image_,mbN,A.completeTransform_,!1,A);A.JSC$12365_image_.src=_.hs(A.dataUrl_).toString();A.JSC$12365_image_.src!=ed.toString()&&A.JSC$12365_image_.src.substr(0,11)==="data:image/"||A.JSC$12365_reject_()};
Q2.prototype.completeTransform_=function(){if(this.JSC$12365_image_.src!=ed.toString()){var A=_.hs(this.dataUrl_),Q=this.JSC$12365_image_.naturalHeight?this.JSC$12365_image_.naturalWidth/this.JSC$12365_image_.naturalHeight:null;this.invalidAspectRatio=Q>this.JSC$12365_maxAspectRatio_||Q<1/this.JSC$12365_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var b=this.JSC$12365_image_.naturalWidth,f=this.JSC$12365_image_.naturalHeight,a=Q=0,T=this.JSC$12365_image_.naturalHeight?this.JSC$12365_image_.naturalWidth/
this.JSC$12365_image_.naturalHeight:null;T>this.JSC$12365_maxAspectRatio_?(b=this.JSC$12365_maxAspectRatio_*f,Q=(b-this.JSC$12365_image_.naturalWidth)/2,this.cropped=!0):T<1/this.JSC$12365_maxAspectRatio_?(f=this.JSC$12365_maxAspectRatio_*b,a=(f-this.JSC$12365_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)T=b,b=f,f=T,T=Q,Q=a,a=T;switch(this.angle_){case 90:a-=b;break;case 180:Q-=b;a-=f;break;case 270:Q-=
f}this.cropped||this.angle_%360!==0?(A=document.createElement("canvas"),A.width=b||1,A.height=f||1,this.JSC$12365_image_.naturalWidth&&this.JSC$12365_image_.naturalHeight&&(b=A.getContext("2d"),b.rotate(Math.PI/180*this.angle_),b.drawImage(this.JSC$12365_image_,Q,a,this.JSC$12365_image_.naturalWidth,this.JSC$12365_image_.naturalHeight)),this.transformedData=_.hs(A.toDataURL(this.mime_))):this.transformedData=A}else this.transformedData=A;this.resolve_(this)}};var b$=function(A,Q){_.J1.call(this,A);this.value=Q};
_.O(b$,_.J1);
var f2=function(A,Q,b,f,a,T,G){G=G===void 0?!1:G;_.IH.call(this);var p=this;this.JSC$12370_url_=A;this.channelId_=Q;this.maxFileSizeMb_=b;this.JSC$12370_maxAspectRatio_=f;this.dropZoneEl_=a;this.rejectInvalidAspectRatio_=G;this.selectButtonEl_=T;this.JSC$12370_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new l3(this.dropZoneEl_);this.selectOverlay_=new KY(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12370_image_=this.transfer_=null;this.handler_=new _.BR(this);_.SY(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(T,"click",function(){p.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.O(f2,_.IH);f2.prototype.disposeInternal=function(){for(var A=this.selectButtonEl_.nextSibling;A&&A.parentNode&&A.tagName=="INPUT";)A.parentNode.removeChild(A),A=this.selectButtonEl_.nextSibling;this.cancel();_.IH.prototype.disposeInternal.call(this)};
f2.prototype.uploadPromise=function(){if(this.JSC$12370_image_==null)return null;this.uploadPromise_||QEL(this);return this.uploadPromise_};
f2.prototype.cancel=function(){bVx(this);this.JSC$12370_image_=null};
var bVx=function(A){A.transfer_&&A.transfer_.cancel();A.transfer_=null;A.uploadPromise_=null;A.resolve_=null;A.JSC$12370_reject_=null},QEL=function(A){bVx(A);
A.transfer_=_.SJM(A.JSC$12370_url_,{"X-YouTube-ChannelId":A.channelId_},A.JSC$12370_image_);A.handler_.listenOnce(A.transfer_,"l",A.JSC$12372_onUploadComplete_);A.handler_.listenOnce(A.transfer_,"n",A.onUploadError_);A.transfer_.run();A.uploadPromise_=new Promise(function(Q,b){A.resolve_=Q;A.JSC$12370_reject_=b})};
_.d=f2.prototype;_.d.onChange_=function(A){A.files.length&&(this.JSC$12370_image_=A.files[0],this.JSC$12370_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12370_image_=null,this.dispatchEvent(new b$("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(QEL(this),(new Q2(this.JSC$12370_maxAspectRatio_)).transform(this.JSC$12370_image_).then((0,_.IL)(this.onPreview_,this),(0,_.IL)(this.onPreviewError_,this))))};
_.d.onPreview_=function(A){if(A.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12370_image_=null),this.dispatchEvent(new b$("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;A.cropped&&this.dispatchEvent(new b$("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new b$("yt.comments.ImageUploadOverlay.CHANGE_EVENT",A.transformedData))};
_.d.onPreviewError_=function(){this.JSC$12370_image_=null;this.dispatchEvent(new b$("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.d.onHover_=function(A){A.stopPropagation();A.preventDefault();if(A.type==="dragover")A=!0;else if(A.type==="dragleave")A=!1;else return;this.dispatchEvent(new b$("yt.comments.ImageUploadOverlay.HOVER_EVENT",A))};
_.d.JSC$12372_onUploadComplete_=function(){var A=(0,_.KK$)(this.transfer_.getResponseText());this.resolve_(A.encryptedBlobId)};
_.d.onUploadError_=function(){this.JSC$12370_reject_();bVx(this)};var fJW=function(A){A=A||{};var Q={},b={};this.url=A.url||"";this.args=A.args||_.j2.clone(Q);this.assets=A.assets||{};this.attrs=A.attrs||_.j2.clone(b);this.fallback=A.fallback||null;this.fallbackMessage=A.fallbackMessage||null;this.html5=!!A.html5;this.disable=A.disable||{};this.loaded=!!A.loaded;this.messages=A.messages||{}};
fJW.prototype.clone=function(){var A=new fJW,Q;for(Q in this)if(this.hasOwnProperty(Q)){var b=this[Q];_.uY(b)=="object"?A[Q]=_.j2.clone(b):A[Q]=b}return A};var aJL,TSL,dCy,Ab,GvW,BSK,pbN,PFL,XbL,SEL,UC$,Lxx,MGj,lJ1,KxW,iV1,JFM,VGL,OVY,nXy,kvN,IJW,HVY,CFM,qEY,oXL,tG$,rF$,jE$,bye,R0x,gXW,e0y,h0M,WxL,vXp,EXL,xCY,cFM,z0x,QGe,wbj,uJ9,ZVv,yFM,YEp,DCL,$Cv,NSN,sEM,mCx,ACW,QSY,baj,f_Y,a_p,aR,T8L,d69,FZK,GTj,B8x,pFv,PVL,XF$,SPN,U6y,LZr,M4j,l_M,KZL,ia9,JCL,V4x,Oa$,m9y,nJv,kTr,I_L,HaY,CVM,qPx,oJW,t4N,rCj,jSM,RR9,gJK,eRM,hRp,WZN,vJy,EJN,x6L,cCj,zR1,wFM,uNr,Za9,yCL,YPN;aJL=["account/accounts_list"];TSL=["acknowledge_channel_tou_strike"];dCy=["notification/add_upcoming_event_reminder"];
_.FxK=["att/get"];Ab=["browse","music/browse","unplugged/browse"];GvW=["channel/claim_legacy_youtube_channel"];BSK=["history/clear_search_history"];pbN=["history/clear_watch_history"];PFL=["comment/perform_comment_action"];XbL=["comment/get_comment_replies"];SEL=["ypc/commerce_action"];UC$=["backstage/create_post"];Lxx=["live/create_broadcast"];MGj=["channel/create_channel"];lJ1=["comment/create_comment_reply"];KxW=["comment/create_comment"];iV1=["live_chat/create_poll"];JFM=["playlist/create"];
VGL=["decorate_message"];OVY=["live_chat/delete_message"];nXy=["playlist/delete"];kvN=["video/delete"];IJW=["like/dislike"];HVY=["dismissal/dismiss"];CFM=["flag/flag"];qEY=["flow"];oXL=["account/account_menu"];tG$=["playlist/get_add_to_playlist"];rF$=["get_answer"];jE$=["channel/get_channel_creation_form"];bye=["offline/get_download_action"];R0x=["kids/get_kids_blocklist_picker"];gXW=["live_chat/get_item_context_menu"];e0y=["live_chat/get_live_chat_message_buy_flow"];h0M=["live_chat/get_live_chat_replay"];
WxL=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];vXp=["live_chat/get_live_chat_super_sticker_buy_flow"];EXL=["notification/get_notification_menu"];xCY=["playlist/get_settings_editor"];cFM=["backstage/get_post_video_preview"];z0x=["account/get_profile_card"];QGe=["share/get_share_panel"];wbj=["share/get_sharing_provider_data"];uJ9=["get_survey"];ZVv=["notification/get_unseen_count"];yFM=["get_user_mention_suggestions"];YEp=["get_watch"];DCL=["guide"];
$Cv=["feedback"];NSN=["kids/update_blacklist"];sEM=["like/like"];mCx=["live_chat/live_chat_action"];ACW=["live_chat/manage_user"];QSY=["video_manager/metadata_update"];baj=["live_chat/moderate"];f_Y=["notification/modify_channel_preference"];a_p=["notification/opt_out"];aR=["get_panel","get_posts_by_host_panel"];T8L=["player"];d69=["browse/edit_playlist"];FZK=["notification/record_interactions"];GTj=["reel/reel_item_watch"];B8x=["reel/reel_watch_sequence"];pFv=["like/removelike"];PVL=["notification/remove_upcoming_event_reminder"];
XF$=["flag/get_form"];SPN=["miniapp/report_value"];U6y=["navigation/resolve_url"];LZr=["channel/reveal_business_email"];M4j=["in_video/search"];l_M=["search","sfv/search","unplugged/search"];KZL=["live_chat/send_message"];ia9=["live_chat/send_live_chat_vote"];JCL=["account/set_setting"];V4x=["submit_caption_correction"];Oa$=["subscription/subscribe"];m9y=["get_transcript"];nJv=["resolve_location","unplugged/resolve_location"];kTr=["subscription/unsubscribe"];I_L=["backstage/update_post"];HaY=["channel_edit/update_channel_page_settings"];
CVM=["comment/update_comment_reply"];qPx=["comment/update_comment"];oJW=["comment/update_comments_settings"];t4N=["creator/update_creator_channel"];rCj=["pdg/update_enablement"];jSM=["updated_metadata"];RR9=["channel_edit/validate_channel_handle"];gJK=["verify_age"];eRM=["next","unplugged/watch_next"];hRp=["whitelist/edit"];WZN=["ypc/cancel_recurrence"];vJy=["ypc/complete_transaction"];EJN=["ypc/get_cart"];x6L=["ypc/get_fix_instrument_params"];cCj=["ypc/get_offers"];zR1=["ypc/get_payment_instruments_params"];
wFM=["ypc/handle_transaction"];uNr=["ypc/log_payment_server_analytics"];Za9=["ypc/pause_subscription"];yCL=["ypc/redeem_code"];YPN=["ypc/resume_subscription"];var D6Y=[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,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,
72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,
211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,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,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,
75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,
130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,
203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,
67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,
93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var ii=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Al("yt.msgs_",ii);var Tm=new _.TS("ACTION_ROUTER_TOKEN");_.dl=function(){this.autonavState_=_.K("kevlar_is_pupi_enabled")?2:Kf6()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.dl.prototype.getState=function(){return this.autonavState_};
_.dl.prototype.pause=function(A){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=A):this.autonavState_==1&&(this.disabledAutonavPauseReason_=A)};
_.dl.prototype.setState=function(A,Q,b){Q&&(this.autoplayChangedByUser=!0);Q=this.autonavState_===3||A===3;this.autonavState_!=A&&(this.autonavState_=A,A!=3&&_.inb(A==2),A=_.K("kevlar_is_pupi_enabled")?b||Q:!0,_.Yk.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,A,b))};
_.dl.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.FY(_.dl);var FE=function(){this.hasRun=!1};var Gm={},tbe=(Gm.auto_search="LATENCY_ACTION_AUTO_SEARCH",Gm.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Gm.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Gm.app_startup="LATENCY_ACTION_APP_STARTUP",Gm.browse="LATENCY_ACTION_BROWSE",Gm.cast_splash="LATENCY_ACTION_CAST_SPLASH",Gm.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Gm.channels="LATENCY_ACTION_CHANNELS",Gm.chips="LATENCY_ACTION_CHIPS",Gm.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Gm.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Gm.editor="LATENCY_ACTION_EDITOR",Gm.embed="LATENCY_ACTION_EMBED",Gm.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Gm.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Gm.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Gm.explore="LATENCY_ACTION_EXPLORE",Gm.favorites="LATENCY_ACTION_FAVORITES",Gm.home="LATENCY_ACTION_HOME",Gm.inboarding="LATENCY_ACTION_INBOARDING",Gm.landing="LATENCY_ACTION_LANDING",Gm.learning="LATENCY_ACTION_LEARNING",
Gm.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Gm.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Gm.library="LATENCY_ACTION_LIBRARY",Gm.live="LATENCY_ACTION_LIVE",Gm.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Gm.management="LATENCY_ACTION_MANAGEMENT",Gm.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Gm.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Gm.onboarding="LATENCY_ACTION_ONBOARDING",Gm.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Gm.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Gm.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Gm.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Gm.prebuffer="LATENCY_ACTION_PREBUFFER",Gm.prefetch="LATENCY_ACTION_PREFETCH",Gm.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Gm.profile_switcher="LATENCY_ACTION_LOGIN",Gm.projects="LATENCY_ACTION_PROJECTS",Gm.reel_watch="LATENCY_ACTION_REEL_WATCH",Gm.results="LATENCY_ACTION_RESULTS",Gm.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Gm.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Gm.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Gm.review="LATENCY_ACTION_REVIEW",Gm.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Gm.search_ui="LATENCY_ACTION_SEARCH_UI",Gm.search_suggest="LATENCY_ACTION_SUGGEST",Gm.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Gm.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Gm.seek="LATENCY_ACTION_PLAYER_SEEK",Gm.settings="LATENCY_ACTION_SETTINGS",Gm.store="LATENCY_ACTION_STORE",
Gm.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Gm.tenx="LATENCY_ACTION_TENX",Gm.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Gm.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Gm.watch="LATENCY_ACTION_WATCH",Gm.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Gm["watch,watch7"]="LATENCY_ACTION_WATCH",Gm["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Gm["watch,watch7ad"]="LATENCY_ACTION_WATCH",Gm["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Gm.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Gm.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Gm.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Gm.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Gm.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Gm.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Gm.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Gm.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Gm),Znf=0;var s1W=function(A,Q){tV.call(this,1,arguments);this.timer=Q};
_.O(s1W,tV);var NbX=new BnC("aft-recorded",s1W);var g7y=_.by.ytLoggingGelSequenceIdObj_||{};_.Al("ytLoggingGelSequenceIdObj_",g7y);var B1=_.by.ytLoggingLatencyUsageStats_||{};_.Al("ytLoggingLatencyUsageStats_",B1);var p2=function(){this.cleanupJob=0},WfJ=function(){p2.instance||(p2.instance=new p2);
return p2.instance};
_.d=p2.prototype;_.d.baseline=function(A,Q,b){P1(this,"baseline_"+A)||_.R4("latencyActionBaselined",{clientActionNonce:A},{timestamp:Q,cttAuthInfo:b})};
_.d.tick=function(A,Q,b,f){P1(this,"tick_"+A+"_"+Q)||_.R4("latencyActionTicked",{tickName:A,clientActionNonce:Q},{timestamp:b,cttAuthInfo:f})};
_.d.info=function(A,Q,b){var f=Object.keys(A).join("");P1(this,"info_"+f+"_"+Q)||(A=Object.assign({},A),A.clientActionNonce=Q,_.R4("latencyActionInfo",A,{cttAuthInfo:b}))};
_.d.jspbInfo=function(A,Q,b){for(var f="",a=0;a<tM(A).length;a++)tM(A)[a]!==void 0&&(f=a===0?f.concat(""+a):f.concat("_"+a));P1(this,"info_"+f+"_"+Q)||(_.nt(A,2,Q),Q={cttAuthInfo:b},b=_.K("jspb_sparse_encoded_pivot")?new I4([{}]):new I4,_.Ms(b,7,L7v,A),ekF("latencyActionInfo",b,Q))};
_.d.span=function(A,Q,b){var f=Object.keys(A).join("");P1(this,"span_"+f+"_"+Q)||(A.clientActionNonce=Q,_.R4("latencyActionSpan",A,{cttAuthInfo:b}))};
var P1=function(A,Q){B1[Q]=B1[Q]||{count:0};var b=B1[Q];b.count++;b.time=(0,_.f4)();A.cleanupJob||(A.cleanupJob=_.Hv(_.j7,function(){var f=(0,_.f4)(),a;for(a in B1)B1[a]&&f-B1[a].time>6E4&&delete B1[a];A&&(A.cleanupJob=0)},5E3));
return b.count>5?(b.count===6&&Math.random()*1E5<1&&(b=new _.IO("CSI data exceeded logging limit with key",Q.split("_")),Q.indexOf("plev")>=0||_.Wv(b)),!0):!1};var $6L,N8M;$6L=window;N8M=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.qB=$6L.performance||$6L.mozPerformance||$6L.msPerformance||$6L.webkitPerformance||new N8M;var $FC=!1,E79=!1,mFW=(0,_.IL)(_.qB.clearResourceTimings||_.qB.webkitClearResourceTimings||_.qB.mozClearResourceTimings||_.qB.msClearResourceTimings||_.qB.oClearResourceTimings||_.nw,_.qB);var sSL=window;sSL.ytcsi&&(sSL.ytcsi.infoGel=_.g2,sSL.ytcsi.tick=_.hQ);var Pr4=function(A){tV.call(this,1,arguments);this.csn=A};
_.O(Pr4,tV);var UJf=new BnC("screen-created",Pr4),CrX=[],ppJ=HbJ,qzi=0,cn=new Map,Xpi=new Map,Sz6=new Map;var t5f=Symbol("uf"),AH=new WeakMap;var XE=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},C0=function(){XE.instance||(XE.instance=new XE);
return XE.instance};
_.d=XE.prototype;_.d.setClient=function(A){this.client=A};
_.d.JSC$12451_newScreen=function(){this.clear();this.csn=_.WR()};
_.d.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.d.reportShown=function(A,Q,b){var f=this.JSC$12451_getTrackingParams(A),a=A.visualElement?A.visualElement:f;Q=this.shownElements.has(a);var T=this.visibleState.get(a);this.shownElements.add(a);this.visibleState.set(a,!0);A.impressionLog&&!Q&&A.impressionLog();if(f||A.visualElement)if(b=m6L(this,A,b))if(a=ASY(this,A),S3(this,A)||a){f=A.visualElement?A.visualElement:_.t8(f);var G=A.interactionLoggingClientData;a||Q?S3(this,A)&4?T||VIY(this.client,b,f,G):S3(this,A)&1&&!Q&&K6i(this.client,b,f,G):K6i(this.client,
b,f,G)}};
_.d.reportHidden=function(A,Q,b){var f=this.JSC$12451_getTrackingParams(A),a=A.visualElement?A.visualElement:f;Q=this.hiddenElements.has(a);var T=this.visibleState.get(a);this.hiddenElements.add(a);this.visibleState.set(a,!1);if(T===!1)return!0;if(!f&&!A.visualElement)return!1;b=m6L(this,A,b);if(!b||!S3(this,A)&&ASY(this,A))return!1;f=A.visualElement?A.visualElement:_.t8(f);S3(this,A)&8?ObU(this.client,b,f):S3(this,A)&2&&!Q&&(A=this.client,Q=x_({cttAuthInfo:vR(b)||void 0},b),f={csn:b,ve:f.getAsJson(),
eventType:2},b==="UNDEFINED_CSN"?w2("visualElementHidden",Q,f):A?tq("visualElementHidden",f,A,Q):_.R4("visualElementHidden",f,Q));return!0};
_.d.JSC$12451_getTrackingParams=function(A){var Q=this.getData(A),b,f;if(_.K("il_use_view_model_logging_context")&&(Q==null?0:(b=Q.context)==null?0:(f=b.loggingContext)==null?0:f.loggingDirectives))return Q.context.loggingContext.loggingDirectives.trackingParams||"";var a,T;if(Q==null?0:(a=Q.rendererContext)==null?0:(T=a.loggingContext)==null?0:T.loggingDirectives)return Q.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(Q==null?0:Q.loggingDirectives)return Q.loggingDirectives.trackingParams||
"";var G;return((G=A.veContainer)==null?0:G.trackingParams)?A.veContainer.trackingParams:(Q==null?void 0:Q.trackingParams)||""};
_.d.JSC$12451_elementShouldLogGesture=function(A,Q){A=this.getData(A);return!!((Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.gestures&&A.loggingDirectives.gestures.types||""))||0)&Q)};
_.d.JSC$12451_getNearestParentVe=function(A){var Q=this.JSC$12451_getTrackingParams(A);return A.visualElement?A.visualElement:Q?_.t8(Q):A.parentElement?this.JSC$12451_getNearestParentVe(A.parentElement):null};
var m6L=function(A,Q,b){var f=_.WR(b);return A.csn===null||f===A.csn||b?f:(A=new _.IO("VisibilityLogger called before newScreen",{caller:Q.tagName,previous_csn:A.csn,current_csn:f}),_.Wv(A),null)};
XE.prototype.getData=function(A){var Q,b=A.data||((Q=A.props)==null?void 0:Q.data);if(!b||A.isWebComponentWrapper){var f;b=(f=AH.get(A))==null?void 0:f[t5f]}return b};
var ASY=function(A,Q){var b;return!((b=A.getData(Q))==null||!b.loggingDirectives)},S3=function(A,Q){A=A.getData(Q);
return Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.visibility&&A.loggingDirectives.visibility.types||""))||1};var UZ;UZ=function(){};
_.n0=function(){UZ.instance||(UZ.instance=new UZ);return UZ.instance};
UZ.prototype.setClient=function(A){_.cG(C0().setClient).bind(C0())(A)};
_.QZL=function(){_.n0();_.cG(C0().JSC$12451_newScreen).bind(C0())()};
UZ.prototype.clear=function(){_.cG(C0().clear).bind(C0())()};
UZ.prototype.reportShown=function(A,Q,b){_.cG(C0().reportShown).bind(C0())(A,Q,b)};
UZ.prototype.reportHidden=function(A,Q,b){return _.cG(C0().reportHidden).bind(C0())(A,Q,b)};
var y6e=function(A,Q){return _.cG(C0().JSC$12451_getTrackingParams).bind(C0())(Q)},rIU=function(A,Q){return _.cG(C0().JSC$12451_getNearestParentVe).bind(C0())(Q)};var L2,b_y;L2=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};
_.IP=function(){L2.instance||(L2.instance=new L2);return L2.instance};
L2.prototype.setClient=function(A){this.client=A};
b_y=function(A,Q,b){b=b===void 0?{}:b;_.cG(function(){var f,a,T,G=((f=_.V(Q==null?void 0:Q.commandMetadata,_.KD))==null?void 0:f.rootVe)||((a=_.V(Q==null?void 0:Q.commandMetadata,$$1))==null?void 0:(T=a.screenVisualElement)==null?void 0:T.uiType);if(G){f=_.V(Q==null?void 0:Q.commandMetadata,vjL);if(f==null?0:f.parentTrackingParams){var p=_.t8(f.parentTrackingParams);if(f.parentCsn)var P=f.parentCsn}else b.clickedVisualElement?p=b.clickedVisualElement:Q.clickTrackingParams&&(p=_.t8(Q.clickTrackingParams));
a:{f=_.V(Q,_.sv);a=_.V(Q,d6W);if(f){if(a=J2b(f,"VIDEO")){f={token:a,videoId:f.videoId};break a}}else if(a&&(f=J2b(a,"PLAYLIST"))){f={token:f,playlistId:a.playlistId};break a}f=void 0}b=Object.assign({},{cttAuthInfo:f,parentCsn:P},b);if(_.K("expectation_logging")){var U;b.loggingExpectations=((U=_.V(Q==null?void 0:Q.commandMetadata,$$1))==null?void 0:U.loggingExpectations)||void 0}_.Mk(A,G,p,b)}else _.Wv(new _.IO("Error: Trying to create a new screen without a rootVeType",Q))})()};
_.Mk=function(A,Q,b,f){f=f===void 0?{}:f;_.cG(function(){D6Y.includes(Q)||(_.Wv(new _.IO("createClientScreen() called with a non-page VE",Q)),Q=83769);f.isHistoryNavigation||(A.forwardHistoryStack=[],A.backHistoryStack.push({rootVe:Q,key:f.key||""}));A.graftQueue=[];A.stateChangedQueue=[];f.dataPromises?fxL(A,Q,b,f):axp(A,Q,b,f)})()};
_.Twx=function(A,Q,b){b=b===void 0?0:b;_.cG(function(){Q.then(function(f){A.pendingScreenCreation.has(b)&&A.pendingScreenFn&&A.pendingScreenFn();var a=_.WR(b),T=_.hx(b);if(a&&T){var G={automatedLogEventSource:3},p;(f==null?0:(p=f.response)==null?0:p.trackingParams)&&zo(A.client,a,T,_.t8(f.response.trackingParams),!1,G);var P;(f==null?0:(P=f.playerResponse)==null?0:P.trackingParams)&&zo(A.client,a,T,_.t8(f.playerResponse.trackingParams),!1,G)}})})()};
L2.prototype.graftServerVe=function(A,Q,b){var f=this;return _.cG(function(){var a=_.t8(A);_.l$(f,a,Q,b);return a})()};
_.jQX=function(A,Q,b,f){return _.K("enable_client_ve_spec")&&Q.clientVeSpec?(Q=_.K6(Q.clientVeSpec.uiType,void 0,Q.clientVeSpec.elementIndex,Q.clientVeSpec.clientYoutubeData,void 0,Q),_.l$(A,Q,b,f)?Q:null):Q.trackingParams?A.graftServerVe(Q.trackingParams,b,f):null};
_.kz=function(A,Q,b,f){return _.cG(function(){if(!Q.veType)return _.hq(new _.IO("Error: Trying to graft a client VE without a veType.")),null;if(Q.visibilityTypes){var a=Q.visibilityTypes.reduce(function(T,G){return T|G});
a={visibility:{types:String(a)}}}a=_.K6(Q.veType,Q.visualElement,Q.elementIndex,Q.clientYouTubeData,void 0,a);return _.l$(A,a,b,f)?a:null})()};
_.l$=function(A,Q,b,f){f=f===void 0?0:f;return _.cG(function(){if(A.pendingScreenCreation.has(f))return A.graftQueue.push([Q,b]),!0;var a=_.WR(f),T=b||_.hx(f);if(a&&T){if(_.K("combine_ve_grafts")){var G=A.cachedVisualElements.get(T.toString());G?G.push(Q):(A.cachedRootVisualElements.set(T.toString(),T),A.cachedVisualElements.set(T.toString(),[Q]));A.attachTimeout||(A.attachTimeout=_.Hv(_.j7,function(){d0r(A,a)},1200))}else zo(A.client,a,T,Q);
return!0}return!1})()};
_.K2=function(A,Q,b){b=b===void 0?0:b;var f=A.recurringGrafts.get(b)||new Map;if(_.K("smarter_ve_dedupping"))for(var a=Array.from(f.keys()),T=0;T<a.length;T++){var G=void 0,p=void 0;var P=Q;var U=a[T];U.isClientVe()&&P.isClientVe()?(G=P.getAsJson(),p=U.getAsJson(),P=G.veType!==p.veType||G.elementIndex!==p.elementIndex||G.dataElement!==p.dataElement||P.getLoggingDirectives()!==U.getLoggingDirectives()?!1:!0):P=U.veData.trackingParams!==void 0&&P.veData.trackingParams!==void 0?((p=P.veData)==null?void 0:
p.trackingParams)===((G=U.veData)==null?void 0:G.trackingParams):!1;if(P)return}else if(f.has(Q))return;f.set(Q,void 0);A.recurringGrafts.set(b,f);_.WR(b)==="UNDEFINED_CSN"||A.pendingScreenCreation.has(b)||_.l$(A,Q,void 0,b)};
_.i$=function(A,Q,b,f){f=_.WR(f===void 0?0:f);if(!f)return!1;kyA(A.client,f,Q,b);return!0};
_.JY=function(A,Q,b,f){if(!Q)return!1;f=_.WR(f===void 0?0:f);if(!f)return!1;kyA(A.client,f,_.t8(Q),b);return!0};
_.NM=function(A,Q){var b=Q.getScreenLayer&&Q.getScreenLayer();if(Q.visualElement)return _.i$(A,Q.visualElement,void 0,b);Q=y6e(_.n0(),Q);return _.JY(A,Q,void 0,b)};
L2.prototype.clickCommand=function(A,Q,b){return _.JY(this,A.clickTrackingParams,Q,b===void 0?0:b)};
L2.prototype.stateChanged=function(A,Q,b){this.visualElementStateChanged(_.t8(A),Q,b===void 0?0:b)};
L2.prototype.visualElementStateChanged=function(A,Q,b){b=b===void 0?0:b;b===0&&this.pendingScreenCreation.has(b)?this.stateChangedQueue.push([A,Q]):this.logStateChanged(A,Q,b)};
L2.prototype.logStateChanged=function(A,Q,b){b=b===void 0?0:b;var f=_.WR(b);A=A||_.hx(b);return f&&A?(IOb(this.client,f,A,Q),!0):!1};
var fxL=function(A,Q,b,f){f=f===void 0?{}:f;A.pendingScreenCreation.add(f.layer||0);A.pendingScreenFn=function(){axp(A,Q,b,f);var G=_.hx(f.layer);if(G){for(var p=_.F(A.graftQueue),P=p.next();!P.done;P=p.next())P=P.value,_.l$(A,P[0],P[1]||G,f.layer);G=_.F(A.stateChangedQueue);for(p=G.next();!p.done;p=G.next())p=p.value,A.logStateChanged(p[0],p[1])}};
b||_.WR(f.layer)||A.pendingScreenFn();if(f.dataPromises)for(var a=_.F(f.dataPromises),T=a.next();!T.done;T=a.next())_.Twx(A,T.value,f.layer);else _.en(Error("vf"))},axp=function(A,Q,b,f){f=f===void 0?{}:f;
var a=void 0;f.layer||(f.layer=0);a=f.parentLayer!==void 0?f.parentLayer:f.layer;var T=_.WR(a);a=_.hx(a);var G=b||a,p;G&&(f.parentCsn!==void 0?p={clientScreenNonce:f.parentCsn,visualElement:G}:T&&T!=="UNDEFINED_CSN"&&(p={clientScreenNonce:T,visualElement:G}));var P,U=_.vG("EVENT_ID");T==="UNDEFINED_CSN"&&U&&(P={servletData:{serializedServletEventId:U}});_.K("combine_ve_grafts")&&T&&d0r(A,T);_.K("no_client_ve_attach_unless_shown")&&G&&T&&lO6(G,T);try{var L=_.UXe(A.client,Q,p,f.csnToClone,f.cttAuthInfo,
P,f.implicitGestureType,void 0,f.loggingExpectations)}catch(J){_.xk(J,{rootVeType:Q,rootVe:a,parentVisualElement:b,currentCsn:T,parentEl:p,csnToClone:f.csnToClone});_.en(J);return}_.Ev(L,Q,f.layer,f.cttAuthInfo);T&&T!=="UNDEFINED_CSN"&&a&&!n4F(T)&&ObU(A.client,T,a,!0);A.backHistoryStack[A.backHistoryStack.length-1]&&!A.backHistoryStack[A.backHistoryStack.length-1].csn&&(A.backHistoryStack[A.backHistoryStack.length-1].csn=L||"");_.g2({clientScreenNonce:L});_.QZL();var M=_.hx(f.layer);T&&T!=="UNDEFINED_CSN"&&
M&&(_.K("web_mark_root_visible")||_.K("music_web_mark_root_visible"))&&_.yI(L,M);A.pendingScreenCreation.delete(f.layer||0);A.pendingScreenFn=void 0;var l;(l=A.recurringGrafts.get(f.layer))==null||l.forEach(function(J,n){J?_.l$(A,n,J,f.layer):M&&_.l$(A,n,M,f.layer)});
FtL(A)},FtL=function(A){for(var Q=0;Q<A.afterNewScreenOneOffJobs.length;Q++){var b=A.afterNewScreenOneOffJobs[Q];
try{b()}catch(f){_.en(f)}}for(Q=A.afterNewScreenOneOffJobs.length=0;Q<A.afterNewScreenRecurringJobs.length;Q++){b=A.afterNewScreenRecurringJobs[Q];try{b()}catch(f){_.en(f)}}},d0r=function(A,Q){if(Q===void 0)for(var b=V_C(),f=0;f<b.length;f++)b[f]!==void 0&&d0r(A,b[f]);
else A.cachedVisualElements.forEach(function(a,T){(T=A.cachedRootVisualElements.get(T))&&L66(A.client,Q,T,a)}),A.cachedVisualElements.clear(),A.cachedRootVisualElements.clear(),A.attachTimeout=void 0};var V2=function(A){A=A===void 0?{layer:0}:A;this.hasRun=!1;this.createScreenConfig=A;A={};this.za4=(A.response=!1,A.playerResponse=!1,A)};
_.O(V2,FE);V2.prototype.validate=function(A){return!(!A.data||!A.data.response&&!A.data.playerResponse)};
V2.prototype.handle=function(A){var Q=_.IP(),b=this.createScreenConfig.layer;A.data.response&&A.data.response.trackingParams&&!this.za4.response&&(Q.graftServerVe(A.data.response.trackingParams,void 0,b),this.za4.response=!0);A.data.playerResponse&&A.data.playerResponse.trackingParams&&!this.za4.playerResponse&&(Q.graftServerVe(A.data.playerResponse.trackingParams,void 0,b),this.za4.playerResponse=!0)};var OZ=function(){this.vO=_.Qh();this.kx=[];this.sD4=0};
OZ.prototype.processChunk=function(A){if(A){for(var Q=_.F(this.kx),b=Q.next();!b.done;b=Q.next())b=b.value,b.validate(A)&&(b.handle(A),b.hasRun=!0);_.hQ("np"+this.sD4);this.sD4++}};var Q4;var bA9,G$p,Ptj;_.J8=function(A,Q,b,f,a,T,G){G=G===void 0?[]:G;this.buildCommandPayload=A;this.navigate=Q;this.handleServiceRequest=b;this.sendAction=f;this.JSC$12494_screenManager=a;this.commandResolverMap=T;this.autoLogResolverAllowlist=G;this.pendingCommands=new Set;this.isTracingEnabled=!1;G$p(this)};
bA9=function(A,Q,b){var f=cIY,a=zEX,T=_.IP(),G=Bwy;b=b===void 0?[]:b;_.J8.instance=new _.J8(A,Q,f,a,T,G,b)};
G$p=function(A){if(!A.isTracingEnabled&&r7i("command")){var Q=A.resolveCommand;A.resolveCommand=function(b,f){a:{for(a in b)if(Object.prototype.hasOwnProperty.call(b,a)){var a={commandType:a};break a}a={}}return etC("command",a,Q.bind(this,b,f))};
A.isTracingEnabled=!0}};
Ptj=function(A,Q,b){if(!A.commandResolverMap)return!1;var f=EtY(Q,A.commandResolverMap);return f?((A.autoLogResolverAllowlist.some(function(a){return!!_.V(Q,a)})||(b==null?0:b.forceClickLogging))&&pmL(A,Q,b),f instanceof Promise?f.then(function(a){a.resolve(Q,b)}):f.resolve(Q,b),!0):!1};
_.J8.prototype.resolveCommand=function(A,Q){var b=this,f=Xm$(A);if(Ptj(this,A,Q))return!0;if(f)return S9r(this,A,Q);if(!this.buildCommandPayload)return ht4(A,"Unhandled command by buildCommandPayload"),!1;var a=this.buildCommandPayload(A,Q);if(Q==null?0:Q.commandController)a.commandController=Q.commandController;if(a.type===0){if(!this.navigate)return W6F(A,"navigate"),!1;if(!U0M(a.command))return ht4(A,"Page requests need to specify a url"),!1;_.K("logging_avoid_blocking_during_navigation")&&_.N_i().transition("application_navigating");
A=this.navigate(a)||[];Qkr(A).then(function(){b.pendingCommands.delete(a.command)});
return!0}if(a.type===1){if(!this.handleServiceRequest)return W6F(A,"handleServiceRequest"),!1;(Q==null?0:Q.forceClickLogging)&&pmL(this,a.command,Q);A=this.handleServiceRequest(a);Qkr(A).then(function(){b.pendingCommands.delete(a.command)});
return!0}if(a.type===2){if(!this.sendAction)return W6F(A,"sendAction"),!1;pmL(this,a.command,Q);this.sendAction(a);return!0}return!1};
var pmL=function(A,Q,b){if((b==null||!b.disableClickTracking)&&A.JSC$12494_screenManager)if(Q.clickTrackingParams&&_.K("log_click_with_layer_from_element_in_command_handler")){var f;b=b==null?void 0:(f=b.form)==null?void 0:f.element;A.JSC$12494_screenManager.clickCommand(Q,null,b&&b.getScreenLayer&&b.getScreenLayer())}else Q.clickTrackingParams?A.JSC$12494_screenManager.clickCommand(Q):!_.K("disable_clicked_visual_element_in_command_handler")&&(b==null?0:b.clickedVisualElement)&&_.i$(A.JSC$12494_screenManager,
b.clickedVisualElement)},Xm$=function(A){var Q=!!_.V(A,_.LD),b;
A=((b=_.V(A,_.li))==null?void 0:b.signal)==="CLIENT_SIGNAL";return Q||A},S9r=function(A,Q,b){var f=_.V(Q,_.LD);
if(f)var a=(f==null?void 0:f.commands)||[];else{var T;if(((T=_.V(Q,_.li))==null?void 0:T.signal)==="CLIENT_SIGNAL"){var G;a=((G=_.V(Q,_.li))==null?void 0:G.actions)||[]}}if(a){Q=_.F(a);for(a=Q.next();!a.done;a=Q.next()){a=a.value;try{A.resolveCommand(a,b)}catch(p){p instanceof Error&&_.en(p)}}return!0}ht4(Q,"Could not handle the meta command");return!1},U0M=function(A){var Q;
return!((Q=_.V(A==null?void 0:A.commandMetadata,_.KD))==null||!Q.url)};var n2=function(){FE.apply(this,arguments)};
_.O(n2,FE);n2.prototype.validate=function(A){var Q,b;return!this.hasRun&&!!((Q=A.data.response)==null?0:(b=Q.onResponseReceivedEndpoints)==null?0:b.length)};
n2.prototype.handle=function(A){var Q=_.J8.instance;A=_.F(A.data.response.onResponseReceivedEndpoints);for(var b=A.next();!b.done;b=A.next())Q.resolveCommand(b.value)};var LtL,MyY,lxp;
LtL=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=_.Ul();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.kg=function(){MyY||(MyY=new LtL);return MyY};
lxp=function(){var A=_.kg();A.miniplayerButtonActivation=!1;A.userActivation=!1;A.playlistWatchPageActivation=!1;A.productDetailsPageActivation=!1;A.miniAppPageActivation=!1;A.playablesDestPageActivation=!1;A.lockupActivation=!1;A.showMiniplayerCommandActivation=!1;A.playlistSuggestionsShelfActivation=!1;A.mediaSessionPipActivation=!1;A.watchPipActivation=!1;A.watchWhileActivation=!1;A.shortsPipActivation=!1};
_.KtY=function(){var A=_.kg(),Q=A.mediaSessionPipActivation,b=A.watchPipActivation,f=A.watchWhileActivation,a=A.playlistWatchPageActivation,T=A.lockupActivation,G=A.showMiniplayerCommandActivation,p=A.navigatingAwayFromWatchDeletedVideo,P=A.shortsPipActivation,U=A.playlistSuggestionsShelfActivation,L=A.productDetailsPageActivation,M=A.miniAppPageActivation,l=A.playablesDestPageActivation;return!A.miniplayerButtonActivation&&!a&&!U&&!L&&!M&&!l&&!T&&!G&&!Q&&!b&&!f&&!P||p};var bhU;_.IR=fO("FEwhat_to_watch","/",3854);_.fqb=fO("FEdownloads","/feed/downloads",42352);bhU=fO("FEmusic_offline","browse/FEmusic_offline",42352);var AE=function(A,Q){Q=Q===void 0?[]:Q;var b=b===void 0?[]:b;Q=f7y.apply(null,[a7F.apply(null,_.ri(Q))].concat(_.ri(b)));this.store=GsA(A,void 0,Q)};
AE.prototype.getState=function(){return this.store.getState()};
AE.prototype.dispatch=function(A){return this.store.dispatch(A)};
AE.prototype.subscribe=function(A){return this.store.subscribe(A)};
AE.prototype.replaceReducer=function(A){return this.store.replaceReducer(A)};
AE.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.H1=function(A,Q,b){var f=Q(A.getState());return A.subscribe(function(){var a=Q(A.getState());if(a!==f){var T=f;f=a;b(a,T)}})};var tuU;_.HL=function(A,Q,b){return _.G7({type:"REPLACE_ENTITY",payload:{entityPayload:b,entityType:A,key:Q}})};
tuU=function(A){return _.G7({type:"REPLACE_ENTITIES",payload:A})};
_.Wi=function(A,Q,b,f){return _.G7({type:"UPDATE_ENTITY",payload:{entityPayload:b,entityType:A,key:Q,mergeOption:f}})};var mXX=function(A){var Q=this;A=A===void 0?[]:A;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;A.forEach(function(b){Q.append(b)})};
_.d=mXX.prototype;_.d.getLength=function(){return this.totalLength};
_.d.append=function(A){var Q=this.arrays.length===0?!1:(Q=this.arrays[this.arrays.length-1])&&Q.buffer===A.buffer&&Q.byteOffset+Q.length===A.byteOffset;Q?(Q=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(Q.buffer,Q.byteOffset,Q.length+A.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(A);this.totalLength+=A.length};
_.d.split=function(A){for(var Q=new mXX,b=new mXX,f=_.F(this.arrays),a=f.next();!a.done;a=f.next())a=a.value,A>=a.length?(Q.append(a),A-=a.length):A?(Q.append(new Uint8Array(a.buffer,a.byteOffset,A)),b.append(new Uint8Array(a.buffer,a.byteOffset+A,a.length-A)),A=0):b.append(a);return{headView:Q,tailView:b}};
_.d.extract=function(A,Q){return this.split(A).tailView.split(Q).headView};
_.d.isFocused=function(A){return A>=this.arrayPos&&A<this.arrayPos+this.arrays[this.arrayIdx].length};
_.d.focus=function(A){if(!this.isFocused(A))for(A<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=A&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var i_r=function(A,Q){A.focus(Q);return A.arrays[A.arrayIdx][Q-A.arrayPos]};(function(){var A=function(f){return new Uint8Array(f)},Q=function(f){for(var a=new Uint8Array(f.length),T=0;T<f.length;T++)a[T]=f[T];
return a},b=new Uint8Array([1]);
return b.length===1&&b[0]===1?A:Q})();
var y74=Array(1024),Zbi=window.TextDecoder?new TextDecoder:void 0,DXC=window.TextEncoder?new TextEncoder:void 0;var sJi=function(A){this.arrayView=A;this.pos=0;this.pendingTagAndType=-1},PO=function(A){var Q=i_r(A.arrayView,A.pos);
++A.pos;if(Q<128)return Q;for(var b=Q&127,f=1;Q>=128;)Q=i_r(A.arrayView,A.pos),++A.pos,f*=128,b+=(Q&127)*f;return b},AhY=function(A,Q){var b=A.pendingTagAndType;
for(A.pendingTagAndType=-1;A.pos+1<=A.arrayView.totalLength;){b<0&&(b=PO(A));var f=b>>3,a=b&7;if(f===Q)return!0;if(f>Q){A.pendingTagAndType=b;break}b=-1;switch(a){case 0:PO(A);break;case 1:A.pos+=8;break;case 2:f=PO(A);A.pos+=f;break;case 5:A.pos+=4}}return!1};var bYW=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=N7J(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Ur=function(A,Q){Q=A.pos+Q;
if(!(A.buf.length>=Q)){for(var b=A.buf.length*2;b<Q;)b*=2;A.buf=N7J(b,A.wasm,A.buf.subarray(0,A.pos));A.view=new DataView(A.buf.buffer,A.buf.byteOffset,A.buf.byteLength)}},S$=function(A,Q){if(Q>268435455){Ur(A,4);
for(var b=Q&1073741823,f=0;f<4;f++)A.view.setUint8(A.pos,b&127|128),b>>=7,A.pos+=1;Q=Math.floor(Q/268435456)}for(Ur(A,4);Q>127;)A.view.setUint8(A.pos,Q&127|128),Q>>=7,A.pos+=1;A.view.setUint8(A.pos,Q);A.pos+=1};for(var f6i={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},QAA={},JS9=_.F(Object.entries(f6i)),VyW=JS9.next();!VyW.done;VyW=JS9.next()){var O_9=_.F(VyW.value),nKx=O_9.next().value,k$r=O_9.next().value,Ix1=nKx,H_W=k$r;H_W&&(QAA[H_W]=Ix1)};var TEC=function(A,Q){A=A===void 0?{}:A;switch(Q.type){case "ENTITY_LOADED":return Q.payload.reduce(function(f,a){var T,G=(T=a.options)==null?void 0:T.persistenceOption;if(G&&G!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&G!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!a.entityKey)return _.en(Error("zf")),f;if(a.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!a.payload)return a=new _.IO("REPLACE entity mutation is missing a payload",{entityKey:a.entityKey}),_.en(a),f;var p=(0,_.j2.getAnyKey)(a.payload);
return Fr6(f,p,a.entityKey,a.payload[p])}if(a.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{a=a.entityKey;try{var P=_.Xg(a).entityType;p=Fr6(f,P,a);break a}catch(M){if(M instanceof Error){a=new _.IO("Failed to deserialize entity key",{entityKey:a,originalMessage:M.message});_.en(a);p=f;break a}throw M;}p=void 0}return p}if(a.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!a.payload)return a=new _.IO("UPDATE entity mutation is missing a payload",{entityKey:a.entityKey}),_.en(a),f;p=(0,_.j2.getAnyKey)(a.payload);
var U,L;return Gc9(f,p,a.entityKey,a.payload[p],(U=a.fieldMask)==null?void 0:(L=U.mergeOptions)==null?void 0:L.repeatedFieldsMergeOption)}return f},A);
case "REPLACE_ENTITY":var b=Q.payload;return Fr6(A,b.entityType,b.key,b.entityPayload);case "REPLACE_ENTITIES":return Object.keys(Q.payload).reduce(function(f,a){var T=Q.payload[a];return Object.keys(T).reduce(function(G,p){return Fr6(G,a,p,T[p])},f)},A);
case "UPDATE_ENTITY":return b=Q.payload,Gc9(A,b.entityType,b.key,b.entityPayload,b.mergeOption);default:return A}};var BEX;var Ctp=!1,C2,qk,oR,tY,rl,q9K=function(A){_.k$.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Ctp){var Q,b=new Uint8Array(256),f=new Uint8Array(256);var a=1;for(Q=0;Q<256;Q++)b[a]=Q,f[Q]=a,a^=a<<1^(a>>7&&283);C2=new Uint8Array(256);qk=lg(256);oR=lg(256);tY=lg(256);rl=lg(256);for(var T=0;T<256;T++){a=T?f[255^b[T]]:0;a^=a<<1^a<<2^a<<3^a<<4;a=a&255^a>>>8^99;C2[T]=a;Q=a<<1^(a>>7&&283);var G=Q^a;qk[T]=Q<<24|a<<16|a<<8|G;oR[T]=G<<24|qk[T]>>>8;tY[T]=a<<24|oR[T]>>>
8;rl[T]=a<<24|tY[T]>>>8}Ctp=!0}a=lg(44);for(b=0;b<4;b++)a[b]=A[4*b]<<24|A[4*b+1]<<16|A[4*b+2]<<8|A[4*b+3];for(f=1;b<44;b++)A=a[b-1],b%4||(A=(C2[A>>16&255]^f)<<24|C2[A>>8&255]<<16|C2[A&255]<<8|C2[A>>>24],f=f<<1^(f>>7&&283)),a[b]=a[b-4]^A;this.key=a};
_.O(q9K,_.k$);
q9K.prototype.encrypt=function(A){var Q=A.length;A=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+Q));for(var b=this.cipherBlock,f=0;f<Q&&this.blockOffset<16;)A[f++]^=b[this.blockOffset++];for(var a=Q-(Q-f)%16;f<a;)oKx(this),A[f++]^=b[0],A[f++]^=b[1],A[f++]^=b[2],A[f++]^=b[3],A[f++]^=b[4],A[f++]^=b[5],A[f++]^=b[6],A[f++]^=b[7],A[f++]^=b[8],A[f++]^=b[9],A[f++]^=b[10],A[f++]^=b[11],A[f++]^=b[12],A[f++]^=b[13],A[f++]^=b[14],A[f++]^=b[15];if(f<Q)for(oKx(this),this.blockOffset=0;f<Q;)A[f++]^=
b[this.blockOffset++];return A};
var oKx=function(A){for(var Q=A.key,b=A.counter[0]^Q[0],f=A.counter[1]^Q[1],a=A.counter[2]^Q[2],T=A.counter[3]^Q[3],G=3;G>=0&&!(A.counter[G]=-~A.counter[G]);G--);for(var p,P,U=4;U<40;)G=qk[b>>>24]^oR[f>>16&255]^tY[a>>8&255]^rl[T&255]^Q[U++],p=qk[f>>>24]^oR[a>>16&255]^tY[T>>8&255]^rl[b&255]^Q[U++],P=qk[a>>>24]^oR[T>>16&255]^tY[b>>8&255]^rl[f&255]^Q[U++],T=qk[T>>>24]^oR[b>>16&255]^tY[f>>8&255]^rl[a&255]^Q[U++],b=G,f=p,a=P;A=A.cipherBlock;G=Q[40];A[0]=C2[b>>>24]^G>>>24;A[1]=C2[f>>16&255]^G>>16&255;A[2]=
C2[a>>8&255]^G>>8&255;A[3]=C2[T&255]^G&255;G=Q[41];A[4]=C2[f>>>24]^G>>>24;A[5]=C2[a>>16&255]^G>>16&255;A[6]=C2[T>>8&255]^G>>8&255;A[7]=C2[b&255]^G&255;G=Q[42];A[8]=C2[a>>>24]^G>>>24;A[9]=C2[T>>16&255]^G>>16&255;A[10]=C2[b>>8&255]^G>>8&255;A[11]=C2[f&255]^G&255;G=Q[43];A[12]=C2[T>>>24]^G>>>24;A[13]=C2[b>>16&255]^G>>16&255;A[14]=C2[f>>8&255]^G>>8&255;A[15]=C2[a&255]^G&255};var ty1=!1;(function(){var A=function(f){return new Uint8Array(f)},Q=function(f){for(var a=new Uint8Array(f.length),T=0;T<f.length;T++)a[T]=f[T];
return a},b=new Uint8Array([1]);
return b.length===1&&b[0]===1?A:Q})();
var j3;var RpW=function(A){a:{if(!ty1&&!so){if(j3){var Q=j3;break a}j3=(Q=window.crypto)==null?void 0:Q.subtle;var b,f,a;if(((b=j3)==null?0:b.importKey)&&((f=j3)==null?0:f.sign)&&((a=j3)==null?0:a.encrypt)){Q=j3;break a}j3=void 0}Q=void 0}Q&&(this.nativeEncryptor=new rSL(A,Q));this.encryptorPolyfill=new jZp(A)};
RpW.prototype.encrypt=function(A,Q){var b=this,f;return _.B(function(a){switch(a.nextAddress){case 1:if(!b.nativeEncryptor){a.jumpTo(2);break}_.ML(a,3);return a.yield(b.nativeEncryptor.encrypt(A,Q),5);case 5:return a.return(a.yieldResult);case 3:f=_.Vw(a),_.Wv(f),ty1=!0,b.nativeEncryptor=void 0;case 2:return a.return(b.encryptorPolyfill.encrypt(A,Q))}})};
RpW.prototype.decrypt=function(A,Q){return this.encrypt(A,Q)};
var rSL=function(A,Q){this.JSC$12567_aesKey=A;this.subtleCrypto=Q};
rSL.prototype.encrypt=function(A,Q){var b=this,f;return _.B(function(a){if(a.nextAddress==1)return _.ML(a,2),a.yield(gK$(b,A,Q),4);if(a.nextAddress!=2)return a.return(a.yieldResult);f=_.Vw(a);_.Wv(f);ty1=!0;throw f;})};
var gK$=function(A,Q,b){var f,a;return _.B(function(T){switch(T.nextAddress){case 1:if(A.cryptoKey){T.jumpTo(2);break}return T.yield(A.subtleCrypto.importKey("raw",A.JSC$12567_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:A.cryptoKey=T.yieldResult;case 2:return f={name:"AES-CTR",counter:b,length:128},T.yield(A.subtleCrypto.encrypt(f,A.cryptoKey,Q),4);case 4:return a=T.yieldResult,T.return(new Uint8Array(a))}})},jZp=function(A){this.JSC$12570_aesKey=A};
jZp.prototype.encrypt=function(A,Q){this.encryptor||(this.encryptor=new q9K(this.JSC$12570_aesKey));for(var b=this.encryptor,f=0;f<4;f++)b.counter[f]=Q[f*4]<<24|Q[f*4+1]<<16|Q[f*4+2]<<8|Q[f*4+3];b.blockOffset=16;return this.encryptor.encrypt(A)};
jZp.prototype.decrypt=function(A,Q){return this.encrypt(A,Q)};var epM={},XVU=bC("yt-idb-pref-storage",{objectStores:(epM.prefs={addedAtVersion:1},epM),shared:!1,upgrade:function(A,Q){Q(1)&&xT(ES(A,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.RR=function(A){this.token=A};
_.RR.getInstance=function(){return _.B(function(A){return A.return(new Promise(function(Q){_.Q7().then(function(b){b?(_.RR.instance||(_.RR.instance=new _.RR(b)),Q(_.RR.instance)):Q(void 0)})}))})};
_.RR.prototype.get=function(A){var Q=this,b,f,a;return _.B(function(T){if(T.nextAddress==1)return T.yield(Sq6(Q.token),2);if(T.nextAddress!=3)return b=T.yieldResult,T.yield(b.get("prefs",A),3);f=T.yieldResult;if(!f)return T.return();a=(0,_.f4)();return f.expirationTimestampMs<=a?T.return():T.return(f.value)})};
_.RR.prototype.set=function(A,Q,b){b=b===void 0?31536E3:b;var f=this,a,T,G;return _.B(function(p){if(p.nextAddress==1)return a=(0,_.f4)(),T={key:A,value:Q,expirationTimestampMs:a+b*1E3},p.yield(Sq6(f.token),2);G=p.yieldResult;return p.yield(G.put("prefs",T),0)})};
_.RR.prototype.remove=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Sq6(Q.token),2);b=f.yieldResult;return f.yield(b.delete("prefs",A),0)})};var gl={},hpj=(gl.INVALID_ENCODER_VERSION="Invalid encoder version",gl.KEY_CREATION_FAILED="Failed to create encoder key",gl.UNKNOWN_DECODE_ERROR="Failed to decode PES data",gl.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",gl.WRONG_DATA_TYPE="Encoder cannot process the data type",gl),KO=function(A,Q){Q=Q===void 0?{}:Q;_.IO.call(this,hpj[A],Object.assign({},{name:"PESEncoderError",type:A},Q));this.type=A;this.level="WARNING";Object.setPrototypeOf(this,KO.prototype)};
_.O(KO,_.IO);var e3=function(){};
e3.prototype.encode=function(A,Q){try{return this.encodeImpl(A,Q)}catch(b){l69(b,LrU)}};
e3.prototype.decode=function(A,Q){try{return this.decodeImpl(A,Q)}catch(b){l69(b,Mu9)}};
var Wt9=function(A,Q,b){var f;return _.B(function(a){if(a.nextAddress==1)return _.ML(a,2),a.yield(A.decodeAsyncImpl(Q,b),4);if(a.nextAddress!=2)return a.return(a.yieldResult);f=_.Vw(a);l69(f,Mu9);_.Oi(a)})};
e3.prototype.decodeAsyncImpl=function(A,Q){return Promise.resolve(this.decodeImpl(A,Q))};var hY=function(A,Q){this.aesEncryptor=A;this.aesEncryptorAsync=Q};
_.O(hY,e3);hY.prototype.encodeImpl=function(A,Q){Q=KrX(Q);A=(new TextEncoder).encode(JSON.stringify(A));return this.aesEncryptor.encrypt(A,Q)};
hY.prototype.decodeImpl=function(A,Q){if(!(A instanceof Uint8Array))throw U8e(1);var b=new TextDecoder;Q=KrX(Q);A=this.aesEncryptor.decrypt(A,Q);return JSON.parse(b.decode(A))};
hY.prototype.decodeAsyncImpl=function(A,Q){var b=this,f,a,T;return _.B(function(G){if(G.nextAddress==1){if(!(A instanceof Uint8Array))throw U8e(1);f=new TextDecoder;a=KrX(Q);return G.yield(b.aesEncryptorAsync.decrypt(A,a),2)}T=G.yieldResult;return G.return(JSON.parse(f.decode(T)))})};var iYe={accountLinkStatusEntity:F2M,booleanEntity:WIN,buttonEntity:mO$,captionTrack:Etp,channelHandle:S3K,chipEntity:IXK,commerceAcquisitionClientPayloadEntity:nZL,commerceCartListEntity:kWK,contextNoteFeedEntityPayload:HG$,contextNoteUserRatingEntityPayload:C9Y,continuationTokenEntity:VbL,downloadQualityPickerEntity:pTL,downloadsPageRefreshTokenEntity:XT1,downloadsPageViewConfigurationEntity:tbM,downloadStatusEntity:P_v,dismissState:H29,sfvAudioItemCurrentlyPlayingEntity:Krr,emojiFountainDataEntity:$OM,
emojiCustomizationSetEntity:DOx,fakeChannel:xAv,fakePlaylist:cPr,fakePlaylistEntryCollection:z9L,fakeVideo:uhL,fakeVideoDescription:ZoL,featuredProductsEntity:Nbr,flowStateEntity:fQL,iconBadgeEntity:I8p,interstitialInteractionStateEntity:n4$,likeButtonAnimationEntity:r2Y,liveChatPollStateEntity:jWj,liveViewerLeaderboardChatEntryPointStateEntity:Ahp,liveViewerLeaderboardPointsEntity:QAW,liveReactionsDataEntity:Nkj,logoEntity:V_1,macroMarkerEntity:j1v,mainDownloadsLibraryEntity:S0L,mainDownloadsListEntity:UFL,
mainPlaylistDownloadStateEntity:MbW,mainPlaylistEntity:On$,mainPlaylistVideoEntity:n7j,mainVideoDownloadStateEntity:lmW,mainVideoEntity:C_K,markersEngagementPanelSyncEntity:RkM,markersVisibilityOverrideEntity:g7Y,musicAlbumReleaseDetail:Gy$,musicAlbumReleaseDownloadMetadataEntity:fO1,musicAlbumRelease:F6L,musicAlbumReleaseUserDetail:B7r,musicArtistDetail:Prv,musicArtist:ppj,musicArtistUserDetail:XpL,musicDownloadsLibraryEntity:aOK,musicLibraryEdit:SzN,musicLibraryStatusEntity:UXM,musicPlaylist:L6N,
musicPlaylistDownloadMetadataEntity:T7r,musicShare:lON,musicTrackDetail:ibW,musicTrackDownloadMetadataEntity:dXN,musicTrack:K6L,musicTrackUserDetail:J7x,offlineOrchestrationActionWrapperEntity:xXy,offlineVideoPolicy:c79,offlineVideoStreams:ztY,offlineabilityEntity:KfN,orchestrationWebSamplingEntity:inL,pageHeaderEntity:xOv,pdpStateEntity:H3y,pinnedProductEntity:s19,playbackData:wpK,playerStateEntity:ek$,quantityIncrementerEntity:CzM,refresh:uzY,saveToPlaylistListEntity:EjM,selectedChipIndexEntityPayload:hk1,
settingEntity:dk$,stringEntity:vHr,suggestedFeedbackChipStateEntity:Wfj,transfer:ZbL,trendingOfferEntity:mF9,videoDownloadContextEntity:y7v,videoOverviewAsyncDataEntity:Nuy,videoPlaybackPositionEntity:b3N,votingEntity:uIL,ytMainChannelEntity:q0r,youchatPendingResponseEntity:v7W,ytMainDownloadedVideoEntity:J2L,ytMainVideoEntity:o7L};var vKr,x0y,nO,C3W,qqe,wm9,Z_y,uR9,zpv;vKr=function(A,Q){this.JSC$12589_wrapped=A;this.JSC$12589_encoderRegistry=Q;this.changedKeys={}};
x0y=function(A,Q){return EKy(A.JSC$12589_encoderRegistry,Q.version).decode(Q.data,Q.key)};
_.cS1=function(A,Q,b){return A.JSC$12589_wrapped.objectStore("EntityStore").get(Q).then(function(f){if(f){if(b&&f.entityType!==b)throw Error("Af");return x0y(A,f)}})};
nO=function(A,Q,b){return b?(b=b.map(function(f){return _.cS1(A,f,Q)}),xR.all(b)):A.JSC$12589_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(Q)).then(function(f){return f.map(function(a){return x0y(A,a)})})};
_.HYy=function(A,Q,b){var f=a6b(Q),a=EKy(A.JSC$12589_encoderRegistry,1),T=Object.assign({},Q);return A.JSC$12589_wrapped.objectStore("EntityStore").get(f).then(function(G){if(G){if(G.entityType!==b)throw Error("Af");T.entityMetadata||(G=x0y(A,G),T.entityMetadata=G.entityMetadata)}}).then(function(){var G={key:f,
entityType:b,data:a.encode(T,f),version:1};return xR.all([A.JSC$12589_wrapped.objectStore("EntityStore").put(G),zpv(A,T,b)])}).then(function(){wm9(A,f,b);
return f})};
C3W=function(A,Q){var b=_.Xg(Q).entityType;return xR.all([A.JSC$12589_wrapped.objectStore("EntityStore").delete(Q),uR9(A,Q)]).then(function(){wm9(A,Q,b)})};
qqe=function(A,Q,b,f){var a=EKy(A.JSC$12589_encoderRegistry,1);return _.cS1(A,Q,f).then(function(T){if(T){T=uzy(T,b);var G={key:Q,entityType:f,data:a.encode(T,Q),version:1};return xR.all([A.JSC$12589_wrapped.objectStore("EntityStore").put(G),zpv(A,T,f)])}}).then(function(){wm9(A,Q,f);
return Q})};
wm9=function(A,Q,b){var f=A.changedKeys[b];f||(f=new Set,A.changedKeys[b]=f);f.add(Q)};
Z_y=function(A,Q,b){var f=a6b(Q);b=JhW(b);if(!b)return xR.resolve([]);b=new b(Q);A=A.JSC$12589_wrapped.objectStore("EntityAssociationStore");Q=[];b=_.F(b.getAssociations());for(var a=b.next();!a.done;a=b.next())Q.push(A.put({parentEntityKey:f,childEntityKey:a.value}));return xR.all(Q).then(function(T){return T.map(function(G){return G[1]})})};
uR9=function(A,Q){return A.JSC$12589_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(Q))};
zpv=function(A,Q,b){var f=a6b(Q);return uR9(A,f).then(function(){return Z_y(A,Q,b)})};var ySL=function(){};
_.O(ySL,e3);ySL.prototype.encodeImpl=function(A){return A};
ySL.prototype.decodeImpl=function(A){if(A instanceof Uint8Array)throw U8e(0);return A};var njU=function(){this.cacheMap={};this.cacheMap[0]=new ySL;if(!_.K("aes_pes_encoder_killswitch")){var A=this.cacheMap;try{var Q=_.nJ();var b=KrX(Q);var f=new hY(new jZp(b),new RpW(b))}catch(a){throw A=a instanceof Error?new KO("KEY_CREATION_FAILED",{originalMessage:a.message}):new KO("KEY_CREATION_FAILED"),_.en(A),A;}A[1]=f}},EKy=function(A,Q){Q=Q===void 0?0:Q;
A=A.cacheMap[Q];if(!A)throw Q=new KO("INVALID_ENCODER_VERSION",{encoderVersion:Q}),_.en(Q),Q;return A};var JH=function(A,Q){_.k$.call(this);this.token=A;this.JSC$12603_encoderRegistry=Q;this.observers=[];A=new _.by.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.nJ());A.onmessage=this.handleMessage.bind(this);this.channel=A};
_.O(JH,_.k$);_.Or=function(A,Q,b){var f,a,T,G;return _.B(function(p){if(p.nextAddress==1)return p.yield(P3U(A.token),2);if(p.nextAddress!=3)return f=p.yieldResult,p.yield(_.D1(f,["EntityStore","EntityAssociationStore"],Q,function(P){a=new vKr(P,A.JSC$12603_encoderRegistry);return b(a)}),3);
T=p.yieldResult;a&&(G=a.changedKeys,Object.keys(G).length>0&&(A.channel.postMessage(G),Y9j(A,G)));return p.return(T)})};
JH.prototype.observe=function(A){var Q=this;this.observers.push(A);return function(){var b=Q.observers.indexOf(A);b>=0&&Q.observers.splice(b,1)}};
var LCb=function(A){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(_.Or(A,{mode:"readonly",enableRetries:!0},function(f){return f.JSC$12589_wrapped.objectStore("EntityStore").getAll()}),2);
Q=b.yieldResult;return b.return(Promise.all(Q.filter(function(f){return!!f}).map(function(f){var a,T;
return _.B(function(G){if(G.nextAddress==1){a=f.key;T=f.entityType;var p=G.yield;var P=Wt9(EKy(A.JSC$12603_encoderRegistry,f.version),f.data,f.key);return p.call(G,P,2)}return G.return({key:a,entityType:T,data:G.yieldResult})})})))})};
JH.prototype.handleMessage=function(A){Y9j(this,A.data)};
var Y9j=function(A,Q){A=_.F(A.observers);for(var b=A.next();!b.done;b=A.next())b=b.value,b(Q)};
JH.prototype.disposeInternal=function(){this.channel.close()};
var VuX;var W1,$0r,YqY;W1={};_.D09=(W1.mainVideoEntity="mainVideoEntityActionMetadata",W1.mainPlaylistEntity="mainPlaylistEntityActionMetadata",W1.musicTrack="musicTrackEntityActionMetadata",W1.musicPlaylist="musicPlaylistEntityActionMetadata",W1);$0r=new _.TS("DOWNLOADS_ENTITY_TYPE_MAP");_.rs=_.LO("","downloadsPageViewConfigurationEntity");YqY=_.LO("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.C$b=_.LO("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.LO("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.LO("SMART_DOWNLOADS_ENABLED","settingEntity");_.LO("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var ROU=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var x8Y=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var LcF={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var v1,Ldy,nzr,X5i;v1=window;_.ug=v1.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.HWF=v1.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Ne;Ldy=v1.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||kB;nzr=v1.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||O0v;_.Nwp=v1.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Elv;X5i=v1.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||zB$;D5({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 o3X=MNf(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(A){return A}}}),hqi=MNf(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(A){return A}}}),JXJ=new Map;var rX9=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],IBf;var sZY=function(A){return _.G7({type:"SET_EPHEMERAL_ACTION",payload:A})};var m0N={ephemeralAction:null};var AZM={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var tqF={sharedUi:function(A,Q){A=A===void 0?AZM:A;switch(Q.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},A,{animatedThumbnailEnabled:Q.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},A,{inlinePreviewEnabled:Q.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:Q.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},A,{currentPageSubType:Q.payload});default:return A}},
a11y:ih({ephemeralAction:function(A,Q){A=A===void 0?m0N.ephemeralAction:A;switch(Q.type){case "SET_EPHEMERAL_ACTION":return Q.payload;default:return A}}})};var Wd4={playlistId:"",inviteLinkURL:""};var Qup={};var ZWJ=ih({continuationCommand:function(A,Q){A=A===void 0?Qup:A;switch(Q.type){case "SET_CONTINUATION_COMMAND":return Q.payload.continuationCommand;default:return A}}});var E3F={currentFormId:"",commandsMap:{}};var yX6=ih({isLeaderTab:function(A,Q){A=A===void 0?!0:A;switch(Q.type){case "SET_IS_LEADER_TAB":var b,f;return(f=Q==null?void 0:(b=Q.payload)==null?void 0:b.isLeaderTab)!=null?f:A;default:return A}}});var fnp;_.b8r=function(A){return _.G7({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:A}})};
fnp=function(A){return _.G7({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:A}})};var oZi=ih({isDesktopSmallWidth:function(A,Q){switch(Q.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return Q.payload.isDesktopSmallWidth;default:return A===void 0?!1:A}},
isShortsActive:function(A,Q){switch(Q.type){case "SET_IS_SHORTS_ACTIVE":return Q.payload.isShortsActive;default:return A===void 0?!1:A}},
isWatchWhileMode:function(A,Q){switch(Q.type){case "SET_IS_WATCH_WHILE_MODE":return Q.payload.isWatchWhileMode;default:return A===void 0?!1:A}},
playerState:function(A,Q){switch(Q.type){case "SET_PLAYER_STATE":return Q.payload.playerState;default:return A===void 0?-1:A}},
isFullscreen:function(A,Q){switch(Q.type){case "SET_IS_FULLSCREEN":return Q.payload.isFullscreen;default:return A===void 0?!1:A}},
isSmallScreenSqueezeback:function(A,Q){switch(Q.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return Q.payload.isSmallScreenSqueezeback;default:return A===void 0?!1:A}},
isShortsPipActive:function(A,Q){switch(Q.type){case "SET_IS_SHORTS_PIP_ACTIVE":return Q.payload.isShortsPipActive;default:return A===void 0?!1:A}},
isPlaybackStarted:function(A,Q){switch(Q.type){case "SET_IS_PLAYBACK_STARTED":return Q.payload.isPlaybackStarted;default:return A===void 0?!1:A}}});var j3W=function(){return function(A){return function(Q){var b=A(Q);_.pD(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[Q],!0);return b}}};var anx,yaY;anx=new _.Mj;_.Uh=new _.TS("WATCH_PLAYER_PROMISE_TOKEN");_.TqM=new _.Mj;_.dor=new _.TS("SHORTS_PLAYER_PROMISE_TOKEN");yaY=new _.TS("");var RaJ=function(){return function(A){return function(Q){Q.type==="ENTITY_LOADED"&&_.fJ().resolve(_.Uh).then(function(b){var f;(f=b.dispatchReduxAction)==null||f.call(b,Q)});
return A(Q)}}};var FGY={};var kWU=ih({additionalContext:function(A,Q){switch(Q.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var b;return(b=Q.payload)!=null?b:"";default:return A===void 0?"":A}},
impersonatedChannelUrl:function(A,Q){switch(Q.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var b;return(b=Q.payload)!=null?b:"";default:return A===void 0?"":A}},
selectedVideoIds:function(A,Q){A=A===void 0?FGY:A;switch(Q.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var b={};return Object.assign({},A,(b[Q.payload]=!0,b));case "VIDEO_UNSELECTED":return Q=Q.payload,A=Object.assign({},A),delete A[Q],A;default:return A}}});var I8Y=ih({parentClickTrackingParams:function(A,Q){switch(Q.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return Q.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return A===void 0?"":A}}});var GBr=function(A){return _.G7({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:A})};var Bq9={};var H39=ih({stepStates:function(A,Q){A=A===void 0?Bq9:A;switch(Q.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var b=A,f=Q.payload,a,T,G;A={};Q={selectionStates:Object.assign({},(G=(a=b[f.stepId])==null?void 0:a.selectionStates)!=null?G:{},(A[f.token]={isSelected:f.isSelected},A)),userQuery:(T=b[f.stepId])==null?void 0:T.userQuery};a={};return Object.assign({},b,(a[f.stepId]=Q,a));case "TALK_TO_RECS_UPDATE_USER_QUERY":return a=A,T=Q.payload,G={selectionStates:Object.assign({},
(f=(b=a[T.stepId])==null?void 0:b.selectionStates)!=null?f:{}),userQuery:{userQuery:T.userQuery,token:T.userQueryToken}},b={},Object.assign({},a,(b[T.stepId]=G,b));default:return A}}});var pK9,PHp,SMj;pK9=function(A){return _.G7({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:A})};
PHp=function(A){return _.G7({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:A})};
_.gy=function(A){return _.G7({type:"SET_CURRENT_PAGE_TYPE",payload:A})};
_.XK1=function(A){return _.G7({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:A})};
SMj=function(A){return _.G7({type:"SET_CHIP_BAR_IS_STICKY",payload:A})};var cX9={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"};_.Uox=function(A){return _.G7({type:"SET_PLAYER_STATE",payload:{playerState:A}})};var LGK=[],Mvj={width:0,height:0};var Cze=ih({isTheaterMode:function(A,Q){A=A===void 0?_.K("kevlar_disable_theater_mode_persistence")?!1:_.Ep("START_IN_THEATER_MODE"):A;switch(Q.type){case "SET_IS_THEATER_MODE":return Q.payload.isTheaterMode;default:return A}},
isWatchActive:function(A,Q){switch(Q.type){case "SET_IS_WATCH_ACTIVE":return Q.payload.isWatchActive;default:return A===void 0?!1:A}},
isLearningJourneyActive:function(A,Q){switch(Q.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return Q.payload.isLearningJourneyActive;default:return A===void 0?!1:A}},
isWatchFullscreen:function(A,Q){switch(Q.type){case "SET_IS_WATCH_FULLSCREEN":return Q.payload.isWatchFullscreen;default:return A===void 0?!1:A}},
isWatchNarrowWidth:function(A,Q){switch(Q.type){case "SET_IS_WATCH_NARROW_WIDTH":return Q.payload.isWatchNarrowWidth;default:return A===void 0?!1:A}},
isWatchRetroMode:function(A,Q){switch(Q.type){case "SET_IS_WATCH_RETRO_MODE":return Q.payload.isWatchRetroMode;default:return A===void 0?!1:A}},
isLiveChatCollapsed:function(A,Q){switch(Q.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return Q.payload.isLiveChatCollapsed;default:return A===void 0?!1:A}},
openEngagementPanels:function(A,Q){A=A===void 0?LGK:A;var b=[].concat(_.ri(A));switch(Q.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return b.push(Q.payload.panelToAdd),b;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return b.splice(b.indexOf(Q.payload.panelToRemove),1),b;default:return A}},
playerState:function(A,Q){switch(Q.type){case "SET_PLAYER_STATE":return Q.payload.playerState;default:return A===void 0?-1:A}},
watchScrollTop:function(A,Q){switch(Q.type){case "SET_WATCH_SCROLL_TOP":return Q.payload.watchScrollTop;default:return A===void 0?0:A}},
watchWindowSize:function(A,Q){A=A===void 0?Mvj:A;switch(Q.type){case "SET_WATCH_WINDOW_SIZE":return Q.payload.watchWindowSize;default:return A}}});var ln$={feedbackTokens:[]};var qn4=ih({surveyFeedbackData:function(A,Q){A=A===void 0?ln$:A;switch(Q.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return Q.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},A,Q.payload);default:return A}}});var w3f={};var eaA=void 0;_.K("web_enable_redux_store_on_demand")||(eaA=gZW());var KG$=function(A,Q,b){var f=this;this.listId=A;this.JSC$12737_updateCallback=Q;this.isOfflineVideoCallback=b;_.QK().subscribe(function(){f.handleUpdate()})};
KG$.prototype.getPlaylistData=function(){var A=_.QK().getState().entities;if(this.listId&&this.listId!=="PPSV"){var Q=aX9(A,this.listId,!0),b=_.LO(this.listId,"mainPlaylistEntity"),f,a;A=A==null?void 0:(f=A.mainPlaylistEntity)==null?void 0:(a=f[b])==null?void 0:a.title;return hab(Q,A,this.listId)}Q=_.ch4(R5Y(A));A=_.ch4(_.j$(A));A=Q.concat(A);return hab(A)};
KG$.prototype.getPlaylistId=function(){return this.listId};
KG$.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12737_updateCallback(this.listId,this.getPlaylistData(),{})};var EZ=function(A,Q,b,f){f=f===void 0?[]:f;this.JSC$12740_playlistNetworkManager=A;this.listId=Q;this.JSC$12740_updateCallback=b;this.videoIds=f;this.pendingUpdates=[];this.currentIndex=0};
EZ.prototype.JSC$12740_setCurrentIndex=function(A){this.currentIndex=A};
EZ.prototype.setListId=function(A){this.listId=A};
var i8W=function(A,Q){A.currentCreateRequest&&A.currentCreateRequest.cancel(Q);A.currentUpdateRequest&&A.currentUpdateRequest.cancel(Q);A.currentRefreshRequest&&A.currentRefreshRequest.cancel(Q)};
EZ.prototype.delete=function(){i8W(this,"PROXY DELETED")};
EZ.prototype.addVideos=function(A,Q,b){var f=this;b!==void 0?this.videoIds.splice.apply(this.videoIds,[b,0].concat(_.ri(A))):this.videoIds.push.apply(this.videoIds,_.ri(A));this.listId||this.currentCreateRequest?(A.forEach(function(a,T){a={addedVideoId:a,action:"ACTION_ADD_VIDEO"};b&&(a.addedVideoPosition=b+T);f.pendingUpdates.push(a)}),xg(this)):JZ9(this,Q.onCreateListCommand)};
var Vv$=function(A,Q,b,f,a){tA9(A.videoIds,Q,b);Q>A.currentIndex&&b<=A.currentIndex?A.JSC$12740_setCurrentIndex(A.currentIndex+1):Q===A.currentIndex?A.JSC$12740_setCurrentIndex(b):Q<A.currentIndex&&b>=A.currentIndex&&A.JSC$12740_setCurrentIndex(A.currentIndex-1);A.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:f,movedSetVideoIdPredecessor:a});xg(A)},JZ9=function(A,Q){i8W(A,"OBSOLETE");
A.currentCreateRequest=O8N(A.JSC$12740_playlistNetworkManager,Q,A.videoIds);_.oH(A.currentCreateRequest,function(){A.currentCreateRequest=void 0}).then(function(b){A.setListId(b.playlistId);
A.pendingUpdates.length>0?xg(A):nuK(A)})},xg=function(A){if(A.pendingUpdates.length!==0&&(A.currentRefreshRequest&&A.currentRefreshRequest.cancel("OBSOLETE"),!A.currentUpdateRequest&&!A.currentCreateRequest)){var Q=A.pendingUpdates.splice(0,A.pendingUpdates.length);
A.currentUpdateRequest=A.JSC$12740_playlistNetworkManager.updatePlaylist(A.listId,Q);_.oH(A.currentUpdateRequest,function(){A.currentUpdateRequest=void 0}).then(function(){A.pendingUpdates.length>0?xg(A):nuK(A)}).thenCatch(function(){A.pendingUpdates.unshift.apply(A.pendingUpdates,_.ri(Q))})}},nuK=function(A){A.currentRefreshRequest=_.kBL(A.JSC$12740_playlistNetworkManager,A.listId,A.currentIndex,A.videoIds[A.currentIndex]);
_.oH(A.currentRefreshRequest,function(){A.currentRefreshRequest=void 0}).then(function(Q){A.JSC$12740_updateCallback(Q.playlistId,Q.playlistPanelRenderer,Q.autoplayRenderer)})};
EZ.prototype.size=function(){return this.videoIds.length};var Iny=function(A,Q,b,f){f=f===void 0?[]:f;EZ.call(this,A,Q,b,f);this.JSC$12740_playlistNetworkManager=A;this.listId=Q;this.JSC$12740_updateCallback=b;this.videoIds=f};
_.O(Iny,EZ);_.c1=function(A,Q,b,f,a,T,G){a=a===void 0?[]:a;G=G===void 0?B2:G;EZ.call(this,A,Q,b,a);this.JSC$12740_playlistNetworkManager=A;this.listId=Q;this.JSC$12740_updateCallback=b;this.onAuthChange=f;this.videoIds=a;this.storage=T;this.cookieReader=G;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.LE(_.j7,this.checkLoggedInStatusChange.bind(this),1E3)};
_.O(_.c1,EZ);_.d=_.c1.prototype;_.d.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.LE(_.j7,this.checkLoggedInStatusChange.bind(this),1E3)};
_.d.JSC$12740_setCurrentIndex=function(A){EZ.prototype.JSC$12740_setCurrentIndex.call(this,A);this.store()};
_.d.delete=function(){_.j7.cancelJob(this.queueSapisIdJob);EZ.prototype.delete.call(this)};
_.d.setListId=function(A){EZ.prototype.setListId.call(this,A);this.store()};
_.d.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var H89=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],CHL=["playerResponse","videoDetails"],qMN=["response","currentVideoEndpoint","watchEndpoint","videoId"],ou1=["response","currentVideoEndpoint","watchEndpoint","playlistId"],tvv=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],rZL=["response","contents","twoColumnWatchNextResults","playlist","playlist"],juj=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
RFN=["response","contents","twoColumnWatchNextResults"];var zm={},c96=(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 kTX,O8N;kTX=function(A,Q){this.networkManager=A;this.innertubeTransportService=Q};
O8N=function(A,Q,b){if(!_.V(Q,_.yg))return _.gF(Error("Ef"));_.V(Q,_.yg).videoIds=b;b={create_playlist_title:_.JQ("QUEUE",void 0,"Queue")};return EZY(_.Ay(A.innertubeTransportService,Q,b),WD9)};
_.kBL=function(A,Q,b,f){Q={videoId:f,playlistId:Q,playlistIndex:b};b=_.bB(eRM);return EZY(_.wl(A.innertubeTransportService,Q,b),xbY)};
kTX.prototype.updatePlaylist=function(A,Q){return EZY(_.Ay(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:A,actions:Q}}),vZ6)};var guy=function(A){this.storage=A},eFW;
guy.prototype.store=function(A,Q){Q=Q===void 0?0:Q;if(this.storage&&A.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",A),this.storage.set("TLPQindex",String(Q)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(b){}};
guy.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
guy.prototype.getPlaylistId=function(){if(!this.storage)return null;var A=null;try{A=this.storage.get("TLPQplaylist")}catch(Q){}return A};var Z34=["navigationEndpoint","watchEndpoint","videoId"],u6J=["nextButtonVideo","watchEndpoint","videoId"];_.WY=new _.TS("NETWORK_TOKEN");_.F7=new _.TS("PAGE_TOKEN");_.u$=new _.TS("PLAYLIST_TOKEN");var hFp;hFp=new _.TS("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.vY=new _.TS("INNERTUBE_TRANSPORT_TOKEN");var WGv,ZX,Eu$,xoj,zFv,wKp;WGv=new Set(["ci","cr","carml"]);ZX=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12787_parkedJobs=new Map;this.parkedProcessors=new Map};
_.y2=function(){ZX.instance||(ZX.instance=new ZX);return ZX.instance};
ZX.prototype.onAny=function(A){return _.vuN(this,A,2)};
ZX.prototype.parkOrScheduleJob=function(A,Q,b,f,a){_.Yg(this,b)?_.Rc().addJob(A,Q,f):(a&&(A=Eu$(A),xoj(this,A,Q,b,a)),a=this.JSC$12787_parkedJobs.get(b),a||(this.JSC$12787_parkedJobs.set(b,[]),a=this.JSC$12787_parkedJobs.get(b)),a.push({job:A,priority:Q,delay:f}))};
ZX.prototype.addListener=function(A,Q,b){b&&(Q=Eu$(Q),xoj(this,Q,0,A,b));b=this.parkedProcessors.get(A);b||(this.parkedProcessors.set(A,[]),b=this.parkedProcessors.get(A));b.push(Q)};
ZX.prototype.processSignal=function(A){if(!_.Yg(this,A)){this.inProgressSignals.add(A);var Q=this.JSC$12787_parkedJobs.get(A);if(Q){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,_.Rc().addJob(b.job,b.priority,b.delay);this.JSC$12787_parkedJobs.delete(A)}if(Q=this.parkedProcessors.get(A)){Q=_.F(Q);for(b=Q.next();!b.done;b=Q.next())b=b.value,b();this.parkedProcessors.delete(A)}this.signals.push(A);this.inProgressSignals.delete(A)}};
_.Yg=function(A,Q){return WGv.has(Q)||_.Ep("IS_HOMEPAGE_COLD")||_.Ep("IS_RESULTS_PAGE_COLD")||_.Ep("IS_WATCH_PAGE_COLD")?A.signals.indexOf(Q)>=0:!0};
Eu$=function(A){var Q=!1;return function(){Q||(Q=!0,A())}};
xoj=function(A,Q,b,f,a){if(cZj.has(f))_.Rc().addJob(Q,b,a);else{var T=A.compoundSignals.get(f);T&&_.Rc().addJob(function(){_.Yg(A,f)||(T.isTimeoutConditionSatisfied?_.Rc().addJob(Q,b):T.timeoutConditionObservers.push(function(){_.Rc().addJob(Q,b)}))},b,a)}};
_.vuN=function(A,Q,b){if(Q.length>1){var f=[],a=Object.create(null);Q=_.F(Q);for(var T=Q.next();!T.done;T=Q.next())T=T.value,a[T]||(f.push(T),a[T]=!0);Q=f}if(Q.length===1)return Q[0];T=Q;f="";a=b===2?"|":"&";T.sort();T=_.F(T);for(var G=T.next();!G.done;G=T.next())f+=G.value+a;if(!A.compoundSignals.get(f)){a=0;T=[];G=_.F(Q);for(var p=G.next();!p.done;p=G.next())p=p.value,a++,_.Yg(A,p)||T.push(p);(b=b===2)&&a>T.length||!b&&!T.length?A.signals.push(f):zFv(A,f,b,Q,T)}return f};
zFv=function(A,Q,b,f,a){var T=a.length,G=function(){b||--T===0?A.processSignal(Q):wKp(A,Q)};
a=_.F(a);for(var p=a.next();!p.done;p=a.next())A.addListener(p.value,G);A.compoundSignals.set(Q,{signals:f,isOnAny:b,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});wKp(A,Q)};
wKp=function(A,Q){if(!_.Yg(A,Q)){var b=A.compoundSignals.get(Q);if(b&&!b.isTimeoutConditionSatisfied){for(var f=!1,a=0,T=0,G=_.F(b.signals),p=G.next();!p.done;p=G.next()){var P=p.value;p=!_.Yg(A,P);cZj.has(P)?f=!0:(P=A.compoundSignals.get(P))?p&&!P.isTimeoutConditionSatisfied&&(T++,b.isInitialized||P.timeoutConditionObservers.push(function(){wKp(A,Q)})):p&&a++}b.isInitialized=!0;
b.isOnAny?f&&(b.isTimeoutConditionSatisfied=!0):a===0&&T===0&&(b.isTimeoutConditionSatisfied=!0);if(b.isTimeoutConditionSatisfied)for(b=_.F(b.timeoutConditionObservers),f=b.next();!f.done;f=b.next())f=f.value,f()}}};
ZX.prototype.processSignal=ZX.prototype.processSignal;ZX.prototype.parkOrScheduleJob=ZX.prototype.parkOrScheduleJob;ZX.prototype.onAny=ZX.prototype.onAny;_.Al("ytsignals.getInstance",_.y2);ZX.prototype.onAny=ZX.prototype.onAny;ZX.prototype.parkOrScheduleJob=ZX.prototype.parkOrScheduleJob;ZX.prototype.processSignal=ZX.prototype.processSignal;var cZj=new Set(["eop","eocs","dl","pcl"]);_.zb=new _.TS("MINIPLAYER_SERVICE");var DX,ubv,Z8K;DX=function(A,Q,b){var f=_.Yk.getInstance();if(!eFW){var a=new UeY;var T=void 0,G=_.vG("ID_TOKEN");G&&a.isAvailable()&&(T=new oO(a,"yt-queue"+G));eFW=new guy(T)}a=eFW;T=_.y2();this.JSC$12794_actionRouter=f;this.pageManager=A;this.playlistManager=Q;this.JSC$12794_playlistNetworkManager=b;this.storage=a;this.signals=T;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.$g=function(){if(!ubv){var A=_.fJ(),Q=A.resolve(_.bu(_.F7)),b=A.resolve(_.bu(_.WY)),f=A.resolve(_.bu(_.u$));A=A.resolve(_.vY);ubv=new DX(Q,f,new kTX(b,A))}return ubv};
Z8K=function(A,Q,b){if(b){var f;if(((f=A.responsePlaylistData)==null?void 0:f.playlistId)!==b)return}A.responsePlaylistData&&(b=s3F(Q,A.responsePlaylistData),A.responsePlaylistData=(0,_.j2.unsafeClone)(A.responsePlaylistData),AFe(A.responsePlaylistData,b));b=A.temporaryItems.findIndex(function(a){return a.videoId===Q});
b>-1&&A.temporaryItems.splice(b,1);_.Nk(A,_.sZ(A,A.response?A.response.autoplayRenderer:void 0))};
_.yZL=function(A,Q){if(A.responsePlaylistData){var b=mb6(Q,A.responsePlaylistData);AFe(A.responsePlaylistData,b);if(A.queueProxy){var f=A.queueProxy;b<0||(f.videoIds.splice(b,1),b<f.currentIndex&&f.JSC$12740_setCurrentIndex(f.currentIndex-1),f.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:Q}),xg(f))}}_.Nk(A,_.sZ(A,A.response?A.response.autoplayRenderer:void 0))};
DX.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Nk(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
DX.prototype.setPlaylistData=function(A,Q,b){this.temporaryItems=[];this.listId=A;this.responsePlaylistData=Q;_.Nk(this,_.sZ(this,b))};
var YMY=function(A){return(A==null?0:A.playlistId)?A.playlistId:"PPSV"},Do1=function(A){return A&&A.playlistId?A.playlistId==="PPSV"?!0:b24(_.QK().getState().entities,A.playlistId):!1};
DX.prototype.isPlayingOfflineVideo=function(){return this.response?Do1(this.response):!1};
DX.prototype.closeMiniplayer=function(A){var Q=this.queueProxy&&this.queueProxy.size()<=1,b=_.fJ().resolve(_.zb);if(!this.queueProxy||Q)this.queueProxy&&this.clearQueue(),b.close(!0);else{b.pipController.getWindow()&&window.focus();Q=this.responsePlaylistData;var f=this.temporaryItems.length+(Q&&Q.contents?Q.contents.length:0);Q=_.JQ("QUEUE_CLEARED_UNPLURALIZED")||_.VI("QUEUE_CLEARED",f);Q=_.az(Q);b=_.JQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");f=_.JQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.VI("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",f);var a=_.JQ("MINIPLAYER_CLOSE",void 0,"Close"),T=_.JQ("CANCEL",void 0,"Cancel");_.x4(this.JSC$12794_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.sr(b),dialogMessages:[_.sr(f)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.sr(a),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
Q]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.sr(T)}}}}}}],A)}};
_.sZ=function(A,Q){var b={},f=A.response;b.autoplayRenderer=Q;if(!A.responsePlaylistData&&!A.temporaryItems.length)return!f||!f.hasRelatedVideoData&&_.K("kevlar_prefetch_data_augments_network_data")||(b.playerData={rvs:f.relatedVideoArgs,endScreenRenderer:f.endScreenRenderer}),b;b.playerData={};if(A.index===void 0)return _.en(Error("Gf")),b;b.panel=A.responsePlaylistData?(0,_.j2.unsafeClone)(A.responsePlaylistData):{titleText:_.sr(_.JQ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
Q=b.panel;if(Q.contents)for(var a=_.F(A.temporaryItems),T=a.next();!T.done;T=a.next())Q.contents.push({playlistPanelVideoRenderer:T.value});A.queueProxy&&f&&f.playingVideo&&f.playingVideoId&&!Nu9(f.playingVideoId,b.panel)&&(Q=f.playingVideo,a=b.panel,T=A.index,a.contents&&a.contents.splice(T===void 0?0:T,0,{playlistPanelVideoRenderer:Q}));f&&f.playingVideoId&&(Q=A.index,a=b.panel,Q=!a.contents||Q>=a.contents.length?void 0:a.contents[Q].playlistPanelVideoRenderer,Q&&Q.videoId===f.playingVideoId||(Q=
s3F(f.playingVideoId,b.panel),A.index=Q!==-1?Q:A.index?A.index-1:0));Q=$be(A.index+1,b.panel);a=void 0;A.index>0&&(a=$be(A.index-1,b.panel));if(a||Q)b.autoplayRenderer=y9F(Q,a,b.autoplayRenderer);!Q&&(f==null?0:f.relatedVideoArgs)&&(b.playerData.rvs=f.relatedVideoArgs);f=f?f.playlistIndexOffset:0;A.queueProxy?fJA(b.panel,A.index,f,DbY,!0,!0,!0):fJA(b.panel,A.index,f);b.playerData.playlistPanelRenderer=b.panel;return b};
DX.prototype.openToast=function(A){_.fJ().resolve(_.zb).openToast(A,_.JQ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
DX.prototype.isMiniplayerActive=function(){return _.fJ().resolve(_.zb).isMiniplayerActive()};
_.Nk=function(A,Q){A.playlistManager.setAutoplayRenderer(Q.autoplayRenderer||null);A.playlistManager.setPlaylistData(Q.panel||null);Q.playerData&&A.playlistManager.setPlayerPlaybackControlData(Q.playerData)};var TSb="#";var $o$={},Nqy={},suy={},moy={},A_9={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:($o$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",$o$),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:(Nqy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Nqy),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:(suy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",suy),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:(moy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",moy),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 xCy=[{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:A_9},{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:A_9}}];var tGF;_.UY=[[["bmQjNXp0bzJ0djdzdm5qa2k=","a2xjazJ6bGlpdWExdmFsdWUj"],"Q0VNRU5UX0tJTkRfU1RBUlQjNTh0Ymt2cTc1dTA1QURfUExB"]];
tGF=[[["YnlhbjEwcHJpbWFyeSMzMG94Yng=",null,null],[null,["ZXIjanU3Y3hsMzlqOXZieXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVy","c2NvcGUjbHF0cjc1OG1ub2Iyc3R5bGUt"],null],["YWQtYWQjZG5ueTloNnAyNG5wbWFzdGhl",["cmljaC1ncmlkLXJlbmRlcmVyI3k4dmdiNXd0aHcwanl0ZC0="],null],[null,["cmljaC1ncmlkLXJlbmRlcmVyI2o4NDBvNTQzMGV0Z3l0ZC0=","c2NvcGUjNGtmMjJxaTA0OW10c3R5bGUt"],null],[null,["LXByb21vLXJlbmRlcmVyI2N5YjNleGN4cWk5bXl0ZC1iYW5uZXI=","c2NvcGUjanN3czU3azQzYnIwc3R5bGUt"],null],[null,["eXRkLWFkLXNsb3QtcmVuZGVyZXIjdzF5eG9zemZ2anps"],
null]],[["eWVyLWFkcyM3cTY1ZGdxNmd1NnhwbGE=",null,null]]];_.SL=["cHU1MGQ2NHFvZGdsb2JhbENhbGxiYWNrcyNueg==","QWJub3JtYWxpdHlEZXRlY3RlZCNianFiZjh0dWV6dWxvbg==","MzZ5b25BZFNraXAjajh2Zjk3Mml0","Y3NyYXdfcGxheWVyX3Jlc3BvbnNlIzhtamVxYmh6YWs=","bGg0ejFlYWRTbG90cyM4bnJkYTc="];_.mc="cHU1MGQ2NHFvZGdsb2JhbENhbGxiYWNrcyNueg== QWJub3JtYWxpdHlEZXRlY3RlZCNianFiZjh0dWV6dWxvbg== MzZ5b25BZFNraXAjajh2Zjk3Mml0 Y3NyYXdfcGxheWVyX3Jlc3BvbnNlIzhtamVxYmh6YWs= c19rcyNzZWxucmFjamcyMGl3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcA== bGpnYWJfc2FfZWYjdGl6dWV2djRw bGg0ejFlYWRTbG90cyM4bnJkYTc=".split(" ");var AX;AX=function(A,Q,b){this.nyP=A;this.isAsync=Q;this.s9g=b};
_.mCf=[new AX("b.f_",!1,0),new AX("j.s_",!1,2),new AX("r.s_",!1,4),new AX("e.h_",!1,6),new AX("i.s_",!0,8),new AX("s.t_",!1,10),new AX("p.h_",!1,12),new AX("s.i_",!1,14),new AX("f.i_",!1,16),new AX("a.b_",!1,18),new AX("a.o_",!1),new AX("g.o_",!1,22),new AX("p.i_",!1,24),new AX("p.m_",!1),new AX("n.k_",!0,20),new AX("i.f_",!1),new AX("a.s_",!0),new AX("m.c_",!1),new AX("n.h_",!1,26),new AX("o.p_",!1),new AX("m.p_",!0,28),new AX("o.a_",!1),new AX("d.p_",!1),new AX("e.i_",!1)].reduce(function(A,Q){A[Q.nyP]=
Q;return A},{});var QnL=function(){};
QnL.prototype.flush=function(A,Q){A=A===void 0?[]:A;Q=Q===void 0?!1:Q;if(_.K("enable_client_streamz_web")){A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=ucy(b.value),this.rootSpec&&_.Lp(b,2,this.rootSpec),b={serializedIncrementBatch:_.Cs(b.JSC$9549_serializeBinary())},_.R4("streamzIncremented",b,{sendIsolatedPayload:Q})}};
var BSU=function(){};
_.O(BSU,QnL);var bBY=function(A){var Q=new WwK;var b=new g8W;b=_.nt(b,1,"botguard");A=_.nt(b,2,A);this.rootSpec=_.Ms(Q,1,v8M,A)};
_.O(bBY,QnL);var pT,fHr=new Map;var gXA,PFi,JFe,UCF,lJC,qEy,h0e,HVy;gXA=2;PFi=2;JFe=2;UCF=2;lJC=2;qEy=2;h0e=2;HVy=new v$L;var T5p,d2L,F0N;T5p=function(){this.ongoingFlowNonces=new Map};
_.iB=function(){d2L||(d2L=new T5p);return d2L};
_.lB=function(A,Q,b){return{eventType:{flowEventNamespace:A,flowEventType:Q},metadata:b,statusCode:void 0,csn:void 0,can:void 0}};
_.QSy=function(A,Q){var b=_.iB(),f=F0N(b,Q,!0);_.KT(b,A,Q,f)};
_.KT=function(A,Q,b,f){A={flowNonce:f||F0N(A,b),flowType:b,flowEventType:Q.eventType};Q.metadata&&(A.flowMetadata=Q.metadata);Q.statusCode!==void 0&&(A.flowEventStatus=Q.statusCode);Q.csn&&(A.csn=Q.csn);Q.can&&(A.can=Q.can);_.R4("flowEvent",A,void 0)};
F0N=function(A,Q,b){b=b===void 0?!1:b;var f=A.ongoingFlowNonces.get(Q);if(!f||b)f=gG(16),A.ongoingFlowNonces.set(Q,f);return f};_.GAj=new WTL;var T8i={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var Qn=function(A,Q,b,f,a,T,G){b=b===void 0?!1:b;f=f===void 0?!1:f;T=T===void 0?_.$g():T;this.hasRun=!1;this.wYr=A;this.p0j=Q;this.ijQ=b;this.fromHistory=f;this.previousVideoId=a;this.kK9=T;this.tempData=G;this.qWZ=new _.E$N};
_.O(Qn,FE);Qn.prototype.validate=function(A){return!(!A.data.playerResponse||A.data.page!=="watch"&&A.data.page!=="learning_journey_watch"&&A.data.page!=="shorts"||this.hasRun)};
Qn.prototype.handle=function(A){var Q=this,b=_.V(A.endpoint,_.sv),f=_.V(A.endpoint,_.CT);if(_.K("kevlar_continue_playback_without_player_response")&&(b==null?0:b.videoId)&&this.previousVideoId&&(b==null?void 0:b.videoId)===this.previousVideoId&&(b==null?0:b.continuePlayback)&&!this.fromHistory)this.wYr.resolve();else{var a={};b?a.watch_endpoint=b:f&&(a.watch_endpoint=f,f.endTimeSeconds&&(a.end=f.endTimeSeconds));A.data.page==="watch"?(A.data.filler||this.ijQ||(_.Wn("cfg"),_.Yk.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(a,B5j(this,A.endpoint)),_.K("enable_masthead_quartile_ping_fix")&&Object.assign(a,py$(this)),Object.assign(a,void 0),A.data.forceExternalPlaylist&&(a.external_list=!0)):A.data.page==="shorts"?_.Yk.getInstance().triggerAction("yt-start-loading-shorts"):A.data.page==="learning_journey_watch"&&_.Yk.getInstance().triggerAction("yt-start-loading-learning-journey");if(b=this.p0j()){try{b.loadVideoWithPlayerResponse(A.data.playerResponse,a),b.getPlayerPromise().then(this.wYr.resolve)}catch(T){_.en(T),
this.wYr.resolve()}this.hasRun=!0;b.getPlayerPromise().then(function(T){T.addEventListener("onAbnormalityDetected",function(){var G=A.data.playerResponse,p=T.getVideoData().cpn;h0e=0;_.aHW=p;if(p=sEe(G))Q.qWZ.increment("IN_PLAYER"),_.JE(5),_.K("ab_st_vid_ks")?T.pauseVideo(!0):T.stopVideo(),G.playabilityStatus=Object.assign({},G.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:p}}),G.videoDetails=void 0,_.Yk.getInstance().triggerOptionalAction("yt-updated-playability-status",
G.playabilityStatus)})})}else _.Wv(Error("Jf"))}};
var B5j=function(A,Q){var b=_.V(Q,_.sv);if(Q&&b&&b.playlistId&&b.videoId&&(A=A.kK9,A.queueProxy?(A=A.queueProxy,b=A.listId===b.playlistId?A.attributionData.get(b.videoId):void 0):b=void 0,b))return{queue_info:b}},py$=function(A){var Q;
if((Q=A.tempData)==null?0:Q.adpings)return{adpings:A.tempData.adpings}};var b7=function(A,Q,b){this.hasRun=!1;this.oBy=A;this.gv9=Q;this.l9e=b};
_.O(b7,FE);b7.prototype.validate=function(A){return!!_.j2.getValueByKeys.apply(null,[A.data].concat(_.ri(RFN)))};
b7.prototype.handle=function(A){var Q=this;this.oBy.promise.then(function(){var b=A.data;var f=_.j2.getValueByKeys.apply(null,[b].concat(_.ri(H89))),a=_.j2.getValueByKeys.apply(null,[b].concat(_.ri(rZL))),T=_.j2.getValueByKeys.apply(null,[b].concat(_.ri(qMN)));var G=(G=_.j2.getValueByKeys.apply(null,[b].concat(_.ri(CHL))))?{videoId:G.videoId,thumbnail:G.thumbnail,title:G.title?_.sr(G.title):void 0,shortBylineText:G.author?_.sr(G.author):void 0}:void 0;var p=void 0;_.K("web_get_playlist_id_from_current_endpoint_ks")||
(p=_.j2.getValueByKeys.apply(null,[b].concat(_.ri(ou1))));var P=_.j2.getValueByKeys.apply(null,[b].concat(_.ri(juj))),U=_.j2.getValueByKeys.apply(null,[b].concat(_.ri(tvv))),L=!!P||!!U&&!!U.results&&U.results.length>0,M=0;a&&a.currentIndex&&a.localCurrentIndex&&(M=a.currentIndex-a.localCurrentIndex);a&&a.playlistId&&(p=a.playlistId);b={rawResponse:b,autoplayRenderer:f,hasRelatedVideoData:L,playingVideo:G,playingVideoId:T,playlistPanelRenderer:a,playlistId:p,playlistIndex:a&&a.currentIndex,relatedVideoArgs:P,
endScreenRenderer:U,playlistIndexOffset:M};a:{f=Q.l9e;a=Q.gv9;f.response=b;if(Do1(b))f.downloadPlaylistProxy&&f.downloadPlaylistProxy.getPlaylistId()===YMY(b)||(f.downloadPlaylistProxy=new KG$(YMY(b),f.setPlaylistData.bind(f),f.isPlayingOfflineVideo.bind(f))),f.responsePlaylistData=f.downloadPlaylistProxy.getPlaylistData(),f.listId=YMY(b),f.index=0;else if(b.playlistPanelRenderer&&b.playlistId&&b.autoplayRenderer)b.playlistId.startsWith("TLPQ")?f.queueProxy?f.listId===b.playlistId?(f.index=b.playlistIndex,
f.responsePlaylistData=b.playlistPanelRenderer,f.queueProxy.JSC$12740_setCurrentIndex(f.index)):b.playingVideoId&&f.index!==void 0&&a.clientParams.autoSaveToQueue&&(f.index+=1,f.queueProxy.JSC$12740_setCurrentIndex(f.index),f.queueProxy.addVideos([b.playingVideoId],{},f.index)):(f.queueProxy=new _.c1(f.JSC$12794_playlistNetworkManager,b.playlistId,f.setPlaylistData.bind(f),f.clearQueue.bind(f),_.QEb(b.playlistPanelRenderer),f.storage),f.responsePlaylistData=b.playlistPanelRenderer,f.listId=b.playlistId,
f.index=b.playlistIndex):(f.index=b.playlistIndex,f.listId!==b.playlistId&&f.clearQueue(),f.responsePlaylistData=b.playlistPanelRenderer,f.listId=b.playlistId,f.playlistProxy=new Iny(f.JSC$12794_playlistNetworkManager,b.playlistId,f.setPlaylistData.bind(f),_.QEb(b.playlistPanelRenderer)));else if(!f.queueProxy)f.responsePlaylistData=void 0;else if(b.playingVideoId&&a.clientParams.autoSaveToQueue){if(f.index===void 0){_.en(Error("Ff"));f.clearQueue();break a}f.queueProxy.videoIds.includes(b.playingVideoId)||
(f.index+=1,f.queueProxy.JSC$12740_setCurrentIndex(f.index),f.queueProxy.addVideos([b.playingVideoId],{},f.index))}_.Nk(f,_.sZ(f,f.response.autoplayRenderer))}})};var PL9=function(A,Q){Q=Q===void 0?_.$g():Q;OZ.call(this);this.kx.push(new b7(this.vO,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},Q));this.kx.push(new Qn(this.vO,A,!1,!1));_.K("web_response_commands_chunk_processor")&&this.kx.push(new n2)};
_.O(PL9,OZ);PL9.prototype.processChunk=function(A){A&&A.data.player===void 0&&this.vO.resolve();OZ.prototype.processChunk.call(this,A)};var fW=function(A,Q){A=A===void 0?{layer:0}:A;this.hasRun=!1;this.createScreenConfig=A;this.sQW=Q};
_.O(fW,FE);fW.prototype.validate=function(A){return!(this.hasRun||!A.endpoint)};
fW.prototype.handle=function(A){var Q=_.IP(),b,f,a=(f=_.V((b=A.endpoint)==null?void 0:b.commandMetadata,_.KD))==null?void 0:f.rootVe;this.sQW&&a?_.Mk(Q,a,this.sQW,this.createScreenConfig):b_y(Q,A.endpoint,this.createScreenConfig);this.hasRun=!0};var aa=function(A,Q){this.hasRun=!1;this.rvY=A;this.previousVideoId=Q};
_.O(aa,FE);aa.prototype.validate=function(A){return _.K("kevlar_continue_playback_without_player_response")&&(A=_.V(A.endpoint,_.sv),(A==null?0:A.videoId)&&this.previousVideoId&&(A==null?void 0:A.videoId)===this.previousVideoId&&(A==null?0:A.continuePlayback))?!1:this.rvY.sD4===0};
aa.prototype.handle=function(A){_.Yk.getInstance().triggerAction("yt-stop-old-player",A.data,!0)};var XyW=function(A){A=A===void 0?{layer:0}:A;OZ.call(this);this.kx.push(new aa(this));this.kx.push(new fW(A));this.kx.push(new V2(A))};
_.O(XyW,OZ);var SwL=function(){this.hasRun=this.hasRun=!1};
_.O(SwL,FE);SwL.prototype.validate=function(A){return!this.hasRun&&!(!A.data.csn||!A.data.rootVe)};
SwL.prototype.handle=function(A){this.hasRun=!0;_.Ev(A.data.csn,A.data.rootVe,3)};var U2x=function(){FE.apply(this,arguments)};
_.O(U2x,FE);U2x.prototype.validate=function(A){return!!A.data.preconnect};
U2x.prototype.handle=function(A){_.hQ("bc");A=_.F(A.data.preconnect);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,(new Image).src=Q};var L0v=function(A,Q,b){b=b===void 0?{layer:0}:b;OZ.call(this);this.kx.push(new Qn(this.vO,A));this.kx.push(new fW(b));this.kx.push(new V2(b))};
_.O(L0v,OZ);var M0K=function(A,Q,b,f,a){b=b===void 0?{layer:0}:b;f=f===void 0?_.$g():f;OZ.call(this);var T=!!Q&&!!Q.clientParams&&!!Q.clientParams.miniplayer;T&&this.kx.push(new SwL);this.kx.push(new b7(this.vO,Q,f));this.kx.push(new U2x);var G,p;this.kx.push(new Qn(this.vO,A,T,!((G=Q.clientParams)==null||!G.fromHistory),(p=Q.clientParams)==null?void 0:p.previousVideoId,f,Q.tempData));var P;this.kx.push(new aa(this,(P=Q.clientParams)==null?void 0:P.previousVideoId));var U;(U=Q.clientParams)!=null&&U.fromHistory||
(b.layer||(b=Object.assign({},b,{layer:T?3:0})),this.kx.push(new fW(b,a)),this.kx.push(new V2(b)));_.K("web_response_commands_chunk_processor")&&this.kx.push(new n2)};
_.O(M0K,OZ);var T1,iBj;T1={};
_.lHL=(T1["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},T1["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},T1["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},T1["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},T1["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},T1["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},T1["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},T1);_.dk=new _.WE("yt-edu");_.K09=function(){this.JSC$12895_eduDisplayedThisLoad_={}};
iBj=function(A){var Q=_.K09.getInstance();var b=_.GP("kevlar_tooltip_impression_cap");Q=b&&parseInt(_.dk.get(A+"-impression")||0,10)>=b||_.dk.get(A+"-dismissed")?!1:(b=_.lHL[A])&&!Q.JSC$12895_eduDisplayedThisLoad_[b.setKey||A]&&(b.titleText&&_.JQ(b.titleText)||b.bodyText&&_.JQ(b.bodyText))?!0:!1;if(!Q)return null;Q=_.lHL[A];if(!Q)return null;b=Q.bodyText?_.JQ(Q.bodyText):void 0;var f=Q.titleText?_.JQ(Q.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:Q.position,popup:{bubbleHintRenderer:{text:f?
_.sr(f):void 0,detailsText:b?_.sr(b):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.sr(_.JQ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:A}}]}}}}}}}},{eduImpressionAction:{key:A}}]};
_.FY(_.K09);var baJ=!1;for(var J_1="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),V0W=[],FI=6;FI>=1;FI--)V0W.push({columnCount:FI,query:FI==1?0:FI*2*107-4+32,className:"grid-"+FI+"-columns",width:FI*2*107+"px"});_.nON=function(A){this.actionRouter_=A=A===void 0?_.Yk.getInstance():A;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.OBN(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.OBN=function(A){var Q=A.miniGuideVisible_?72:0,b=A.documentWidth_-(A.guidePersistentAndVisible_?240:Q);return V0W.find(function(f){return b>f.query})};
_.FY(_.nON);var kA9=function(){var A=this;this.JSC$12907_keyboardInUse=!1;document.addEventListener("keydown",function(){A.onKeydown()});
document.addEventListener("mousedown",function(){A.JSC$12907_keyboardInUse=!1})},IHv;
kA9.prototype.isKeyBoardInUse=function(){return this.JSC$12907_keyboardInUse};
kA9.prototype.onKeydown=function(){this.JSC$12907_keyboardInUse=!0};var HBL,pW;_.G1=new _.WE("yt-mentions");_.B3=function(){};
HBL=function(A,Q){return pW(Q,"drag-to-reorder-edu-displayed")};
pW=function(A,Q,b,f,a,T){b=b===void 0?"OPEN_POPUP_POSITION_TOP":b;if(Q){if(_.G1.get(Q))return;_.G1.set(Q,!0,f)}if(a&&T!==void 0){Q=Number(_.G1.get(a)||0);if(Q>=T)return;_.G1.set(a,Q+1)}return[{openPopupAction:{popupType:"HINT",position:b,popup:{bubbleHintRenderer:{detailsText:A,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.FY(_.B3);var CLx,qw$,oOY;CLx=function(A,Q,b,f){this.JSC$12917_taskManager_=A;this.onFulfilled_=typeof Q==="function"?Q:null;this.onRejected_=typeof b==="function"?b:null;this.JSC$12917_context_=f};
qw$=function(A,Q){A.onFulfilled_&&_.o$(A.JSC$12917_taskManager_,function(){A.onFulfilled_.call(A.JSC$12917_context_,Q)})};
oOY=function(A,Q){A.onRejected_&&_.o$(A.JSC$12917_taskManager_,function(){A.onRejected_.call(A.JSC$12917_context_,Q)})};
_.P3=function(A){this.JSC$12920_taskManager_=A;this.callbacks_=[]};
_.P3.prototype.then=function(A,Q,b){this.callbacks_.push(new CLx(this.JSC$12920_taskManager_,A,Q,b));return this};
_.P3.prototype.onSuccess=function(A){this.callbacks_.forEach(function(Q){qw$(Q,A)})};
_.P3.prototype.onFailure=function(A){this.callbacks_.forEach(function(Q){oOY(Q,A)})};
_.P3.prototype.cancel=function(){this.callbacks_.length=0};
Yip(_.P3);_.FZU=null;_.Wz=new _.TS("ACTIVITY_TOKEN");var XI=function(A,Q){this.serviceId=new yzr(A,Q)};
XI.prototype.toString=function(){return this.serviceId.toString()};var t0j=function(){this.internalMap={}};
_.d=t0j.prototype;_.d.contains=function(A){return Object.prototype.hasOwnProperty.call(this.internalMap,A)};
_.d.get=function(A){if(this.contains(A))return this.internalMap[A]};
_.d.set=function(A,Q){this.internalMap[A]=Q};
_.d.getKeys=function(){return Object.keys(this.internalMap)};
_.d.remove=function(A){delete this.internalMap[A]};var SN=function(){this.mappings=new t0j;this.errorCallbacks=new Set};
SN.prototype.getModuleId=function(A){return A.serviceId.getModuleId()};
SN.prototype.get=function(A){var Q=this.mappings.get(A.toString());return r_p(this,Q,A)};
SN.prototype.getMultipleAsync=function(){var A=_.E$.apply(0,arguments),Q=this,b=A.map(function(P){return Q.getModuleId(P)}),f=A.map(function(P){return Q.mappings.get(P.toString())}).filter(function(P){return P});
if(f.length===A.length)return _.Ul(f.map(function(P,U){return r_p(Q,P,A[U])}));
var a=tT().loadMultiple(b);f=_.qY(b.map(function(P){return a[P]}));
var T=document.hidden,G=-1,p=_.GP("get_async_timeout_ms",-1);p>-1&&(G=setTimeout(function(){_.Wv(new _.IO("Module timeout.",b,T,document.hidden))},p));
return _.oH(f.then(function(){return A.map(function(P){return r_p(Q,Q.mappings.get(P.toString()),P)})}).thenCatch(function(P){for(var U=_.F(Q.errorCallbacks),L=U.next();!L.done;L=U.next())L=L.value,L(P);
throw P;}),function(){clearTimeout(G)})};
SN.prototype.registerService=function(A,Q){this.mappings.set(A.toString(),{type:"mapping",value:Q});return A};
var r_p=function(A,Q,b){switch(Q.type){case "mapping":return Q.value;case "factory":return Q=Q.value(),A.mappings.set(b.toString(),{type:"mapping",value:Q}),Q;default:return _.x1(Q)}};
SN.prototype.onLoadError=function(A){var Q=this;this.errorCallbacks.add(A);return function(){Q.errorCallbacks.delete(A)}};
_.Uk=new SN;var XFF=/^[a-zA-Z0-9_\-]{11}$/;var SP6=_.kE(function(){var A,Q;return(Q=(A=window).matchMedia)==null?void 0:Q.call(A,"(prefers-reduced-motion: reduce)").matches});var jn9=_.kE(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 A=_.zV("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");A||(A=_.KK("VIDEO"),_.Al("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
A));return!!(A&&A.canPlayType&&A.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var iaW=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var LW;LW=function(){this.tokenJars={};if(this.cookiesEnabled=_.Oo()){var A=_.J$.get("CONSISTENCY",void 0);A&&RsY(this,{encryptedTokenJarContents:A})}};
_.V4f=function(){LW.instance||(LW.instance=new LW);return LW.instance};
LW.prototype.handleResponse=function(A,Q){if(!Q)throw Error("Pf");var b,f;Q=((b=Q.innerTubeRequest.context)==null?void 0:(f=b.request)==null?void 0:f.consistencyTokenJars)||[];var a;(A=(a=A.responseContext)==null?void 0:a.consistencyTokenJar)&&this.replace(Q,A)};
LW.prototype.replace=function(A,Q){A=_.F(A);for(var b=A.next();!b.done;b=A.next())delete this.tokenJars[b.value.encryptedTokenJarContents];RsY(this,Q)};
var RsY=function(A,Q){if(Q.encryptedTokenJarContents&&(A.tokenJars[Q.encryptedTokenJarContents]=Q,typeof Q.expirationSeconds==="string")){var b=Number(Q.expirationSeconds);setTimeout(function(){delete A.tokenJars[Q.encryptedTokenJarContents]},b*1E3);
A.cookiesEnabled&&_.Vb("CONSISTENCY",Q.encryptedTokenJarContents,b,void 0,!0)}};var gOy,MO;gOy=window.location.hostname.split(".").slice(-2).join(".");_.eL=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var A=_.vG("LOCATION_PLAYABILITY_TOKEN");_.vG("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=esp(this))&&(A=this.localStorage.get("yt-location-playability-token"));A&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0)};
_.eL.getInstance=function(){MO=_.zV("yt.clientLocationService.instance");MO||(MO=new _.eL,_.Al("yt.clientLocationService.instance",MO));return MO};
_.eL.prototype.setLocationOnInnerTubeContext=function(A){A.client||(A.client={});if(this.mostRecentPosition)A.client.locationInfo||(A.client.locationInfo={}),A.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),A.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),A.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),A.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)A.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.eL.prototype.handleResponse=function(A){var Q;A=(Q=A.responseContext)==null?void 0:Q.locationPlayabilityToken;A!==void 0&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0,_.vG("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=esp(this))&&this.localStorage.set("yt-location-playability-token",A,15552E3):_.Vb("YT_CL",JSON.stringify({loctok:A}),15552E3,gOy,!0))};
var esp=function(A){return A.localStorage===void 0?new _.WE("yt-client-location"):A.localStorage};
_.eL.prototype.clearLocationPlayabilityToken=function(A){A==="TVHTML5"?(this.localStorage=esp(this))&&this.localStorage.remove("yt-location-playability-token"):_.dey("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.eL.prototype.getCurrentPositionFromGeolocation=function(){var A=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var Q=!1,b=1E4;_.vG("INNERTUBE_CLIENT_NAME")==="MWEB"&&(Q=!0,b=15E3);return new Promise(function(f,a){navigator.geolocation.getCurrentPosition(function(T){A.mostRecentPosition=T;f(T)},function(T){a(T)},{enableHighAccuracy:Q,
maximumAge:0,timeout:b})})};
_.eL.prototype.createUnpluggedLocationInfo=function(A){var Q={};A=A.coords;if(A==null?0:A.latitude)Q.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)Q.longitudeE7=Math.floor(A.longitude*1E7);if(A==null?0:A.accuracy)Q.locationRadiusMeters=Math.round(A.accuracy);return Q};
_.eL.prototype.createLocationInfo=function(A){var Q={};A=A.coords;if(A==null?0:A.latitude)Q.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)Q.longitudeE7=Math.floor(A.longitude*1E7);return Q};var hsL=function(){};
_.d=hsL.prototype;
_.d.JSC$12987_getRequest=function(A,Q,b){Q=Q===void 0?{}:Q;b=b===void 0?QNy:b;var f=Q;if(this.isNavigationCommand()){var a,T=(a=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:a.url;f=_.OaF(A.clickTrackingParams,!0,!1,T,this.JSC$12987_getClientScreen(f))}else f=_.OaF(A.clickTrackingParams,!1,this.includeCsn);f={context:f};if(a=this.getExtension(A))return this.JSC$12987_buildRequest(f,a,Q),a=this.getApiUrl(A),T=Object.assign({},{command:A},this.getRequestConfig(A,Q)),f={input:a,requestShell:$f(a),
innerTubeRequest:f,config:T},f.config.authStrategy?f.config.authStrategy.identity=b:f.config.authStrategy={identity:b},(A=this.JSC$12987_getRequestKey(A,Q))&&!f.config.requestKey&&(f.config.requestKey=A),f;A=new _.IO("Error: Failed to create Request from Command.",A);_.en(A)};
_.d.getApiUrl=function(A){var Q=_.bB(this.getApiPaths(A)),b;(A=(b=_.V(A.commandMetadata,_.KD))==null?void 0:b.apiUrl)&&(Q=A);return $$C(D$W(Q))};
_.d.isNavigationCommand=function(){return!1};
_.d.JSC$12987_getClientScreen=function(){};
_.d.JSC$12987_getRequestKey=function(){};
_.d.getRequestConfig=function(){};
_.Qr.Object.defineProperties(hsL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var l7=function(){};
_.O(l7,hsL);l7.prototype.JSC$12994_getStoreKey=function(){};
l7.prototype.JSC$12987_getRequestKey=function(A,Q){Q=Q===void 0?{}:Q;return this.JSC$12994_getStoreKey(A,Q)};var vO1;_.KW=function(A,Q,b){var f=b&&b>0?b:0;b=f?Date.now()+f*1E3:0;if((f=f?(0,_.W0K)():vO1())&&window.JSON){typeof Q!=="string"&&(Q=JSON.stringify(Q,void 0));try{f.set(A,Q,b)}catch(a){f.remove(A)}}};
_.i7=function(A){var Q=vO1(),b=(0,_.W0K)();if(!Q&&!b||!window.JSON)return null;try{var f=Q.get(A)}catch(a){}if(typeof f!=="string")try{f=b.get(A)}catch(a){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(a){}return f};
_.JX=function(A){try{var Q=vO1(),b=(0,_.W0K)();Q&&Q.remove(A);b&&b.remove(A)}catch(f){}};
_.W0K=_.kE(function(){try{var A=new SrJ;var Q=A.isAvailable()?A:null}catch(b){return null}return Q?new _.PR(Q):null});
vO1=_.kE(function(){var A=new UeY;return A.isAvailable()?new _.PR(A):null});var BZ=new _.TS("ENTITY_STATE_TOKEN"),Vn=new _.TS("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var EOL=XMLHttpRequest.prototype.fetch,x2L=EOL&&EOL.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!so?!0:!1;var Ok=function(A){this.JSC$12999_storeWithEntities=A};
_.O(Ok,l7);_.d=Ok.prototype;_.d.getApiPaths=function(){return T8L};
_.d.getExtension=function(A){return _.V(A,_.sv)||_.V(A,_.CT)||_.V(A,TE1)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$12994_getStoreKey=function(A){if((_.K("kevlar_cache_on_ttl_player")||_.K("mweb_enable_shorts_innertube_player_prefetch")||_.K("mweb_use_new_history_manager")||_.K("web_shorts_prefetch_service_enabled"))&&(A=this.getExtension(A))&&A.videoId){var Q={videoId:A.videoId};A.playlistId&&(Q.playlistId=A.playlistId);A.playerParams&&(Q.params=A.playerParams);return _.NW("player",Q)}};
_.d.JSC$12987_getClientScreen=function(A){var Q;return((Q=A.contentPlaybackContext)==null?void 0:Q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.d.JSC$12987_buildRequest=function(A,Q,b){if(_.K("enable_interstitial_entity_check")){var f=this.JSC$12999_storeWithEntities;if(Q.videoId)for(var a=_.F(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),T=a.next();!T.done;T=a.next()){T=T.value;var G;var p=void 0,P=void 0,U=Q.videoId,L=T;(G=f)?(U=_.LO(U+L,"interstitialInteractionStateEntity"),G=(p=(P=_.Me(G.getState().entities,"interstitialInteractionStateEntity",U))==null?void 0:P.primaryButtonClicked)!=null?p:!1):G=!1;if(G)switch(T){case "CONTENT_CHECK_REQUIRED":Q.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":Q.racyCheckOk=!0}}}Q.videoId&&(A.videoId=Q.videoId);Q.playlistId&&(A.playlistId=Q.playlistId);Q.index!==void 0&&(A.playlistIndex=Q.index+1);Q.playerParams&&(A.params=Q.playerParams);"startTimeSeconds"in Q&&Q.startTimeSeconds&&(_.K("enable_player_request_builder_start_time_floor")?A.startTimeSecs=Math.floor(Q.startTimeSeconds):A.startTimeSecs=Q.startTimeSeconds);b.contentPlaybackContext&&(A.playbackContext={contentPlaybackContext:b.contentPlaybackContext});b.prefetchPlaybackContext&&
(A.playbackContext=Object.assign({},A.playbackContext,{prefetchPlaybackContext:b.prefetchPlaybackContext}),A.context.request||(A.context.request={}),A.context.request.isPrefetch=!0);A.playbackContext||(A.playbackContext={});f=jn9();A.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!f,supportXhr:x2L};b.overrideMutedAtStart&&(A.overrideMutedAtStart=b.overrideMutedAtStart);A.racyCheckOk=!!Q.racyCheckOk;A.contentCheckOk=!!Q.contentCheckOk;!_.K("captions_prefs_killswitch")&&(b=(b=_.i7("yt-player-caption-language-preferences"))?
b:[],b==null?0:b.length)&&(A.captionParams={viewerSelectedCaptionLangs:b})};
_.d.getRequestConfig=function(A){A=this.JSC$12994_getStoreKey(A);var Q;A&&(Q={storeStrategy:{storeKey:A}});_.K("web_log_player_watch_next_ticks")&&(Q=Q||{},Q.requestTick="ps_s",Q.responseTick="ps_r");return Q};
Ok[aW]=[BZ];var nW=function(){};
_.O(nW,l7);_.d=nW.prototype;_.d.getApiPaths=function(){return eRM};
_.d.getExtension=function(A){return _.V(A,_.sv)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$12994_getStoreKey=function(A){if((A=this.getExtension(A))&&A.videoId){var Q={videoId:A.videoId};A.playlistId&&(Q.playlistId=A.playlistId);A.index&&(Q.index=A.index);A.params&&(Q.params=A.params);return _.NW("next",Q)}};
_.d.JSC$12987_getClientScreen=function(A){var Q;return((Q=A.contentPlaybackContext)==null?void 0:Q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.d.JSC$12987_buildRequest=function(A,Q,b){Q.videoId&&(A.videoId=Q.videoId);Q.playlistId&&(A.playlistId=Q.playlistId);Q.params&&(A.params=Q.params);Q.index!==void 0&&(A.playlistIndex=Q.index);A.racyCheckOk=!(!b.racyCheckOk&&!Q.racyCheckOk);A.contentCheckOk=!!Q.contentCheckOk;b.contentPlaybackContext&&(A.autonavState=b.contentPlaybackContext.autonavState,A.playbackContext={vis:b.contentPlaybackContext.vis,lactMilliseconds:b.contentPlaybackContext.lactMilliseconds});b.prefetchPlaybackContext&&(A.context.request||
(A.context.request={}),A.context.request.isPrefetch=!0);_.K("captions_hats_killswitch")||(Q=_.nD().getFlag(65),Q=Q!=null?!Q:!1,b=!!_.i7("yt-player-sticky-caption"),A.captionsRequested=Q&&b)};
_.d.getRequestConfig=function(A){A=this.JSC$12994_getStoreKey(A);var Q;A&&(Q={storeStrategy:{storeKey:A}});_.K("web_log_player_watch_next_ticks")&&(Q=Q||{},Q.requestTick="wn_s",Q.responseTick="wn_r");return Q};
var k3=function(){};
_.O(k3,l7);k3.prototype.getApiPaths=function(){return eRM};
k3.prototype.getExtension=function(A){return _.V(A,_.Yo)};
k3.prototype.JSC$12987_buildRequest=function(A,Q){Q.token&&(A.continuation=Q.token)};var Ia=function(A,Q){this.playerRequestBuilder=A;this.watchNextRequestBuilder=Q};
_.O(Ia,l7);Ia.prototype.getApiPaths=function(){return YEp};
Ia.prototype.getExtension=function(A){return _.V(A,_.sv)};
Ia.prototype.isNavigationCommand=function(){return!0};
Ia.prototype.JSC$12987_buildRequest=function(A,Q,b){A.playerRequest={};this.playerRequestBuilder.JSC$12987_buildRequest(A.playerRequest,Q,b);_.K("web_streaming_watch")&&(A.watchNextRequest={},this.watchNextRequestBuilder.JSC$12987_buildRequest(A.watchNextRequest,Q,b))};
Ia[aW]=[Ok,nW];var c_M;_.H3=new _.TS("SHORTS_CONTROLLER_TOKEN");c_M=new _.TS("SHORTS_STATE_STORE_TOKEN");var CW=function(A,Q){var b=_.E$.apply(2,arguments);A=A===void 0?0:A;_.IO.call(this,Q,b);this.errorType=A;Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(CW,_.IO);var zsK,wyL,ZBp,ZZW,ZN,PA6,$2v,D2M,bfY,m2x,sny;zsK=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(A){return A+"="}).join("|"));
wyL=RegExp(".*\\?.*playnext=1.*");_.qO=function(A,Q,b,f){this.watchEndpointMap=A;this.reelWatchEndpointMap=Q;this.innerTubeTransportService=b;this.fetchPbj=f};
ZBp=function(A,Q,b){var f=_.fJ().resolve(_.bu(uoM));_.qO.instance=new _.qO(A,Q,b,f)};
_.y_9=function(A,Q){var b=_.GP("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;var f;if((f=_.V(Q.commandMetadata,_.KD))==null||!f.rootVe)return b&&_.Wv(Error("Sf")),!1;var a;f=(a=_.V(Q.commandMetadata,_.KD))==null?void 0:a.url;if(!f)return b&&_.Wv(Error("Tf")),!1;if(wyL.test(f))return!0;if(zsK.test(f))return b&&_.Wv(Error("Uf`"+f)),!1;if(_.V(Q,_.sv)){if(!(A.watchEndpointMap.watchNext&&A.watchEndpointMap.player||_.K("kevlar_fetch_initial_data_op_watch_client")))return b&&_.Wv(Error("Lf")),!1;
A=_.GP("web_pbj_log_warning_rate",0);A=A>0&&Math.random()<A;_.V(Q,_.sv)?pF4(Q)?Q=!0:(A&&_.Wv(Error("Mf")),Q=!1):(A&&_.Wv(Error("Lf")),Q=!1);return Q}if(_.V(Q,_.CT))return PVb(Q);if(_.V(Q,_.cV))return!0;A=_.m4(A.innerTubeTransportService,Q);!A&&b&&_.en(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(Q)});return A};
ZZW=function(A,Q,b,f,a,T){Q={url:Q};if(b==null?0:b.itct)Q.parentTrackingParams=b.itct;var G=_.bB(U6y);return _.wl(A.innerTubeTransportService,Q,G).then(function(p){(p=p.endpoint)||(p=_.IR);(b==null?0:b.itct)&&p&&!p.trackingParams&&(p.trackingParams=b.itct);var P=Iz(p);return ZN(A,p,b,f,P,a,T)})};
ZN=function(A,Q,b,f,a,T,G,p){p=p===void 0?{}:p;if(A.fetchPbj&&!_.y_9(A,Q)&&!_.K("force_one_platform")){p=A.fetchPbj(Q);var P=_.Ul(p.then(function(w){if(!w)throw Error("Wf");G(P)||T(Q,w);return w}));
return P}var U,L,M={rootVe:(U=_.V(Q.commandMetadata,_.KD))==null?void 0:U.rootVe,url:(L=_.V(Q.commandMetadata,_.KD))==null?void 0:L.url,endpoint:Q,page:a};if(_.V(Q,_.sv)){var l,J={contentPlaybackContext:_.tE(b,(l=_.V(Q.commandMetadata,_.KD))==null?void 0:l.url,f)},n=_.Qh();_.K("web_streaming_watch")&&window.TextDecoderStream?(p=Ywx(A.innerTubeTransportService,Q,J,function(w){!M.response&&w.content&&(M.response=w.content);!M.playerResponse&&w.player&&(M.playerResponse=w.player);T(Q,M)}),U=NPC(Q),U.length&&
(M.preconnect=U,T(Q,M)),D2M(p,n,M).catch(function(w){w instanceof CW&&w.errorType===2&&$2v(A,Q,J,M,T,G,n)})):$2v(A,Q,J,M,T,G,n);
return n.promise}if(_.V(Q,_.CT)){var t;if(((t=_.V(Q,_.CT))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var g=_.Qh();_.N5y(_.fJ().resolve(_.H3),Q).then(function(w){sny(A,b,f,a,T,g,w)});
return g.promise}p=_.Ul();var e;U={contentPlaybackContext:_.tE(b,(e=_.V(Q.commandMetadata,_.KD))==null?void 0:e.url,f)};(e=A.reelWatchEndpointMap.player)&&(e=e().JSC$12987_getRequest(Q,U))&&(p=_.wl(A.innerTubeTransportService,e.innerTubeRequest,e.input,Q.clickTrackingParams,e.config));e=_.Ul();(L=A.reelWatchEndpointMap.reelItemWatch)&&(L=L().JSC$12987_getRequest(Q))&&(e=_.wl(A.innerTubeTransportService,L.innerTubeRequest,L.input,Q.clickTrackingParams,L.config));L=_.Ul();(l=A.reelWatchEndpointMap.reelWatchSequence)&&
_.V(Q,_.CT).sequenceParams&&(U=l().JSC$12987_getRequest(Q,U))&&(L=_.wl(A.innerTubeTransportService,U.innerTubeRequest,U.input,Q.clickTrackingParams,U.config));U=_.Ul(M);l=_.Qh();m2x(Q,U,p,e,L,T,G,l);return l.promise}var x;if(_.V(Q,d6W)&&((x=_.V(Q.commandMetadata,_.KD))==null?0:x.url))return p=JCi(_.co(e2().location.href),_.co(_.V(Q.commandMetadata,_.KD).url)).toString(),ZZW(A,p,b,f,T,function(){return!1});
if(_.V(Q,_.cV))return T(Q,M),_.Ul(M);if(_.m4(A.innerTubeTransportService,Q)){p=Object.assign({},{tempData:b,disableCache:b.disableCache},p);var D=_.Ay(A.innerTubeTransportService,Q,p).then(function(w){M.response=w;G(D)||T(Q,M);return M});
return D}return _.Ul(M)};
_.Qgx=function(A,Q,b,f){if(_.V(Q,_.sv)||_.V(Q,_.CT)&&(_.K("mweb_enable_shorts_innertube_player_prefetch")||_.K("kevlar_enable_shorts_prefetch_in_sequence"))||_.V(Q,TE1)&&_.K("web_enable_prefetching_videos_on_home")){var a,T={contentPlaybackContext:_.tE(b,(a=_.V(Q.commandMetadata,_.KD))==null?void 0:a.url,f),prefetchPlaybackContext:LZX(b)},G,p,P;if(((G=_.V(Q,_.sv))==null?void 0:(p=G.watchEndpointSupportedPrefetchConfig)==null?void 0:(P=p.prefetchHintConfig)==null?void 0:P.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(b=
A.watchEndpointMap.watchNext)if(T=b().JSC$12987_getRequest(Q,T))return Promise.resolve(_.wl(A.innerTubeTransportService,T.innerTubeRequest,T.input,void 0,T.config).then(function(M){return M}))}else if(b=A.watchEndpointMap.player)if(T=b().JSC$12987_getRequest(Q,T))return Promise.resolve(_.wl(A.innerTubeTransportService,T.innerTubeRequest,T.input,void 0,T.config).then(function(M){return M}))}else if(_.m4(A.innerTubeTransportService,Q)){var U={tempData:b},L=AON(A.innerTubeTransportService,Q);
return L?new Promise(function(M,l){var J,n;return _.B(function(t){if(t.nextAddress==1)return t.yield(L,2);if(t.nextAddress!=4)return J=t.yieldResult,J.JSC$12994_getStoreKey(Q,U)?t.yield(_.Ay(A.innerTubeTransportService,Q,U),4):(l(new _.IO("Prefetching request builder with no store key.",Q)),t.jumpTo(0));n=t.yieldResult;M(n);_.Oi(t)})}):Promise.reject(new _.IO("Prefetching unregistered request builder.",Q))}return Promise.reject(new _.IO("No request builder available to prefetch endpoint.",Q))};
PA6=function(A,Q){var b,f,a;if(_.V(Q,_.sv)){var T=A.watchEndpointMap.watchNext;T&&(b=T());(A=A.watchEndpointMap.player)&&(f=A())}else if(_.V(Q,_.CT))(T=A.reelWatchEndpointMap.reelItemWatch)&&(b=T()),(T=A.reelWatchEndpointMap.player)&&(f=T()),(A=A.reelWatchEndpointMap.reelWatchSequence)&&(a=A());else{a:{A=Mm9(Q,A.innerTubeTransportService.endpointMap);if(A!==void 0)if(typeof A.then==="function")_.en(new _.IO("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",Q));else break a;
A=void 0}A&&(b=A)}var G,p,P;return{content:(G=b)==null?void 0:G.JSC$12994_getStoreKey(Q),player:(p=f)==null?void 0:p.JSC$12994_getStoreKey(Q),reelSequence:(P=a)==null?void 0:P.JSC$12994_getStoreKey(Q)}};
$2v=function(A,Q,b,f,a,T,G){var p=_.Ul(),P=A.watchEndpointMap.player;_.K("web_streaming_player")&&(P=oz(Ia));P&&(P=P().JSC$12987_getRequest(Q,b))&&(p=_.wl(A.innerTubeTransportService,P.innerTubeRequest,P.input,Q.clickTrackingParams,P.config));P=_.Ul();var U=A.watchEndpointMap.watchNext;U&&(b=U().JSC$12987_getRequest(Q,b))&&(P=_.wl(A.innerTubeTransportService,b.innerTubeRequest,b.input,Q.clickTrackingParams,b.config));A=_.Ul(f);bfY(Q,A,p,P,a,T,G)};
D2M=function(A,Q,b){return _.B(function(f){if(f.nextAddress==1)return f.yield(A,2);Q.resolve(b);_.Oi(f)})};
bfY=function(A,Q,b,f,a,T,G){var p,P,U,L,M;_.B(function(l){switch(l.nextAddress){case 1:return l.yield(Q,2);case 2:p=l.yieldResult;if(T(G.promise))return G.resolve(p),l.return();a(A,p);P=NPC(A);if(!P.length){l.jumpTo(3);break}return l.yield(Q,4);case 4:p.preconnect=P,a(A,p);case 3:return _.ML(l,5),l.yield(b,7);case 7:U=l.yieldResult;_.Z1(l,6);break;case 5:return L=_.Vw(l),G.reject(L),l.return();case 6:if(U===void 0)return p.reload=!0,a(A,p),G.resolve(p),l.return();if(T(G.promise))return G.resolve(p),
l.return();p.playerResponse=U;a(A,p);_.ML(l,8);return l.yield(f,10);case 10:M=l.yieldResult;_.Z1(l,9);break;case 8:_.Vw(l);case 9:if(M===void 0)return p.response={responseContext:{}},G.resolve(p),l.return();if(T(G.promise))return G.resolve(p),l.return();p.response=M;a(A,p);G.resolve(p);_.Oi(l)}})};
m2x=function(A,Q,b,f,a,T,G,p){var P,U,L,M,l,J;_.B(function(n){switch(n.nextAddress){case 1:return n.yield(Q,2);case 2:P=n.yieldResult;if(G(p.promise))return p.resolve(P),n.return();T(A,P);U=NPC(A);if(!U.length){n.jumpTo(3);break}return n.yield(Q,4);case 4:P.preconnect=U,T(A,P);case 3:return _.ML(n,5),n.yield(b,7);case 7:L=n.yieldResult;_.Z1(n,6);break;case 5:return M=_.Vw(n),p.reject(M),n.return();case 6:if(L===void 0)return P.reload=!0,T(A,P),p.resolve(P),n.return();if(G(p.promise))return p.resolve(P),
n.return();P.playerResponse=L;T(A,P);_.ML(n,8);return n.yield(f,10);case 10:l=n.yieldResult;_.Z1(n,9);break;case 8:_.Vw(n);case 9:if(l===void 0)return P.response={responseContext:{}},p.resolve(P),n.return();if(G(p.promise))return p.resolve(P),n.return();P.response=l;T(A,P);_.ML(n,11);return n.yield(a,13);case 13:J=n.yieldResult;_.Z1(n,12);break;case 11:_.Vw(n);case 12:if(G(p.promise))return p.resolve(P),n.return();P.reelWatchSequenceResponse=J;T(A,P);p.resolve(P);_.Oi(n)}})};
sny=function(A,Q,b,f,a,T,G){var p,P,U,L,M,l;_.B(function(J){if((p=G)==null||!p.replacementEndpoint)return T.reject(),J.return();P=G.replacementEndpoint;(U=_.V(P,_.CT))?(G.sequenceContinuation&&(U.sequenceParams=G.sequenceContinuation),L=_.fJ().resolve(_.H3),M=U.sequenceParams,fpv(L,P)&&delete U.sequenceParams,l=ZN(A,P,Q,b,f,a,function(){return!1}),l.then(function(n){return _.B(function(t){if(t.nextAddress==1)return apY(L,{reelWatchEndpoint:{sequenceParams:M}},n),t.yield(0,2);
T.resolve(n);_.Oi(t)})})):T.reject();
_.Oi(J)})};_.Tm9=function(A){if(A.validatedFragments_.length==0)return null;if(!A.mergedPrefetchedData_){for(var Q=[],b=_.F(A.validatedFragments_),f=b.next();!f.done;f=b.next()){f=_.F(A.fragmentConfiguration_[f.value].graftedKeys);for(var a=f.next();!a.done;a=f.next())(a=A.prefetchedData_[a.value].trackingParams)&&Q.push(a)}A.mergedPrefetchedData_={};Object.assign(A.mergedPrefetchedData_,A.prefetchedData_,{clientSideGrafts:Q})}return A.mergedPrefetchedData_};var dnj;_.oa=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
dnj=function(A,Q,b){if(_.GTJ(Q))return A.prefetchCache_.get(_.B8f(Q,b))};_.tX=new _.TS("NAVIGATION_TOKEN");var FnM=function(A){var Q=this;var b=b===void 0?I_b():b;var f=f===void 0?_.fJ().resolve(_.tX):f;this.onePickCommand=A;this.JSC$13097_playlistNetworkManager=b;this.navigationManager=f;this.videoPickerBuilder=_.nJ4("yt-addtoplaylist");_.Soj(d3p(FS1(Tov(this.videoPickerBuilder.setTitle(A.modalTitle).setSize(1E3).addView(Bej()).addView(GPN())).addView("youtube"),A.selectButtonLabel)),function(a){Q.handleAction(a)})};
FnM.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
FnM.prototype.handleAction=function(A){var Q=this;if(A&&this.onePickCommand.listId&&A.action==="picked"&&A.docs){var b=[];A.docs.forEach(function(f){b.push({addedVideoId:f.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13097_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,b).then(function(){_.K("playlist_add_video_hard_reload_killswitch")?Q.navigationManager.reload():G_9(Q.navigationManager)})}};var Bmp=function(){if(this.constructor===Bmp)throw new TypeError("Xf");};
_.d=Bmp.prototype;_.d.dispose=function(){};
_.d.disconnect=function(){};
_.d.reconnect=function(){};
_.d.observe=function(A,Q,b){return{element:A,option:b}};
_.d.unobserveByKey=function(){};var Hay=function(A,Q){Q=Q===void 0?0:Q;Bmp.call(this);this.viewroot=A;this.defaultPrescanHeight=Q;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),A?{root:A,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.O(Hay,Bmp);_.d=Hay.prototype;_.d.dispose=function(){this.disconnect();this.handlers.clear()};
_.d.disconnect=function(A){this.isConnected=!1;this.pauseObservingUntilReconnect=A===void 0?!1:A;this.observer.disconnect();A=_.F(this.prescanObservers.values());for(var Q=A.next();!Q.done;Q=A.next())Q.value.disconnect()};
_.d.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var A=_.F(this.handlers),Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;var f=b.next().value;b=!1;f=_.F(f.keys());for(var a=f.next();!a.done;a=f.next())if((a=a.value)&&a.state==="prescan"){b=!0;break}b&&p71(this,Q).observe(Q);this.observer.observe(Q)}}};
_.d.handleObserveEvent=function(A){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=this.handlers.get(Q.target);if(b){var f=Q.isIntersecting;b=_.F(b);for(var a=b.next();!a.done;a=b.next()){var T=_.F(a.value);a=T.next().value;T=T.next().value;a&&(a.state==="visible"&&f||a.state==="hidden"&&!f)&&(T(Q.target,a.state),a.calledOnce&&this.unobserveByKey({element:Q.target,option:a}))}}}};
_.d.handlePrescanEvent=function(A){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=this.handlers.get(Q.target);if(b&&Q.isIntersecting){b=_.F(b);for(var f=b.next();!f.done;f=b.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;f&&f.state==="prescan"&&(a(Q.target,f.state),f.calledOnce&&this.unobserveByKey({element:Q.target,option:f}))}}}};
_.d.observe=function(A,Q,b){var f=(f=this.handlers.get(A))&&f.has(b)?{element:A,option:b}:void 0;if(f)return f;f={element:A,option:b};this.handlers.has(A)||this.handlers.set(A,new Map);var a=this.handlers.get(A);a&&!a.has(b)&&a.set(b,Q);this.pauseObservingUntilReconnect||(b.state==="prescan"&&p71(this,A).observe(A),this.observer.observe(A));return f};
_.d.unobserveByKey=function(A){var Q=this.handlers.get(A.element);if(Q&&Q.has(A.option)){Q.delete(A.option);if(A&&A.option.state==="prescan")for(var b=_.F(this.prescanObservers.values()),f=b.next();!f.done;f=b.next())f.value.unobserve(A.element);Q.size===0&&(this.handlers.delete(A.element),this.observer.unobserve(A.element))}};
var p71=function(A,Q){var b=A.defaultPrescanHeight;Q.hasAttribute("prescan-height")&&(Q=Number(Q.getAttribute("prescan-height")),isNaN(Q)||(b=Q));if(A.prescanObservers.has(b))return A.prescanObservers.get(b);Q="-0.1px -0.1px "+b+"px -0.1px";Q=new IntersectionObserver(A.handlePrescanEvent.bind(A),A.viewroot?{root:A.viewroot,rootMargin:Q}:{rootMargin:Q});A.prescanObservers.set(b,Q);return Q};var PE$=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],X7j=function(){var A,Q=this;this.JSC$13114_actionRouter=A=A===void 0?_.Yk.getInstance():A;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return Q.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return Q.visibilityObservedElementHandlerKeys}}},SAK,Lnx,Kn$;
X7j.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.K("kevlar_use_vimio_behavior")&&_.vG("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=CVe())};
X7j.prototype.dispose=function(){this.visibilityMonitor&&_.kp(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
X7j.prototype.handleVisibilityRefreshed=function(){for(var A=_.F(this.targetMap.entries()),Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;b=b.next().value;_.UnL(this,Q,b)}};
_.lp1=function(A,Q,b){Lnx(A,b);var f=_.Mzv(A,Q);f.element=b;A.targetedElements.set(b,Q);_.UnL(A,Q,f)};
Lnx=function(A,Q){var b=A.targetedElements.get(Q);if(b){var f=A.targetMap.get(b);f&&(delete f.element,A.targetMap.set(b,f));A.targetedElements.delete(Q);A.visibilityObserver&&A.visibilityObservedElementHandlerKeys&&(b=A.visibilityObservedElementHandlerKeys.get(Q))&&(A.visibilityObserver.unobserveByKey(b),A.visibilityObservedElementHandlerKeys.delete(Q))}};
_.UnL=function(A,Q,b){var f=b.action,a=b.element;a&&f&&(PE$.includes(Q)||_.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||A.visibilityMonitor&&A.visibilityMonitor.isNodeVisible(a)?Kn$(A,Q,b):A.visibilityObserver&&(A.visibilityObservedElementHandlerKeys||(A.visibilityObservedElementHandlerKeys=new WeakMap),f=A.visibilityObserver.observe(a,function(){Kn$(A,Q,b);A.visibilityObservedElementHandlerKeys.delete(a)},{calledOnce:!0,
state:"visible"}),A.visibilityObservedElementHandlerKeys.set(a,f)))};
Kn$=function(A,Q,b){var f=b.action;(b=b.element)&&f&&(_.x4(A.JSC$13114_actionRouter,[f],b),A.targetMap.delete(Q),A.targetedElements.delete(b),A.triggeredTargets.add(Q))};
_.Mzv=function(A,Q){var b=A.targetMap.get(Q);b||(b={},A.targetMap.set(Q,b));return b};
_.rk=function(){SAK||(SAK=new X7j);return SAK};var ify=document.createElement("div");ify.style.touchAction="pan-down";var qPf=ify.style.touchAction==="pan-down";var JOL,Vzj;JOL=function(){this.hammerFn=Tz9();this.JSC$13122_screenManager=_.IP();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.K6(83615);_.K2(this.JSC$13122_screenManager,this.ve);oJA()};
_.jN=function(){Vzj||(Vzj=new JOL);return Vzj};
JOL.prototype.registerTouchEvents=function(A,Q,b){var f=_.E$.apply(3,arguments),a=this.hammerFn(A,{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}]]});b&&a.set({touchAction:b});this.nodeManagerMapping.set(A,a);var T=
t46(Q);f=_.F(f);for(var G=f.next();!G.done;G=f.next()){G=G.value;if(G.includes("swipe")||G.includes("pinch")||G.includes("pan"))G.includes("swipe")?a.get("swipe").set({enable:!0,direction:T,velocity:.2}):G.includes("pinch")?a.get("pinch").set({enable:!0}):G.includes("pan")&&(a.get("pan").set({enable:!0,direction:T}),a.get("swipe").set({enable:!0,direction:T,velocity:.2}),a.get("swipe").recognizeWith("pan"));Of$(this,A,a,G)}};
var Of$=function(A,Q,b,f){b.on(f,function(a){if(f.includes("pinch"))A.lastPinchTime=Date.now();else if(f.includes("swipe")&&Date.now()-A.lastPinchTime<400)return;a.pointerType!=="mouse"&&(a=f==="doubletap"?{coordinates:a.center}:f.includes("pan")?a:f.includes("swipe")?{target:a.target}:{},Q.dispatchEvent(new CustomEvent(f,{bubbles:!0,composed:!0,detail:a})))})};
JOL.prototype.unregisterTouchEvents=function(A){var Q=_.E$.apply(1,arguments),b=this.nodeManagerMapping.get(A);if(b){Q=_.F(Q);for(var f=Q.next();!f.done;f=Q.next())b.off(f.value);this.nodeManagerMapping.delete(A);A.style.touchAction="unset"}};var n0Y=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var rCJ=null;var k_v=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},$6i=function(){k_v.instance||(k_v.instance=new k_v);
return k_v.instance},N8e=function(A){var Q=A.networkEvents;
A.networkEvents=[];return _.K("enable_network_monitoring")?Q:[]};var Ipy;Ipy={};_.HfY=bC("yt-serviceworker-metadata",{objectStores:(Ipy.auth={addedAtVersion:1},Ipy["resource-manifest-assets"]={addedAtVersion:2},Ipy),shared:!0,upgrade:function(A,Q){Q(1)&&ES(A,"resource-manifest-assets");Q(2)&&ES(A,"auth")},
version:2});var WZ6=self.location.origin+"/";vJ9([/\.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\//]);vJ9([/purge_shell=1/]);var CEN=void 0;CEN=CEN===void 0?[]:CEN;for(var qA$=[],o0v=_.F(Yt9),tz$=o0v.next();!tz$.done;tz$=o0v.next())qA$.push({key:tz$.value});for(var rOL=_.F(CEN),jgL=rOL.next();!jgL.done;jgL=rOL.next())qA$.push(jgL.value);var RW9,EY=_.by==null?void 0:(RW9=_.by.performance)==null?void 0:RW9.memory,cCJ=!1,sSb={},uNX={},xr={},cY=navigator;var Ra=function(A){this.JSC$13166_expiringStorage=new CJ(A)};
Ra.prototype.set=function(A,Q,b){b=b!==void 0?Date.now()+b:void 0;this.JSC$13166_expiringStorage.set(A,Q,b)};
Ra.prototype.get=function(A){return this.JSC$13166_expiringStorage.get(A)};
Ra.prototype.remove=function(A){this.JSC$13166_expiringStorage.remove(A)};var d0X=_.sC(["https://www.youtube.com/",""]),Fti=_.sC(["https://studio.youtube.com/",""]),XmF="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Bw9=null,lxY;var g0L=_.sC(["https://www.youtube.com/iframe_api"]),gk=function(){this.playerResolver_=_.Qh();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.nw;this.playbackDurationSeconds_=0},eWL=function(A){var Q=function(){return window.YT&&typeof window.YT.ready==="function"};
if(Q())return _.Ul(window.YT);var b=_.Qh(),f=_.KK("SCRIPT");f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||(f.onload=_.nw,f.onreadystatechange=_.nw,f.onerror=_.nw,Q()?b.resolve(window.YT):b.reject(new _.IO("Failed to load the iframe player library","script.onload",f.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
f.onerror=function(a){f.onload=_.nw;f.onreadystatechange=_.nw;f.onerror=_.nw;b.reject(new _.IO("Failed to load the iframe player library","script.onerror",a&&a.target&&a.target.src))};
_.mw(f,_.GH(g0L));A.insertBefore(f,A.firstChild);return b.promise},hWr=function(A,Q,b){var f,a;
_.B(function(T){switch(T.nextAddress){case 1:return A.playbackEndedCallback_=b,_.ML(T,2),T.yield(eWL(Q.parentElement||null),4);case 4:f=T.yieldResult;_.Z1(T,3);break;case 2:return a=_.Vw(T),a instanceof _.IO&&a.args&&a.args[0]=="script.onerror"?_.Wv(a):_.en(a),T.return();case 3:f.ready(function(){return new f.Player(Q,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:A.onPlayerReady_.bind(A),onStateChange:A.onPlayerStateChange_.bind(A),
onCueRangeExit:A.onCueRangeExit_.bind(A)}})}),_.Oi(T)}})};
_.d=gk.prototype;_.d.getPlayerPromise=function(){return this.playerPromise_};
_.d.onPlayerReady_=function(A){this.playerResolver_.resolve(A.target)};
_.d.onPlayerStateChange_=function(A){if(A.data==YT.PlayerState.PLAYING){A=A.target;var Q=A.getCurrentTime();A.addCueRange("playback",Q,Q+this.playbackDurationSeconds_)}};
_.d.onCueRangeExit_=function(A){A.data=="playback"&&(A.target.stopVideo(),this.playbackEndedCallback_())};
_.d.stopVideo=function(){this.playerPromise_.then(function(A){A.stopVideo()})};
var WnL=function(A){A.playerVars_&&A.playerPromise_.then(function(Q){typeof Q.cueVideoByPlayerVars!="function"?_.Wv(new _.IO("vmh: player API not ready","cueVideoByPlayerVars",typeof Q.cueVideoByPlayerVars)):Q.cueVideoByPlayerVars(A.playerVars_)})};
gk.prototype.playVideo=function(){var A=this;this.playerVars_&&this.playerPromise_.then(function(Q){typeof Q.loadVideoByPlayerVars!="function"?(Q=new _.IO("vmh: player API not ready","loadVideoByPlayerVars",typeof Q.loadVideoByPlayerVars),_.en(Q)):Q.loadVideoByPlayerVars(A.playerVars_)})};
var v0K=function(A,Q,b,f,a){Q&&(b===void 0&&(b=0),f===void 0&&(f=0),A.playbackDurationSeconds_=f/1E3,A.playerVars_={adformat:"17_8",videoId:Q,suggestedQuality:"hd720",startSeconds:b/1E3,player_params:a})};
gk.prototype.mute=function(){this.playerPromise_.then(function(A){A.mute()})};
gk.prototype.unMute=function(){this.playerPromise_.then(function(A){A.unMute()})};var E0L=function(A,Q){var b=wG();A||(A="unknown");Q||(Q="unknown");A="MAIN_APP_WEB_PAGE_TYPE_"+A.toUpperCase();A in bn1||(A="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");Q="MAIN_APP_WEB_REQUEST_TYPE_"+Q.toUpperCase();Q in fmY||(Q="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.L7(b,{mainAppWeb:{pageType:A,requestType:Q,isShellLoad:_.Ep("IS_SHELL_LOAD",!1)}})},xnp={start:function(){_.L7(g4Y(),{mainAppWeb:_.Dk()})},
success:function(){_.Mr(g4Y(),"SUCCESS")},
failure:function(){_.Mr(g4Y(),"FAILURE")},
cancelled:function(){_.Mr(g4Y(),"CANCELLED")}};var cOL,zWK,IxC;cOL=_.sC(["/sw.js"]);zWK=_.sC(["/sw.js?0"]);_.w79=_.GH(cOL);IxC=_.GH(zWK);var um$=function(){var A=Error.apply(this,arguments);this.message=A.message;"stack"in A&&(this.stack=A.stack)};
_.O(um$,Error);_.sY.prototype.load=function(A){this.megabloxUrl_=_.vG("YPC_MB_URL");_.uh(this.megabloxUrl_,(0,_.IL)(function(){A&&A()},this))};
_.zey=function(A,Q,b,f,a,T,G,p,P,U,L){_.CtY(P);A.load((0,_.IL)(function(){try{var M=T?T:_.vG("HL"),l=_.vG("SESSION_INDEX");_.S0b("client",function(){sLr("59",{helpCenterPath:"/youtube",locale:M,window:window}).JSC$9917_loadChatSupport({authuser:String(l)})})}catch(J){throw $r(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),a&&a(J),_.en(J),J;
}ZfL(this,Q,b,f,a,T,G,p,P,U,L)},A))};
_.sY.prototype.openFixFlowDialog=function(A,Q,b,f){this.load((0,_.IL)(function(){try{yOM(this,_.zV("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(A).withIntegratorCallback(Q).load(b,f)}catch(a){throw _.en(a),a;}},this))};
var yOM=function(A,Q,b,f){var a=Q.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.K("enable_window_constrained_buy_flow_dialog")&&(a=a.usingPopupStyle(_.zV("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));f&&(a=a.usingCloseCallback(f));Q.bootstrap.fromPaymentsUrl(A.megabloxUrl_);A=Q.bootstrap.asMashupMode(a);b=b?b:_.vG("HL");A.usingGaiaIndex(_.vG("SESSION_INDEX")).usingLocale(b).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.K("enable_google_payments_buyflow_material2_style_web")?
A.usingStyle(":m2;pc=#444;ac=#065fd4"):A.usingStyle(":md;pc=#444;ac=#065fd4");return A},ZfL=function(A,Q,b,f,a,T,G,p,P,U,L){try{var M=_.zV("payments.business.integration");
if(!M)throw new um$("payments.business.integration is undefined");var l=M.standaloneContextAuthId.forUserId(),J=yOM(A,M,T,function(){oKf(!1);p&&p()});
G&&J.usingServerAnalyticsEventHandler(G);var n=J.inStandaloneContext(l).buyFlow(function(t){if(t&&(!t.integratorData||t.integratorData===""||t.error))if(t.error!=null)if(String(t.error)==="-1")_.q9U(P);else{var g=String(t.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";$r(10,L,g,t.debugCode);_.Nj(g,P,t.debugCode);g=new _.IO("PAYMENT_ERROR_MESSAGE::"+t.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+t.internalErrorDetails);
_.en(g)}else $r(10,L,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Nj("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",P,"EMPTY_INTEGRATOR_DATA"),_.en(Error("bg"));b&&(oKf(!1),b(t))}).withEncryptedParameters(Q);
U&&n.withClientParameters(AJ4(_.zDe(U)));n.load(function(){$r(24,L);_.vn("ttc",void 0,"commerce_transaction");bbe("commerce_transaction");f&&(f(),oKf(!0))},function(t){if(t==null?0:t.debugCode)var g=t==null?void 0:t.debugCode;
else if(!t||(t==null?0:t.debugCode))g="EMPTY_LOAD_FAILURE_ERROR",_.en(Error(g));else{g="EMPTY_LOAD_FAILURE_DEBUG_CODE";var e=new _.IO("LOAD_FAILURE:"+t.message," DEBUG_CODE:"+g);_.en(e)}$r(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",g);_.Nj("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",P,g);_.en(t);a&&a(t)})}catch(t){throw t instanceof um$&&($r(10,L,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),a&&a(t)),_.en(t),t;
}};var YAK;YAK=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.EFX=function(A,Q){Q=Q===void 0?!1:Q;A=YAK.test(A)?_.k8(A):null;!Q&&window.payments||!A?(A=_.Qh(),Q=A.promise,A.resolve()):Q=_.W9M(A,{attributes:{"data-payments-main":"",id:"payment-lib"}});return Q};var DnN;DnN=_.sC(["//www.googletagmanager.com/gtm.js?id=",""]);_.eN=function(A,Q){_.PL(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:Q}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.vG("GL")}),Q=_.KK("SCRIPT"),Q.async=!0,_.mw(Q,_.GH(DnN,A)),Q.id="gtm",A=document.getElementsByTagName("script"),A.length==0?document.head.appendChild(Q):(A=A[0],A.parentNode.insertBefore(Q,A)))};
_.hX=function(A){if(A=JSON.parse(A))window.dataLayer=window.dataLayer||[],window.dataLayer.push(A)};var $nr,Nm$;$nr=_.sC(["https://clients2.google.com/gr/gr_sync.js"]);_.WsJ=function(){};
_.WsJ.prototype.init=function(){if(Nm$()){var A=_.Qh();A.resolve();return A.promise}return _.W9M(_.GH($nr)).then(function(){if(!Nm$())throw Error("cg");},function(){throw Error("dg");
})};
_.vF6=function(){if(!Nm$())return"";var A=window.google.gr;A.init({async:{schedule:"sync"},merchantId:"youtube"});A.start();A=A.finish();return A==null?"":A};
Nm$=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.q=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.q,PolymerFakeBaseClassWithoutHtml);_.nc=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.O(_.nc,PolymerFakeBaseClassWithoutHtml);var tyC=window.ShadyDOM;var PHY,BqW,SMJ,Uof,MvJ,lnF,W3,GU;PHY=_.K("enable_shadydom_free_scoped_query_methods");BqW=_.K("enable_shadydom_free_scoped_node_methods");SMJ=_.K("enable_shadydom_free_scoped_readonly_properties_batch_one");Uof=_.K("enable_shadydom_free_parent_node");MvJ=_.K("enable_shadydom_free_children");lnF=_.K("enable_shadydom_free_last_child");W3=window.ShadyDOM;_.SK=W3&&W3.noPatch&&W3.wrap?W3.wrap:W3?function(A){return W3.patch(A)}:function(A){return A};
GU=function(A){if(A instanceof ShadowRoot)this.host=(0,_.SK)(A.host),this.root=A;else if(A.$$){this.host=(0,_.SK)(A);var Q;this.root=(Q=A.root)!=null?Q:this.host}else if(A.polymerController){this.host=(0,_.SK)(A);var b;this.root=(b=this.host.shadowRoot)!=null?b:this.host}else this.root=this.host=(0,_.SK)(A)};
pKW();XKC();KGF();i8A();LGU();var sgL={querySelector:function(A,Q){Q=jZY(Q,bN(A));A=_.fc(A);return a_(A).prototype.querySelector.call(A,Q)},
querySelectorAll:function(A,Q){Q=jZY(Q,bN(A));A=_.fc(A);return a_(A).prototype.querySelectorAll.call(A,Q)}},mnL={appendChild:function(A,Q){var b=bN(A),f=_.Q1(Q);
return _.FGy(_.fc(A),b?_.dn(Q,b,f):Q)},
cloneNode:function(A,Q){var b=_.Q1(A);A=_.fc(A);Q=a_(A).prototype.cloneNode.call(A,Q);return b?Fs(Q,b):Q},
contains:function(A,Q){var b=bN(A),f=_.Q1(Q);return b!==f?!1:GBX(A,Q)},
insertBefore:function(A,Q,b){var f=bN(A),a=_.Q1(Q);A=_.fc(A);Q=f?_.dn(Q,f,a):Q;return a_(A).prototype.insertBefore.call(A,Q,b)},
removeChild:function(A,Q){var b=bN(A);A=_.fc(A);Q=b?Fs(Q,b):Q;return a_(A).prototype.removeChild.call(A,Q)},
replaceChild:function(A,Q,b){var f=bN(A),a=_.Q1(Q);Q=f?_.dn(Q,f,a):a?Fs(Q,a):Q;b=f?Fs(b,f):b;A=_.fc(A);return a_(A).prototype.replaceChild.call(A,Q,b)},
getRootNode:function(A,Q){Q=Q===void 0?{composed:!0}:Q;var b;if(((b=Q)!=null?b:{}).composed)A=wmW(A);else{Q=A;for(A=gKF(A);A;)Q=A,A=hpJ(A);A=Q}return A}},VvF=SMJ?{firstChild:QuY,
nextSibling:sZy,previousSibling:AZe,firstElementChild:b8X,lastElementChild:anf,nextElementSibling:NwY,previousElementSibling:m06,childNodes:Tqe}:{};Uof&&(VvF.parentNode=$0X);MvJ&&(VvF.children=doX);lnF&&(VvF.lastChild=fnY);PHY&&JZW(sgL);BqW&&JZW(mnL);O86();var nuU=function(A){this.node=A instanceof ShadowRoot?A.host:A};
kBi();In9();var qM6=new WeakMap;var tv4=Symbol("vd");var eFA=new Set(["tap","track","down","up"]),hFY=_.K("pbcm_fi_query_decorators");var v3=function(){return _.nc.apply(this,arguments)||this};
_.O(v3,_.nc);_.d=v3.prototype;_.d.getState=function(){return this.store.getState()};
_.d.dispatch=function(A){this.store.dispatch(A)};
_.d.beforeRegister=function(){if(this&&typeof this==="object"){var A;var Q=!!this.useSignals||!((A=this.polymerController)==null||!A.useSignals)}else Q=!1;if(!Q&&this.properties)for(Q=_.F(Object.keys(this.properties)),A=Q.next();!A.done;A=Q.next()){var b=A.value;A=this.properties[b];if(A.selector){if(A.computed)throw Error("jg");b=["reduxPropertiesRecomputeTrigger",'"'+b+'"'].concat(_.ri(A.selectorArgs||[])).join(",");A.computed="recomputeReduxSelector("+b+")"}}};
_.d.attached=function(){var A=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){A.reduxPropertiesRecomputeTrigger++}));
_.K("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.d.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.d.recomputeReduxSelector=function(A,Q){var b=_.E$.apply(2,arguments),f=this.properties[Q].selector;if(!f)throw Error("hg`"+Q);return f.apply(null,[this.store.getState()].concat(_.ri(b)))};
_.d.select=function(A){var Q=_.E$.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return A.apply(null,[this.store.getState()].concat(_.ri(Q)))};
_.Qr.Object.defineProperties(v3.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
v3.prototype.recomputeReduxSelector=v3.prototype.recomputeReduxSelector;_.E([_.C(),_.c("design:type",Number)],v3.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.E([_.kl()],v3);var Ek=[],xoJ={},vj=function(){return f1.apply(this,arguments)||this};
_.O(vj,f1);vj.prototype._addPropertyEffect=function(A,Q,b){if(Q==="__observeEffects"&&b){var f,a=(f=b.info.method)!=null?f:b.info.methodName;if(a){var T=this[a];this[a]=function(){Ek.push(a);try{T==null||T.apply(this,arguments)}finally{Ek.pop()}}}}_.qF._addPropertyEffect.apply(this,[A,
Q,b])};
vj.prototype._setPendingProperty=function(A,Q,b){if(Ek.length){var f=Ek[Ek.length-1],a;(a=xoJ[this.is])!=null&&a.has(f)||(cZJ(this.is,f),_.R4("polymerPropertyChangedInObserver",{componentName:this.is,observerName:f}))}return _.qF._setPendingProperty.apply(this,[A,Q,b])};
_.E([LQC()],vj);var zF4=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),ub4,Cc={};_.K("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Cc);var tu=function(){return _.nc.apply(this,arguments)||this};
_.O(tu,_.nc);tu.prototype._setUnmanagedPropertyToNode=function(A,Q,b){A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!0);if(b!==A[Q]||typeof b==="object")A[Q]=b;A.is&&A.polymerController&&A.polymerController!==A&&qJ(A.is,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!1)};
_.E([_.kl()],tu);wKY()&&(z9.prototype._setUnmanagedPropertyToNode=(new tu)._setUnmanagedPropertyToNode);_.T5Y={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(A){},set polymerController(A){}}]};var Wj=function(){var A=f1.apply(this,arguments)||this;A.json=function(){};
return A};
_.O(Wj,f1);Wj.prototype.equals=function(A,Q){return A===Q};
Wj.prototype.isEmpty=function(A){var Q;(Q=!A)||(Q=_.ce(A)&&A.length===0);return Q};
_.E([LQC()],Wj);var AK9=function(A){A=XXi(A);zy.call(this,A)};
_.O(AK9,zy);AK9.prototype.addProvider=function(A){A=A.key?A:XXi([A])[0];var Q=this.keyIdToIndex.get(A.key.id);if(Q){if($oF(A,this.providers[Q]))throw Error("kg`"+A.key.displayName);}else zy.prototype.addProvider.call(this,A)};
var QKY=new AK9([]);var b91=!1;var bBy={};b91||(Qni(),b91=!0);
bBy.InjectBehavior={initializeInjection:function(){var A=this.provide;try{if((A=A!=null?A:[])&&A.length>0)for(var Q=XXi(A),b=_.F(Q),f=b.next();!f.done;f=b.next())QKY.addProvider(f.value);var a=new Set;Nq9(this.behaviors||[],a);Q={};for(var T=_.F(a),G=T.next();!G.done;G=T.next()){var p=G.value;p.inject&&Object.assign(Q,p.inject)}this.inject&&Object.assign(Q,this.inject);for(var P=_.F(Object.keys(Q)),U=P.next();!U.done;U=P.next()){var L=U.value,M=Q[L];try{this[L]=QKY.resolve(M)}catch(l){throw l;}}}catch(l){throw Error(l.message);
}}};var aHA;var d2i=/\bclass\b/.test(function(){}.toString()),B5J=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var f9v=function(A){this.wasDefined=!0;Array.isArray(A)||A instanceof Array?(this.JSC$13295_getImpl=A[0],this.JSC$13295_setImpl=A[1]):this.JSC$13295_getImpl=A};
_.d=f9v.prototype;_.d.getWithPath=function(A){return XyA(this.JSC$13295_getImpl(),A)};
_.d.setWithPath=function(A,Q){var b=this;if(A.length)throw Error("lg");if(!this.JSC$13295_setImpl)throw Error("mg");Mz(function(){b.JSC$13295_setImpl(Q)})};
_.d.notifyPath=function(){throw Error("ng");};
_.d.notifySplices=function(){throw Error("og");};
_.d.getChangeRecordSignal=function(A,Q){var b=this;if(A.length)throw Error("pg");return function(){var f=b.getWithPath(A);return{path:Q!=null?Q:"",base:f,value:f}}};
_.d.getSplicesSignal=function(){throw Error("qg");};
_.d.getPathMutationSignal=function(){throw Error("rg");};
_.d.pop=function(){throw Error("sg");};
_.d.push=function(){throw Error("tg");};
_.d.splice=function(){throw Error("ug");};
_.d.unshift=function(){throw Error("vg");};var x3=function(A){var Q=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(A)||A instanceof Array?(this.JSC$13300_getImpl=A[0],this.JSC$13300_setImpl=A[1]):this.JSC$13300_getImpl=A;this.wasDefined=!1;B_(function(){Q.wasDefined=Q.JSC$13300_getImpl()!==void 0})};
x3.prototype.getWithPath=function(A){return XyA(this.JSC$13300_getImpl(),A)};
x3.prototype.setWithPath=function(A,Q){var b=this;if(A[A.length-1]!=="*"&&A[A.length-1]!=="splices"){var f=B_(function(){return b.getWithPath([])});
if(A.length===0){if(!this.JSC$13300_setImpl)throw Error("wg");if(_.K("mutable_signal_set_skip_unchanged")&&f===Q)return;this.wasDefined||(this.wasDefined=Q!==void 0);Mz(function(){b.JSC$13300_setImpl(Q)})}else{for(var a=0;a<A.length-1;a++){if(!f)return;
f=f[A[a]]}a=A[A.length-1];f&&(f[a]=Q);this.wasDefined||(this.wasDefined=A.length>1||Q!==void 0)}a99(this,A,{pathComponents:A,value:Q})}};
x3.prototype.notifyPath=function(A,Q){A.length===0?Q&&this.setWithPath(A,Q.value):a99(this,A,{pathComponents:A,value:Q==null?void 0:Q.value,fallbackWhenUndefined:Q==null?void 0:Q.value})};
var a99=function(A,Q,b,f){if(A.setMutationSignal){var a=++A.mutationIndex,T=[A.observedPath],G=A.observedPath,p;Q.length===0&&(p=G);for(var P=0;P<Q.length;P++){var U=G.subPaths[Q[P]];if(!U)break;T.push(U);G=U;P===Q.length-1&&(p=U)}for(Q=!1;T.length;)G=T.shift(),G.data={index:a,mutation:b,spliceMutationIndex:f},Q||(Q=G===p),Q&&T.push.apply(T,_.ri(Object.values(G.subPaths)));Mz(function(){A.setMutationSignal(a)})}};
x3.prototype.notifySplices=function(A,Q){var b=this,f=B_(function(){return b.getWithPath(A)}),a=[].concat(_.ri(A),["splices"]);
a99(this,a,{pathComponents:a,value:{indexSplices:Q}});if(f==null?0:f.length)Q=this.mutationIndex,a=[].concat(_.ri(A),["length"]),a99(this,a,{pathComponents:a,value:f.length},Q)};
var Ttv=function(A,Q,b,f,a,T){A.notifySplices(b,[{index:f,addedCount:a,removed:T,object:Q,type:"splice"}])},dE1=function(A,Q){A=A.observedPath;
for(var b=0;b<Q.length;b++){var f=Q[b],a=A.subPaths[f];a||(a={pathComponents:Q.slice(0,b+1),subPaths:{}},A.subPaths[f]=a);A=a}},GM$=function(A,Q,b){dE1(A,Q);
if(!A.getMutationSignal){var f=_.F(_.pz(A.mutationIndex,void 0,"yrf7Zd"));A.getMutationSignal=f.next().value;A.setMutationSignal=f.next().value}var a=A.getMutationSignal;return _.Lz(function(){a();return b(Fip(A,Q))},void 0,"XeEyEc")};
x3.prototype.getChangeRecordSignal=function(A,Q){var b=this,f=this.mutationIndex,a;return GM$(this,A,function(T){if(T&&T.index>f){var G=T.mutation;f=T.index;a=void 0}T=B_(function(){return b.getWithPath(A)});
if(G){var p=G.pathComponents[G.pathComponents.length-1],P=[].concat(_.ri(G.pathComponents));if(p==="splices"||p==="length")return{base:T,path:(Q?[Q].concat(_.ri(P)):P).join("."),value:G.value};var U=A.length>P.length?A:P,L;return{base:T!=null?T:G.fallbackWhenUndefined,path:(Q?[Q].concat(_.ri(U)):U).join("."),value:(L=B_(function(){return b.getWithPath(U)}))!=null?L:G.fallbackWhenUndefined}}a||(a={base:T,
path:(Q?[Q].concat(_.ri(A)):A).join("."),value:T});return a})};
x3.prototype.getSplicesSignal=function(A){var Q=this.mutationIndex,b;return GM$(this,A,function(f){if(f&&f.index>Q&&f.spliceMutationIndex!==Q){var a=f.mutation;Q=f.index;b=void 0}return a&&a.pathComponents[a.pathComponents.length-1]==="splices"?b=f=a.value:b})};
x3.prototype.getPathMutationSignal=function(A){var Q=this;dE1(this,A);if(!this.getMutationSignal){var b=_.F(_.pz(this.mutationIndex,void 0,"evrPyb"));this.getMutationSignal=b.next().value;this.setMutationSignal=b.next().value}var f=this.getMutationSignal,a=this.mutationIndex,T;return _.Lz(function(){f();var G=Fip(Q,A);if(G&&G.index>a&&G.mutation&&Swi(G.mutation.pathComponents,A)){var p=G.mutation;a=G.index}if(!T||a!==T.index){var P,U;G=(U=B_(function(){return Q.getWithPath(A)}))!=null?U:(P=p)==null?
void 0:P.fallbackWhenUndefined;
T={index:a,value:G}}return T},void 0,"rXesZe")};
var Fip=function(A,Q){A=A.observedPath;Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())A=A.subPaths[b.value];return A.data};
x3.prototype.pop=function(A){var Q=this,b=B_(function(){return Q.getWithPath(A)});
if(!(b instanceof Array))throw Error("xg");var f=b.length>0,a=b.pop();f&&Ttv(this,b,A,b.length,0,[a]);return a};
x3.prototype.push=function(A){var Q=_.E$.apply(1,arguments),b=this,f=B_(function(){return b.getWithPath(A)});
if(!(f instanceof Array))throw Error("yg");var a=f.length,T=f.push.apply(f,_.ri(Q));Q.length&&Ttv(this,f,A,a,Q.length,[]);return T};
x3.prototype.splice=function(A,Q,b){var f=_.E$.apply(3,arguments),a=this,T=B_(function(){return a.getWithPath(A)});
if(!(T instanceof Array))throw Error("zg");Q<0?Q=T.length-Math.floor(-Q):Q&&(Q=Math.floor(Q));var G=T.splice.apply(T,[Q,b].concat(_.ri(f)));(f.length||G.length)&&Ttv(this,T,A,Q,f.length,G);return G};
x3.prototype.unshift=function(A){var Q=_.E$.apply(1,arguments),b=this,f=B_(function(){return b.getWithPath(A)});
if(!(f instanceof Array))throw Error("Ag");var a=f.unshift.apply(f,_.ri(Q));Q.length&&Ttv(this,f,A,0,Q.length,[]);return a};var c3=function(A,Q,b){this.model=A;this.unknownSignalResolver=Q;this.options=b;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];Q=_.F(OB6());A=Q.next().value;Q=Q.next().value;this.owner=A;this.disposeImpl=Q};
c3.prototype.dispose=function(){if(!this.isDisposed){for(var A=_.F(this.childSignalProxies),Q=A.next();!Q.done;Q=A.next())Q.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Btx=function(A,Q){A=_.Nu(A.owner);try{Q()}finally{_.Nu(A)}};
c3.prototype.effect=function(A){Btx(this,function(){_.tk(A)})};
var pgy=function(A,Q){A.options!=null||(A.options={});var b;(b=A.options).immutableProps!=null||(b.immutableProps=new Set);A.options.immutableProps.add(Q)},Ywf=function(A,Q){Q=""+Q;
PZL(A,Q);var b,f;if((b=A.options)==null?0:(f=b.immutableProps)==null?0:f.has(Q))return!0;var a;if((a=A.model.__signalCache)==null?0:a.has(Q))b=A.model.__signalCache.get(Q),Array.isArray(b)&&pgy(A,Q);var T,G,p;return(p=(T=A.options)==null?void 0:(G=T.immutableProps)==null?void 0:G.has(Q))!=null?p:!1},XgL=function(A,Q){var b;
A.unknownSignalResolver&&(b=A.unknownSignalResolver(Q));var f,a;((f=A.options)==null?0:(a=f.immutableProps)==null?0:a.has(Q))?b!=null||(b=new f9v(_.pz(A.model[Q],void 0,"By5iP"))):b!=null||(b=new x3(_.pz(A.model[Q],void 0,"CXghNc")));var T=A.model.hostElement;Object.defineProperty(A.model,Q,{get:function(){yZi(T,Q);return b.getWithPath([])},
set:function(G){o_(T,Q);A.setWithPath([Q],G)},
configurable:!0});return b},PZL=function(A,Q){var b,f,a;
((b=A.model.__signalCache)==null||!b.has(Q))&&((f=A.options)==null?0:(a=f.externalSignalProps)==null?0:a.has(Q))&&A.model[Q]},zU=function(A,Q){Q=""+Q;
var b=A.signalCache[Q];if(b!==void 0)return b;b=!1;PZL(A,Q);var f;if((f=A.model.__signalCache)==null?0:f.has(Q))if(b=A.model.__signalCache.get(Q),Array.isArray(b))b=!0,pgy(A,Q);else return A.signalCache[Q]=A.model.__signalCache.get(Q).signal,A.signalCache[Q];var a,T;f=(T=(a=A.options)==null?void 0:a.reactivityMode)!=null?T:0;var G,p;if(!((G=A.options)==null?0:(p=G.reactiveProps)==null?0:p.has(Q))&&!b&&f===1)throw Error("Bg`"+Q);a=b?SR$(A,Q):XgL(A,Q);return A.signalCache[Q]=a},SR$=function(A,Q){var b=
Object.getOwnPropertyDescriptor(A.model.constructor.prototype,Q),f=function(){return A.model[Q]};
return new f9v(b&&b.get&&!b.set?f:[f,function(a){A.model[Q]=a}])};
c3.prototype.getWithPath=function(A){var Q=_.F(A);A=Q.next().value;Q=yO(Q);yZi(this.model.hostElement,""+A);return zU(this,A).getWithPath(Q)};
c3.prototype.setWithPath=function(A,Q){if(A.length){o_(this.model.hostElement,A.join("."));var b=_.F(A);A=b.next().value;b=yO(b);zU(this,A).setWithPath(b,Q)}};
c3.prototype.getPathMutationSignal=function(A){var Q=_.F(A);A=Q.next().value;Q=yO(Q);return zU(this,A).getPathMutationSignal(Q)};
c3.prototype.notifyPath=function(A,Q){var b=_.F(A);A=b.next().value;b=yO(b);zU(this,A).notifyPath(b,Q)};
var UEL=function(A,Q){if(Q.type==="literal")return function(){return{rootWasDefined:!0,value:Q.value}};
var b=xl(Q.path),f=_.F(b),a=f.next().value;f=yO(f);var T,G;if(Q.type==="path"&&(b.length===1||((T=A.options)==null?0:(G=T.immutableProps)==null?0:G.has(a))))return function(){var M=A.getWithPath(b.slice(0,1));M=XyA(M,b.slice(1));return{rootWasDefined:zU(A,b[0]).wasDefined,value:M}};
var p=zU(A,a);if(Q.type==="path"){var P=p.getPathMutationSignal(f);return function(){var M,l=(M=P())==null?void 0:M.value;return{rootWasDefined:p.wasDefined,value:l}}}if(Q.type==="splices"){var U=p.getSplicesSignal(f);
return function(){var M=U();return{rootWasDefined:p.wasDefined,value:M}}}var L=p.getChangeRecordSignal(f,""+a);
return function(){var M=L();return{rootWasDefined:p.wasDefined,value:M}}},iBJ=function(A,Q,b){var f=b.map(function(p){return UEL(A,p)}),a=b.length===0,T=[],G=b.length!==1||b[0].type!=="path"?!1:!0;
A.effect(function(){for(var p=f.length,P=[],U=!!T.length,L=0;L<p;L++){var M=f[L](),l=M.rootWasDefined;M=M.value;a||(a=l);P[L]=M;G&&(P[L+p]=U?T[L]:P[L],T[L]=M)}a&&rY(A.owner,function(){return void Q.apply(null,_.ri(P))})})},U2f=function(A,Q,b,f,a){var T=zU(A,Q);
a!==void 0&&T.setWithPath([],a);iBJ(A,function(){var G=_.E$.apply(0,arguments);o_(A.model.hostElement,Q,!0);T.setWithPath([],b.apply(null,_.ri(G)))},f)};
c3.prototype.arrayPush=function(A){var Q=_.E$.apply(1,arguments),b=_.F(A),f=b.next().value;b=yO(b);f=zU(this,f);return f.push.apply(f,[b].concat(_.ri(Q)))};
c3.prototype.arraySplice=function(A,Q,b){var f=_.E$.apply(3,arguments),a=_.F(A),T=a.next().value;a=yO(a);T=zU(this,T);return T.splice.apply(T,[a,Q,b].concat(_.ri(f)))};
c3.prototype.arrayUnshift=function(A){var Q=_.E$.apply(1,arguments),b=_.F(A),f=b.next().value;b=yO(b);f=zU(this,f);return f.unshift.apply(f,[b].concat(_.ri(Q)))};
c3.prototype.notifySplices=function(A,Q){var b=_.F(A);A=b.next().value;b=yO(b);zU(this,A).notifySplices(b,Q)};var LiW=!0,MkN=!1,Dn6=!1,l9x=!1,Kip=0;l9x=!1;Kip=0;LiW=!0;MkN=Dn6=!1;var qwF=/([^\s]+?)\(([\s\S]*)\)/,IH4=/\.([^.]+)$/,t0J=/\\,/g,nO6=/&comma;/g,kAW=/\\(.)/g,oOy=[],HBb={"*":"wildcard",splices:"splices"};var x2b=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"),hsb=/[A-Z]/,i9Y=["class","hidden","id","on-dom-change"],zsU=new Set([].concat(_.ri(i9Y),
["if","notify-dom-change","restamp"])),wyi=new Set([].concat(_.ri(i9Y),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),uoe=new Set(["restamp"]);var wg6=new Set(["className","id"]);var $24=Symbol(),fp4=window;var PEF=window;var KnF=0,Uni=0,wn=[],lpC=0,SAU=!1,Mz4=document.createTextNode("");(new window.MutationObserver(Lnf)).observe(Mz4,{characterData:!0});var Zw=new Map,uN=0,JKp=function(A){this.mappedHandleId=A},JOb=function(A,Q,b,f){this.mappedHandleId=A;
var a=this;this.mappedHandleId=A;this.callback=Q;this.waitTime=b;this.schedulerPriority=f;this.handleId=_.j7.addJob(function(){a.callback();Zw.delete(a.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.O(JOb,JKp);JOb.prototype.cancel=function(){_.j7.cancelJob(this.handleId);Zw.delete(this.mappedHandleId)};
var VzJ=function(A,Q){this.mappedHandleId=A;var b=this;this.mappedHandleId=A;this.callback=Q;this.handleId=if9(function(){b.callback();Zw.delete(b.mappedHandleId)})};
_.O(VzJ,JKp);VzJ.prototype.cancel=function(){var A=this.handleId-Uni;A<0||wn.length<=A||(wn[A]=null);Zw.delete(this.mappedHandleId)};var Ip9=function(){};
Ip9.prototype.cancel=function(){this.jobHandle!==void 0&&(OfF(this.jobHandle),this.jobHandle=void 0)};
Ip9.prototype.run=function(A,Q,b){var f=this;this.cancel();this.callback=A;this.jobHandle=_.y1(function(){A();f.callback=void 0},Q,b)};
Ip9.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var n0y=new WeakMap;var VkL=b_(function(A){for(var Q=A,b=0;b<3;b++)Q=Object.getPrototypeOf(Q);delete Q.prototype.connectedCallback;var f=function(){return A.apply(this,arguments)||this};
_.O(f,A);f.prototype._attachDom=function(a){if(!a)return null;var T=(0,_.SK)(this.hostElement);T.attachShadow({mode:"open",shadyUpgradeFragment:a});T.shadowRoot.appendChild(a);return T.shadowRoot};
f.prototype._takeAttributes=function(){for(var a=this.hostElement.attributes,T=0;T<a.length;T++){var G=a[T],p=void 0,P=void 0;(P=(p=this).__attributeReaction)==null||P.call(p,G.name,null,G.value)}};
f.prototype._readyClients=function(){A.prototype._readyClients.call(this);this.root=this};
f.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);A.prototype.connectedCallback.call(this)};
_.Qr.Object.defineProperties(f,{template:{configurable:!0,enumerable:!0,get:function(){return f.prototype._template}}});
return f}),O9p=b_(function(A){var Q=function(){return A.apply(this,arguments)||this};
_.O(Q,A);Q.prototype.created=function(){if(this.__notifyEffects)for(var b=_.F(Object.values(this.__notifyEffects)),f=b.next();!f.done;f=b.next()){f=_.F(f.value);for(var a=f.next();!a.done;a=f.next())a.value.fn=o04}if(this.__reflectEffects)for(b=_.F(Object.values(this.__reflectEffects)),f=b.next();!f.done;f=b.next())for(f=_.F(f.value),a=f.next();!a.done;a=f.next())a.value.fn=tzF};
Q.prototype._addEventListenerToNode=function(b,f,a){b=Dw(b);ec(b,f,a)||A.prototype._addEventListenerToNode.call(this,b,f,a)};
Q.prototype._removeEventListenerFromNode=function(b,f,a){b=Dw(b);hj(b,f,a)||A.prototype._removeEventListenerFromNode.call(this,b,f,a)};
Q.prototype._propertiesChanged=function(b,f,a){if(this.__dataToNotify&&this.__notifyEffects)for(var T=_.F(Object.keys(this.__dataToNotify)),G=T.next();!G.done;G=T.next()){G=G.value;var p=qAF(G);this.__notifyEffects[p]||delete this.__dataToNotify[G]}else this.__dataToNotify=null;A.prototype._propertiesChanged.call(this,b,f,a)};
Q.prototype.fire=function(b,f,a){f=f===void 0?{}:f;var T;return _.Bn(Dw((T=a==null?void 0:a.node)!=null?T:this),b,f,a)};
Q.prototype._ensureAttribute=function(b,f){var a=Dw(this);a.hasAttribute(b)||cj(a,f,b)};
Q.prototype.isLightDescendant=function(b){var f=Dw(this);return Dw(f)!==b&&_.Bj(f).contains(b)&&_.Bj(f).getRootNode()===_.Bj(b).getRootNode()};
return Q});
_.Cb.ready=function(){var A;((A=this.hostElement)!=null?A:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var Q;((Q=this.hostElement)!=null?Q:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.eI._subscribeIronResize=function(A){var Q;((Q=A.hostElement)!=null?Q:A).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.eI._unsubscribeIronResize=function(A){var Q;((Q=A.hostElement)!=null?Q:A).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var RWW=[Array,Boolean,Date,Number,Object,String],NJ=function(A,Q,b,f){this.polySiInfo=A;this.polySiParams=Q;this.polySiContext=b;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;f||this instanceof HTMLElement&&(f=this);if(!f)throw Error("Ig");this.allowedProps=Q.allowedProps;this.hostElement=f;this.is=A.is;this.upgradeDisabled=!!Q.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");A=new Set(Q.reactiveSchemas.filter(function(a){return a.type!==
"observe"}).map(function(a){return a.propertyKey}));
this.signalProxy=new c3(this,void 0,{reactiveProps:A,reactivityMode:Q.reactivityMode});this.__dataHasAccessor={};Q=_.F(Q.reactiveSchemas);for(A=Q.next();!A.done;A=Q.next())A=A.value,A.type==="signal"&&(this.__dataHasAccessor[A.propertyKey]=!0);this.upgradeDisabled||nIW(this)};
NJ.prototype.getExtraMethodsToForward=function(){return[]};
var nIW=function(A){A.polySiContext.didRegister||(A.registered(),A.polySiContext.didRegister=!0);A.polySiContext.finalizedTemplate||(A.polySiContext.finalizedTemplate={},A.polySiParams.templateGetter&&(A.polySiContext.finalizedTemplate.processedTemplate=X7J(A.polySiParams.templateGetter,A.polySiParams.is)));kMN(A);var Q=A.hostElement;Q.loggingStatus!=null||(Q.loggingStatus={});Q.loggingStatus.isInitializing=!0;B_(function(){return void A.created()});
Q.loggingStatus.isInitializing=!1;A.isPolySiElementConnected&&I91(A)},I91=function(A){A.didCallReady||(B_(function(){return void A.ready()}),A.didCallReady=!0);
A.isAttached=!0;A.attached()};
_.d=NJ.prototype;_.d.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||I91(this)};
_.d.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.d.attributeChangedCallback=function(A,Q,b){if(this.upgradeDisabled)A==="disable-upgrade"&&b===null&&(this.upgradeDisabled=!1,nIW(this));else if(Q!==b){var f=_.Ov(A),a=this.polySiContext.typesForSignals[f];if(a&&(!this.reflecting||_.K("polysi_attribute_changed_serializing_killswitch"))){switch(a){case Object:try{var T=JSON.parse(b)}catch(p){T=b}break;case Array:try{T=JSON.parse(b)}catch(p){T=null}break;case Date:T=isNaN(b)?String(b):Number(b);T=new Date(T);break;case Boolean:T=b!==null;break;case Number:T=
Number(b);break;default:T=b}this[f]=T}f=_.F(this.polySiParams.behaviors);for(a=f.next();!a.done;a=f.next())T=void 0,(T=a.value.attributeChanged)==null||T.call(this,A,Q,b);var G;(G=this.attributeChanged)==null||G.call(this,A,Q,b)}};
_.d.attributeChangedCallbackWrapper=function(A,Q,b){this.attributeChangedCallback(A,Q,b)};
_.d.setPropertiesFromInitialAttributeValues=function(){for(var A=0;A<this.hostElement.attributes.length;A++){var Q=this.hostElement.attributes[A];(Q.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(Q.name))&&this.attributeChangedCallback(Q.name,null,Q.value)}};
_.d.created=function(){this.provide=this.polySiParams.provide;var A;(A=this.initializeInjection)==null||A.call(this);A=_.F(this.polySiParams.reactiveSchemas);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.type==="signal"&&(this.mutablePropNames.add(Q.propertyKey),zU(this.signalProxy,Q.propertyKey));jgi(this,this.polySiInfo,this.polySiParams.behaviors);A=_.F(this.polySiParams.reactiveSchemas);for(Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.type==="signal"&&Q.value!==void 0&&(this.signalProxy.model[Q.propertyKey]=
typeof Q.value==="function"?Q.value.call(this):Q.value);if(this.polySiParams.signalProperties)for(A=_.F(this.polySiParams.signalProperties),Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=void 0;((b=this.__signalCache)==null?0:b.has(Q))||(this.signalProxy.model[Q]=void 0)}l9x||H9y(this);rOi(this);A=_.F(this.polySiParams.behaviors);for(Q=A.next();!Q.done;Q=A.next())b=void 0,(b=Q.value.created)==null||b.call(this);var f;(f=this.polySiInfo.created)==null||f.call(this)};
_.d.registered=function(){var A=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var Q=Object.getPrototypeOf(this);Q.addReactiveSchema=function(p){A.polySiParams.reactiveSchemas.push(p)};
for(var b=_.F(this.polySiParams.behaviors),f=b.next();!f.done;f=b.next()){var a=void 0;(a=f.value.beforeRegister)==null||a.call(Q)}var T;(T=this.polySiInfo.beforeRegister)==null||T.call(Q);Q.addReactiveSchema=eWb;b=_.F(this.polySiParams.behaviors);for(f=b.next();!f.done;f=b.next())a=void 0,(a=f.value.registered)==null||a.call(Q);var G;(G=this.polySiInfo.registered)==null||G.call(Q)};
_.d.ready=function(){var A;(A=this.beforeReady)==null||A.call(this);l9x&&H9y(this);var Q;if(A=(Q=this.polySiContext.finalizedTemplate)==null?void 0:Q.processedTemplate){A=p7C(A.template,A.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:A.hasInsertionPoint,thisCtx:this});Q=A.nodesById;A=A.root;var b=this.hostElement;var f=f===void 0?!1:f;b=(0,_.SK)(b);if(!b.attachShadow)throw Error("Bd");if(!b.shadowRoot||f)b.attachShadow({mode:"open",shadyUpgradeFragment:A}),b.shadowRoot.appendChild(A);
this.root=b.shadowRoot;this.$=Q}CZL(this);f=_.F(this.polySiParams.behaviors);for(Q=f.next();!Q.done;Q=f.next())A=void 0,(A=Q.value.ready)==null||A.call(this);var a;(a=this.polySiInfo.ready)==null||a.call(this)};
_.d.attached=function(){for(var A=_.F(this.polySiParams.behaviors),Q=A.next();!Q.done;Q=A.next()){var b=void 0;(b=Q.value.attached)==null||b.call(this)}var f;(f=this.polySiInfo.attached)==null||f.call(this)};
_.d.detached=function(){for(var A=_.F(this.polySiParams.behaviors),Q=A.next();!Q.done;Q=A.next()){var b=void 0;(b=Q.value.detached)==null||b.call(this)}var f;(f=this.polySiInfo.detached)==null||f.call(this)};
var kMN=function(A){for(var Q=_.F(A.polySiParams.behaviors),b=Q.next();!b.done;b=Q.next())if(b=b.value,b.listeners)for(var f in b.listeners)BmY(A,A.hostElement,f,b.listeners[f]);if(A.polySiInfo.listeners)for(var a in A.polySiInfo.listeners)BmY(A,A.hostElement,a,A.polySiInfo.listeners[a])},BmY=function(A,Q,b,f,a){A=PLW(A,f,a);
ec(Q,b,A)||Q.addEventListener(b,A);return A},H9y=function(A){for(var Q=_.F(A.polySiParams.reactiveSchemas),b=Q.next();!b.done;b=Q.next())b=b.value,b.type==="compute"||b.type==="computeWithMethod"?L04(A.signalProxy,b,A):b.type==="redux"?K0W(A.signalProxy,b,A.store):b.type==="signal"&&b.readOnly&&lHi(A.signalProxy,b)},CZL=function(A){for(var Q=_.F(A.polySiParams.reactiveSchemas),b=Q.next(),f={};!b.done;f={schema$jscomp$12:void 0},b=Q.next())f.schema$jscomp$12=b.value,f.schema$jscomp$12.type==="notify"?
J_C(A.signalProxy,f.schema$jscomp$12,A.hostElement):f.schema$jscomp$12.type==="observe"?V0A(A.signalProxy,f.schema$jscomp$12,A):f.schema$jscomp$12.type==="reflect"&&A.signalProxy.effect(function(T){return function(){var G=A.signalProxy.getWithPath([T.schema$jscomp$12.propertyKey]);
A.reflecting=!0;jnW(A.hostElement,T.schema$jscomp$12.propertyKey,G,!0);A.reflecting=!1}}(f));
if(A.reflectedAttributes)for(Q=_.F(Object.entries(A.reflectedAttributes)),f=Q.next(),b={};!f.done;b={key$jscomp$910:void 0,value$jscomp$9128:void 0},f=Q.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;b.key$jscomp$910=f;b.value$jscomp$9128=a;A.signalProxy.effect(function(T){return function(){A.reflecting=!0;jnW(A.hostElement,T.key$jscomp$910,(0,T.value$jscomp$9128)(),!0);A.reflecting=!1}}(b))}};
_.d=NJ.prototype;_.d._setPendingProperty=function(A,Q){this.set(A,Q);return!1};
_.d._enableProperties=function(){};
_.d._setPendingPropertyOrPath=function(A,Q){this.notifyPath(A,Q);return!1};
_.d._addPropertyEffect=function(){};
_.d._stampTemplate=function(){throw Error("Jg");};
_.d.fire=function(A,Q,b){Q=Q===void 0?{}:Q;b=b===void 0?{}:b;var f,a,T={bubbles:(f=b.bubbles)!=null?f:!0,cancelable:!!b.cancelable,composed:(a=b.composed)!=null?a:!0},G;return _.Bn(hWX((G=b.node)!=null?G:this.hostElement),A,Q,T)};
_.d.get=function(A,Q){var b=xl(A);return Q?XyA(Q,b):A==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(b)};
_.d.linkPaths=function(){};
_.d.listen=function(A,Q,b){A=hWX(A);this.boundListeners!=null||(this.boundListeners=new WeakMap);var f=this.boundListeners.get(A);f||(f={},this.boundListeners.set(A,f));var a=Q+b;f[a]||(f[a]=BmY(this,A,Q,b))};
_.d.notifyPath=function(A,Q){this.signalProxy.notifyPath(xl(A),arguments.length===2?{value:Q}:void 0)};
_.d.canNotifyPath=function(A){return this.mutablePropNames.has(A)&&!Ywf(this.signalProxy,A)};
_.d.notifySplices=function(A,Q){this.signalProxy.notifySplices(xl(A),Q)};
_.d.pop=function(A){var Q=this.signalProxy;A=xl(A);var b=_.F(A);A=b.next().value;b=yO(b);return zU(Q,A).pop(b)};
_.d.push=function(A){var Q=_.E$.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[xl(A)].concat(_.ri(Q)))};
_.d.set=function(A,Q,b){if(b)throw Error("Kg");A==="hidden"?this.hostElement.hidden=!!Q:this.signalProxy.setWithPath(xl(A),Q)};
_.d.setProperties=function(A){A=_.F(Object.entries(A));for(var Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;b=b.next().value;this[Q]=b}};
_.d.splice=function(A,Q,b){var f=_.E$.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[xl(A),Q,b].concat(_.ri(f)))};
_.d.unlinkPaths=function(){};
_.d.unlisten=function(A,Q,b){A=hWX(A);if(this.boundListeners){var f=this.boundListeners.get(A);if(f){b=Q+b;var a=f[b];a&&(hj(A,Q,a)||A.removeEventListener(Q,a),delete f[b])}}};
_.d.unshift=function(A){var Q=_.E$.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[xl(A)].concat(_.ri(Q)))};
_.Qr.Object.defineProperties(NJ.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 YAU=[Array,Boolean,Date,Number,Object,String];var NmF=!1;var z1=function(){var A=HTMLElement.apply(this,arguments)||this;A.restamp=!1;A.notifyDomChange=!1;A.JSC$13408_didCallConnected=!1;A.JSC$13408_renderDebouncer=null;A.disableTemplateUpdateSignalImpl=sc()?void 0:_.pz(!1,void 0,"Ofhkwb");var Q;A.getDisableTemplateUpdate=(Q=A.disableTemplateUpdateSignalImpl)==null?void 0:Q[0];var b;A.setDisableTemplateUpdate=(b=A.disableTemplateUpdateSignalImpl)==null?void 0:b[1];return A};
_.O(z1,HTMLElement);var qR9=function(A){A.conditionSignalImpl!=null||(A.conditionSignalImpl=new x3(_.pz(!1,void 0,"gE52Fb")));return A.conditionSignalImpl};
_.d=z1.prototype;_.d.showHideChildren=function(A){oIY(this,A,this.if)};
_.d.attributeChangedCallback=function(A,Q,b){if(this.JSC$13408_didCallConnected)throw Error("Og`"+A);A==="notify-dom-change"?this.notifyDomChange=b!==null:A==="restamp"&&(this.restamp=b!==null)};
_.d.debounceRender=function(){this.JSC$13408_renderDebouncer=_.Sb(this.JSC$13408_renderDebouncer,vt,this.JSC$13408_renderImpl.bind(this));_.U0(this.JSC$13408_renderDebouncer)};
_.d.disconnectedCallback=function(){var A=(0,_.SK)(this).parentNode;(!A||A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in A&&!A.host)&&tkK(this)};
_.d.connectedCallback=function(){var A=this;this.JSC$13408_didCallConnected=!0;LiW?sgb():this.style.display="none";this.parentSignalProxy.effect(function(){qR9(A).getWithPath([]);A.debounceRender()})};
_.d.render=function(){_.Kn()};
_.d.JSC$13408_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var A=this.if,Q=!1;if(A){this.hasInstance()||(rK9(this),Q=!0);a:{var b=(0,_.SK)(this).parentNode;if(this.hasInstance()){var f=this.instance.children;if((f==null?0:f.length)&&(0,_.SK)(this).previousSibling!==f[f.length-1])for(var a=0;a<f.length;a++)(0,_.SK)(b).insertBefore(f[a],this)}else{if(!b){b=!1;break a}jKK(this,b)}b=!0}if(!b)return}else this.restamp&&tkK(this);oIY(this,!1,A);A&&!Q&&rK9(this);MkN&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.d.hasInstance=function(){return!!this.instance};
var jKK=function(A,Q){var b=A.parentSignalProxy;if(sc()){var f=_.F(_.pz(!0,void 0,"yf4Yhf"));var a=f.next().value;f=f.next().value;b=A.parentSignalProxy}else{var T;var G=new c3((T=RIN(A))!=null?T:{},function(P){var U=zU(A.parentSignalProxy,P).getChangeRecordSignal([]);P=_.pz(void 0,void 0,"oT9mkc");var L=new x3(P);G.effect(function(){if(A.getDisableTemplateUpdate&&!A.getDisableTemplateUpdate()){var M=U();L.notifyPath(xl(M.path),{value:M.value})}});
return L});
A.parentSignalProxy.childSignalProxies.push(G);var p=b=G}b=p7C(A.templateInfo,A.templateInfo.nodeInfoList,b,{eventListenerHost:A.eventListenerHost,hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,enabledSignal:sc()?a:void 0,getModel:function(){return RIN(A)}}).root;
A.instance={root:b,children:[],hidden:!1,signalProxy:p,getTemplateUpdatesEnabled:a,setTemplateUpdatesEnabled:f};p=_.F(b.childNodes);for(a=p.next();!a.done;a=p.next())A.instance.children.push(a.value);(0,_.SK)(Q).insertBefore(A.instance.root,A)},RIN=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var Q={},b;
for(b in A)A.hasOwnProperty(b)&&(Q[b]=A[b]);return Q}},tkK=function(A){if(A.instance){var Q=A.instance.children;
if(Q.length){var b=(0,_.SK)(Q[0]).parentNode;if(b){b=(0,_.SK)(b);for(var f=0;f<Q.length;f++)b.removeChild(Q[f])}}sc()?A.instance.setTemplateUpdatesEnabled(!1):A.instance.signalProxy.dispose();A.instance=void 0}},oIY=function(A,Q,b){Q=Q||!b;
A.instance&&A.instance.hidden!==Q&&(A.instance.hidden=Q,$nX(Q,A.instance.children))},rK9=function(A){if(sc()){var Q=A.instance;
Q&&rY(A.parentSignalProxy.owner,function(){return!Q.getTemplateUpdatesEnabled()})&&Q.setTemplateUpdatesEnabled(!0)}else A.setDisableTemplateUpdate(!1)};
_.Qr.Object.defineProperties(z1.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var A=this;return rY(this.parentSignalProxy.owner,function(){return qR9(A).getWithPath([])})},
set:function(A){A||(sc()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));qR9(this).setWithPath([],!!A)}}});
_.Qr.Object.defineProperties(z1,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",z1);var gI1=[],wk=function(){var A=HTMLElement.apply(this,arguments)||this;A.as="item";A.indexAs="index";A.itemsIndexAs="itemsIndex";A.targetFramerate=20;A.notifyDomChange=!1;A.isDetached=!1;A.JSC$13415_renderDebouncer=null;A.instances=[];A.chunkingId=null;A.chunkCount=null;A.shouldMeasureChunk=!1;A.shouldContinueChunking=!1;A.renderStartTime=null;A.JSC$13415_didCallConnected=!1;return A};
_.O(wk,HTMLElement);var eI$=function(A){A.itemSignalImpl!=null||(A.itemSignalImpl=new x3(_.pz(gI1,void 0,"YBrqgf")));return A.itemSignalImpl},hIY=function(A,Q){Array.isArray(Q)||(Q=gI1);
eI$(A).setWithPath([],Q)};
_.d=wk.prototype;_.d.showHideChildren=function(A){for(var Q=_.F(this.instances),b=Q.next();!b.done;b=Q.next())$nX(A,b.value.children)};
_.d.notifyPath=function(A,Q){A=xl(A);A[0]==="items"&&(A.length===1?hIY(this,Q):eI$(this).setWithPath(A.slice(1),Q))};
_.d.canNotifyPath=function(A){return A==="items"};
_.d.attributeChangedCallback=function(A,Q,b){if(this.JSC$13415_didCallConnected)throw Error("Pg`"+A);A==="as"?this.as=b:A==="index-as"?this.indexAs=b:A==="items-index-as"?this.itemsIndexAs=b:A==="initial-count"?this.initialCount=Number(b):A==="notify-dom-change"?this.notifyDomChange=b!==null:A==="target-framerate"&&(this.targetFramerate=Number(b))};
_.d.disconnectedCallback=function(){this.isDetached=!0;for(var A=0;A<this.instances.length;A++)WiM(this,A);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.d.connectedCallback=function(){var A=this,Q=eI$(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var a=Q(),T=xl(a.path);if(T[0]===void 0||T[0]==="splices"||T[0]==="length")A.debounceRender();else{var G=T[0];if(G=A.instances[typeof G==="string"?Math.floor(Number(G)):G])T=[A.as].concat(_.ri(T.slice(1))),G.signalProxy.notifyPath(T,a)}});
this.JSC$13415_didCallConnected=!0;LiW?sgb():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var b=(0,_.SK)((0,_.SK)(this).parentNode),f=0;f<this.instances.length;f++)b.insertBefore(this.instances[f].root,this);this.chunkingId&&this.render()}};
_.d.debounceRender=function(){this.JSC$13415_renderDebouncer=_.Sb(this.JSC$13415_renderDebouncer,vt,this.JSC$13415_renderImpl.bind(this));_.U0(this.JSC$13415_renderDebouncer)};
_.d.render=function(){this.debounceRender();_.Kn()};
_.d.JSC$13415_renderImpl=function(){var A=this;if(!this.parentSignalProxy.isDisposed){var Q=this.items,b=vIr(this,Q.length);EIL(this,Q,b);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){A.chunkingId=null;if(A.shouldMeasureChunk){var f=performance.now()-A.renderStartTime;A.chunkCount=Math.round(Math.ceil(1E3/A.targetFramerate)/f*A.chunkCount)||1}A.shouldContinueChunking&&A.debounceRender()}));
MkN&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var vIr=function(A,Q){var b=Q,f=A.instances.length;if(A.initialCount){if(A.chunkCount){var a=Math.min(Math.max(Q-f,0),A.chunkCount);b=Math.min(f+a,Q)}else b=Math.min(Q,A.initialCount),a=Math.max(b-f,0),A.chunkCount=a||1;A.shouldMeasureChunk=a===A.chunkCount;A.shouldContinueChunking=b<Q;A.renderStartTime=performance.now()}return b},EIL=function(A,Q,b){for(var f=0;f<b;f++){var a=A.instances[f],T=Q[f];
a?(a.signalProxy.setWithPath([A.as],T),a.signalProxy.setWithPath([A.indexAs],f)):xEL(A,T,f)}for(Q=A.instances.length-1;Q>=f;Q--)b=A,a=Q,WiM(b,a),_.F(b.instances.splice(a,1)).next().value.signalProxy.dispose()},WiM=function(A,Q){A=A.instances[Q];
Q=(0,_.SK)(A.root);for(var b=0;b<A.children.length;b++)Q.appendChild(A.children[b])},xEL=function(A,Q,b){var f={};
Q=Object.assign({},cKN(A),(f[A.as]=Q,f[A.indexAs]=b,f[A.itemsIndexAs]=b,f));var a=new c3(Q,function(G){if(G!==A.as&&G!==A.indexAs){if(G===A.itemsIndexAs)return zU(a,A.indexAs);var p=zU(A.parentSignalProxy,G).getChangeRecordSignal([]);G=_.pz(void 0,void 0,"T21Pqc");var P=new x3(G);a.effect(function(){var U=p();P.notifyPath(xl(U.path),{value:U.value})});
return P}});
A.parentSignalProxy.childSignalProxies.push(a);f=p7C(A.templateInfo,A.templateInfo.nodeInfoList,a,{eventListenerHost:A.eventListenerHost,getModel:function(){var G={};return Object.assign({},cKN(A),(G[A.as]=a.model[A.as],G[A.indexAs]=a.model[A.indexAs],G[A.itemsIndexAs]=a.model[A.indexAs],G))},
hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,methodInvocationRequirement:Kip,enabledSignal:A.stampingEnabled}).root;Q={root:f,children:[],signalProxy:a};f=_.F(f.childNodes);for(var T=f.next();!T.done;T=f.next())Q.children.push(T.value);f=(f=A.instances[b+1])?f.children[0]:A;(0,_.SK)((0,_.SK)(A).parentNode).insertBefore(Q.root,f);A.instances[b]=Q},cKN=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var Q={},b;
for(b in A)A.hasOwnProperty(b)&&(Q[b]=A[b]);return Q}};
wk.prototype.itemForElement=function(A){var Q=this,b=this.instances.find(function(f){return f.children.includes(A)});
if(b)return rY(this.parentSignalProxy.owner,function(){return b.signalProxy.getWithPath([Q.as])})};
wk.prototype.indexForElement=function(A){var Q=this.instances.findIndex(function(b){return b.children.includes(A)});
return Q>=0?Q:void 0};
_.Qr.Object.defineProperties(wk.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var A=this;return rY(this.parentSignalProxy.owner,function(){return eI$(A).getWithPath([])})},
set:function(A){hIY(this,A)}},
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}}});
_.Qr.Object.defineProperties(wk,{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",wk);var zIx,wgN;_.u7=new _.TS("STATE_STORE_TOKEN");zIx=new _.TS("SELECT_TOKEN");wgN=new _.TS("DISPATCH_TOKEN");var a9W={getSelectFn:function(){var A;return(A=_.fJ().resolve(_.bu(zIx)))!=null?A:mni},
getDispatchFn:function(){var A;return(A=_.fJ().resolve(_.bu(wgN)))!=null?A:_.m5().dispatch.bind(_.m5())},
getAppStore:function(){return _.fJ().resolve(_.u7)}},AKW,f94=!1;var f0={traceAllComponents:_.K("web_tracing_all_components"),exportToCsi:_.K("web_tracing_export_to_csi"),exportBreadcrumbs:_.K("web_enable_tracing"),bufferSize:_.GP("web_max_tracing_events"),enabledSpansArray:_.pJ("web_tracing_enabled_spans"),exportToDevTools:_.K("web_tracing_export_to_devtools")};var Xgi=function(){};var Btf=void 0;var uq$=function(){};
uq$.prototype.hasAttribute=function(A){if(A==="dir")return!1;if(A==="disable-upgrade"){var Q,b;return(b=(Q=this.hostElement)==null?void 0:Q.hasAttribute("disable-upgrade"))!=null?b:!1}throw Error("Qg`"+A);};
uq$.prototype.attributeChangedCallbackWrapper=function(A,Q,b){if(A==="disable-upgrade"&&this.__isUpgradeDisabled&&b===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var f;((f=this.hostElement)!=null?f:this).isConnected&&this.connectedCallback()}else Q===b||this.__isReflecting||this.attributeChangedCallback(A,Q,b)};
uq$.prototype.getExtraMethodsToForward=function(){for(var A=this,Q=[],b=_.F(Z9j),f=b.next(),a={};!f.done;a={tagName$jscomp$54:void 0,name$jscomp$572:void 0},f=b.next())a.name$jscomp$572=f.value,f=void 0,a.name$jscomp$572==="_setPendingProperty"?(a.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),f=function(T){return function(G,p,P){qJ(T.tagName$jscomp$54,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return A._setPendingProperty(G,p,P)}}(a)):f=function(T){return function(){return A[T.name$jscomp$572].apply(A,
_.ri(_.E$.apply(0,arguments)))}}(a),Q.push([a.name$jscomp$572,
f]);return Q};
for(var LiA=O9p(VkL((0,_.Cn)(uq$))),i9y=["disabled","disable-upgrade"],yKy=(0,_.Cn)(function(){}),YRL=new Set(Object.getOwnPropertyNames(yKy.prototype)),kM6=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.ri(YRL))),Vkb=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),Z9j=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),DEY=new Set([].concat(_.ri(Vkb),_.ri(Z9j),_.ri(YRL))),$E$=_.F(DEY),NtN=$E$.next();!NtN.done;NtN=$E$.next())zF4.add(NtN.value);var nIA={created:function(){rOi(this);this.initializeInjection()}};var RI6=!1,Ge=window.ShadyDOM,cK6=["appendChild","insertBefore","removeChild","replaceChild"],xEb=[Node];Ge&&xEb.push(Ge.Wrapper);var YRb,DEy,sK4={};var P8=new Set,B8="",mEb="";var p0,Xp=new Set;var Gue=new Set("context didCallReady is info params signalProxy".split(" ")),pxf="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Ps6="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var sKv=ih({entities:d84}),mEL=new AE(sKv);var A6p=function(){return _.nc.apply(this,arguments)||this};
_.O(A6p,_.nc);_.Qr.Object.defineProperties(A6p.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return mEL}}});
_.E([_.kl()],A6p);_.ZB=[v3.prototype,A6p.prototype];_.yn={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var A=this,Q={};setTimeout(function(){var b;return _.Bn((b=A.hostElement)!=null?b:A,"yt-live-chat-add-tooltip-target",Q)},0);
this.handler_=Q.handler},
detached:function(){if(this.handler_){var A;this.handler_.removeElementFromSupportingTooltips((A=this.hostElement)!=null?A:this)}this.handler_=null}}};_.ie=new _.TS("ICON_MANAGER_TOKEN");var QhL=[48,20,18,16,15,13,12],RXW=new Map,Cs9=new Set,kuy=new Set,Hl9=new Set,nxf=new Set,IPC=new Set,oxi=new Promise(function(A){var Q=!1,b=!1,f=!1,a=[],T=function(G){if("detail"in G)if(G=G.detail,G.name==="yt-icons")qIb(G),Q=!0;else if(G.name==="yt-sys-icons")qIb(G),b=!0;else{var p;((p=G.name)==null?0:p.includes("yt-sys-icons"))&&G.size!==24&&(qIb(G,!0),a.push(G.size),a.length===QhL.length&&(f=!0))}Q&&b&&f&&(window.removeEventListener("iron-iconset-added",T),A())};
window.addEventListener("iron-iconset-added",T)}),r6b=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"]]);_.Y3={};_.Y3.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.mO,computeHref_:function(A,Q){Q=Q===void 0?!1:Q;if(!A||A.commandExecutorCommand)return null;var b=WmJ(A,Q);return Q||b!==null?b?_.K("enable_polymer_resin")?_.hs(b).toString():b:null:(_.Wv(new _.IO("computeHref was null",this.is,A)),null)},
computeOptionalHref_:function(A){return this.computeHref_(A,!0)},
computeNofollow_:function(A){return A?qhJ(A)?"nofollow":null:null},
computeIcon_:function(A){return A&&A.iconType?_.K0(A.iconType):""},
resolveCommand:function(A,Q,b){Q=Q===void 0?{}:Q;return _.V0(A,this.hostElement,Q,b===void 0?!1:b)}};var fPN,DB;_.blM={};fPN=null;
DB={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_=CVe(this.viewroot));_.y1(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var A=this;this.unobserve_();if(_.K("kevlar_vimio_use_shared_monitor"))vxy(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 Q=[];this.visibilityOptionVisible_&&Q.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&Q.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&Q.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=Q}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){gxF(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 A=_.vl(this.parentNode,function(b){var f,a=(f=b.polymerController)!=null?f:b;return!!a.getVisibilityObserverForChild&&a.getVisibilityObserverForChild()},!0);
if(A){var Q;this.localVisibilityObserver_=((Q=A.polymerController)!=null?Q:A).getVisibilityObserverForChild()}else fPN||(fPN=CVe()),this.localVisibilityObserver_=fPN;return this.localVisibilityObserver_},visibilityCallback:function(A){A?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.K("kevlar_use_vimio_behavior")||(DB={});DB&&!_.K("kevlar_use_vimio_behavior")&&(delete DB.attached,delete DB.detached);_.blM.YtVisibilityObserverBehavior=[DB];var aPv={};aPv.YtVisualElementBehavior=[_.blM.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.K("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.K("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var A=this.getScreenLayer&&this.getScreenLayer(),Q=this.getVisibilityLogger();Q&&Q.reportShown(this,void 0,A)}},
onHidden:function(){if(_.K("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.K("kevlar_vimio_use_shared_monitor")){var A=this.getScreenLayer&&this.getScreenLayer(),Q=this.getVisibilityLogger();Q&&Q.reportHidden(this,void 0,A)}},
getVisibilityLogger:function(){return _.K("kevlar_use_vimio_behavior")?_.n0():null},
shouldSkipLogging:function(){if(_.vG("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var A=this.getParentRenderer&&this.getParentRenderer();if(!A)return!1;var Q,b=(Q=A.polymerController)!=null?Q:A;if(!b.data)return!1;A=this.data.trackingParams;A=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:A;var f;Q=(f=b.data)==null?void 0:f.trackingParams;var a,T;Q=((a=b.data)==null?0:a.loggingDirectives)?(T=b.data)==null?void 0:T.loggingDirectives.trackingParams:Q;return A&&Q&&A===
Q}}];var c6e=new Map,rF;var ovF=function(A){this.layer=A},l6=function(A){return A.layer!==void 0?A.layer:A.parent?l6(A.parent):A.layer=0};var YIU;_.Z={};YIU=0;_.Z.YtRendererBehavior=[_.Y3.YtComponentBehavior,aPv.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_:_.K("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var A,Q;(Q=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||Q.removeEventListener("scroll",_.lN(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Ex4(this.hostElement);Lnx(_.rk(),this.hostElement);AH.delete(this.hostElement)},
registerRenderer:function(A){var Q;((Q=A.polymerController)!=null?Q:A).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(A),this.markDirty())},
unregisterRenderer_:function(A){this.useVimio_||(this.childCache_.delete(A),this.markDirty())},
attached:function(){var A=this,Q=this.getParentRenderer();if(Q){var b,f,a;(f=(b=(a=Q.polymerController)!=null?a:Q).registerRenderer)==null||f.call(b,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var T,G;(G=(T=this.monitorScrollElement)!=null?T:this.hostElement)==null||G.addEventListener("scroll",_.lN(this,this.onScroll))}_.j7.addJob(function(){zXi(A.hostElement)},8);
b=new ovF(this.screenLayer||void 0);(Q=AH.get(Q))&&Q.layerNode&&(b.parent=Q.layerNode);Q={};otF(this.hostElement,(Q.isRenderer=!0,Q.layerNode=b,Q[t5f]=this.data,Q))},
getParentRenderer:function(){for(var A=this.hostElement.parentNode,Q,b;A&&((Q=AH.get(A))==null||!Q.isRenderer)&&!((b=A.polymerController)!=null?b:A).isRenderer_;)A=A.parentNode||A.host;return A},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.K("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Ep("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.K("debug_web_ve_data")&&this.data.trackingParams){var A="";try{A=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(b){_.en(b)}if(A){var Q=bO9(A,1);Q!==void 0&&(this.hostElement.dataset.veIndex=String(Q));A=bO9(A,2);
A!==void 0&&(this.hostElement.dataset.ve=String(A))}}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,_.K("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.t8(this.data.loggingDirectives.trackingParams)),this.visualElement=_.kz(_.IP(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var A=this.data.targetId;_.lp1(_.rk(),A,this.hostElement)}else Lnx(_.rk(),this.hostElement)},
onScroll:function(){var A=Date.now();A-this.lastHandledScroll_<50||(this.lastHandledScroll_=A,this.markDirty())},
markDirty:function(){_.K("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():DDe(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var A=this.getParentRenderer();if(A&&(A=AH.get(A))&&A.layerNode)return l6(A.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.ri(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++)this.sendImpression(this.data.impressionEndpoints[A]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(A){A.clickTrackingParams&&delete A.clickTrackingParams;var Q,b;(A==null?0:(Q=A.commandMetadata)==null?0:(b=Q.webCommandMetadata)==null?0:b.sendPost)?_.X5(this.hostElement,[A,{impression:!0}]):_.ST(this.hostElement,[A],this.hostElement)},
logExplicitClick:function(A){var Q=_.WR(this.getScreenLayer());if(Q){var b,f=(b=A.polymerController)!=null?b:A;A=f.visualElement;f=f.trackingParams||f.clickTrackingParams;!A&&f&&(A=_.t8(f));A&&_.$_(Q,A)}}}];var TaY={},$3=function(){return _.nc.apply(this,arguments)||this};
_.O($3,_.nc);$3.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
$3.prototype.onPdgItemBehaviorClick=$3.prototype.onPdgItemBehaviorClick;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$3.prototype,"data",void 0);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],$3.prototype,"onPdgItemBehaviorClick",null);_.E([_.kl()],$3);TaY.YtPdgLiveChatItemBehavior=[$3.prototype,_.Z.YtRendererBehavior];var dDr;var FAL;_.NO={};_.NO.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var sk=function(){var A=f1.apply(this,arguments)||this;A.switchTemplateAtRegistration=!1;return A};
_.O(sk,f1);sk.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||mDi(this),_.Hfy(this,"doRender"),this.doRender())};
sk.prototype.debounceRender=function(){this.templatingFn&&_.Yl(this,"doRender",this.doRender)};
sk.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.en(Error("$g"))};
sk.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.E([LQC()],sk);var GuM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,md={},fAF=(md[1]={filterString:null,isUnwrappable:null,unwrap:null},md[2]={filterString:function(A,Q,b){return lJ(b)},
isUnwrappable:function(A){return A instanceof zY},
unwrap:function(A){return un(A)}},md[3]={filterString:function(A,Q,b){return GuM.test(b)?b:ed.toString()},
isUnwrappable:function(A){return ts(A)},
unwrap:function(A){return _.r$(A)}},md[4]={filterString:function(){return ed.toString()},
isUnwrappable:function(A){return A instanceof np},
unwrap:function(A){return _.IT(A).toString()}},md[5]={filterString:function(A,Q,b){return b},
isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A.toString()}},md[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(A){return A instanceof _.$8},
unwrap:function(A){return dL4(A)}},md[8]={filterString:function(A,Q,b){b=String(b).toLowerCase();
return dHY(A,Q,b)?b:"zClosurez"},
isUnwrappable:null,unwrap:null},md[10]={filterString:null,isUnwrappable:null,unwrap:null},md);b0[eB["default"]]=TDU;var dmi=[];var iMy=G39("A"),JBF=G39("BUTTON"),r_=G39("DIV"),VCC=G39("LABEL");(function(){var A=DD;DD=function(Q){A==null||A(Q);eM(function(){for(var b=0;b<Q.length;b++)Fhf(Q[b])})}})();var Bax=function(){var A=_.nc.apply(this,arguments)||this;A.hasUnmounted=!1;return A};
_.O(Bax,_.nc);_.d=Bax.prototype;_.d.beforeRegister=function(){var A=this.doIdomRender;this.templatingFn?_.en(Error("Zg")):(this.templatingFn=A,this.switchTemplateAtRegistration=!0,bXF(this))};
_.d.attached=function(){};
_.d.detached=function(){Fhf(this.hostElement)};
_.d.renderIdom=function(){throw Error("bh");};
_.d.doIdomRender=function(){var A=this;$I6(this.hostElement,function(){A.renderIdom()})};
_.E([_.kl()],Bax);var pxx=[sk.prototype,Bax.prototype];var PsN,Xx$=function(){return PsN!==void 0?PsN:PsN=document.createElement("template")};
document.head.appendChild(Xx$().content);var SIM;var UD1,LAM=function(){return UD1!==void 0?UD1:UD1=document.createElement("template")};
document.head.appendChild(LAM().content);var MZK;var lPy=document.head,KAx=lPy.appendChild,ilv;if(MZK===void 0){var J69=document.createElement("template");_.k(J69,"\x3c!--css-build:shady--\x3e");J69.content.insertBefore(LAM().content.cloneNode(!0),J69.content.firstChild);MZK=J69}ilv=MZK;KAx.call(lPy,ilv.content);var VZv,OlN=function(){return VZv!==void 0?VZv:VZv=document.createElement("template")};
document.head.appendChild(OlN().content);var nxx;var kuY=document.head,IP1=kuY.appendChild,Hly;if(nxx===void 0){var Csy=document.createElement("template");_.k(Csy,"\x3c!--css-build:shady--\x3e");Csy.content.insertBefore(OlN().content.cloneNode(!0),Csy.content.firstChild);nxx=Csy}Hly=nxx;IP1.call(kuY,Hly.content);var qIL=document.head,oxL=qIL.appendChild,tZN;if(SIM===void 0){var r6L=document.createElement("template");_.k(r6L,"\x3c!--css-build:shady--\x3e");r6L.content.insertBefore(Xx$().content.cloneNode(!0),r6L.content.firstChild);SIM=r6L}tZN=SIM;oxL.call(qIL,tZN.content);var jhN,RX9=function(){return jhN!==void 0?jhN:jhN=document.createElement("template")};
document.head.appendChild(RX9().content);var gx$;_.Af=new _.TS("DARK_THEME_TOKEN");var $mU=new _.fU("accessibilityProperties");var Dm9=new _.fU("layoutProperties");var NDJ=new _.fU("imageType");var eXM={};if("ytAttributedStringLinkHoverColor"in eXM)throw Error("eh`ytAttributedStringLinkHoverColor");(function(A,Q){eXM[A]="value"in Q&&"unit"in Q?Sa6(A,Q):function(b){try{return Q(b)}catch(f){throw Error("ch`"+A+"`"+f.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var hXL=function(A){var Q=this;this.holdTime=A===void 0?500:A;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(b){var f=new CustomEvent("LONG_PRESS"),a;(a=b.changedTouches[0].target)==null||a.dispatchEvent(f)};
this.ontouchstart=function(b){Q.longPressTimeout=_.hy(_.j7,function(){Q.onlongpress(b);Q.longPressOccurred=!0},Q.holdTime)};
this.ontouchmove=function(){_.j7.cancelJob(Q.longPressTimeout);Q.longPressTimeout=NaN;Q.longPressOccurred=!1;Q.moveOccurred=!0};
this.ontouchend=function(b){if(Q.longPressTimeout&&!Q.longPressOccurred&&!Q.moveOccurred){var f;(f=b.changedTouches[0].target)==null||f.dispatchEvent(new Event("click"))}_.j7.cancelJob(Q.longPressTimeout);Q.longPressTimeout=NaN;Q.longPressOccurred=!1;Q.moveOccurred=!1}};var rAX=function(A,Q){hXL.call(this,Q);var b=this;this.callback=A;this.onlongpress=function(f){var a;(a=b.callback)==null||a.call(b,f)}};
_.O(rAX,hXL);var jfb=function(A,Q){var b=Object.assign({},Q);A=_.F(new Map([["ontouchstart",A.ontouchstart],["ontouchend",A.ontouchend],["ontouchmove",A.ontouchmove]]));for(var f=A.next(),a={};!f.done;a={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},f=A.next()){var T=_.F(f.value);f=T.next().value;T=T.next().value;a.eventName$jscomp$101=f;a.eventHandler$jscomp$1=T;Q[a.eventName$jscomp$101]=function(G){return function(p){var P;(P=b[G.eventName$jscomp$101])==null||P.call(b,p);(0,G.eventHandler$jscomp$1)(p)}}(a)}};_.de=new _.TS("COMMAND_HANDLER_TOKEN");var LhF=new _.fU("parallelCommand");var KhC=new _.fU("performOnceCommand");var lAF=new _.fU("serialCommand");var iXJ=void 0;var WAr=function(){this.data=[];this.consumer=null};
WAr.prototype.push=function(A){this.consumer?this.consumer(A):this.data.push(A)};var ab={};_.pz(ab,void 0,"sgPmTd");_.pz(null,void 0,"jypsq");_.pz(null,void 0,"mWiOof");var cwe=new WAr;var CR4=[iFW,J49,VAj,nCL,OFy,KJY,kXM,IUL];var yAU=new _.fU("bracketTextDecorator");var sG=new _.fU("highlightTextDecorator");_.bc=new _.TS("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var cAA=function(){},vxY;
(vxY=window.requestIdleCallback)==null||vxY.bind(window);var wfC={calledOnce:!1,state:"visible"},zw6={calledOnce:!1,state:"hidden"};var Exv=new _.TS("ICON_WIZ_COMPONENT_TOKEN");_.oY=_.aP(function(A){var Q=A.icon;var b=A.active;var f=A.className;var a=A.style;var T=A.dataSelected;var G=A.dataDisabled;var p=A.role;var P=A.animateIcon;var U=A.themeOverride;var L=A.ariaHidden;var M=A.ariaExpanded;var l=A.ariaLabel;var J=A.tabindex;var n=A.id;var t=A.size;var g=A.iconFilter;return _.X(_.S,{cond:Q,then:function(){var e=_.fJ().resolve(Exv);return _.X(e,{icon:Q,dataSelected:T,dataDisabled:G,animateIcon:P,themeOverride:U,ariaExpanded:M,tabindex:J,id:n,active:b,size:t,role:p,className:f,
ariaHidden:L,ariaLabel:l,style:function(){return a!=null&&a()||t==null||!t()?a==null?void 0:a():"width: "+(t==null?void 0:t())+"px;height: "+((t==null?void 0:t())+"px;")},
iconFilter:g})}})},"b");
_.oY.idomCompat=!0;var STW=window.devicePixelRatio||1;var lMA=new Map([["yt_outline_bag_black_24","bag"]]);var A9=function(A){var Q=this;this.margin=.1;this.whenInViewportWithMargin=A;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){Q.requestScan()});
window.addEventListener("touchend",function(){Q.requestScan()});
window.addEventListener("updateui",function(){Q.requestScan()});
var b=new _.Ac((0,_.IL)(this.requestScan,this),100);window.addEventListener("scroll",function(){b.fire()},!0);
window.addEventListener("resize",(0,_.IL)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){Q.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.IL)(this.requestScan,this))};
A9.prototype.observe=function(A){this.observationTargets.includes(A)||this.observationTargets.push(A)};
A9.prototype.unobserve=function(A){this.observationTargets=this.observationTargets.filter(function(Q){return Q!==A})};
A9.prototype.requestScan=function(){var A=this;this.scanRequested||(eM(function(){xDM(A)}),this.scanRequested=!0)};
var xDM=function(A){var Q=(1+A.margin)*(document.documentElement.clientHeight||window.innerHeight);A.observationTargets=A.observationTargets.filter(function(b){var f=b.getBoundingClientRect();(f=Q>f.top&&!!f.height)&&A.whenInViewportWithMargin(b);return!f&&b.parentNode});
A.scanRequested=!1};
A9.prototype.disconnect=function(){this.observationTargets=[]};var c6M,wxM;c6M=_.F(_.pz(OC6(),void 0,"O3X2wd"));_.zXL=c6M.next().value;wxM=c6M.next().value;window.addEventListener("resize",function(){wxM(OC6())});var uxy={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Zlv=void 0,y6M=window.innerWidth,YIK=window.innerHeight;window.addEventListener("resize",function(){Zlv=void 0});var DDM;if("IntersectionObserver"in window)DDM=IMC();else{if(Zlv===void 0){var $DK;$DK="matchMedia"in window?window.matchMedia(uxy.landscape+","+uxy.portrait).matches:void 0;Zlv=$DK!==void 0?$DK:y6M>=930&&YIK>=550||y6M>=550&&YIK>=930}DDM=Zlv?{observe:function(A){eM(function(){var Q;(Q=A.onViewportEntered)==null||Q.call(A)})},
unobserve:function(){}}:new A9(function(A){eM(function(){var Q;
(Q=A.onViewportEntered)==null||Q.call(A)})})}var nDY=DDM;var Nar=_.aP(function(A){var Q=!1,b=_.st("img",function(f){_.Cz(function(){Q=!0;f.onload=null})});
_.H_(function(){var f,a=(f=A.data)==null?void 0:f.call(A),T,G=(T=A.getSrc)==null?void 0:T.call(A).cb,p;f=(p=A.config)==null?void 0:p.call(A);if(p=b.value)if(T=function(U,L){if(!Q)return G?G(U,L):U},qTJ(p,f),_.K("web_image_dont_reload_same_src")&&ClU(p,a,T))_.K("web_image_dont_reload_same_src_simulate_load")&&p.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var P;HCC(p,a||null,T,f,(P=A.lazy)==null?void 0:P.call(A))}},"v0I2p");
return _.X("img",{el:b})},"c");
Nar.idomCompat=!0;_.aY=_.aP(function(A){var Q=function(){var b,f=A.data(),a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y,a9,pF,Ub,Ob,I9,iy,wW,h4,SW,r9;var PM={contentMode:(a=A.contentMode)==null?void 0:a.call(A),loadedClass:(T=A.loadedClass)==null?void 0:T.call(A),isPreloaded:(G=A.isPreloaded)==null?void 0:G.call(A),notifyOnLoaded:(p=A.notifyOnLoaded)==null?void 0:p.call(A),notifyOnUnloaded:(P=A.notifyOnUnloaded)==null?void 0:P.call(A),preferredThumbnail:(U=A.preferredThumbnail)==null?void 0:U.call(A),preserveHeight:(L=A.preserveHeight)==
null?void 0:L.call(A),preserveWidth:(M=A.preserveWidth)==null?void 0:M.call(A),objectPosition:(l=A.objectPosition)==null?void 0:l.call(A),targetWidth:(J=A.targetWidth)==null?void 0:J.call(A),targetHeight:(n=A.targetHeight)==null?void 0:n.call(A),shouldShowPlaceholder:(t=A.shouldShowPlaceholder)==null?void 0:t.call(A),useWidth:(g=A.useWidth)==null?void 0:g.call(A),isToggled:(e=A.isToggled)==null?void 0:e.call(A),alt:(x=A.alt)==null?void 0:x.call(A),className:(D=A.className)==null?void 0:D.call(A),
onerror:A.onerror,onload:A.onload,style$:((w=A.style$)==null?void 0:w.call(A))||((u=A.style)==null?void 0:u.call(A)),color:(y=A.color)==null?void 0:y.call(A),width:(a9=A.width)==null?void 0:a9.call(A),height:(pF=A.height)==null?void 0:pF.call(A),"aria-hidden$":(SW=(Ub=A["aria-hidden$"])==null?void 0:Ub.call(A))!=null?SW:(Ob=A.ariaHidden)==null?void 0:Ob.call(A),draggable:(I9=A.draggable)==null?void 0:I9.call(A),"data-disabled$":(r9=(iy=A["data-disabled$"])==null?void 0:iy.call(A))!=null?r9:(wW=A.dataDisabled)==
null?void 0:wW.call(A),size:(h4=A.size)==null?void 0:h4.call(A)};return r0C(f,PM,(b=A.hideOn404)==null?void 0:b.call(A))};
return _.X(_.I8,null,_.X(_.nH,{when:function(){var b;return((b=Q())==null?void 0:b.type)==="image"}},function(){return _.X(Nar,{data:function(){return Q().image},
getSrc:{cb:function(b,f){var a=Q().image.sources,T=Q().config.isPreloaded,G=Q().config.useWidth,p=Q().config.targetWidth,P=Q().config.targetHeight,U=Q().config.preferredThumbnail;return _.USi(f,a,T,G,p,P,U)||""}},
config:function(){var b=Q().config,f;for(f in b)b[f]===void 0&&delete b[f];return b},
lazy:A.renderLazy})}),_.X(_.nH,{when:function(){var b;
return((b=Q())==null?void 0:b.type)==="icon"}},function(){return _.X(_.oY,{icon:function(){return Q().iconName},
role:function(){return Q().config.role},
className:function(){return Q().config.className},
style:function(){return Q().config.style$+";width: "+(Q().config.width+"px;height: ")+(Q().config.height+"px;color: ")+(Q().config.color+";")},
ariaLabel:function(){return Q().config["aria-label$"]},
ariaHidden:function(){return Q().config["aria-hidden$"]},
dataDisabled:function(){return Q().config["data-disabled$"]},
active:function(){return Q().config.isToggled},
size:function(){return Q().config.size}})}))},"d");
_.aY.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var shM=function(A){return function(Q){return _.X(Sse,null,function(){var b=Q.data(),f=_.o7(Q.config);return _.X(Aj,null,function(){return void A(b,f)})})}}(h3Y),gDy=_.aP(function(A){var Q=function(f){var a,T=_.d_(function(l){a=qz(function(){for(var J=_.F(L()),n=J.next();!n.done;n=J.next()){n=WYi(n.value);
n=typeof n==="string"?document.createTextNode(n):n;if(!(n instanceof Node)){J=new _.IO("Part is not a node",n,typeof n);_.en(J);break}l.appendChild(n)}})}),G=FS(function(){return mmA(f())},{isEqual:R3X}),p=_.Q0(A.config),P=function(){var l,J=G();
return!((l=p())==null||!l.ariaLabel)||!(J.commandRuns&&J.commandRuns.length!==0||J.paragraphStyleRuns&&J.paragraphStyleRuns.length!==0)},U=FS(p,{isEqual:EDY}),L=function(){var l=sfC(G(),U());
Qq6(l,U());return G().content?FY9(G().content,l).parts:[]},M=!0;
_.H_(function(){G();U();if(M)M=!1;else{var l=L();Promise.resolve().then(function(){var J=T.value;if(J){J.innerText="";var n;(n=a)==null||n();a=_.HG(J,function(){return _.X(vDU,{parts:l})})}})}},"YlhjWd");
return _.X("span",{el:T,class:function(){return G()&&Whe(G(),p())},
dir:function(){var l;return((l=p())==null?0:l.userInput)?"auto":void 0},
"aria-label":function(){var l;return P()?(l=p())==null?void 0:l.ariaLabel:void 0},
role:function(){return P()?"text":void 0}})},b;
return((b=A.config)==null?0:b.renderedFromFormattedString)?Q(A.text):_.X(_.S,{cond:A.text,then:Q})},"e");
gDy.idomCompat=!0;_.Rb=_.aP(function(A){var Q=_.Q0(A.text),b=xSA(A);A.renderedFromFormattedString!==void 0&&(b.renderedFromFormattedString=!0);return _.K("attr_string_reactive")?_.X(gDy,{text:Q,config:b}):_.X(_.S,{cond:function(){var f;return Q()&&((f=mmA(Q()))==null?void 0:f.content)},
then:function(){return _.X(shM,{data:A.text,config:b})},
debugInstance:"Apcuac"})},"f");
_.Rb.idomCompat=!0;var z3F=function(A,Q,b){Q=Q===void 0?"unknown":Q;b=b===void 0?{}:b;_.IO.call(this,A+" ("+Q+")",Object.assign({},{name:"YtWcwError",tagName:Q},b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.O(z3F,_.IO);_.DSf=new WeakMap;_.YTA=!1;var y0i,$S9,ZCb;_.Qf=Symbol("gh");_.Bz=Symbol("hh");y0i=Symbol("ih");$S9=new Set(Object.getOwnPropertyNames(Element.prototype));ZCb=Symbol("jh");var mDL=_.aP(function(A){return _.X("yt-attributed-string",{"aria-label":A.ariaLabel,hidden:A.hidden,id:A.id,class:A.className,"force-default-style":A.forceDefaultStyle},_.X(_.Rb,{text:A.data,ariaLabel:A.ariaLabel,ellipsisTruncate:A.ellipsisTruncate,isOverlay:A.isOverlay,linkInheritColor:A.linkInheritColor,noPreWrap:A.noPreWrap,noWrap:A.noWrap,userInput:A.userInput,noEndpoints:A.noEndpoints,headerRuns:A.headerRuns}))},"g");
_.K("web_wiz_attributed_string")&&_.pE(mDL,"yt-attributed-string",{props:{ariaHidden:_.Qf,ariaLabel:_.Qf,className:_.Qf,ellipsisTruncate:_.Qf,isOverlay:_.Qf,linkInheritColor:_.Qf,noEndpoints:_.Qf,noStyleRuns:_.Qf,noLinkColor:_.Qf,noPreWrap:_.Qf,noWrap:_.Qf,skipOnClick:_.Qf,userInput:_.Qf,headerRuns:_.Qf,id:_.Qf,data:_.Qf,hidden:_.Qf,forceDefaultStyle:_.Qf,text:_.Bz,stopPropagation:_.Bz,disableUpgrade:_.Bz,disable:_.Bz,slot:_.Bz}});var bz=function(){return _.q.apply(this,arguments)||this};
_.O(bz,_.q);bz.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},h3Y(this.data,this.config))};
_.E([_.I(pxx),_.c("design:type",Object)],bz.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bz.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bz.prototype,"ariaLabel",void 0);_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"disable",void 0);_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"ellipsisTruncate",void 0);_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"isOverlay",void 0);
_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"linkInheritColor",void 0);_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"noPreWrap",void 0);_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"noWrap",void 0);_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"userInput",void 0);_.E([_.C(),_.c("design:type",Boolean)],bz.prototype,"noEndpoints",void 0);_.E([_.C(),_.c("design:type",Array)],bz.prototype,"headerRuns",void 0);
_.E([_.Ec({is:"yt-attributed-string",disableElementRegistration:!0})],bz);
_.K("web_wiz_attributed_string")||_.W(bz,"yt-attributed-string",function(){if(gx$===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
A.content.insertBefore(RX9().content.cloneNode(!0),A.content.firstChild);gx$=A}A=gx$;return A},{mode:2});var AAj,QfK,fa4;AAj=function(){this.firstThumbnailLoaded=!1};
_.bX$=function(){QfK||(QfK=new AAj);return QfK};
fa4=function(A){var Q=_.bX$();Q.firstThumbnailLoaded||(Q.firstThumbnailLoaded=!0,_.hQ("ftl",A))};
AAj.prototype.reset=function(){this.firstThumbnailLoaded=!1};var sqA=0,bdY=new WeakMap,AnY=0,Sl=new Set;var fA$,aAL=function(){return fA$!==void 0?fA$:fA$=document.createElement("template")};
document.head.appendChild(aAL().content);var TDK;var F$y,BVA,f3;_.MM=_.by.caches;f3=function(){};
f3.prototype.open=function(A){return _.MM.open(dmL(A))};
f3.prototype.has=function(A){return _.MM.has(dmL(A))};
f3.prototype.delete=function(A){return _.MM.delete(dmL(A))};
f3.prototype.match=function(A,Q){var b=this,f,a,T,G,p,P;return _.B(function(U){switch(U.nextAddress){case 1:return U.yield(b.keys(),2);case 2:f=U.yieldResult,a=_.F(f),T=a.next();case 3:if(T.done){U.jumpTo(5);break}G=T.value;return U.yield(b.open(G),6);case 6:return p=U.yieldResult,U.yield(p.match(A,Q),7);case 7:if(P=U.yieldResult)return U.return(P);T=a.next();U.jumpTo(3);break;case 5:return U.return()}})};
var pSJ=function(){};
_.O(pSJ,f3);var dmL=function(A){if(A.includes(":"))throw Error("mh`"+A);return A+":"+_.nJ("CacheStorage get")};
pSJ.prototype.keys=function(){var A,Q,b,f,a,T,G,p,P;return _.B(function(U){if(U.nextAddress==1)return A=[],Q=_.nJ("CacheStorage keys"),U.yield(_.MM.keys(),2);b=U.yieldResult;f=_.F(b);for(a=f.next();!a.done;a=f.next())T=a.value,G=_.dRY(T),p=G.originalName,P=G.datasyncId,P===Q&&A.push(p);return U.return(A)})};var a3=function(){var A=_.q.apply(this,arguments)||this;A.objectURL=null;A.loadTime=Infinity;return A};
_.O(a3,_.q);_.d=a3.prototype;_.d.renderIdom=function(){TVi(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&oDX(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.d.objectFitToContentMode=function(A){switch(A){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.d.logThumbnailFailureVe=function(){var A=_.K6(197497);_.l$(_.IP(),A);var Q=_.WR();Q&&A&&Q&&_.Y_(Q,[A])};
_.d.loadImageFromCacheIfExists=function(A){var Q=this,b=A.target;(b==null?0:b.src)&&XSi(b.src).then(function(f){Q.objectURL=_.vh(f).toString();Q.setSrc(b,Q.objectURL)}).catch(function(){})};
_.d.onError=function(A){var Q=this;if(_.K("web_use_cache_for_image_fallback")){var b=A.target;b&&XSi(b.src).then(function(f){Q.objectURL=_.vh(f).toString();Q.setSrc(b,Q.objectURL)}).catch(function(){_.K("kevlar_woffle_log_thumbnail_failure_ve")&&Q.logThumbnailFailureVe();
_.K("kevlar_woffle_fallback_image")&&Q.setSrc(b,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.d.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.d.setConfig=function(){var A=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(Q){A.loadImageFromCacheIfExists(Q);A.revokeObjectURL();aay(A.hostElement)},
onerror:function(Q){A.onError(Q)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.K("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.d.setSrc=function(A,Q){Q&&(A.src=Q)};
_.E([_.I(pxx),_.c("design:type",Object)],a3.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],a3.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],a3.prototype,"alt",void 0);_.E([_.C(),_.c("design:type",Boolean)],a3.prototype,"ftlEligible",void 0);_.E([_.C(),_.c("design:type",Number)],a3.prototype,"height",void 0);_.E([_.C(),_.c("design:type",Boolean)],a3.prototype,"notifyOnLoaded",void 0);
_.E([_.C(),_.c("design:type",Boolean)],a3.prototype,"notifyOnUnloaded",void 0);_.E([_.C(),_.c("design:type",String)],a3.prototype,"objectFit",void 0);_.E([_.C(),_.c("design:type",String)],a3.prototype,"objectPosition",void 0);_.E([_.C(),_.c("design:type",String)],a3.prototype,"preferredThumbnail",void 0);_.E([_.C(),_.c("design:type",Boolean)],a3.prototype,"preserveHeight",void 0);_.E([_.C(),_.c("design:type",Boolean)],a3.prototype,"preserveWidth",void 0);
_.E([_.C({value:!0}),_.c("design:type",Boolean)],a3.prototype,"useWidth",void 0);_.E([_.C({value:function(){return!_.Ep("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.c("design:type",Boolean)],a3.prototype,"shouldRenderLazy",void 0);_.E([_.C(),_.c("design:type",Number)],a3.prototype,"width",void 0);_.E([_.Ec({is:"yt-image",disableElementRegistration:!0})],a3);
_.W(a3,"yt-image",function(){if(TDK===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(aAL().content.cloneNode(!0),A.content.firstChild);
TDK=A}A=TDK;return A},{mode:2});var TW=function(){return _.q.apply(this,arguments)||this};
_.O(TW,_.q);TW.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var A=_.ue(this.data.onVisibleCommand);A&&this.ytComponentBehavior.resolveCommand(A)}};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],TW.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NO.YtVisibilityBehavior),_.c("design:type",Object)],TW.prototype,"ytVisibilityBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],TW.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],TW);
_.W(TW,"yt-bumper-user-edu-content-view-model",function(){if(FAL===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;dDr===void 0&&(dDr=document.createElement("template"));var f=dDr;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);FAL=A}A=FAL;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Fhx;var G3y,BDp=function(){if(G3y!==void 0)return G3y;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Fhx===void 0&&(Fhx=document.createElement("template"));var f=Fhx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return G3y=A};var pfy;_.du={};pfy=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"]);_.du.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var A=this.getContext_();return A?A.getTaskManager():_.j7},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var A=_.Bn(this.hostElement,"yt-get-context-provider",{});A.detail&&A.detail.contextProvider?this.cachedProviderNode_=A.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return pfy.has(this.hostElement.localName)},
getNetworkManager:function(){var A=this.getContext_();if(A)return A.getNetworkManager()}};var K$Y,PRr,SaN,Xfj;_.F6=function(A){var Q=PRr.get(A);if(Q&&(Q=Q.pop()))return Xfj++,Q;SaN++;try{var b=document.createElement(A)}catch(f){throw new _.IO("ElementPool failed to create element",A,f.message);}return b};
K$Y=function(A){var Q=A.is;if(Q){var b=PRr.get(Q);b||(b=[],PRr.set(Q,b));var f=_.vG("ELEMENT_POOL_CONFIG")||{};b.length>=(f[Q]!==void 0?f[Q]:_.vG("ELEMENT_POOL_DEFAULT_CAP",0))||b.push(A)}else _.Wv(new _.IO("Element pool should only handle custom elements:",A.nodeName))};
PRr=new Map;SaN=0;Xfj=0;var lc=new WeakMap,laJ=new WeakMap;var Lh$;_.GW=function(A,Q,b){b=b===void 0?_.Rc():b;this.JSC$13680_defaultPriority=A;this.signal=Q;this.scheduler=b;this.nextJobDescriptor=0;this.JSC$13680_parkedJobs=[];this.scheduledJobs=new Map};
_.BJ=function(A,Q){if(Q){var b=_.y2();A.signal&&!_.Yg(b,A.signal)?(b.addListener(A.signal,function(){A.processSignal()}),A.JSC$13680_parkedJobs.push({job:Q,
priority:void 0})):UmY(A,Q)}};
Lh$=function(A,Q){if(Q!==A.JSC$13680_defaultPriority){A.JSC$13680_defaultPriority=Q;for(var b=_.F(A.scheduledJobs.values()),f=b.next();!f.done;f=b.next())f=f.value,A.scheduler.cancelJob(f.jobId),f.jobId=A.scheduler.addJob(f.jobWrapper,Q)}};
_.GW.prototype.flushJobs=function(){Lh$(this,10);this.processSignal()};
_.GW.prototype.cancel=function(){for(var A=_.F(this.scheduledJobs),Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;b=b.next().value;this.scheduler.cancelJob(b.jobId);this.scheduledJobs.delete(Q)}this.JSC$13680_parkedJobs=[]};
_.GW.prototype.processSignal=function(){for(var A=_.F(this.JSC$13680_parkedJobs),Q=A.next();!Q.done;Q=A.next())Q=Q.value,UmY(this,Q.job,Q.priority);this.JSC$13680_parkedJobs=[]};
var UmY=function(A,Q,b){b=b||A.JSC$13680_defaultPriority;if(b===10)U4(Q);else{var f=A.nextJobDescriptor++,a=function(){Q();A.scheduledJobs.delete(f)},T=A.scheduler.addJob(a,b);
A.scheduledJobs.set(f,{jobWrapper:a,jobId:T,priority:b})}};_.dK(OdU);var nnU={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};L74({beforeVisit:function(A){if(P8.has(A.type)){var Q;(Q=A.props).idomKey!=null||(Q.idomKey=A.type)}else A.type.TAG_NAME&&(B8=A.type.TAG_NAME)},
afterRender:function(A,Q){var b;B8=(b=Q==null?void 0:Q.type)!=null?b:""},
didPatch:function(){B8=""}});var MXj;_.p3={};MXj={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.p3.YtRendererstamperBehavior=[_.du.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 A in this.stampDom){var Q=this.stampDom[A];Q&&Q.id&&this.addReactiveSchema({type:"observe",method:{methodName:URe(Q.id),args:[{type:"wildcard",path:A}]}})}else{(A=(this.constructor.generatedFrom||this).observers)||(A=[]);for(Q in this.stampDom){var b=this.stampDom[Q];b&&b.id&&A.push(URe(b.id)+"("+Q+".*)")}this.constructor.generatedFrom.observers=A}},
addStampDomObserverFns_:function(){for(var A in this.stampDom){var Q=this.stampDom[A];Q.id?(this[URe(Q.id)]=this.rendererStamperObserver_.bind(this,A,Q.id),this.hasDataPath_[A]=!1):(Q=new _.IO("Bad rendererstamper config",this.is+":"+A),_.en(Q))}},
rendererStamperObserver_:function(A,Q,b){if(b.path==A){if(b.value===void 0&&!this.hasDataPath_[A])return;this.hasDataPath_[A]=b.value!==void 0}this.rendererStamperApplyChangeRecord_(A,Q,b)},
rendererStamperApplyChangeRecord_:function(A,Q,b){var f=this.renderJobsMap_[Q],a=null;A==b.path?(b=b.value,_.ce(b)||(b=b===void 0||b===null?[]:[b]),A=this.stampDom[A],A.mapping&&(a=this.stampDomArray_.bind(this,b,Q,A.mapping,A.reuseComponents,A.events,A.stamperStableList)),f&&f.cancel(),b=A.usePageScheduler?this.getTaskManager():void 0,f||A.initialRenderPriority==void 0)?A.renderPriority==void 0||f||(f=new _.GW(A.renderPriority,A.waitForSignal,b),this.renderJobsMap_[Q]=f):(f=new _.GW(A.initialRenderPriority,
A.waitForSignal,b),this.renderJobsMap_[Q]=f,a=function(T,G){T();Lh$(G,10)}.bind(this,a,f)):a=A+".splices"==b.path?this.stampDomArraySplices_.bind(this,A,Q,b.value):this.forwardRendererStamperChanges_.bind(this,A,Q,b);
f?_.BJ(f,a):a()},
forwardRendererStamperChanges_:function(A,Q,b){var f=b.path.slice(A.length+1),a=this.getStampContainer_(Q),T=f.indexOf("."),G=f.substring(0,T),p=!1,P=0,U=parseInt(G,0);if(G[0]=="#"){p=parseInt(G.substring(1),0);U=this.get(A);var L=this.get([A,G]);U[p]==L?P=p:P=U.indexOf(L);p=!0}else isNaN(U)||(P=U,p=!0);p&&(f=f.substring(G.length+1),T=f.indexOf("."));G=_.oi(a).children[P];var M;if(a=(M=G==null?void 0:G.polymerController)!=null?M:G)f="data"+f.slice(T),typeof a.notifyPath!=="function"?_.Wv(new _.IO("notifyPath missing",
this.is+": "+A+", "+Q)):b.value?a.notifyPath(f,b.value):a.notifyPath(f)},
stampDomArraySplices_:function(A,Q,b){if(b&&b.indexSplices){var f=this.getStampContainer_(Q);if(f){for(var a=_.oi(f),T=Mwi(this.stampDom[A].reuseComponents),G=b.indexSplices.length,p=0;p<G;p++){for(var P=b.indexSplices[p],U=a.children[P.index],L=P.removed.length;L>0;L--)U&&U.parentElement&&(_.oi(U.parentElement).removeChild(U),T&&K$Y(U),U=a.children[P.index]);L=this.stampDom[A].mapping;for(var M=P.index+P.addedCount,l=document.createDocumentFragment(),J=T,n=P.index;n<M;n++){var t=P.object[n],g=SWi(L,
t);if(g){var e=L[g];t=t[g];g=this.getComponentName_(e,t);var x=U?lc.has(U):!1;J&&U&&U.is==g&&x?(g=U,this.telemetry_.reuse++,U=U.nextElementSibling):J&&U&&x?(g=this.createComponent_(e,t,T),x=_.oi(U).nextElementSibling,a.insertBefore(g,x),JnJ(this.is,a,U,T),U=x):(J=!1,g=this.createComponent_(e,t,T),l.appendChild(g));this.deferRenderStamperBinding_(g,e,t)}else e=new _.IO("Unimplemented type",A,Q,f.tagName,Object.keys(t)[0]),_.en(e)}a.insertBefore(l,U)}this.flushRenderStamperComponentBindings_();this.stampDom[A].events&&
_.Bn(this.hostElement,"yt-rendererstamper-finished",{container:f})}else A=new _.IO("Container object not found",Q,this.hostElement?this.hostElement.is:""),_.en(A)}},
stampDomArray_:function(A,Q,b,f,a,T){var G=this.getStampContainer_(Q);if(G)if(Q=_.oi(G),f=Mwi(f),A){var p=0,P=0,U;if(T=T===void 0?_.Ep("STAMPER_STABLE_LIST",!1):T||!1)for(U=Q.firstElementChild;U&&!lc.has(U)&&A.length>P;){T=A[P];var L=SWi(b,T);if(L){if(this.getComponentName_(b[L],T[L])!=U.is){var M=this.createComponent_(b[L],T[L],f),l=_.oi(U).nextElementSibling;l?Q.insertBefore(M,l):Q.appendChild(M);JnJ(this.is,Q,U,f);U=M}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(U,b[L],T[L]);p++;
P++;U=_.oi(U).nextElementSibling}else P++}Vw6(this.is,Q,p,f);p=U;if(A.length>P){T=document.createDocumentFragment();for(L=A.length;P<L;P++)if(M=A[P],l=SWi(b,M))U=this.createComponent_(b[l],M[l],f),this.deferRenderStamperBinding_(U,b[l],M[l]),T.appendChild(U);p&&_.oi(p).parentNode&&U&&!lc.has(U)?Q.insertBefore(T,p):Q.appendChild(T)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();a&&_.Bn(this.hostElement,"yt-rendererstamper-finished",{container:G})}else Vw6(this.is,Q,0,
f);else A=new _.IO("Container object not found",Q,this.hostElement?this.hostElement.is:""),_.en(A)},
getStampContainer_:function(A){return this.$&&this.$[A]||_.Bj(this.hostElement).querySelector("#"+A)},
getComponentName_:function(A,Q){return typeof A==="string"?A:A.matcher?A.matcher.call(this,Q):A.component},
createComponent_:function(A,Q,b){A=this.getComponentName_(A,Q);try{var f=Xp.has(A)||P8.has(A);if(b&&!f){var a=_.F6(A);try{_.Uc(a)}catch(T){b="Failed to clear styles for "+A+".",T.message&&(b+=" Original error: "+T.message),_.Wv(new _.IO(b))}}else a=document.createElement(A)}catch(T){return a="YtRendererStamperBehavior failed to create "+A+".",T.message&&(a+=" Original description: "+T.message),T.message="YtRendererStamperBehavior failed to create element",_.xk(T,a),MXj.hasOwnProperty(A)?_.Wv(T):_.en(T),
document.createElement("SPAN")}this.telemetry_.create++;return a},
deferRenderStamperBinding_:function(A,Q,b){this.deferredBindingTasks_.push({component:A,typeOrConfig:Q,data:b})},
flushRenderStamperComponentBindings_:function(){for(var A=0,Q=this.deferredBindingTasks_.length;A<Q;A++){var b=this.deferredBindingTasks_[A];if(!b)break;var f=void 0,a=void 0,T=void 0,G=void 0,p=b.component,P=b.typeOrConfig;b=b.data;var U=(G=p.polymerController)!=null?G:p;G=p.loggingStatus;try{G&&(G.isRendererStamper=!0);if(typeof P!=="string"){for(T in P.attributes)P.attributes[T]===!0?p.setAttribute(T,""):P.attributes[T]===!1?p.removeAttribute(T):p.setAttribute(T,P.attributes[T]);for(a in P.params)U[a]=
P.params[a],p!==U&&qJ(p.localName,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(f in P.properties){var L=P.properties[f];if(L){var M=L$C(L);U[f]=this.get(M);p!==U&&qJ(p.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(f==="on-tap"||f==="on-click"){var l=this.get(M);p.addEventListener("click",l);laJ.set(p,{property:f,listener:{type:"element",eventName:"click",handler:l}})}}else{var J=new _.IO("Undefined property binding",f);_.en(J)}}}if(P.classListBinding){var n=L$C(P.classListBinding),
t=n?this[n]:null;if(t)for(f=0;f<t.length;f++)_.Pj(p,t[f],!0)}U.data=b}finally{G&&(G.isRendererStamper=!1)}if(f=lc.get(p))p.hidden=!1,lc.delete(p),_.j7.cancelJob(f)}this.deferredBindingTasks_.length=0}}];_.PJ={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(A){for(var Q=_.Yk.getInstance(),b=_.F(Object.keys(A)),f=b.next();!f.done;f=b.next()){var a=f.value;f=A[a];if(this&&this[f]){var T=Q.actionRoutingMap.get(a);T||(T=new Map,Q.actionRoutingMap.set(a,T));Q.registerActionHandler(this,a,this[f].bind(this),T)}else a=Error("hd"),a.params=f,_.xQ(a)}},
unregisterActionMap:function(A){_.$k(_.Yk.getInstance(),A,this)}}]};var Jf=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_"+(_.K("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.K("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.K("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:_.K("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:_.K("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:_.K("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var ic;var VR=new Map;var hYe=window.matchMedia("(forced-colors: active)").matches;var lA$;var Kh1;var iXj=new _.TS("LOTTIE_LOADER_TOKEN");_.X6=_.aP(function(A){var Q=A.data;var b=A.className;var f=A.animationName;var a=A.animationRef;var T=A.elRefForInterop;var G=_.mS("lottie-component"),p;_.Cz(function(){var U;return void((U=p)==null?void 0:U.destroy())});
var P;_.H_(function(){var U=_.o7(f);if(U!==P){P=U;var L=Object.assign({},{animationName:U,animationRef:_.o7(a)},_.o7(Q));try{_.fJ().resolve(iXj)().then(function(J){var n;(n=p)==null||n.destroy();var t,g;n=(g=T==null?void 0:(t=T())==null?void 0:t.value)!=null?g:G.value;t=L.animationRef;g=L.listeners;J=J.loadAnimation(Object.assign({},{container:n},L.animationConfig));t&&(t.lottieEl=J);if(g)for(n=_.F(Object.entries(g)),t=n.next();!t.done;t=n.next())g=_.F(t.value),t=g.next().value,(g=g.next().value)&&
J.addEventListener(t,g);p=J})}catch(J){U=J;
var M="LottieComponent error.";U.message&&(M+=" Original description: "+U.message);_.xk(U,M);_.Wv(U);var l;((l=L.listeners)==null?0:l.error)&&L.listeners.error(U)}}},"lbhvPc");
return _.X(hzY,{cond:function(){return!(T==null?0:T())},
then:function(){return _.X("lottie-component",{class:_.O4("ytLottieComponentHost",b),el:G})}})},"h");_.pE(_.aP(function(A){return _.X("ytd-lottie-player",{id:A.id,hidden:A.hidden,class:A.className,"aria-label":A.ariaLabel,style:"display: block;"},_.X(_.X6,{data:A.data,animationName:function(){var Q;return((Q=A.data().animationConfig)==null?void 0:Q.name)||""},
animationRef:function(){return A.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.Qf,
id:_.Qf,hidden:_.Qf,className:_.Qf,ariaLabel:_.Qf}});var Sq=function(){var A=_.q.apply(this,arguments)||this;A.animationRef={};A.delhiIconsEnabled=_.K("enable_web_delhi_icons");return A};
_.O(Sq,_.q);_.d=Sq.prototype;
_.d.handlePropertyChange=function(){var A=this.animatedIcon,Q=this.active,b=this.isDarkTheme;if(A){var f=this.previousActive!==Q;this.previousActive=Q;this.animationRef.lottieEl?f&&this.toggleAnimation(Q,A.totalFrames):Q?this.initializeAnimationAsToggled(A.lottiePlayerProps,A.totalFrames):this.initializeAnimationAsUntoggled(A.lottiePlayerProps);A.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=A.type;this.lottiePlayerProps=this.computeLottiePlayerProps(A,b)}};
_.d.computeLottiePlayerProps=function(A,Q){var b=this.deepCloneLottiePlayerProps(A);Q?(Q=A.nameDarkTheme,A=A.pathDarkTheme):(Q=A.name,A=A.path);b.animationConfig.name=Q;(Q=VR.get(A))?b.animationConfig.animationData=Q:b.animationConfig.path=A;return b};
_.d.initializeAnimationAsToggled=function(A,Q){A.animationConfig.initialSegment=[Q-1,Q]};
_.d.initializeAnimationAsUntoggled=function(A){A.animationConfig.initialSegment=void 0};
_.d.toggleAnimation=function(A,Q){if(A){var b;(b=this.animationRef.lottieEl)==null||b.playSegments([0,Q],!0)}else{var f;(f=this.animationRef.lottieEl)==null||f.playSegments([0,1],!0)}};
_.d.deepCloneLottiePlayerProps=function(A){var Q=Object.assign({},A.lottiePlayerProps.animationConfig);A=Object.assign({},A.lottiePlayerProps);A.animationConfig=Q;return A};
Sq.prototype.handlePropertyChange=Sq.prototype.handlePropertyChange;_.E([_.C(),_.c("design:type",Object)],Sq.prototype,"animatedIcon",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Sq.prototype,"active",void 0);_.E([_.C(),_.c("design:type",Boolean)],Sq.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],Sq.prototype,"animatedIconType",void 0);_.E([_.C(),_.c("design:type",Boolean)],Sq.prototype,"previousActive",void 0);
_.E([_.C(),_.c("design:type",Object)],Sq.prototype,"lottiePlayerProps",void 0);_.E([_.C(),_.c("design:type",Object)],Sq.prototype,"animationRef",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Sq.prototype,"delhiIconsEnabled",void 0);_.E([_.iN("animatedIcon","active","isDarkTheme"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sq.prototype,"handlePropertyChange",null);_.E([_.Ec({is:"yt-animated-icon",disableElementRegistration:!0})],Sq);
_.W(Sq,"yt-animated-icon",function(){if(Kh1===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;lA$===void 0&&(lA$=document.createElement("template"));var f=lA$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Kh1=A}A=Kh1;return A},{mode:2});var JAL;var VX1;var zY4=_.aP(function(A){var Q=_.mS("span"),b=rN(function(){return{value:null}});
_.Cz(function(){var a;(a=b.value)==null||a.cancel()});
var f=_.Lz(A.data,{equals:function(a,T){return a.iconName===T.iconName&&a.iconStyle===T.iconStyle&&a.iconSize===T.iconSize&&a.iconSetName===T.iconSetName&&a.iconSelected===T.iconSelected}},"aoiXAb");
_.H_(function(){var a,T=(a=A.options)==null?void 0:a.call(A);cnC(Q,b,f(),T)},"QXgxJd");
return _.X("span",{class:"yt-icon-shape",el:Q})},"j");
zY4.idomCompat=!0;var psW=["youtube_fill","youtube_outline"];var OX1=new _.r7({type:"iconset",value:void 0}),Un=function(){var A=_.q.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.iconName="";A.iconsetName="yt-icons";A.iconset=null;A.missingIconSet=!1;A.iconType=null;A.iconShapeDataSignal=_.pz(void 0,void 0,"RQ9kUb");A.renderingOptionsSignal=_.pz({iconWidth:"100%",iconHeight:"100%",iconFilter:A.iconFilter},void 0,"qtx8Ef");A.wizHasRendered=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(Un,_.q);Un.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
Un.prototype.handlePropertyChange=function(){var A=this,Q,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e;return _.B(function(x){switch(x.nextAddress){case 1:if(Q=!A.icon&&!A.iconName||!A.isAttached)return x.return();b=A;f=b.icon;a=b.size;T=b.defaultToFilled;G=b.active;p=b.targetContainer;A.toggleContainerClass(p);_.K("kevlar_use_wil_icons")&&f&&(P=Ol6(f),A.iconType=P.length?P[1]:null);if(f){x.jumpTo(2);break}A.iconsetName="";A.iconName="";return x.yield(A.renderIcon(p,f),3);case 3:return x.return();case 2:U=nap(f);
L=Ol6(U);L.length&&(A.iconsetName=L[0],A.iconName=L[1]);if(!_.K("kevlar_use_wil_icons")){x.jumpTo(4);break}M=Un;l=k39;J=A.iconType;n=A.active;t=A.defaultToFilled;g=A.size;e=A.iconsetName;return x.yield(IAL(),6);case 6:return x.yield(l.call(M,J,n,t,g,e,x.yieldResult),5);case 5:A.iconShapeData=x.yieldResult;case 4:if(A.shouldRenderIconShape(p)){x.jumpTo(7);break}return x.yield(A.determineIconSet(U,G,T,a,p),7);case 7:return x.yield(A.renderIcon(p,f),0)}})};
Un.prototype.toggleContainerClass=function(A){A?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var nap=function(A){return!_.K("default_to_innertube_icon")||A.indexOf(":")>0?A:_.K0(A)};
_.d=Un.prototype;_.d.determineIconSet=function(A,Q,b,f){var a=this;return _.B(function(T){return T.nextAddress==1?_.K("kevlar_system_icons")||_.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.vG("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?T.yield(a.switchToYtSysIconset(A,Q,b,f),3):T.jumpTo(2):T.nextAddress!=2?T.return():T.yield(a.useYtSysIconsetForMissingIcons(A,Q,b,f),0)})};
_.d.switchToYtSysIconset=function(A,Q,b,f){var a=this,T,G,p,P,U,L,M;return _.B(function(l){switch(l.nextAddress){case 1:if(!A||a.iconsetName!=="yt-icons"&&a.iconsetName!=="yt-sys-icons"){l.jumpTo(0);break}T=Ol6(A);G=T[1];G=_.jh6(G);_.K("enable_polymer_icons_replace_underscores_dash")&&G.includes("_filled")&&(G=G.replace(/_filled/g,"-filled"));return l.yield(le(G,!0),3);case 3:return p=l.yieldResult,l.yield(le(G,!1),4);case 4:if((P=l.yieldResult)||Q&&p)a.iconsetName="yt-sys-icons";a.iconName=a.getIconName(G,
Q,b,P,p);if(f===24){l.jumpTo(0);break}U="yt-sys-icons"+f+":"+a.iconName;return l.yield(le(U,!1,!0),6);case 6:return L=l.yieldResult,l.yield(le(U,!0,!0),7);case 7:M=l.yieldResult;a.iconName=a.getIconName(G,Q,b,L,M);if(!Q&&L||Q&&M)a.iconsetName="yt-sys-icons"+f;_.Oi(l)}})};
_.d.getIconName=function(A,Q,b,f,a){A.includes("-filled")&&(A=A.replace("-filled",""));return a&&(Q||b)?A+"-filled":A};
_.d.useYtSysIconsetForMissingIcons=function(A,Q,b,f){var a=this,T,G;return _.B(function(p){if(p.nextAddress==1)return a.iconsetName!=="yt-icons"?p.jumpTo(0):p.yield(le(a.iconName,!1,!1,!0),3);if(p.nextAddress!=4)return T=p.yieldResult,p.yield(le(a.iconName,!1),4);G=p.yieldResult;if(T||!G)return p.jumpTo(0);a.iconsetName="yt-sys-icons";return p.yield(a.switchToYtSysIconset(A,Q,b,f),0)})};
_.d.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var IAL=function(){return _.B(function(A){try{return A.return(_.fJ().resolve(_.ie))}catch(Q){return A.return(new Promise(function(b){_.y2().parkOrScheduleJob(function(){b(_.fJ().resolve(_.ie))},2,"ci")}))}})},k39=function(A,Q,b,f,a,T){f=f===void 0?24:f;
if(A){A=A.toLowerCase();var G=A.endsWith("_filled")||A.endsWith("-filled");Q={iconName:A,iconStyle:(Q===void 0?0:Q)||(b===void 0?0:b)||G?"youtube_fill":"youtube_outline",iconSize:f,iconSetName:a===void 0?"yt-icons":a};b=!!T.resolveIcon(Q);b||(Q.iconSize=void 0,b=!!T.resolveIcon(Q));!b&&G&&(Q.iconName=A.substring(0,A.length-7),Q.iconSize=f,b=!!T.resolveIcon(Q),b||(Q.iconSize=void 0,b=!!T.resolveIcon(Q)));b||(Q.iconStyle=void 0,b=!!T.resolveIcon(Q));b||_.Wv(new _.IO("Icon not supported",{iconName:Q.iconName,
iconStyle:Q.iconStyle,iconSize:Q.iconSize,iconType:A}));return b?Q:void 0}};
_.d=Un.prototype;_.d.shouldRenderIconShape=function(A){if(!_.K("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;A=this.getContainer(A);return!W$Y(A,this.icon)};
_.d.renderIcon=function(A,Q){var b=this,f,a,T,G,p,P,U,L;return _.B(function(M){switch(M.nextAddress){case 1:if(Q&&b.icon!==Q)return M.return();f=b.getContainer(A);a=W$Y(f,b.icon);if(b.shouldRenderIconShape(A)&&b.iconType)return b.applyIconShape(a,f),M.return();b.removeIconShape();if(!f)return M.return();b.iconName===""&&b.iconset&&f&&(b.removeStaticIcon(b.iconset,f),a&&b.removeAnimatedIcon(f));if(b.iconName===""&&b.iconset||!b.iconsetName||!OX1)return M.return();b.iconset=OX1.byKey(b.iconsetName);
if(!b.iconset)return b.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.lN(b,b.onIconsetAdded)),M.return();b.missingIconSet&&(b.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.lN(b,b.onIconsetAdded)));G=(T=a||b.isAnimatedIcon?gne(b.icon):void 0)&&!T.lazyLoad;P=T&&((p=T)==null?void 0:p.lazyLoad)&&(T.lottiePlayerProps.animationConfig.animationData?!0:VR.get(b.isDarkTheme?T.pathDarkTheme:T.path)?!0:!1);if(G||P)return b.applyAnimatedIcon(f,T,b.iconset),M.return();if(P||
(U=T)==null||!U.lazyLoad){M.jumpTo(2);break}L=EnC(T,b.isDarkTheme);b.applyStaticIcon(b.iconset,f,b.iconName,A,a);return M.yield(L,3);case 3:return M.yield(b.renderIcon(b.targetContainer,b.icon),4);case 4:return M.return();case 2:b.applyStaticIcon(b.iconset,f,b.iconName,A,a),_.Oi(M)}})};
_.d.getContainer=function(A){var Q,b=(Q=wmW(this.hostElement))==null?void 0:Q.host;Q=!!b&&!!b.polymerController;if(!A||Q)return A?this.getTargetContainer(A,b):this.hostElement};
_.d.getTargetContainer=function(A,Q){var b=_.Bj(Q).querySelector("#"+A);b||(A=new _.IO("yt-icon container missing",Q.is,A),_.en(A));return b};
_.d.applyStaticIcon=function(A,Q,b,f,a){a&&this.removeAnimatedIcon(Q);this.removeIconShape();a=a&&!!this.iconType&&!!this.iconShapeData&&_.K("kevlar_use_wil_icons");try{a?this.applyIconShape(!1,Q):A.applyIcon(Q,b)}catch(T){this.handleError(T,f,Q)}};
_.d.applyIconShape=function(A,Q){this.iconset&&Q&&(this.removeStaticIcon(this.iconset,Q),A&&this.removeAnimatedIcon(Q));A={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var b=_.F(this.iconShapeDataSignal);Q=b.next().value;b=b.next().value;var f=_.F(this.renderingOptionsSignal),a=f.next().value;f=f.next().value;b(this.iconShapeData);f(A);if(!this.wizHasRendered)for(this.wizHasRendered=!0,A=_.F(wSA(Q,a)).next().value;A.firstChild;)_.Bj(this.hostElement).appendChild(A.firstChild)};
_.d.removeIconShape=function(){if(_.K("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.d.removeStaticIcon=function(A,Q){A.removeIcon(Q)};
_.d.applyAnimatedIcon=function(A,Q,b){this.removeStaticIcon(b,A);this.removeIconShape();var f;b=this.animatedIconElement&&((f=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:f.type)===Q.type;if(this.animatedIconElement&&b){this.animatedIconElement.polymerController.animatedIcon=Q;var a;((a=this.animatedIconElement)==null?void 0:a.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(A),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=Q,this.animatedIconElement.polymerController.active=this.active,_.K("delhi_modern_web_player_icons")?(Q=eYf(A,this.icon)&&A.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=Q?Q.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.K("kevlar_use_wil_icons")?
A.insertBefore(this.animatedIconElement,A.childNodes[0]):(A=_.Bj(A),A.insertBefore(this.animatedIconElement,A.childNodes[0]))};
_.d.removeAnimatedIcon=function(A){_.K("kevlar_use_wil_icons")?this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement):(A=_.Bj(A),this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.d.handleError=function(A,Q,b){_.xk(A,this.iconName,Q,b);Q=W$Y(b,this.icon);var f=!1;window.location.href.includes("JpymaW6Lh2w")?f=!0:b._svgIcon&&(b=(b=b._svgIcon.parentNode)?b.tagName:"unknown",_.xk(A,b),b==="YT-ICON"&&A.name==="NotFoundError"?f=!0:A.name==="NotFoundError"&&Q&&(f=!0));f?_.Wv(A):_.en(A)};
_.Qr.Object.defineProperties(Un,{template:{configurable:!0,enumerable:!0,get:function(){if(VX1===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;
JAL===void 0&&(JAL=document.createElement("template"));var f=JAL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);VX1=A}A=VX1;return A}}});
Un.prototype.handlePropertyChange=Un.prototype.handlePropertyChange;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Un.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",String)],Un.prototype,"icon",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Un.prototype,"active",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Un.prototype,"defaultToFilled",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Un.prototype,"isAnimatedIcon",void 0);
_.E([_.C({value:24}),_.c("design:type",Number)],Un.prototype,"size",void 0);_.E([_.C({value:""}),_.c("design:type",String)],Un.prototype,"targetContainer",void 0);_.E([_.C(),_.c("design:type",Object)],Un.prototype,"animatedIconElement",void 0);_.E([_.C(),_.c("design:type",Object)],Un.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Un.prototype,"ariaHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],Un.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],Un.prototype,"role",void 0);_.E([_.C(),_.c("design:type",String)],Un.prototype,"style",void 0);_.E([_.C(),_.c("design:type",String)],Un.prototype,"iconFilter",void 0);_.E([_.iN("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],Un.prototype,"handlePropertyChange",null);_.E([_.Ec({is:"yt-icon",noInjection:!0})],Un);var HX1;var CRv=function(){var A=document.body,Q=A.appendChild;if(HX1===void 0){var b=document.createElement("template");_.k(b,'\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>');
HX1=b}b=HX1;Q.call(A,b.content)};
document.body?CRv():window.addEventListener("DOMContentLoaded",CRv);var qaW,oa$=function(){return qaW!==void 0?qaW:qaW=document.createElement("template")};
document.head.appendChild(oa$().content);var tXW,rAr=function(){return tXW!==void 0?tXW:tXW=document.createElement("template")};
document.head.appendChild(rAr().content);var jfL;_.L3=new _.TS("KEY_MANAGER_TOKEN");var DRe={duration:1E3,easing:"ease",fill:"forwards"};_.dK(YW9);var NVU={duration:1E3,easing:"ease",fill:"forwards"},ew$=_.aP(function(A){var Q=_.st("animated-rolling-character"),b=void 0,f=function(){var a,T;return AQ((a=A.character)==null?void 0:a.call(A))||AQ((T=A.previousCharacter)==null?void 0:T.call(A))};
_.H_(function(){if(A.marginMultiplier()){var a;(a=b)==null||a.cancel();if(f()){var T;a=((T=A.previousCharacter)==null?0:T.call(A))?Number(A.previousCharacter())+10:A.rollUp()?0:30;var G;if((G=A.shouldAnimate)==null||!G.call(A)){var p,P;a-=$R4((p=A.character)==null?void 0:p.call(A),(P=A.previousCharacter)==null?void 0:P.call(A),A.rollUp(),a)}}else{a=A.rollUp()?0:2;var U;(U=A.shouldAnimate)!=null&&U.call(A)||(T=a,G=A.rollUp()?-1:1,a=T-G)}Q.value.style.marginTop="-"+a*A.marginMultiplier()+"px";var L;
if((L=A.shouldAnimate)==null?0:L.call(A)){var M,l;b=swf(Q.value,(M=A.character)==null?void 0:M.call(A),(l=A.previousCharacter)==null?void 0:l.call(A),A.rollUp(),a,f(),A.marginMultiplier())}else{var J;Q.value.style.display=((J=A.character)==null?0:J.call(A))?"":"none"}}},"vt9b9b");
return _.X("animated-rolling-character",{el:Q,class:"animated-rolling-character-wiz"},_.X(_.S,{cond:f,then:function(){return _.X(Rwx,null)},
else:function(){return _.X(ga1,{character:A.character})}}))},"k");
ew$.idomCompat=!0;var mRW=_.K("web_enable_sink_animated_rolling_character_and_number")?ew$:YW9,hwL=_.K("web_enable_sink_animated_rolling_character_and_number")?ew$:_.ko(YW9),Rwx=_.aP(function(){for(var A=[],Q=1;Q<30;Q++)A.push(_.X("div",null,Q%10));return _.X(_.bd,null,_.X("div",null,"\u00a0"),A,_.X("div",null,"\u00a0"))},"l"),ga1=_.aP(function(A){var Q=A.character;
return _.X(_.bd,null,_.X("div",null,"\u00a0"),_.X(_.S,{cond:function(){return!(Q==null?0:Q())||_.Be(Q==null?void 0:Q())},
then:function(){return _.X("div",null,"\u00a0")},
else:function(){return _.X("div",null,Q)}}),_.X("div",null,"\u00a0"))},"m");_.dK(ABX);var WhM=_.aP(function(A){var Q=void 0,b=void 0,f=function(){var T;return((T=A.fontSizeMultiplier)==null?0:T.call(A))?A.heightPx()*A.fontSizeMultiplier():A.heightPx()},a=_.Lz(function(){if(!A.numberText())return[];
var T,G,p=((T=A.forceRollUp)==null?void 0:T.call(A))||!b||!((G=A.numberValue)==null?0:G.call(A))||b<A.numberValue(),P,U=A.numberText();T=f();G=!((P=A.shouldAnimate)==null||!P.call(A));P=[];var L=0,M=0,l=(Q?Q.replace(/\D/g,"").length:0)-(U?U.replace(/\D/g,"").length:0),J=Q?Q.split(/(\d)/).filter(Boolean):[];for(U=U.split(/(\d)/).filter(Boolean);l<0;){var n=U[M];P.push({character:n,rollUp:p,marginMultiplier:T,shouldAnimate:G});M++;AQ(n)&&l++}for(;L<l;)n=J[L],P.push({previousCharacter:n,rollUp:p,marginMultiplier:T,
shouldAnimate:G}),L++,AQ(n)||l++;for(;M<U.length;)l=U[M],n=J[L],AQ(l)===AQ(n)?(M++,L++):AQ(l)?(L++,l=void 0):AQ(n)&&(M++,n=void 0),P.push({character:l,previousCharacter:n,rollUp:p,marginMultiplier:T,shouldAnimate:G});Q=A.numberText();var t;b=(t=A.numberValue)==null?void 0:t.call(A);return P},void 0,"B9AmNd");
return _.X("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return A.numberText()?["height: "+f()+"px;","line-height: "+A.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.X(_.Op,{each:a,keyBy:"INDEX"},function(T){return _.X(hwL,{character:function(){return T().character},
previousCharacter:function(){return T().previousCharacter},
marginMultiplier:function(){return T().marginMultiplier},
rollUp:function(){return T().rollUp},
shouldAnimate:function(){return T().shouldAnimate}})}))},"n");
WhM.idomCompat=!0;_.Kvy=_.K("web_enable_sink_animated_rolling_character_and_number")?WhM:ABX;_.va1=_.K("web_enable_sink_animated_rolling_character_and_number")?WhM:_.ko(ABX);var Q5W={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"};_.Db=_.aP(function(A){var Q=_.st("a",A.ref),b=A.aTagConfig?A.aTagConfig:_.Lz(function(){var f,a,T,G,p;var P=(p=_.ue((T=A.command)==null?void 0:T.call(A)))!=null?p:(G=A.command)==null?void 0:G.call(A);return _.y0({innertubeCommand:P,skipOnClick:(f=A.skipOnClick)==null?void 0:f.call(A),defaultTarget:(a=A.target)==null?void 0:a.call(A)})||{}},void 0,"I5WLmc");
_.H_(function(){Q.value._data=b()._data;Q.value.params=b().params},"STb8Se");
return _.X("a",{el:Q,href:function(){return b().href$},
rel:function(){return b().rel$},
class:function(){var f,a;return(a=b().className)!=null?a:(f=A.className)==null?void 0:f.call(A)},
style:function(){var f;if((f=A.style)==null?0:f.call(A))return A.style();var a;return((a=A.disabled)==null?0:a.call(A))?"pointer-events:none":""},
"aria-haspopup":function(){return!!b()["aria-haspopup$"]},
"force-new-state":Hz(function(){return b()["force-new-state$"]}),
title:Hz(function(){var f,a;return(a=b().title$)!=null?a:(f=A.title)==null?void 0:f.call(A)}),
role:Hz(function(){var f;return((f=A.role)==null?void 0:f.call(A))||b().role$}),
target:Hz(function(){return b().target$}),
dir:Hz(function(){var f;return((f=A.dir)==null?void 0:f.call(A))||b().dir}),
tabindex:function(){var f;return b().tabindex$?Number(b().tabindex$):(f=A.tabIndex)==null?void 0:f.call(A)},
"aria-hidden":function(){var f,a;return(a=b()["aria-hidden$"])!=null?a:(f=A.ariaHidden)==null?void 0:f.call(A)},
"aria-label":function(){var f,a;return(a=b()["aria-label$"])!=null?a:(f=A.ariaLabel)==null?void 0:f.call(A)},
"aria-current":A.ariaCurrent,"aria-disabled":A.disabled,"aria-labelledby":A.ariaLabelledby,"aria-describedby":A.ariaDescribedby,"aria-selected":A.ariaSelected,"tab-identifier":A.tabIdentifier,"on:pointerdown":_.IY(function(f){var a,T;return void((T=(a=b()).onpointerdown)==null?void 0:T.call(a,f))}),
"on:click":_.IY(function(f){var a,T;(T=(a=b()).onclick)==null||T.call(a,f);var G;(G=A.onClick)==null||G.call(A,f)}),
"on:focusin":_.IY(function(f){var a;(a=A.onFocusin)==null||a.call(A,f)}),
"on:focusout":_.IY(function(f){var a;(a=A.onFocusout)==null||a.call(A,f)})},A.children)},"o");var Ea$=function(A,Q){this.fillAnimation=new Animation(TX6(A),document.timeline);this.strokeAnimation=new Animation(d4i(Q),document.timeline)};
Ea$.prototype.play=function(){var A,Q;(Q=(A=this.fillAnimation).play)==null||Q.call(A);var b,f;(f=(b=this.strokeAnimation).play)==null||f.call(b)};
Ea$.prototype.cancel=function(){var A,Q;(Q=(A=this.fillAnimation).cancel)==null||Q.call(A);var b,f;(f=(b=this.strokeAnimation).cancel)==null||f.call(b)};_.jl=_.aP(function(A){var Q=A.model;var b=A.pointerDownEvent;var f=A.pointerUpEvent;var a=A.pointerLeaveEvent;A=_.st("div");var T=_.qM({"border-radius":function(){return Q().borderRadius}}),G=_.st("div"),p=_.st("div"),P=_.F(_.CE(function(){return(f==null?0:f())||(a==null?0:a())?!1:!(b==null||!b())||!1})),U=P.next().value,L=P.next().value,M=void 0,l=function(){!M&&p.value&&G.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(M=new Ea$(p.value,G.value));
var x;(x=M)==null||x.play()},J=function(){var x;
(x=M)==null||x.cancel()},n=function(){var x;
(x=M)==null||x.cancel()};
_.H_(function(){(f==null?0:f())&&l()},"YjVIpd");
_.H_(function(){(b==null?0:b())&&J()},"UrXvqb");
_.H_(function(){(a==null?0:a())&&n()},"QK6L8b");
P=_.IY(function(){l();L(!1)});
var t=_.IY(function(){J();L(!0)}),g=_.IY(function(){n();
L(!1)});
_.Cz(function(){if(M){var x;(x=M)==null||x.cancel();M=void 0}});
var e={};U=_.O4("yt-spec-touch-feedback-shape",function(){return Fvy(Q().color)},(e["yt-spec-touch-feedback-shape--focused"]=function(){return!!Q().focused&&!Q().disabled},e["yt-spec-touch-feedback-shape--circular"]=function(){return!!Q().circular},e["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!Q().isExtended},e["yt-spec-touch-feedback-shape--down"]=U,e["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!Q().triggerEvents},e));
return _.X("yt-touch-feedback-shape",{style:_.qM({"border-radius":"inherit"})},_.X("div",{el:A,class:U,style:_.qM({"margin-top":function(){return Q().customTopExtend?"-"+Q().customTopExtend+"px":void 0}}),
"on:mousedown":t,"on:mouseup":P,"on:pointerleave":g,"on:touchstart":t,"on:touchend":P,"aria-hidden":!0},_.X("div",{class:"yt-spec-touch-feedback-shape__stroke",style:T,el:G}),_.X("div",{class:"yt-spec-touch-feedback-shape__fill",style:T,el:p})))},"p");
_.jl.idomCompat=!0;var xm1={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 Mb=_.Mf();Mb=Mb.toLowerCase();if(_.Pe(Mb,"android")){var cAW=Mb.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);cAW&&parseFloat(cAW[1])<100||Mb.match("("+Object.keys(xm1).join("|")+")")};var zwN=_.aP(function(A){return _.X(_.S,{cond:A.aTagConfig,then:function(Q){return _.X(_.Db,{aTagConfig:Q,disabled:A.disabled,className:A.className,style:A.style,title:A.title,ariaLabel:A.ariaLabel,ariaCurrent:function(){var b,f;return((b=A.toggleable)==null?void 0:b.call(A))&&((f=A.toggled)==null?void 0:f.call(A))},
ref:A.ref},A.children)},
else:function(){return _.X("button",{el:_.d_(A.ref),"on:click":_.IY(function(Q){var b;return(b=A.onClick)==null?void 0:b.call(A,Q)}),
class:A.className,title:A.title,style:A.style,disabled:A.disabled,"aria-pressed":function(){var Q,b;return((Q=A.toggleable)==null?0:Q.call(A))?!((b=A.toggled)==null||!b.call(A)):void 0},
"aria-label":A.ariaLabel,"aria-disabled":A.visiblyDisabled,"aria-hidden":A.ariaHidden,tabindex:A.tabIndex},A.children)}})},"q"),uBv=_.aP(function(A){var Q=A.data;
var b=A.hasIconLeading;var f=A.hasIconLeadingTrailing;var a=A.hasIconTrailing;var T=A.iconButton;var G=A.iconClassName;var p=A.secondaryIconClassName;var P=A.icon;var U=A.secondaryIcon;var L=A.textContentClassName;return _.X(lz,{className:"",style:"display: inherit; justify-content: center"},_.X(_.S,{debugInstance:"V4z1Uc",cond:function(){return P&&(b()||f()||(T==null?void 0:T()))},
then:function(){return _.X(lz,null,_.X("div",{class:G,"aria-hidden":"true"},P==null?void 0:P()))}}),_.X(_.S,{debugInstance:"ok3btb",
cond:function(){return(Q().buttonText||Q().animatedTextProps||Q().formattedButtonText)&&!(T==null?0:T())},
then:function(){return _.X(lz,null,_.X(wf1,{className:L,iconPosition:function(){return Q().iconPosition},
text:function(){return Q().buttonText},
oneOffCustomTextWrap:function(){return Q().oneOffCustomTextWrap},
formattedButtonText:function(){return Q().formattedButtonText},
animatedTextProps:function(){return Q().animatedTextProps}}))}}),_.X(_.S,{debugInstance:"DO5Rz",
cond:a,then:function(){return _.X(lz,null,_.X("div",{class:G},P==null?void 0:P()))}}),_.X(_.S,{debugInstance:"bnojSc",
cond:f,then:function(){return _.X(lz,null,_.X("div",{class:p},U==null?void 0:U()))}}),_.X(_.S,{debugInstance:"HN3kad",
cond:function(){return!Q().disabled&&!0},
then:function(){return _.X(_.jl,{model:function(){return{color:XWY(Q())}}})}}))},"r"),wf1=_.aP(function(A){var Q=function(){var b,f;
return((b=A.iconPosition)==null?void 0:b.call(A))==="icon-with-label"||((f=A.oneOffCustomTextWrap)==null?void 0:f.call(A))};
return _.X("div",{class:A.className,"aria-hidden":function(){var b,f,a;return((b=A.ariaHidden)==null?void 0:b.call(A))&&(!((f=A.animatedTextProps)==null||!f.call(A))||!((a=A.formattedButtonText)==null||!a.call(A)))}},_.X(_.I8,null,_.X(_.nH,{when:function(){var b;
return(b=A.animatedTextProps)==null?void 0:b.call(A)}},function(){return _.X(_.va1,{numberText:function(){return A.animatedTextProps().numberText},
numberValue:function(){return A.animatedTextProps().numberValue},
heightPx:function(){return A.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return A.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return A.animatedTextProps().shouldAnimate},
forceRollUp:function(){return A.animatedTextProps().forceRollUp}})}),_.X(_.nH,{when:function(){var b;
return(b=A.formattedButtonText)==null?void 0:b.call(A)}},function(){return _.X(_.Rb,{text:function(){return Object.assign({},A.formattedButtonText(),{lineBreakMode:Q()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":A.formattedButtonText().lineBreakMode,
alignment:Q()?"TEXT_ALIGNMENT_CENTER":A.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!Q()}})}),_.X(_.nH,{when:function(){var b,f;
return((b=A.iconPosition)==null?void 0:b.call(A))==="icon-with-label"&&((f=A.text)==null?void 0:f.call(A))}},function(){return _.X(_.Rb,{text:function(){return{content:A.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.X(_.kQ,null,function(){return A.text})))},"s"),ZXL=_.aP(function(A){return _.X(_.S,{debugInstance:"kM7Sgc",
cond:A.hasLabel,then:function(){var Q;return _.X("label",{class:A.className},A.children,(Q=A.textContent)==null?void 0:Q.call(A))},
else:function(){return A.children}})},"t"),lz=_.aP(function(A){return A.children},"u");var Gkf=mT("stamper-context");var yAK=_.aP(function(A){var Q=_.d_(),b=_.F(_.pz(void 0,void 0,"Z7xOte")),f=b.next().value,a=b.next().value;b=_.F(_.pz(void 0,void 0,"ppqp2e"));var T=b.next().value,G=b.next().value;b=_.F(_.pz(0,void 0,"bD1Mhe"));var p=b.next().value,P=b.next().value;b=_.Lz(function(){return p()===3?"ytPopoverComponentClosing":""},void 0,"kVITif");
var U=_.IY(function(){switch(p()){case 1:P(2);break;case 3:var L,M;(M=(L=Q.value).hidePopover)==null||M.call(L);P(0);a(void 0);G(void 0)}});
_.H_(function(){if(A.show()){var L;a((L=A.children)==null?void 0:L.call(A));var M;G((M=A.location)==null?void 0:M.call(A));switch(p()){case 0:var l,J;(J=(l=Q.value).showPopover)==null||J.call(l);P(1);break;case 3:P(1);var n,t;(t=(n=Q.value).hidePopover)==null||t.call(n);var g,e;(e=(g=Q.value).showPopover)==null||e.call(g)}}else switch(p()){case 2:P(3);break;case 1:var x,D;(D=(x=Q.value).hidePopover)==null||D.call(x);a(void 0);G(void 0);P(0)}},"umhOQd");
_.tz(function(){});
return _.X("yt-popover",{popover:"manual",el:Q,style:_.qM({left:function(){var L;return(L=T())==null?void 0:L.left},
top:function(){var L;return(L=T())==null?void 0:L.top},
bottom:function(){var L;return(L=T())==null?void 0:L.bottom},
right:function(){var L;return(L=T())==null?void 0:L.right}}),
class:_.O4("ytPopoverComponentHost",b,A.classNames),"on:animationend":U},f)},"v");var YaW={left:"0px",right:"auto",top:"0px",bottom:"auto"},Dmy=function(){var A=this;this.registerTooltipElement=function(b){var f;A.tooltipElement=(f=b.querySelector("yt-popover"))!=null?f:void 0};
var Q=_.F(_.pz(void 0,void 0,"z4iHWd"));this.state=Q.next().value;this.setState=Q.next().value;Q=_.F(_.pz(void 0,void 0,"uKDcaf"));this.schedulerJobID=Q.next().value;this.setSchedulerJobID=Q.next().value},IE6=function(A,Q){var b=g_,f=_.j7.addJob(function(){var a=$mK(b,A,Q);
b.setState({text:Q.text,location:a,anchor:A,offset:Q.offset})},4,Q.delay);
b.setSchedulerJobID(f)},HMF=function(){var A=g_,Q=A.schedulerJobID();
Q&&(_.j7.cancelJob(Q),A.setSchedulerJobID(void 0));A.setState(void 0)};
Dmy.prototype.notify=function(A,Q){var b;((b=this.state())==null?void 0:b.anchor)===A&&(b=$mK(this,A,Q),this.setState({text:Q.text,location:b,anchor:A,offset:Q.offset}))};
var $mK=function(A,Q,b){var f=Q.getBoundingClientRect();Q=window.innerWidth;var a=window.innerHeight,T=b.location,G=b.offset;b=b.text;if(A=A.tooltipElement){var p=getComputedStyle(A);A=p.font;var P=RY(p.lineHeight),U=RY(p.paddingLeft),L=RY(p.paddingRight),M=RY(p.paddingTop);p=RY(p.paddingBottom);var l=document.createElement("canvas").getContext("2d");l.font=A;b={width:l.measureText(b).width+U+L,height:P+M+p}}else b=void 0;A=b;if(!A)return YaW;b=A.width;A=A.height;U=G+A;M=G+b;P=f.top>=U;U=a-f.bottom>=
U;L=f.left>=M;M=Q-f.right>=M;p=T;switch(T){case "top":!P&&U&&(p="bottom");break;case "bottom":!U&&P&&(p="top");break;case "left":!L&&M&&(p="right");break;case "right":!M&&L&&(p="left")}switch(p){case "top":T=f.left+f.width/2-b/2;f=f.top-A-G;break;case "bottom":T=f.left+f.width/2-b/2;f=f.bottom+G;break;case "left":T=f.left-b-G;f=f.top+f.height/2-A/2;break;case "right":T=f.right+G;f=f.top+f.height/2-A/2;break;default:T=f.left+f.width/2-b/2,f=f.bottom+G}G=Object.assign({},YaW);T+b>Q?(G.right="0px",G.left=
"auto"):(G.left=Math.round(Math.max(0,T)+window.scrollX)+"px",G.right="auto");f+A>a?(G.bottom="0px",G.top="auto"):(G.top=Math.round(Math.max(0,f)+window.scrollY)+"px",G.bottom="auto");return G};var g_;g_=new Dmy;_.NDj=_.aP(function(){var A=_.Lz(function(){var b;return(b=g_.state())==null?void 0:b.text},void 0,"KoaMVc"),Q=_.Lz(function(){var b;
return(b=g_.state())==null?void 0:b.location},void 0,"R6s5tc");
return _.X("yt-tooltip",{class:"ytTooltipContainerHost",el:_.d_(g_.registerTooltipElement),"aria-hidden":"true"},_.X(yAK,{classNames:"ytTooltipContainerContent",location:Q,show:function(){return!!A()}},A))},"w");_.K3=_.aP(function(A){var Q=A.data;var b=A.icon;var f=A.iconName;var a=A.secondaryIcon;var T=A.secondaryIconName;var G=A.focusedOverride;var p=A.clientOnlyWizTooltipsEnabled;_.ncY();var P=G8i(Q),U=P.size,L=P.style;A=P.disabled;var M=P.onTap,l=P.alignByText,J=P.aTagConfig,n=P.customColors,t=P.segmentedPosition,g=P.toggled,e=P.toggleable,x=P.accessibilityLabel,D=P.onToggle,w=P.iconPosition,u=P.oneOffCustomTextWrap,y=P.disableTextEllipsis,a9=P.disableBackdropFilter,pF=P.tooltipText,Ub=P.ariaHidden,Ob=
P.tabIndex,I9=P.buttonText,iy=P.formattedButtonText,wW=P.animatedTextProps,h4=Pk9(Q,b,a,f,T,G),SW=h4.type;b=h4.shouldFocus;f=h4.hasIconLeading;a=h4.hasIconTrailing;var r9=h4.hasIconLeadingTrailing,PM=h4.hasIconOnly;T=h4.hasIconOnly40;var Nf=h4.hasIconWithLabel;G=h4.iconButton;var L$=h4.visiblyDisabled;P=h4.overrideSmallSizeIcon;var UL=h4.iconToRender;h4=h4.secondaryIconToRender;var HM=_.F(Cky(pF)).next().value,Ks={},Y1={};return _.X(ZXL,{className:_.O4("yt-spec-button-shape-with-label",(Ks["yt-spec-button-shape-with-label--is-overlay"]=
function(){return L()==="overlay"||L()==="overlay-dark"},Ks)),
hasLabel:Nf,textContent:function(){return _.X(wf1,{text:I9,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:u,iconPosition:w,formattedButtonText:iy,animatedTextProps:wW})}},_.X(zwN,{aTagConfig:J,
className:_.O4("yt-spec-button-shape-next",function(){return U4y(SW())},function(){return L$()?void 0:Lv6(L())},function(){return MCX(U())},(Y1["yt-spec-button-shape-next--disabled"]=L$,Y1["yt-spec-button-shape-next--focused"]=b,Y1["yt-spec-button-shape-next--icon-trailing"]=a,Y1["yt-spec-button-shape-next--icon-leading"]=f,Y1["yt-spec-button-shape-next--icon-leading-trailing"]=r9,Y1["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return r9()&&!(I9()||iy())},Y1["yt-spec-button-shape-next--icon-button"]=
function(){return PM()||Nf()},Y1["yt-spec-button-shape-next--icon-only-default"]=T,Y1["yt-spec-button-shape-next--align-by-text"]=l,Y1["yt-spec-button-shape-next--segmented-start"]=function(){return t()==="start"},Y1["yt-spec-button-shape-next--segmented-end"]=function(){return t()==="end"},Y1["yt-spec-button-shape-next--override-small-size-icon"]=P,Y1["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=u,Y1["yt-spec-button-shape-next--disable-text-ellipsis"]=y,Y1["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!a9()&&SgC()},Y1)),
style:function(){return lEX(n()).style},
onClick:function(dW){M==null||M(dW);e()&&(D==null||D(dW))},
disabled:A,ariaLabel:x,toggleable:e,toggled:g,title:function(){return(p==null?0:p())||!pF()?"":pF()},
visiblyDisabled:L$,ariaHidden:Ub,tabIndex:Ob,ref:function(dW){(p==null?0:p())&&HM(dW)}},_.X(uBv,{data:Q,
hasIconLeading:f,hasIconLeadingTrailing:r9,hasIconTrailing:a,iconButton:G,icon:UL,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:h4})))},"x");
_.K3.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var sf1=_.aP(function(A){var Q=A.data;var b=A.id;var f=A.className;var a=A.iconName;var T=A.secondaryIconName;A=_.F(_.pz(!1,void 0,"uDRWyd"));var G=A.next().value,p=A.next().value,P=function(){var L=_.fJ().resolve(_.bu(_.L3));L&&p(L.isKeyBoardInUse())},U=function(){p(!1)};
A=_.st("yt-button-shape",function(L){if(_.fJ().resolve(_.bu(_.L3)))return L.addEventListener("focusin",P),L.addEventListener("focusout",U),function(){L.removeEventListener("focusin",P);L.removeEventListener("focusout",U)}});
return _.X("yt-button-shape",{el:A,id:b,class:f},_.X(_.S,{cond:Q,then:function(){return _.X(_.K3,{data:Q,iconName:a,secondaryIconName:T,focusedOverride:G})}}))},"y");
_.K("web_wiz_button_shape")&&_.pE(sf1,"yt-button-shape",{props:{data:_.Qf,id:_.Qf,className:_.Qf,iconName:_.Qf,secondaryIconName:_.Qf,clientOnlyWizTooltipsEnabled:_.Qf},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var iz=function(){var A=_.q.apply(this,arguments)||this;A.keyboardFocused=!1;return A};
_.O(iz,_.q);iz.prototype.onFocus=function(){var A=_.fJ().resolve(_.bu(_.L3));A&&(this.keyboardFocused=A.isKeyBoardInUse())};
iz.prototype.onBlur=function(){this.keyboardFocused=!1};
iz.prototype.renderIdom=function(){var A=this;if(this.data){var Q=tf(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),b=pW6(this.data);this.data.focused=this.keyboardFocused;OMY(this.data,function(){var f;W8("yt-icon",{icon:A.iconName,active:(f=A.data)==null?void 0:f.toggled,size:Q,style:"width: "+Q+"px; height: "+Q+"px;",iconFilter:b},ZD)},function(){var f;
W8("yt-icon",{icon:A.secondaryIconName,active:(f=A.data)==null?void 0:f.toggled,size:Q,style:"width: "+Q+"px; height: "+Q+"px;",iconFilter:b},ZD)});
_.Bn(this.hostElement,"yt-renderidom-finished")}};
_.Qr.Object.defineProperties(iz,{template:{configurable:!0,enumerable:!0,get:function(){if(jfL===void 0){var A=document.createElement("template");_.k(A,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(rAr().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(oa$().content.cloneNode(!0),A.content.firstChild);jfL=A}A=jfL;return A}}});
iz.prototype.onBlur=iz.prototype.onBlur;iz.prototype.onFocus=iz.prototype.onFocus;_.E([_.I(pxx),_.c("design:type",Object)],iz.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iz.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],iz.prototype,"iconName",void 0);_.E([_.C(),_.c("design:type",String)],iz.prototype,"secondaryIconName",void 0);_.E([_.C(),_.c("design:type",Object)],iz.prototype,"keyboardFocused",void 0);
_.E([_.Kc("focusin"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],iz.prototype,"onFocus",null);_.E([_.Kc("focusout"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],iz.prototype,"onBlur",null);_.E([_.Ec({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.K("web_wiz_button_shape")})],iz);_.pE(_.aP(function(A){function Q(){b().seconds&&T(p36({seconds:Number(b().seconds)-Date.now()/1E3}))}
var b=A.targetTimestamp;A=A.className;var f=_.F(_.pz("",void 0,"U1Q8Ae")),a=f.next().value,T=f.next().value;_.CH(function(){Q();var G=setInterval(function(){Q()},1E3);
_.Cz(function(){clearInterval(G)})});
return _.X("yt-countdown",{class:_.O4("ytCountDownHost",A)},_.X("div",null,a))},"z"),"yt-countdown",{props:{targetTimestamp:_.Qf,
className:_.Bz}});_.J9=_.aP(function(A){var Q=A.data;var b=A.className;var f=A.style;var a=A.useOutlinedIcon;var T=A.buttonOverrides;var G=A.animatedTextProps;var p=A.onClick;var P=A.target;var U=_.st("button-view-model",function(x){x.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var D=Q().targetId;D&&_.lp1(_.rk(),D,x);return function(){Lnx(_.rk(),x)}}),L=function(){return Q().iconName},M,l=(M=_.fJ().resolve(_.bu(_.Af)))==null?void 0:M(),J=function(){var x=Q();
var D=T==null?void 0:T(),w=G==null?void 0:G(),u=P==null?void 0:P();if(x){var y=Rf9(x.type);var a9=!!x.title||!!x.titleFormatted;var pF=!(!x.iconName&&!x.iconImage);a9=pF&&!a9?"icon-only":pF?x.iconTrailing||x.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;a9==="icon-only-40"&&(y="text");var Ub,Ob=(Ub=D==null?void 0:D.disabled)!=null?Ub:x.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||x.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";w=w&&w.numberText&&!isNaN(Number(w.numberValue))?
w:void 0;Ub=Object;pF=Ub.assign;var I9=x.title,iy=x.titleFormatted,wW=x.accessibilityText,h4=j5f(x.style),SW=gcF(x.state),r9=ef4(x.buttonSize);u=rBW(x,U,Ob,p,u);Ob=Ob&&!x.onDisabledTap;var PM=ocA(x,U),Nf=x.customFontColor,L$=x.customBackgroundColor;var UL=x.customBorderColor;var HM=x.customDarkThemeFontColor,Ks=x.customDarkThemeBackgroundColor,Y1=x.customDarkThemeBorderColor;Nf=l&&HM?HM:Nf;L$=l&&Ks?Ks:L$;UL=l&&Y1?Y1:UL;UL={color:Nf?_.w6(Nf):void 0,backgroundColor:L$?_.w6(L$):void 0,borderColor:UL?
_.w6(UL):void 0};x=pF.call(Ub,{},{buttonText:I9,formattedButtonText:iy,animatedTextProps:w,accessibilityLabel:wW,style:h4,type:y,state:SW,size:r9,iconPosition:a9,onTap:u,disabled:Ob,aTagConfig:PM,customColors:UL,tooltipText:x.tooltip},D)}else x={style:"mono",type:"text",state:"active",size:"M"};x.focused=g();return x},n=function(){return tf(J(),!!Q().iconName)};
A=_.F(_.pz(!1,void 0,"bl7g4"));M=A.next().value;var t=A.next().value,g=M;A=_.IY(function(){var x=_.fJ().resolve(_.bu(_.L3));x&&t(x.isKeyBoardInUse());return!1});
M=_.IY(function(){t(!1);return!1});
_.H_(function(){var x,D=_.V(Q==null?void 0:(x=Q())==null?void 0:x.onVisible,_.wF);D&&_.Z3(D,{disableClickTracking:!0})},"MLqBF");
var e=_.K("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.X("button-view-model",{el:U,class:_.O4("yt-spec-button-view-model",b),"on:focusin":A,"on:focusout":M},_.X(_.S,{cond:function(){var x;return(Q==null?0:(x=Q())==null?0:x.iconImage)?{sources:[Q().iconImage]}:void 0},
then:function(x){return _.X(_.K3,{data:J,icon:function(){return _.X(_.aY,{data:x,alt:"",targetWidth:n,targetHeight:n,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:e})},
else:function(){return _.X(_.K3,{data:J,icon:function(){return _.X(_.oY,{icon:L,active:function(){return(a==null?0:a())?!1:J().toggled},
animateIcon:function(){var x;return!!(f==null?0:(x=f())==null?0:x.animateIcon)},
size:n})},
clientOnlyWizTooltipsEnabled:e})}}))},"A");
_.J9.idomCompat={callbacks:{onClick:!0}};_.pE(_.aP(function(A){return _.X("yt-button-view-model",{id:A.id,class:_.O4(A.scopingClassName,A.classes),icon:function(){var Q;return(Q=A.icon)==null?void 0:Q.call(A)},
"dialog-dismiss":function(){var Q;return((Q=A.dialogDismiss)==null?0:Q.call(A))?"":void 0}},_.X(_.J9,{data:function(){var Q;
return(Q=A.data)==null?void 0:Q.call(A)},
className:function(){var Q;return(Q=A.className)==null?void 0:Q.call(A)},
style:function(){var Q;return(Q=A.style)==null?void 0:Q.call(A)},
useOutlinedIcon:function(){var Q;return(Q=A.useOutlinedIcon)==null?void 0:Q.call(A)},
buttonOverrides:function(){var Q;return(Q=A.buttonOverrides)==null?void 0:Q.call(A)},
animatedTextProps:function(){var Q;return(Q=A.animatedTextProps)==null?void 0:Q.call(A)},
onClick:function(Q){var b;return(b=A.onClick)==null?void 0:b.call(A,Q)}}))},"B"),"yt-button-view-model",{props:{data:_.Qf,
className:_.Qf,style:_.Qf,useOutlinedIcon:_.Qf,buttonOverrides:_.Qf,animatedTextProps:_.Qf,onClick:_.Bz,scopingClassName:_.Qf,id:_.Qf,icon:_.Qf,dialogDismiss:_.Qf,classes:_.Qf,target:_.Bz}});var Vf=function(){var A=_.q.apply(this,arguments)||this;A.isGoalActive=!0;return A};
_.O(Vf,_.q);Vf.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Vf.prototype.progressBarChanged=function(){var A=_.Bj(this.hostElement).querySelector("#progress-bar-progress"),Q,b,f,a=(f=Number((Q=this.creatorGoalState)==null?void 0:Q.currentGoalCount)/Number((b=this.creatorGoalState)==null?void 0:b.totalGoalCount)*100)!=null?f:0,T;A.style.width=((T=Math.min(a,100))!=null?T:0)+"%"};
Vf.prototype.goalStateChanged=function(){var A;this.isGoalActive=((A=this.creatorGoalState)==null?void 0:A.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var Q;A={"--yt-progress-bar-color":$DU((Q=this.creatorGoalState)==null?void 0:Q.progressBarColor)};_.Uc(this.hostElement,A)};
Vf.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Qr.Object.defineProperties(Vf.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var A;return this.isGoalActive&&!((A=this.creatorGoalState)==null||!A.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.endTimestampMs){var Q;A=Number((Q=this.creatorGoalState)==null?void 0:Q.endTimestampMs)/1E3;return{seconds:String(A)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.themedTargetImage){var Q;A=_.V((Q=this.creatorGoalState)==null?void 0:Q.themedTargetImage,Raj);return this.isAppDarkTheme()?A==null?void 0:A.imageDark:A==null?void 0:A.imageLight}}}});
_.Qr.Object.defineProperties(Vf,{template:{configurable:!0,enumerable:!0,get:function(){return BDp()}}});
Vf.prototype.goalStateChanged=Vf.prototype.goalStateChanged;Vf.prototype.progressBarChanged=Vf.prototype.progressBarChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],Vf.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);
_.E([_.C({selectorArgs:["data.creatorGoalEntityKey"],selector:function(A,Q){return _.Me(A.entities,"creatorGoalEntity",Q)}}),
_.c("design:type",Object)],Vf.prototype,"creatorGoalState",void 0);_.E([_.C(),_.c("design:type",Object)],Vf.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Vf.prototype,"isGoalActive",void 0);_.E([_.H("creatorGoalState","isGoalActive"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Vf.prototype,"shouldShowCountdown",null);_.E([_.H("creatorGoalState"),_.c("design:type",Object),_.c("design:paramtypes",[])],Vf.prototype,"endTimestamp",null);
_.E([_.H("creatorGoalState"),_.c("design:type",Object),_.c("design:paramtypes",[])],Vf.prototype,"targetIconThemedImage",null);_.E([_.iN("creatorGoalState.currentGoalCount"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vf.prototype,"progressBarChanged",null);_.E([_.iN("creatorGoalState.creatorGoalState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vf.prototype,"goalStateChanged",null);
_.E([_.Ec({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Vf);_.W(Vf,"yt-creator-goal-progress-flow-view-model",function(){return BDp()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var mmW;var A0p;var On=function(){return _.q.apply(this,arguments)||this};
_.O(On,_.q);On.prototype.attached=function(){var A,Q,b;if(this==null?0:(A=this.data)==null?0:(Q=A.pdgPurchasedBumperLoggingDirectives)==null?0:(b=Q.loggingDirectives)==null?0:b.trackingParams){var f,a,T;vcJ(this==null?void 0:(f=this.data)==null?void 0:(a=f.pdgPurchasedBumperLoggingDirectives)==null?void 0:(T=a.loggingDirectives)==null?void 0:T.trackingParams)}};
On.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],On.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],On);
_.W(On,"yt-live-chat-item-bumper-view-model",function(){if(A0p===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;mmW===void 0&&(mmW=document.createElement("template"));var f=mmW;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);A0p=A}A=A0p;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var QqN;var bCx;_.a$=function(A,Q){this.data=A;this.actions=Q;this.data=A;this.actions=Q};
_.$o=function(){};_.n3={};_.n3.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(A,Q){Ec6(this.hostElement,A,Q)},
getNavigationEndpointPopupAction:function(A){return x4Y(A,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(A,Q){cBf(this.hostElement,A,Q,this.openPopupConfig)}};var s5A=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.kZ={};
_.kZ.YtEndpointBehavior=[_.n3.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.vG("openPopupConfig");(this.useClickHandler=_.Ep("useClickHandler",!1))?this.hostElement.addEventListener("click",Lc(this,this.onEndpointClick_)):(ec(this.hostElement,"tap",Lc(this,this.onEndpointTap_)),ec(this.hostElement,"touchend",Lc(this,this.onEndpointTouchEnd_)));ec(this.hostElement,"touchstart",Lc(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Lc(this,this.onEndpointTapStart_))},
onEndpointClick_:function(A){uPW(this.hostElement,A,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(A){var Q=this.hostElement,b=this.openPopupConfig,f=this.disableCommandHandlerOverride;f=f===void 0?!1:f;var a=zf4(A);if(a){a.href&&yK(a.href);var T=A.detail;var G=T.sourceEvent;T=T.preventer;G=G.button!==void 0?G.button===0&&!hf(G):T?!hf(T):!0;a.data&&G&&wWY(Q,a,A,b,f)}},
onEndpointTouchEnd_:function(A){hf(A)||zf4(A)&&A.preventDefault()},
onEndpointTapStart_:function(A){$4f(A)}}];var m4e="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),QUe=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var fMK={};fMK.YtPlaintextBehavior=[_.Hp,{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(A){A.preventDefault();A=A.clipboardData.getData("text/plain");document.execCommand("insertText",!1,A)},
preventRichTextFormatting_:function(A){_.Ke&&(A=A.detail.keyboardEvent,A.stopImmediatePropagation(),A.preventDefault())}}];var aMW;var Tfy;var I3=function(){var A=_.q.apply(this,arguments)||this;A.ignoreShadyDom=!1;A.hasChange_=!1;A.hasSetTitle_=!1;A.useIOObserverForVisibilityLogging_=_.K("kevlar_use_vimio_behavior")&&_.vG("INNERTUBE_CLIENT_NAME")==="WEB";A.ytFormattedStringObserverHandlerKeys_=void 0;return A};
_.O(I3,_.q);_.d=I3.prototype;_.d.created=function(){this.useIOObserverForVisibilityLogging_=_.K("kevlar_use_vimio_behavior")&&_.vG("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.d.ready=function(){_.vG("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_()};
_.d.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.d.detached=function(){this.unobserveIOObservers_()};
_.d.clearContents_=function(){for(var A=this.getRoot(),Q=A.lastChild;Q&&Q.tagName!=="STYLE";){try{A.removeChild(Q)}catch(b){break}Q=A.lastChild}};
_.d.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var A=_.F(this.ytFormattedStringObserverHandlerKeys_),Q=A.next();!Q.done;Q=A.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(Q.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.d.resetForAttributedString=function(){var A=this.getRoot();!A.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),A.appendChild(this.ytAttributedStringElementRef))};
_.d.resetForFormattedString=function(){var A=this.getRoot(),Q=A.querySelector("yt-attributed-string");Q&&(this.ytAttributedStringElementRef=A.removeChild(Q))};
_.d.textChanged=function(){this.textChanged_(this.text)};
_.d.textChanged_=function(A){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!A||!A.runs&&!A.simpleText;if(_.K("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var Q=this.hostElement.firstChild;Q&&Q.nodeName==="FONT";){var b=Q;Q=Q.nextSibling;this.hostElement.removeChild(b)}Q=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
b=A.simpleText;var f;!b&&((f=A.runs)==null?void 0:f.length)===1&&this.isSimpleString_(A.runs[0])&&(b=A.runs[0].text);b!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.vG("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(b!==void 0){try{Q.textContent=b}catch(a){}Q.textContent||(this.isEmpty=!0)}else A=A.runs,b!==void 0&&(A=[{text:b}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),A&&this.updateText_(A),
Q.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.d.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)};
_.d.computeAriaLabel_=function(A){return A};
_.d.computeEllipsisTruncateStyling=function(A,Q){return A&&!Q};
_.d.computeUseAttributedString=function(A){return _.K("web_replace_formatted_with_attributed_string")&&XfJ(A)&&!this.disableAttributedString&&!this.enableContentEditable};
_.d.setNodeStyle_=function(A,Q){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.K("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?Q.removeAttribute("dir"):Q.setAttribute("dir","auto");Q.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");Q.style.color="";var b=null;this.noStyles||(A.bold&&(Q.classList.add("bold"),b="bold"),A.deemphasize&&(Q.classList.add("deemphasize"),b="deemphasize"),A.italics&&Q.classList.add("italic"),
A.strikethrough&&Q.classList.add("strikethrough"),A.errorUnderline&&(Q.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),A.bracket&&Q.classList.add("bracket"),A.textColor&&(Q.style.color=_.zx(A.textColor)));b!==Q.getAttribute("style-target")&&(b?Q.setAttribute("style-target",b):Q.removeAttribute("style-target"))};
_.d.setUpVisibilityLogging_=function(A,Q){var b=this;this.setNodeTrackingParams_(A,Q);var f;((f=Q.data)==null?0:f.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(A=this.ytRendererBehavior.visibilityObserver.observe(Q,function(a){var T=b.ytRendererBehavior.getVisibilityLogger();T&&T.reportShown(a)},this.ytRendererBehavior.visibilityOptionVisible_),Q=this.ytRendererBehavior.visibilityObserver.observe(Q,function(a){var T=b.ytRendererBehavior.getVisibilityLogger();
T&&T.reportHidden(a)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(A),this.ytFormattedStringObserverHandlerKeys_.push(Q))};
_.d.setNodeTrackingParams_=function(A,Q){Q.data||(Q.data={});if((A=A.loggingDirectives?A.loggingDirectives.trackingParams:null)||Q.data.trackingParams)Q.data.trackingParams=A};
_.d.computeHasLinkOnly_=function(A){return!(!A||A.length!==1||this.noEndpoints||!A[0].navigationEndpoint)};
_.d.getRoot=function(){var A=this.buildScopeDomOptions();return this.enableContentEditable?_.Bj(_.Bj(this.hostElement,A).querySelector("[contenteditable]")):_.Bj(this.hostElement,A)};
_.d.fixContenteditableScope=function(){var A=function(Q){Q&&(Q.nodeType===1&&Q.classList&&(Q.classList.add("style-scope"),Q.classList.add("yt-formatted-string")),Q.childNodes&&Q.childNodes.forEach(function(b){A(b)}))};
A(this.getRoot())};
_.d.updateText_=function(A){for(var Q=A.length,b=this.getRoot(),f=b.firstChild;f&&f.nodeName==="STYLE";)f=f.nextSibling;for(var a=0;a<Q&&f;){var T=A[a],G=_.K("remove_cr_char")&&T.text?T.text.replace("\r",""):T.text;if(this.isSimpleString_(T)&&!this.useMixedDirectionFormattedStrings)if(f.nodeName==="#text"){f.textContent!=G&&(f.textContent=G);a++;f=f.nextSibling;continue}else break;if(_.V(T,c8))break;else if(!this.noEndpoints&&T.navigationEndpoint){if(f.nodeName!=="A")break;this.setDataOnAnchor_(f,
T.navigationEndpoint)}else if(f.nodeName!=="SPAN")break;this.setNodeStyle_(T,f);this.setUpVisibilityLogging_(T,f);f.textContent!=G&&(f.textContent=G);a++;f=f.nextSibling}if(f)for(T=b.lastChild,f=a?f.previousSibling:null;T&&T!=f;){try{b.removeChild(T)}catch(p){break}T=b.lastChild}a!==Q&&this.addTextNodes_(A,a)};
_.d.addTextNodes_=function(A,Q){for(var b=document.createDocumentFragment(),f=A.length;Q<f;Q++){var a=A[Q],T=_.K("remove_cr_char")&&a.text?a.text.replace("\r",""):a.text;if(this.isSimpleString_(a)&&!this.useMixedDirectionFormattedStrings)b.appendChild(document.createTextNode(T));else{var G=_.V(a,c8);if(G){if(G.image){var p=document.createElement("img");G.isCustomEmoji||p.classList.add("small-emoji");p.classList.add("emoji");G.isCustomEmoji&&(p.dataset.emojiId=G.emojiId);p.src=_.Pz(G.image.thumbnails,
this.emojiSize);(a=this.get("image.accessibility.accessibilityData.label",G))?p.alt=a:G.shortcuts&&G.shortcuts.length>0?p.alt=G.shortcuts[0]:G.emojiId&&(p.alt=G.emojiId);b.appendChild(p);this.hasEmoji=!0}}else!this.noEndpoints&&a.navigationEndpoint?(p=document.createElement("a"),p.classList.add("yt-simple-endpoint"),p.setAttribute("spellcheck","false"),this.setDataOnAnchor_(p,a.navigationEndpoint)):p=document.createElement("span"),this.setNodeStyle_(a,p),this.setUpVisibilityLogging_(a,p),p.appendChild(document.createTextNode(T)),
b.appendChild(p)}}this.getRoot().appendChild(b)};
_.d.isSimpleString_=function(A){return(this.noEndpoints||!A.navigationEndpoint)&&!_.V(A,c8)&&(this.noStyles||!(A.bold||A.deemphasize||A.italics||A.strikethrough||A.errorUnderline||A.bracket||A.textColor))&&!A.loggingDirectives};
_.d.getRawText=function(){return _.mO(this.text)};
_.d.getFirstRunText=function(){var A;if(((A=this.text)==null?0:A.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.d.setFirstRunText=function(A){var Q;((Q=this.text)==null?0:Q.runs)&&this.text.runs[0]&&(this.text.runs[0].text=A,this.textChanged_(this.text))};
_.d.setDataOnAnchor_=function(A,Q){var b=this;!_.K("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(Q)||this.isSignalServiceEndpoint_(Q)?(A.onclick=this.serviceEndpointHandler_(Q),_.ch(A,"#")):H6F({text:this.text,command:Q},function(){vsY(A,Q,b.target)})};
_.d.isServiceEndpoint_=function(A){var Q;return!((Q=_.V(A==null?void 0:A.commandMetadata,_.KD))==null||!Q.sendPost)};
_.d.isSignalServiceEndpoint_=function(A){return!!_.V(A,_.li)};
_.d.serviceEndpointHandler_=function(A){var Q=this;return function(b){_.X5(Q.hostElement,[A]);b.preventDefault()}};
_.d.overrideAriaLabelChanged_=function(){var A=this.getRoot();this.enableContentEditable&&A&&A.setAttribute("aria-label",this.overrideAriaLabel)};
_.d.enableContentEditableChanged_=function(){var A=this,Q=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),Q=_.Bj(this.hostElement,Q),!Q.lastChild||Q.lastChild instanceof HTMLElement&&Q.lastChild.id!=="contenteditable-root"){var b=document.createElement("div");b.id="contenteditable-root";b.setAttribute("contenteditable","true");b.setAttribute("dir","auto");b.onfocus=function(){A.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
Q.appendChild(b);this.overrideAriaLabel&&b.setAttribute("aria-label",this.overrideAriaLabel)}}else b=_.pc(this.hostElement).firstChild,b instanceof HTMLElement&&b.id==="contenteditable-root"&&_.Bj(this.hostElement,Q).removeChild(b)};
_.d.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.d.getNodesForVisibilityLogging_=function(){return _.PD(this.getRoot().childNodes,function(A){var Q;return!((Q=A.data)==null||!Q.trackingParams)})};
_.d.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.d.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(Q){A.reportShown(Q)})}};
_.d.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(Q){A.reportHidden(Q)})}};
_.Qr.Object.defineProperties(I3.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.K("enable_mixed_direction_formatted_strings")}}});
I3.prototype.enableContentEditableChanged_=I3.prototype.enableContentEditableChanged_;I3.prototype.overrideAriaLabelChanged_=I3.prototype.overrideAriaLabelChanged_;I3.prototype.ellipsisTruncateChanged_=I3.prototype.ellipsisTruncateChanged_;I3.prototype.textChanged=I3.prototype.textChanged;_.E([_.I(fMK.YtPlaintextBehavior),_.c("design:type",Object)],I3.prototype,"ytPlaintextBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],I3.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],I3.prototype,"text",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"noEndpoints",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"noStyles",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],I3.prototype,"isDarkTheme",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],I3.prototype,"splitLines",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],I3.prototype,"forceDefaultStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],I3.prototype,"ellipsisTruncate",void 0);_.E([_.C(),_.c("design:type",Object)],I3.prototype,"ignoreShadyDom",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.c("design:type",Boolean)],I3.prototype,"ellipsisTruncateStyling",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.c("design:type",String)],I3.prototype,"ariaLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],I3.prototype,"isEmpty",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.c("design:type",Boolean)],I3.prototype,"hasLinkOnly_",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"hasEmoji",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"disableAttributedString",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"isOverlay",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"linkInheritColor",void 0);
_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"noPreWrap",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"userInput",void 0);_.E([_.C({value:16}),_.c("design:type",Number)],I3.prototype,"emojiSize",void 0);_.E([_.C(),_.c("design:type",String)],I3.prototype,"target",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"enableContentEditable",void 0);_.E([_.C(),_.c("design:type",String)],I3.prototype,"overrideAriaLabel",void 0);
_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"respectHtmlDir",void 0);_.E([_.C(),_.c("design:type",Boolean)],I3.prototype,"respectLangDir",void 0);_.E([_.H("plaintextOnly"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],I3.prototype,"useMixedDirectionFormattedStrings",null);_.E([_.C({computed:"computeUseAttributedString(text)"}),_.c("design:type",Boolean)],I3.prototype,"useYtAttributedString",void 0);
_.E([_.iN("text"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],I3.prototype,"textChanged",null);_.E([_.iN("ellipsisTruncate"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],I3.prototype,"ellipsisTruncateChanged_",null);_.E([_.iN("overrideAriaLabel"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],I3.prototype,"overrideAriaLabelChanged_",null);
_.E([_.iN("enableContentEditable"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],I3.prototype,"enableContentEditableChanged_",null);_.E([_.Ec({is:"yt-formatted-string",disableElementRegistration:!0})],I3);
_.W(I3,"yt-formatted-string",function(){if(Tfy===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;aMW===void 0&&(aMW=document.createElement("template"));var f=aMW;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Tfy=A}A=Tfy;return A});var dS$;var FYy;var GK$;var Bf1;var HJ=function(){var A=_.q.apply(this,arguments)||this;A.focused=!1;A.disabled=!1;A.isOverlay=!1;return A};
_.O(HJ,_.q);HJ.prototype.triggerDown=function(){if(!this.disabled){_.Pj(this.hostElement,"down",!0);var A;(A=this.currentAnimation)==null||A.cancel()}};
HJ.prototype.triggerUp=function(){if(!this.disabled){_.Pj(this.hostElement,"down",!1);var A=this.fillElement;var Q=this.strokeElement;typeof GroupEffect==="function"?(A=new GroupEffect([TX6(A),d4i(Q)]),A=new Animation(A,document.timeline)):A=new Ea$(A,Q);this.currentAnimation=A;var b;(b=this.currentAnimation)==null||b.play()}};
_.E([_.V1(".stroke"),_.c("design:type",HTMLElement)],HJ.prototype,"strokeElement",void 0);_.E([_.V1(".fill"),_.c("design:type",HTMLElement)],HJ.prototype,"fillElement",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],HJ.prototype,"focused",void 0);_.E([_.C(),_.c("design:type",Object)],HJ.prototype,"disabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],HJ.prototype,"isOverlay",void 0);_.E([_.Ec({is:"yt-interaction",disableElementRegistration:!0})],HJ);
_.W(HJ,"yt-interaction",function(){if(Bf1===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;GK$===void 0&&(GK$=document.createElement("template"));var f=GK$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Bf1=A}A=Bf1;return A},{mode:2});var C3=function(){return _.q.apply(this,arguments)||this};
_.O(C3,_.q);_.d=C3.prototype;_.d.ready=function(){var A=this,Q=_.Bj(this.hostElement).querySelector("#button");Q.addEventListener("focus",function(){IHv||(IHv=new kA9);A.keyboardFocused=IHv.isKeyBoardInUse()});
Q.addEventListener("blur",function(){A.keyboardFocused=!1;A.rippleUp_()})};
_.d.computeTabIndex_=function(A){return A?-1:0};
_.d.computeButtonAriaPressed_=function(A){if(this.toggleable)return A?"true":"false"};
_.d.rippleDown_=function(){_.Bj(this.hostElement).querySelector("#interaction").triggerDown()};
_.d.rippleUp_=function(){_.Bj(this.hostElement).querySelector("#interaction").triggerUp()};
_.d.onPressedChanged_=function(){var A=_.pc(_.Bj(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.pc(_.Bj(this.hostElement).querySelector("#button")).children[0];A&&(A.active=this.pressed)};
C3.prototype.onPressedChanged_=C3.prototype.onPressedChanged_;C3.prototype.rippleUp_=C3.prototype.rippleUp_;C3.prototype.rippleDown_=C3.prototype.rippleDown_;_.E([_.C(),_.c("design:type",String)],C3.prototype,"label",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],C3.prototype,"disabled",void 0);_.E([_.C(),_.c("design:type",Boolean)],C3.prototype,"pressed",void 0);_.E([_.C(),_.c("design:type",Object)],C3.prototype,"toggleable",void 0);
_.E([_.C(),_.c("design:type",Boolean)],C3.prototype,"untabbable",void 0);_.E([_.C(),_.c("design:type",Boolean)],C3.prototype,"keyboardFocused",void 0);_.E([_.Kc("down"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C3.prototype,"rippleDown_",null);_.E([_.Kc("up"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C3.prototype,"rippleUp_",null);
_.E([_.iN("pressed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C3.prototype,"onPressedChanged_",null);_.E([_.Ec({is:"yt-icon-button",disableElementRegistration:!0})],C3);
_.W(C3,"yt-icon-button",function(){if(FYy===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;dS$===void 0&&(dS$=document.createElement("template"));var f=dS$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);FYy=A}A=FYy;return A},{mode:2});var pc9=_.sC(["aria-"]),qb={};qb.YtRenderButtonBehavior=[_.Z.YtRendererBehavior,_.kZ.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!!_.fJ().resolve(_.bu(_.L3))&&_.K("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 A=this.computeHref_(this.endpoint,!0);A?_.ch(this.elements_.endpoint,A):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){A=this.buttonClass.split(" ");A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,_.Pj(this.hostElement,Q,!0),this.elements_.button&&_.Pj(this.elements_.button,Q,!0),this.elements_.text&&_.Pj(this.elements_.text,Q,!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&&(A=null,this.buttonAccessibility&&(A=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=A:A?_.Qw([_.TH(pc9)],this.elements_.button,"aria-label",A):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var A=_.fJ().resolve(_.bu(_.L3));A&&(this.keyboardFocused=A.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.F6("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,_.oi(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.oi(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(A,Q){if(Q)for(A=Q.split(" "),A=_.F(A),Q=A.next();!Q.done;Q=A.next())Q=Q.value,_.Pj(this.hostElement,Q,!1),this.elements_.button&&_.Pj(this.elements_.button,Q,!1),this.elements_.text&&_.Pj(this.elements_.text,Q,!1)},
buttonIconChanged_:function(A){this.elements_.icon?A?(this.elements_.icon.icon=A,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.oi(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Xs(this.hostElement,"is-paper-button-with-icon",!1)):A&&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"&&_.oi(this.elements_.button).appendChild(this.elements_.icon):_.oi(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Xs(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(A){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,A){var Q=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(A){case "yt_icon_button_with_label":Q=!0;_.Pj(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();A=_.oi(this.elements_.button).firstElementChild;
this.elements_.icon=A;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.oi(this.elements_.endpoint).appendChild(this.elements_.button);_.oi(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.F6("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;_.oi(this.elements_.button).appendChild(this.elements_.text);_.oi(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":Q=!0,this.elements_.button=this.getYtIconButton_(),A=_.oi(this.elements_.button).firstElementChild,this.elements_.icon=A,this.setIconActive_(this.elements_.icon),
_.oi(this.elements_.endpoint).appendChild(this.elements_.button)}_.Xs(this.hostElement,"is-icon-button",Q);_.Xs(this.hostElement,"is-paper-button",!Q);_.Xs(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 b;_.Bj((b=this.container.hostElement)!=null?b:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.oi(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(A){if(A!=void 0||this.disabled)this.disabled=A,this.elements_.button&&(this.elements_.button.disabled=A)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(A){_.K("kevlar_system_icons")&&A&&this.data&&(this.data.isSelected!==void 0?A.active=this.data.isSelected:this.data.isToggled!==void 0&&(A.active=this.data.isToggled))},
observeBasicPalette_:function(A){_.vz(this.hostElement,A)},
disabledChanged_:function(A){this.data&&this.set("data.isDisabled",A)},
onYtButtonTap_:function(A){if(this.disabled)A.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.X5(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(A=this.disableCommandHandlerOverride,!this.data||!this.data.command||A||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.K("handle_service_request_actions")||_.X5(this.hostElement,[this.serviceEndpoint]),
_.Bn(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.K("handle_service_request_actions")?(A=[],this.serviceEndpoint&&A.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&A.push(this.data.command),A.length&&_.ST(this.hostElement,A,this.hostElement)):this.data&&this.data.command&&(A=this.data.command,A.accountUnlinkCommand||A.accountLinkCommand||A.insertAdCommand||A.insertHighlightMarkerCommand||
A.createLivestreamHighlightClipCommand||A.getVideoUploadFeedbackCommand||A.musicDeletePrivatelyOwnedEntityCommand||A.ypcCancelRecurrenceEndpoint||A.getMultiSelectCommandEndpoint?_.X5(this.hostElement,[A]):_.ST(this.hostElement,[A],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 A,Q=_.Bj((A=this.container.hostElement)!=null?A:this.container);Q.lastChild&&Q.lastChild.tagName!="STYLE";)try{Q.removeChild(Q.lastChild)}catch(b){break}},
getYtIconButton_:function(){var A=this.reuseEnabled_()?_.F6("yt-icon-button"):document.createElement("yt-icon-button"),Q=_.oi(A).firstElementChild;if(Q&&Q.is!="yt-icon"){for(Q=_.oi(A);Q.lastChild;)Q.removeChild(Q.lastChild);Q=null}Q||(Q=this.getIcon_(),this.setIconActive_(Q),_.oi(A).appendChild(Q));return A},
reuseEnabled_:function(){return _.K("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.F6("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.F6("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Plr={};
_.Plr.YtButtonBehavior=[qb.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var A=this.data;A&&(this._setEndpoint(this.computeEndpoint_(A)),this._setServiceEndpoint(this.computeServiceEndpoint_(A)),this._setCommand(this.computeCommand_(A)),this._setButtonIcon(this.computeButtonIcon_(A)),this._setButtonText(this.computeButtonText_(A,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(A)),this._setButtonTooltip(this.computeTooltip_(A)),this._setButtonClass(this.computeButtonClass_(A)),this._setIconPositionType(this.computeIconPositionType_(A)),this.updateRenderedElements())},
setPressedState:function(A){var Q;if((Q=this.elements_)==null?0:Q.button)this.elements_.button.pressed=!!A},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeEndpoint_:function(A){var Q=A&&A.navigationEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.url"),f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Q?Q:A&&A.command&&A.command.modalEndpoint?A.command:b&&!f&&A.command?A.command:null},
computeServiceEndpoint_:function(A){var Q=A&&A.serviceEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Q?Q:b&&A.command?A.command:null},
computeCommand_:function(A){return A&&A.command||null},
computeButtonIcon_:function(A){return A&&A.icon&&A.icon.iconType?_.K0(A.icon.iconType):null},
computeButtonText_:function(A,Q){return!Q&&A&&A.text||null},
computeAccessibility_:function(A){return this.get("accessibilityData.accessibilityData",A)||A&&A.accessibility||(A&&A.text?{label:this.getSimpleString(A.text)}:null)},
computeTooltip_:function(A){return A?A.isDisabled&&A.disabledTooltip||A.tooltip||null:null},
computeButtonClass_:function(A){var Q=A&&A.style?A.style.toLowerCase().replace(/_/g,"-")+" ":"";Q+=A&&A.size?A.size.toLowerCase().replace(/_/g,"-")+" ":"";A.colorData&&A.colorData.basicColorPaletteData&&A.colorData.basicColorPaletteData.borderColor&&(Q+="palette-with-border");return Q.trim()}}];var E4={};var XcN;var ST9;var USL,LY1=function(){return USL!==void 0?USL:USL=document.createElement("template")};
document.head.appendChild(LY1().content);var MHM;var lMW,KYY=function(){return lMW!==void 0?lMW:lMW=document.createElement("template")};
document.head.appendChild(KYY().content);var iC9;var J0y,VHY=function(){return J0y!==void 0?J0y:J0y=document.createElement("template")};
document.head.appendChild(VHY().content);var OCN;var nDp=document.head,kKY=nDp.appendChild,IM1;if(OCN===void 0){var HC1=document.createElement("template");_.k(HC1,"\x3c!--css-build:shady--\x3e");HC1.content.insertBefore(VHY().content.cloneNode(!0),HC1.content.firstChild);OCN=HC1}IM1=OCN;kKY.call(nDp,IM1.content);var ClK=document.head,qTj=ClK.appendChild,oDr;if(iC9===void 0){var tHL=document.createElement("template");_.k(tHL,"\x3c!--css-build:shady--\x3e");tHL.content.insertBefore(KYY().content.cloneNode(!0),tHL.content.firstChild);iC9=tHL}oDr=iC9;qTj.call(ClK,oDr.content);var r01=document.head,jqM=r01.appendChild,R3r;if(MHM===void 0){var gDY=document.createElement("template");_.k(gDY,"\x3c!--css-build:shady--\x3e");gDY.content.insertBefore(LY1().content.cloneNode(!0),gDY.content.firstChild);MHM=gDY}R3r=MHM;jqM.call(r01,R3r.content);var e39;_.xo("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");e39=_.K("web_button_rework")&&_.Ep("BUTTON_REWORK")||_.K("web_button_rework_with_live");_.o3=function(){return _.q.apply(this,arguments)||this};
_.O(_.o3,_.q);_.o3.prototype.created=function(){this.openPopupConfig=_.vG("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.o3.prototype.onYtNavigate_=function(A){var Q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);Q&&(this.ytOpenPopupBehavior.openPopup(Q),A.stopPropagation(),A.preventDefault())};
_.Qr.Object.defineProperties(_.o3,{template:{configurable:!0,enumerable:!0,get:function(){if(ST9===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;XcN===void 0&&(XcN=document.createElement("template"));var f=XcN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ST9=A}A=ST9;return A}}});
_.o3.prototype.onYtNavigate_=_.o3.prototype.onYtNavigate_;_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],_.o3.prototype,"ytOpenPopupBehavior",void 0);_.E([_.I(_.Plr.YtButtonBehavior),_.c("design:type",Object)],_.o3.prototype,"ytButtonBehavior",void 0);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],_.o3.prototype,"onYtNavigate_",null);
_.E([_.Ec({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:e39})],_.o3);var h3p;var WYL=_.K("web_button_rework")&&_.Ep("BUTTON_REWORK")||_.K("web_button_rework_with_live"),jq=function(){var A=_.q.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.skipCommandHandling=!1;A.alignByText=!1;A.fitToVisibleBounds=!0;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};A.onTap=function(Q){_.Bn(A.hostElement,"yt-service-request-sent-button-renderer",Q)};
return A};
_.O(jq,_.q);_.d=jq.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.d.onClick=function(A){var Q,b=this.disabled||((Q=this.data)==null?void 0:Q.isDisabled);Q=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");b&&Q&&A.stopPropagation()};
_.d.computeIcon=function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.icon)==null?void 0:Q.iconType;if(b)return _.K0(b)};
_.d.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.d.handleUpdateButtonAction=function(A){A=_.V(A,mYL);var Q=_.V(A==null?void 0:A.updatedButton,_.wE);if(this.data&&A&&Q){var b=this.data;b.targetId&&A.targetId&&b.targetId===A.targetId&&(this.data=Q)}};
_.Qr.Object.defineProperties(jq.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var A=this;if(this.data){var Q=Fq6({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Bn(A.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Bn(A.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});Q.alignByText=this.alignByText;return Q}}}});
_.Qr.Object.defineProperties(jq,{template:{configurable:!0,enumerable:!0,get:function(){if(h3p===void 0){var A=document.createElement("template");_.k(A,'\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>');h3p=A}A=h3p;return A}}});
jq.prototype.onClick=jq.prototype.onClick;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],jq.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],jq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"isPressed",void 0);
_.E([_.C(),_.c("design:type",Object)],jq.prototype,"forceIconButton",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"forceIconOnly",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"forceModernIconButton",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"skipCommandHandling",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"alignByText",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"buttonTooltipPosition",void 0);
_.E([_.C(),_.c("design:type",Object)],jq.prototype,"fitToVisibleBounds",void 0);_.E([_.C({computed:"computeTooltip(data)"}),_.c("design:type",Object)],jq.prototype,"tooltip",void 0);_.E([_.C(),_.c("design:type",Object)],jq.prototype,"overrides",void 0);_.E([_.C(),_.c("design:type",Boolean)],jq.prototype,"disabled",void 0);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],jq.prototype,"onClick",null);
_.E([_.H("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.c("design:type",Object),_.c("design:paramtypes",[])],jq.prototype,"computedButtonShape",null);_.E([_.Ec({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!WYL,cssBuildOptOut:!0}),_.Ec({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!WYL,cssBuildOptOut:!0})],jq);var vDK;var EDp;var R3=function(){var A=_.q.apply(this,arguments)||this;A.empty_=!0;A.loadTime=Infinity;A.pendingPaint=!1;A.hasChange_=!1;A.oldThumbnail_=null;A.oldDelayedSrc_="";A.objectURL_=null;return A};
_.O(R3,_.q);_.d=R3.prototype;_.d.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.d.ready=function(){var A=this.shouldShowPlaceholder_();_.Pj(this.hostElement,"no-transition",!0);A&&this.hostElement.classList.add("with-placeholder")};
_.d.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.d.isThumbPreloaded_=function(A){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",A)};
_.d.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||xSW};
_.d.computeThumbnailSrc_=function(A){return A&&A.thumbnails?_.Pz(A.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.d.computeAlt_=function(){var A=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&A||""};
_.d.thumbnailChanged_=function(){var A=_.F([this.thumbnail,this.oldThumbnail_]),Q=A.next().value;A=A.next().value;this.oldThumbnail_=Q;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(A=this.computeThumbnailSrc_(A),this.computeThumbnailSrc_(Q)===A))return;_.K("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(Q)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):Q&&_.Ep("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.mL(this,this.onReload_):_.mL(this,this.onShow_):this.resetImage_();Q&&(this.hostElement.style.opacity=""+Q.opacity)}};
_.d.delayedSrcChanged_=function(){var A=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===A||this.resetImage_()};
_.d.setSrc_=function(A){A?(_.Bj(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Bj(this.hostElement).querySelector("#img").src=A):(_.Bj(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.d.resetImage_=function(){TVi(this.hostElement);this.empty_=!0;this.setSrc_(xSW);this.ytRendererBehavior.invalidate(!1)};
_.d.observePlaceholderColor_=function(){var A=this.thumbnail&&this.thumbnail.placeholderColor;A?this.hostElement.style.backgroundColor=_.zx(A):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.d.onLoad_=function(){_.Bj(this.hostElement).querySelector("#img").src&&_.Bj(this.hostElement).querySelector("#img").src!==xSW&&(aay(this.hostElement),this.notifyOnLoaded&&_.Bn(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.d.onError_=function(){var A=this;if(_.K("web_use_cache_for_image_fallback"))XSi(_.Bj(this.hostElement).querySelector("#img").src).then(function(Q){A.objectURL_=_.vh(Q).toString();A.setSrc_(A.objectURL_)}).catch(function(){_.K("kevlar_woffle_fallback_image")&&A.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.d.onPrescanVisible=function(){this.onShow_()};
_.d.onVisible=function(){if(_.K("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.d.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var A=this.computeSrc_();A!==_.Bj(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))}};
_.d.onReload_=function(){this.empty_=!1;var A=this.computeSrc_();A!==_.Bj(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))};
_.d.shouldShowPlaceholder_=function(){return _.K("kevlar_thumbnail_bg")};
R3.prototype.observePlaceholderColor_=R3.prototype.observePlaceholderColor_;R3.prototype.delayedSrcChanged_=R3.prototype.delayedSrcChanged_;R3.prototype.thumbnailChanged_=R3.prototype.thumbnailChanged_;_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],R3.prototype,"alt",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],R3.prototype,"ariaHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],R3.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],R3.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],R3.prototype,"id",void 0);_.E([_.I(_.NO.YtVisibilityBehavior),_.c("design:type",Object)],R3.prototype,"ytVisibilityBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",String)],R3.prototype,"delayedSrc",void 0);
_.E([_.C(),_.c("design:type",Object)],R3.prototype,"thumbnail",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],R3.prototype,"loaded",void 0);_.E([_.C(),_.c("design:type",Boolean)],R3.prototype,"notifyOnLoaded",void 0);_.E([_.C(),_.c("design:type",Number)],R3.prototype,"height",void 0);_.E([_.C(),_.c("design:type",Number)],R3.prototype,"width",void 0);_.E([_.C({value:function(){return"width"}}),
_.c("design:type",String)],R3.prototype,"dimension",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],R3.prototype,"fit",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],R3.prototype,"fitHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],R3.prototype,"fitWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],R3.prototype,"objectFit",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],R3.prototype,"objectPosition",void 0);_.E([_.C(),_.c("design:type",String)],R3.prototype,"preferredThumbnail",void 0);_.E([_.C({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.c("design:type",String)],R3.prototype,"alt_",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],R3.prototype,"sharedTooltipText",void 0);
_.E([_.C(),_.c("design:type",Boolean)],R3.prototype,"ftlEligible",void 0);_.E([_.C({value:void 0}),_.c("design:type",String)],R3.prototype,"observeHiddenOption",void 0);_.E([_.C({value:"observe_once"}),_.c("design:type",String)],R3.prototype,"observePrescanOption",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],R3.prototype,"roundedContainer",void 0);
_.E([_.I_("thumbnail"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],R3.prototype,"thumbnailChanged_",null);_.E([_.I_("delayedSrc"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],R3.prototype,"delayedSrcChanged_",null);_.E([_.iN("thumbnail.placeholderColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],R3.prototype,"observePlaceholderColor_",null);
_.E([_.Ec({is:"yt-img-shadow",disableElementRegistration:!0})],R3);var xSW=_.Ep("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.SM()(R3,"yt-img-shadow",function(){if(EDp===void 0){var A=document.createElement("template");_.k(A,'\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">');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;vDK===void 0&&(vDK=document.createElement("template"));var f=vDK;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);EDp=A}A=EDp;return A},{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 YVJ;_.gu=new _.TS("SCREEN_MANAGER_TOKEN");YVJ=new _.TS("LOG_INITIAL_SCREEN_TOKEN");var c0r=Object.fromEntries(Object.keys({entities:{}}).map(function(A){return[A,A]}));var z3$=function(A){return function(Q,b){return BZi(A,Q,b)}}(c0r)(c0r.entities,{selectSfvAudioItemPlaybackState:function(A,Q){var b,f;
A=(f=_.Me(A,"sfvAudioItemCurrentlyPlayingEntity",Q))!=null?f:void 0;return(b=A==null?void 0:A.sfvAudioItemPlaybackState)!=null?b:void 0},
playlistLoopStateEntitySelector:function(A,Q){var b;return(b=_.Me(A,"playlistLoopStateEntity",Q))!=null?b:void 0}});_.eq=_.aP(function(A){function Q(a9){return _.V(a9,_.jJ)}
function b(){var a9=f().isTogglingDisabled||t()&&f().toggledIsTogglingDisabled,pF=a9||l()?t():!t();g(pF);x(!1);if(!a9){var Ub;(Ub=G)==null||Ub(!!pF)}var Ob;((Ob=T)==null?0:Ob())||_.JY(_.fJ().resolve(_.gu),f().trackingParams);var I9;if(!pF||!Q(f().defaultButtonViewModel)||(I9=T)!=null&&I9()){var iy;!Q(f().toggledButtonViewModel)||((iy=T)==null?0:iy())||_.JY(_.fJ().resolve(_.gu),Q(f().toggledButtonViewModel).trackingParams)}else _.JY(_.fJ().resolve(_.gu),Q(f().defaultButtonViewModel).trackingParams)}
var f=A.data,a=A.buttonShapeOverrides,T=A.disableExplicitClickLogging,G=A.onToggle,p=A.style,P=A.useOutlinedIcon,U=A.className,L=function(){var a9,pF;return t()?(a9=A.animatedTextPropsToggled)==null?void 0:a9.call(A):(pF=A.animatedTextPropsDefault)==null?void 0:pF.call(A)},M=_.Lz(function(){return L()?Object.assign({},L(),{shouldAnimate:e()}):void 0},void 0,"ZKEa0b"),l=function(){var a9;
return((a9=u())==null?void 0:a9.isToggled)!==void 0},J=_.F(_.CE(function(){var a9,pF,Ub;
return l()?(a9=u())==null?void 0:a9.isToggled:(Ub=a==null?void 0:(pF=a())==null?void 0:pF.toggled)!=null?Ub:f().isToggled})),n=J.next().value;
J=J.next().value;var t=n,g=J;J=_.F(_.CE(function(){var a9,pF;return(a9=A.animatedTextPropsToggled)==null?void 0:(pF=a9.call(A))==null?void 0:pF.shouldAnimate}));
n=J.next().value;J=J.next().value;var e=n,x=J;n=_.F(_.pz(!1,void 0,"S11hid"));var D=n.next().value,w=n.next().value,u=_.Zc(function(a9){a:{var pF=f().entityKey,Ub=f().toggledStateEntitySelectorType;if(Ub)switch(Ub){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!pF)break;a9=z3$.selectSfvAudioItemPlaybackState(a9,pF);if(a9==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){a9={isToggled:!0};break a}if(a9){a9={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":a9=
{isToggled:_.PKC(a9).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":a9={isToggled:_.PKC(a9).includes("engagement-panel-live-chat-item-section")};break a;default:_.Wv(new _.IO("Error: entitySelectorType defined but not matched in selector.",a9,Ub))}a9=void 0}return a9}),y=function(){return Object.assign({},a==null?void 0:a(),{onToggle:b,
toggleable:!0,toggled:t(),focused:D()})};
return _.X("toggle-button-view-model",{"on:focusin":_.IY(function(){var a9=_.fJ().resolve(_.bu(_.L3));a9&&w(a9.isKeyBoardInUse());return!1}),
"on:focusout":_.IY(function(){w(!1);return!1})},_.X(_.S,{cond:function(){return t()?Q(f().toggledButtonViewModel):Q(f().defaultButtonViewModel)},
then:function(a9){return _.X(_.J9,{data:a9,className:U,style:p,useOutlinedIcon:P,buttonOverrides:y,animatedTextProps:M})}}))},"C");
_.eq.idomCompat={callbacks:{onToggle:!0}};_.pE(_.aP(function(A){return _.X("yt-toggle-button-view-model",{class:function(){var Q;return(Q=A.scopingClassName)==null?void 0:Q.call(A)}},_.X(_.eq,{data:function(){var Q;
return(Q=A.data)==null?void 0:Q.call(A)},
buttonShapeOverrides:function(){var Q;return(Q=A.overrides)==null?void 0:Q.call(A)},
animatedTextPropsDefault:function(){var Q;return(Q=A.animatedTextPropsDefault)==null?void 0:Q.call(A)},
animatedTextPropsToggled:function(){var Q;return(Q=A.animatedTextPropsToggled)==null?void 0:Q.call(A)},
disableExplicitClickLogging:function(){var Q;return(Q=A.disableExplicitClickLogging)==null?void 0:Q.call(A)},
onToggle:function(Q){var b;return(b=A.onToggle)==null?void 0:b.call(A,Q)},
style:function(){var Q;return(Q=A.style)==null?void 0:Q.call(A)},
useOutlinedIcon:function(){var Q;return(Q=A.useOutlinedIcon)==null?void 0:Q.call(A)},
className:function(){var Q;return(Q=A.className)==null?void 0:Q.call(A)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.Qf,
buttonShapeOverrides:_.Qf,overrides:_.Qf,animatedTextPropsDefault:_.Qf,animatedTextPropsToggled:_.Qf,disableExplicitClickLogging:_.Qf,onToggle:_.Bz,style:_.Qf,useOutlinedIcon:_.Qf,className:_.Qf,scopingClassName:_.Qf}});var h9=function(){return _.q.apply(this,arguments)||this};
_.O(h9,_.q);h9.prototype.onTap=function(A){A.stopPropagation();A=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Wi("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A})):this.ytLiveChatReduxBehavior.dispatch(_.HL("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A}))};
_.Qr.Object.defineProperties(h9.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.V(this.data.toggleButton,_.R$),Q;if(Number(((Q=this.likeCountState)==null?void 0:Q.likeCountIfIndifferentNumber)||"0")===0){var b;Q=((b=this.data.likeCountPlaceholder)==null?void 0:b.content)||""}else{var f,a,T;Q=((f=this.likeCountState)==null?void 0:(a=f.likeCountIfIndifferent)==null?void 0:a.content)||((T=this.data.likeCountPlaceholder)==null?void 0:T.content)||""}var G,p;b=((G=this.likeCountState)==null?void 0:(p=
G.likeCountIfLiked)==null?void 0:p.content)||"1";G=_.V(A.toggledButtonViewModel,_.jJ);return Object.assign({},A,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.V(A.defaultButtonViewModel,_.jJ),{title:Q})},toggledButtonViewModel:{buttonViewModel:Object.assign({},G,{title:b})}})}}}});
h9.prototype.onTap=h9.prototype.onTap;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],h9.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],h9.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],h9.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.likeCountEntityKey"],selector:XP4}),_.c("design:type",Object)],h9.prototype,"likeCountState",void 0);_.E([_.C({selectorArgs:["data.engagementStateKey"],selector:hf9}),_.c("design:type",Object)],h9.prototype,"engagementState",void 0);_.E([_.H("data","engagementState"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],h9.prototype,"isLiked",null);
_.E([_.H("data","likeCountState","isLiked"),_.c("design:type",Object),_.c("design:paramtypes",[])],h9.prototype,"toggleButton",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],h9.prototype,"onTap",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],h9);
_.W(h9,"yt-live-chat-like-button-view-model",function(){if(bCx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;QqN===void 0&&(QqN=document.createElement("template"));var f=QqN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bCx=A}A=bCx;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var wcy;var u$9;var WJ=function(){return _.q.apply(this,arguments)||this};
_.O(WJ,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],WJ.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],WJ);
_.W(WJ,"yt-live-chat-paid-message-footer-renderer",function(){if(u$9===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;wcy===void 0&&(wcy=document.createElement("template"));var f=wcy;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);u$9=A}A=u$9;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var ZCL;var y0L;var YTW;var DSx,$Sy=function(){if(DSx!==void 0)return DSx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;YTW===void 0&&(YTW=document.createElement("template"));var f=YTW;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return DSx=A};var vJ=function(){return _.q.apply(this,arguments)||this};
_.O(vJ,_.q);vJ.prototype.onTap=function(A){A.stopPropagation()};
_.Qr.Object.defineProperties(vJ.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.V(this.data.replyButton,_.jJ),Q,b,f,a,T,G,p,P=Number(((Q=this.replyCountState)==null?void 0:Q.replyCountNumber)||"0")===0?(b=this.data)==null?void 0:(f=b.replyCountPlaceholder)==null?void 0:f.content:((a=this.replyCountState)==null?void 0:(T=a.replyCount)==null?void 0:T.content)||((G=this.data)==null?void 0:(p=G.replyCountPlaceholder)==null?void 0:p.content)||"",U;return Object.assign({},
A,{title:P,accessibilityText:(U=this.replyCountState)==null?void 0:U.replyButtonAccessibilityText})}}}});
_.Qr.Object.defineProperties(vJ,{template:{configurable:!0,enumerable:!0,get:function(){return $Sy()}}});
vJ.prototype.onTap=vJ.prototype.onTap;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],vJ.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],vJ.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.replyCountEntityKey"],selector:function(A,Q){return _.Me(A.entities,"replyCountEntity",Q)}}),
_.c("design:type",Object)],vJ.prototype,"replyCountState",void 0);_.E([_.H("data","replyCountState"),_.c("design:type",Object),_.c("design:paramtypes",[])],vJ.prototype,"buttonViewModel",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],vJ.prototype,"onTap",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],vJ);
_.W(vJ,"yt-live-chat-reply-button-view-model",function(){return $Sy()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Nfv;var sqW;var En=function(){var A=_.q.apply(this,arguments)||this;A.ariaLabel="";return A};
_.O(En,_.q);
En.prototype.dataChanged=function(){for(var A=(0,_.SK)(_.Bj(this.hostElement).querySelector("#image"));A.firstChild;)A.removeChild(A.firstChild);if(this.data)if(this.data.icon){var Q=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(Q.polymerController.icon="yt-sys-icons:shield-filled",Q.polymerController.defaultToFilled=!0):Q.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();A.appendChild(Q)}else if(this.data.customThumbnail){Q=document.createElement("img");
var b=_.Nf4(this.data.customThumbnail.thumbnails,16);b?(Q.src=b,A.appendChild(Q),Q.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Wv(new _.IO("Could not compute URL for thumbnail",this.data.customThumbnail))}};
En.prototype.identity=function(A){return A};
En.prototype.computeType=function(A){return L0(A||void 0)};
En.prototype.dataChanged=En.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],En.prototype,"data",void 0);_.E([_.C({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.c("design:type",Object)],En.prototype,"ariaLabel",void 0);_.E([_.C({computed:"computeType(data)",reflectToAttribute:!0}),_.c("design:type",String)],En.prototype,"type",void 0);
_.E([_.C({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.c("design:type",String)],En.prototype,"sharedTooltipText",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("live_chat_enable_new_moderator_badge")}}),
_.c("design:type",Boolean)],En.prototype,"enableNewModeratorBadge",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],En.prototype,"dataChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],En);
_.W(En,"yt-live-chat-author-badge-renderer",function(){if(sqW===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Nfv===void 0&&(Nfv=document.createElement("template"));var f=Nfv;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);sqW=A}A=sqW;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var mSx;var Anp;var xZ=function(){return _.q.apply(this,arguments)||this};
_.O(xZ,_.q);_.d=xZ.prototype;_.d.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"}}}}};
_.d.computeBadgesInsideChip=function(A){return A?A.filter(function(Q){return L0(Q.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.d.computeBadgesOutsideChip=function(A){return this.prependChatBadges||!A?[]:A.filter(function(Q){Q=L0(Q.liveChatAuthorBadgeRenderer);return Q!=="verified"&&Q!=="owner"})};
_.d.computeBadgesBeforeChip=function(A){return this.prependChatBadges&&A?A.filter(function(Q){Q=L0(Q.liveChatAuthorBadgeRenderer);return Q!=="verified"&&Q!=="owner"}):[]};
_.d.computeIsHighlighted=function(A,Q){var b=!!UDC(A,"owner"),f=!!UDC(A,"verified");A=!!UDC(A,"moderator");return(b||f&&!A)&&!Q};
_.d.computeAuthorType=function(A){return SIe(A)};
_.d.computeAuthorClass=function(A,Q){return Q?(A?A+" ":"")+"single-line":A};
_.d.onSeedColorChanged=function(){_.K("live_chat_author_name_color_usernames")||_.K("live_chat_seed_color_usernames")||_.K("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):_.K("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
xZ.prototype.onSeedColorChanged=xZ.prototype.onSeedColorChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],xZ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xZ.prototype,"authorName",void 0);_.E([_.C(),_.c("design:type",Array)],xZ.prototype,"authorBadges",void 0);
_.E([_.C({computed:"computeAuthorType(authorBadges)"}),_.c("design:type",String)],xZ.prototype,"authorType",void 0);_.E([_.C({computed:"computeAuthorClass(authorType, singleLine)"}),_.c("design:type",String)],xZ.prototype,"authorClass",void 0);_.E([_.C({computed:"computeBadgesInsideChip(authorBadges)"}),_.c("design:type",Array)],xZ.prototype,"badgesInsideChip",void 0);_.E([_.C({computed:"computeBadgesOutsideChip(authorBadges)"}),_.c("design:type",Array)],xZ.prototype,"badgesOutsideChip",void 0);
_.E([_.C({computed:"computeBadgesBeforeChip(authorBadges)"}),_.c("design:type",Array)],xZ.prototype,"badgesBeforeChip",void 0);_.E([_.C({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.c("design:type",Boolean)],xZ.prototype,"isHighlighted",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],xZ.prototype,"singleLine",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],xZ.prototype,"disableHighlighting",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],xZ.prototype,"dashboardMoneyFeed",void 0);_.E([_.C({value:_.K("live_chat_prepend_badges"),reflectToAttribute:!0}),_.c("design:type",Boolean)],xZ.prototype,"prependChatBadges",void 0);_.E([_.C(),_.c("design:type",String)],xZ.prototype,"authorNameColor",void 0);_.E([_.V1("#author-name"),_.c("design:type",HTMLDivElement)],xZ.prototype,"username",void 0);
_.E([_.iN("authorNameColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xZ.prototype,"onSeedColorChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],xZ);
_.W(xZ,"yt-live-chat-author-chip",function(){if(Anp===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;mSx===void 0&&(mSx=document.createElement("template"));var f=mSx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Anp=A}A=Anp;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Qwx;var bdp;var cJ=function(){var A=_.q.apply(this,arguments)||this;A.debounceCommand=_.IB(function(Q){A.ytComponentBehavior.resolveCommand(Q)},1500);
return A};
_.O(cJ,_.q);cJ.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var A=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",Q,b,f=this.isHearted?(Q=this.data)==null?void 0:Q.unheartCommand:(b=this.data)==null?void 0:b.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Wi("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:A}));(A=_.ue(f))&&this.debounceCommand(A)}};
_.Qr.Object.defineProperties(cJ.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A,Q;if(!((A=this.data)==null?0:(Q=A.creatorThumbnail)==null?0:Q.sources))return{};A={thumbnails:[]};Q={};Q.url=this.data.creatorThumbnail.sources[0].url;A.thumbnails.push(Q);return A}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Q=this.engagementState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Q=this.engagementState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((Q=this.engagementState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.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}}});
cJ.prototype.onTap=cJ.prototype.onTap;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],cJ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],cJ.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cJ.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.engagementStateKey"],selector:hf9}),_.c("design:type",Object)],cJ.prototype,"engagementState",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],cJ.prototype,"thumbnailDetails",null);_.E([_.H("data","engagementState"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cJ.prototype,"isHearted",null);_.E([_.H("data","engagementState"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cJ.prototype,"isEditable",null);
_.E([_.H("data","engagementState"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cJ.prototype,"showCreatorView",null);_.E([_.H("data","engagementState"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cJ.prototype,"showButton",null);_.E([_.H("data","isHearted"),_.c("design:type",String),_.c("design:paramtypes",[])],cJ.prototype,"label",null);_.E([_.H("data","isHearted"),_.c("design:type",Object),_.c("design:paramtypes",[])],cJ.prototype,"heartHoverText",null);
_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cJ.prototype,"onTap",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],cJ);
_.W(cJ,"yt-live-chat-creator-heart-view-model",function(){if(bdp===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Qwx===void 0&&(Qwx=document.createElement("template"));var f=Qwx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bdp=A}A=bdp;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var zW=function(){};
_.O(zW,l7);zW.prototype.JSC$12987_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:$f("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
zW.prototype.getApiPaths=function(){return[]};
zW.prototype.getExtension=function(){};
zW.prototype.JSC$12987_buildRequest=function(){};var fav={},aaY=(fav.GET_DATASYNC_IDS=qj(zW),fav);var TVL,dRp,F$Y,Ywx,wu,pSj,AON,BVW,GaW;TVL="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");dRp=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.s4=function(A,Q,b,f,a,T,G,p,P){this.endpointMap=A;this.networkManager=Q;this.authService=b;this.responseProcessorMap=f;this.innertubeResponseStore=a;this.contextProcessors=T;this.asyncContextProcessors=G;this.localInnertubeRouter=p;this.requestSequencer=P;this.inflightRequests=new Map;A.signalEndpointMap||(A.signalEndpointMap={});A.signalEndpointMap=Object.assign({},aaY,A.signalEndpointMap)};
F$Y=function(A,Q,b,f,a,T,G,p,P){if(_.s4.instance!==void 0){if(f=_.s4.instance,A=[A!==f.endpointMap,Q!==f.networkManager,b!==f.authService,a!==f.innertubeResponseStore,T!==f.contextProcessors,G!==f.asyncContextProcessors,p!==f.localInnertubeRouter],A.some(function(U){return U}))throw new _.IO("InnerTubeTransportService is already initialized",A);
}else _.s4.instance=new _.s4(A,Q,b,f,a,T,G,p,P)};
_.Ay=function(A,Q,b){var f=f===void 0?QNy:f;var a=AON(A,Q);return a?new _.M3(function(T,G){var p,P,U,L,M;return _.B(function(l){switch(l.nextAddress){case 1:return l.yield(a,2);case 2:p=l.yieldResult;P=p.JSC$12987_getRequest(Q,b,f);if(!P){G(new _.IO("Error: Failed to build request for command.",Q));l.jumpTo(0);break}yK(P.input);L=((U=P.requestShell)==null?void 0:U.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){M=GaW(P.config,L);l.jumpTo(4);break}return l.yield(BVW(P.config,L),5);case 5:M=
l.yieldResult;case 4:T(pSj(A,P,M)),_.Oi(l)}})}):_.gF(new _.IO("Error: No request builder found for command.",Q))};
Ywx=function(A,Q,b,f){var a=a===void 0?QNy:a;var T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y;return _.B(function(a9){switch(a9.nextAddress){case 1:T=Lq9(Q,A.endpointMap);if(!T)throw new _.IO("Error: No streaming request builder found for command",Q);G=T.JSC$12987_getRequest(Q,b,a);if(!G)throw new _.IO("Failed to build YtRequest for streaming Command",Q);if((p=A.localInnertubeRouter)==null||!p.shouldPreferLocalResponse(G.input,G.innerTubeRequest)){a9.jumpTo(2);break}return a9.yield(A.localInnertubeRouter.localInnertubeResponse(G.input,
G.innerTubeRequest),3);case 3:return P=a9.yieldResult,U={},P.playerResponse&&(wu(A,P.playerResponse,G),U.player=P.playerResponse,(L=f)==null||L(U,P)),P.watchNextResponse&&(wu(A,P.watchNextResponse,G),U.content=P.watchNextResponse,(M=f)==null||M(U,P)),a9.return(U);case 2:J=((l=G.requestShell)==null?void 0:l.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){n=GaW(G.config,J);a9.jumpTo(4);break}return a9.yield(BVW(G.config,J),5);case 5:n=a9.yieldResult;case 4:return e=(g=(t=G.requestShell)==
null?void 0:t.headers)!=null?g:{},G.requestShell=Object.assign({},G.requestShell,{headers:Object.assign({},e,n)}),x=Object.assign({},G.requestShell),D=JSON.stringify(G.innerTubeRequest),G.requestShell.method==="POST"&&(x=Object.assign({},x,{body:D})),w=function(pF,Ub){wu(A,Ub.playerResponse||Ub.watchNextResponse||Ub.reelItemWatchResponse||Ub.reelWatchSequenceResponse,G);f==null||f(pF,Ub)},u={},a9.yield(PbW(A.networkManager,G.input,x,w),6);
case 6:return u=a9.yieldResult,((y=G.config)==null?0:y.responseTick)&&_.hQ(G.config.responseTick),a9.return(u)}})};
_.wl=function(A,Q,b,f,a){a=a===void 0?{authStrategy:{identity:QNy}}:a;var T=T===void 0?!0:T;var G=function(){};
G=B7X(F6i(b));Q.context||(Q.context=_.OaF(f,T));return new _.M3(function(p){var P,U,L,M,l;return _.B(function(J){if(J.nextAddress==1)return P=D$W(b),U=_.Dy(P),A.authService.syncHeaders?(L=GaW(a,U),J.jumpTo(2)):J.yield(BVW(a,U),3);J.nextAddress!=2&&(L=J.yieldResult);M=$$C(D$W(b));l={input:M,requestShell:$f(M),innerTubeRequest:Q,config:a};p(pSj(A,l,L,G));_.Oi(J)})})};
wu=function(A,Q,b){var f;if(Q&&!(Q==null?0:(f=Q.sequenceMetaData)==null?0:f.skipProcessing)&&A.responseProcessorMap){f=_.F(TVL);for(var a=f.next();!a.done;a=f.next())a=a.value,A.responseProcessorMap[a]&&A.responseProcessorMap[a].handleResponse(Q,b)}};
pSj=function(A,Q,b,f){f=f===void 0?function(){}:f;
var a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y,a9,pF,Ub,Ob,I9,iy,wW,h4,SW,r9,PM,Nf,L$,UL,HM,Ks,Y1,dW,bY,OL,iO;return _.B(function(Jv){switch(Jv.nextAddress){case 1:G=(a=Q.config)==null?void 0:(T=a.storeStrategy)==null?void 0:T.storeKey;if(!(G&&A.innertubeResponseStore&&A.innertubeResponseStore.has(G))||((p=Q.config)==null?0:(P=p.storeStrategy)==null?0:P.disableCache)){Jv.jumpTo(2);break}return Jv.yield(A.innertubeResponseStore.get(G),3);case 3:if((U=Jv.yieldResult)&&!U.isExpired())return Jv.return(Promise.resolve(_.Fw(U)));
case 2:if(!((L=Q)==null?0:(M=L.innerTubeRequest)==null?0:M.context)){Jv.jumpTo(4);break}l=Q.innerTubeRequest.context;if(!(A.asyncContextProcessors&&A.asyncContextProcessors.length>0)){Jv.jumpTo(5);break}J=[];n=_.F(A.asyncContextProcessors);for(t=n.next();!t.done;t=n.next())g=t.value,e=g.processContext(Q),e.wrappedPromise_&&J.push(e.wrappedPromise_);if(!(J.length>0)){Jv.jumpTo(5);break}return Jv.yield(Promise.all(J),5);case 5:x=_.F(A.contextProcessors||[]),D=x.next();case 8:if(D.done){Jv.jumpTo(4);
break}w=D.value;return Jv.yield(w.processContext(l),9);case 9:D=x.next();Jv.jumpTo(8);break;case 4:if((u=A.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(Q.input,Q.innerTubeRequest)){Jv.jumpTo(12);break}return Jv.yield(A.localInnertubeRouter.localInnertubeResponse(Q.input,Q.innerTubeRequest),13);case 13:return y=Jv.yieldResult,wu(A,y,Q),Jv.return(y);case 12:return(Ub=(pF=Q.config)==null?void 0:pF.requestKey)&&A.inflightRequests.has(Ub)?a9=A.inflightRequests.get(Ub):(Ob=JSON.stringify(Q.innerTubeRequest),
wW=(iy=(I9=Q.requestShell)==null?void 0:I9.headers)!=null?iy:{},Q.requestShell=Object.assign({},Q.requestShell,{headers:Object.assign({},wW,b)}),h4=Object.assign({},Q.requestShell),Q.requestShell.method==="POST"&&(h4=Object.assign({},h4,{body:Ob})),((SW=Q.config)==null?0:SW.requestTick)&&_.hQ(Q.config.requestTick),r9=function(){return A.networkManager.fetch(Q.input,h4,Q.config)},a9=A.requestSequencer?XSL(A.requestSequencer,Q,r9):r9(),Ub&&A.inflightRequests.set(Ub,a9)),Jv.yield(a9,14);
case 14:(PM=Jv.yieldResult)&&_.K("web_streaming_player")&&Array.isArray(PM)&&(PM=PM[0].playerResponse);if(PM&&"error"in PM&&((Nf=PM)==null?0:(L$=Nf.error)==null?0:L$.details))for(UL=PM.error.details,HM=_.F(UL),Ks=HM.next();!Ks.done;Ks=HM.next())Y1=Ks.value,(dW=Y1["@type"])&&dRp.indexOf(dW)>-1&&(delete Y1["@type"],PM=Y1);Ub&&A.inflightRequests.has(Ub)&&A.inflightRequests.delete(Ub);((bY=Q.config)==null?0:bY.responseTick)&&_.hQ(Q.config.responseTick);if(PM||(OL=A.localInnertubeRouter)==null||!OL.canProvideFallbackResponse(Q.input,
Q.innerTubeRequest)){Jv.jumpTo(15);break}return Jv.yield(A.localInnertubeRouter.localFallbackInnertubeResponse(Q.input,Q.innerTubeRequest),16);case 16:PM=Jv.yieldResult;case 15:return wu(A,PM,Q),((iO=Q.config)==null?0:iO.processorTick)&&_.hQ(Q.config.processorTick),f(),Jv.return(PM||void 0)}})};
_.m4=function(A,Q){return UyX(Q,A.endpointMap)};
AON=function(A,Q){A=Mm9(Q,A.endpointMap);if(A!==void 0)return Promise.resolve(A)};
BVW=function(A,Q){var b,f,a,T;return _.B(function(G){if(G.nextAddress==1){a=(b=A)==null?void 0:(f=b.authStrategy)==null?void 0:f.sessionIndex;var p=G.yield;var P=_.Ul(JEX({sessionIndex:a}));return p.call(G,P,2)}T=G.yieldResult;return G.return(Promise.resolve(Object.assign({},l2Y(Q),T)))})};
GaW=function(A,Q){var b;A=A==null?void 0:(b=A.authStrategy)==null?void 0:b.sessionIndex;b=JEX({sessionIndex:A});return Object.assign({},l2Y(Q),b)};var SWL,URM,L$1,MwL,laj,K$p,VwN,OdK,yf,nnK,kav,Jnj,Ia1;SWL=0;URM=/tone[1-5]/;L$1=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");MwL="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
laj=Number.MAX_SAFE_INTEGER;K$p=RegExp("\ufe0f","g");_.uz=function(A){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;A&&_.id$(this,A)};
_.id$=function(A,Q){try{_.MQ(Q,{context:A,onSuccess:function(f,a){Array.isArray(a)?A.load(a):(f=new _.IO("Emoji manager JSON response was not an array!",{response:a}),_.en(f))},
onError:function(f){f=new _.IO("Failed to retrieve emoji manager initial JSON data!",{url:Q,statusCode:_.Pr(f).toString()});_.Wv(f)}})}catch(f){var b=new _.IO("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:Q});
_.Wv(b)}};
_.uz.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.uz.prototype.load=function(A,Q){if(Q)if(A.length)A=A.concat(Q.emojis);else{this.emojis=Q.emojis;this.emojiMap=Q.emojiMap;this.emojiShortcutMap=Q.emojiShortcutMap;this.emojiShortcutCharMap=Jnj(Q);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=Q.emojiRegex;return}this.emojis=[].concat(_.ri(new Set(this.emojis.concat(A))));this.hasInitializedShortcutCharMap=!1;A=Array(this.emojis.length);for(Q=0;Q<this.emojis.length;Q++){var b=this.emojis[Q];if(b.emojiId){this.emojiMap[b.emojiId]=b;this.emojiMap[b.emojiId].index=
Q;for(var f=0;b.shortcuts&&f<b.shortcuts.length;f++)this.emojiShortcutMap[b.shortcuts[f].toLocaleLowerCase()]=b;A[Q]=b.isCustomEmoji&&b.shortcuts?b.shortcuts[0]:b.emojiId}}A.sort(function(a,T){return T.length-a.length});
if(A.length)try{this.emojiRegex=new RegExp(A.join("|").replace("*","\\*"),"gi")}catch(a){this.emojiRegex=/$./}else this.emojiRegex=/$./};
VwN=function(A,Q){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){var f=b.value;if(f.emojiId&&A.emojiMap[f.emojiId]){b=Object.assign({},A.emojiMap[f.emojiId],f);A.emojiMap[f.emojiId]=b;var a=void 0;b.index&&((a=A.emojis[b.index])==null?void 0:a.emojiId)===f.emojiId&&(A.emojis[b.index]=b);f=void 0;if((f=b.shortcuts)==null?0:f.length)for(A.hasInitializedShortcutCharMap=!1,f=_.F(b.shortcuts),a=f.next();!a.done;a=f.next())A.emojiShortcutMap[a.value.toLocaleLowerCase()]=b}}};
OdK=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(_.RR.getInstance(),2);if(f.nextAddress!=3)return(Q=f.yieldResult)?f.yield(Q.get("ytlc-emoji-pref"),3):f.return();(b=f.yieldResult)&&VwN(A,Object.keys(b).map(function(a){return{emojiId:a,stickyPrefId:b[a]}}).filter(function(a){return!!a.emojiId&&!!a.stickyPrefId}));
_.Oi(f)})};
_.Z8=function(A,Q,b){return(A=A.emojiMap[Q])&&(!A.isLocked||b!==void 0&&b)?A:void 0};
yf=function(A,Q,b){b=_.Z8(A,Q,b===void 0?!1:b);var f=Q.match("\u200d");b&&A.skinTone!==0&&(A=(f==null?void 0:f.length)===1?_.Z8(A,Q.replace("\u200d",L$1[A.skinTone]+"\u200d")):_.Z8(A,Q+L$1[A.skinTone]))&&(b=A);return b};
nnK=function(A,Q){var b=A.emojiMap[Q];return(b==null?0:b.stickyPrefId)?A.emojiMap[b.stickyPrefId]:yf(A,Q)};
_.lp=function(A,Q){A=A.emojiShortcutMap[Q.toLocaleLowerCase()];return!A||A.isLocked?null:A};
kav=function(A,Q,b){return Jnj(A,b===void 0?!1:b)[Q]||{}};
Jnj=function(A,Q){Q=Q===void 0?!1:Q;if(!A.hasInitializedShortcutCharMap){A.hasInitializedShortcutCharMap=!0;for(var b=0;b<A.emojis.length;b++){var f=A.emojis[b];if(!(f.isLocked||Q&&f.isCustomEmoji&&f.emojiId&&!A.pickerCustomEmojiIds.includes(f.emojiId)))for(var a=0;f.shortcuts&&a<f.shortcuts.length;a++){var T=f.shortcuts[a];T.startsWith(":_")&&f.isCustomEmoji&&(A.emojiShortcutCharMap[":_"]==null&&(A.emojiShortcutCharMap[":_"]=Object.create(null)),A.emojiShortcutCharMap[":_"][T]=f);if(!(T.length<3||
!f.isCustomEmoji&&URM.test(T))){var G=T.substr(0,3).toLocaleLowerCase();A.emojiShortcutCharMap[G]==null&&(A.emojiShortcutCharMap[G]=Object.create(null));A.emojiShortcutCharMap[G][T]=f}}}}return A.emojiShortcutCharMap};
_.uz.prototype.createEmoji=function(A,Q){Q=Q===void 0?!0:Q;var b=document.createElement("img");A.isCustomEmoji||b.classList.add("small-emoji");b.classList.add("emoji");b.classList.add("yt-formatted-string");b.src=A.image?_.Pz(A.image.thumbnails,this.emojiSize)||"":"";var f=void 0;A.image&&A.image.accessibility&&A.image.accessibility.accessibilityData&&(f=A.image.accessibility.accessibilityData.label);b.alt=f?f:(A.isCustomEmoji&&A.shortcuts?A.shortcuts[0]:A.emojiId)||"";A.isCustomEmoji&&(b.dataset.emojiId=
A.emojiId);_.S1&&(b.setAttribute("contenteditable","false"),b.setAttribute("unselectable","on"));Q&&(A.shortcuts&&A.shortcuts.length&&b.setAttribute("shared-tooltip-text",A.shortcuts[0]),b.id="emoji-"+SWL++);return b};
_.uz.prototype.createDocumentFragment=function(A,Q,b,f){Q=Q===void 0?!1:Q;b=b===void 0?!0:b;f=f===void 0?!1:f;A=A.replace(K$p,"");for(var a=document.createDocumentFragment(),T=0,G,p=0;(G=this.emojiRegex.exec(A))!=null;){var P=_.Z8(this,G[0])||_.lp(this,G[0]);!P||P.isCustomEmoji&&!Q||(P=this.createEmoji(P,b),T!==G.index&&a.appendChild(document.createTextNode(A.substring(T,G.index))),a.appendChild(P),T=G.index+G[0].length,p++)}if(!f||p)return a.appendChild(document.createTextNode(A.substr(T))),a};
Ia1=function(A,Q,b){var f,a,T,G,p,P,U,L,M;return _.B(function(l){if(l.nextAddress==1){if(!Q.emojiId||!A.emojiMap[Q.emojiId])return l.return();f=Object.assign({},A.emojiMap[Q.emojiId],{stickyPrefId:b});A.emojiMap[Q.emojiId]=f;Q.index&&((a=A.emojis[Q.index])==null?void 0:a.emojiId)===Q.emojiId&&(A.emojis[Q.index]=f);if((T=Q.shortcuts)==null?0:T.length)for(A.hasInitializedShortcutCharMap=!1,G=_.F(Q.shortcuts),p=G.next();!p.done;p=G.next())P=p.value,A.emojiShortcutMap[P.toLocaleLowerCase()]=f;return l.yield(_.RR.getInstance(),
2)}if(l.nextAddress!=4)return(U=l.yieldResult)?l.yield(U.get("ytlc-emoji-pref"),4):l.jumpTo(0);M=(L=l.yieldResult)!=null?L:{};M[Q.emojiId]=b;return l.yield(U.set("ytlc-emoji-pref",M,laj),0)})};
_.YZ=new _.uz;var qWW;_.D8={};
qWW={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.K("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:_.K("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 $L(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 A=_.Bj(this.hostElement||this).querySelector("#inline-action-button-container");A&&A.setAttribute("aria-hidden","true");this.menuButton=_.Bj(this.hostElement).querySelector("#menu-button")},
attached:function(){var A=this.menuButton;A&&(A.addEventListener("focusin",_.lN(this,this.onMenuButtonFocus_)),A.addEventListener("focusout",_.lN(this,this.onMenuButtonBlur_)))},
detached:function(){var A=this.menuButton;A&&(A.removeEventListener("focusin",_.lN(this,this.onMenuButtonFocus_)),A.removeEventListener("focusout",_.lN(this,this.onMenuButtonBlur_)))},
identity:_.gW,truthy:function(A){return!!A},
computeTimestampString:function(A){return A?A.timestampText?this.getSimpleString(A.timestampText):this.TIME_FORMATTER.format(new Date(A.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(A){return A},
computeMenuVisible_:function(A,Q){return A||Q},
computeHasInlineActionButtons:function(A){if(!A)return!1;var Q,b;return!((Q=A.inlineActionButtons)==null||!Q.length)||!((b=A.additionalInlineActionButtons)==null||!b.length)},
createDocumentFragmentFromString:function(A){var Q=_.YZ.createDocumentFragment.bind(_.YZ),b;if((b=this.participantsManager)==null||!b.viewerRegex)return Q(A);b=document.createDocumentFragment();for(var f=0,a;(a=this.participantsManager.viewerRegex.exec(A))!=null;){if(a.index>0){var T=":"+a[0]+":";if((_.Z8(_.YZ,T)||_.lp(_.YZ,T))&&A.indexOf(T)===a.index-1)continue}b.appendChild(Q(A.substring(f,a.index)));f=document.createElement("span");f.appendChild(Q(a[0]));f.classList.add("mention");b.appendChild(f);
f=a.index+a[0].length}b.appendChild(Q(A.substring(f)));return b},
createDocumentFragment:function(A){var Q=document.createDocumentFragment();if(A.simpleText)return Q.appendChild(this.createDocumentFragmentFromString(A.simpleText)),Q;if(!A.runs)return Q;for(var b=0;b<A.runs.length;b++){var f=A.runs[b];if(f.emoji)Q.appendChild(_.YZ.createEmoji(f.emoji));else if(f.text)if(f.navigationEndpoint){var a=document.createElement("a");a.classList.add("yt-simple-endpoint");vsY(a,f.navigationEndpoint);_.Bj(a).appendChild(this.createDocumentFragmentFromString(f.text));Q.appendChild(a)}else Q.appendChild(this.createDocumentFragmentFromString(f.text))}return Q},
hasModerationOverlayVisible:function(){var A;return((A=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:A.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(A){A.composedPath().some(function(Q){return(Q=Q instanceof Element?Q:null)?Q.tagName&&(Q.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||Q.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.K("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(A)},
colorFromDecimal:function(A){return $DU(A)},
markAsDeleted:function(A,Q){this.set("data.deletedStateMessage",A);this.set("data.showOriginalContentMessage",Q)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(A){if(this.data.contextMenuEndpoint){var Q=_.fJ().resolve(_.WY),b=this.data.contextMenuEndpoint,f;(f=_.s4.instance)&&_.m4(f,b)?(Q=HdY(Q,b),f=_.wl(f,{},Q)):f=_.Cb$(Q,b);f.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);A&&A.stopPropagation()}},
handleGetContextMenuResponse_:function(A){var Q=_.s4.instance;Q&&_.m4(Q,{liveChatEndpoint:{}})||(A=A.response);A.liveChatItemContextMenuSupportedRenderers&&A.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(A.liveChatItemContextMenuSupportedRenderers.menuRenderer);A.actions&&_.pD(this.hostElement,"yt-live-chat-actions",[A.actions])},
handleGetContextMenuError:function(A){if(A instanceof Error||A instanceof Object||A instanceof String)var Q=A;_.en(new _.IO("Error encountered calling GetLiveChatItemContextMenu",Q))},
showContextMenu_:function(A){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:A}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Bn(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Bn(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.D8.YtLiveChatItemBehavior=[qWW,_.Y3.YtComponentBehavior,_.n3.YtOpenPopupBehavior];_.$Z=function(){};var on9;var twN;var rnL;var jwp;var Nb=function(){var A=_.q.apply(this,arguments)||this;A.active=!1;A.identity=_.gW;return A};
_.O(Nb,_.q);Nb.prototype.dataChanged=function(){this.active=!1};
Nb.prototype.onClick=function(){_.Bn(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Nb.prototype.dataChanged=Nb.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],Nb.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nb.prototype,"active",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Nb.prototype,"dataChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Nb);
_.W(Nb,"yt-live-chat-text-input-field-suggestion",function(){if(jwp===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;rnL===void 0&&(rnL=document.createElement("template"));var f=rnL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);jwp=A}A=jwp;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});_.sn=function(A,Q,b){return CustomEvent.call(this,A,{detail:{value:Q,path:b}})||this};
_.O(_.sn,CustomEvent);_.mD=function(){var A=_.q.apply(this,arguments)||this;A.viewerName=null;A.actionMap={"yt-live-chat-actions":"onChatMessage_"};A.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];A.PARTICIPANT_TIME_USEC_=3E8;return A};
_.O(_.mD,_.q);_.d=_.mD.prototype;_.d.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.d.addParticipant=function(A){var Q=_.qb9(this.participants,A,function(f,a){f=f[Object.keys(f)[0]];a=a[Object.keys(a)[0]];f=String(_.mO(f.authorName)).toLowerCase();a=String(_.mO(a.authorName)).toLowerCase();return f<a?-1:f==a?0:1}.bind(this));
if(Q>=0){var b=this.participants[Q];b[Object.keys(b)[0]].timestampUsec&&this.splice("participants",Q,1,A)}else this.splice("participants",-Q-1,0,A);A=A[Object.keys(A)[0]];Q=_.mO(A.authorName).toLocaleLowerCase();b=Q.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(b)||(this.allParticipantsCharMap_[b]={});this.allParticipantsCharMap_[b][Q]=A};
_.d.getAuthorsFromPrefix=function(A){return this.allParticipantsCharMap_.hasOwnProperty(A)?this.allParticipantsCharMap_[A]:null};
_.d.computeViewerRegex_=function(A){if(!A)return null;A=A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var Q=A.indexOf("@")===0&&_.K("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(Q+A.replace(/ /g,"\\s*")+"|^"+A.replace(/ /g,"\\s*")+"$|^"+A.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+A.replace(/ /g,"\\s*")+"$|(?<=\\s)"+A.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.d.checkForStaleParticipants_=function(){var A=this;this.trimOldParticipants_();this.asyncHandle_&&OfF(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.y1(function(){A.checkForStaleParticipants_()},3E4))};
_.d.onChatMessage_=function(A){var Q=this,b=Date.now()*1E3;A.forEach(function(f){if(f=_.V(f,q1W)){f=f.item;var a=Object.keys(f)[0];Q.SUPPORTED_ITEM_TYPES_.indexOf(a)!=-1&&f[a].timestampUsec>=b-Q.PARTICIPANT_TIME_USEC_&&Q.addParticipant(f)}},this);
this.checkForStaleParticipants_()};
_.d.trimOldParticipants_=function(){for(var A=Date.now()*1E3,Q=this.participants.length-1;Q>=0;Q--){var b=this.participants[Q];b=b[Object.keys(b)[0]];b.timestampUsec&&b.timestampUsec<A-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",Q,1)}};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],_.mD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],_.mD.prototype,"viewerName",void 0);_.E([_.C({computed:"computeViewerRegex_(viewerName)"}),_.c("design:type",Object)],_.mD.prototype,"viewerRegex",void 0);_.E([_.C({value:function(){return[]},
notify:!0}),_.c("design:type",Array)],_.mD.prototype,"participants",void 0);_.E([_.Ec({is:"yt-live-chat-participants-manager",noInjection:!0})],_.mD);var RYL=/.*([:@#].*?)$/,AF=/\u00a0/g,gnM=String.fromCharCode(160),eYx={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"},QU=function(){var A=_.q.apply(this,arguments)||this;A.disabled=!1;A.liveChatRichMessageInput=null;A.messageInput=null;A.isValidWithNoInputText=!1;A.suggestions=[];A.emojiManager=_.YZ;A.inputMethodEditorActive=
!1;A.suggestionIndex=-1;A.JSC$14001_lastSuggestionRange=null;return A};
_.O(QU,_.q);_.d=QU.prototype;_.d.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.d.attached=function(){_.U2&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.d.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.d.dataChanged=function(){if(!this.ignoreColorMapping){var A=!1,Q={},b;for(b in eYx)this.data&&this.data.hasOwnProperty(b)&&(Q[eYx[b]]=this.colorFromDecimal(this.data[b]),A=!0);A&&_.Uc(this.hostElement,Q)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.d.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.d.colorFromDecimal=function(A){A=Math.floor(Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
_.d.preventDrag=function(A){A.dataTransfer&&(A.dataTransfer.dropEffect="none");A.preventDefault()};
_.d.preventResize=function(A){A.returnValue=!1};
_.d.onInputChange=function(){var A=this.characterCount,Q=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&Q&&Q.remove();if(!Q&&this.characterCount>this.maxCharacterLimit){var b=window.getSelection();if(b){var f=b.getRangeAt(0);b.removeAllRanges();b.addRange(f)}}if(b=this.getCurrentRange())f=this.calculateTextBeforeRange(b),this.completeEmojisInRange(b,f,!0)||this.updateSuggestions(b,f);f=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(f);
_.Bn(this.hostElement,"yt-live-chat-message-input-change",f);Q&&this.characterCount===0&&Q.remove();b&&b.commonAncestorContainer.parentElement.id==="input"&&b.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>A):b&&!b.collapsed&&b.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(A=this.input.childNodes.length-1;A>=0;A--)this.input.childNodes[A].nodeName==="BR"&&this.input.childNodes[A].remove()};
_.d.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.d.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var A=this.getCurrentRange();A&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.d.mergeOverflowText=function(A){if(A){var Q=document.createRange();Q.selectNodeContents(A);Q=Q.extractContents();this.input.insertBefore(Q,A)}};
_.d.checkRangeAtEndOfInput=function(){var A=this.getCurrentRange();if(A){var Q=_.Bj(this.hostElement).querySelector("#overflow-text"),b=document.createRange();Q&&Q.previousSibling?Q.previousSibling instanceof HTMLImageElement?b.selectNode(Q.previousSibling):b.selectNodeContents(Q.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?b.selectNode(this.input.lastChild):b.selectNodeContents(this.input.lastChild));b.collapse(!1);return b.isPointInRange(A.startContainer,
A.startOffset)}return!1};
_.d.handleOverflowText=function(A){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var Q=_.Bj(this.hostElement).querySelector("#overflow-text"),b=this.getCurrentRange();this.input.normalize();A=this.checkRangeAtEndOfInput()&&A;this.mergeOverflowText(Q);for(var f,a=0,T=0,G,p=this.input.childNodes,P=0;P<p.length;P++){var U=p[P];U instanceof Text?(T+=U.textContent.length,T>this.maxCharacterLimit&&(f=U,a=this.maxCharacterLimit+U.textContent.length-T)):U instanceof HTMLImageElement&&
(f=void 0,T=U.dataset.emojiId&&((f=this.data)==null?0:f.emojiCharacterCount)?T+this.data.emojiCharacterCount:T+U.alt.length,f=this.input,a=P);if(T>this.maxCharacterLimit&&f){G=document.createRange();G.collapse(!1);Q?(T=this.input.lastChild.previousSibling,T instanceof Text?G.setEnd(this.input.lastChild.previousSibling,T.textContent.length):T instanceof HTMLImageElement&&G.setEnd(this.input,this.input.childNodes.length-1)):G.selectNodeContents(this.input);G.setStart(f,a);break}}G&&(f=!1,b&&(A=G.isPointInRange(b.startContainer,
b.startOffset-1)),Q||(Q=document.createElement("span"),Q.id="overflow-text",Q.textContent="",Q.setAttribute("contenteditable","true"),_.Bj(_.Bj(this.hostElement).querySelector("#input")).appendChild(Q),f=!0),Q&&(b=G.extractContents(),Q.insertBefore(b,Q.firstChild),A&&Q.firstChild&&(b=document.createRange(),f?b.setStartAfter(Q.lastChild):b.setStartAfter(Q.firstChild),b.collapse(!0),Q=window.getSelection(),Q.removeAllRanges(),Q.addRange(b))))}};
_.d.checkForDuplicateSpans=function(){for(var A=0;A<this.input.childNodes.length;A++){var Q=this.input.childNodes[A];if(Q.nodeName==="SPAN"){var b=document.createRange();b.selectNodeContents(Q);b=b.extractContents();this.input.insertBefore(b,Q);Q.remove()}}this.handleOverflowText(!0)};
_.d.getCurrentRange=function(){var A=window.getSelection();return A&&A.rangeCount?A.getRangeAt(0).cloneRange():null};
_.d.getInputRange=function(){var A=this.getCurrentRange();if(A){for(var Q=A.commonAncestorContainer,b=!1,f=_.Bj(this.hostElement).querySelector("#input");Q;){if(Q===f){b=!0;break}Q=Q.parentNode}b||(A=null)}A||(A=this.getRangeAtEnd());return A};
_.d.getRangeAtEnd=function(){var A=document.createRange(),Q=_.Bj(this.hostElement).querySelector("#input").lastChild;!Q||Q.nodeName!=="#text"&&Q.nodeName!=="SPAN"?(A.selectNodeContents(_.Bj(this.hostElement).querySelector("#input")),A.collapse(!1)):Q.nodeName==="#text"?A.setStart(Q,Q.textContent.length):A.setStart(Q,Q.childNodes.length);return A};
_.d.getChatParticipantSuggestions=function(A,Q,b,f){var a=_.K("live_chat_enable_handles_web_text_input_update");if(Q)for(var T in Q)if(T.indexOf(A)===0||a&&T.indexOf(b+A)===0){var G=Q[T],p=_.mO(G.authorName);f.push({suggestion:{author:!0,authorType:b,image:G.authorPhoto,alt:p,text:p}});if(f.length>=64)break}};
_.d.getSuggestions=function(A){var Q=[],b=A.substring(0,3),f=kav(_.YZ,b,!0);if(f)for(var a in f)if(a.toLocaleLowerCase().indexOf(A)===0){var T=f[a];if(T&&T.emojiId){if(T=nnK(_.YZ,T.emojiId)){var G=void 0,p=void 0,P=void 0,U=void 0,L=((G=T.image)==null?0:(p=G.accessibility)==null?0:(P=p.accessibilityData)==null?0:P.label)||T.isCustomEmoji?(U=T.shortcuts)==null?void 0:U[0]:T.emojiId;Q.push({suggestion:{emoji:!0,image:T.image,alt:L,text:a,textToInsertWhenSelected:T.isCustomEmoji?a:L}})}if(Q.length>=
64)break}}if(!this.participantsManager)return null;if(b.indexOf("@")===0||b.indexOf("#")===0)f=b.charAt(0),A=A.substring(1),a=_.K("live_chat_enable_handles_web_text_input_update"),b.indexOf("@")===0&&a&&(a=this.participantsManager.getAuthorsFromPrefix(b.substring(0,2)),this.getChatParticipantSuggestions(A,a,f,Q)),b=b.substring(1),b=this.participantsManager.getAuthorsFromPrefix(b),this.getChatParticipantSuggestions(A,b,f,Q);return Q?Q.sort(function(M,l){return l.suggestion.text<M.suggestion.text?-1:
l.suggestion.text===M.suggestion.text?0:1}):null};
_.d.insertSuggestion=function(A){var Q=_.K("live_chat_enable_handles_web_text_input_update"),b=A.authorType;Q=A.text.indexOf(b)===0&&Q?A.text+gnM:b+A.text+gnM;A.emoji?this.insertTextAtRange(this.JSC$14001_lastSuggestionRange,A.textToInsertWhenSelected||""):A.author&&this.insertTextAtRange(this.JSC$14001_lastSuggestionRange,Q)};
_.d.updateSuggestionsAtCaret=function(){var A=this.getCurrentRange();A&&this.updateSuggestions(A,this.calculateTextBeforeRange(A))};
_.d.offsetStartOfRangeBy=function(A,Q){for(;Q>0;)if(A.startOffset-Q>=0){A.setStart(A.startContainer,A.startOffset-Q);break}else{Q=A.startContainer instanceof HTMLImageElement?Q-A.startContainer.alt.length:Q-A.startOffset;var b=A.startContainer.previousSibling;if(!b){A.setStart(A.startContainer,0);break}if(_.K("live_chat_require_space_for_autocomplete_emoji")){var f=void 0,a=void 0;A.setStart(b,((f=b)==null?void 0:(a=f.textContent)==null?void 0:a.length)||0)}else A.setStart(b,b.childNodes.length||
0)}};
_.d.updateSuggestions=function(A,Q){var b=this;this.JSC$14001_lastSuggestionRange&&(this.JSC$14001_lastSuggestionRange.detach(),this.JSC$14001_lastSuggestionRange=null);if((Q=RYL.exec(Q))&&Q.length&&(Q=Q[Q.length-1].toLocaleLowerCase(),Q.length>2&&(this.offsetStartOfRangeBy(A,Q.length),this.JSC$14001_lastSuggestionRange=A,(A=this.getSuggestions(Q))&&A.length))){this.suggestions=A;_.mL(this,function(){_.Bj(b.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.d.completeEmojisInRange=function(A,Q,b){var f=Q.replace(/[\s\xa0]+$/,"");Q=Q.length-f.length;f=f.split(" ");f=f[f.length-1].trim().toLocaleLowerCase();var a=f.lastIndexOf(":");if(b&&!Q&&a!==f.length-1)return!1;a!==-1&&(b=f.lastIndexOf(":",a-1),b!==-1&&(f=f.substring(b)));if((b=_.lp(_.YZ,f))&&b.emojiId){b=nnK(_.YZ,b.emojiId)||null;this.offsetStartOfRangeBy(A,f.length+Q);var T,G,p,P;f=(((T=b)==null?0:T.isCustomEmoji)?(G=b)==null?void 0:(p=G.shortcuts)==null?void 0:p[0]:(P=b)==null?void 0:P.emojiId)||
"";Q&&(f+=gnM);this.insertTextAtRange(A,f);this.dropdown.opened=!1;return!0}return!1};
_.d.onSuggestion=function(A){this.insertSuggestion(A.detail);this.dropdown.opened=!1};
_.d.onKeyPress=function(A){A.keyCode===13&&(A.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Bn(this.hostElement,"yt-live-chat-send-message"))};
_.d.completeEmojis=function(){var A=document.createRange(),Q=_.Bj(this.hostElement).querySelector("#input").lastChild;Q?A.setStart(Q,Q.childNodes.length):(A.selectNodeContents(_.Bj(this.hostElement).querySelector("#input")),A.collapse(!1));this.completeEmojisInRange(A,this.calculateTextBeforeRange(A),_.K("live_chat_require_space_for_autocomplete_emoji"))};
_.d.maybePreventTextFormatting=function(A){!_.Ke||!A.ctrlKey&&!A.metaKey||A.keyCode!==66&&A.keyCode!==73||(A.stopImmediatePropagation(),A.preventDefault())};
_.d.onKeyDown=function(A){this.maybePreventTextFormatting(A);if(this.dropdown.opened)switch(A.keyCode){case 27:this.dropdown.opened=!1;A.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;A.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.d.onKeyUp=function(A){switch(A.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.S1)this.onInputChange()};
_.d.changeSuggestionIndex=function(A){if(this.dropdown.opened){var Q=_.Bj(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<Q.children.length&&(Q.children[this.suggestionIndex].active=!1);var b=this.suggestions.length;this.suggestionIndex=(A+b)%b;A=Q.children[this.suggestionIndex];A.active=!0;Q.scrollTop=A.offsetTop}};
_.d.onInputPaste=function(A){A.preventDefault();(A=A.clipboardData)&&A.types&&(A=A.getData("text/plain")||"",A=A.replace(/\n/g,""),this.insertText(A));(A=this.getCurrentRange())&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.d.onFocus=function(){this._setFocused(!0)};
_.d.onBlur=function(){this._setFocused(!1)};
_.d.insertText=function(A){this.insertTextAtRange(this.getInputRange(),A)};
_.d.insertTextAtRange=function(A,Q){if(A&&(A.collapsed||A.deleteContents(),Q=_.YZ.createDocumentFragment(Q,!0,!1))){for(var b=_.F((Q==null?void 0:Q.childNodes)||[]),f=b.next();!f.done;f=b.next()){f=f.value;var a=void 0,T=void 0,G=void 0,p=void 0,P=void 0;(G=(a=window)==null?void 0:(T=a.ShadyCSS)==null?void 0:T.ScopingShim)==null||(P=(p=G).scopeNode)==null||P.call(p,f,this.hostElement.localName)}b=Q.lastChild;A.insertNode(Q);this.focused||this.input.focus();if(this.focused){A=A.cloneRange();A.selectNodeContents(b);
A.collapse(!1);if(Q=window.getSelection())Q.removeAllRanges(),Q.addRange(A);A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}A=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(A);_.Bn(this.hostElement,"yt-live-chat-message-input-change",A)}};
_.d.setLiveChatRichMessageInput=function(A){_.Bj(_.Bj(this.hostElement).querySelector("#input")).textContent="";if(A&&A.textSegments){for(var Q=0;Q<A.textSegments.length;Q++){var b=A.textSegments[Q];b.text?_.Bj(_.Bj(this.hostElement).querySelector("#input")).appendChild(_.YZ.createDocumentFragment(b.text,!0,!1)):b.emojiId&&(b=_.Z8(_.YZ,b.emojiId))&&_.Bj(_.Bj(this.hostElement).querySelector("#input")).appendChild(_.YZ.createEmoji(b,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.d.setText=function(A){this.setLiveChatRichMessageInput(A?{textSegments:[{text:A}]}:null)};
_.d.calculateTextBeforeRange=function(A){var Q="",b=A.startContainer;if(b&&b instanceof Text){var f;Q=((f=b.textContent)==null?void 0:f.substring(0,A.startOffset))||"";b=b.previousSibling}for(;b&&b instanceof Text;)Q=b.textContent+Q,b=b.previousSibling;return Q.replace(AF," ")};
_.d.calculateLiveChatRichMessageInput=function(){for(var A=[],Q="",b=_.Bj(_.Bj(this.hostElement).querySelector("#input")).childNodes,f=0;f<b.length;f++){var a=b[f];a instanceof Text?Q+=a.textContent:a instanceof HTMLImageElement&&(a.dataset.emojiId?(Q&&(A.push({text:Q.replace(AF," ")}),Q=""),A.push({emojiId:a.dataset.emojiId})):Q+=a.alt)}Q&&A.push({text:Q.replace(AF," ")});if(b=_.Bj(this.hostElement).querySelector("#overflow-text")){Q="";b=b.childNodes;for(f=0;f<b.length;f++)a=b[f],a instanceof Text?
Q+=a.textContent:a instanceof HTMLImageElement&&(a.dataset.emojiId?(Q&&(A.push({text:Q.replace(AF," ")}),Q=""),A.push({emojiId:a.dataset.emojiId})):Q+=a.alt);Q&&A.push({text:Q.replace(AF," ")})}return{textSegments:A}};
_.d.computeCharacterCount=function(A){if(!A||!A.textSegments)return 0;for(var Q=0,b=0;b<A.textSegments.length;b++){var f=A.textSegments[b];if(f.text)Q+=f.text.length;else if(f.emojiId){var a=void 0;if((a=this.data)==null?0:a.emojiCharacterCount)Q+=this.data.emojiCharacterCount;else{var T=a=void 0,G=void 0;Q+=((T=_.Z8(_.YZ,(a=f)==null?void 0:a.emojiId))==null?void 0:(G=T.shortcuts)==null?void 0:G[0].length)||0}}}return Q};
_.d.characterCountChanged=function(){_.Bn(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.d.focusedChanged=function(){this.hostElement.dispatchEvent(new _.sn("focused-changed",this.focused))};
_.d.focus=function(){this.setFocus(!1)};
_.d.focusAtEnd=function(){this.setFocus(!0)};
_.d.setFocus=function(A){A=A?this.getRangeAtEnd():this.getInputRange();_.Bj(this.hostElement).querySelector("#input").focus();var Q=window.getSelection();Q&&(Q.removeAllRanges(),Q.addRange(A))};
_.d.insertEmoji=function(A){var Q,b=((A==null?0:A.isCustomEmoji)?(Q=A.shortcuts)==null?void 0:Q[0]:A==null?void 0:A.emojiId)||"";this.insertText(b)};
_.d.computeText=function(A){if(!A||!A.textSegments)return"";for(var Q="",b=0;b<A.textSegments.length;b++){var f=A.textSegments[b];if(f.text)Q+=f.text;else if(f.emojiId){var a=void 0,T=void 0,G=void 0;Q+=((T=_.Z8(_.YZ,(a=f)==null?void 0:a.emojiId))==null?void 0:(G=T.shortcuts)==null?void 0:G[0])||""}}return Q};
_.d.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Qr.Object.defineProperties(QU.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
QU.prototype.focusedChanged=QU.prototype.focusedChanged;QU.prototype.characterCountChanged=QU.prototype.characterCountChanged;QU.prototype.onSuggestion=QU.prototype.onSuggestion;QU.prototype.onMessageSet=QU.prototype.onMessageSet;QU.prototype.dataChanged=QU.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],QU.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],QU.prototype,"disabled",void 0);_.E([_.H("disabled"),_.c("design:type",Number),_.c("design:paramtypes",[])],QU.prototype,"inputTabIndex",null);_.E([_.H("data.maxCharacterLimit"),_.C({readOnly:!0,notify:!0}),_.c("design:type",Number),_.c("design:paramtypes",[])],QU.prototype,"maxCharacterLimit",null);
_.E([_.H("liveChatRichMessageInput"),_.C({readOnly:!0,notify:!0}),_.c("design:type",Number),_.c("design:paramtypes",[])],QU.prototype,"characterCount",null);_.E([_.H("maxCharacterLimit, characterCount"),_.C({readOnly:!0,notify:!0}),_.c("design:type",Number),_.c("design:paramtypes",[])],QU.prototype,"remainingCharacterCount",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],QU.prototype,"isChatMessageInput",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],QU.prototype,"inputExpanded",void 0);_.E([_.C({readOnly:!0,notify:!0}),_.c("design:type",Object)],QU.prototype,"liveChatRichMessageInput",void 0);_.E([_.C(),_.c("design:type",Object)],QU.prototype,"messageInput",void 0);_.E([_.C(),_.c("design:type",Boolean)],QU.prototype,"ignoreColorMapping",void 0);_.E([_.H("characterCount"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],QU.prototype,"hasText",null);
_.E([_.C(),_.c("design:type",Object)],QU.prototype,"isValidWithNoInputText",void 0);_.E([_.H("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.C(),_.c("design:type",Boolean),_.c("design:paramtypes",[])],QU.prototype,"isInputValid",null);_.E([_.C({readOnly:!0,value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],QU.prototype,"focused",void 0);_.E([_.C(),_.c("design:type",Array)],QU.prototype,"suggestions",void 0);
_.E([_.C(),_.c("design:type",_.uz)],QU.prototype,"emojiManager",void 0);_.E([_.C(),_.c("design:type",_.mD)],QU.prototype,"participantsManager",void 0);_.E([_.C(),_.c("design:type",Boolean)],QU.prototype,"noUnderline",void 0);_.E([_.C(),_.c("design:type",Object)],QU.prototype,"inputMethodEditorActive",void 0);_.E([_.V1("#dropdown"),_.c("design:type",Object)],QU.prototype,"dropdown",void 0);_.E([_.V1("#input"),_.c("design:type",HTMLElement)],QU.prototype,"input",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QU.prototype,"dataChanged",null);_.E([_.iN("messageInput"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QU.prototype,"onMessageSet",null);_.E([_.Kc("yt-live-chat-select-suggestion"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],QU.prototype,"onSuggestion",null);
_.E([_.iN("characterCount"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QU.prototype,"characterCountChanged",null);_.E([_.iN("focused"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QU.prototype,"focusedChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],QU);
_.hYM=_.W(QU,"yt-live-chat-text-input-field-renderer",function(){if(twN===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;on9===void 0&&(on9=document.createElement("template"));var f=on9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);twN=A}A=twN;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var bF=function(){var A=_.q.apply(this,arguments)||this;A.buttonOverrides={style:"overlay",type:"filled"};A.allowAnimations=!1;A.modern=_.K("web_button_rework_with_live");A.noPadding=!1;return A};
_.O(bF,_.q);_.d=bF.prototype;_.d.shouldSupportInlineActionButtons=function(){return!0};
_.d.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"}}}}};
_.d.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.d.attached=function(){this.allowAnimations=!1};
_.d.dataChanged=function(){if(this.data){var A={"--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)};_.Uc(this.hostElement,A);this.allowAnimations=!0}};
_.d.messageChanged=function(){var A,Q=(A=this.data)==null?void 0:A.message;A=_.Bj(_.Bj(this.hostElement).querySelector("#message"));A.textContent="";Q&&A.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Q))};
_.d.computeShowOnlyHeader=function(A,Q){return!A||A.pdgLikeButton||A.replyButton||A.buyFlowButton?!1:this.isEmpty(A,Q)&&!A.footer};
_.d.computeShowFooterDivider=function(A,Q,b){return A?!!A.footer&&!this.isEmpty(A,Q)&&!b:!1};
_.d.computeIsUserEditable=function(A){return!!A.inputField};
_.d.computeHasHeartButton=function(A){return(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.d.computeNoveltyImage=function(A){if(A.headerOverlayImage&&A.headerOverlayImage.thumbnails.length){var Q=A.headerOverlayImage.thumbnails[0],b,f;if((b=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(f=b.loggingDirectives)==null?0:f.trackingParams){var a,T;vcJ((a=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(T=a.loggingDirectives)==null?void 0:T.trackingParams)}return Q.width||0}return 0};
_.d.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.d.inputFocus=function(){var A=_.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");A&&A.focus()};
_.d.inputInsertEmoji=function(A){var Q=_.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Q&&Q.insertEmoji(A)};
_.d.inputMessage=function(){var A=_.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),Q;return A&&((Q=this.data)==null?0:Q.inputField)?(A.completeEmojis(),_.Dc(A.liveChatRichMessageInput)):null};
_.d.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.d.isEmpty=function(A,Q){return A?A.empty||!(A.message||A.inputField||Q):!0};
_.d.onLowerBuyButtonClick=function(){var A,Q=_.V((A=this.data)==null?void 0:A.buyButton,_.wE);Q&&Q.trackingParams&&!she(Q.command)&&(A=_.t8(Q.trackingParams))&&(Q=_.WR())&&_.$_(Q,A)};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.Qr.Object.defineProperties(bF.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
bF.prototype.isDeletedChanged=bF.prototype.isDeletedChanged;bF.prototype.messageChanged=bF.prototype.messageChanged;bF.prototype.dataChanged=bF.prototype.dataChanged;_.E([_.I(TaY.YtPdgLiveChatItemBehavior),_.c("design:type",Object)],bF.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],bF.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],bF.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bF.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:hf9}),_.c("design:type",Object)],bF.prototype,"engagementState",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.c("design:type",Boolean)],bF.prototype,"isUserEditable",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.c("design:type",Boolean)],bF.prototype,"hasHeartButton",void 0);_.E([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.c("design:type",Boolean)],bF.prototype,"showOnlyHeader",void 0);
_.E([_.C({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.c("design:type",Boolean)],bF.prototype,"showFooterDivider",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Object)],bF.prototype,"allowAnimations",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],bF.prototype,"dashboardMoneyFeed",void 0);_.E([_.C({computed:"computeNoveltyImage(data)"}),_.c("design:type",Number)],bF.prototype,"noveltyWidth",void 0);
_.E([_.C({computed:"computeAuthorPhotoSize(data)"}),_.c("design:type",Number)],bF.prototype,"authorPhotoSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bF.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bF.prototype,"noPadding",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bF.prototype,"dataChanged",null);
_.E([_.iN("data.message"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bF.prototype,"messageChanged",null);_.E([_.H("data","dashboardMoneyFeed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bF.prototype,"hideLowerBumper",null);_.E([_.iN("isDeleted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bF.prototype,"isDeletedChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],bF);
_.W(bF,"yt-live-chat-paid-message-renderer",function(){if(y0L===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;ZCL===void 0&&(ZCL=document.createElement("template"));var f=ZCL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);y0L=A}A=y0L;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var W$p;var vnN;var fV=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.O(fV,_.nc);fV.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.vG("openPopupConfig")};
_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],fV.prototype,"ytOpenPopupBehavior",void 0);_.E([_.kl()],fV);_.aE=[_.n3.YtOpenPopupBehavior,fV.prototype];var En1;var bJ=[_.nT,GsW,_.xj,_.kr,_.sv,_.oHM,_.CT,_.x8p,_.WZ,Wqy];_.K("web_watch_get_updated_metadata_response_processing")&&bJ.push(_.Tlv);_.K("web_continuation_response_processing")&&bJ.push(_.Yo);var lTY=new _.TS("RESPONSE_RECEIVED_COMMANDS"),Ry4=new _.TS("RESPONSE_RECEIVED_COMMANDS");var HRW="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),I2e=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],ktA=["GET_UNSEEN_NOTIFICATION_COUNT"];var Tv=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;A.serviceEndpointHandlers=[];return A};
_.O(Tv,_.nc);Tv.prototype.created=function(){var A=this;this.endpointHandlerActionMap={"yt-service-request":function(Q,b,f,a){var T;return nWC(A.hostElement,Q,b,f,a,A.serviceEndpointHandlers,(T=A.onEntitiesUpdated)==null?void 0:T.bind(A))}}};
Tv.prototype.attached=function(){_.Dl(_.Yk.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Tv.prototype.detached=function(){_.$k(_.Yk.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.E([_.kl()],Tv);_.xRj=[Tv.prototype];var cn1,zYv=function(){return cn1!==void 0?cn1:cn1=document.createElement("template")};
document.head.appendChild(zYv().content);var wSW;var uQL=document.head,Zd9=uQL.appendChild,yn9;if(wSW===void 0){var YWy=document.createElement("template");_.k(YWy,"\x3c!--css-build:shady--\x3e");YWy.content.insertBefore(zYv().content.cloneNode(!0),YWy.content.firstChild);wSW=YWy}yn9=wSW;Zd9.call(uQL,yn9.content);var DRM,$Rv=function(){return DRM!==void 0?DRM:DRM=document.createElement("template")};
document.head.appendChild($Rv().content);var NVK;var swx=document.head,mR9=swx.appendChild,ABr;if(NVK===void 0){var Q59=document.createElement("template");_.k(Q59,"\x3c!--css-build:shady--\x3e");Q59.content.insertBefore($Rv().content.cloneNode(!0),Q59.content.firstChild);NVK=Q59}ABr=NVK;mR9.call(swx,ABr.content);var bM9;_.xo("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.xo("sharingRendererButtons","buttonRenderer","ytd-button-renderer");bM9=_.K("web_button_rework")&&_.Ep("BUTTON_REWORK")||_.K("web_button_rework_with_live");_.dS=function(){var A=_.q.apply(this,arguments)||this;A.isPressed=!1;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return A};
_.O(_.dS,_.q);_.d=_.dS.prototype;_.d.created=function(){this.showTooltips=!0};
_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.onHintIdChanged=function(){var A=this,Q,b,f=(Q=this.ytButtonBehavior.data)==null?void 0:(b=Q.hint)==null?void 0:b.hintRenderer;if(f&&f.hintId){Q=_.Pn(this.hostElement,"yt-get-opened-popups-action");Q=(Q&&Q.length===1?Q[0]:[]).length>0;var a=null;f.hintId!=="sponsor-pre-purchase"||Q?f.hintId.startsWith("sponsor-post-purchase")&&!Q?a=iBj("membership-manage"):f.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!Q&&(a=iBj("membership-freebie-join")):a=iBj("membership-join");a&&_.j7.addLowPriorityJob(function(){for(var T=
_.F(a),G=T.next();!G.done;G=T.next())A.ytComponentBehavior.resolveCommand(G.value)})}};
_.d.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.d.onYtNavigate=function(A){var Q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);Q&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Q))};
_.d.onYtServiceRequestSent=function(A,Q){this.handleServiceRequestActions(Q);_.Bn(this.hostElement,"yt-service-request-sent-button-renderer")};
_.d.onServiceRequestCompleted=function(A,Q){this.handleServiceRequestActions(Q);_.Bn(this.hostElement,"yt-service-request-completed-button-renderer")};
_.d.updateButton=function(A){var Q;if(A=(Q=_.V(A,mYL))==null?void 0:Q.updatedButton)this.ytButtonBehavior.data=_.V(A,_.wE)};
_.d.handleUpdateButtonAction=function(A){var Q=this.ytButtonBehavior.data;Q.targetId&&A.updateButtonAction.targetId&&Q.targetId===A.updateButtonAction.targetId&&this.updateButton(A)};
_.d.handleServiceRequestActions=function(A){if(A=A.actions)for(var Q=0;Q<A.length;Q++)this.updateButton(A[Q])};
_.Qr.Object.defineProperties(_.dS,{template:{configurable:!0,enumerable:!0,get:function(){if(En1===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);En1=A}A=En1;return A}}});
_.dS.prototype.onServiceRequestCompleted=_.dS.prototype.onServiceRequestCompleted;_.dS.prototype.onYtServiceRequestSent=_.dS.prototype.onYtServiceRequestSent;_.dS.prototype.onYtNavigate=_.dS.prototype.onYtNavigate;_.dS.prototype.onPressedStateChanged=_.dS.prototype.onPressedStateChanged;_.dS.prototype.onHintIdChanged=_.dS.prototype.onHintIdChanged;_.E([_.C(),_.c("design:type",Object)],_.dS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],_.dS.prototype,"isPressed",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],_.dS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Plr.YtButtonBehavior),_.c("design:type",Object)],_.dS.prototype,"ytButtonBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],_.dS.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],_.dS.prototype,"ytComponentBehavior",void 0);
_.E([_.I(qb.YtRenderButtonBehavior),_.c("design:type",Object)],_.dS.prototype,"ytRenderButtonBehavior",void 0);_.E([_.iN("data.hint.hintRenderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],_.dS.prototype,"onHintIdChanged",null);_.E([_.iN("isPressed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],_.dS.prototype,"onPressedStateChanged",null);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],_.dS.prototype,"onYtNavigate",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],_.dS.prototype,"onYtServiceRequestSent",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],_.dS.prototype,"onServiceRequestCompleted",null);_.E([_.h({is:"ytd-button-renderer",disableElementRegistration:bM9})],_.dS);var FJ=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.O(FJ,_.q);_.d=FJ.prototype;_.d.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"}}}}};
_.d.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.d.dataChanged=function(){if(this.data&&this.data.sticker){var A=_.Pz(this.data.sticker.thumbnails,this.stickerWidth);A||_.xy9(A).thenCatch(function(){_.Wv(new _.IO("Failed to load Super Sticker with url",A))})}};
_.d.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)?32:40};
_.d.computeIsV2Style=function(A){return(A==null?0:A.isV2Style)?!0:!1};
_.d.onStickerLoaded=function(A){var Q,b,f;(Q=_.Au(A))==null||(b=Q.parentNode)==null||(f=b.classList)==null||f.add("sticker-loaded")};
_.d.computeNoveltyImageWidth=function(A){var Q,b;if(A==null?0:(Q=A.headerOverlayImage)==null?0:(b=Q.thumbnails)==null?0:b.length){Q=A.headerOverlayImage.thumbnails[0];var f,a;if((f=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(a=f.loggingDirectives)==null?0:a.trackingParams){var T,G;vcJ((T=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(G=T.loggingDirectives)==null?void 0:G.trackingParams)}return Q.width||0}return 0};
_.d.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.d.updateStickerStyles=function(){var A=this.data;A&&(A={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.authorNameTextColor)},
_.Uc(this.hostElement,A))};
_.d.onBuyButtonClick=function(){var A,Q=_.V((A=this.data)==null?void 0:A.buyButton,_.wE);Q&&!she(Q.command)&&this.ytRendererBehavior.logExplicitClick(Q)};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.Qr.Object.defineProperties(FJ.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 A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
FJ.prototype.updateStickerStyles=FJ.prototype.updateStickerStyles;FJ.prototype.isDeletedChanged=FJ.prototype.isDeletedChanged;FJ.prototype.onStickerLoaded=FJ.prototype.onStickerLoaded;FJ.prototype.dataChanged=FJ.prototype.dataChanged;_.E([_.I(TaY.YtPdgLiveChatItemBehavior),_.c("design:type",Object)],FJ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],FJ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],FJ.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],FJ.prototype,"data",void 0);
_.E([_.C({computed:"computeAuthorPhotoSize(data)"}),_.c("design:type",Number)],FJ.prototype,"authorPhotoSize",void 0);_.E([_.C(),_.c("design:type",Boolean)],FJ.prototype,"isDeleted",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],FJ.prototype,"dashboardMoneyFeed",void 0);_.E([_.C({computed:"computeNoveltyImageWidth(data)"}),_.c("design:type",Number)],FJ.prototype,"noveltyWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],FJ.prototype,"modern",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.c("design:type",Boolean)],FJ.prototype,"isV2Style",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FJ.prototype,"dataChanged",null);_.E([_.Kc("yt-img-shadow-loaded"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],FJ.prototype,"onStickerLoaded",null);
_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],FJ.prototype,"stickerWidth",null);_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],FJ.prototype,"stickerHeight",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],FJ.prototype,"hasHeartButton",null);_.E([_.H("data","dashboardMoneyFeed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],FJ.prototype,"hideLowerBumper",null);
_.E([_.iN("isDeleted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FJ.prototype,"isDeletedChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FJ.prototype,"updateStickerStyles",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],FJ);
_.W(FJ,"yt-live-chat-paid-sticker-renderer",function(){if(vnN===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;W$p===void 0&&(W$p=document.createElement("template"));var f=W$p;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);vnN=A}A=vnN;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var fEj;var aEL;var TXN,d4L=function(){return TXN!==void 0?TXN:TXN=document.createElement("template")};
document.head.appendChild(d4L().content);var FvY,G8L=function(){return FvY!==void 0?FvY:FvY=document.createElement("template")};
document.head.appendChild(G8L().content);var BX$;var pWN,Pky=function(){return pWN!==void 0?pWN:pWN=document.createElement("template")};
document.head.appendChild(Pky().content);var XWp;var Sg1=document.head,U4Y=Sg1.appendChild,LvN;if(XWp===void 0){var MCr=document.createElement("template");_.k(MCr,"\x3c!--css-build:shady--\x3e");MCr.content.insertBefore(Pky().content.cloneNode(!0),MCr.content.firstChild);XWp=MCr}LvN=XWp;U4Y.call(Sg1,LvN.content);var lEr=document.head,KvY=lEr.appendChild,iMY;if(BX$===void 0){var Gv=document.createElement("template");_.k(Gv,"\x3c!--css-build:shady--\x3e");Gv.content.insertBefore(G8L().content.cloneNode(!0),Gv.content.firstChild);Gv.content.insertBefore(d4L().content.cloneNode(!0),Gv.content.firstChild);BX$=Gv}iMY=BX$;KvY.call(lEr,iMY.content);var Bb=function(){var A=_.nc.apply(this,arguments)||this;A.focusedIndex=0;A.verticalOffset=0;A.verticalAlign="top";A.dynamicAlign=!0;return A};
_.O(Bb,_.nc);Bb.prototype.emojiUrl=function(A){A=_.Z8(this.emojiManager,A);if(!A)return"";var Q;A=(Q=A.image)==null?void 0:Q.thumbnails;return _.Pz(A,24)||""};
var JB$=function(A){var Q;A.emojiVariants&&(Q=A.data)!=null&&Q.target&&_.mL(A,function(){A.set("verticalOffset",-1*A.hostElement.clientHeight);var b=_.Bj(A.hostElement).querySelector("img");b&&b.focus()})};
_.d=Bb.prototype;_.d.onKeyboardEnter=function(){};
_.d.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.d.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.d.onKeyDown=function(A){switch(A.keyCode){case 13:this.onKeyboardEnter();A.preventDefault();break;case 40:this.changeFocus(1);A.preventDefault();break;case 38:this.changeFocus(-1);A.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.d.onYtEmojiSelect=function(A){var Q=this,b,f,a,T,G,p,P,U;return _.B(function(L){if(L.nextAddress==1)return f=(b=Q.data)==null?void 0:b.emoji,G=((a=f)==null?void 0:a.stickyPrefId)||((T=f)==null?void 0:T.emojiId),P=(p=A.detail)==null?void 0:p.emojiId,G&&P&&G!==P?L.yield((U=Q.emojiManager)==null?void 0:Ia1(U,f,P),2):L.return();_.pD(Q.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[f,P]);_.Oi(L)})};
_.d.changeFocus=function(A){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+A+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(A=_.Bj(this.hostElement).querySelector("#variants"))&&A.children[this.focusedIndex].focus())};
_.Qr.Object.defineProperties(Bb.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Bb.prototype.onYtEmojiSelect=Bb.prototype.onYtEmojiSelect;Bb.prototype.onKeyDown=Bb.prototype.onKeyDown;Bb.prototype.onEmojiVariantsChanged=Bb.prototype.onEmojiVariantsChanged;Bb.prototype.onVerticalOffsetOrPositionTargetChanged=Bb.prototype.onVerticalOffsetOrPositionTargetChanged;_.E([_.I(_.$t),_.c("design:type",Object)],Bb.prototype,"ironOverlayBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Bb.prototype,"data",void 0);_.E([_.C(),_.c("design:type",_.uz)],Bb.prototype,"emojiManager",void 0);
_.E([_.C(),_.c("design:type",Object)],Bb.prototype,"emojiVariants",void 0);_.E([_.C(),_.c("design:type",Object)],Bb.prototype,"focusedIndex",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Bb.prototype,"positionTarget",null);_.E([_.C({reflectToAttribute:!0}),_.H("verticalOffset","data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Bb.prototype,"isPositioned",null);_.E([_.C(),_.c("design:type",Object)],Bb.prototype,"verticalOffset",void 0);
_.E([_.C(),_.c("design:type",Object)],Bb.prototype,"verticalAlign",void 0);_.E([_.C(),_.c("design:type",Object)],Bb.prototype,"dynamicAlign",void 0);_.E([_.iN("verticalOffset","positionTarget"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Bb.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.E([_.iN("emojiVariants"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Bb.prototype,"onEmojiVariantsChanged",null);
_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent]),_.c("design:returntype")],Bb.prototype,"onKeyDown",null);_.E([_.Kc("yt-emoji-select"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype",Promise)],Bb.prototype,"onYtEmojiSelect",null);_.E([_.kl()],Bb);var VC1=[Bb.prototype];var OMp;var ncp;var k8x=/medium-light|medium-dark|light|medium|dark/,IEN=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,HM$=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),pV=function(){var A=_.q.apply(this,arguments)||this;A.userSelection={left:null,right:null};A.scrollAction="lock";A.isEmojiDraftInProgress=!1;return A};
_.O(pV,_.q);_.d=pV.prototype;_.d.onClick=function(A){A=_.Au(A);A instanceof HTMLImageElement&&this.selectOrUpdateEmoji(A)};
_.d.selectOrUpdateEmoji=function(A){var Q=A.getAttribute("selection");Q&&(Q==="default"?_.Bn(this.hostElement,"yt-emoji-select",_.Z8(this.emojiManager,A.id)):Q==="left"?this.userSelection=Object.assign({},this.userSelection,{left:A.src}):Q==="right"?this.userSelection=Object.assign({},this.userSelection,{right:A.src}):Q==="user"&&this.userSelection.left&&this.userSelection.right&&_.Bn(this.hostElement,"yt-emoji-select",_.Z8(this.emojiManager,A.id)))};
_.d.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.d.onMultiSelectorThumbnailRowChanged=function(){var A,Q,b;((A=this.data)==null?0:(Q=A.emoji)==null?0:(b=Q.multiSelectorThumbnailRow)==null?0:b.length)&&this.openSelector()};
_.d.getThumbnailFromEmojiRow=function(A){var Q,b;return(A==null?void 0:(Q=A.thumbnails)==null?void 0:(b=Q[0])==null?void 0:b.url)||""};
_.d.getEmojiAltTextForPartialSelector=function(A){var Q;return((Q=this.getThumbnailFromEmojiRow(A).match(IEN))==null?void 0:Q[0])||""};
_.d.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.d.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.d.getRowSelection=function(A){return["left","right"][A]};
_.d.getIdFromComposedEmoji=function(A){return(A==null?void 0:A.emojiId)||""};
_.d.getEmojiFromPartialSelections=function(A,Q){if(!A&&!Q)return null;var b,f,a=(b=this.data)==null?void 0:(f=b.emoji)==null?void 0:f.variantIds;if(!a||!a.length)return null;var T;A=(T=A.match(k8x))==null?void 0:T[0];var G;Q=(G=Q.match(k8x))==null?void 0:G[0];if(!A||!Q)return null;var p=HM$.get(A);G=HM$.get(Q);if(p===G){G=Array.from(HM$.values()).filter(function(U){return U!==p}).join("|");
var P=new RegExp("^((?!("+G+")).)*"+p+"$")}else P=new RegExp(p+".*"+G);return(a=a.find(function(U){return P.test(U)}))&&_.Z8(this.emojiManager,a)||null};
_.d.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var A,Q=this.ytEmojiSelectorBehavior.emojiUrl(((A=this.data.emoji)==null?void 0:A.emojiId)||"");_.Bj(this.hostElement).querySelector('[selection="user"]').src.includes(Q)||(this.isEmojiDraftInProgress=!0)}};
_.d.onDomChange=function(){JB$(this.ytEmojiSelectorBehavior)};
_.d.getFocusableElements=function(){return _.Bj(this.hostElement).querySelectorAll("img").filter(function(A){return A.getAttribute("role")==="option"})};
_.d.changeFocus=function(A){var Q=this.getFocusableElements();Q!=null&&Q.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+A+Q.length)%Q.length,this.ytEmojiSelectorBehavior.focusedIndex<Q.length&&(A=Q[this.ytEmojiSelectorBehavior.focusedIndex])&&A.focus())};
_.d.onKeyboardEnter=function(){var A=this.getFocusableElements();A!=null&&A.length&&(A=A[this.ytEmojiSelectorBehavior.focusedIndex])&&A instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(A),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Qr.Object.defineProperties(pV.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,Q,b,f;return this.emojiManager&&((Q=this.data)==null?0:(b=Q.emoji)==null?0:(f=b.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(a){return!!a&&_.Z8(A.emojiManager,a)}).filter(function(a){return!!a}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var A,Q=(A=this.userSelection)==null?void 0:A.left,b;A=(b=this.userSelection)==null?void 0:b.right;return Q&&A?this.getEmojiFromPartialSelections(Q,A):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.composedEmojiSelection)==null?0:A.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var Q;A=(Q=this.userSelection)==null?void 0:Q.left;var b;Q=(b=this.userSelection)==null?void 0:b.right;if(!A&&!Q){var f;return this.ytEmojiSelectorBehavior.emojiUrl(((f=this.data.emoji)==null?void 0:f.emojiId)||"")}return A&&!Q?A:!A&&Q?Q:""}}});
pV.prototype.onMultiSelectorThumbnailRowChanged=pV.prototype.onMultiSelectorThumbnailRowChanged;pV.prototype.onClick=pV.prototype.onClick;_.E([_.I(_.$t),_.c("design:type",Object)],pV.prototype,"ironOverlayBehavior",void 0);_.E([_.I(VC1),_.c("design:type",Object)],pV.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pV.prototype,"data",void 0);_.E([_.C(),_.c("design:type",_.uz)],pV.prototype,"emojiManager",void 0);
_.E([_.C(),_.c("design:type",Object)],pV.prototype,"userSelection",void 0);_.E([_.C(),_.c("design:type",Object)],pV.prototype,"scrollAction",void 0);_.E([_.C(),_.c("design:type",Object)],pV.prototype,"isEmojiDraftInProgress",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],pV.prototype,"emojiVariants",null);_.E([_.H("data","userSelection"),_.c("design:type",Object),_.c("design:paramtypes",[])],pV.prototype,"composedEmojiSelection",null);
_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[MouseEvent]),_.c("design:returntype")],pV.prototype,"onClick",null);_.E([_.iN("data.emoji.multiSelectorThumbnailRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pV.prototype,"onMultiSelectorThumbnailRowChanged",null);_.E([_.H("data","userSelection","composedEmojiSelection"),_.c("design:type",String),_.c("design:paramtypes",[])],pV.prototype,"draftEmojiUrl",null);
_.E([_.Ec({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],pV);
_.W(pV,"yt-emoji-multi-person-selector",function(){if(ncp===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;OMp===void 0&&(OMp=document.createElement("template"));var f=OMp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ncp=A}A=ncp;return A},{mode:2});var CkY;var qgL;var Pb=function(){var A=_.q.apply(this,arguments)||this;A.tooltip_=null;return A};
_.O(Pb,_.q);_.d=Pb.prototype;_.d.dataChanged_=function(){var A;if((A=this.data)==null?0:A.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Bj(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.SK)(this.tooltip_).textContent=this.data.tooltip};
_.d.computeTargetId=function(){var A;return((A=this.data)==null?void 0:A.targetId)||""};
_.d.computeId_=function(A){return A};
_.d.computeIcon_=function(A){return _.K0(A)};
_.d.onTap_=function(){this.active=!this.active;_.Bn(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.d.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("active-changed",this.active))};
_.Qr.Object.defineProperties(Pb.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var A,Q;if((A=this.data)==null?0:(Q=A.icon)==null?0:Q.iconType)return this.data.icon.iconType==="SUPER_STICKER";var b,f;return((b=this.data)==null?void 0:(f=b.icon)==null?void 0:f.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Pb.prototype.activeChangedForBinding=Pb.prototype.activeChangedForBinding;Pb.prototype.dataChanged_=Pb.prototype.dataChanged_;_.E([_.I(_.yn.YtLiveChatTooltipTargetingBehavior),_.c("design:type",Object)],Pb.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Pb.prototype,"data",void 0);_.E([_.C({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.c("design:type",String)],Pb.prototype,"id",void 0);
_.E([_.C({computed:"computeTargetId(data.targetId)"}),_.c("design:type",String)],Pb.prototype,"targetId",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],Pb.prototype,"active",void 0);_.E([_.C({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.c("design:type",String)],Pb.prototype,"icon",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Pb.prototype,"dataChanged_",null);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Pb.prototype,"iconFilled",null);_.E([_.iN("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Pb.prototype,"activeChangedForBinding",null);_.E([_.Ec({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Pb);
_.W(Pb,"yt-emoji-picker-category-button-renderer",function(){if(qgL===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;CkY===void 0&&(CkY=document.createElement("template"));var f=CkY;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);qgL=A}A=qgL;return A},{mode:2});var ocW;var tCL;var XJ=function(){var A=_.q.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};A.JSC$14066_ignoreNextFocus_=!1;A.longPressTimeoutId=-1;return A};
_.O(XJ,_.q);_.d=XJ.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.d.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.IP(),Q=0;Q<this.emoji.length;Q++){var b={veType:88013,elementIndex:Q},f=this.emoji[Q];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(b=_.kz(A,b))&&(f.visualElement=b)}};
_.d.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.d.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.d.emojiSkinToneChanged_=function(A){this.skinTone=A};
_.d.dataChanged=function(){this.data&&this.data.emojiData&&VwN(this.emojiManager,this.data.emojiData)};
_.d.emojiUrl=function(A){A=this.getEmoji(A);if(!A)return"";var Q;A=(Q=A.image)==null?void 0:Q.thumbnails;return _.Pz(A,24)||""};
_.d.emojiAlt=function(A){var Q=this.get("image.accessibility.accessibilityData.label",A);return Q?Q:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.d.emojiAriaLabel=function(A){return A.shortcuts?A.shortcuts[0]:""};
_.d.emojiAriaSelected=function(A,Q,b){return A&&b==Q?"true":"false"};
_.d.getEmoji=function(A){if(this.emojiManager)return this.shouldUseStickyPreferences?nnK(this.emojiManager,A):yf(this.emojiManager,A)};
_.d.computeId_=function(A){return A.categoryId||""};
_.d.computeEmoji=function(A){var Q=this;return this.emojiManager?A.emojiIds?A.emojiIds.map(function(b){return b?_.Z8(Q.emojiManager,b):null}).filter(cWY):A.emojiData?A.emojiData.map(function(b){var f=!!b.emojiId&&_.Z8(Q.emojiManager,b.emojiId);
return f?Object.assign({},f,b):null}).filter(cWY):[]:[]};
_.d.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.d.computeAriaLabel_=function(A){return _.mO(A)};
_.d.computeAriaActivedescendant_=function(A,Q){return A&&A[Q]?A[Q].emojiId||"":""};
_.d.handleLongPressEmojiWithVariants=function(A,Q){this.changeFocusToEmoji(A.emojiId,!1);this.openVariantSelector(A,Q)};
_.d.onMouseDown=function(A){var Q=this;this.hostElement!==document.activeElement&&(this.JSC$14066_ignoreNextFocus_=!0);if(A.button===0){var b=_.Au(A);if(b instanceof HTMLImageElement){var f=_.Bj(this.hostElement).querySelector("#repeat").itemForElement(b);this.emojiContainsVariants(f)&&(this.longPressTimeoutId=setTimeout(function(){Q.handleLongPressEmojiWithVariants(f,b)},500))}}};
_.d.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.d.onFocus=function(){this.JSC$14066_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14066_ignoreNextFocus_=!1};
_.d.onBlur_=function(){this.showFocus=!1};
_.d.emojiContainsVariants=function(A){return!!(A&&A.variantIds&&A.variantIds.length)};
_.d.onClick=function(A){clearTimeout(this.longPressTimeoutId);A=_.Au(A);if(A instanceof HTMLImageElement){var Q=A.id;this.changeFocusToEmoji(Q,!1);var b=this.getEmoji(Q),f;if(f=this.shouldUseStickyPreferences&&this.emojiContainsVariants(b)){var a;f=!((a=this.emojiManager.emojiMap[Q])!=null&&a.stickyPrefId)}f?(a=_.Bj(this.hostElement).querySelector("#repeat").itemForElement(A),this.openVariantSelector(a,A)):_.Bn(this.hostElement,"yt-emoji-select",b)}};
_.d.isActiveEmojiWithVariants=function(A,Q){return A&&Q?Q.stickyPrefId?A===Q.stickyPrefId:A===Q.emojiId:!1};
_.d.onCloseEmojiVariantSelector=function(A){this.activeEmojiWithVariantsId===A&&(this.activeEmojiWithVariantsId="")};
_.d.onMouseOver_=function(A){A=_.Au(A);A instanceof HTMLImageElement&&_.Bn(this.hostElement,"yt-emoji-hover",_.Z8(this.emojiManager,A.id))};
_.d.changeFocus_=function(A,Q){this.focusedIndex=(this.focusedIndex+A+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(A=this.emoji[this.focusedIndex],Q&&(this.showFocus=!0,_.Bj(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Bn(this.hostElement,"yt-emoji-hover",A)))};
_.d.changeFocusToEmoji=function(A,Q){if(A){var b=this.emoji.findIndex(function(f){return f.emojiId===A});
b!==-1&&this.changeFocus_(b-this.focusedIndex,Q)}};
_.d.onKeyDown_=function(A){switch(A.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var Q=this.emoji[this.focusedIndex];if(Q&&Q.emojiId){if(this.emojiContainsVariants(Q)){var b=_.Bj(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(Q,b)}else _.Bn(this.hostElement,"yt-emoji-select",yf(this.emojiManager,Q.emojiId)),this.hostElement.focus();A.preventDefault()}}break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),
A.preventDefault()}};
_.d.onEmojiStickyPreferenceChanged=function(A,Q){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&A.emojiId&&A.variantIds&&A.variantIds.includes(Q)&&this.activeEmojiWithVariantsId!==Q&&this.setStickyEmojiPreference(A.emojiId,Q)};
_.d.openVariantSelector=function(A,Q){this.activeEmojiWithVariantsId=A.stickyPrefId||A.emojiId||"";_.Bn(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:A,target:Q})};
_.d.setStickyEmojiPreference=function(A,Q){if(this.data){var b=this.emoji.findIndex(function(a){return a.emojiId===A});
if(b!==-1){var f=this.emoji[b];f.stickyPrefId=Q;this.set("emoji."+b,Object.assign({},f));this.activeEmojiWithVariantsId=Q}}};
XJ.prototype.onKeyDown_=XJ.prototype.onKeyDown_;XJ.prototype.onMouseOver_=XJ.prototype.onMouseOver_;XJ.prototype.onClick=XJ.prototype.onClick;XJ.prototype.onBlur_=XJ.prototype.onBlur_;XJ.prototype.onFocus=XJ.prototype.onFocus;XJ.prototype.onMouseUp=XJ.prototype.onMouseUp;XJ.prototype.onMouseDown=XJ.prototype.onMouseDown;XJ.prototype.dataChanged=XJ.prototype.dataChanged;XJ.prototype.disableIncrementalLoadingChanged_=XJ.prototype.disableIncrementalLoadingChanged_;XJ.prototype.emojiManagerChanged_=XJ.prototype.emojiManagerChanged_;
XJ.prototype.emojiChanged_=XJ.prototype.emojiChanged_;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],XJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],XJ.prototype,"data",void 0);_.E([_.C({computed:"computeId_(data)"}),_.c("design:type",String)],XJ.prototype,"id",void 0);_.E([_.C({computed:"computeEmoji(data)"}),_.c("design:type",Array)],XJ.prototype,"emoji",void 0);_.E([_.C(),_.c("design:type",Number)],XJ.prototype,"skinTone",void 0);
_.E([_.C(),_.c("design:type",_.uz)],XJ.prototype,"emojiManager",void 0);_.E([_.C(),_.c("design:type",Boolean)],XJ.prototype,"disableIncrementalLoading",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],XJ.prototype,"focusedIndex",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],XJ.prototype,"showFocus",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.c("design:type",Object)],XJ.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.c("design:type",Object)],XJ.prototype,"ariaActivedescendant",void 0);_.E([_.C({value:60}),_.c("design:type",Number)],XJ.prototype,"domRepeatTargetFramerate",void 0);_.E([_.C({value:1}),_.c("design:type",Number)],XJ.prototype,"domRepeatInitialCount",void 0);_.E([_.C({value:""}),_.c("design:type",String)],XJ.prototype,"activeEmojiWithVariantsId",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],XJ.prototype,"shouldUseStickyPreferences",void 0);_.E([_.iN("emoji"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XJ.prototype,"emojiChanged_",null);_.E([_.iN("emojiManager"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XJ.prototype,"emojiManagerChanged_",null);
_.E([_.iN("disableIncrementalLoading"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XJ.prototype,"disableIncrementalLoadingChanged_",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XJ.prototype,"dataChanged",null);_.E([_.Kc("mousedown"),_.c("design:type",Function),_.c("design:paramtypes",[Object]),_.c("design:returntype")],XJ.prototype,"onMouseDown",null);
_.E([_.Kc("mouseup"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XJ.prototype,"onMouseUp",null);_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XJ.prototype,"onFocus",null);_.E([_.Kc("blur"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XJ.prototype,"onBlur_",null);
_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],XJ.prototype,"onClick",null);_.E([_.Kc("mouseover"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],XJ.prototype,"onMouseOver_",null);_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],XJ.prototype,"onKeyDown_",null);
_.E([_.Ec({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],XJ);
_.W(XJ,"yt-emoji-picker-category-renderer",function(){if(tCL===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;ocW===void 0&&(ocW=document.createElement("template"));var f=ocW;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);tCL=A}A=tCL;return A},{mode:2});var rB9;var j5x;var Rfy;var gc$;var SG=function(){var A=_.q.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.getFormattedStringRawText=_.mO;A.JSC$14072_ignoreNextFocus_=!1;return A};
_.O(SG,_.q);_.d=SG.prototype;_.d.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")};
_.d.emojiUrl=function(A){var Q,b;A=(Q=yf(this.emojiManager,A,!0))==null?void 0:(b=Q.image)==null?void 0:b.thumbnails;return _.Pz(A,24)||""};
_.d.emojiAlt=function(A){var Q=this.get("image.accessibility.accessibilityData.label",A);return Q?Q:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.d.emojiId=function(A){return"emoji"+A};
_.d.computeId_=function(A){return A.categoryId||""};
_.d.computeAriaActivedescendant_=function(A){return this.emoji&&A<this.emoji.length?this.emojiId(A):""};
_.d.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.IP(),Q=0;Q<this.emoji.length;Q++){var b={veType:88013,elementIndex:Q},f=this.emoji[Q];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(b=_.kz(A,b))&&(f.visualElement=b)}};
_.d.computeEmoji_=function(A){var Q=this;return this.emojiManager?A.emojiIds.map(function(b){return _.Z8(Q.emojiManager,b,!0)}).filter(zyU):[]};
_.d.titleOffsetChanged_=function(){var A=this.hostElement.getBoundingClientRect(),Q=_.Bj(this.hostElement).querySelector("#title").getBoundingClientRect();A=Math.max(0,Math.min(this.titleOffset,A.height-Q.height));_.Bj(this.hostElement).querySelector("#title").style.top=A+"px"};
_.d.onEmojiMouseOver_=function(A){_.Bn(this.hostElement,"yt-emoji-hover",A.model.item)};
_.d.onEmojiTap_=function(A){this.data.command&&(A=yBY(_.fJ().resolve(_.bu(Zl)),this.data.command,A),_.Bn(this.hostElement,"yt-navigate",A))};
_.d.emojiAriaLabel=function(A){return A.shortcuts[0]};
_.d.emojiAriaSelected=function(A,Q,b){return A&&b==Q?"true":"false"};
_.d.changeFocus_=function(A,Q){var b=this.emoji.length;this.focusedIndex=(this.focusedIndex+A+b)%b;A=this.emoji[this.focusedIndex];if(Q){var f;(f=_.Bj(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||f.scrollIntoView(!1);_.Bn(this.hostElement,"yt-emoji-hover",A)}};
_.d.onMouseDown_=function(){this.JSC$14072_ignoreNextFocus_=!0};
_.d.onFocus_=function(){this.JSC$14072_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14072_ignoreNextFocus_=!1};
_.d.onBlur_=function(){this.showFocus=!1};
_.d.onKeyDown_=function(A){switch(A.keyCode){case 13:this.onEmojiTap_(A);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),A.preventDefault()}};
SG.prototype.onKeyDown_=SG.prototype.onKeyDown_;SG.prototype.onBlur_=SG.prototype.onBlur_;SG.prototype.onFocus_=SG.prototype.onFocus_;SG.prototype.onMouseDown_=SG.prototype.onMouseDown_;SG.prototype.onEmojiTap_=SG.prototype.onEmojiTap_;SG.prototype.titleOffsetChanged_=SG.prototype.titleOffsetChanged_;SG.prototype.emojiChanged_=SG.prototype.emojiChanged_;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],SG.prototype,"data",void 0);_.E([_.C({computed:"computeId_(data)"}),_.c("design:type",String)],SG.prototype,"id",void 0);_.E([_.C({computed:"computeEmoji_(data)"}),_.c("design:type",Array)],SG.prototype,"emoji",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],SG.prototype,"titleOffset",void 0);_.E([_.C({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.c("design:type",Object)],SG.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.c("design:type",Object)],SG.prototype,"ariaActivedescendant",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],SG.prototype,"showFocus",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],SG.prototype,"focusedIndex",void 0);_.E([_.C(),_.c("design:type",_.uz)],SG.prototype,"emojiManager",void 0);
_.E([_.iN("emoji"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],SG.prototype,"emojiChanged_",null);_.E([_.iN("titleOffset"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],SG.prototype,"titleOffsetChanged_",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],SG.prototype,"onEmojiTap_",null);
_.E([_.Kc("mousedown"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],SG.prototype,"onMouseDown_",null);_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],SG.prototype,"onFocus_",null);_.E([_.Kc("blur"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],SG.prototype,"onBlur_",null);
_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],SG.prototype,"onKeyDown_",null);_.E([_.Ec({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],SG);
_.W(SG,"yt-emoji-picker-upsell-category-renderer",function(){if(gc$===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Rfy===void 0&&(Rfy=document.createElement("template"));var f=Rfy;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);gc$=A}A=gc$;return A},{mode:2});var efv;var hfy;var UE=function(){var A=_.q.apply(this,arguments)||this;A.scrollAction="lock";A.verticalAlign="top";return A};
_.O(UE,_.q);_.d=UE.prototype;_.d.onClick=function(A){A=_.Au(A);A instanceof HTMLImageElement&&_.Bn(this.hostElement,"yt-emoji-select",_.Z8(this.emojiManager,A.id))};
_.d.openSelector=function(){this.ironOverlayBehavior.open()};
_.d.onDomChange=function(){JB$(this.ytEmojiSelectorBehavior)};
_.d.computeIsFamilySelector=function(A){var Q;return(A==null?void 0:(Q=A.emoji)==null?void 0:Q.emojiId)==="\ud83d\udc6a"};
_.d.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var A=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];A&&A.emojiId&&(_.Bn(this.hostElement,"yt-emoji-select",_.Z8(this.emojiManager,A.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Qr.Object.defineProperties(UE.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,Q,b,f;return this.emojiManager&&((Q=this.data)==null?0:(b=Q.emoji)==null?0:(f=b.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(a){return!!a&&_.Z8(A.emojiManager,a)}).filter(function(a){return!!a}):[]}}});
UE.prototype.onClick=UE.prototype.onClick;_.E([_.I(_.$t),_.c("design:type",Object)],UE.prototype,"ironOverlayBehavior",void 0);_.E([_.I(VC1),_.c("design:type",Object)],UE.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UE.prototype,"data",void 0);_.E([_.C(),_.c("design:type",_.uz)],UE.prototype,"emojiManager",void 0);_.E([_.C(),_.c("design:type",Object)],UE.prototype,"scrollAction",void 0);_.E([_.C(),_.c("design:type",Object)],UE.prototype,"verticalAlign",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.c("design:type",Boolean)],UE.prototype,"isFamilySelector",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],UE.prototype,"emojiVariants",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[MouseEvent]),_.c("design:returntype")],UE.prototype,"onClick",null);_.E([_.Ec({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],UE);
_.W(UE,"yt-emoji-variant-selector",function(){if(hfy===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;efv===void 0&&(efv=document.createElement("template"));var f=efv;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);hfy=A}A=hfy;return A},{mode:2});var Wv9=/:/g,vcj=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],LV=function(){var A=_.q.apply(this,arguments)||this;A.emojiVariantSelector=null;A.emojiMultiPersonSelector=null;A.identity=_.gW;A.lastAnimationTime_=0;A.animationStart_=null;A.animationEnd_=null;return A};
_.O(LV,_.q);_.d=LV.prototype;
_.d.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}}};
_.d.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.YZ)};
_.d.attached=function(){_.S1&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&OdK(this.emojiManager)};
_.d.dataChanged=function(){var A;if((A=this.data)==null?0:A.categories){A=this.emojiManager;var Q=this.getCustomEmojiIds();A.pickerCustomEmojiIds=[].concat(_.ri(MwL),_.ri(Q))}};
_.d.getCustomEmojiIds=function(){var A,Q=(A=this.data.categories)==null?void 0:A.find(function(T){var G;return((G=T.emojiPickerCategoryRenderer)==null?void 0:G.categoryId)&&vcj.includes(T.emojiPickerCategoryRenderer.categoryId)}),b;
A=(b=this.data.categories)==null?void 0:b.find(function(T){return T.emojiPickerUpsellCategoryRenderer});
var f,a;return[Q==null?void 0:(f=Q.emojiPickerCategoryRenderer)==null?void 0:f.emojiIds,A==null?void 0:(a=A.emojiPickerUpsellCategoryRenderer)==null?void 0:a.emojiIds].flat().filter(function(T){return!!T})};
_.d.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.d.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.d.updateCategoriesAndPlaceholderInternal=function(A,Q){var b=this;A&&Q&&(this.categories=A.categories||[],this.categoryButtons=A.categoryButtons||[],this.resetPlaceholder(),this.search="",_.y1(function(){b.updateButtons_()}))};
_.d.computeId_=function(A){return A.id||""};
_.d.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(A){return A.emojiPickerCategoryRenderer&&A.emojiPickerCategoryRenderer.emojiData}):!1};
_.d.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.d.onShowEmojiVariantSelector=function(A){var Q=A.detail.emojiData;Q.variantIds&&Q.variantIds.length&&(Q.multiSelectorThumbnailRow&&Q.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:Q,target:A.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:Q,target:A.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.d.onIronOverlayClosed=function(A){var Q=nnK(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");Q&&A.composedPath&&(A.composedPath().includes(_.Bj(this.hostElement).querySelector("#emoji-variant-selector"))||A.composedPath().includes(_.Bj(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.pD(this.hostElement,"yt-close-emoji-variant-selector",[Q.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.d.onEmojiVariantSelectorMouseup=function(A){var Q=A.target.firstChild;this.variantSelectorOpened&&Q&&_.y1(function(){Q.noCancelOnOutsideClick=!1},100)};
_.d.onEmojiVariantSelectorMousedown=function(A){A=A.target.firstChild;this.variantSelectorOpened&&A&&(A.noCancelOnOutsideClick=!1)};
_.d.onSelectCategory_=function(A){var Q=this.search!="";this.search="";for(var b=_.Bj(this.hostElement).querySelector("#categories").children,f=0;f<b.length;f++){var a=b[f];if(a.id==A.detail.categoryId){Q?(_.Bj(this.hostElement).querySelector("#categories").scrollTop=a.offsetTop,this.updateButtons_()):(this.animationStart_=_.Bj(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=a.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.d.onEmojiHover_=function(A){this.placeholder=A.detail.shortcuts?A.detail.shortcuts[0]:""};
_.d.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.d.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.d.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.d.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.d.computeSearchCategory_=function(A){A=A.replace(Wv9,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();A=A.split(" ");for(var Q=[],b=this.emojiManager.emojis,f=0;f<b.length;f++){var a=b[f];if(a.searchTerms)for(var T=0;T<a.searchTerms.length;T++){for(var G=a.searchTerms[T].toLocaleLowerCase(),p=!1,P=0;P<A.length;P++)if(G.indexOf(A[P])!=-1){p=!0;break}if(p&&(!a.isCustomEmoji||!a.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(a.emojiId))){Q.push(a.emojiId);
break}}}return{categoryId:-1,emojiIds:Q}};
_.d.computeSearchEmptyMessage_=function(A,Q){return A&&Q&&Q.emojiIds&&Q.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.d.computeSearching_=function(A){return this.emojiManager&&A.replace(Wv9,"").length>1};
_.d.computeSkinToneHidden=function(){var A;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((A=this.data)==null||!A.hideSkinTonePicker)};
_.d.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.d.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.d.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.d.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.d.selectSkinTone_=function(A){A=Number(A.target.getAttribute("tone"));this.set("emojiManager.skinTone",A);_.pD(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[A]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.d.skinToneChanged_=function(){_.Bj(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var A=_.Bj(this.hostElement).querySelector("#dropdown-content").children,Q=0;Q<A.length;Q++)Q===this.skinTone?A[Q].setAttribute("selected",""):A[Q].removeAttribute("selected")};
_.d.animateScroll_=function(A){this.lastAnimationTime_||(this.lastAnimationTime_=A);A-=this.lastAnimationTime_;A<200?(_.Bj(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*A/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Bj(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.d.searchChanged_=function(){this.updateButtons_()};
_.d.updateButtons_=function(){var A=null;if(!this.search)for(var Q=_.Bj(this.hostElement).querySelector("#categories").scrollTop,b=_.Bj(this.hostElement).querySelector("#categories").children,f=0;f<b.length;f++){var a=b[f];a.offsetTop<=Q&&(A=a.id)}Q=_.Bj(this.hostElement).querySelector("#category-buttons").children;for(b=0;b<Q.length;b++)f=Q[b],f.active=f.id===A};
LV.prototype.searchChanged_=LV.prototype.searchChanged_;LV.prototype.skinToneChanged_=LV.prototype.skinToneChanged_;LV.prototype.onEmojiHover_=LV.prototype.onEmojiHover_;LV.prototype.onSelectCategory_=LV.prototype.onSelectCategory_;LV.prototype.onShowEmojiVariantSelector=LV.prototype.onShowEmojiVariantSelector;LV.prototype.updateCategoriesAndPlaceholder_=LV.prototype.updateCategoriesAndPlaceholder_;LV.prototype.dataChanged=LV.prototype.dataChanged;
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],LV.prototype,"data",void 0);_.E([_.C({value:function(){return[]}}),
_.c("design:type",Array)],LV.prototype,"categories",void 0);_.E([_.C({value:function(){return[]}}),
_.c("design:type",Array)],LV.prototype,"categoryButtons",void 0);_.E([_.C({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.c("design:type",Boolean)],LV.prototype,"disableScroll",void 0);_.E([_.C({computed:"computeId_(data)",reflectToAttribute:!0}),_.c("design:type",String)],LV.prototype,"id",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],LV.prototype,"selected",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],LV.prototype,"disableIncrementalLoading",void 0);_.E([_.C(),_.c("design:type",String)],LV.prototype,"placeholder",void 0);_.E([_.C({value:""}),_.c("design:type",String)],LV.prototype,"search",void 0);_.E([_.C({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.c("design:type",Boolean)],LV.prototype,"searching",void 0);_.E([_.C({computed:"computeSearchCategory_(search)"}),_.c("design:type",Object)],LV.prototype,"searchCategory",void 0);
_.E([_.C({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.c("design:type",Object)],LV.prototype,"searchEmptyMessage",void 0);_.E([_.C({computed:"identity(emojiManager.skinTone)"}),_.c("design:type",Number)],LV.prototype,"skinTone",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],LV.prototype,"skinToneOpened",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],LV.prototype,"variantSelectorOpened",void 0);
_.E([_.C({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.c("design:type",Boolean)],LV.prototype,"skinToneHidden",void 0);_.E([_.C(),_.c("design:type",_.uz)],LV.prototype,"emojiManager",void 0);_.E([_.C(),_.c("design:type",Object)],LV.prototype,"emojiVariantSelector",void 0);_.E([_.C(),_.c("design:type",Object)],LV.prototype,"emojiMultiPersonSelector",void 0);
_.E([_.C({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.c("design:type",Boolean)],LV.prototype,"shouldUseStickyPreferences",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LV.prototype,"dataChanged",null);_.E([_.iN("data","selected"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LV.prototype,"updateCategoriesAndPlaceholder_",null);
_.E([_.Kc("yt-show-emoji-variant-selector"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],LV.prototype,"onShowEmojiVariantSelector",null);_.E([_.Kc("yt-emoji-picker-select-category"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],LV.prototype,"onSelectCategory_",null);_.E([_.Kc("yt-emoji-hover"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],LV.prototype,"onEmojiHover_",null);
_.E([_.iN("skinTone"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LV.prototype,"skinToneChanged_",null);_.E([_.iN("search"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LV.prototype,"searchChanged_",null);_.E([_.Ec({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],LV);
_.W(LV,"yt-emoji-picker-renderer",function(){if(j5x===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;rB9===void 0&&(rB9=document.createElement("template"));var f=rB9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);j5x=A}A=j5x;return A},{mode:2});var MC=function(){var A=_.q.apply(this,arguments)||this;A.emojiManager=_.YZ;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.selectedIndex=1;A.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return A};
_.O(MC,_.q);_.d=MC.prototype;_.d.handleEmojiCustomizationVisible=function(A){this.emojiPickerRenderer.selected=A;this.selectedIndex=1;A?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.d.emojiCustomizationSetChanged=function(){var A;(A=this.data)!=null&&A.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.DU(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.d.updateSaveButtonState=function(A){var Q;(Q=this.data)!=null&&Q.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.HL("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:A}))};
_.d.emojiUrl=function(A){A=_.Z8(this.emojiManager,A);if(!A)return"";var Q;A=(Q=A.image)==null?void 0:Q.thumbnails;return _.Pz(A,24)||""};
_.d.emojiAlt=function(A){var Q=_.Z8(this.emojiManager,A);if(!Q)return A;var b,f,a,T=(Q==null?void 0:(b=Q.image)==null?void 0:(f=b.accessibility)==null?void 0:(a=f.accessibilityData)==null?void 0:a.label)||"";return T?T:Q.isCustomEmoji?Q.shortcuts[0]:Q.emojiId||A};
_.d.emojiAriaLabel=function(A){var Q,b;return((Q=_.Z8(this.emojiManager,A))==null?void 0:(b=Q.shortcuts)==null?void 0:b[0])||A};
_.d.onEmojiClick=function(A){A.model.index!==0&&(this.selectedIndex=A.model.index)};
_.d.onEmojiSelect=function(A){A=A.detail;var Q,b;((Q=this.data)==null?0:Q.emojiCustomizationSetEntityKey)&&((b=this.emojiCustomizationSet)==null?0:b.emojiId)&&A.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.HL("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)}))};
_.d.canEditEmoji=function(A,Q,b){A=A.indexOf(Q);return A===b||A===0||b===0?!1:!0};
_.d.getUpdatedEmojiIdList=function(A,Q,b){var f=A.indexOf(Q);A=[].concat(_.ri(A));f>=0&&(A[f]=A[b]);A[b]=Q;return A};
_.Qr.Object.defineProperties(MC,{template:{configurable:!0,enumerable:!0,get:function(){if(aEL===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;fEj===void 0&&(fEj=document.createElement("template"));var f=fEj;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);aEL=A}A=aEL;return A}}});
MC.prototype.onEmojiSelect=MC.prototype.onEmojiSelect;_.E([_.I(_.ZB),_.c("design:type",Object)],MC.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],MC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.V1("yt-emoji-picker-renderer"),_.c("design:type",Object)],MC.prototype,"emojiPickerRenderer",void 0);
_.E([_.C({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(A,Q){return _.Me(A.entities,"emojiCustomizationSetEntity",Q)},
observer:"emojiCustomizationSetChanged"}),_.c("design:type",Object)],MC.prototype,"emojiCustomizationSet",void 0);_.E([_.C(),_.c("design:type",Object)],MC.prototype,"originalEmojiSet",void 0);_.E([_.C(),_.c("design:type",_.uz)],MC.prototype,"emojiManager",void 0);_.E([_.C(),_.c("design:type",Object)],MC.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],MC.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],MC.prototype,"selectedIndex",void 0);
_.E([_.Kc("yt-emoji-select"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],MC.prototype,"onEmojiSelect",null);_.E([_.Ec({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],MC);var EcN;var x4p;var cBx;var zfv;var lF=function(){var A=_.q.apply(this,arguments)||this;A.authorBadges=[];return A};
_.O(lF,_.q);_.d=lF.prototype;_.d.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.d.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]]"}}}}}};
_.d.dataChanged=function(){var A=SIe(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",A)};
_.d.updateMessage=function(){var A=this.data.message,Q=_.Bj(_.Bj(this.hostElement).querySelector("#message"));Q.textContent="";A&&Q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.d.onShowOriginalClick=function(A){A.preventDefault();this.showOriginal=!0};
_.d.computeShowBar=function(A,Q,b){return A&&Q||b};
_.d.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.d.computeAuthorIsOwner=function(A){return!!UDC(A.authorBadges,"owner")};
_.d.computeAuthorNameColor=function(A){var Q;if(_.K("live_chat_author_name_color_usernames")&&(A==null?0:(Q=A.authorName)==null?0:Q.simpleText))return _.J6W(_.VZ4(A.authorName.simpleText));if(_.K("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.J6W(_.M7(A.authorSeedColorArgb));if(_.K("live_chat_colored_usernames"))return"#cc0000";var b;return _.K("live_chat_simple_color_usernames")&&(A==null?0:(b=A.authorName)==null?0:b.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.M7(A.authorUsernameColorDark):_.M7(A.authorUsernameColorLight):""};
lF.prototype.updateMessage=lF.prototype.updateMessage;lF.prototype.dataChanged=lF.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],lF.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lF.prototype,"data",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],lF.prototype,"showOriginal",void 0);_.E([_.C({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.c("design:type",Boolean)],lF.prototype,"isDimmed",void 0);_.E([_.C({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.c("design:type",Boolean)],lF.prototype,"showBar",void 0);
_.E([_.C({computed:"computeAuthorBadges(data)"}),_.c("design:type",Array)],lF.prototype,"authorBadges",void 0);_.E([_.C({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],lF.prototype,"authorIsOwner",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],lF.prototype,"inCollapsedBanner",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],lF.prototype,"inBanner",void 0);
_.E([_.C({value:_.K("live_chat_hide_avatars"),reflectToAttribute:!0}),_.c("design:type",Boolean)],lF.prototype,"avatarHidden",void 0);_.E([_.C({computed:"computeAuthorNameColor(data)"}),_.c("design:type",String)],lF.prototype,"authorNameColor",void 0);_.E([_.C(),_.c("design:type",_.mD)],lF.prototype,"participantsManager",void 0);_.E([_.C({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.c("design:type",Object)],lF.prototype,"filledButtonOverrides",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lF.prototype,"dataChanged",null);_.E([_.iN("data.message"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lF.prototype,"updateMessage",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],lF);
_.W(lF,"yt-live-chat-text-message-renderer",function(){if(zfv===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;cBx===void 0&&(cBx=document.createElement("template"));var f=cBx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);zfv=A}A=zfv;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var KV=function(){var A=_.q.apply(this,arguments)||this;A.tonalButtonOverrides={type:"tonal",style:"overlay"};return A};
_.O(KV,_.q);
KV.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]]"}}}}}};
KV.prototype.shouldSupportInlineActionButtons=function(){return!0};
KV.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Qr.Object.defineProperties(KV.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],KV.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],KV.prototype,"data",void 0);_.E([_.C(),_.c("design:type",_.mD)],KV.prototype,"participantsManager",void 0);
_.E([_.C(),_.c("design:type",Object)],KV.prototype,"tonalButtonOverrides",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.infoDialogButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],KV.prototype,"hasInfoDialogButton",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],KV);
_.W(KV,"yt-live-chat-auto-mod-message-renderer",function(){if(x4p===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;EcN===void 0&&(EcN=document.createElement("template"));var f=EcN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);x4p=A}A=x4p;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var wWp;var uP9;var ZMp;var yBp=function(){return _.q.apply(this,arguments)||this};
_.O(yBp,_.q);_.E([_.C(),_.c("design:type",Object)],yBp.prototype,"data",void 0);_.E([_.h({is:"ytd-factoid-renderer",disableElementRegistration:!0})],yBp);
_.W(yBp,"ytd-factoid-renderer",function(){if(ZMp!==void 0)return ZMp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ZMp=A},{mode:1});var iF=function(){return _.q.apply(this,arguments)||this};
_.O(iF,_.q);iF.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.E([_.C(),_.c("design:type",Object)],iF.prototype,"data",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],iF);
_.W(iF,"yt-live-chat-channel-activity-reputation-renderer",function(){if(uP9===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;wWp===void 0&&(wWp=document.createElement("template"));var f=wWp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);uP9=A}A=uP9;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Ygp;var D4v;var JF=function(){return _.q.apply(this,arguments)||this};
_.O(JF,_.q);JF.prototype.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Boolean)],JF.prototype,"menuFocused",void 0);_.E([_.C(),_.c("design:type",Object)],JF.prototype,"data",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],JF.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],JF);
_.W(JF,"yt-live-chat-donation-announcement-renderer",function(){if(D4v===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Ygp===void 0&&(Ygp=document.createElement("template"));var f=Ygp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);D4v=A}A=D4v;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var $4x;var NXL,s5W=function(){if(NXL!==void 0)return NXL;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;$4x===void 0&&($4x=document.createElement("template"));var f=$4x;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return NXL=A};var VU=function(){return _.q.apply(this,arguments)||this};
_.O(VU,_.q);_.Qr.Object.defineProperties(VU,{template:{configurable:!0,enumerable:!0,get:function(){return s5W()}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],VU.prototype,"data",void 0);_.E([_.Ec({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],VU);_.W(VU,"yt-live-chat-empty-feed-view-model",function(){return s5W()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var m4M;var AWL;var OE=function(){return _.q.apply(this,arguments)||this};
_.O(OE,_.q);OE.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"}}}}}};
_.Qr.Object.defineProperties(OE.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var A,Q;return{runs:[{text:(A=this.data)==null?void 0:(Q=A.channelName)==null?void 0:Q.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var A=[],Q;if((Q=this.data)==null||!Q.channelBadges)return A;var b;Q=_.F((b=this.data)==null?void 0:b.channelBadges);for(b=Q.next();!b.done;b=Q.next()){b=_.V(b.value,E4r);var f=void 0,a=void 0;if((f=b)==null?0:(a=f.badgeImage)==null?0:a.sources)f=void 0,a={liveChatAuthorBadgeRenderer:{tooltip:b.tooltip,accessibility:{accessibilityData:{label:(f=_.V(b.rendererContext,_.HV))==null?void 0:f.label}}}},b.badgeImage.sources[0].clientResource?a.liveChatAuthorBadgeRenderer.icon=
{iconType:b.badgeImage.sources[0].clientResource.imageName}:a.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:b.badgeImage.sources},A.push(a)}return A}}});
_.E([_.C(),_.c("design:type",Object)],OE.prototype,"data",void 0);_.E([_.H("data.channelName"),_.c("design:type",Object),_.c("design:paramtypes",[])],OE.prototype,"channelName",null);_.E([_.H("data.channelBadges"),_.c("design:type",Array),_.c("design:paramtypes",[])],OE.prototype,"channelBadges",null);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],OE);
_.W(OE,"yt-live-chat-identity-view-model",function(){if(AWL===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;m4M===void 0&&(m4M=document.createElement("template"));var f=m4M;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);AWL=A}A=AWL;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var QUM;var bRL;var f2p;var a21;var nV=function(){var A=_.q.apply(this,arguments)||this;A.hidden=!1;A.supportsInlineActionButtons=!0;return A};
_.O(nV,_.q);nV.prototype.ready=function(){var A;((A=document.querySelector("yt-live-chat-app"))==null?0:A.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
nV.prototype.dataChanged=function(A){var Q=(0,_.SK)(_.Bj(this.hostElement).querySelector("#detail-text"));Q.textContent="";(A==null?0:A.detailText)&&Q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A.detailText))};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],nV.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({observer:"dataChanged"}),_.c("design:type",Object)],nV.prototype,"data",void 0);
_.E([_.C({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.c("design:type",Object)],nV.prototype,"hidden",void 0);_.E([_.h({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],nV);
_.W(nV,"yt-live-chat-legacy-paid-message-renderer",function(){if(a21===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;f2p===void 0&&(f2p=document.createElement("template"));var f=f2p;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);a21=A}A=a21;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var TZp;var dyx;var FqN={},kX=function(){return _.nc.apply(this,arguments)||this};
_.O(kX,_.nc);kX.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
kX.prototype.onLiveChatMembershipItemBehaviorClick=kX.prototype.onLiveChatMembershipItemBehaviorClick;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kX.prototype,"data",void 0);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],kX.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.E([_.kl()],kX);
FqN.YtLiveChatMembershipItemBehavior=[kX.prototype,_.Z.YtRendererBehavior];var IE=function(){var A=_.q.apply(this,arguments)||this;A.supportsInlineActionButtons=!0;A.hasPrimaryHeaderText=!1;A.showOnlyHeader=!1;A.authorBadges=[];A.modern=_.K("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.O(IE,_.q);_.d=IE.prototype;_.d.shouldSupportInlineActionButtons=function(){return!0};
_.d.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.d.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.d.messageChanged=function(){var A=this.data.message,Q=(0,_.SK)(_.Bj(this.hostElement).querySelector("#message"));Q.textContent="";A&&Q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.d.computeHasPrimaryHeaderText=function(A){return!(!A||!A.headerPrimaryText)};
_.d.computeShowOnlyHeader=function(A,Q){return this.isMessageEmpty(A,Q)};
_.d.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.d.isMessageEmpty=function(A,Q){return!A||A.empty?!0:!A.message&&!A.inputField&&!Q};
_.d.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.d.getInputElement=function(){return _.Bj(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.d.inputFocus=function(){var A=this.getInputElement();A&&A.focus()};
_.d.inputInsertEmoji=function(A){var Q=this.getInputElement();Q&&Q.insertEmoji(A)};
_.d.inputMessage=function(){var A=this.getInputElement();return A&&this.data.inputField?(A.completeEmojis(),_.Dc(A.liveChatRichMessageInput)):null};
_.d.onFooterButtonClick=function(){this.data.footerButton&&_.Bn(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.d.shouldSupportWholeItemClick=function(){return!0};
IE.prototype.isDeletedChanged=IE.prototype.isDeletedChanged;IE.prototype.messageChanged=IE.prototype.messageChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],IE.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(FqN.YtLiveChatMembershipItemBehavior),_.c("design:type",Object)],IE.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],IE.prototype,"data",void 0);_.E([_.C({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.c("design:type",Object)],IE.prototype,"hasPrimaryHeaderText",void 0);_.E([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.c("design:type",Object)],IE.prototype,"showOnlyHeader",void 0);
_.E([_.C({computed:"computeAuthorBadges(data)"}),_.c("design:type",Array)],IE.prototype,"authorBadges",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],IE.prototype,"modern",void 0);_.E([_.iN("data.message"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],IE.prototype,"messageChanged",null);_.E([_.iN("isDeleted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],IE.prototype,"isDeletedChanged",null);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],IE);
_.W(IE,"yt-live-chat-membership-item-renderer",function(){if(dyx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;TZp===void 0&&(TZp=document.createElement("template"));var f=TZp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);dyx=A}A=dyx;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Gtx;var BZL;var Hb=function(){return _.q.apply(this,arguments)||this};
_.O(Hb,_.q);Hb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Hb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Hb.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Hb);
_.W(Hb,"yt-live-chat-mode-change-message-renderer",function(){if(BZL===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Gtx===void 0&&(Gtx=document.createElement("template"));var f=Gtx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);BZL=A}A=BZL;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var pPp;var PK1;var CV=function(){return _.q.apply(this,arguments)||this};
_.O(CV,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],CV.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],CV.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],CV);
_.W(CV,"yt-live-chat-moderation-message-renderer",function(){if(PK1===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;pPp===void 0&&(pPp=document.createElement("template"));var f=pPp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);PK1=A}A=PK1;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var XPv;var SmN;var qC=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_button_rework");return A};
_.O(qC,_.q);qC.prototype.onClick=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var Q;_.J8.instance.resolveCommand((Q=this.data)==null?void 0:Q.onClickCommand)}};
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],qC.prototype,"modern",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],qC.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],qC.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],qC.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],qC);
_.W(qC,"yt-live-chat-offer-click-count-message-renderer",function(){if(SmN===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;XPv===void 0&&(XPv=document.createElement("template"));var f=XPv;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);SmN=A}A=SmN;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Uyr;var Lqy=function(){return _.q.apply(this,arguments)||this};
_.O(Lqy,_.q);_.E([_.C(),_.c("design:type",Object)],Lqy.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Lqy);
_.W(Lqy,"yt-live-chat-placeholder-item-renderer",function(){if(Uyr===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);Uyr=A}A=Uyr;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Mmy;var l2p;var Kq9=new $L(7),oE=function(){var A=_.q.apply(this,arguments)||this;A.data={};return A};
_.O(oE,_.q);oE.prototype.dataChanged=function(){var A;((A=this.data)==null?0:A.class)&&_.Pj(this.hostElement,this.data.class,!0);var Q;((Q=this.oldData)==null?0:Q.class)&&_.Pj(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
oE.prototype.computeTimestampString=function(A){return Kq9.format(new Date(A/1E3))};
oE.prototype.dataChanged=oE.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],oE.prototype,"data",void 0);_.E([_.C({computed:"computeTimestampString(data.timestampUsec)"}),_.c("design:type",String)],oE.prototype,"timestampString",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oE.prototype,"dataChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],oE);
_.W(oE,"yt-live-chat-server-error-message",function(){if(l2p===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Mmy===void 0&&(Mmy=document.createElement("template"));var f=Mmy;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);l2p=A}A=l2p;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var iRM;var JWx;var tF=function(){var A=_.q.apply(this,arguments)||this;A.defaultToFilledIcon=!1;return A};
_.O(tF,_.q);tF.prototype.computeHasPrimaryColorIcon=function(A){return A==="SPARK"||A==="SPONSORSHIP_STAR"};
tF.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],tF.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tF.prototype,"defaultToFilledIcon",void 0);_.E([_.C(),_.c("design:type",Object)],tF.prototype,"data",void 0);
_.E([_.C({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.c("design:type",Boolean)],tF.prototype,"hasPrimaryColorIcon",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],tF);
_.W(tF,"yt-live-chat-viewer-engagement-message-renderer",function(){if(JWx===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;iRM===void 0&&(iRM=document.createElement("template"));var f=iRM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);JWx=A}A=JWx;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Vm$;var rS=function(){var A=_.q.apply(this,arguments)||this;A.modernUpdate=!1;A.buttonStyle="overlay";A.buttonType="filled";return A};
_.O(rS,_.q);rS.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
rS.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],rS.prototype,"modernUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],rS.prototype,"buttonStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],rS.prototype,"buttonType",void 0);
_.E([_.h({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],rS);
_.W(rS,"ytd-ad-hover-text-button-renderer",function(){if(Vm$!==void 0)return Vm$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Vm$=A},{mode:1});var ORW;var jG=function(){var A=_.q.apply(this,arguments)||this;A.buttonOverrides={size:"XS"};A.modern=_.K("web_button_rework");return A};
_.O(jG,_.q);jG.prototype.onHelpTap=function(A){this.data&&this.data.informationDialog&&(_.Bn(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),A.preventDefault(),A.stopPropagation())};
_.E([_.C(),_.c("design:type",Object)],jG.prototype,"buttonOverrides",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],jG.prototype,"modern",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jG.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],jG);
_.W(jG,"ytd-live-chat-purchased-product-message-renderer",function(){if(ORW!==void 0)return ORW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ORW=A},{mode:1});var nW1;var ktW;var RE=function(){var A=_.q.apply(this,arguments)||this;A.isContainerDeleted=!1;return A};
_.O(RE,_.q);RE.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
RE.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))};
RE.prototype.isContainerDeletedChanged=RE.prototype.isContainerDeletedChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],RE.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],RE.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],RE.prototype,"isContainerDeleted",void 0);
_.E([_.C(),_.c("design:type",String)],RE.prototype,"deletedStateMessage",void 0);_.E([_.iN("isContainerDeleted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],RE.prototype,"isContainerDeletedChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],RE);
_.W(RE,"ytd-sponsorships-live-chat-header-renderer",function(){if(ktW!==void 0)return ktW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ktW=A},{mode:1});var gS=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.O(gS,_.q);gS.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]]"}}}}}};
gS.prototype.onCtaButtonClick=function(){var A,Q=_.V((A=this.data)==null?void 0:A.optInPrompt,_.wE);if(A=this.maybeGetButtonCommand(Q)){var b;(b=_.IP())==null||b.clickCommand(A)}};
gS.prototype.maybeGetButtonCommand=function(A){return!A||!A.command||_.V(A.command,M3Y)===void 0&&_.V(A.command,Lc$)===void 0?null:A.command};
gS.prototype.shouldHideOptinPrompt=function(A,Q){return!A||Q};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],gS.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],gS.prototype,"modern",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],gS);
_.W(gS,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(nW1!==void 0)return nW1;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return nW1=A},{mode:1});var I2M;var eG=function(){return _.q.apply(this,arguments)||this};
_.O(eG,_.q);eG.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
eG.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))};
eG.prototype.isDeletedChanged=eG.prototype.isDeletedChanged;_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],eG.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],eG.prototype,"data",void 0);_.E([_.iN("isDeleted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],eG.prototype,"isDeletedChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],eG);
_.W(eG,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(I2M!==void 0)return I2M;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return I2M=A},{mode:1});var hF=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return A};
_.O(hF,_.q);_.d=hF.prototype;
_.d.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"}}}};
_.d.handleLiveChatAction=function(A){_.V(A,t_L)?this.handleMarkChatItemAsDeletedAction(_.V(A,t_L)):_.V(A,o4j)&&this.handleRemoveChatItemAction(_.V(A,o4j))};
_.d.handleLiveChatActions=function(A){A.forEach(this.handleLiveChatAction,this)};
_.d.handleMarkChatItemAsDeletedAction=function(A){var Q=this,b;((b=this.data)==null?0:b.items)&&this.data.items.forEach(function(f,a){var T=Object.keys(f)[0];Object.values(f)[0].id===A.targetItemId&&Q.markAsDeleted("data.items",a,T,A.deletedStateMessage,A.showOriginalContentMessage)})};
_.d.handleRemoveChatItemAction=function(A){var Q=this,b;((b=this.data)==null?0:b.items)&&this.data.items.forEach(function(f,a){Object.values(f)[0].id===A.targetItemId&&Q.splice("data.items",a,1)})};
_.d.markAsDeleted=function(A,Q,b,f,a){A=[A,Q,b].join(".");this.set(A+".deletedStateMessage",f);this.set(A+".showOriginalContentMessage",a)};
_.E([_.C(),_.c("design:type",Object)],hF.prototype,"data",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],hF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],hF);
_.W(hF,"yt-live-chat-item-display-list-renderer",function(){if(bRL===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;QUM===void 0&&(QUM=document.createElement("template"));var f=QUM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bRL=A}A=bRL;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var HR9;var CKW,qmp=function(){if(CKW!==void 0)return CKW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;HR9===void 0&&(HR9=document.createElement("template"));var f=HR9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return CKW=A};var Wb=function(){var A=_.q.apply(this,arguments)||this;A.isHeader=!1;return A};
_.O(Wb,_.q);Wb.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Qr.Object.defineProperties(Wb,{template:{configurable:!0,enumerable:!0,get:function(){return qmp()}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Wb.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Wb.prototype,"isHeader",void 0);_.E([_.Ec({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Wb);_.W(Wb,"yt-live-chat-item-display-renderer",function(){return qmp()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var oW1,tmN,eyp,gW$;
oW1={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}};tmN={home:"eohps",search:"eosps",watch:"eowps"};_.rWj=["watch","search","home"];
_.vb=function(){this.JSC$14183_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14183_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.vG("PRECONSTRUCTION_DELAY",0);this.signals_=_.y2();this.targetPage_=""};
_.vb.prototype.init=function(A,Q){A=A===void 0?"":A;Q=Q===void 0?null:Q;if(this.JSC$14183_isInitialized_)this.abort();else if(this.JSC$14183_isInitialized_=!0,A&&_.jUW(this,A),Q){var b=_.Yg(this.signals_,"pcl")?0:10,f=function(){for(var a=0,T;T=_.rWj[a++];)T!=A&&T!=Q&&this.pendingPages_.push(T);_.Ryv(this)}.bind(this);
this.signals_.parkOrScheduleJob(f,b,"pcl")}};
_.vb.prototype.abort=function(){this.fragmentJobId_&&(_.j7.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);gW$(this)};
_.jUW=function(A,Q){A.JSC$14183_isInitialized_&&!A.targetPage_&&(A.targetPage_=Q,eyp(A,Q),A.isInitialPass_=!1,eyp(A,Q),A.signals_.processSignal(tmN[A.targetPage_]),gW$(A),_.Ryv(A))};
_.Ryv=function(A){A.pendingPages_.length&&!A.pagePreparerJobId_&&(A.pagePreparerJobId_=_.Hv(_.j7,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.jUW(this,this.pendingPages_.shift())}.bind(A),A.DEFAULT_DELAY_))};
eyp=function(A,Q){if(Q=oW1[Q])for(var b in Q){var f=!1,a=b;b.charAt(0)=="~"&&(f=!0,a=b.substring(1));var T=Q[b];T=typeof T=="object"?T:{count:T};Q[b]=T;T.componentName=a;T.count>0&&(A.isInitialPass_?f||A.isSeenDuringInitialPass_[a]||(A.JSC$14183_queue_.push({componentName:a,count:1,signals:T.signals}),A.isSeenDuringInitialPass_[a]=!0,T.count--):A.JSC$14183_queue_.push(T))}};
gW$=function(A){A.JSC$14183_queue_.length=0;A.targetPage_="";A.isInitialPass_=!0;A.signals_.processSignal("eop")};
_.vb.getInstance=function(){return _.Tb(_.vb)};var hyv=function(){this.signals=_.y2();this.init()};
hyv.prototype.startPreconstruction=function(){_.vb.getInstance().init(_.Ep("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
hyv.prototype.init=function(){WqY(this);window.Polymer&&Ek$&&f_y();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var A=_.by.ytcsi;if(A&&A.gt&&(A=A.gt())&&A.tick&&(A.tick.aft>0||A.tick.pbs>0)&&(_.Ep("IS_HOMEPAGE_COLD")||_.Ep("IS_RESULTS_PAGE_COLD")||_.Ep("IS_WATCH_PAGE_COLD"))){vWK(this);break a}Xjy(NbX,this.onNotifications,this)}};
var WqY=function(A){var Q=function(){A.signals.processSignal("dl")};
document.readyState==="complete"?(_.wN(Error("sh"),"WARNING"),Q()):_.c8J(window,"load",Q)};
hyv.prototype.onNotifications=function(A){A.timer||(_.Ep("IS_HOMEPAGE_COLD")||_.Ep("IS_RESULTS_PAGE_COLD")||_.Ep("IS_WATCH_PAGE_COLD"))&&vWK(this)};
var vWK=function(A){A.signals.parkOrScheduleJob(function(){A.signals.processSignal("eocs")},10,"eor")};
new hyv;var EE,EWM=function(){return _.nc.apply(this,arguments)||this};
_.O(EWM,_.nc);_.d=EWM.prototype;_.d.enableActiveViewMeasurement=function(A){if(this.isActiveViewEnabled(A)){var Q=this.getUrlPrefixesFromCommand(A.viewableCommands);A=this.getUrlPrefixesFromCommand(A.endOfSessionCommands);if(!EE){var b=_.GP("custom_active_view_tos_timeout_ms");EE=b>0&&b!==36E5?new Ngb(this.getVersion(),b):new Ngb(this.getVersion())}mUb(EE,this.hostElement);AN9(EE,this.hostElement,Q,A)}};
_.d.stopActiveViewMeasurement=function(){EE&&mUb(EE,this.hostElement)};
_.d.isActiveViewEnabled=function(A){return!!A&&(this.hasAtLeastOneUrl(A.viewableCommands)||this.hasAtLeastOneUrl(A.endOfSessionCommands))};
_.d.hasAtLeastOneUrl=function(A){return!!A&&A.length>0&&A[0].loggingUrls!=null&&A[0].loggingUrls.length>0};
_.d.getVersion=function(){var A=_.vG("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
_.d.getUrlPrefixesFromCommand=function(A){if(!A)return[];var Q=[];A=_.F(A);for(var b=A.next();!b.done;b=A.next())if(b=b.value,b.loggingUrls){b=_.F(b.loggingUrls);for(var f=b.next();!f.done;f=b.next())f=f.value,f.baseUrl&&Q.push(f.baseUrl)}return Q};
_.E([_.kl()],EWM);var xX=[EWM.prototype];var xyy=function(){return _.nc.apply(this,arguments)||this};
_.O(xyy,_.nc);_.Qr.Object.defineProperties(xyy.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_entity_store_from_dependency_injection")?_.m5():_.QK()}}});
_.E([_.kl()],xyy);_.cb=[v3.prototype,xyy.prototype];var cWp=["ytd-rich-shelf-renderer"],zv=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;A.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";A.followUpDialogPromise=null;A.followUpDialogPromiseResolve=null;A.followUpDialogPromiseReject=null;return A};
_.O(zv,_.nc);_.d=zv.prototype;_.d.dismissibleItemIsDismissedChanged_=function(A){_.K("kevlar_fluid_dismiss")&&(A?_.Bn(this.hostElement,"yt-dismissible-item-dismissed"):_.Bn(this.hostElement,"yt-dismissible-item-undismissed"))};
_.d.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.d.dismissibleItemReset_=function(){var A=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 _.M3(function(Q,b){A.followUpDialogPromiseResolve=Q;A.followUpDialogPromiseReject=b});
_.Bn(this.hostElement,"yt-enable-lockup-interaction")};
_.d.dismissibleItemOnYtServiceRequestSent_=function(A,Q){Q.actions&&this.dismissibleItemProcessActions(Q.actions,A)};
_.d.dismissibleItemOnRequestSent=function(A){if(_.K("web_button_rework"))for(var Q=_.F(A.detail),b=Q.next();!b.done;b=Q.next()){var f=void 0;(b=(f=_.V(b.value,_.li))==null?void 0:f.actions)&&this.dismissibleItemProcessActions(b,A)}};
_.d.dismissibleItemOnCommandSent=function(A,Q){Q&&this.dismissibleItemProcessActions(Q,A)};
_.d.setAndGetDismissedContentId=function(A){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+A};
_.d.replayDismissAction=function(A){this.dismissibleItemProcessActions([A])};
_.d.dismissibleItemProcessActions=function(A,Q){for(var b=0;b<A.length;b++){var f=A[b],a=void 0;((a=_.V(f,_.LD))==null?0:a.commands)&&this.dismissibleItemProcessActions(_.V(f,_.LD).commands,Q);if(_.V(f,_.q8)){if(a=_.V(f,_.q8),!a.replaceParentSection||cWp.includes(this.hostElement.nodeName.toLowerCase()))a.groupDismissal&&wPU(this,a.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(a),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.HL("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:f})),f=void 0,(f=Q)==null||f.stopPropagation()}else if(_.V(f,oEv))this.dismissibleItemHandleHideEnclosingAction_(),f=void 0,(f=Q)==null||f.stopPropagation();else if(_.V(f,sHL))_.K("web_see_fewer_shorts_reactive_dismissal")&&(f=_.V(f,sHL),a=void 0,((a=f)==null?0:a.targetGroupId)&&wPU(this,{targetGroupId:f.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.HL("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:void 0})),f=void 0,(f=Q)==null||f.stopPropagation();else if(_.V(f,_.li))(f=_.V(f,_.li).actions)&&_.ST(this.hostElement,f,this.hostElement),f=void 0,(f=Q)==null||f.stopPropagation();else{var T=a=void 0;((a=_.V(f,_.uv))==null?void 0:a.signal)!=="TELL_US_WHY"||((T=_.V(f,_.uv))==null?0:T.targetId)&&_.K("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),f=void 0,(f=Q)==null||f.stopPropagation())}}};
_.d.dismissibleItemOnYtServiceRequestCompleted_=function(A,Q){var b=this.get("feedbackResponses.0.followUpDialog",Q.data);b?this.followUpDialogPromiseResolve(b):Q.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(Q.actions,A)};
_.d.dismissibleItemHandleReplaceEnclosingAction_=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0;var Q=null;(Q=_.Bj(this.hostElement).querySelector("#dismissed"))&&_.mL(this,function(){_.Ng(Q)});
_.Bn(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.d.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.d.dismissibleItemHandleUndoFeedbackAction_=function(){_.Bn(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.d.dismissibleItemHandleTellUsWhySignalAction_=function(){var A=this;this.followUpDialogPromise.then(function(Q){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:Q}})})};
zv.prototype.dismissibleItemOnYtServiceRequestCompleted_=zv.prototype.dismissibleItemOnYtServiceRequestCompleted_;zv.prototype.dismissibleItemOnCommandSent=zv.prototype.dismissibleItemOnCommandSent;zv.prototype.dismissibleItemOnRequestSent=zv.prototype.dismissibleItemOnRequestSent;zv.prototype.dismissibleItemOnYtServiceRequestSent_=zv.prototype.dismissibleItemOnYtServiceRequestSent_;zv.prototype.dismissibleItemDataChanged_=zv.prototype.dismissibleItemDataChanged_;
zv.prototype.dismissibleItemIsDismissedChanged_=zv.prototype.dismissibleItemIsDismissedChanged_;_.E([_.I(_.aE),_.c("design:type",Object)],zv.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],zv.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zv.prototype,"isDismissed",void 0);_.E([_.C(),_.c("design:type",Object)],zv.prototype,"dismissedRenderer",void 0);
_.E([_.iN("isDismissed"),_.c("design:type",Function),_.c("design:paramtypes",[Boolean]),_.c("design:returntype")],zv.prototype,"dismissibleItemIsDismissedChanged_",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zv.prototype,"dismissibleItemDataChanged_",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],zv.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.E([_.Kc("yt-service-request-sent-button-renderer"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],zv.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.Kc("yt-dismissible-item-action"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Array]),_.c("design:returntype")],zv.prototype,"dismissibleItemOnCommandSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],zv.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.E([_.kl()],zv);_.wS=[_.aE,_.cb,zv.prototype];var uF=function(){var A=_.nc.apply(this,arguments)||this;A.disableGridStateAware=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};A.currentGridClass="";return A};
_.O(uF,_.nc);uF.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.mL(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var A=this.gridStateAwareGetElement();_.Pj(A,"grid",!0)}};
uF.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
uF.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Bj(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
uF.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var A="grid-disabled";else{A=_.nON.getInstance();var Q=this.get("pageSubtype");A=Q&&J_1.includes(Q)?"grid-disabled":A.currentSnapState_?A.currentSnapState_.className:null}(Q=this.gridStateAwareGetElement())&&A!==this.currentGridClass&&(A&&_.Pj(Q,A,!0),this.currentGridClass&&_.Pj(Q,this.currentGridClass,!1),this.currentGridClass=A)};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],uF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",String)],uF.prototype,"gridStateAwareSizingElementSelector",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uF.prototype,"disableGridStateAware",void 0);_.E([_.kl()],uF);_.ZJ=[uF.prototype,_.PJ.YtActionHandlerBehavior];_.yU=new _.TS("GUIDE_TOKEN");var DJ;_.YX={};DJ=function(){var A=_.nc.apply(this,arguments)||this;A.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 A};
_.O(DJ,_.nc);_.d=DJ.prototype;_.d.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.d.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var A=_.fJ().resolve(_.bu(_.yU));A&&(this.guidePersistentAndVisible=A.getGuidePersistentAndVisible(),this.activeEndpoint=A.getActiveEndpoint(),this.guideOpened=A.getGuideOpened(),this.miniGuideVisible=A.getMiniGuideVisible())};
_.d.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.d.handleGuideStateAction=function(A){this.guidePersistentAndVisible=A};
_.d.handleMiniGuideStateAction=function(A){this.miniGuideVisible=A};
_.d.handleGuideOpenedAction=function(A){this.guideOpened=A};
_.d.handleActiveEndpointAction=function(A){this.activeEndpoint=A};
DJ.prototype.onActiveEndpointChange=DJ.prototype.onActiveEndpointChange;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],DJ.prototype,"guidePersistentAndVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],DJ.prototype,"miniGuideVisible",void 0);_.E([_.C(),_.c("design:type",Object)],DJ.prototype,"activeEndpoint",void 0);
_.E([_.iN("activeEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],DJ.prototype,"onActiveEndpointChange",null);_.E([_.C(),_.c("design:type",Boolean)],DJ.prototype,"guideOpened",void 0);_.E([_.kl()],DJ);_.YX.YtdGuideStateAwareBehavior=[];_.YX.YtdGuideStateAwareBehavior.push(DJ.prototype,_.PJ.YtActionHandlerBehavior);var zyK=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],$X=function(){var A=_.nc.apply(this,arguments)||this;A.hoverJobId=0;A.JSC$14214_touched=!1;return A};
_.O($X,_.nc);_.d=$X.prototype;_.d.created=function(){this.useExpandableTooltip=!zyK.includes(this.is)};
_.d.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.d.detached=function(){this.useExpandableTooltip=!1};
_.d.lockupOnDown=function(A){this.interactionElement&&!_.TG(_.mW(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.d.lockupOnUp=function(A){this.interactionElement&&!_.TG(_.mW(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.d.onTouchStart=function(){this.JSC$14214_touched=!0};
_.d.lockupOnMouseEnter=function(){var A=this,Q=_.GP("kevlar_lockup_hover_delay",-1);this.JSC$14214_touched&&Q>=0?(_.j7.cancelJob(this.hoverJobId),this.hoverJobId=_.j7.addJob(function(){A.lockupIsHovered=!0},8,Q),this.JSC$14214_touched=!1):this.lockupIsHovered=!0};
_.d.lockupOnMouseLeave=function(){this.hoverJobId&&(_.j7.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.d.lockupOnPopupClosed=function(A,Q){var b;((b=Q.popupRenderer)==null?void 0:b.is)==="ytd-menu-popup-renderer"&&(A=Q.popupRenderer.veData,Q=_.WR(),A&&Q&&_.DV(Q,[A]))};
_.d.lockupOnLockupRequested=function(A){var Q=A.detail.videoIds[0],b;A.detail&&Q===((b=this.data)==null?void 0:b.videoId)&&(A.detail.returnValue=[this.data])};
_.d.lockupOnYtServiceRequestSent=function(A,Q){if(A=Q.actions)for(var b=0;b<A.length;b++){var f=A[b];if(f.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&Q.ajaxPromise){var a=void 0,T=(a=_.V(Q.endpoint,_.xj))==null?void 0:a.playlistId;a=void 0;f=(a=f.removedVideoId)!=null?a:"";Z8K(_.$g(),f,T)}else f.action==="ACTION_REMOVE_VIDEO"&&Q.ajaxPromise&&(T=void 0,f=(T=f.setVideoId)!=null?T:"",_.yZL(_.$g(),f))}};
_.d.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.d.lockupOnLockupEnabled=function(){if(!this.$){var A=_.fJ().resolve(_.F7).getCurrentPage(),Q=this.getParentRenderer?this.getParentRenderer():void 0;_.Wv(new _.IO("component not ready",this.is,this.isAttached,A==null?void 0:A.is,Q==null?void 0:Q.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
$X.prototype.lockupOnLockupEnabled=$X.prototype.lockupOnLockupEnabled;$X.prototype.lockupOnLockupDisabled=$X.prototype.lockupOnLockupDisabled;$X.prototype.lockupOnYtServiceRequestSent=$X.prototype.lockupOnYtServiceRequestSent;$X.prototype.lockupOnLockupRequested=$X.prototype.lockupOnLockupRequested;$X.prototype.lockupOnPopupClosed=$X.prototype.lockupOnPopupClosed;$X.prototype.lockupOnMouseLeave=$X.prototype.lockupOnMouseLeave;$X.prototype.lockupOnMouseEnter=$X.prototype.lockupOnMouseEnter;
$X.prototype.onTouchStart=$X.prototype.onTouchStart;$X.prototype.lockupOnUp=$X.prototype.lockupOnUp;$X.prototype.lockupOnDown=$X.prototype.lockupOnDown;_.E([_.C(),_.c("design:type",Object)],$X.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],$X.prototype,"lockupIsHovered",void 0);_.E([_.C(),_.c("design:type",Boolean)],$X.prototype,"lockupTouchTriggered",void 0);_.E([_.C(),_.c("design:type",Boolean)],$X.prototype,"useExpandableTooltip",void 0);
_.E([_.V1("#interaction"),_.c("design:type",Object)],$X.prototype,"interactionElement",void 0);_.E([_.Kc("down"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],$X.prototype,"lockupOnDown",null);_.E([_.Kc("up"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],$X.prototype,"lockupOnUp",null);
_.E([_.Kc("touchstart"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$X.prototype,"onTouchStart",null);_.E([_.Kc("mouseenter"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$X.prototype,"lockupOnMouseEnter",null);_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$X.prototype,"lockupOnMouseLeave",null);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],$X.prototype,"lockupOnPopupClosed",null);_.E([_.Kc("yt-lockup-requested"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],$X.prototype,"lockupOnLockupRequested",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],$X.prototype,"lockupOnYtServiceRequestSent",null);_.E([_.Kc("yt-disable-lockup-interaction"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$X.prototype,"lockupOnLockupDisabled",null);
_.E([_.Kc("yt-enable-lockup-interaction"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$X.prototype,"lockupOnLockupEnabled",null);_.E([_.kl()],$X);_.NC=[$X.prototype];_.wPK={YtdReduxBehavior:[]};_.wPK.YtdReduxBehavior.push.apply(_.wPK.YtdReduxBehavior,_.cb);var sE=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;A.disableNowPlaying=!1;A.disableTooltips=!1;A.useHoveredProperty=!1;A.hovered=!1;A.isThumbnailHovered_=!1;A.addBackground=_.K("kevlar_thumbnail_bg");A.nowPlaying=!1;A.disableRounding=!1;A.size="small";return A};
_.O(sE,_.nc);_.d=sE.prototype;_.d.computeThumbnailOverlaySidePanelWidth_=function(A,Q){return A-Q};
_.d.computeSize=function(A,Q){if(!this.disableRounding){if(!A&&!Q)return"small";A=Math.max(A||0,Q||0);return A>=256?"large":A>=96?"medium":"small"}};
_.d.computeFinalHoveredState_=function(A,Q,b){return this.nowPlaying?!1:_.K("kevlar_thumbnail_fluid")&&A?Q:b};
_.d.computeHoverOverlays_=function(A,Q){return A&&Q?Q:void 0};
_.d.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.d.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.d.checkMiniplayer_=function(){var A;if(((A=this.data)==null?0:A.playlistSetVideoId)&&_.K("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{A=_.kg();var Q=A.currentEndpoint;!this.disableNowPlaying&&Q&&_.V(Q,_.sv)&&this.data?(Q=_.V(Q,_.sv),this.nowPlaying=this.data.playlistId?Q.playlistId===this.data.playlistId:Q.videoId===this.data.videoId,this.isVideoPlaying=A==null?void 0:A.isVideoPlaying):this.nowPlaying=!1}};
sE.prototype.checkMiniplayer_=sE.prototype.checkMiniplayer_;sE.prototype.onMouseLeave_=sE.prototype.onMouseLeave_;sE.prototype.onMouseEnter_=sE.prototype.onMouseEnter_;sE.prototype.computeHoverOverlays_=sE.prototype.computeHoverOverlays_;sE.prototype.computeFinalHoveredState_=sE.prototype.computeFinalHoveredState_;sE.prototype.computeSize=sE.prototype.computeSize;sE.prototype.computeThumbnailOverlaySidePanelWidth_=sE.prototype.computeThumbnailOverlaySidePanelWidth_;
_.E([_.I(_.cb),_.c("design:type",Object)],sE.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sE.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],sE.prototype,"height",void 0);_.E([_.C(),_.c("design:type",Boolean)],sE.prototype,"bottomSidePanel",void 0);_.E([_.C(),_.c("design:type",Number)],sE.prototype,"width",void 0);_.E([_.C(),_.c("design:type",Object)],sE.prototype,"disableNowPlaying",void 0);
_.E([_.C({selector:_.WO}),_.c("design:type",Boolean)],sE.prototype,"miniplayerIsActive",void 0);_.E([_.C(),_.c("design:type",Object)],sE.prototype,"disableTooltips",void 0);_.E([_.C(),_.c("design:type",Object)],sE.prototype,"useHoveredProperty",void 0);_.E([_.C(),_.c("design:type",Object)],sE.prototype,"hovered",void 0);_.E([_.C(),_.c("design:type",Object)],sE.prototype,"isThumbnailHovered_",void 0);
_.E([_.C({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.c("design:type",Boolean)],sE.prototype,"finalHoveredState_",void 0);_.E([_.C({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.c("design:type",Number)],sE.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sE.prototype,"addBackground",void 0);
_.E([_.C({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.c("design:type",Object)],sE.prototype,"hoverOverlays_",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sE.prototype,"nowPlaying",void 0);_.E([_.C(),_.c("design:type",Boolean)],sE.prototype,"isVideoPlaying",void 0);_.E([_.C(),_.c("design:type",Object)],sE.prototype,"disableRounding",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.c("design:type",Object)],sE.prototype,"size",void 0);_.E([_.Kc("mouseenter"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sE.prototype,"onMouseEnter_",null);_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sE.prototype,"onMouseLeave_",null);
_.E([_.iN("data","disableNowPlaying","miniplayerIsActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sE.prototype,"checkMiniplayer_",null);_.E([_.kl()],sE);var uyx=[sE.prototype];_.mx={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(A,Q){return A+":"+_.YC(Q)},
getPlayerListener_:function(A,Q,b){A=this.getPlayerListenerKey_(A,Q);Q=this.playerListeners_.get(A);b&&this.playerListeners_.delete(A);return Q},
savePlayerListener_:function(A,Q){var b=Q.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(A,Q),b);return b},
listenToPlayerEvent:function(A,Q,b){b=this.savePlayerListener_(Q,b);A.addEventListener(Q,b)},
listenToPlayerEvents:function(A,Q){Q.forEach(function(b,f){this.listenToPlayerEvent(A,f,b)}.bind(this))},
unlistenFromPlayerEvent:function(A,Q,b){b=this.getPlayerListener_(Q,b,!0);A.removeEventListener(Q,b)},
unlistenFromPlayerEvents:function(A,Q){Q.forEach(function(b,f){this.unlistenFromPlayerEvent(A,f,b)}.bind(this))}}};
_.AC=function(){};_.ZRY=new _.TS("PLAYER_API_TOKEN");var NZ4=!1,Qm6,my6=!1,fZX;var X7=function(A,Q,b,f,a){_.k$.call(this);var T=this;this.playerId=Q;this.webPlayerContextConfig=f;this.gVY=a;this.sBH=!1;this.api={};this.w1B=this.kmH=null;this.tEA=new _.KJ;this.so={};this.aCH=this.qJK=this.elementId=this.aLE=this.config=null;this.iLA=!1;this.wk=this.uT4=null;this.hy4={};this.tRA=["onReady"];this.lastError=null;this.fpu=NaN;this.cMf={};this.qbg=0;this.rA=this.targetElement=A;_.SY(this,this.tEA);yWN(this);b?this.qbg=setTimeout(function(){T.loadNewVideoConfig(b)},0):f&&(Ymy(this),
Dyv(this))};
_.O(X7,_.k$);X7.prototype.getId=function(){return this.playerId};
X7.prototype.loadNewVideoConfig=function(A){if(!this.isDisposed()){this.qbg&&(clearTimeout(this.qbg),this.qbg=0);var Q=A||{};Q instanceof fJW||(Q=new fJW(Q));this.config=Q;this.setConfig(A);Dyv(this);this.isReady()&&$yj(this)}};
var Ymy=function(A){var Q;A.webPlayerContextConfig?Q=A.webPlayerContextConfig.rootElementId:Q=A.config.attrs.id;A.elementId=Q||A.elementId;A.elementId==="video-player"&&(A.elementId=A.playerId,A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.playerId:A.config.attrs.id=A.playerId);var b;((b=A.rA)==null?void 0:b.id)===A.elementId&&(A.elementId+="-player",A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.elementId:A.config.attrs.id=A.elementId)};
X7.prototype.setConfig=function(A){this.aLE=A;this.config=NZv(A);Ymy(this);if(!this.qJK){var Q;this.qJK=sUj(this,((Q=this.config.args)==null?void 0:Q.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var b;if((b=this.config)==null?0:b.attrs)A=this.config.attrs,(Q=A.width)&&this.rA&&(this.rA.style.width=ck(Number(Q)||Q,!0)),(A=A.height)&&this.rA&&(this.rA.style.height=ck(Number(A)||A,!0))};
var $yj=function(A){if(A.config&&A.config.loaded!==!0)if(A.config.loaded=!0,!A.config.args||A.config.args.autoplay!=="0"&&A.config.args.autoplay!==0&&A.config.args.autoplay!==!1){var Q;A.api.loadVideoByPlayerVars((Q=A.config.args)!=null?Q:null)}else A.api.cueVideoByPlayerVars(A.config.args)},Aa1=function(A){var Q=!0,b=A.getPlayerElement();
b&&A.config&&(Q=b.dataset.version===myN(A));return Q&&!!_.zV("yt.player.Application.create")},Dyv=function(A){if(!A.isDisposed()&&!A.iLA){var Q=Aa1(A);
if(Q&&(A.getPlayerElement()?"html5":null)==="html5")A.aCH="html5",A.isReady()||QmN(A);else if(bPj(A),A.aCH="html5",Q&&A.wk&&A.targetElement)A.targetElement.appendChild(A.wk),QmN(A);else{A.config&&(A.config.loaded=!0);var b=!1;A.uT4=function(){b=!0;var f=fZr(A,"player_bootstrap_method")?_.zV("yt.player.Application.createAlternate")||_.zV("yt.player.Application.create"):_.zV("yt.player.Application.create");var a=A.config?NZv(A.config):void 0;f&&f(A.targetElement,a,A.webPlayerContextConfig,A.gVY);QmN(A)};
A.iLA=!0;Q?A.uT4():(_.uh(myN(A),A.uT4),(Q=aZY(A))&&lmA(Q||""),TIL(A)&&!b&&_.Al("yt.player.Application.create",null))}}};
X7.prototype.getPlayerElement=function(){var A=_.PL(document,this.elementId);!A&&this.rA&&this.rA.querySelector&&(A=this.rA.querySelector("#"+this.elementId));return A};
var QmN=function(A){if(!A.isDisposed()){var Q=A.getPlayerElement(),b=!1;Q&&Q.getApiInterface&&Q.getApiInterface()&&(b=!0);if(b){A.iLA=!1;if(!fZr(A,"html5_remove_not_servable_check_killswitch")){var f;if((Q==null?0:Q.isNotServable)&&A.config&&(Q==null?0:Q.isNotServable((f=A.config.args)==null?void 0:f.video_id)))return}dG$(A)}else A.fpu=setTimeout(function(){QmN(A)},50)}},dG$=function(A){yWN(A);
A.sBH=!0;var Q=A.getPlayerElement();if(Q){A.kmH=Fbr(A,Q,"addEventListener");A.w1B=Fbr(A,Q,"removeEventListener");var b=Q.getApiInterface();b=b.concat(Q.getInternalApiInterface());for(var f=A.api,a=0;a<b.length;a++){var T=b[a];f[T]||(f[T]=Fbr(A,Q,T))}}for(var G in A.so)A.so.hasOwnProperty(G)&&A.kmH&&A.kmH(G,A.so[G]);$yj(A);A.qJK&&A.qJK(A.api);A.tEA.publish("onReady",A.api)},Fbr=function(A,Q,b){var f=Q[b];
return function(){var a=_.E$.apply(0,arguments);try{return A.lastError=null,f.apply(Q,a)}catch(T){if(b!=="sendAbandonmentPing")throw T.params=b,A.lastError=T,a=new _.IO("PlayerProxy error in method call",{error:T,method:b,playerId:A.playerId}),a.level="WARNING",a;}}},yWN=function(A){A.sBH=!1;
if(A.w1B)for(var Q in A.so)A.so.hasOwnProperty(Q)&&A.w1B(Q,A.so[Q]);for(var b in A.cMf)A.cMf.hasOwnProperty(b)&&clearTimeout(Number(b));A.cMf={};A.kmH=null;A.w1B=null;Q=A.api;for(var f in Q)Q.hasOwnProperty(f)&&(Q[f]=null);Q.addEventListener=function(a,T){A.addEventListener(a,T)};
Q.removeEventListener=function(a,T){A.removeEventListener(a,T)};
Q.destroy=function(){A.dispose()};
Q.getLastError=function(){return A.getLastError()};
Q.getPlayerType=function(){return A.getPlayerType()};
Q.getCurrentVideoConfig=function(){return A.aLE};
Q.loadNewVideoConfig=function(a){A.loadNewVideoConfig(a)};
Q.isReady=function(){return A.isReady()}};
X7.prototype.isReady=function(){return this.sBH};
X7.prototype.addEventListener=function(A,Q){var b=this;this.isDisposed();var f=sUj(this,Q);f&&(_.ve(this.tRA,A)||this.so[A]||(Q=GjK(this,A),this.kmH&&this.kmH(A,Q)),this.tEA.subscribe(A,f),A==="onReady"&&this.isReady()&&setTimeout(function(){f(b.api)},0))};
X7.prototype.removeEventListener=function(A,Q){this.isDisposed()||(Q=sUj(this,Q))&&this.tEA.unsubscribe(A,Q)};
var sUj=function(A,Q){var b=Q;if(typeof Q==="string"){if(A.hy4[Q])return A.hy4[Q];b=function(){var f=_.E$.apply(0,arguments),a=_.zV(Q);if(a)try{a.apply(_.by,f)}catch(T){throw f=new _.IO("PlayerProxy error when executing callback",{error:T}),f.level="ERROR",f;}};
A.hy4[Q]=b}return b?b:null},GjK=function(A,Q){var b=function(f){var a=function(){A.isDisposed();
if(!A.isDisposed())try{A.tEA.publish(Q,f!=null?f:void 0)}catch(p){var G=new _.IO("PlayerProxy error when creating global callback",{error:p.message,event:Q,playerId:A.playerId,data:f,originalStack:p.stack,componentStack:p.componentStack});G.level="WARNING";throw G;}};
if(fZr(A,"web_player_publish_events_immediately"))a();else{var T=setTimeout(function(){a();_.j2.remove(A.cMf,String(T))},0);
_.j2.add(A.cMf,String(T),!0)}};
return A.so[Q]=b};
X7.prototype.getPlayerType=function(){return this.aCH||(this.getPlayerElement()?"html5":null)};
X7.prototype.getLastError=function(){return this.lastError};
var bPj=function(A){A.cancel();yWN(A);A.aCH=null;A.config&&(A.config.loaded=!1);var Q=A.getPlayerElement();Q&&(Aa1(A)||!TIL(A)?A.wk=Q:(Q&&Q.destroy&&Q.destroy(),A.wk=null));A.targetElement&&_.gh(A.targetElement)};
X7.prototype.cancel=function(){this.uT4&&_.ZUW(myN(this),this.uT4);clearTimeout(this.fpu);this.iLA=!1};
X7.prototype.disposeInternal=function(){bPj(this);if(this.wk&&this.config&&this.wk.destroy)try{this.wk.destroy()}catch(Q){var A=new _.IO("PlayerProxy error during disposal",{error:Q});A.level="ERROR";throw A;}this.hy4=null;for(A in this.so)this.so.hasOwnProperty(A)&&delete this.so[A];this.aLE=this.config=this.api=null;delete this.targetElement;delete this.rA;_.k$.prototype.disposeInternal.call(this)};
var TIL=function(A){var Q,b;A=(Q=A.config)==null?void 0:(b=Q.args)==null?void 0:b.fflags;return!!A&&A.indexOf("player_destroy_old_version=true")!==-1},myN=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.jsUrl:(A=A.config.assets)?A.js:""},aZY=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.cssUrl:(A=A.config.assets)?A.css:""},fZr=function(A,Q){if(A.webPlayerContextConfig)var b=A.webPlayerContextConfig.serializedExperimentFlags;
else{var f;if((f=A.config)==null?0:f.args)b=A.config.args.fflags}return(b||"").split("&").includes(Q+"=true")},NZv=function(A){for(var Q={},b=_.F(Object.keys(A)),f=b.next();!f.done;f=b.next()){f=f.value;
var a=A[f];Q[f]=typeof a==="object"?_.j2.clone(a):a}return Q};var GjU={},FbX="player_uid_"+(Math.random()*1E9>>>0);var QP=function(A,Q,b,f,a,T){Q=Q===void 0?document.createElement("div"):Q;this.webPlayerContextConfig=A;this.container=Q;this.commandResolver=b;this.apiResolver=PU4();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Mj;f||T?BIp(this):pup(this);this.pendingPlayerResponse=f;this.pendingWatchNextResponse=a;this.pendingPlayerVars=T;PUv(this)};
QP.prototype.loadVideoWithPlayerResponse=function(A,Q,b){this.loadVideo(A,Q,b)};
QP.prototype.loadVideoWithPlayerVars=function(A){return this.loadVideo(void 0,void 0,A)};
QP.prototype.destroy=function(A){if(A=_.PL(document,A))A=FbX+"_"+_.YC(A),(A=GjU[A])&&A.dispose()};
var S6W=function(A,Q){var b;_.B(function(f){if(f.nextAddress==1)return A.pendingWatchNextResponse=Q,A.synchronousApi?(b=A.synchronousApi,f.jumpTo(2)):f.yield(A.api,3);f.nextAddress!=2&&(b=f.yieldResult);if(!Xup(A,b))return f.return();A.pendingWatchNextResponse&&(b.updateVideoData({raw_watch_next_response:A.pendingWatchNextResponse}),A.pendingWatchNextResponse=void 0);_.Oi(f)})},Xup=function(A,Q){var b;
if(!(Q==null?0:(b=Q.isReady)==null?0:b.call(Q))){var f;_.Wv(new _.IO("playerApi is falsey",{synchronousApi:A.synchronousApi,apiResolved:A.apiResolver.resolved,playerApiUndefined:Q===void 0,playerApiNull:Q===null,playerApiReady:(Q==null?void 0:(f=Q.isReady)==null?void 0:f.call(Q))===!0,playerApiMethods:Q?Object.keys(Q):[]}));return!1}return!0},UGy=function(A,Q){if(typeof A[Q]==="function")return A[Q]()},LbL=function(A){var Q=window,b,f=(b=Q.ytplayer)==null?void 0:b.bootstrapPlayerContainer;
if((b=f==null?void 0:f.firstElementChild)&&_.Z7(b,"html5-video-player")){var a,T,G=(a=Q.ytplayer)==null?void 0:(T=a.bootstrapWebPlayerContextConfig)==null?void 0:T.contextId;a=A.webPlayerContextConfig.contextId;if(G&&G===a){f!==A.container&&(f=!1,UGy(b,"getPlayerState")===2&&(f=!0),A.container.appendChild(b),f||UGy(b,"playVideo"));var p;if((p=Q.ytplayer)==null?0:p.bootstrapPlayerResponse)A.bootstrapPlayerResponse=Q.ytplayer.bootstrapPlayerResponse}}},PUv=function(A){var Q,b,f,a,T;
_.B(function(G){if(G.nextAddress==1)return A.pageReadyOrDataAvailable?G.jumpTo(2):G.yield(A.pageReadyOrDataAvailableResolver.promise,2);if(G.nextAddress!=4)return!_.K("kevlar_player_unified_player_loading")||sUJ()&&AaC()?G.jumpTo(4):G.yield(TIi(),4);LbL(A);if(A.pendingPlayerResponse||A.pendingPlayerVars)Q=dGF(A.pendingPlayerResponse,A.pendingWatchNextResponse,A.pendingPlayerVars),A.pendingPlayerResponse&&A.pendingPlayerResponse===A.bootstrapPlayerResponse&&(Q.loaded=!0),A.bootstrapPlayerResponse=
void 0;b=puY(A.container,Q,A.webPlayerContextConfig);((f=Q)==null?0:f.loaded)&&A.pendingWatchNextResponse?(S6W(A,A.pendingWatchNextResponse),A.pendingPlayerResponse=void 0,A.pendingPlayerVars=void 0):MR$(A);a=function(p){b.removeEventListener("onReady",a);A.synchronousApi=p;A.apiResolver.resolve(p)};
b.addEventListener("onReady",a);A.commandResolver!==void 0&&(T=A.commandResolver,b.addEventListener("innertubeCommand",function(p){T(p)}));
_.Oi(G)})};
QP.prototype.loadVideo=function(A,Q,b){var f=this,a,T,G,p,P,U,L,M,l;return _.B(function(J){if(J.nextAddress==1)return f.pendingPlayerResponse=A,f.pendingWatchNextResponse=Q,f.pendingPlayerVars=b,BIp(f),f.synchronousApi?(a=f.synchronousApi,J.jumpTo(2)):J.yield(f.api,3);J.nextAddress!=2&&(a=J.yieldResult);if(!Xup(f,a))return J.return(new Promise(function(){}));
G=new Promise(function(n){T=n});
p=function(){var n=a.getPlayerResponse();n&&(a.removeEventListener("onVideoDataChange",p),T(n))};
a.addEventListener("onVideoDataChange",p);if(f.pendingPlayerResponse||f.pendingPlayerVars)f.pendingPlayerResponse&&f.pendingPlayerResponse===f.bootstrapPlayerResponse?(T(f.pendingPlayerResponse),f.pendingWatchNextResponse&&S6W(f,f.pendingWatchNextResponse)):(P=dGF(f.pendingPlayerResponse,f.pendingWatchNextResponse,f.pendingPlayerVars),(l=(U=f.pendingPlayerResponse)==null?void 0:(L=U.playerConfig)==null?void 0:(M=L.playbackStartConfig)==null?void 0:M.startPaused)?a.cueVideoByPlayerVars(P.args):a.loadVideoByPlayerVars(P.args)),
MR$(f),f.bootstrapPlayerResponse=void 0;return J.return(G)})};
var pup=function(A){if(document.readyState==="complete"||document.readyState==="interactive")BIp(A);else{var Q=function(){document.removeEventListener("DOMContentLoaded",Q);BIp(A)};
document.addEventListener("DOMContentLoaded",Q)}},BIp=function(A){A.pageReadyOrDataAvailable=!0;
A.pageReadyOrDataAvailableResolver.resolve()},MR$=function(A){A.pendingPlayerResponse=void 0;
A.pendingWatchNextResponse=void 0;A.pendingPlayerVars=void 0};
_.Qr.Object.defineProperties(QP.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var bV=function(A){vB.call(this,A===void 0?"document_active":A);var Q=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(b){Q.transition("document_disposed",{event:b})});
window.addEventListener("beforeunload",function(b){Q.transition("document_disposed_preventable",{event:b})});
window.addEventListener("unload",function(b){Q.transition("document_disposed",{event:b});Q.hasRun=new Map})};
_.O(bV,vB);
bV.prototype.runPreventableDispose=function(A,Q){if(!this.hasRun.get("document_disposed_preventable")){A(Q==null?void 0:Q.event);var b,f;if((Q==null?0:(b=Q.event)==null?0:b.defaultPrevented)||(Q==null?0:(f=Q.event)==null?0:f.returnValue)){Q.event.returnValue||(Q.event.returnValue=!0);Q.event.defaultPrevented||Q.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")};
bV.prototype.runDispose=function(A,Q){this.hasRun.get("document_disposed")?this.transition("document_active"):(A(Q==null?void 0:Q.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
bV.prototype.runFlush=function(A,Q){A(Q==null?void 0:Q.event);this.transition("document_active")};
bV.prototype.runActive=function(){};var fa=function(A){vB.call(this,A===void 0?"document_visibility_unknown":A);var Q=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(b){document.visibilityState==="visible"?Q.transition("document_visible",{event:b}):Q.transition("document_hidden",
{event:b})});
_.K("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(b){Q.transition("document_backgrounded",{event:b})}),window.addEventListener("focus",function(b){Q.transition("document_foregrounded",{event:b})}))};
_.O(fa,vB);fa.prototype.runVisible=function(A,Q){A(Q==null?void 0:Q.event);_.K("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
fa.prototype.runHidden=function(A,Q){A(Q==null?void 0:Q.event);_.K("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
fa.prototype.runBackgrounded=function(A,Q){A(Q==null?void 0:Q.event)};
fa.prototype.runForegrounded=function(A,Q){A(Q==null?void 0:Q.event)};var aS=function(){this.teardownLifecycle=new bV;this.visibilityLifecycle=new fa};
aS.prototype.install=function(){var A=_.E$.apply(0,arguments),Q=this;A.forEach(function(b){Q.teardownLifecycle.install(b)});
A.forEach(function(b){Q.visibilityLifecycle.install(b)})};var TT=function(){aS.call(this);var A={};this.install((A.document_disposed={callback:this.abortSlisAndFlush},A));_.K("combine_ve_grafts")&&(A={},this.install((A.document_disposed={callback:this.flushInteractionLoggingAttachVes},A)));A={};this.install((A.flush_logs={callback:this.logFinalPayload},A));_.K("web_log_cfg_cee_ks")||_.Hv(_.j7,lZv)};
_.O(TT,aS);var XuY=function(){TT.loggingInstance||(TT.loggingInstance=new TT);return TT.loggingInstance};
TT.prototype.logFinalPayload=function(){if(_.K("web_fp_via_jspb")){var A=new UWL,Q=_.WR();Q&&_.nt(A,1,Q);Q=_.K("jspb_sparse_encoded_pivot")?new I4([{}]):new I4;_.Ms(Q,380,L7v,A);ekF("finalPayload",Q);_.K("web_fp_via_jspb_and_json")&&_.R4("finalPayload",{csn:_.WR()})}else _.R4("finalPayload",{csn:_.WR()})};
TT.prototype.abortSlisAndFlush=function(){c9N(N8);sq!=null&&sq.flush()};
TT.prototype.flushInteractionLoggingAttachVes=function(){d0r(_.IP())};
var lZv=function(){var A=_.vG("CLIENT_EXPERIMENT_EVENTS");if(A){var Q=DfJ();A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=b.value,Q(b)&&_.R4("genericClientExperimentEvent",{eventType:b});delete _.gN.CLIENT_EXPERIMENT_EVENTS}};var KbL={};
KbL.YtPlayerBehavior=[_.mx.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 A=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Mj;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;S6A(function(){A.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Wt(this,"pan-down"),_.K("kevlar_pinch_fullscreen")&&_.jN().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.K("kevlar_pinch_fullscreen")&&_.jN().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(A,Q,b){var f=this;SJ(this.useUnifiedPlayer_());if(this.mainAppPlayer_)SJ(!1,"MainAppPlayer already created.");else{var a=_.K("kevlar_player_container_query_killswitch")?this.$.container:_.Bj(this.hostElement).querySelector("#container");this.mainAppPlayer_=new QP(this.getWebPlayerContextConfig_(),a,function(T){return _.V0(T,f.hostElement)},A,Q,b);
this.mainAppPlayer_.api.then(function(T){f.player_=T;f.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&anx.resolve(T)})}},
loadVideoWithPlayerResponse:function(A,Q){var b=this;if(this.useUnifiedPlayer_()){var f=this.watchNextData,a,T=(a=A.videoDetails)==null?void 0:a.videoId,G,p,P;(a=(G=this.watchNextData)==null?void 0:(p=G.currentVideoEndpoint)==null?void 0:(P=p.watchEndpoint)==null?void 0:P.videoId)&&T!=a&&(f=void 0,_.K("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(A,f,Q):this.createMainAppPlayer_(A,f,Q);this.mainAppPlayer_.api.then(function(){_.Bn(b.hostElement,
"yt-player-updated")})}else this.update(Ym9(A,Q))},
loadVideoWithPlayerVars:function(A){var Q=this;this.useUnifiedPlayer_()?(_.K("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(A):this.createMainAppPlayer_(void 0,void 0,A),this.mainAppPlayer_.api.then(function(){_.Bn(Q.hostElement,"yt-player-updated")})):this.update({args:A})},
update:function(A){var Q=this;if(this.useUnifiedPlayer_())SJ(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(A);var b=Q1b(A.args);b&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==b&&Object.assign(A.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(A).then(function(f){_.Bn(Q.hostElement,"yt-player-updated",_.K("kevlar_player_updated_obsolete_player_killswitch")?
f:void 0)})}_.hq(new _.IO("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.getPlayerPromise(),2);b=f.yieldResult;if(!b)throw Error("uh");A&&Q.updatePlayerPlaylist_(A);_.Oi(f)})},
acquireApi_:function(A){var Q=this;if(this.useUnifiedPlayer_())SJ(!1,"Invalid method call in kevlar_unified_player.");else return _.j7.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(SJ(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(b){Q.shouldAutoplay_(A)?b.loadVideoByPlayerVars(A.args):b.cueVideoByPlayerVars(A.args)})):this.initPlayerPromise_=this.initPlayerContainer_(A),this.initPlayerPromise_},
initPlayerContainer_:function(A){var Q=this;if(this.useUnifiedPlayer_())SJ(!1,"Invalid method call in kevlar_unified_player.");else return SJ(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Wv(Error("vh")),SJ(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.K("kevlar_player_container_query_killswitch")?this.$.container:_.Bj(this.hostElement).querySelector("#container"),TIi().then(function(){var b=Q.initPlayer_(A);Q.playerResolver_.resolve(b);
return b})},
onPlayerReady_:function(A,Q){this.useUnifiedPlayer_()?SJ(!1,"Invalid method call in kevlar_unified_player."):(A.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&anx.resolve(A),Q(A))},
maybeCallApiMethodOnElement_:function(A,Q){if(typeof A[Q]==="function")return A[Q]()},
maybeAdoptBootstrapPlayer_:function(){var A=window,Q,b=(Q=A.ytplayer)==null?void 0:Q.bootstrapPlayerContainer;if((Q=b==null?void 0:b.firstElementChild)&&Q.classList.contains("html5-video-player")){var f,a,T=(f=A.ytplayer)==null?void 0:(a=f.bootstrapWebPlayerContextConfig)==null?void 0:a.contextId;f=this.getWebPlayerContextConfig_().contextId;if(T&&T===f){b!==this.playerContainer_&&(b=!1,this.maybeCallApiMethodOnElement_(Q,"getPlayerState")===2&&(b=!0),this.playerContainer_.appendChild(Q),b||this.maybeCallApiMethodOnElement_(Q,
"playVideo"));var G;if((G=A.ytplayer)==null?0:G.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=A.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(A){var Q=this;if(this.useUnifiedPlayer_())SJ(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(b){Q.maybeAdoptBootstrapPlayer_();var f=A?Dy4(A):void 0;f&&f==Q.bootstrapPlayerResponse_&&(A.loaded=!0);f=Q.playerContainer_;var a=Q.getWebPlayerContextConfig_();f=puY(f,A,a);Q.player_=f;Q.onPlayerReadyEvent_=Q.onPlayerReady_.bind(Q,Q.player_,b);Q.player_.addEventListener("onReady",Q.onPlayerReadyEvent_);Q.player_.addEventListener("innertubeCommand",
Q.onPlayerInnerTubeCommand_.bind(Q));_.K("enable_web_shorts_captions_language_command")&&Q.player_.addEventListener("captionschanged",Q.storePlayerCaptionLanguage_.bind(Q))})},
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(A){A.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(A){A.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var A=_.fJ().resolve(_.F7).getCurrentPage();A&&A.getScrollTop()<=0?_.Wt(this,"pan-down"):_.Wt(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()||A.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()&&A.toggleFullscreen()})},
updatePlayerPlaylist_:function(A){var Q=this,b,f,a;return _.B(function(T){if(T.nextAddress==1)return b=_.fJ().resolve(_.bu(_.u$)),f=!!(b&&b.playlistComponent&&b.playlistComponent.loopOn),T.yield(Q.getPlayerPromise(),2);var G=a=T.yieldResult,p=G.updatePlaylist,P=[];if(_.K("kevlar_player_playlist_use_local_index")){var U,L;var M=(L=(U=A.localCurrentIndex)!=null?U:A.currentIndex)!=null?L:0}else{var l;M=(l=A.currentIndex)!=null?l:0}if(A.contents)for(U=0;U<A.contents.length;U++)if((L=A.contents[U])&&L.playlistPanelVideoRenderer)if(Yn6(L)){L=
L.playlistPanelVideoRenderer;l="";L.shortBylineText&&(l=_.mO(L.shortBylineText));var J="";L.title?J=_.mO(L.title):L.unplayableText&&(J=_.mO(L.unplayableText));P.push({author:l,title:J,encrypted_id:L.videoId})}else U<M&&--M;p.call(G,{index:M,list:A.playlistId?A.playlistId:"",loop:f,playlist_title:A.title,playlist_length:P.length,video:P,fetch:0,external_list:"1",title:A.title?A.title:"",playlist_author:A.ownerName?_.mO(A.ownerName):void 0});_.Oi(T)})},
focusOnPlayer:function(){_.mL(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var A=this.playerContainer_.querySelector(".html5-video-player");A&&(_.d8(_.fJ().resolve(_.Wz)),A.focus())}})},
preparePlayer:function(){var A=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(Q){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")Q();else{var b=function(){document.removeEventListener("DOMContentLoaded",b);Q()};
document.addEventListener("DOMContentLoaded",b)}})).then(function(){return TIi()}).then(function(){A.initPlayerPromise_||A.preparePlayerJobId_||(A.preparePlayerJobId_=_.Hv(_.j7,function(){A.initPlayerPromise_||(A.initPlayerPromise_=A.initPlayerContainer_())}))}):_.hq(new _.IO("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(A){this.useUnifiedPlayer_()?SJ(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(A)||(A.args.autoplay="0")},
shouldAutoplay_:function(A){if(this.useUnifiedPlayer_())SJ(!1,"Invalid method call in kevlar_unified_player.");else{var Q=this.get("args.el",A);return Q&&Q!="detailpage"&&this.isMiniplayerActive_()||Q&&(Q=="sponsorshipsoffer"||Q=="handlesclaiming")&&this.get("args.autoplay",A)=="0"?!1:(A=Dy4(A))&&this.get("playerConfig.playbackStartConfig.startPaused",A)?!1:!0}},
isMiniplayerActive_:function(){return _.fJ().resolve(_.zb).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var A=this.getPlayer();if(A){var Q=A.getPlayerState();_.K("kevlar_player_check_ad_state_on_stop")&&(Q=A.getPlayerState(A.getPresentingPlayerType()));Q!=5&&A.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(A,Q,b){b=b===void 0?!1:b;var f=this,a,T,G,p;return _.B(function(P){if(P.nextAddress==1)return Q||(Q=f.hostElement),a=f.useUnifiedPlayer_()?!!f.mainAppPlayer_:!!f.initPlayerPromise_,a?P.yield(f.getPlayerPromise(),2):(b?A.insertBefore(Q,A.firstChild):A.appendChild(Q),P.return());T=P.yieldResult;G=T.getPlayerState(T.getPresentingPlayerType());p=!1;if(G==-1||G==1||G==3)p=!0;b?A.insertBefore(Q,A.firstChild):A.appendChild(Q);p&&T.playVideo();T.setSize(NaN,NaN);_.Oi(P)})},
watchNextDataChanged_:function(A){var Q=this;A&&(this.useUnifiedPlayer_()&&_.K("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&S6W(this.mainAppPlayer_,A):this.getPlayerPromise().then(function(b){b.updateVideoData(Q.computeWatchNextPlayerVars_(A))}))},
computeWatchNextPlayerVars_:function(A){if(this.useUnifiedPlayer_()&&_.K("kevlar_unified_player_update_watch_next_killswitch"))SJ(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:A}},
maybeSendAbandonmentPing_:function(){var A=this.getPlayer();A&&A.getPlayerState()!=5&&A.getPlayerState()!=0&&A.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var A=_.vG("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(A=Object.assign({},A),A.rootElementId=this.playerId);A.serializedExperimentIds&&A.serializedExperimentFlags||_.Wv(Error("wh"));return A},
hasWebPlayerContextConfig_:function(){return!!_.vG("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(A){this.useUnifiedPlayer_()?SJ(!1,"Invalid method call in kevlar_unified_player."):_.V0(A,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(A){var Q=_.fJ().resolve(_.H3);A=A==null?void 0:A.getOption("captions","track");var b=_.LO("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(A){var f,a=(f=_.I$(_.Sm6,b)())==null?void 0:f.value,T;f=typeof(A==null?void 0:A.translationLanguage)==="object"&&((T=A.translationLanguage)==null?void 0:T.languageName)||A.displayName||"";a!==f&&Q.store.dispatch(_.HL("stringEntity",b,{key:b,value:f.toString()}))}else Q.store.dispatch(_.HL("stringEntity",
b,{key:b,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var A=_.K("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.K("kevlar_unified_player")||A}}];var iPj={};iPj.YtPlaylistPanelBehavior=[_.Z.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(A){A=A.detail;if(A.actions.loop!=void 0||A.actions["yt-icons:loop"]!=void 0)this.loopOn=A.actions.loop||A.actions["yt-icons:loop"];if(A.actions.shuffle!=void 0||A.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=A.actions.shuffle||A.actions["yt-icons:shuffle"]},
setMenuData_:function(A){if(!A||!A.playlistButtons||A.isInfinite)return null;for(var Q=A.playlistButtons.menuRenderer.topLevelButtons,b=Q.length,f=0;f<b;f++)if(Q[f].toggleButtonRenderer){var a=Q[f].toggleButtonRenderer;a.defaultIcon.iconType=="LOOP"&&this.loopOn?a.isToggled=this.loopOn:a.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(a.isToggled=this.shuffleOn)}return A.playlistButtons}}];var Jav=function(A){p1.call(this,A,132);this.isDocument=A===document.documentElement};
_.O(Jav,p1);Jav.prototype.calculateScrollDelta=function(A,Q,b){var f=0;A<Q?f=A<Q-100?-48:-8:A>Q+b&&(f=A>Q+b+100?48:8);return f};
Jav.prototype.JSC$11281_onMouseMove=function(A){this.isDocument||(A.clientX=A.event_.pageX,A.clientY=A.event_.pageY);p1.prototype.JSC$11281_onMouseMove.call(this,A)};var FN=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;A.scrollElement=document.documentElement;A.JSC$14273_dragListGroup=null;A.dragScrollSupport=null;A.onDraggerCreated=function(Q){var b=Q.JSC$11277_dragger;b.scrollTarget_=A.scrollElement;Q=Q.draggerEl;b&&Q.menuOpened&&b.setEnabled(!1)};
A.onDragStart=function(Q){var b=Q.draggerEl;Q=Q.currDragItem;var f=Object.assign({},Q==null?void 0:Q.data);f.trackingParams=void 0;b.data=f;b.style.position="absolute";b.style.width=(Q==null?void 0:Q.clientWidth)+"px";b.style.zIndex="2030";b.onDrag&&b.onDrag();_.K("web_owner_document_fallback_killswitch")?(Q=document.querySelector("ytd-app"))&&_.Bj(Q).appendChild(b):(Q=_.h3(b),(f=Q.querySelector("ytd-app"))?_.Bj(f).appendChild(b):Q.body.appendChild(b));A.dragScrollSupport=new Jav(A.scrollElement);
A.dragScrollSupport.horizontalScrolling_=!1;b=A.dragScrollSupport;b.constrainScroll_=!!b.margin_&&!1};
A.onDrop=function(Q){A.handleDrop(Q);A.dragScrollSupport&&(_.AT(A.dragScrollSupport),A.dragScrollSupport=null)};
A.onReorderableScroll=function(){if(A.JSC$14273_dragListGroup){var Q=A.JSC$14273_dragListGroup;GUK(Q,Q.currDragItem_)}};
return A};
_.O(FN,_.nc);FN.prototype.detached=function(){_.VRp(this)};
_.VRp=function(A){A.JSC$14273_dragListGroup&&(_.kp(A.JSC$14273_dragListGroup,mj$,A.onDragStart),_.kp(A.JSC$14273_dragListGroup,fwp,A.onDragStart),A.JSC$14273_dragListGroup.dispose(),A.JSC$14273_dragListGroup=null);A.dragScrollSupport&&(_.AT(A.dragScrollSupport),A.dragScrollSupport=null);A.scrollElement.removeEventListener("scroll",A.onReorderableScroll)};
_.OP1=function(A,Q,b,f){f=f===void 0?"":f;_.VRp(A);b&&(A.scrollElement=b);A.JSC$14273_dragListGroup=new u_;A.JSC$14273_dragListGroup.hysteresisDistance_=2;Tnx(A.JSC$14273_dragListGroup,Q);A.JSC$14273_dragListGroup.draggerElClasses_=SA("dragging").split(" ");f&&dJW(A.JSC$14273_dragListGroup,function(a){var T=a||document,G=null;T.getElementsByClassName?G=T.getElementsByClassName(f)[0]:G=E1p("*",f,a);return G||a});
_.jM(A.JSC$14273_dragListGroup,N6L,A.onDraggerCreated);_.jM(A.JSC$14273_dragListGroup,mj$,A.onDragStart);_.jM(A.JSC$14273_dragListGroup,fwp,A.onDrop);A.JSC$14273_dragListGroup.init();A.scrollElement.addEventListener("scroll",A.onReorderableScroll,{passive:!0})};
FN.prototype.handleDrop=function(){};
_.Qr.Object.defineProperties(FN.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.E([_.C({value:100}),_.c("design:type",Number)],FN.prototype,"scrollMargin",void 0);_.E([_.kl()],FN);_.n9L=[FN.prototype];_.GT={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(A,Q,b){var f=this.getClickTarget_(Q);if(f&&this.isClickAllowed_(f)){Q.preventDefault();A=(0,_.j2.unsafeClone)(A);var a=this.getContainerBoundingRect();Q=this.getRelativeClickXy_(Q,a);this.expandEndpointUrlMacros_(A,{NX:Q[0],NY:Q[1],NB:f.code});b&&this.truncateWebCommendMetadataUrl_(A);_.Bn(this.hostElement,"yt-navigate",{endpoint:A})}},
getClickTarget_:function(A){if(!this.clickTargetMap)return null;A=_.mW(A)||[];A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;if(Q===_.Bj(this.hostElement).querySelector("#menu"))break;if(Q=this.clickTargetMap.get(Q.id))return Q}return null},
getRelativeClickXy_:function(A,Q){var b=A.detail.x,f=A.detail.y;_.K("use_on_click_for_desktop_display_ad")&&A.clientX!=null&&A.clientY!=null&&(b=A.clientX,f=A.clientY);A=Math.round(b-Q.left);Q=Math.round(f-Q.top);return A<0||Q<0?[null,null]:[A,Q]},
getContainerBoundingRect:function(){return _.Bj(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(A,Q){for(var b=_.F(A.loggingUrls||[]),f=b.next();!f.done;f=b.next())f=f.value,f.baseUrl&&(f.baseUrl=sLX(f.baseUrl,Q));A.urlEndpoint&&A.urlEndpoint.url&&(A.urlEndpoint.url=sLX(A.urlEndpoint.url,Q));A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url&&(A.commandMetadata.webCommandMetadata.url=sLX(A.commandMetadata.webCommandMetadata.url,Q))},
truncateWebCommendMetadataUrl_:function(A){if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url){var Q=A.commandMetadata.webCommandMetadata.url,b=Q.indexOf("&pp=");if(b>0){var f=Q.indexOf("&",b+1);A.commandMetadata.webCommandMetadata.url=f>b&&f<Q.length?Q.slice(0,b)+Q.slice(f):Q.slice(0,b)}}},
configureClickTargets:function(A,Q,b){this.containerId=A;this.clickTargetMap=new Map;A=_.F(Q);for(Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.location){var f=b.get(Q.location);f&&(_.Pj(_.Bj(this.hostElement).querySelector("#"+f),"yt-simple-endpoint",this.isClickAllowed_(Q)),this.clickTargetMap.set(f,Q))}},
isClickAllowed_:function(A){return A.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.BF={};
_.BF.YtLazyListBehavior=[_.du.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 A=(this.constructor.generatedFrom||this).observers;A||(A=[]);A.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
A}},
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 A=this.renderElementsOutsideVisibleArea_;A&&(Lh$(A,4),A.processSignal())},
deepLazyListObserver_:function(A){var Q=this;if(A){var b=A.value||[];if(this.itemsPath==A.path){var f=this.nonDeferredItemCount;A=0;f>-1&&b.length>f&&(A=_.vG("REMAINING_DOVA_DEFERRED_CHUNKS",-1));A>0?(f>0&&(f=b.slice(0,f),this.setInitialItemsOnDataChanged(f)),(f=this.renderElementsOutsideVisibleArea_)?f.cancel():(f=this.renderElementsOutsideVisibleArea_=new _.GW(2,"eocs"),_.c8J(window,"scroll",function(){return Q.renderDeferredElements()})),_.BJ(f,function(){Q.setInitialItemsOnDataChanged(b)}),_.e6("REMAINING_DOVA_DEFERRED_CHUNKS",
A-1)):this.setInitialItemsOnDataChanged(b)}else if(this.itemsPath+".splices"==A.path)this.onItemsUpdated_(b);
else f="shownItems"+A.path.substr(this.itemsPath.length),this.useSignals&&f==="shownItems.length"||this.notifyPath(f,A.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(A){A&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(A),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(A){A=A.indexSplices;for(var Q=0,b=A.length;Q<b;Q++){var f=A[Q];if(f.index<this.shownCount&&(f.removed&&this.splice("shownItems",f.index,f.removed.length),f.addedCount)){var a=f.object.slice(f.index,f.index+f.addedCount);f=["shownItems",f.index,0];f.push.apply(f,a);this.splice.apply(this,f)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(A){this.cancelPendingTasks_();A||(A=[]);this.items_=A;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&&(_.Ep("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.mL(this,this.tryRenderChunk_)))},
fillRange_:function(A,Q){this.canShowMore&&this.items_&&(A=this.items_.slice(A,Q),A.unshift("shownItems"),this.push.apply(this,A),this.shownCount=Q,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var A=this;this.canShowMore&&_.Yl(this,"renderChunk",function(){A.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Ep("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.o$(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var A=this.renderElementsOutsideVisibleArea_;A&&(A.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var A=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(A-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=A;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(A){return Math.ceil(1E3/A)},
onCanShowMoreUpdated_:function(A){this.data&&this.items_!==null&&(A?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(A){!this.shouldUseTaskManager()&&this.data&&(!A&&this.canShowMore?(_.Hfy(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):A&&this.partiallyRenderedItems_.has(this.items_)&&(_.K("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var XN;_.pa={};
XN=function(){var A=_.nc.apply(this,arguments)||this;A.atStart=!0;A.atEnd=!0;A.startIndex=0;A.endIndex=0;A.scrollCount=0;A.initialStartIndex=0;A.disableScrollEventListener=!1;A.useFloorScrolling=!1;A.isSearch=!1;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.disableWheelScroll=!1;A.centerListItems=!1;A.offset=0;A.minComponentWidth=0;A.marginWidthRight=0;A.marginWidthLeft=0;A.setButtonsStateRequested=!1;A.itemsVisibilityObserver=null;A.fullyVisibleItemsIndices=[];A.JSC$14284_onWheelScroll=function(Q){if(A.isSearch&&
!A.disableWheelScroll&&_.K("desktop_enable_dmpanel_wheel_scroll")){var b=Q.shiftKey?Math.abs(Q.deltaY)>Math.abs(Q.deltaX)?Q.deltaY:Q.deltaX:Q.deltaX;b!==0&&(Q.preventDefault(),A.ytLazyListBehavior.fillRemainingListItems(),A.offset+=b,PF(A),A.reposition_())}};
A.onPointerDown=function(Q){kjN(A)&&(A.dragMouseStart=Q.clientX,A.dragOffsetStart=A.offset,A.dragging=!0)};
A.onPointerMove=function(Q){kjN(A)&&A.dragging&&(A.ytLazyListBehavior.fillRemainingListItems(),A.offset=A.dragOffsetStart-(Q.clientX-A.dragMouseStart),PF(A),A.reposition_())};
A.onPointerUp=function(){kjN(A)&&(A.dragging=!1)};
return A};
_.O(XN,_.nc);var IZr=function(A){var Q=_.Bj(A.hostElement).querySelector("#items").children;if(!Q)return 0;var b=0;A=_.F(A.fullyVisibleItemsIndices);for(var f=A.next();!f.done;f=A.next())b+=Q[f.value].clientWidth;return b},kjN=function(A){return A.isSearch&&_.K("desktop_enable_dmpanel_click_drag_scroll")};
XN.prototype.created=function(){this.cachedViewportWidth=_.vG("initialInnerWidth")||window.innerWidth;this.JSC$14284_cachedViewportHeight=_.vG("initialInnerHeight")||window.innerHeight;_.vG("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.e6("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
XN.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.K("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();HPr(this)};
XN.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.K("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var A;(A=this.itemsVisibilityObserver)==null||A.disconnect();this.itemsVisibilityObserver=null;var Q;(Q=this.itemsObserver)==null||Q.disconnect()};
var HPr=function(A){var Q=_.Bj(A.hostElement).querySelector("#scroll-container");if(Q){if(!A.itemsVisibilityObserver){var b=window.getComputedStyle(Q).marginRight;A.itemsVisibilityObserver=new IntersectionObserver(function(f){CU1(A,f)},{root:Q,
rootMargin:b,threshold:.98})}if(Q=_.Bj(A.hostElement).querySelector("#items"))A.itemsObserver=new WON(Q,function(f){q6Y(A,f)})}},q6Y=function(A,Q){o9p(A)&&(Array.from(Q.addedNodes).filter(function(b){return b.nodeType===Node.ELEMENT_NODE}).forEach(function(b){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.observe(b)}),Array.from(Q.removedNodes).filter(function(b){return b.nodeType===Node.ELEMENT_NODE}).forEach(function(b){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.unobserve(b)}))},
CU1=function(A,Q){var b=new Set(A.fullyVisibleItemsIndices);
Q=_.F(Q);for(var f=Q.next();!f.done;f=Q.next()){f=f.value;var a=f.target.parentElement;a?(a=Array.from(a.children).indexOf(f.target),f.isIntersecting?b.add(a):b.has(a)&&b.delete(a)):_.Wv(new _.IO("Parent element not found",f.target.nodeName))}A.fullyVisibleItemsIndices=Array.from(b).sort(function(T,G){return T-G});
b.size===0?_.Wv(new _.IO("No visible entries in horizontal list")):(A.startIndex=A.fullyVisibleItemsIndices[0],A.endIndex=A.fullyVisibleItemsIndices[A.fullyVisibleItemsIndices.length-1])},o9p=function(A){A.data?A=(A=A.data)&&A.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===A.itemSizeConstraint:!1:A=!1;
return A};
_.d=XN.prototype;_.d.addScrollEventListeners=function(){var A=_.Bj(this.hostElement).querySelector("#scroll-container");A.style.touchAction="pan-y";A.addEventListener("wheel",this.JSC$14284_onWheelScroll);A.addEventListener("pointerdown",this.onPointerDown);A.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.d.removeScrollEventListeners=function(){var A=_.Bj(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.JSC$14284_onWheelScroll);A.removeEventListener("pointerdown",this.onPointerDown);A.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.d.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.mL(this,this.setStartIndex,[this.initialStartIndex])};
_.d.reposition_=function(){var A=_.vG("HTML_DIR")=="rtl"?"":"-",Q=_.Bj(this.hostElement).querySelector("#items");Q&&(Q.style.transform="translateX("+A+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.d.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.mL(this,this.setButtonsState_))};
_.d.setButtonsState_=function(){this.setButtonsStateRequested=!1;var A=_.Bj(this.hostElement).querySelector("#items").firstElementChild;if(A){this.minComponentWidth||(this.minComponentWidth=tRr(this,A));A=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;var Q=_.Bj(this.hostElement).querySelector("#items");Q=_.K("kevlar_horizontal_list_scroll_width_killswitch")?Q.clientWidth:Q.scrollWidth;var b=this.get(this.ytLazyListBehavior.itemsPath,this);if(b){var f=Math.round(A/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+f,b.length)-1)}this.ytLazyListBehavior.canShowMore?Q+this.minComponentWidth>=this.offset+A&&(this.atEnd=!1):this.atEnd=this.offset+A>=Q-20?!0:!1;this.atStart=this.offset<=20}};
_.d.setStartIndex=function(A){if(!this.minComponentWidth){var Q=_.Bj(this.hostElement).querySelector("#items").firstElementChild;if(!Q)return;this.minComponentWidth=tRr(this,Q)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*A;PF(this);this.reposition_()};
_.d.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Kn();var A=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;_.K("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=tRr(this,_.Bj(this.hostElement).querySelector("#items").firstElementChild));A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&raW(this);this.offset+=o9p(this)?
IZr(this):A*this.minComponentWidth;PF(this);this.reposition_();this.scrollCount++};
_.d.prevClick_=function(){var A=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=o9p(this)?IZr(this):this.minComponentWidth*this.scrollCount-1):this.offset-=o9p(this)?IZr(this):A*this.minComponentWidth;this.centerListItems&&raW(this);PF(this);this.reposition_()};
_.d.onIronResize_=function(){this.resizeSupportEnabled&&_.mL(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.d.onItemsTransitionEnd_=function(A){_.Au(A)===_.Bj(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.d.onChildElementFocus_=function(A){A=A.target.closest("#items > *");var Q=_.Bj(this.hostElement).querySelector("#scroll-container");if(Q.contains(A)){if(_.K("web_horizontal_list_behavior_focus_killswitch"))if(A.offsetLeft<this.offset)this.offset=Math.abs(A.offsetLeft)<A.clientWidth?0:A.offsetLeft;else if(A.offsetLeft+A.clientWidth>this.offset+Q.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Kn(),this.offset=A.offsetLeft+A.clientWidth-Q.clientWidth;else return;else{var b=_.Bj(this.hostElement).querySelector("#items"),
f=_.vG("HTML_DIR")==="rtl",a=f?b.clientWidth-A.offsetLeft:A.offsetLeft;b=f?b.clientWidth-(A.offsetLeft+A.clientWidth):A.offsetLeft+A.clientWidth;var T=f?a>this.offset+Q.clientWidth:a<this.offset,G=f?b<this.offset:b>this.offset+Q.clientWidth,p=f?T:G;if(f?G:T)Q=f?b:a,this.offset=Math.abs(Q)<A.clientWidth?0:Q;else if(p)this.ytLazyListBehavior.fillRemainingListItems(),_.Kn(),this.offset=(f?a:b)-Q.clientWidth;else return}PF(this);this.reposition_()}};
_.d.observeShownItems_=function(){this.reset()};
_.d.checkComponentWidthResize=function(){var A=_.Bj(this.hostElement).querySelector("#items").firstElementChild;A&&(A=tRr(this,A),this.centerListItems||A!==this.minComponentWidth)&&(this.minComponentWidth=A,this.offset=A*this.scrollCount,this.centerListItems&&raW(this),PF(this),this.reposition_())};
var tRr=function(A,Q){var b=window.getComputedStyle(Q).marginRight;b=Math.floor(Number(b.replace("px","")));var f=window.getComputedStyle(Q).marginLeft;f=Math.floor(Number(f.replace("px","")));A.centerListItems&&!A.marginWidthRight&&(A.marginWidthRight=b,A.marginWidthLeft=f);return A.resizeSupportEnabled?Q.getBoundingClientRect().width+b:Q.offsetWidth+b},PF=function(A){var Q=_.Bj(A.hostElement).querySelector("#scroll-container").clientWidth,b=_.Bj(A.hostElement).querySelector("#items").clientWidth;
A.offset<0?A.offset=0:A.offset+Q>=b&&(A.offset=b-Q)},raW=function(A){A.offset-=(_.Bj(A.hostElement).querySelector("#scroll-container").clientWidth+A.marginWidthRight-A.minComponentWidth)/2-A.marginWidthLeft};
_.Qr.Object.defineProperties(XN.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var A=_.vG("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(A==-1)A=this.JSC$14284_cachedViewportHeight,A=A>1320?5:A>1020?4:A>730?3:A>430?2:1;else if(A==0)return 0;_.e6("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",A-1);A=_.vG("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(A>-1)return A;A=this.cachedViewportWidth;A=A>1600?6:A>1400?5:A>1300?4:A>1090?5:A>870?4:A>660?3:2;_.e6("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
A);return A},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.K("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
XN.prototype.observeShownItems_=XN.prototype.observeShownItems_;XN.prototype.onChildElementFocus_=XN.prototype.onChildElementFocus_;XN.prototype.onItemsTransitionEnd_=XN.prototype.onItemsTransitionEnd_;XN.prototype.onIronResize_=XN.prototype.onIronResize_;XN.prototype.prevClick_=XN.prototype.prevClick_;XN.prototype.nextClick_=XN.prototype.nextClick_;XN.prototype.setButtonsState_=XN.prototype.setButtonsState_;XN.prototype.requestButtonsStateUpdate_=XN.prototype.requestButtonsStateUpdate_;
XN.prototype.reposition_=XN.prototype.reposition_;XN.prototype.reset=XN.prototype.reset;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],XN.prototype,"ytLazyListBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],XN.prototype,"atStart",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],XN.prototype,"atEnd",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"startIndex",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"endIndex",void 0);_.E([_.C({value:6}),_.c("design:type",Number)],XN.prototype,"initialCount",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"scrollCount",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"initialStartIndex",void 0);
_.E([_.C(),_.c("design:type",Object)],XN.prototype,"disableScrollEventListener",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"supportComponentResize",void 0);_.E([_.C({value:function(){var A=this;return function(){return A.prevClick_()}}}),
_.c("design:type",Function)],XN.prototype,"boundPrevClick",void 0);_.E([_.C({value:function(){var A=this;return function(){return A.nextClick_()}}}),
_.c("design:type",Function)],XN.prototype,"boundNextClick",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"useFloorScrolling",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"isSearch",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"dragging",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"dragMouseStart",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"dragOffsetStart",void 0);
_.E([_.C(),_.c("design:type",Object)],XN.prototype,"disableWheelScroll",void 0);_.E([_.C(),_.c("design:type",Object)],XN.prototype,"centerListItems",void 0);_.E([_.Kc("iron-resize"),_.iN("guideOpened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XN.prototype,"onIronResize_",null);_.E([_.Kc("transitionend"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],XN.prototype,"onItemsTransitionEnd_",null);
_.E([_.Kc("focusin"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],XN.prototype,"onChildElementFocus_",null);_.E([_.iN("shownItems"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XN.prototype,"observeShownItems_",null);_.E([_.kl()],XN);_.pa.YtdHorizontalListBehavior=[];_.pa.YtdHorizontalListBehavior.push(_.eI,_.Z.YtRendererBehavior,_.BF.YtLazyListBehavior,_.YX.YtdGuideStateAwareBehavior,XN.prototype);var Lbb=["APP_STATE","PI"];var jmL=_.sC(["about:blank"]),RPv={pushState:window.history.pushState,replaceState:window.history.replaceState};var S4=function(A){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=A;this.internalPushState=A.pushState.bind(A);this.internalReplaceState=A.replaceState.bind(A)};
S4.prototype.init=function(){this.initialized=!0};
S4.prototype.pushState=function(A,Q){this.initialized||this.init();this.internalPushState&&this.internalPushState(A,"",Q)};
S4.prototype.replaceState=function(A,Q){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(A,"",Q)};
S4.prototype.getState=function(){return this.history&&this.history.state};var g9v=function(A){var Q=function(){var b=A.apply(this,arguments)||this;b.boundHistoryPushState=!1;b.boundHistoryReplaceState=!1;b.debugInfo={};return b};
_.O(Q,A);Q.prototype.init=function(){var b=_.KK("IFRAME");_.Zi(b,_.GH(jmL));b.sandbox="allow-same-origin";b.style.display="none";this.iframe=b;document.body.appendChild(b);this.bindHistoryStateFunctions();A.prototype.init.call(this)};
Q.prototype.bindHistoryStateFunctions=function(){var b=this,f=[],a;this.iframe&&((a=this.iframe.contentWindow)==null?0:a.history)&&(a=this.iframe.contentWindow.history)&&(f.push(a),Object.getPrototypeOf(a)&&f.push(Object.getPrototypeOf(a)));window.history&&f.push(window.history);a=window.history;Object.getPrototypeOf(a)&&f.push(Object.getPrototypeOf(a));f.push(RPv);a=function(G){for(var p=null,P=0;P<f.length;P++){var U=f[P][G];if(typeof U==="function"){p=U.bind(window.history);b.debugInfo[G]=P;break}}return p};
if(!this.boundHistoryReplaceState){var T=a("replaceState");T&&(this.internalReplaceState=T,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(a=a("pushState"))&&(this.internalPushState=a,this.boundHistoryPushState=!0)};
return Q}(S4),ePx=function(){return g9v.call(this,window.history)||this};
_.O(ePx,g9v);ePx.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var UP=function(A){this.browserHistory=A;this.initialized=!1};
UP.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
UP.prototype.pushState=function(A,Q){this.initialized||this.init();this.browserHistory.pushState(A,Q)};
UP.prototype.replaceState=function(A,Q){this.initialized||this.init();this.browserHistory.replaceState(A,Q)};
UP.prototype.handlePopstate=function(A){return A.state};_.hPp=function(A,Q,b,f,a){this.endpoint=A;this.forward=Q;this.historyEntry=b;this.JSC$29943_savedComponentState=f;this.legacyBorder=a===void 0?!1:a};var WbN=function(A,Q){this.rootData=A;this.scrollTop=Q};var tb=new _.TS("PAGE_REQUEST_TOKEN"),uoM=new _.TS("FETCH_PBJ_TOKEN");_.La=new _.TS("EPHEMERAL_STORE_TOKEN");_.M6=function(A){this.data=Object.assign({},A);var Q;(Q=this.data.innertubeResponse)==null||delete Q.frameworkUpdates};
_.M6.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.f4)()};
_.Fw=function(A){return Object.assign({},A.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var v91=function(){this.maxSize=100;this.timeToDataCache=new Map};
v91.prototype.get=function(A){var Q=this.timeToDataCache.get(A);Q&&(this.timeToDataCache.delete(A),this.timeToDataCache.set(A,Q));if(Q&&Q.rootData&&(_.K("web_use_response_store_for_history_cache")||_.K("mweb_use_new_history_manager"))){var b=_.fJ().resolve(_.La),f=E9r(Q),a=!!f;if(f){if(f.content){var T=lV(b,f.content);a&&T?Q.rootData.response=_.Fw(T):a=!1}f.player&&(T=lV(b,f.player),a&&T?Q.rootData.playerResponse=_.Fw(T):a=!1);f.reelSequence&&(b=lV(b,f.reelSequence),a&&b?Q.rootData.reelWatchSequenceResponse=
_.Fw(b):a=!1)}a||(this.timeToDataCache.delete(A),Q=void 0)}return Q};
v91.prototype.set=function(A,Q){if(Q.rootData&&(_.K("web_use_response_store_for_history_cache")||_.K("mweb_use_new_history_manager"))){var b=E9r(Q),f=Object.assign({},Q.rootData);b&&(b.content&&Q.rootData.response&&(xGp(this,b.content,Q.rootData.response),f.response=null),b.player&&Q.rootData.playerResponse&&(xGp(this,b.player,Q.rootData.playerResponse),f.playerResponse=null),b.reelSequence&&Q.rootData.reelWatchSequenceResponse&&(xGp(this,b.reelSequence,Q.rootData.reelWatchSequenceResponse),f.reelWatchSequenceResponse=
null));Q=new WbN(f,Q.scrollTop)}this.timeToDataCache.has(A)?this.timeToDataCache.delete(A):this.timeToDataCache.size>=this.maxSize&&(b=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(b.value));this.maxSize!==0&&this.timeToDataCache.set(A,Q)};
v91.prototype.clear=function(){this.timeToDataCache.clear()};
var E9r=function(A){var Q=_.fJ().resolve(_.bu(tb)),b;if((b=A.rootData)==null?0:b.endpoint)return Q==null?void 0:PA6(Q,A.rootData.endpoint);var f;_.Wv(new _.IO("History snapshot response data does not contain endpoint",(f=A.rootData)==null?void 0:f.url));return null},xGp=function(A,Q,b){if(A.maxSize>0){var f;
(A=(f=b.responseContext)==null?void 0:f.maxAgeSeconds)&&Number(A)>0&&(f=_.fJ().resolve(_.La),b=MI(b,A),f.put(Q,new _.M6(b)))}};var ca$=function(A,Q,b){this.endpoint=Q;this.JSC$29948_savedComponentState=b===void 0?null:b;this.entryTime=A};var VRY=1;var Ka=function(A){var Q=function(){var b=A.apply(this,[].concat(_.ri(_.E$.apply(0,arguments))))||this;b.historyEntryTime=0;b.historySnapshotCache=b.createHistoryCache();return b};
_.O(Q,A);Q.prototype.createHistoryCache=function(){return new v91};
Q.prototype.saveAndReplace=function(b,f,a){var T=window.location.href;var G=G===void 0?{}:G;var p=(p=this.browserHistory.getState())&&p.entryTime?p.entryTime:OPC();b=this.createNewHistoryEntry(b,G,p);this.saveSnapshot(p,f,a);this.replaceState(b,T||window.location.href)};
Q.prototype.saveAndPush=function(b,f,a,T,G){G=G===void 0?{}:G;this.saveSnapshot(this.historyEntryTime,a,T);a=this.historySnapshotCache;T=this.historyEntryTime;var p=a.timeToDataCache.keys();p=_.F(p);for(var P=p.next();!P.done;P=p.next())P=P.value,P>T&&a.timeToDataCache.delete(P);f=this.createNewHistoryEntry(f,G);this.pushState(f,b)};
Q.prototype.saveSnapshot=function(b,f,a){this.historySnapshotCache.set(b,new WbN(f,a))};
Q.prototype.createNewHistoryEntry=function(b,f,a){a=a===void 0?OPC():a;return new ca$(a,b,f)};
Q.prototype.handlePopstate=function(b){var f=A.prototype.handlePopstate.call(this,b),a=null,T=null,G=!1,p=null;f&&f.entryTime&&(p=this.historySnapshotCache.get(f.entryTime)||null,G=f.entryTime>this.historyEntryTime,this.historyEntryTime=f.entryTime,a=f.endpoint,T=f.JSC$29948_savedComponentState);this.handleHistoryCacheLoad(new _.hPp(a,G,p,T),b);return f};
Q.prototype.pushState=function(b,f){Number(b==null?void 0:b.entryTime)>=0&&(this.historyEntryTime=b.entryTime);A.prototype.pushState.call(this,b,f)};
Q.prototype.replaceState=function(b,f){Number(b==null?void 0:b.entryTime)>=0&&(this.historyEntryTime=b.entryTime);A.prototype.replaceState.call(this,b,f)};
Q.prototype.handleHistoryCacheLoad=function(){};
return Q}(UP),zPW=function(){var A=Ka.call(this,new ePx)||this;
A.dispatchElement=null;A.entryIndex=0;return A};
_.O(zPW,Ka);_.d=zPW.prototype;_.d.init=function(A){A=A===void 0?!0:A;Ka.prototype.init.call(this);this.initialized||(A||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.d.handlePopstate=function(A){var Q=null;A.state||(Q="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Ka.prototype.handlePopstate.call(this,A);var b=new CustomEvent("yt-history-pop",{cancelable:!0});_.pD(this.dispatchElement,"yt-history-pop",[b,{errorMsg:Q}]);_.Pn(this.dispatchElement,"yt-close-all-popups-action");if(!b.defaultPrevented){b=_.fJ().resolve(_.F7);Q=b.getCurrentData();var f=b.getCurrentPage();b=0;f?(f=_.pD(this.dispatchElement,"yt-get-page-offset",
[f]),f.length>0&&(b=f[0])):_.Wv(new _.IO("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:Q?Q.page:"undefined"}));Q&&(Q.csn=_.WR());this.saveSnapshot(this.historyEntryTime,Q,b)}return Ka.prototype.handlePopstate.call(this,A)};
_.d.handleHistoryCacheLoad=function(A,Q){A.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.F(_.Pn(this.dispatchElement,"yt-history-will-navigate",[Q])).next().value||_.pD(this.dispatchElement,"yt-history-load",[Q,A]))};
_.d.pushState=function(A,Q){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var b=new _.IO("history.pushState is not a function",this.getDebugString());_.en(b)}Ka.prototype.pushState.call(this,A,Q)};
_.d.replaceState=function(A,Q){if(!this.browserHistory.boundHistoryReplaceState){var b=new _.IO("history.replaceState is not a function",this.getDebugString());_.en(b)}Ka.prototype.replaceState.call(this,A,Q)};
_.d.saveAndPush=function(A,Q,b,f,a){a=a===void 0?{}:a;b&&(b.csn=_.WR());Ka.prototype.saveAndPush.call(this,A,Q,b,f,a)};
_.d.getDebugString=function(){var A=[];this.initialized&&A.push("i");this.browserHistory.boundHistoryReplaceState&&A.push("bhr");this.browserHistory.boundHistoryPushState&&A.push("bhs");"replaceState"in this.browserHistory.debugInfo&&A.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&A.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&A.push("ei:"+String(this.entryIndex));return A.join(",")};
_.iV=function(A,Q){A.init(!0);var b=A.browserHistory.getState();A.replaceState(b,L6(Q))};
zPW.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.JC=new _.TS("DESKTOP_HISTORY_MANAGER_TOKEN");var wuY=[10,20,30,40,50,60],VP=function(){this.currentPartitionIndex=0},u2M=function(A){$bM({mainAppWeb:_.Dk(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},ZPp=function(A){$bM({mainAppWeb:_.Dk(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},yap=function(A){return A.currentPartitionIndex>=0&&A.currentPartitionIndex<wuY.length?wuY[A.currentPartitionIndex]:-1},Y61=function(A){return A.currentPartitionIndex>0&&A.currentPartitionIndex-1<wuY.length?wuY[A.currentPartitionIndex-1]:-1};
VP.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var A=Y61(this);A>0&&ZPp(A);A=yap(this);A>0&&u2M(A);DGj(this)}};
var DGj=function(A){var Q=yap(A);if(Q>0){var b=Y61(A);b<0&&(b=0);A.intervalId=_.j7.addJob(function(){var f=Y61(A);f>0&&ZPp(f);f=yap(A);f>0&&u2M(f);DGj(A)},3,(Q-b)*6E4);
A.currentPartitionIndex+=1}else A.currentPartitionIndex=-1};var $GK=function(){this.skipNextNavigation=!1},NIp=function(A,Q,b){if(!Q)return!1;
if(A.skipNextNavigation)return A.skipNextNavigation=!1;if(_.V(b,_.y_))return!1;var f,a,T;if((f=_.V(b,_.nT))==null?0:(a=f.browseEndpointContextSupportedConfigs)==null?0:(T=a.browseEndpointContextMainConfig)==null?0:T.skipConfirmation)return!1;var G;return((G=_.V(Q.commandMetadata,_.KD))==null?void 0:G.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
$GK.prototype.showConfirmationDialog=function(A,Q){this.navigateParams=Q;this.customConfirmationCommand?_.fJ().resolve(_.de).resolveCommand(this.customConfirmationCommand):(Q={openPopupAction:{popup:{confirmDialogRenderer:{title:_.sr(_.JQ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.sr(_.JQ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.sr(_.JQ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.sr(_.JQ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Yk.getInstance().triggerAction("yt-open-popup-action",Q,A))};
$GK.prototype.cancelPendingNavigation=function(){var A;((A=this.navigateParams)==null?void 0:A.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var smY=function(){},ADy=function(A,Q,b,f,a,T,G){b=b===void 0?{}:b;
G=G===void 0?{}:G;var p=_.qO.instance,P,U=(P=_.V(Q,_.y_))==null?void 0:P.url;return U?ZZW(p,U,b,window.location.href,function(L,M){mGM(A,L,M,!1,!0,b,T,f)},function(){return!1}):ZN(p,Q,b,window.location.href,Iz(Q),function(L,M){mGM(A,L,M,!1,!0,b,T,f)},a,G)},mGM=function(A,Q,b,f,a,T,G,p){if(!A.JSC$14342_chunkHandler)if(b.page==="watch"||b.page==="learning_journey_watch")if(a||f){if(_.K("kevlar_continue_playback_without_player_response")){var P;
var U=(P=_.V(p,_.sv))==null?void 0:P.videoId}A.JSC$14342_chunkHandler=new M0K(_.BL,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:f,previousVideoId:U},tempData:T},G)}else A.JSC$14342_chunkHandler=new PL9(_.BL);else b.page==="shorts"&&a&&!f?A.JSC$14342_chunkHandler=new L0v(_.BL,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:T},G):A.JSC$14342_chunkHandler=new XyW(G);A.JSC$14342_chunkHandler.processChunk({endpoint:Q,data:b});return A.JSC$14342_chunkHandler.vO.promise},
QpW=function(A,Q,b,f,a){(b=_.Tm9(b))&&mGM(A,Q,b,!1,!0,f,void 0,a)};var bIW=function(){this.pendingNavigationPromise=null};
_.d=bIW.prototype;_.d.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.d.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.d.addEventListener=function(){throw Error("xh");};
_.d.dispatchEvent=function(){throw Error("xh");};
_.d.removeEventListener=function(){throw Error("xh");};var fov=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],OP=function(){_.IH.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];aoW(this)};
_.O(OP,_.IH);OP.prototype.verifyUser=function(){var A=aoW(this),Q=A.logout;if(!A.sessionChange)return!0;this.dispatchEvent("ytsessionchange");Q&&this.dispatchEvent("ytuserinvalid");return!1};
var aoW=function(A){var Q=fov.map(function(a){var T;return(T=_.J$.get(a))!=null?T:""}),b=Q.some(function(a,T){return A.sessionCookies&&A.sessionCookies[T]!==""&&a===""}),f=Q.some(function(a,T){return A.sessionCookies&&A.sessionCookies[T]!==a});
A.sessionCookies=Q;return{logout:b,sessionChange:f}};
OP.prototype.clearTimeout=function(){this.scheduledJobId&&(_.j7.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var CUC=new _.TS("POSTMESSAGE_TUNNEL_TOKEN");var kj6=["/parent_tools","/file_download","/artist_roster"],tRX=[iFW,J49,VAj,nCL,OFy,KJY,kXM,IUL];var T0W=new _.TS("APP_ROOT");var na=new _.TS("NAVIGATION_CONFIRMATION_SERVICE");var dTY="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Fgr=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
kJ=function(A,Q){this.pendingNavigationPromise=null;this.JSC$14360_clientRoot=A;this.historyManager=Q;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 smY;this.debugString=A.is;A={"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};_.Dl(_.Yk.getInstance(),A,this.JSC$14360_clientRoot)},XUj,SjW,UTL,LgL,Pf1;
_.O(kJ,bIW);kJ.prototype.reload=function(){_.Yr(window.location.href)};
var G_9=function(A){A.currentEndpoint&&_.V(A.currentEndpoint,_.CT)?A.reload():A.currentEndpoint&&A.navigate(A.currentEndpoint,!0,void 0,{disableCache:!0})};
kJ.prototype.navigate=function(A,Q,b,f,a,T,G,p){Q=Q===void 0?!1:Q;b=b===void 0?{}:b;f=f===void 0?{}:f;var P=_.fJ().resolve(na),U;if(!G&&NIp(P,(U=this.currentEndpoint)!=null?U:void 0,A))return P.showConfirmationDialog(this.JSC$14360_clientRoot.parentElement,{endpoint:A,reload:Q,params:b,tempData:f,requestType:a,createScreenConfig:T}),!1;var L=_.y2();_.Yg(L,"eocs")||L.parkOrScheduleJob(function(){L.processSignal("eocs")},10,"eor");
G=Iz(A);P=f.autonav==="1";U=_.WR();OP.instance||(OP.instance=new OP);var M=OP.instance.verifyUser(),l;if(_.K("enable_dark_theme_only_on_shorts")){var J=document.documentElement.hasAttribute("dark"),n=_.jL(!0)==="USER_INTERFACE_THEME_DARK";if(G==="shorts"){if(!J)if(_.K("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var t;_.Yr((t=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:t.url,void 0,void 0,window.top)}}else{var g;_.Yr(_.DR((g=_.V(A==null?
void 0:A.commandMetadata,_.KD))==null?void 0:g.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.K("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!J){var e;_.Yr(_.DR((e=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:e.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(n!==J){var x;_.Yr(_.DR((x=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:x.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(G==="watch"){if(GFy(_.fJ().resolve(_.zb),
A)&&(M||_.K("fix_miniplayer_navigation_killswitch")))return!1;_.K("block_all_player_prefetch_requests")||(l=dnj(_.Tb(_.oa),A,P))}else{var D,w=(D=_.V(this.currentEndpoint,_.sv))==null?void 0:D.videoId;w&&_.RR.getInstance().then(function(I9){I9&&I9.set("yt-miniplayer-shown-video-id",w)})}l&&(b.frags=l.missingFragments_.join(","));
t=null;var u;g=(u=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:u.ignoreNavigation;if(!g)if(_.K("kevlar_command_url")){var y;t=(y=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?void 0:y.url}else t=_.CJ4(A,b);if(t&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&t==this.lastNavigationUrl)return _.g2({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Mr(wG(),"CANCELLED")}t&&(this.lastNavigationUrl=t);ACA();_.e6("IS_HOMEPAGE_COLD",
!1);_.e6("IS_RESULTS_PAGE_COLD",!1);_.e6("IS_WATCH_PAGE_COLD",!1);A.loggingUrls&&A.loggingUrls.forEach(function(I9){I9.baseUrl&&_.zp(I9.baseUrl)});
_.g94(A,T?T.layer:0)&&_.K("kevlar_flush_logs_on_away_navigation")&&_.go();if(raA(A))return!1;E0L(G,a);if(!t)return g||_.Wv(new _.IO("Can't construct url for endpoint",A)),_.Mr(wG(),"FAILURE"),!1;_.n9b();u=A&&_.V(A,_.nT)&&_.V(A,_.nT).browseId.startsWith("UC");b=(y=_.K("enable_dark_theme_only_on_shorts")&&G==="shorts"?!1:_.Rz()&&document.documentElement.hasAttribute("dark")!==_.r6())?{themeRefresh:1}:{};y&&!_.Oo()&&_.jL()==="USER_INTERFACE_THEME_DARK"&&(b.theme="dark");u=y||B0p(t)&&!u&&!_.K("kevlar_disable_url_allowlist");
M||(u=!0);if(u||_.vG("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var a9;var pF=(a9=window.top)==null?void 0:a9.location.href}catch(I9){var Ub;pF=(Ub=I9)==null?void 0:Ub.message}_.Wv(new _.IO("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:pF}))}A=_.K("kevlar_redirect_on_window_killswitch")?window.top:window;yK(t);_.Yr(_.DR(t,b),void 0,void 0,A);_.Mr(wG(),"ABORTED");return!1}_.K("kevlar_early_popup_close")&&_.pD(this.JSC$14360_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14342_chunkHandler=void 0;var Ob;pF=Iz((Ob=this.currentEndpoint)!=null?Ob:void 0);(Ob=G==="shorts"&&pF==="shorts")||_.QJb();_.cG(xFy)("nr",void 0);P&&_.g2({webInfo:{navigationReason:"an"}});A.clickTrackingParams&&(f.itct=A.clickTrackingParams,f.csn=U);PtJ(f);f.endpoint=JSON.stringify(A);_.K("enable_unknown_lact_fix_on_html5")&&(_.fJ().resolve(_.Wz),f.lact=_.TD());_.j2.isEmpty(f)||_.bi(t,f);!_.K("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(T=Object.assign({},{layer:0},T,{parentLayer:3}));this.pendingNavigationPromise=T=ADy(this.pageFetcher,A,f,this.currentEndpoint,this.JSC$14360_isNetworkPromiseStale.bind(this),T,p);T=T.then(this.handleNavigateSuccess.bind(this,T,A,l,f),this.handleNavigateFail.bind(this,T,A));_.kg().navigationFinishPromise=T;Q={endpoint:A,pageType:G,url:L6(t),reload:!!Q,noProgressBar:Ob};a&&(Q.type=a);this.fireEvent("yt-navigate-start",Q);l&&QpW(this.pageFetcher,A,l,f,this.currentEndpoint);
return!0};
kJ.prototype.JSC$14360_isNetworkPromiseStale=function(A){return A!=this.pendingNavigationPromise};
var pUp=function(A,Q,b,f,a){var T=Iz(Q);Q={endpoint:Q,pageType:T};a&&(Q.errorMessage=a);_.Wv(b);Q.navigationDoneMs=_.hQ("nd");Q.navigationErrorReason=f;A.fireEvent("yt-navigate-error",Q)};
kJ.prototype.handleNavigateFail=function(A,Q,b){var f=void 0;b instanceof _.Zh&&(f=b,IbF(b));if(this.JSC$14360_isNetworkPromiseStale(A))return _.gF(f);_.Mr(wG(),"FAILURE");pUp(this,Q,b,"101");return _.gF(b)};
kJ.prototype.handleNavigateSuccess=function(A,Q,b,f,a){if(this.JSC$14360_isNetworkPromiseStale(A))return _.Ul();this.pendingNavigationPromise=null;if(!a)return Q=new _.IO("Missing data in response for navigation endpoint",Q),_.gF(Q);if(a.reload)return window.location.reload(!0),_.Ul();b&&(A={},_.j2.extend(A,_.Tm9(b),a),a=A);var T,G;b=(T=a)==null?void 0:(G=T.timing)==null?void 0:G.responseStart;b!=null&&_.hQ("srt",b);_.hQ("pdc");var p,P;T=(p=a)==null?void 0:(P=p.timing)==null?void 0:P.info;T!=null&&
(p=_.cG(_.urY)(T),_.g2(p));_.Mr(wG(),"SUCCESS");Pf1(this,Q,a,1,f);return _.Ul()};
var B0p=function(A){var Q=A;_.K("kevlar_no_redirect_to_classic_2_ks")||(Q=(new _.m7(A)).getPath());if(Q==="/"||Q==="/red")return!1;var b=!0;dTY.forEach(function(f){A.indexOf(f)===0&&(b=!1)});
Fgr.forEach(function(f){var a=f.url;_.K(f.expFlag)&&A.indexOf(a)===0&&(b=!1)});
return b};
kJ.prototype.publishPageData=function(A){this.fireEvent("yt-page-data-fetched",{pageData:A})};
XUj=function(A,Q,b,f,a,T){var G=null;Q.page!=="watch"&&Q.page!=="learning_journey_watch"||f?Q.filler||_.pD(A.JSC$14360_clientRoot,"yt-stop-old-player",[Q]):G=mGM(A.pageFetcher,a,Q,b,!1,T,void 0,A.currentEndpoint);if(G)return G.then(A.publishPageData.bind(A,Q));A.publishPageData(Q);return _.Ul()};
SjW=function(A,Q,b){var f=null;if(!b)return f=new _.IO("Empty data",A.debugString,Q);var a=b.response;if(!a)return f;var T={endpointType:Iz(Q)||"unknown"};a.responseContext?(a=a.responseContext.errors)&&(f=new _.IO("Errors in response context",A.debugString,Q,a,T)):f=a.error||a.errorMetadata?new _.IO("Errors in response",A.debugString,Q,a.error,a.errorMetadata,T):new _.IO("responseContext missing",A.debugString,Q,Object.keys(a).sort().join(","),T);var G,p,P,U;if(A=b==null?void 0:(G=b.response)==null?
void 0:(p=G.responseContext)==null?void 0:(P=p.webResponseContextExtensionData)==null?void 0:(U=P.webResponseContextDebugData)==null?void 0:U.debugErrorMessages)for(G=0;G<A.length;G++);return f};
UTL=function(A){var Q,b,f,a;return A==null?void 0:(Q=A.response)==null?void 0:(b=Q.responseContext)==null?void 0:(f=b.errors)==null?void 0:(a=f.error)==null?void 0:a["0"]};
LgL=function(A,Q){var b;if(b=Q.url&&!Q.url.startsWith("/clip"))b=Q.url,b=!_.K("webfe_parse_debug_param_in_resolveurl_service")&&A.searchDebugUrlMatcher.test(b)||g_i(b)?!0:!1;if(b)g_i(Q.url)&&_.YQ(window.location.href).themeRefresh?(Q=_.fD(Q.url,"themeRefresh"),_.iV(A.historyManager,Q)):Q.url&&!iPJ(Q.url)&&_.iV(A.historyManager,Q.url);else if(Q.endpoint){var f,a,T;(b=(f=Q.endpoint)==null?void 0:(a=f.commandMetadata)==null?void 0:(T=a.webCommandMetadata)==null?void 0:T.url)&&!iPJ(b)&&_.iV(A.historyManager,
b);b&&Q.url&&b!=Q.url&&!Q.url.match("playnext=1")&&new _.IO("Response url mismatch in response data",A.debugString,b,Q.url)}};
_.Mrx=function(A,Q,b,f,a,T,G,p){T=T===void 0?!1:T;var P=_.fJ().resolve(na),U;if(!p&&NIp(P,(U=A.currentEndpoint)!=null?U:void 0,Q))return P.showConfirmationDialog(A.JSC$14360_clientRoot.parentElement,{endpoint:Q,data:b,navigationType:f,tempData:a,isMiniplayer:T,isForwardHistoryNavigation:G==null?void 0:G.forward}),_.Ul();A.pageFetcher.JSC$14342_chunkHandler=void 0;return Pf1(A,Q,b,f,a,T)};
Pf1=function(A,Q,b,f,a,T){T=T===void 0?!1:T;A.isMiniplayerExpansion=T;var G=f===2;A.currentEndpoint=Q;A.numNavigations++;A.numNavigations&&(sSb.navigationCount=A.numNavigations);_.e6("NUM_NAV",A.numNavigations);var p=SjW(A,Q,b);if(p)return pUp(A,Q,p,"102",UTL(b)),_.gF(p);var P,U,L,M;p=b.rootVe||(b==null?void 0:(P=b.response)==null?void 0:(U=P.responseContext)==null?void 0:(L=U.webResponseContextExtensionData)==null?void 0:(M=L.ytConfigData)==null?void 0:M.rootVisualElementType);!G&&b&&LgL(A,b);var l,
J;P=b==null?void 0:(l=b.response)==null?void 0:(J=l.responseContext)==null?void 0:J.maxAgeSeconds;if(!G&&!isNaN(P)){var n;_.K("kevlar_use_response_ttl_to_invalidate_cache")?n=(0,_.f4)()+1E3*P:_.K("kevlar_always_invalidate_cache")&&(n=0);isNaN(n)||(b.expirationTime=n)}_.Tb(_.oa).prefetchCache_.clear();G||b.page!=="watch"||b.type!=="reduced"&&f!==1?f=XUj(A,b,G,!!T,Q,a):(A.publishPageData(b),f=_.Ul());a=f.then(function(){var t=Iz(Q);t={endpoint:Q,pageType:t,fromHistory:G,response:b};t.navigationDoneMs=
_.hQ("nd");A.fireEvent("yt-navigate-finish",t)});
b.csn&&p&&b.clientSideGrafts&&f.then(A.attachClientSideGrafts.bind(A,b,_.hx()));return a};
_.d=kJ.prototype;_.d.attachClientSideGrafts=function(A,Q){A.clientSideGrafts&&Q&&A.clientSideGrafts.forEach(function(b){if(Q&&b){var f=_.t8(b);_.K("combine_ve_grafts")?_.IP().graftServerVe(b,Q):_.ui(A.csn,Q,f)}})};
_.d.handleSignalActionHistoryBack=function(){window.history.back()};
_.d.handleSignalActionCloseWindow=function(){window.close()};
_.d.handleSignalActionReloadPage=function(){this.reload()};
_.d.handleSignalActionSoftReloadPage=function(){G_9(this)};
_.d.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.d.fireEvent=function(A,Q){A=new CustomEvent(A,{bubbles:!0,cancelable:!1,composed:!0,detail:Q});this.dispatchEvent(A)};
_.d.addEventListener=function(A,Q){this.JSC$14360_clientRoot.addEventListener(A,Q)};
_.d.dispatchEvent=function(A){return this.JSC$14360_clientRoot.dispatchEvent(A)};
_.d.removeEventListener=function(A,Q){this.JSC$14360_clientRoot.removeEventListener(A,Q)};
kJ[aW]=[T0W,_.JC];_.$dC=new XI("browse","h8y2qb");_.N4i=new XI("search","JzFVk");_.seU=new XI("shorts","xwEKAe");_.mdb=new XI("watchFixie","nmfa2d");_.Ag9=new XI("watchFlexy","CF909");_.Qri=new XI("watchGrid","Tm0L3c");_.biA=new XI("watchLearningJourney","L3n37");var lop;var KgY=function(){return _.q.apply(this,arguments)||this};
_.O(KgY,_.q);_.Qr.Object.defineProperties(KgY,{template:{configurable:!0,enumerable:!0,get:function(){if(lop===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);lop=A}A=lop;return A}}});
_.E([_.I(KbL.YtPlayerBehavior),_.c("design:type",Object)],KgY.prototype,"ytPlayerBehavior",void 0);_.E([_.h({is:"ytd-player"})],KgY);var iI$;var JDW;var Vrj;var IS=function(){var A=_.q.apply(this,arguments)||this;A.forceModernIconButton=!1;A.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return A};
_.O(IS,_.q);IS.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]]"}}}}}};
IS.prototype.handleAccountLinkingStateChangedCommand=function(A){if(A=_.V(A,d$j)){var Q,b=(Q=this.data)==null?void 0:Q.providerKey;Q=A.providerKey;b&&Q&&b.id===Q.id&&b.subject===Q.subject&&(A=A.linked,A!==void 0&&(this.set("data.linked",A),this.notifyPath("data.linked"),_.K("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(A)))}};
IS.prototype.setPlayerAccountLinkState=function(A){var Q=new A29;Q1L(Q,sWr(new NP1,A));var b=_.BL();b&&b.getPlayerPromise().then(function(f){f.setAccountLinkState(_.Cs(Q.JSC$12055_serializeBinary(),4));f.updateAccountLinkingConfig(A)})};
IS.prototype.handleShowAccountLinkDialog=function(){var A=this.get("button.buttonRenderer.command");A&&_.MB([A],this.hostElement)};
_.Qr.Object.defineProperties(IS.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],IS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],IS.prototype,"ytRendererBehavior",void 0);_.E([_.I([_.PJ.YtActionHandlerBehavior]),_.c("design:type",Object)],IS.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],IS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],IS.prototype,"overrides",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],IS.prototype,"forceModernIconButton",void 0);_.E([_.C({value:"bottom"}),_.c("design:type",String)],IS.prototype,"buttonTooltipPosition",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],IS.prototype,"forceIconButton",void 0);_.E([_.C(),_.c("design:type",Boolean)],IS.prototype,"disableTextTransform",void 0);
_.E([_.H("data","data.linked","data.isWarning"),_.c("design:type",Object),_.c("design:paramtypes",[])],IS.prototype,"button",null);_.E([_.h({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],IS);
_.W(IS,"ytd-account-link-button-renderer",function(){if(Vrj!==void 0)return Vrj;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Vrj=A},{mode:1});var OIp;var nYy=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],HF=function(){return _.q.apply(this,arguments)||this};
_.O(HF,_.q);HF.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
HF.prototype.updateButtonActiveState=function(){var A=this,Q=!!nYy.find(function(b){return A.currentState===b});
this.button&&(this.button.isPressed=Q)};
_.Qr.Object.defineProperties(HF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.playlistLoopStateEntity)==null?void 0:A.state)||((Q=this.data)==null?void 0:Q.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=void 0,Q;if(this.currentState&&((Q=this.data)==null?0:Q.states)){Q=_.F(this.data.states);for(var b=Q.next();!b.done;b=Q.next()){b=_.V(b.value,_.Iuy);var f=void 0;if(((f=b)==null?void 0:f.state)===this.currentState){A=b;break}}}return A}}});
HF.prototype.updateButtonActiveState=HF.prototype.updateButtonActiveState;_.E([_.I(_.cb),_.c("design:type",Object)],HF.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.caF}),_.c("design:type",Object)],HF.prototype,"playlistLoopStateEntity",void 0);_.E([_.C(),_.c("design:type",Object)],HF.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],HF.prototype,"forceIconOnly",void 0);_.E([_.V1("ytd-button-renderer"),_.c("design:type",_.dS)],HF.prototype,"button",void 0);
_.E([_.H("data","playlistLoopStateEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],HF.prototype,"currentState",null);_.E([_.iN("currentButtonStateRenderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],HF.prototype,"updateButtonActiveState",null);_.E([_.H("currentState"),_.c("design:type",Object),_.c("design:paramtypes",[])],HF.prototype,"currentButtonStateRenderer",null);
_.E([_.h({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],HF);
_.W(HF,"ytd-playlist-loop-button-renderer",function(){if(OIp!==void 0)return OIp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return OIp=A},
{mode:1});var kFL;var Ior=_.JQ("DOWNLOAD",{},"Download"),HIj=_.JQ("DOWNLOADING",{},"Downloading"),CfK=_.JQ("DOWNLOADED",{},"Downloaded"),qjL=_.JQ("RETRY",{},"Retry"),Ca=function(){var A=_.q.apply(this,arguments)||this;A.forceIconButton=!1;A.forceIconOnly=!1;A.overrides=!1;A.buttonTooltipPosition=!1;A.styleActionButton=!1;A.disableTextTransform=!1;A.downloadProgress=0;A.isDownloadComplete=!1;A.isHidden=!0;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return A};
_.O(Ca,_.q);_.d=Ca.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.dataChanged=function(){var A;(A=this.data)!=null&&A.text||(A=_.xL(_.QK().getState(),this.videoId),this.updateButtonState(A))};
_.d.computeVideoId=function(A){return A};
_.d.showHideButton=function(){this.updateButtonVisibility()};
_.d.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.d.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.d.updateButtonState=function(A){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==HIj||!_.IX(A))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=Ior;var Q="OFFLINE_DOWNLOAD";var b="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":A=qjL;Q="OFFLINE_DOWNLOAD";b="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":A=CfK;Q="OFFLINE_PIN";b="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":A=
HIj;Q="OFFLINE_DOWNLOADING_ZERO";b="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":A=qjL;Q="OFFLINE_DOWNLOAD";b="ACTION_RETRY";break;default:A=Ior,Q="OFFLINE_DOWNLOAD",b="ACTION_ADD"}this.isVideoDeletedByUser&&(A=Ior,Q="OFFLINE_DOWNLOAD",b="ACTION_ADD");var f=Object.assign({},this.data);f.text=_.sr(A);f.tooltip=A;f.icon={iconType:Q};f.size="SIZE_DEFAULT";f.style="STYLE_DEFAULT";_.V(f.command,_.n6)&&(_.V(f.command,_.n6).action=b);this.set("data",f)}};
_.d.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?A="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var Q;A!==((Q=this.data.icon)==null?void 0:Q.iconType)&&(Q=Object.assign({},this.data),Q.text=_.sr(HIj),Q.tooltip=HIj,Q.icon={iconType:A},_.V(Q.command,_.n6)&&(_.V(Q.command,_.n6).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Q))}};
Ca.prototype.updateProgress=Ca.prototype.updateProgress;Ca.prototype.onTransferStateChanged=Ca.prototype.onTransferStateChanged;Ca.prototype.showHideButton=Ca.prototype.showHideButton;Ca.prototype.dataChanged=Ca.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Ca.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ca.prototype,"forceIconButton",void 0);
_.E([_.C(),_.c("design:type",Object)],Ca.prototype,"forceIconOnly",void 0);_.E([_.C(),_.c("design:type",Object)],Ca.prototype,"overrides",void 0);_.E([_.C(),_.c("design:type",Object)],Ca.prototype,"buttonTooltipPosition",void 0);_.E([_.C(),_.c("design:type",Object)],Ca.prototype,"styleActionButton",void 0);_.E([_.C(),_.c("design:type",Object)],Ca.prototype,"disableTextTransform",void 0);
_.E([_.C({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.c("design:type",String)],Ca.prototype,"videoId",void 0);_.E([_.C(),_.c("design:type",Object)],Ca.prototype,"data",void 0);_.E([_.C({selector:z7,selectorArgs:["videoId"]}),_.c("design:type",Object)],Ca.prototype,"downloadProgress",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ca.prototype,"isDownloadComplete",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ca.prototype,"isHidden",void 0);_.E([_.C({selector:_.xL,selectorArgs:["videoId"]}),_.c("design:type",String)],Ca.prototype,"transferState",void 0);_.E([_.C({selector:_.Tkb,selectorArgs:["videoId"]}),_.c("design:type",Object)],Ca.prototype,"isVideoDeletedByUser",void 0);_.E([_.C({selector:mki,selectorArgs:["videoId"]}),_.c("design:type",Object)],Ca.prototype,"offlineabilityState",void 0);
_.E([_.C({value:!0}),_.c("design:type",Boolean)],Ca.prototype,"showTooltips",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],Ca.prototype,"sendCommandWhenDisabled",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Ca.prototype,"disabled",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ca.prototype,"dataChanged",null);
_.E([_.I_("offlineabilityState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ca.prototype,"showHideButton",null);_.E([_.I_("transferState","isVideoDeletedByUser"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ca.prototype,"onTransferStateChanged",null);_.E([_.I_("downloadProgress"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ca.prototype,"updateProgress",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Ca);
_.W(Ca,"ytd-download-button-renderer",function(){if(kFL!==void 0)return kFL;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return kFL=A},{mode:2});var oYN;var rDM,jpv=function(){if(rDM!==void 0)return rDM;var A=document.createElement("template");_.k(A,'\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 rDM=A};var RTL=_.K("web_button_rework")&&_.Ep("BUTTON_REWORK")||_.K("web_button_rework_with_live"),gYM=_.GP("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,q6=function(){var A=_.q.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.alignByText=!1;A.isShorts=!1;A.animatedText=!1;A.shouldAnimate=!1;A.JSC$14397_browserSupportsAnimation=_.K("web_supports_animations_api");A.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};A.onTap=function(){var Q;if((Q=A.data)==null||!Q.defaultNavigationEndpoint){var b;Q=!((b=A.data)==null?0:b.isToggled);var f;if((f=A.data)==null||!f.preventAutoToggle){A.shouldAnimate=!1;A.disableTextUpdateJobId&&_.j7.cancelJob(A.disableTextUpdateJobId);A.disableTextUpdateJobId=_.j7.addLowPriorityJob(function(){A.disableTextUpdateJobId=void 0},gYM);
var a;A.set("data.isToggled",!((a=A.data)==null?0:a.isToggled));b=A.getInnertubeIcon();f={toggled:Q,actions:{}};b&&(f.actions[b.toLowerCase()]=Q);_.Bn(A.hostElement,"yt-toggle-button",f)}}};
return A};
_.O(q6,_.q);_.d=q6.prototype;_.d.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.j7.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.toggle=function(A){var Q;this.set("data.isToggled",A!==void 0?A:!((Q=this.data)==null?0:Q.isToggled))};
_.d.handleUpdateToggleButtonStateCommand=function(A){if(this.data){A=_.V(A,Mpy);var Q,b,f,a=(Q=this.data)==null?void 0:(b=Q.toggleButtonSupportedData)==null?void 0:(f=b.toggleButtonIdData)==null?void 0:f.id;a&&A&&a===(A==null?void 0:A.buttonId)&&this.set("data.isToggled",A.toggled)}};
_.d.handleUpdateToggleButtonTextAction=function(A){if(this.data){A=_.V(A,a81);var Q,b,f,a=(Q=this.data)==null?void 0:(b=Q.toggleButtonSupportedData)==null?void 0:(f=b.toggleButtonIdData)==null?void 0:f.id;a&&A&&a===(A==null?void 0:A.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=A.defaultNumericalValue,this.set("data.defaultText",A.defaultText),this.set("data.toggledText",A.toggledText),this.shouldAnimate=!1)}};
_.d.getInnertubeIcon=function(){var A=this.data;if(A){var Q,b,f=((Q=A.defaultIcon)==null?0:Q.iconType)?(b=A.defaultIcon)==null?void 0:b.iconType:null,a,T;Q=((a=A.toggledIcon)==null?0:a.iconType)?(T=A.toggledIcon)==null?void 0:T.iconType:f;return A.isToggled?Q:f}};
_.d.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Qr.Object.defineProperties(q6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A={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$14397_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var Q=A.renderer;var b=A.element;var f=A.toggled;var a=A.onTapCallback;var T=A.commandClientArgs;var G=A.overrides;var p=A.forceIcon;var P=A.forceModernIconButton;var U=A.forceDisabled;var L=A.useAnimatedText;var M=A.animatedTextProps;A=ZPY(Q,f);p=!Q.defaultIcon||!p&&Q.defaultText?Q.defaultIcon?"leading":void 0:P?"icon-only":"icon-only-40";p==="icon-only-40"&&(A.type="text");var l;P=Object;var J=P.assign,n;a:switch((n=
Q.style)==null?void 0:n.styleType){case "STYLE_COMPACT_GRAY":n={size:"S"};break a;default:n={size:"M"}}var t=!!f;var g=(g=f&&Q.toggledText||Q.defaultText)?_.xz(g):void 0;L?(L=_.mO(f&&Q.toggledText||Q.defaultText))&&M&&!isNaN(Number(M.numberValue))?(M.numberText=L,f&&(M.numberValue+=1),L=M):L=void 0:L=void 0;var e,x,D,w;var u=(M=((x=f?Q.toggledAccessibilityData||((u=Q.toggledText)==null?void 0:u.accessibility):Q.accessibilityData||((e=Q.defaultText)==null?void 0:e.accessibility))==null?void 0:(D=x.accessibilityData)==
null?void 0:D.label)||((w=Q.accessibility)==null?void 0:w.label))?M:_.mO(f&&Q.toggledText||Q.defaultText);U=U===void 0?Q.isDisabled:U;b=u2e(Q,f,a,b,T);f=wuy(Q,f);f!=null&&f.length?(f=_.y0({innertubeCommand:IAi(f),forceNewState:!0}),f=Yz(f)?f:void 0):f=void 0;Q=J.call(P,{},A,n,{iconPosition:p},G,{focused:!1,toggled:t,toggleable:!0,formattedButtonText:g,animatedTextProps:L,accessibilityLabel:u,disabled:U,onTap:b,aTagConfig:f},bRb((l=Q.colorData)==null?void 0:l.basicColorPaletteData));Q.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(Q.type="filled");return Q}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.getInnertubeIcon();if(A)return _.K0(A)}}});
q6.prototype.resetAnimation=q6.prototype.resetAnimation;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],q6.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],q6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],q6.prototype,"isPressed",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"forceIconButton",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"forceIconOnly",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"forceModernIconButton",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"alignByText",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"overrides",void 0);
_.E([_.C(),_.c("design:type",Boolean)],q6.prototype,"disabled",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"isShorts",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"buttonTooltipPosition",void 0);_.E([_.C(),_.c("design:type",Object)],q6.prototype,"animatedText",void 0);_.E([_.C(),_.c("design:type",String)],q6.prototype,"textNumberValue",void 0);_.E([_.C({computed:"computeTooltip(data, data.isToggled)"}),_.c("design:type",Object)],q6.prototype,"tooltip",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],q6.prototype,"resetAnimation",null);_.E([_.H("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.c("design:type",Object),_.c("design:paramtypes",[])],q6.prototype,"computedButtonShape",null);_.E([_.H("data.*"),_.c("design:type",Object),_.c("design:paramtypes",[])],q6.prototype,"computedIcon",null);
_.E([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],q6);RTL&&_.W(q6,"ytd-toggle-button-renderer",jpv,{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var wL=_.aP(function(A){function Q(U){var L;return _.B(function(M){if(M.nextAddress==1)return(L=!Y6C(U,p())||!p().enabled)?M.jumpTo(2):M.yield(mGe(),3);M.nextAddress!=2&&(L=M.yieldResult);if(L)return M.return();b();setTimeout(function(){G(!1)},1500);
_.Oi(M)})}
function b(){setTimeout(function(){G(!0);var U;(U=f.lottieEl)==null||U.goToAndPlay(0)},150)}
var f=_.Vh(),a=_.F(_.pz(!1,void 0,"JJXzp")),T=a.next().value,G=a.next().value,p=_.Q0(A.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.tz(function(){var U,L;((U=A.settings)==null?void 0:(L=U.call(A))==null?void 0:L.uniqueId)==="this is not intended behavior"&&_.Wv(new _.IO("Smartimation Settings is undefined"))});
_.H_(function(){p().experimentEnabled&&(p().enabled?DGJ(Q):(G(!1),$GU(Q)),_.Cz(function(){$GU(Q)}))},"FRiAUe");
_.H_(function(){p().timings.join("");p().experimentEnabled&&(NIY(p()),_.Cz(function(){smy(p())}))},"VKiJOe");
var P=_.Lz(function(){var U=f,L=p().uniqueId+"-border",M,l;var J="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((l=(M=_.fJ().resolve(_.bu(_.Af)))==null?void 0:M())!=null&&l?"dark":"light")+"_v2.json";return{animationRef:U,animationConfig:{name:L,autoplay:!1,loop:!1,path:J}}},void 0,"tgykab");
a={};return _.X("yt-smartimation",{class:_.O4(A.className,"smartimation",(a["smartimation--experiment-enabled"]=function(){return p().experimentEnabled},a["smartimation--active-border"]=T,a["smartimation--enable-masking"]=AD9(),a))},_.X(_.S,{cond:function(){return p().experimentEnabled},
then:function(){return _.X("div",{class:"smartimation__border"},_.X(_.X6,{className:"smartimation__border-gradient",data:P,animationName:function(){return P().animationConfig.name}}))}}),_.X("div",{class:"smartimation__content"},A.children))},"E");
wL.idomCompat=!0;_.pE(wL,"yt-smartimation",{props:{className:_.Qf,settings:_.Qf}});var oS=function(){var A=_.q.apply(this,arguments)||this;A.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};A.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};A.shouldEnableSmartimation=!1;return A};
_.O(oS,_.q);oS.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
oS.prototype.onDataChanged=function(){var A,Q;this.shouldEnableSmartimation=(((A=this.data)==null?void 0:(Q=A.timedAnimationData)==null?void 0:Q.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
oS.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var A=_.V(this.data.likeButton,_.u3),Q=_.V(this.data.dislikeButton,_.u3);return!!((A==null?0:A.isToggled)||(Q==null?0:Q.isToggled))};
oS.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]]"}}}}}};
_.Qr.Object.defineProperties(oS.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=((A=this.data)==null?void 0:(Q=A.timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:"like-dislike",timings:b,enabled:this.shouldEnableSmartimation,experimentEnabled:b.length>0}}}});
oS.prototype.onDataChanged=oS.prototype.onDataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],oS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],oS.prototype,"likeButtonOverride",void 0);_.E([_.C(),_.c("design:type",Object)],oS.prototype,"dislikeButtonOverride",void 0);
_.E([_.H("shouldEnableSmartimation"),_.c("design:type",Object),_.c("design:paramtypes",[])],oS.prototype,"smartimationSettings",null);_.E([_.iN("data"),_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oS.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],oS);
_.W(oS,"ytd-segmented-like-dislike-button-renderer",function(){if(oYN!==void 0)return oYN;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return oYN=A},{mode:1});var eTL;var hTj;(hTj=document.body)==null||hTj.setAttribute("rounded-container","");var Wg1={};Wg1.YtToggleButtonBehavior=[_.PJ.YtActionHandlerBehavior,qb.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 A=this.data.isToggled;if(!this.isModal_(A)){if(!this.data.preventAutoToggle){this.toggle();var Q={toggled:this.data.isToggled,actions:{}};Q.actions[this.buttonIcon]=this.data.isToggled;_.Bn(this.hostElement,"yt-toggle-button",Q)}Q=this.data.defaultServiceEndpoint||null;var b=this.data.toggledServiceEndpoint||null;if(Q&&b||Q&&this.data.preventAutoToggle)A=A?b:Q,Q=this.disableCommandHandlerOverride,_.K("killswitch_toggle_button_behavior_resolve_command")||Q?_.X5(this.hostElement,
[A]):_.V0(A,this.hostElement),_.Bn(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:A})}},
stateChanged_:function(){var A=this.data;if(A){var Q=A.isToggled;this._setEndpoint(this.computeEndpoint_(A));this._setServiceEndpoint(this.computeServiceEndpoint_(A));this._setButtonIcon(this.computeButtonIcon_(A,Q));this._setButtonText(this.computeButtonText_(A,Q));this._setButtonAccessibility(this.computeAccessibility_(A,Q));this._setButtonTooltip(this.computeTooltip_(A,Q));this._setButtonClass(this.computeButtonClass_(A,Q));this._setIconPositionType(this.computeIconPositionType_(A));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=Q):this.elements_.button.setAttribute("aria-pressed",Q));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=Q)}},
shouldSetIconActiveState_:function(){return _.K("kevlar_system_icons")},
toggle:function(A){this.set("data.isToggled",A!==void 0?A:!this.data.isToggled);_.K("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(A){if(A){var Q,b;return!!((Q=this.data)==null?0:(b=Q.toggledServiceEndpoint)==null?0:b.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(A){return A&&A.defaultNavigationEndpoint||null},
computeButtonIcon_:function(A,Q){var b=A&&A.defaultIcon?_.K0(A.defaultIcon.iconType):null;A=A&&A.toggledIcon?_.K0(A.toggledIcon.iconType):b;return Q?A:b},
handleUpdateToggleButtonStateCommand_:function(A){A=A.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&this.toggle(A.toggled)},
computeButtonText_:function(A,Q){return A?Q&&A.toggledText||A.defaultText||null:null},
computeAccessibility_:function(A,Q){return A?(Q?this.get("toggledAccessibilityData.accessibilityData",A):this.get("accessibilityData.accessibilityData",A))||A.accessibility||null:null},
computeTooltip_:function(A,Q){return A?Q&&A.toggledTooltip||A.defaultTooltip||null:null},
computeButtonClass_:function(A,Q){if(!A)return"";var b="",f=A.toggledStyle||A.style;if(Q=Q?f:A.style){Q.styleType&&(Q=Q.styleType);try{b+=Q.toLowerCase().replace(/_/g,"-")+" "}catch(a){_.xk(a,Q,typeof Q),_.Wv(a)}}if(A=A.size){A.sizeType&&(A=A.sizeType);try{b+=A.toLowerCase().replace(/_/g,"-")+" "}catch(a){_.xk(a,A,typeof A),_.Wv(a)}}return b.trim()},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeServiceEndpoint_:function(A){var Q=A&&A.serviceEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return Q?Q:b&&A.command?A.command:null},
handleUpdateToggleButtonTextAction_:function(A){A=A.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&(this.set("data.defaultText",A.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",A.toggledText),this.notifyPath("data.toggledText"))}}];_.xo("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var vYp=_.K("web_button_rework")&&_.Ep("BUTTON_REWORK")||_.K("web_button_rework_with_live"),tC=function(){var A=_.q.apply(this,arguments)||this;A.systemIcons=_.K("kevlar_system_icons");A.roundedContainer=!0;return A};
_.O(tC,_.q);tC.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
tC.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var A=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var Q={toggled:!!this.data.isToggled,actions:{}};Q.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var b,f;Q.actions.playlistId=(b=this.data.defaultServiceEndpoint)==null?void 0:(f=b.playlistEditEndpoint)==null?void 0:f.playlistId;_.Bn(this.hostElement,"yt-toggle-button",Q)}(A=A?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(A)}};
tC.prototype.onYtNavigate=function(A){var Q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);Q&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(Q))};
_.Qr.Object.defineProperties(tC,{template:{configurable:!0,enumerable:!0,get:function(){if(eTL===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);eTL=A}A=eTL;return A}}});
tC.prototype.onYtNavigate=tC.prototype.onYtNavigate;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],tC.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],tC.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(Wg1.YtToggleButtonBehavior),_.c("design:type",Object)],tC.prototype,"ytToggleButtonBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],tC.prototype,"data",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],tC.prototype,"showTooltips",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],tC.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],tC.prototype,"roundedContainer",void 0);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],tC.prototype,"onYtNavigate",null);
_.E([_.h({is:"ytd-toggle-button-renderer",disableElementRegistration:vYp})],tC);var EYK;_.r8=new _.TS("PANEL_CONTROLLER_TOKEN");_.j4=new _.TS("SHEET_CONTROLLER_TOKEN");_.RS=new _.TS("DIALOG_CONTROLLER_TOKEN");EYK=new _.TS("DIALOG_CONTAINER_TOKEN");var B0Y=_.JQ("DOWNLOAD",{},"Download"),pUY=_.JQ("DOWNLOADING",{},"Downloading"),PfC=_.JQ("DOWNLOADED",{},"Downloaded"),XUJ=_.JQ("RETRY",{},"Retry");var UTb=[],Lgb=!1;var xT9=_.aP(function(A){var Q=OIY,b=function(){return""},f=Kgy(A.data),a=iIF(A.data),T=JDA(A.data),G=VrJ(A.data);
Q=function(){var p=A.data(),P=FgX(p,f(),a(),T(),G()),U=!!p.videoId,L=P.text;return{title:U?L:void 0,tooltip:U?void 0:L,accessibilityText:L,onTap:P.onTap,iconName:P.iconType,style:p.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:P.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:p.buttonSize}};
b={};b=_.O4("ytDownloadButtonViewModelHost",(b.ytDownloadButtonViewModelIsHidden=function(){var p=A.data(),P=G();return p.playlistId||P()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||P()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},b));
return _.X("download-button-view-model",{class:b},_.X(_.J9,{data:Q}))},"F");
xT9.idomCompat=!0;var zTp=_.aP(function(A){var Q=A.backgroundLottieRef;var b=A.foregroundLottieRef;var f=A.children;var a=A.wrapperClass;var T=A.disableAnimation;A=function(){return(_.K("web_animated_actions")||_.K("web_animated_actions_v2"))&&!(T==null?0:T())};
return _.X("yt-animated-action",{class:_.O4("animated-action__container",a)},_.X("div",{class:"animated-action__content-with-background"},_.X(_.S,{cond:A,then:function(){return _.X(cDL,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:Q==null?void 0:Q(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(nY9()?"dark":"light")+"_v5.json"}}}})}}),f),_.X(_.S,{cond:A,
then:function(){return _.X(cDL,{lottiePlayerProps:function(){return{animationRef:b==null?void 0:b(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(nY9()?"dark":"light")+"_v4.json"}}}})}}))},"G");
zTp.idomCompat=!0;var cDL=_.aP(function(A){var Q=A.wrapperClass;var b=A.lottieClass;var f=A.lottiePlayerProps;return _.X("div",{class:_.O4("animated-action__lottie",Q),"aria-hidden":"true"},_.X(_.X6,{className:b,data:f,animationName:function(){return f().animationConfig.name}}))},"H");var kFb={isOpen:!1};var HIJ={isAllowed:!1};var qji={errorMessage:"",title:"",privacy:"",isDisabled:!0};var tr9={isOpen:!1};var jp4={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var wUN={response:void 0};var gYe=function(A,Q){A=A===void 0?wUN:A;switch(Q.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},A,{response:Q.payload});default:return A}};var uDY={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var eTi=function(A,Q){A=A===void 0?uDY:A;switch(Q.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},A,{nextDisabled:Q.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},A,{nextCommand:Q.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},A,{footerSubmissionData:Q.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},A,{isImpersonationValid:Q.payload});default:return A}};var ZIM={reportFormData:void 0,reportDetailsFormData:void 0};var hTJ=function(A,Q){A=A===void 0?ZIM:A;switch(Q.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportFormData:Q.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportDetailsFormData:Q.payload});default:return A}};var yD$=void 0;_.K("mweb_enable_redux_store_on_demand")||(yD$=new AE(WgC()));var g8=_.K("enable_web_delhi_icons");var YjM=_.aP(function(A){A=_.be(A,{themeOverride:void 0,animationRef:{}});var Q=A.animatedIconType,b=A.active,f=A.themeOverride,a=A.animationRef;A=A.staticIconFn;var T=_.F(_.pz(void 0,void 0,"P5a72b")),G=T.next().value,p=T.next().value,P=function(){a:{var g=Q();var e=f==null?void 0:f();var x;e=(e==null?void 0:e.useDarkTheme)||((x=_.fJ().resolve(_.bu(_.Af)))==null?void 0:x());switch(g){case "LIKE":yD$||(yD$=new AE(WgC()));g=(g=tw6(yD$.getState()))&&g.animationLightUrl&&g.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:e?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:e?g.animationDarkUrl:g.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(g){e=g;break a}e="animated_like_icon_"+(e?"dark":"light")+"_"+(g8?"v5":"v4");e={lottiePlayerProps:{animationConfig:{name:e,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+e+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(g8?" animated-like-icon-delhi":"")}}},totalFrames:g8?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":e={lottiePlayerProps:{animationConfig:{name:e?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(e?"dark":"light")+(g8?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(g8?" animated-subscribe-icon-delhi":"")}}},totalFrames:g8?120:79,lazyLoad:!1};break a}e=
void 0}return e},U=function(){var g,e;
return(e=(g=P())==null?void 0:g.lottiePlayerProps.animationConfig.name)!=null?e:""},L=function(){if(P()){var g=P().lottiePlayerProps.animationConfig.path;
return VR.get(g)||G()}};
T=_.F(_.pz(!1,void 0,"h6xR3c"));var M=T.next().value;T=T.next().value;var l=EYU(T),J=function(){var g=P(),e,x,D;return(D=g==null?void 0:(e=g.lottiePlayerProps.animationConfig)==null?void 0:(x=e.rendererSettings)==null?void 0:x.className)!=null?D:""},n=void 0,t=void 0;
_.H_(function(){var g=P(),e=U(),x=L(),D=M(),w=b();if(g&&(t!==e&&(t=e,n=w,e=a(),l.animationConfig=g.lottiePlayerProps.animationConfig,l.animationRef=e,x&&(l.animationConfig.animationData=x,l.animationConfig.path=void 0),e=g.lottiePlayerProps.animationConfig.path,!VR.get(e)&&g.lazyLoad&&e&&vYY(e,p)),!(D||g.lazyLoad&&!x))){if(x=!a().lottieEl)w?(D=g.totalFrames,l.animationConfig.initialSegment=[D-1,D]):l.animationConfig.initialSegment=void 0;if(n!==w&&!x)if(x=a(),w){var u;(u=x.lottieEl)==null||u.playSegments([0,
g.totalFrames],!0)}else{var y;(y=x.lottieEl)==null||y.playSegments([0,1],!0)}n=w}},"YCYOCe");
return _.X("animated-icon",{class:"ytAnimatedIconHost"},_.X(_.S,{cond:function(){var g,e;return!((g=P())==null||!g.lottiePlayerProps.animationConfig.path||((e=P())==null?0:e.lazyLoad)&&!L()||M())},
then:function(){return _.X(_.X6,{data:l,animationName:U,className:J,animationRef:a})},
else:A}))},"I");_.e4=_.aP(function(A){var Q=_.st("yt-subscribe-button-view-model"),b=_.st("div"),f=_.st("div"),a=_.Vh(),T=_.Vh(),G=_.Vh(),p=_.I$(ePf,function(){return A.data().stateEntityStoreKey}),P=_.I$(hPY,function(){var Nf,L$;
return(L$=(Nf=A.data().notificationStateEntityStoreKeys)==null?void 0:Nf.subsNotificationStateKey)!=null?L$:""}),U=function(){return!A.data().enableSubscribeButtonPostClickAnimation},L=_.F(_.pz(0,void 0,"eTsWvc")),M=L.next().value,l=L.next().value;
L=_.F(_.pz(0,void 0,"dniDQ"));var J=L.next().value,n=L.next().value;L=_.F(_.pz(!1,void 0,"EluPic"));var t=L.next().value,g=L.next().value;L=_.F(_.pz(!1,void 0,"r0jnre"));var e=L.next().value,x=L.next().value;L=_.F(_.pz(!1,void 0,"KMvoQe"));var D=L.next().value,w=L.next().value,u;L=_.F(_.pz(!1,void 0,"aSENce"));var y=L.next().value,a9=L.next().value,pF=function(){x(!0);_.o$(_.j7,function(){x(!1)},1500)};
_.H_(function(){var Nf=e();B_(function(){Nf&&!U()&&p()&&$TX(a,T,G)})},"LgmX6c");
_.H_(function(){var Nf=p();B_(function(){if(!U()&&Nf){var L$;((L$=A.animateWidth)==null?0:L$.call(A))&&DTC(Q.value,!!Nf.subscribed,M(),J());var UL,HM;((UL=u)==null?0:UL.subscribed)||!Nf.subscribed||Nf.key!==((HM=u)==null?void 0:HM.key)||pF();u=Nf}})},"iZzoUb");
L=_.Lz(function(){var Nf,L$,UL,HM=A.data(),Ks=!((Nf=p())==null||!Nf.subscribed);Nf=!((L$=A.isOverlay)==null||!L$.call(A));L$=t()?Q:void 0;var Y1=(UL=P())==null?void 0:UL.state;UL=y();Yje(HM,Y1);return zTY({model:HM,subscribed:Ks,isOverlay:Nf,element:L$,notificationState:Y1,disableTextEllipsis:!0,focused:UL})},void 0,"yGQGue");
var Ub=function(){var Nf;if(!U()&&((Nf=A.animateWidth)==null?0:Nf.call(A))&&(b==null?0:b.value)&&(f==null?0:f.value)&&!D()){Nf=p();var L$=_.F((Nf==null?0:Nf.subscribed)?[b,f]:[f,b]),UL=L$.next().value;L$=L$.next().value;UL=Math.ceil(UL.value.getBoundingClientRect().width);L$=Math.ceil(L$.value.getBoundingClientRect().width);l(UL);n(L$);DTC(Q.value,!(Nf==null||!Nf.subscribed),UL,L$);w(!0)}},Ob=_.IY(function(Nf){Ub();
var L$=p();L$&&(Nf.detail.endpoint.subscribeEndpoint||Nf.detail.endpoint.unsubscribeEndpoint)&&uDy(Q.value,!L$.subscribed,L$)}),I9=function(){var Nf=_.fJ().resolve(_.bu(_.L3));
Nf&&a9(Nf.isKeyBoardInUse())},iy=function(){a9(!1)};
_.N3("yt-player-subscribe",function(Nf){var L$=p();L$&&Nf===A.data().channelId&&uDy(Q.value,!0,L$)});
_.N3("yt-player-unsubscribe",function(Nf){var L$=p();L$&&Nf===A.data().channelId&&uDy(Q.value,!1,L$)});
_.N3("yt-update-subscribe-button-action",function(Nf){Nf=_.V(Nf,AP1);var L$=p();L$&&Nf&&Nf.channelId===A.data().channelId&&uDy(Q.value,!!Nf.subscribed,L$)});
_.tz(function(){Q.value&&(Q.value.addEventListener("focusin",I9),Q.value.addEventListener("focusout",iy));var Nf=_.Hv(_.j7,function(){Ub()});
g(!0);_.Cz(function(){_.j7.cancelJob(Nf);Q.value&&(Q.value.removeEventListener("focusin",I9),Q.value.removeEventListener("focusout",iy))})});
var wW=function(){var Nf,L$,UL;if(UL=!((Nf=p())==null||!Nf.subscribed))Nf=!!A.data().disableNotificationBell,UL=(L$=P())==null?void 0:L$.state,UL=!Nf&&!!UL;return UL},h4=function(){var Nf;
return!((Nf=p())==null?0:Nf.subscribed)},SW=function(){var Nf,L$;
if(L$=h4()){L$=!!A.data().disableNotificationBell;var UL=(Nf=P())==null?void 0:Nf.state;L$=!L$&&!!UL}return L$},r9={},PM={};
return _.X("yt-subscribe-button-view-model",{class:_.O4(A.className,"yt-subscribe-button-view-model-wiz",(r9["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Nf,L$;return!((Nf=p())==null||!Nf.subscribed)&&((L$=A.animateWidth)==null?void 0:L$.call(A))&&e()},r9["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Nf;
return!((Nf=p())==null?0:Nf.subscribed)&&A.data().hideWhenUnsubscribed},r9)),
el:Q,"on:yt-service-request-sent":Ob},_.X(zTp,{backgroundLottieRef:a,foregroundLottieRef:T,wrapperClass:_.O4("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(PM["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Nf;return((Nf=A.animateWidth)==null?void 0:Nf.call(A))&&e()},PM["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Nf;
return!((Nf=A.animateWidth)==null?0:Nf.call(A))},PM)),
disableAnimation:U},_.X("div",{el:b,class:"yt-subscribe-button-view-model-wiz__container"},_.X(_.K3,{data:L,icon:function(){return _.X(_.S,{cond:wW,then:function(){var Nf=function(){var L$;return wU6((L$=P())==null?void 0:L$.state)};
return _.X(_.S,{cond:function(){return U()||Nf()!=="NOTIFICATIONS_NONE"},
then:function(){return _.X(_.oY,{icon:Nf})},
else:function(){return _.X(YjM,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:G})}})}})},
secondaryIconName:function(){return wW()?"EXPAND":void 0}}))),_.X("div",{el:f,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.X(_.S,{cond:function(){var Nf;return((Nf=A.animateWidth)==null?void 0:Nf.call(A))&&!U()&&!D()},
then:function(){return _.X(_.K3,{data:_.Lz(function(){var Nf;return zTY({model:A.data(),subscribed:h4(),isOverlay:!((Nf=A.isOverlay)==null||!Nf.call(A)),element:Q,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var Nf;return SW()?wU6((Nf=P())==null?void 0:Nf.state):void 0},
secondaryIconName:function(){return SW()?"EXPAND":void 0}})}})))},"J");
_.e4.idomCompat=!0;var N0J=new _.TS("RENDERER_STAMPER_OPTIONS_TOKEN");var DT1=_.aP(function(A){var Q=A.data;var b=_.I$(ePf,function(){return Q().subscriptionStateEntityKey});
return _.X(_.S,{cond:function(){var f=Q(),a=b();return!f.hideWhenUnsubscribed||(a==null?0:a.subscribed)?_.V(Q().button,_.jJ):void 0},
then:function(f){return _.X("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.X(_.J9,{data:f,buttonOverrides:function(){return{toggled:!0}}}))}})},"K");
DT1.idomCompat=!0;var FHb=_.rz({buttonViewModel:_.J9,subscribeButtonViewModel:_.e4,downloadButtonViewModel:xT9,toggleButtonViewModel:_.eq,subscribePlusButtonViewModel:DT1});_.dK(BMe);var Oj4=new _.TS("RENDERER_LOGGER_TOKEN");var eJ;_.gz=new vzY;eJ=new Map;var ij9="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),Vf4=["notificationTextRenderer","notificationMultiActionRenderer"],JeU="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
KHJ=pCX(function(A){return _.o7(A==null?void 0:A.targetId)}).useUpdatableData;var lCA=0;_.WL.debugName="EjJbCe";var $Tr,hC,N0j;$Tr=_.aP(function(A){return _.X(_.WL,{data:function(){return A.actionRow().actions}},{buttonViewModel:function(Q){var b=Q.data;
return _.X(hC,{isRow:A.isRow,isIconOnlyButton:function(){return nby(b())},
useIntrinsicWidth:A.useIntrinsicWidth},_.X(_.J9,{data:b}))},
subscribeButtonViewModel:function(Q){return _.X(hC,{isRow:A.isRow},_.X(_.e4,{data:Q.data,isOverlay:!1,animateWidth:function(){return!A.isRow()}}))},
downloadButtonViewModel:function(Q){var b=Q.data;return _.X(hC,{isRow:A.isRow,isIconOnlyButton:function(){return!!b().playlistId}},_.X(xT9,{data:b}))},
toggleButtonViewModel:function(Q){var b=Q.data;return _.X(hC,{isRow:A.isRow,isIconOnlyButton:function(){var f=b();return nby(_.V(f.isToggled?f.toggledButtonViewModel:f.defaultButtonViewModel,_.jJ))}},_.X(_.eq,{data:b}))},
subscribePlusButtonViewModel:function(Q){return _.X(hC,{isRow:A.isRow},_.X(DT1,{data:Q.data}))}})},"L");
hC=_.aP(function(A){var Q={};return _.X("div",{class:_.O4("yt-flexible-actions-view-model-wiz__action",(Q["yt-flexible-actions-view-model-wiz__action--row-action"]=A.isRow,Q["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=A.useIntrinsicWidth,Q["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,Q["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=A.isIconOnlyButton,Q))},A.children)},"M");
N0j=_.aP(function(A){var Q=function(){var f;return((f=A.layout)==null?void 0:f.call(A))===1},b={};
return _.X("yt-flexible-actions-view-model",{class:_.O4("yt-flexible-actions-view-model-wiz",A.className,(b["yt-flexible-actions-view-model-wiz--inline"]=function(){return!Q()},b["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return A.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},b))},_.X(_.Op,{each:function(){return A.data().actionsRows||[]}},function(f){return _.X(_.S,{cond:Q,
then:function(){return _.X("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.X($Tr,{actionRow:f,isRow:Q,useIntrinsicWidth:function(){return!!A.data().respectActionIntrinsicWidth}}))},
else:function(){return _.X($Tr,{actionRow:f,isRow:Q})}})}))},"N");
_.WF=_.K("web_enable_sink_yt_flexible_actions_view_model")?N0j:_.ko(BMe);N0j.idomCompat=!0;_.pE(_.WF,"yt-flexible-actions-view-model",{props:{data:_.Qf,layout:_.Qf,justifyContentOverride:_.Qf,className:_.Qf}});_.vF=_.aP(function(A){var Q=_.I$(yR,function(){var a;return(a=A.data().dislikeEntityKey)!=null?a:""}),b=_.Lz(function(){var a=Q();
return a?a.likeStatus==="DISLIKE":_.V(A.data().toggleButtonViewModel,_.R$).isToggled},void 0,"B2tgKf"),f=_.Lz(function(){return Object.assign({},_.V(A.data().toggleButtonViewModel,_.R$),{isToggled:b()})},void 0,"otfIbf");
return _.X("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.X(_.eq,{data:f,buttonShapeOverrides:A.buttonShapeOverrideables,onToggle:function(a){var T=Q();T&&a!==(T.likeStatus==="DISLIKE")&&T.key&&_.A8(_.Wi("likeStatusEntity",T.key,{likeStatus:a?"DISLIKE":"INDIFFERENT",hadUserInteraction:a}))}}))},"O");
_.vF.idomCompat=!0;_.EP=_.aP(function(A){var Q=_.K("web_supports_animations_api"),b=FS(function(l){var J=U();if(!l){var n,t;return{numberText:(t=J==null?void 0:(n=J.likeCountIfIndifferent)==null?void 0:n.content)!=null?t:"",numberValue:Number(J==null?void 0:J.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var g;n=(J==null?void 0:(g=J.likeCountIfIndifferent)==null?void 0:g.content)!==l.numberText;if(p()||!n)return l;var e;return{numberText:(J==null?void 0:(e=J.likeCountIfIndifferent)==null?void 0:e.content)||
"",numberValue:Number(J==null?void 0:J.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!J}}),f=FS(function(l){var J=U();
if(!l){var n,t;return{numberText:(t=J==null?void 0:(n=J.likeCountIfLiked)==null?void 0:n.content)!=null?t:"",numberValue:Number(J==null?void 0:J.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var g;n=(J==null?void 0:(g=J.likeCountIfIndifferent)==null?void 0:g.content)!==l.numberText;if(p()||!n)return l;var e;return{numberText:(J==null?void 0:(e=J.likeCountIfLiked)==null?void 0:e.content)||"",numberValue:Number(J==null?void 0:J.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!J}}),a=_.F(_.pz(void 0,
void 0,"xYSlUe")),T=a.next().value,G=a.next().value,p=T,P=_.I$(yR,function(){var l,J;
return(J=(l=A.data())==null?void 0:l.likeStatusEntityKey)!=null?J:""}),U=_.I$(XP4,function(){var l,J;
return((l=A.likeCountEntity)==null?void 0:(J=l.call(A))==null?void 0:J.key)||""}),L=_.Lz(function(){var l;
return((l=P())==null?void 0:l.likeStatus)==="LIKE"},void 0,"DG5Osd"),M=function(){var l;
return Q&&!((l=A.likeCountEntity)==null||!l.call(A))};
return _.X("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.X(_.eq,{data:function(){var l=Object,J=l.assign,n;var t=_.V((n=A.data())==null?void 0:n.toggleButtonViewModel,_.R$);return J.call(l,{},t||{},{isToggled:L()})},
buttonShapeOverrides:A.buttonShapeOverrideables,animatedTextPropsDefault:function(){return M()?b():void 0},
animatedTextPropsToggled:function(){return M()?f():void 0},
onToggle:function(l){khJ(l,P(),p(),G)},
style:function(){var l;return((l=A.disableIconAnimation)==null?0:l.call(A))?void 0:{animateIcon:"true"}}}))},"P");
_.EP.idomCompat=!0;var spW=_.aP(function(A){var Q=function(){return _.V(A.data().likeButtonViewModel,_.vV)},b=function(){var a;
return((a=Q())==null?void 0:a.likeStatusEntityKey)||""},f=_.Lz(function(){var a,T;
var G=(T=_.I$(yR,b)())!=null?T:(a=Q())==null?void 0:a.likeStatusEntity;a=A.data();var p;a=(a==null?void 0:(p=a.timedAnimationData)==null?void 0:p.animationTiming)||[];return{uniqueId:"like-dislike",timings:a,enabled:(G==null?void 0:G.likeStatus)==="INDIFFERENT"&&a.length>0,experimentEnabled:a.length>0}},void 0,"hGh9Td");
return _.X("segmented-like-dislike-button-view-model",{class:_.O4("ytSegmentedLikeDislikeButtonViewModelHost",A.className),"button-renderer":!0},_.X(wL,{settings:f},_.X("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.X(_.S,{cond:Q,then:function(a){return _.X(_.EP,{data:a,likeCountEntity:function(){return A.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.X(_.S,{cond:function(){return _.V(A.data().dislikeButtonViewModel,_.WV)},
then:function(a){return _.X(_.vF,{data:a,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Q");
spW.idomCompat=!0;_.pE(spW,"segmented-like-dislike-button-view-model",{props:{data:_.Qf,className:_.Qf}});var mTy=_.aP(function(A){var Q=A.data;var b=A.className;var f=A.setMinWidth;var a=A.forceIconOnly;var T=_.st("account-link-button-view-model"),G=_.I$(_.ICi,function(){var l;return(l=Q().accountLinkStatusEntityKey)!=null?l:""}),p=_.I$(_.ICi,function(){var l;
return(l=Q().accountLinkStatusSecondaryEntityKey)!=null?l:""}),P=function(){if(!_.K("web_account_link_secondary_killswitch")){var l,J;
return((l=G())==null?void 0:l.linked)||((J=p())==null?void 0:J.linked)}var n;return(n=G())==null?void 0:n.linked};
_.H_(function(){var l=G();if(l){var J=Q1L(new A29,sWr(new NP1,!!l.linked));_.iJ().then(function(n){n&&(n.setAccountLinkState(_.Cs(J.JSC$12055_serializeBinary(),4)),n.updateAccountLinkingConfig(!!l.linked))})}},"b9pSsf");
var U=function(){return _.V(Q().toggleButtonViewModel,_.R$)};
_.N3("yt-signal-action-show-account-link-dialog",function(){if(U()){var l=P()?U().toggledButtonViewModel:U().defaultButtonViewModel;l=_.V(l,_.jJ);var J;if((J=G())==null?0:J.isWarning){J=_.V(Q().warningButtonViewModel,_.jJ);if(!J){_.wN(Error("zh"));return}l=J}var n;(J=_.ue((n=l)==null?void 0:n.onTap))&&_.MB([J],T.value)}else _.wN(Error("Ah"))});
var L=function(){var l=U();return Object.assign({},l,{isToggled:P()})},M=function(){return(a==null?0:a())?{iconPosition:"icon-only"}:{}};
return _.X("account-link-button-view-model",{class:_.O4("ytwAccountLinkButtonViewModelHost",b,function(){return(f==null?0:f())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:T,"button-renderer":!0},_.X("div",null,_.X(_.S,{cond:function(){var l;if((l=G())==null?0:l.isWarning)return(l=_.V(Q().warningButtonViewModel,_.jJ))||_.wN(Error("zh")),l},
then:function(l){return _.X(_.J9,{data:l,buttonOverrides:M})},
else:function(){return _.X(_.eq,{data:L,buttonShapeOverrides:M})}})))},"R");_.pE(mTy,"account-link-button-view-model",{props:{data:_.Qf,className:_.Bz,setMinWidth:_.Bz,forceIconOnly:_.Bz}});_.xo("menuRenderer","menuRenderer","ytd-menu-renderer");
var Ae$={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"}},
QMW=_.K("web_fix_missing_action_buttons")?100:200,xJ=function(){var A=_.q.apply(this,arguments)||this;A.safeArea=!_.K("kevlar_flex_menu_safe_area_killswitch");A.tonalOverride=!1;A.threeDotSize="M";A.isOverlay=!1;A.useOverlayDark=!1;A.topLevelIconsOnly=!1;A.JSC$14530_lastWidth=0;A.maybeUpdateFlexibleMenu=function(){_.K("web_fix_missing_action_buttons")?requestAnimationFrame(A.maybeUpdateFlexibleMenuImpl):A.maybeUpdateFlexibleMenuImpl()};
A.maybeUpdateFlexibleMenuImpl=function(){var Q;if((Q=A.data)!=null&&Q.flexibleItems){A.maybeFlushDebouncer();Q=A.hostElement.clientWidth;var b=Q>A.JSC$14530_lastWidth,f,a=((f=A.topLevelButtonsContainer)==null?void 0:f.scrollHeight)||0,T;f=((T=A.flexibleItemButtonsContainer)==null?void 0:T.scrollHeight)||0;T=A.hostElement.scrollHeight>Math.max(a,f)+8;b?(A.resetFlexibleItems(),A.JSC$14530_lastWidth=A.hostElement.clientWidth,A.maybeUpdateFlexibleMenu()):T&&(A.shrinkFlexibleMenu(),A.JSC$14530_lastWidth=
Q)}};
A.computeThreeDotButtonShape=function(){if(A.tonalOverride)return Object.assign({},{onTap:function(){A.onOverflowTap()},
iconPosition:"icon-only",style:A.isOverlay?A.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:A.threeDotSize,state:"active",accessibilityLabel:A.computeAccessibilityLabel(A.data)},A.threeDotButtonOverride)};
A.onOverflowTap=function(){if(A.data.fetchMenuCommand)_.fJ().resolve(_.de).resolveCommand(A.data.fetchMenuCommand,{form:{element:A.hostElement}});else if(A.data.isDisabled&&A.data.disabledCommand)_.V0(A.data.disabledCommand,A.hostElement);else{var Q=A.createMenuRendererVe(),b={items:A.items};A.data.menuPopupAccessibility&&(b.menuPopupAccessibility=A.data.menuPopupAccessibility);A.data.footer&&(b.footer=A.data.footer);Q={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:b},veData:Q}};
_.fJ().resolve(_.j4).openSheet({openPopupActionCommand:Q},A.hostElement)}};
return A};
_.O(xJ,_.q);_.d=xJ.prototype;_.d.updateButtonOverrides=function(){if(!_.K("menu_renderer_label_update_upkillswitch")){var A=_.Bj(this.hostElement).querySelector("yt-button-view-model");A&&(A.buttonOverrides=this.buttonOverrides)}};
_.d.computeHasItems=function(){var A;return((A=this.topLevelButtonData)==null?void 0:A.length)||this.hasFlexibleItems};
_.d.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.d.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Uc(this.hostElement,{"--ytd-menu-renderer-button-color":_.zx(this.data.iconColor)}))};
_.d.onStamperFinished=function(){this.JSC$14530_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.d.setupFlexibleMenu=function(){var A=this,Q;(Q=this.data)!=null&&Q.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Ac(this.maybeUpdateFlexibleMenu,QMW,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){A.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))};
_.d.maybeFlushDebouncer=function(){if(_.K("web_replace_formatted_with_attributed_string")){var A;(A=this.topLevelButtons)==null||A.forEach(function(b){var f;(b=(f=b.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&CE6(b)});
var Q;(Q=this.flexibleItemButtons)==null||Q.forEach(function(b){var f;(b=(f=b.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&CE6(b)})}};
_.d.resetFlexibleItems=function(){var A;if((A=this.data)!=null&&A.flexibleItems){_.K("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var Q;this.flexAsTopLevelButtons=(Q=this.data.flexibleItems)==null?void 0:Q.map(function(b){return _.V(b,_.qqM).topLevelButton});
_.K("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.d.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.d.shrinkFlexibleMenu=function(){var A;(A=this.flexAsTopLevelButtons)!=null&&A.length&&(this.flexAsTopLevelButtons=[].concat(_.ri(this.flexAsTopLevelButtons.slice(0,-1))))};
_.d.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Ae$,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Ae$,events:!0}}};
_.d.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.d.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.d.detached=function(){this.icon="MORE_VERT"};
_.d.computeTopLevelButtonData=function(A){if(!A)return[];var Q;A=(Q=A==null?void 0:A.topLevelButtons)!=null?Q:[];return _.j2.unsafeClone([].concat(_.ri(A)))};
_.d.computeItems=function(A,Q){if(!A)return[];var b=[];if(Q){var f=(A.flexibleItems||[]).map(function(G){return _.V(G,_.qqM)});
f=_.F(f);for(var a=f.next();!a.done;a=f.next())a=a.value,Q.includes(a.topLevelButton)||(a=a.menuItem)&&b.push(a)}var T;A=(T=A==null?void 0:A.items)!=null?T:[];return[].concat(_.ri(b),_.ri(A))};
_.d.computeMenuActive=function(A,Q){return A||Q};
_.d.onPopupOpened=function(){this.overlayOpen=!0;_.Bn(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.d.onPopupClosed=function(){this.overlayOpen=!1;_.Bn(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.d.onPopupCanceled=function(){this.overlayOpen=!1;_.Bn(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.d.computeAccessibilityLabel=function(A){return this.get("accessibility.accessibilityData.label",A)};
_.d.isHidden=function(A,Q){return this.tonalOverride||!A?!0:A.fetchMenuCommand||A.isDisabled&&A.disabledCommand?!1:!(Q==null?0:Q.length)};
_.d.isModernOverflowHidden=function(A,Q){return this.tonalOverride&&A?A.fetchMenuCommand?!1:!(Q==null?0:Q.length):!0};
_.d.createMenuRendererVe=function(){var A=this.data.trackingParams,Q=_.WR(),b=_.hx();return A&&Q&&b?(A=_.t8(A),b=_.K6(7591),_.K("combine_ve_grafts")?_.l$(_.IP(),b,A):_.ui(Q,A,b),b):null};
_.Qr.Object.defineProperties(xJ.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.flexAsTopLevelButtons)==null||!A.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
xJ.prototype.onPopupCanceled=xJ.prototype.onPopupCanceled;xJ.prototype.onPopupClosed=xJ.prototype.onPopupClosed;xJ.prototype.onPopupOpened=xJ.prototype.onPopupOpened;xJ.prototype.tonalOverrideChanged=xJ.prototype.tonalOverrideChanged;xJ.prototype.resetFlexibleItems=xJ.prototype.resetFlexibleItems;xJ.prototype.setupFlexibleMenu=xJ.prototype.setupFlexibleMenu;xJ.prototype.iconButtonColorChanged=xJ.prototype.iconButtonColorChanged;xJ.prototype.updateButtonOverrides=xJ.prototype.updateButtonOverrides;
_.E([_.I(_.aE),_.c("design:type",Object)],xJ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("#button-shape"),_.c("design:type",HTMLElement)],xJ.prototype,"buttonShape",void 0);_.E([_.V1("#button"),_.c("design:type",Object)],xJ.prototype,"button",void 0);
_.E([_.C(),_.c("design:type",Object)],xJ.prototype,"data",void 0);_.E([_.C({computed:"computeTopLevelButtonData(data)"}),_.c("design:type",Array)],xJ.prototype,"topLevelButtonData",void 0);_.E([_.C(),_.c("design:type",Array)],xJ.prototype,"flexAsTopLevelButtons",void 0);_.E([_.C({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.c("design:type",Array)],xJ.prototype,"items",void 0);_.E([_.C({value:"MORE_VERT"}),_.c("design:type",String)],xJ.prototype,"icon",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xJ.prototype,"safeArea",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.c("design:type",Boolean)],xJ.prototype,"menuActive",void 0);_.E([_.C(),_.c("design:type",Boolean)],xJ.prototype,"menuFocused",void 0);_.E([_.C({value:"bottom"}),_.c("design:type",String)],xJ.prototype,"buttonTooltipPosition",void 0);_.E([_.C(),_.c("design:type",Boolean)],xJ.prototype,"overlayOpen",void 0);
_.E([_.C({value:!0}),_.c("design:type",Boolean)],xJ.prototype,"forceIconButton",void 0);_.E([_.C(),_.c("design:type",Boolean)],xJ.prototype,"styleActionButton",void 0);_.E([_.C(),_.c("design:type",Boolean)],xJ.prototype,"disableTextTransformOnButtons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xJ.prototype,"tonalOverride",void 0);_.E([_.C(),_.c("design:type",Object)],xJ.prototype,"threeDotSize",void 0);
_.E([_.C(),_.c("design:type",Object)],xJ.prototype,"threeDotButtonOverride",void 0);_.E([_.C(),_.c("design:type",Object)],xJ.prototype,"isOverlay",void 0);_.E([_.C(),_.c("design:type",Object)],xJ.prototype,"useOverlayDark",void 0);_.E([_.C({computed:"computeButtonOverride(tonalOverride)"}),_.c("design:type",Object)],xJ.prototype,"buttonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],xJ.prototype,"hasCustomIconColor",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("flexAsTopLevelButtons"),_.c("design:type",Object),_.c("design:paramtypes",[])],xJ.prototype,"hasFlexibleItems",null);_.E([_.C({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.c("design:type",Boolean)],xJ.prototype,"hasItems",void 0);_.E([_.C(),_.c("design:type",Object)],xJ.prototype,"topLevelIconsOnly",void 0);
_.E([_.iN("topLevelIconsOnly"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"updateButtonOverrides",null);_.E([_.H("topLevelIconsOnly"),_.c("design:type",Object),_.c("design:paramtypes",[])],xJ.prototype,"buttonOverrides",null);_.E([_.V1("#top-level-buttons-computed"),_.c("design:type",HTMLElement)],xJ.prototype,"topLevelButtonsContainer",void 0);_.E([_.Oc(".top-level-buttons > *"),_.c("design:type",Array)],xJ.prototype,"topLevelButtons",void 0);
_.E([_.V1("#flexible-item-buttons"),_.c("design:type",HTMLElement)],xJ.prototype,"flexibleItemButtonsContainer",void 0);_.E([_.Oc("#flexible-item-buttons > *"),_.c("design:type",Array)],xJ.prototype,"flexibleItemButtons",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"iconButtonColorChanged",null);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"setupFlexibleMenu",null);_.E([_.I_("topLevelIconsOnly"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"resetFlexibleItems",null);_.E([_.iN("tonalOverride"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"tonalOverrideChanged",null);
_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"onPopupOpened",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"onPopupClosed",null);_.E([_.Kc("yt-popup-canceled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xJ.prototype,"onPopupCanceled",null);
_.W(xJ,"ytd-menu-renderer",function(){if(JDW===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);JDW=A}A=JDW;return A},{mode:2});var bj9;var fCL;_.cF=_.aP(function(A){var Q=A.data;var b=function(){if(Q().icon)a:{var f={iconName:Q().icon};for(var a=_.fJ().resolve(_.ie),T=_.F([12,24]),G=T.next();!G.done;G=T.next()){var p=G.value;G=Object.assign({},f,{iconStyle:"youtube_fill",iconSize:p});p=Object.assign({},f,{iconStyle:"youtube_outline",iconSize:p});if(a.resolveIcon(G)){f=G;break a}if(a.resolveIcon(p)){f=p;break a}}f=void 0}else f=void 0;return f};
A={};return _.X("badge-shape",{class:_.O4("badge-shape-wiz",function(){return reJ(Q().type)},(A["badge-shape-wiz--overlay"]=function(){return Q().isOverlay},A["badge-shape-wiz--ads-include-dot"]=function(){return Q().adsIncludeDot},A["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(Q().type){case 17:case 18:case 19:var f=!0;
break a;default:f=!1}return f},A["badge-shape-wiz--status-badge"]=function(){a:switch(Q().type){case 12:case 13:case 14:case 15:case 16:var f=!0;
break a;default:f=!1}return f},A["badge-shape-wiz--no-text"]=function(){return!Q().text},A["badge-shape-wiz--modern"]=function(){return Q().modern||_.K("web_modern_badge_shape")},A)),
style:_.qM({"background-color":function(){var f;return(f=Q().customColors)==null?void 0:f.backgroundColor}}),
role:function(){return Q().accessibilityText?"img":void 0},
"aria-label":function(){return Q().accessibilityText}},_.X(_.S,{cond:function(){return Q().animation},
then:function(f){return _.X(_.X6,{className:"badge-shape-wiz__icon",data:f,animationName:function(){return f().animationConfig.name||""}})}}),_.X(_.S,{cond:function(){var f;
return b()&&!((f=Q())==null?0:f.animation)},
then:function(){return _.X("div",{class:"badge-shape-wiz__icon"},_.X(zY4,{data:function(){return b()}}))}}),_.X("div",{class:"badge-shape-wiz__text"},function(){var f;
return(f=Q())==null?void 0:f.text}))},"S");
_.cF.idomCompat=!0;_.pE(_.cF,"badge-shape",{props:{data:_.Qf}});var zT=function(){var A=_.q.apply(this,arguments)||this;A.systemIcons=_.K("kevlar_system_icons");A.animated=_.K("animated_live_badge_icon");A.useBadgeShape=_.K("web_badge_shape_defrag");return A};
_.O(zT,_.q);_.d=zT.prototype;_.d.addTooltips=function(){for(var A=_.Bj(this.hostElement).querySelectorAll(".badge"),Q=0,b;b=A[Q++];){var f=this.repeatElement.itemForElement(b);b=_.Bj(b);b.lastChild&&b.lastChild.is==="tp-yt-paper-tooltip"&&b.removeChild(b.lastChild);if(f=f.metadataBadgeRenderer&&f.metadataBadgeRenderer.tooltip){var a=_.F6("tp-yt-paper-tooltip");(0,_.SK)(a).textContent=f;a.setAttribute("position","top");a.setAttribute("aria-hidden","true");b.appendChild(a)}}};
_.d.badgesChanged=function(){var A=this;_.y2().parkOrScheduleJob(function(){A.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.d.standaloneRoundedBadgeChanged=function(){var A=this.useRoundedBadge?this.useRoundedBadge:void 0;A&&(this.useRoundedBadge=A)};
_.d.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.d.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.d.computeStyle=function(A){_.K("enable_html5_teal_ad_badge")&&A==="BADGE_STYLE_TYPE_AD"&&(A="badge-style-type-ad-alternate");_.K("kevlar_ytb_live_badges")&&A==="BADGE_STYLE_TYPE_LIVE_NOW"&&(A="badge-style-type-live-now-alternate");return A?A.toLowerCase().replace(/_/g,"-"):""};
_.d.computeRole=function(A){return this.computeAriaLabel(A)?"img":"status"};
_.d.computeAriaLabel=function(A){var Q;return(A==null?void 0:(Q=A.accessibilityData)==null?void 0:Q.label)||(A==null?void 0:A.label)};
_.d.computeBadgeShape=function(A){var Q;if(A){var b,f=oby(A.style),a=tff(A.style),T=A.label,G=((b=A.accessibilityData)==null?void 0:b.label)||A.label;A=(Q=A.icon)==null?void 0:Q.iconType;Q={type:f,brNzRatingBadgeType:a,text:T,accessibilityText:G,icon:A!=="PREMIUM"?A:void 0}}else Q={};return Q};
_.d.updateComputedBadges=function(A,Q,b){var f=this;(Q=Q?[Q]:b?[b]:void 0)?this.computedBadges=Q:this.computedBadges=A==null?void 0:A.filter(function(a){var T;if((T=a.metadataBadgeRenderer)==null?0:T.groups){T=!1;a=_.F(a.metadataBadgeRenderer.groups);for(var G=a.next();!G.done;G=a.next()){G=G.value;var p=void 0;T=T||((p=f.hiddenBadgeGroups)==null?void 0:p.includes(G))}return!T}return!0})};
_.d.useFilledIcons=function(A){return _.K("kevlar_system_icons")&&(A==="AUDIO_BADGE"||A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE"||A==="SPONSORSHIP_STAR"||A==="PERSON_RADAR_FILLED"||A==="PERSON_RADAR")};
_.d.computeBadgeShapeStyle=function(A){return this.useBadgeShape?A==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||A==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.d.computeIcon=function(A){var Q,b;A=A==null?void 0:(Q=A.metadataBadgeRenderer)==null?void 0:(b=Q.icon)==null?void 0:b.iconType;if(A!=="PREMIUM"&&A)return _.K0(A)};
_.d.computeStandaloneBadge=function(A){var Q;A=A==null?void 0:(Q=A.icon)==null?void 0:Q.iconType;return A==="PREMIUM_STANDALONE"||A==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
zT.prototype.hiddenBadgeGroupsChanged=zT.prototype.hiddenBadgeGroupsChanged;zT.prototype.standaloneBadgeChanged=zT.prototype.standaloneBadgeChanged;zT.prototype.standaloneRoundedBadgeChanged=zT.prototype.standaloneRoundedBadgeChanged;zT.prototype.badgesChanged=zT.prototype.badgesChanged;_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"hidden",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],zT.prototype,"componentBehavior",void 0);
_.E([_.C(),_.c("design:type",Array)],zT.prototype,"badges",void 0);_.E([_.C(),_.c("design:type",Object)],zT.prototype,"topStandaloneBadge",void 0);_.E([_.C(),_.c("design:type",Object)],zT.prototype,"bottomStandaloneBadge",void 0);_.E([_.C(),_.c("design:type",Object)],zT.prototype,"computedBadges",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"mediumFontAdBadge",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"useRoundedBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"largeFontAdBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"overlayAd",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"overlayPremium",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"noDotAdBadge",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"collectionTruncate",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"isThumbnailBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zT.prototype,"wrapBadges",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],zT.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],zT.prototype,"animated",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],zT.prototype,"useBadgeShape",void 0);_.E([_.C({value:[]}),_.c("design:type",Array)],zT.prototype,"hiddenBadgeGroups",void 0);_.E([_.V1("#repeat"),_.c("design:type",eK)],zT.prototype,"repeatElement",void 0);_.E([_.I_("badges"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zT.prototype,"badgesChanged",null);
_.E([_.I_("useRoundedBadge"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zT.prototype,"standaloneRoundedBadgeChanged",null);_.E([_.I_("topStandaloneBadge","bottomStandaloneBadge"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zT.prototype,"standaloneBadgeChanged",null);_.E([_.I_("hiddenBadgeGroups"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zT.prototype,"hiddenBadgeGroupsChanged",null);
_.E([_.h({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],zT);
var aCp=_.SM()(zT,"ytd-badge-supported-renderer",function(){if(fCL===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);fCL=A}A=fCL;return A},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.UG("kevlar_poly_si_batch_j053")?1:2});var w8=function(){var A=_.q.apply(this,arguments)||this;A.iconType="STAR";A.standardizeIconSize=_.K("kevlar_system_icons");A.mediaHoverOverlayInitialVisibility=_.K("enable_top_landscape_image_button_command_web");A.noBottomMargin=!1;A.thumbnailObjectFit="CONTAIN";A.thumbnailFitHeight=!0;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.O(w8,_.q);_.d=w8.prototype;
_.d.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"}}}};
_.d.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",w8.JSC$14542_DEFAULT_CLICK_LOCATION_BEHAVIOR,w8.JSC$14542_CLICK_LOCATION_ID_MAP))};
_.d.onTap=function(A){if(!_.K("use_on_click_for_desktop_display_ad"))this.onTapOrClick(A)};
_.d.onClick=function(A){if(_.K("use_on_click_for_desktop_display_ad"))this.onTapOrClick(A)};
_.d.onTapOrClick=function(A){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,A,!1)};
_.d.updateMediaBackgroundImage=function(){var A=this.get("data.image.thumbnail.thumbnails");A&&(A=_.Pz(A,0))&&_.Uc(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+A+")"})};
_.d.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var A=0;A<this.data.impressionEndpoints.length;A++){var Q=this.data.impressionEndpoints[A];Q.clickTrackingParams&&delete Q.clickTrackingParams;_.fJ().resolve(_.de).resolveCommand(Q,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var b;((b=this.data)==null?0:b.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.d.handleMuteAd=function(){};
_.d.attached=function(){var A=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Qr.Object.defineProperties(w8.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.titleText)return"";var Q;return _.JQ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((Q=this.data)==null?void 0:Q.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.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 A;return!((A=this.data)==null||!A.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"}}});
w8.prototype.onClick=w8.prototype.onClick;w8.prototype.onTap=w8.prototype.onTap;w8.prototype.dataChanged=w8.prototype.dataChanged;
w8.JSC$14542_CLICK_LOCATION_ID_MAP=_.K("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"]]);
w8.JSC$14542_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.K("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.wS),_.c("design:type",Object)],w8.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],w8.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],w8.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.I(xX),_.c("design:type",Object)],w8.prototype,"ytdActiveViewBehavior",void 0);_.E([_.I([_.PJ.YtActionHandlerBehavior]),_.c("design:type",Object)],w8.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],w8.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],w8.prototype,"clickCommand",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],w8.prototype,"miniMode",void 0);_.E([_.C(),_.c("design:type",String)],w8.prototype,"iconType",void 0);_.E([_.H("data.titleText"),_.c("design:type",String),_.c("design:paramtypes",[])],w8.prototype,"titleAriaLabel",null);
_.E([_.H("data.rating"),_.c("design:type",Object),_.c("design:paramtypes",[])],w8.prototype,"getRating",null);_.E([_.H("data.price"),_.c("design:type",Object),_.c("design:paramtypes",[])],w8.prototype,"getPrice",null);_.E([_.H("data.thirdLine"),_.c("design:type",Object),_.c("design:paramtypes",[])],w8.prototype,"getThirdLine",null);_.E([_.H("data.fourthLine"),_.c("design:type",Object),_.c("design:paramtypes",[])],w8.prototype,"getFourthLine",null);
_.E([_.H("data.fifthLine"),_.c("design:type",Object),_.c("design:paramtypes",[])],w8.prototype,"getFifthLine",null);_.E([_.H("getRating"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"computeRatingHidden",null);_.E([_.H("getPrice"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"computePriceHidden",null);_.E([_.H("getThirdLine"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"computeThirdLineHidden",null);
_.E([_.H("getFourthLine"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"computeFourthLineHidden",null);_.E([_.H("getFifthLine"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"computeFifthLineHidden",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.energyIcon"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"hasEnergyIcon",null);
_.E([_.H("computePriceHidden","computeRatingHidden"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"computeSecondaryTextHidden",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],w8.prototype,"standardizeIconSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],w8.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],w8.prototype,"noBottomMargin",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.layout"),_.c("design:type",String),_.c("design:paramtypes",[])],w8.prototype,"layout",null);_.E([_.H("data.layout"),_.c("design:type",Object),_.c("design:paramtypes",[])],w8.prototype,"mediaThumbnailWidth",null);_.E([_.H("layout"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w8.prototype,"useRoundedBadge",null);_.E([_.C(),_.c("design:type",String)],w8.prototype,"thumbnailObjectFit",void 0);
_.E([_.C(),_.c("design:type",Object)],w8.prototype,"thumbnailFitHeight",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],w8.prototype,"dataChanged",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],w8.prototype,"onTap",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],w8.prototype,"onClick",null);
_.E([_.h({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],w8);
_.W(w8,"ytd-display-ad-renderer",function(){if(bj9!==void 0)return bj9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return bj9=A},{mode:1});var TMy;var dvx;var FHL;var jMi=new Map;var Ghx=!1;var uV=function(){var A=_.q.apply(this,arguments)||this;A.DEFAULT_TOOLTIP_OFFSET="10";A.TOOLTIP_OFFSET_NO_BANNER="-8";A.badges=null;A.noEndpoints=!1;A.wrapText=!1;A.forceVerified=!1;A.tooltipPosition="top";A.compactStyle=!1;A.height=0;A.lineHeight=0;return A};
_.O(uV,_.q);_.d=uV.prototype;_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.d.attached=function(){var A=this;this.observer=new MutationObserver(function(Q,b){A.handleResized();b.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.d.detached=function(){this.observer&&this.observer.disconnect()};
_.d.logTooltipEvent=function(){_.K("kevlar_wiz_tooltip_event_killswitch")||Ghx||(_.RqC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Ghx=!0)};
_.d.handleWindowResized=function(){this.handleResized()};
_.d.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")))};
_.d.onHeightChanged=function(){if(this.verified){var A=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.vG("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=A:this.textContainerEl.style.marginRight=A}};
_.d.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.vG("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.d.handleResized=function(){var A=this;this.verified&&_.j7.addLowPriorityJob(function(){A.fitBackgroundToText();var Q=getComputedStyle(A.hostElement).lineHeight;Q&&(Q=Q.match(/\d+/))&&Q.length&&(A.lineHeight=Number(Q[0]));A.height=A.lineHeight&&!A.wrapText?A.lineHeight:A.textEl.offsetHeight})};
_.d.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var A=document.createRange(),Q=_.Bj(this.textEl).children;Q.length>0?A.selectNodeContents(Q[0]):A.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(A.getBoundingClientRect().width)+"px"}};
_.d.computeChannelBadgeStyle=function(A){var Q;if((A==null?0:(Q=A.runs)==null?0:Q.length)&&A.runs[0].textColor)return"--ytd-badge-icon-color:"+_.zx(A.runs[0].textColor)+";"};
_.Qr.Object.defineProperties(uV.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"?_.sr(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var A=this.get("badges.0.metadataBadgeRenderer.tooltip");if(A)return A}return _.mO(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
uV.prototype.onLineHeightChanged=uV.prototype.onLineHeightChanged;uV.prototype.onHeightChanged=uV.prototype.onHeightChanged;uV.prototype.onChannelNameChanged=uV.prototype.onChannelNameChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],uV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uV.prototype,"badges",void 0);_.E([_.C(),_.c("design:type",Object)],uV.prototype,"channelName",void 0);
_.E([_.C(),_.c("design:type",Object)],uV.prototype,"noEndpoints",void 0);_.E([_.C(),_.c("design:type",Object)],uV.prototype,"wrapText",void 0);_.E([_.C(),_.c("design:type",Object)],uV.prototype,"forceVerified",void 0);_.E([_.C(),_.c("design:type",Object)],uV.prototype,"tooltipPosition",void 0);_.E([_.C(),_.c("design:type",String)],uV.prototype,"tooltip",void 0);_.E([_.C(),_.c("design:type",Boolean)],uV.prototype,"hasChannelArt",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uV.prototype,"compactStyle",void 0);_.E([_.V1("#text-container"),_.c("design:type",HTMLElement)],uV.prototype,"textContainerEl",void 0);_.E([_.V1("#text"),_.c("design:type",Object)],uV.prototype,"textEl",void 0);_.E([_.V1("#verified-tooltip"),_.c("design:type",HTMLElement)],uV.prototype,"verifiedTooltip",void 0);_.E([_.C(),_.c("design:type",Object)],uV.prototype,"height",void 0);
_.E([_.C(),_.c("design:type",Object)],uV.prototype,"lineHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("badges","forceVerified"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],uV.prototype,"verified",null);_.E([_.H("badges","verified"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],uV.prototype,"hideBadges",null);_.E([_.H("channelName"),_.c("design:type",Object),_.c("design:paramtypes",[])],uV.prototype,"formattedName",null);
_.E([_.H("badges","verified","formattedName"),_.c("design:type",String),_.c("design:paramtypes",[])],uV.prototype,"tooltipText",null);_.E([_.H("hasChannelArt"),_.c("design:type",String),_.c("design:paramtypes",[])],uV.prototype,"tooltipOffset",null);_.E([_.iN("channelName"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uV.prototype,"onChannelNameChanged",null);
_.E([_.iN("height"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uV.prototype,"onHeightChanged",null);_.E([_.iN("lineHeight","height"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uV.prototype,"onLineHeightChanged",null);_.E([_.h({is:"ytd-channel-name",disableElementRegistration:!0})],uV);
_.W(uV,"ytd-channel-name",function(){if(FHL!==void 0)return FHL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return FHL=A},{mode:_.UG("kevlar_poly_si_batch_j036")?1:2});var Z_=function(){var A=_.q.apply(this,arguments)||this;A.standardizeIconSize=_.K("kevlar_system_icons");return A};
_.O(Z_,_.q);Z_.prototype.basicPaletteChanged=function(){var A;(A=this.data.color)!=null&&A.basicColorPaletteData&&_.vz(this.hostElement,this.data.color.basicColorPaletteData)};
Z_.prototype.useFilledIcons=function(A){return _.K("kevlar_system_icons")&&(A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE")};
_.Qr.Object.defineProperties(Z_.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return this.data.authorCreator||((A=this.data)==null?void 0:(Q=A.color)==null?void 0:(b=Q.basicColorPaletteData)==null?void 0:b.backgroundColor)}}});
Z_.prototype.basicPaletteChanged=Z_.prototype.basicPaletteChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Z_.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Z_.prototype,"standardizeIconSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.authorUnifiedVerified"),_.c("design:type",Object),_.c("design:paramtypes",[])],Z_.prototype,"verified",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Z_.prototype,"creator",null);_.E([_.iN("data.color.basicColorPaletteData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Z_.prototype,"basicPaletteChanged",null);_.E([_.h({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Z_);
_.W(Z_,"ytd-author-comment-badge-renderer",function(){if(dvx!==void 0)return dvx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return dvx=A},{mode:1});var BMM;var yP=function(){return _.q.apply(this,arguments)||this};
_.O(yP,_.q);yP.prototype.computeThumbnailWidth=function(A){if(A==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yP.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",String)],yP.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],yP.prototype,"surface",void 0);
_.E([_.C({reflectToAttribute:!0,value:_.K("enable_shrink_image_size_on_web_posts_singleton")}),_.c("design:type",Boolean)],yP.prototype,"searchSxsUx",void 0);_.E([_.h({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],yP);
_.W(yP,"ytd-backstage-image-renderer",function(){if(BMM!==void 0)return BMM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return BMM=A},{mode:1});var pCr;var YJ=function(){var A=_.q.apply(this,arguments)||this;A.isLoading=!1;A.selectedItemIndex=-1;return A};
_.O(YJ,_.q);_.d=YJ.prototype;_.d.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.d.computeIsImagePoll=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.d.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.d.thumbnailSrc=function(A){var Q,b,f,a;return(A==null?0:(Q=A.thumbnails)==null?0:(b=Q[0])==null?0:b.url)?_.hs((f=A.thumbnails)==null?void 0:(a=f[0])==null?void 0:a.url):void 0};
_.d.progressWidth=function(A){return"width:"+(A?A*100:0)+"%;"};
_.d.textAreaWidth=function(A){return this.isImagePoll?null:"width:"+(A?A*100:0)+"%;"};
_.d.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.d.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var A=this.data.choices,Q=0;Q<A.length;Q++)if(A[Q].selected){this.selectedItemIndex=Q;break}};
_.d.onPopupClosed=function(A,Q){A=Number(this.pollVotes.selected);Q.confirmed&&(this.selectChoice(A,!1),_.pD(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.d.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.d.onYtCommentPollRevert=function(A,Q){Q&&(this.selectChoice(Q.selectedChoiceIndex,!0),this.set("data.totalVotes",Q.totalVotes))};
_.d.onYtServiceRequestSent=function(A,Q){if(Q.actions)for(A=0;A<Q.actions.length;A++){var b=Q.actions[A];_.V(b,rE)&&this.set("data.totalVotes",_.V(b,rE).totalVotes)}};
_.d.onYtServiceRequestCompleted=function(A){var Q=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(Q==="FEEDBACK_DESELECT"||Q==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.Bn(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.d.getEndpoint=function(A,Q){return Q===A?this.data.choices[Q].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.d.selectChoice=function(A,Q){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++){var f;if(A===this.selectedItemIndex){var a=!1;var T=f=null}else f=(a=b===A)?this.data.choices[b].voteRatioIfSelected:this.data.choices[b].voteRatioIfNotSelected,T=a?this.data.choices[b].votePercentageIfSelected:this.data.choices[b].votePercentageIfNotSelected;this.set("data.choices."+b+".voteRatio",f);
this.set("data.choices."+b+".votePercentage",T);this.set("data.choices."+b+".selected",a)}Q||(this.isLoading=!0,(Q=this.getEndpoint(A,this.selectedItemIndex))&&_.fJ().resolve(_.de).resolveCommand(Q,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.Qr.Object.defineProperties(YJ.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
YJ.prototype.onYtServiceRequestCompleted=YJ.prototype.onYtServiceRequestCompleted;YJ.prototype.onYtServiceRequestSent=YJ.prototype.onYtServiceRequestSent;YJ.prototype.onYtCommentPollRevert=YJ.prototype.onYtCommentPollRevert;YJ.prototype.onPopupClosed=YJ.prototype.onPopupClosed;YJ.prototype.dataChanged=YJ.prototype.dataChanged;_.E([_.I(_.Ah),_.c("design:type",Object)],YJ.prototype,"paperItemBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],YJ.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YJ.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],YJ.prototype,"isLoading",void 0);_.E([_.C({computed:"computeIsChannelOwner(data.choices)"}),_.c("design:type",Boolean)],YJ.prototype,"isChannelOwner",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.c("design:type",Boolean)],YJ.prototype,"isImagePoll",void 0);_.E([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.c("design:type",Boolean)],YJ.prototype,"isTotalVotesDisabled",void 0);_.E([_.C(),_.c("design:type",Object)],YJ.prototype,"previousPollInfo",void 0);_.E([_.C(),_.c("design:type",Object)],YJ.prototype,"selectedItemIndex",void 0);_.E([_.V1("#poll-votes"),_.c("design:type",Object)],YJ.prototype,"pollVotes",void 0);
_.E([_.H("isChannelOwner"),_.c("design:type",Object),_.c("design:paramtypes",[])],YJ.prototype,"endpointStyle",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YJ.prototype,"dataChanged",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],YJ.prototype,"onPopupClosed",null);
_.E([_.Kc("yt-comment-poll-revert"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],YJ.prototype,"onYtCommentPollRevert",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],YJ.prototype,"onYtServiceRequestSent",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],YJ.prototype,"onYtServiceRequestCompleted",null);_.E([_.h({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],YJ);
_.W(YJ,"ytd-backstage-poll-renderer",function(){if(pCr!==void 0)return pCr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return pCr=A},{mode:2});var PWK;var XCj={autoplay:!1,loop:!1},S_M={simpleText:""},D_=function(){var A=_.q.apply(this,arguments)||this;A.isLoading=!1;A.usesPanelLockup=!1;A.selectedItemIndex=-1;A.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},XCj,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});A.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},XCj,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});A.correctnessAnimationProps=[];A.correctnessAnimationRefs=[];return A};
_.O(D_,_.q);_.d=D_.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.d.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.d.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.d.computeIsImageQuiz=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.d.onExplanationChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var A=this.data.choices;if(A){this.maybeInitializeQuizLotties(A);for(var Q=0;Q<A.length;Q++)if(A[Q].isSelected||this.isChannelOwner&&A[Q].isCorrect){this.selectedItemIndex=Q;return}this.selectedItemIndex=-1}}};
_.d.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var A=this.selectedItemIndex,Q=Number(this.quizVotes.selected);this.selectChoice(Q);this.sendVoteAction(Q,A);this.quizVotes.selected=-1;var b;A=!((b=this.data)==null?0:b.enableAnimation);this.maybePlayAnswerAnimations(A)}};
_.d.onYtCommentPollRevert=function(A,Q){Q&&(this.selectChoice(Q.selectedChoiceIndex),this.set("data.totalVotes",Q.totalVotes))};
_.d.onYtServiceRequestSent=function(A,Q){if(Q.actions)for(A=_.F(Q.actions),Q=A.next();!Q.done;Q=A.next())(Q=_.V(Q.value,rE))&&this.set("data.totalVotes",Q.totalVotes)};
_.d.onYtServiceRequestCompleted=function(A){var Q=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(Q==="FEEDBACK_DESELECT"||Q==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.Bn(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.d.getAnimationPropsForChoiceIndex=function(A,Q){return Q[A]};
_.d.maybePlayAnswerAnimations=function(A){A=A===void 0?!1:A;var Q;if((Q=this.data)!=null&&Q.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){Q=_.F(this.correctnessAnimationRefs);for(var b=Q.next();!b.done;b=Q.next()){var f=void 0,a=void 0;(f=b.value)==null||(a=f.lottieEl)==null||a.stop()}if(!(this.selectedItemIndex<0)){Q=0;A&&(Q=this.isCorrect?37:25);var T,G;(T=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(G=T.lottieEl)==null||G.goToAndPlay(A?Q:0,!0);if(!(this.isCorrect||
(T=this.data.choices.findIndex(function(L){return L.isCorrect}),T<0))){var p,P;
(P=(p=this.correctnessAnimationRefs[T])==null?void 0:p.lottieEl)==null||P.goToAndPlay(37,!0);var U;p=(U=this.fadeContainers)==null?void 0:U.item(T);!A&&p&&this.fadeIn(p)}}}};
_.d.thumbnailSrc=function(A){var Q,b,f,a;return(A==null?0:(Q=A.thumbnails)==null?0:(b=Q[0])==null?0:b.url)?_.hs((f=A.thumbnails)==null?void 0:(a=f[0])==null?void 0:a.url):void 0};
_.d.a11yVotedText=function(A,Q){var b,f,a=((b=this.data)==null?void 0:(f=b.correctVotedText)==null?void 0:f.simpleText)||"",T,G;b=((T=this.data)==null?void 0:(G=T.votedText)==null?void 0:G.simpleText)||"";if(!Q)return"";var p,P;if((p=this.data)==null?0:(P=p.choices)==null?0:P[A].isCorrect)return a;var U,L;return((U=this.data)==null?0:(L=U.choices)==null?0:L[A].isSelected)?b:""};
_.d.getEndpoint=function(A,Q){return Q===A?this.data.choices[A].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.d.sendVoteAction=function(A,Q){if(A=this.getEndpoint(A,Q))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(A)};
_.d.selectChoice=function(A){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Q=0;Q<this.data.choices.length;Q++)this.set("data.choices."+Q+".isSelected",A===this.selectedItemIndex?!1:Q===A);this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.d.maybeInitializeQuizLotties=function(A){var Q=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=A.map(function(b){return{animationConfig:b.isCorrect?Q.baseCorrectLottiePlayerAnimationConfig:Q.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){Q.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(b){return b.animationRef||{}})};
_.d.fadeIn=function(A){A.classList.add("fade-in");_.LE(_.j7,function(){A.classList.remove("fade-in")},900)};
_.Qr.Object.defineProperties(D_.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.mO(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 A,Q;return((A=this.data)==null?void 0:(Q=A.choices)==null?void 0:Q.some(function(b){return b.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?S_M:this.data.choices[this.selectedItemIndex].explanation||S_M}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
D_.prototype.onYtServiceRequestCompleted=D_.prototype.onYtServiceRequestCompleted;D_.prototype.onYtServiceRequestSent=D_.prototype.onYtServiceRequestSent;D_.prototype.onYtCommentPollRevert=D_.prototype.onYtCommentPollRevert;D_.prototype.dataChanged=D_.prototype.dataChanged;D_.prototype.onExplanationChanged=D_.prototype.onExplanationChanged;_.E([_.I(_.Ah),_.c("design:type",Object)],D_.prototype,"paperItemBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],D_.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.du.YtTaskEmitterBehavior),_.c("design:type",Object)],D_.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],D_.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],D_.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],D_.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Object)],D_.prototype,"usesPanelLockup",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.c("design:type",Boolean)],D_.prototype,"isChannelOwner",void 0);_.E([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.c("design:type",Boolean)],D_.prototype,"isTotalVotesDisabled",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.c("design:type",Boolean)],D_.prototype,"isImageQuiz",void 0);_.E([_.C(),_.c("design:type",Object)],D_.prototype,"previousQuizInfo",void 0);_.E([_.C(),_.c("design:type",Object)],D_.prototype,"selectedItemIndex",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data","usesPanelLockup"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],D_.prototype,"shouldUseModernUi",null);
_.E([_.Oc(".fade-container"),_.c("design:type",Object)],D_.prototype,"fadeContainers",void 0);_.E([_.C(),_.c("design:type",Array)],D_.prototype,"correctnessAnimationProps",void 0);_.E([_.H("explanation","showCorrectAnswer"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],D_.prototype,"showExplanation",null);_.E([_.H("isChannelOwner","isAttempted"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],D_.prototype,"showCorrectAnswer",null);
_.E([_.H("isChannelOwner","isAttempted","data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],D_.prototype,"isQuizAnsweringDisabled",null);_.E([_.H("isQuizAnsweringDisabled"),_.c("design:type",Object),_.c("design:paramtypes",[])],D_.prototype,"endpointStyle",null);_.E([_.H("data","selectedItemIndex"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],D_.prototype,"isAttempted",null);
_.E([_.H("data","selectedItemIndex"),_.c("design:type",Object),_.c("design:paramtypes",[])],D_.prototype,"explanation",null);_.E([_.H("data","selectedItemIndex"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],D_.prototype,"isCorrect",null);_.E([_.V1("ytd-expander"),_.c("design:type",Object)],D_.prototype,"expander",void 0);_.E([_.V1("#quiz-votes"),_.c("design:type",Object)],D_.prototype,"quizVotes",void 0);
_.E([_.iN("explanation"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],D_.prototype,"onExplanationChanged",null);_.E([_.iN("data","isChannelOwner"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],D_.prototype,"dataChanged",null);_.E([_.Kc("yt-comment-quiz-revert"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],D_.prototype,"onYtCommentPollRevert",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],D_.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],D_.prototype,"onYtServiceRequestCompleted",null);_.E([_.h({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],D_);
_.W(D_,"ytd-backstage-quiz-renderer",function(){if(PWK!==void 0)return PWK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return PWK=A},{mode:1});var Uv1;var $J=function(){return _.q.apply(this,arguments)||this};
_.O($J,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$J.prototype,"data",void 0);_.E([_.h({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],$J);
_.W($J,"ytd-post-uploaded-video-renderer",function(){if(Uv1!==void 0)return Uv1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Uv1=A},{mode:1});var LH9;var N6=function(){return _.q.apply(this,arguments)||this};
_.O(N6,_.q);N6.prototype.useFilledIcons=function(A){return A==="SPONSORSHIP_STAR"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],N6.prototype,"data",void 0);_.E([_.h({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],N6);
var Mfx=_.SM()(N6,"ytd-sponsors-only-badge-renderer",function(){if(LH9===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);LH9=A}A=LH9;return A},{allowedProps:["data"],
mode:1});var lCW;var sP=function(){return _.q.apply(this,arguments)||this};
_.O(sP,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],sP.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sP.prototype,"data",void 0);_.E([_.h({is:"ytd-child-video-renderer",disableElementRegistration:!0})],sP);
_.W(sP,"ytd-child-video-renderer",function(){if(lCW!==void 0)return lCW;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return lCW=A},{mode:1});var KHj;var ijy;var mZ=function(){var A=_.q.apply(this,arguments)||this;A.size=0;A.enableWebModernCollectionsV2=_.K("web_modern_collections_v2");A.fallbackImageSize={height:void 0,width:9999};A.webModernCollections=!1;return A};
_.O(mZ,_.q);_.d=mZ.prototype;_.d.computeBlurredImageSize=function(A){return A?{height:A*2,width:A*2}:this.fallbackImageSize};
_.d.computeImageSize=function(A){return A?{height:A,width:A}:this.fallbackImageSize};
_.d.computeObjectFit=function(A){return A?"FILL":"CONTAIN"};
_.d.computePreserve=function(A){return A?!0:!1};
_.d.setBackground=function(){var A,Q;_.K("web_modern_collections_v2")&&((A=this.data)==null?0:(Q=A.thumbnail)==null?0:Q.sampledThumbnailColor)&&(A=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+A.red+","+A.green+","+A.blue+",1)")};
mZ.prototype.setBackground=mZ.prototype.setBackground;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],mZ.prototype,"watchFeedThumbnail",void 0);_.E([_.C(),_.c("design:type",Object)],mZ.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],mZ.prototype,"size",void 0);
_.E([_.C({computed:"computeBlurredImageSize(size)"}),_.c("design:type",Object)],mZ.prototype,"blurredImageSize",void 0);_.E([_.C({computed:"computeImageSize(size)"}),_.c("design:type",Object)],mZ.prototype,"imageSize",void 0);_.E([_.C({computed:"computePreserve(size)"}),_.c("design:type",String)],mZ.prototype,"preserve",void 0);_.E([_.C({computed:"computeObjectFit(size)"}),_.c("design:type",String)],mZ.prototype,"objectFit",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],mZ.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mZ.prototype,"webModernCollections",void 0);_.E([_.iN("data.thumbnail.sampledThumbnailColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mZ.prototype,"setBackground",null);_.E([_.h({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],mZ);
_.W(mZ,"ytd-playlist-custom-thumbnail-renderer",function(){if(ijy!==void 0)return ijy;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ijy=A},{mode:1});var JeK;var AS=function(){return _.q.apply(this,arguments)||this};
_.O(AS,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],AS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],AS.prototype,"width",void 0);_.E([_.h({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],AS);
_.W(AS,"ytd-playlist-video-thumbnail-renderer",function(){if(JeK!==void 0)return JeK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return JeK=A},{mode:1});var Vfv;var QD=function(){return _.q.apply(this,arguments)||this};
_.O(QD,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],QD.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],QD.prototype,"width",void 0);_.E([_.h({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],QD);
_.W(QD,"ytd-show-custom-thumbnail-renderer",function(){if(Vfv!==void 0)return Vfv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Vfv=A},{mode:1});var Ojv;var bt=function(){return _.q.apply(this,arguments)||this};
_.O(bt,_.q);bt.prototype.useFilledIcons=function(A){return A==="MUSIC"||A==="COURSE"};
bt.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=uB(this.overlayColor,"0.8");else if(this.overlayColor){var A=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+A.red+","+A.green+","+A.blue+",0.8)"}};
_.Qr.Object.defineProperties(bt.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)}}});
bt.prototype.overlayColorChanged=bt.prototype.overlayColorChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bt.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],bt.prototype,"overlayColor",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.icon","data.text"),_.c("design:type",Object),_.c("design:paramtypes",[])],bt.prototype,"overlayStyle",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data.icon","data.text"),_.c("design:type",Object),_.c("design:paramtypes",[])],bt.prototype,"overlayTextStyle",null);_.E([_.iN("overlayColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bt.prototype,"overlayColorChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],bt);
_.W(bt,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Ojv!==void 0)return Ojv;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Ojv=A},{mode:1});var nbY;var f_=function(){var A=_.q.apply(this,arguments)||this;A.active=!1;return A};
_.O(f_,_.q);f_.prototype.computeIsSpinnerHidden=function(A){return(A==null?void 0:A.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
f_.prototype.computeOverlayIcon=function(A){return(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],f_.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],f_.prototype,"active",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],f_);
_.W(f_,"ytd-thumbnail-overlay-downloading-renderer",function(){if(nbY!==void 0)return nbY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return nbY=A},{mode:1});var khj;var aZ=function(){return _.q.apply(this,arguments)||this};
_.O(aZ,_.q);_.Qr.Object.defineProperties(aZ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],aZ.prototype,"data",void 0);_.E([_.H("data.text"),_.c("design:type",Object),_.c("design:paramtypes",[])],aZ.prototype,"text",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],aZ);
_.W(aZ,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(khj!==void 0)return khj;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return khj=A},{mode:1});var ICL,Hjv=function(){if(ICL!==void 0)return ICL;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ICL=A};var T$=function(){return _.q.apply(this,arguments)||this};
_.O(T$,_.q);_.Qr.Object.defineProperties(T$,{template:{configurable:!0,enumerable:!0,get:function(){return Hjv()}}});
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],T$.prototype,"animateEqualizer",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],T$);_.SM()(T$,"ytd-thumbnail-overlay-equalizer",function(){return Hjv()},{allowedProps:["animateEqualizer"],
mode:1});var CWv;var dw=function(){var A=_.q.apply(this,arguments)||this;A.nowPlayingBadge=_.K("web_now_playing_badge");A.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return A};
_.O(dw,_.q);dw.prototype.activeChanged=function(){var A=this;_.K("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.mL(this,function(){_.Bn(A.hostElement,"yt-playlist-lockup-now-playing-active",A)})};
dw.prototype.onMiniplayerPlayStateChanged=function(A){var Q,b=(Q=_.V(_.kg().currentEndpoint,_.sv))==null?void 0:Q.videoId;this.isVideoPlaying=A&&(_.K("web_limit_now_playing_animation_killswitch")||this.videoId===b)};
dw.prototype.activeChanged=dw.prototype.activeChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],dw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],dw.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],dw.prototype,"isVideoPlaying",void 0);_.E([_.C(),_.c("design:type",String)],dw.prototype,"videoId",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],dw.prototype,"equalizerOnly",void 0);_.E([_.C(),_.c("design:type",Boolean)],dw.prototype,"isActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],dw.prototype,"nowPlayingBadge",void 0);_.E([_.iN("isActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],dw.prototype,"activeChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],dw);
_.W(dw,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(CWv!==void 0)return CWv;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return CWv=A},{mode:1});var q_1;var FR=function(){return _.q.apply(this,arguments)||this};
_.O(FR,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],FR.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],FR);
_.W(FR,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(q_1!==void 0)return q_1;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return q_1=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var obY;var G$=function(){return _.q.apply(this,arguments)||this};
_.O(G$,_.q);G$.prototype.onDurationChanged=function(){var A,Q;_.Bj(this.hostElement).querySelector("#progress").style.width=((Q=(A=this.data)==null?void 0:A.percentDurationWatched)!=null?Q:0)+"%"};
G$.prototype.onDurationChanged=G$.prototype.onDurationChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],G$.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],G$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],G$.prototype,"isLive",void 0);_.E([_.iN("data.percentDurationWatched"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],G$.prototype,"onDurationChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],G$);
_.W(G$,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(obY!==void 0)return obY;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return obY=A},{mode:1});var tfx;var Bm=function(){var A=_.q.apply(this,arguments)||this;A.bottomPanel=!1;A.richGridOverlay=!1;A.watchFeedOverlay=!1;A.isCompact=!1;return A};
_.O(Bm,_.q);Bm.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Qr.Object.defineProperties(Bm.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.icon)==null?void 0:Q.iconType)==="PLAY_ALL"&&_.K("kevlar_system_icons")}}});
Bm.prototype.widthChanged=Bm.prototype.widthChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Bm.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],Bm.prototype,"width",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Bm.prototype,"bottomPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Bm.prototype,"richGridOverlay",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Bm.prototype,"watchFeedOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Bm.prototype,"isCompact",void 0);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Bm.prototype,"isIconFilled",null);_.E([_.iN("width","watchFeedOverlay"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Bm.prototype,"widthChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Bm);
_.W(Bm,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(tfx!==void 0)return tfx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return tfx=A},{mode:1});var rej;var jML=["CLIP","SHORTS"],p_=function(){var A=_.q.apply(this,arguments)||this;A.animated=_.K("animated_live_badge_icon");A.hasIcon=!1;A.updateTimerIntervalId=0;A.timeSinceLive=0;return A};
_.O(p_,_.q);_.d=p_.prototype;_.d.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.d.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.d.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.d.hasIconOrText=function(){var A,Q;return!!(((A=this.data)==null?0:A.icon)||((Q=this.data)==null?0:Q.text))};
_.d.initializeLiveBadgeTimer=function(){var A=this,Q,b=(Q=this.liveBadgeData)==null?void 0:Q.startTimestampSec;if(b&&this.canShowLiveBadgeTimer()){var f;Q=Number((f=this.liveBadgeData)==null?void 0:f.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(b);this.updateTimerIntervalId=_.St(function(){A.canShowLiveBadgeTimer()?A.timeSinceLive++:(A.timeSinceLive=0,window.clearInterval(A.updateTimerIntervalId))},Q)}else this.timeSinceLive=0};
_.d.canShowLiveBadgeTimer=function(){var A=Date.now(),Q,b;return A<(Number((Q=this.liveBadgeData)==null?void 0:Q.endTimestampSec)-1)*1E3&&A>Number((b=this.liveBadgeData)==null?void 0:b.startTimestampSec)*1E3};
_.Qr.Object.defineProperties(p_.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data;var Q=this.timeSinceLive;var b,f,a,T;a:{var G=A.style;if(G===void 0)G=17;else switch(G){case "LIVE":G=18;break a;default:G=17}}Q={type:G,text:Q?p36({seconds:Q}):_.mO(A.text),accessibilityText:(b=A.text)==null?void 0:(f=b.accessibility)==null?void 0:(a=f.accessibilityData)==null?void 0:a.label,icon:(T=A.icon)==null?void 0:T.iconType}}else Q={};return Q}},
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 A;return(A=this.data)==null?void 0:A.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 jML.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
p_.prototype.initializeLiveBadgeTimer=p_.prototype.initializeLiveBadgeTimer;p_.prototype.dataChanged=p_.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],p_.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],p_.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",String)],p_.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],p_.prototype,"animated",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.c("design:type",Boolean)],p_.prototype,"hideTimeStatus",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],p_.prototype,"hasIcon",void 0);_.E([_.C(),_.c("design:type",Object)],p_.prototype,"timeSinceLive",void 0);_.E([_.H("data","timeSinceLive"),_.c("design:type",Object),_.c("design:paramtypes",[])],p_.prototype,"badgeShapeData",null);
_.E([_.H("data","overlayType"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],p_.prototype,"hideBadgeShape",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],p_.prototype,"dataChanged",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.style"),_.c("design:type",Object),_.c("design:paramtypes",[])],p_.prototype,"overlayStyle",null);
_.E([_.H("data.liveBadgeData"),_.c("design:type",Object),_.c("design:paramtypes",[])],p_.prototype,"liveBadgeData",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.type"),_.c("design:type",Object),_.c("design:paramtypes",[])],p_.prototype,"overlayType",null);_.E([_.H("overlayType","overlayStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],p_.prototype,"useFilledIcon",null);
_.E([_.I_("liveBadgeData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],p_.prototype,"initializeLiveBadgeTimer",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],p_);
_.W(p_,"ytd-thumbnail-overlay-time-status-renderer",function(){if(rej!==void 0)return rej;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rej=A},{mode:_.UG("kevlar_poly_si_batch_j035")?1:2});var Rq1;var Pm=function(){return _.q.apply(this,arguments)||this};
_.O(Pm,_.q);Pm.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"}}}}};
Pm.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(A){if(this.hasPlaybackProgressBar)return{percentDurationWatched:A.percentDurationWatched}};
Pm.prototype.computeHasPlaybackProgressBar=function(A){return!!A.percentDurationWatched&&A.percentDurationWatched>0};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Pm.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.c("design:type",Boolean)],Pm.prototype,"hasPlaybackProgressBar",void 0);
_.E([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Pm);
_.W(Pm,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Rq1!==void 0)return Rq1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Rq1=A},{mode:1});var gbW;var eqK=_.aP(function(A){var Q=A.data;var b=A.children;var f=function(){return!!Q().doubleStack},a=function(){return!!Q().includeStackHeight};
return _.X("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!Q().experimentEnabled}},_.X(_.S,{cond:Q,
then:function(){var T={};return _.X(_.bd,null,_.X(_.S,{cond:a,then:function(){var G={};return _.X("div",{class:_.O4("collections-stack-wiz__spacer",(G["collections-stack-wiz__spacer--double-stack"]=f,G))})}}),_.X("div",{class:_.O4((T["collections-stack-wiz__relative-stack"]=a,T))},_.X(_.S,{cond:f,
then:function(){var G={};return _.X("div",{class:_.O4("collections-stack-wiz__collection-stack2",function(){return Q().customClassName2ndStack},(G["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return Q().enableResponsiveMode},G)),
style:_.qM({"background-color":function(){return eqU(Q())}})})}}),_.X("div",{class:_.O4("collections-stack-wiz__collection-stack1",function(){return Q().customClassName1stStack},function(){return gbA(Q().thumbnailSize?Q().thumbnailSize:"medium")}),
style:_.qM({"background-color":function(){return eqU(Q())}})}),b))}}))},"T");_.pE(eqK,"yt-collections-stack",{props:{data:_.Qf}});var Sy=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};A.webModernCollections=!1;A.isSearch=!1;A.isDoubleStack=!1;A.thumbnailSize="medium";A.enableWebModernCollectionsV2=_.K("web_modern_collections_v2");return A};
_.O(Sy,_.q);_.d=Sy.prototype;
_.d.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]]"}}}}}};
_.d.getThumbnailDetails=function(A){if(A!=null&&A.thumbnailRenderer){var Q=A.thumbnailRenderer,b;if((b=Q.playlistVideoThumbnailRenderer)==null?0:b.thumbnail)return Q.playlistVideoThumbnailRenderer.thumbnail;var f;if((f=Q.playlistCustomThumbnailRenderer)==null?0:f.thumbnail)return Q.playlistCustomThumbnailRenderer.thumbnail;A=A.thumbnailRenderer;var a;if((a=A.showCustomThumbnailRenderer)==null?0:a.thumbnail)return A.showCustomThumbnailRenderer.thumbnail}};
_.d.computeOverlayColor=function(A){var Q,b;if((Q=this.getThumbnailDetails(A))==null?0:(b=Q.darkColorPalette)==null?0:b.section2Color)return this.getThumbnailDetails(A).darkColorPalette.section2Color;var f;return(f=this.getThumbnailDetails(A))==null?void 0:f.sampledThumbnailColor};
_.d.computeWebModernCollections=function(A){if(A==null||!A.thumbnailOverlays)return!1;A=_.F(A.thumbnailOverlays);for(var Q=A.next();!Q.done;Q=A.next()){var b=void 0;if((b=Q.value)==null?0:b.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.d.computeNavigationEndpoint=function(A){return zty(A==null?void 0:A.navigationEndpoint)};
_.Qr.Object.defineProperties(Sy.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:A==null?void 0:A.sampledThumbnailColor,vibrantColorPalette:A==null?void 0:A.vibrantColorPalette,darkColorPalette:A==null?void 0:A.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Sy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(uyx),_.c("design:type",Object)],Sy.prototype,"ytdThumbnailBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Sy.prototype,"componentBehavior",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],Sy.prototype,"watchFeedThumbnail",void 0);_.E([_.C(),_.c("design:type",Number)],Sy.prototype,"customThumbnailSize",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],Sy.prototype,"hideAria",void 0);_.E([_.C(),_.c("design:type",Object)],Sy.prototype,"data",void 0);_.E([_.C({computed:"computeOverlayColor(data)"}),_.c("design:type",Object)],Sy.prototype,"overlayColor",void 0);
_.E([_.C({computed:"computeWebModernCollections(data)"}),_.c("design:type",Object)],Sy.prototype,"webModernCollections",void 0);_.E([_.C({computed:"computeNavigationEndpoint(data)"}),_.c("design:type",Object)],Sy.prototype,"computedNavigationEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Sy.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Sy.prototype,"isDoubleStack",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],Sy.prototype,"thumbnailSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Sy.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.H("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.c("design:type",Object),_.c("design:paramtypes",[])],Sy.prototype,"collectionStack",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Sy);
_.W(Sy,"ytd-playlist-thumbnail",function(){if(gbW!==void 0)return gbW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return gbW=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var hqL;var U9=function(){var A=_.q.apply(this,arguments)||this;A.noEndpoints=!1;A.amsterdamPostMvp=_.K("web_amsterdam_post_mvp_playlists");A.badges=[];A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.O(U9,_.q);_.d=U9.prototype;_.d.getMetadata=function(A){if(!A)return[];var Q=[],b=A.shortViewCountText||A.viewCountText;b&&Q.push(_.mO(b));A.publishedTimeText&&Q.push(_.mO(A.publishedTimeText));A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&Q.push(_.Eh(_.mO(A.upcomingEventData.upcomingEventText),Number(A.upcomingEventData.startTime)));return Q};
_.d.observeDataForBylineSeparator=function(){this.data&&_.Pj(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.d.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.zx(this.metadataColor)};
_.d.getSimpleString=function(A){return _.mO(A)};
_.d.isBylineHidden=function(A){return this.noByline||!((A==null?0:A.longBylineText)||(A==null?0:A.shortBylineText))};
_.d.isMetadataHidden=function(A){var Q;return((Q=this.getMetadata(A))==null?void 0:Q.length)===0};
_.d.isBylineMetadataSeparatorHidden=function(A){return this.isMetadataHidden(A)||!this.shouldShowVideoInfo};
_.d.isLongByline=function(A,Q){return Q&&!(A==null||!A.longBylineText)};
_.Qr.Object.defineProperties(U9.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var A;return this.amsterdamPostMvp&&!((A=this.data)==null||!A.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 _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
U9.prototype.metadataColorChanged=U9.prototype.metadataColorChanged;U9.prototype.observeDataForBylineSeparator=U9.prototype.observeDataForBylineSeparator;_.E([_.I(_.cb),_.c("design:type",Object)],U9.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],U9.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],U9.prototype,"noEndpoints",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],U9.prototype,"isSlimShort",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],U9.prototype,"radioMeta",void 0);_.E([_.C({selector:_.uc}),_.c("design:type",Object)],U9.prototype,"isGridViewEnabled",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],U9.prototype,"richMeta",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],U9.prototype,"amsterdamPostMvp",void 0);_.E([_.C(),_.c("design:type",Boolean)],U9.prototype,"noByline",void 0);
_.E([_.C({computed:"isLongByline(data, radioMeta)"}),_.c("design:type",Boolean)],U9.prototype,"longByline",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],U9.prototype,"truncateMetadataLine",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],U9.prototype,"miniMode",void 0);_.E([_.C(),_.c("design:type",Number)],U9.prototype,"metadataColor",void 0);_.E([_.C(),_.c("design:type",Array)],U9.prototype,"badges",void 0);
_.E([_.C({selector:_.xL,selectorArgs:["data.videoId"]}),_.c("design:type",String)],U9.prototype,"transferState",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],U9.prototype,"isDownloading",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],U9.prototype,"typographyBump",void 0);_.E([_.V1("#metadata-line"),_.c("design:type",HTMLElement)],U9.prototype,"metadataLine",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],U9.prototype,"observeDataForBylineSeparator",null);_.E([_.iN("metadataColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],U9.prototype,"metadataColorChanged",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],U9.prototype,"shouldShowVideoInfo",null);
_.E([_.H("badges"),_.c("design:type",String),_.c("design:paramtypes",[])],U9.prototype,"inlineBadgeClass",null);_.E([_.H("longByline"),_.c("design:type",String),_.c("design:paramtypes",[])],U9.prototype,"longBylineClass",null);_.E([_.H("data","longByline"),_.c("design:type",Object),_.c("design:paramtypes",[])],U9.prototype,"bylineText",null);_.E([_.H("isGridViewEnabled","data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],U9.prototype,"watchFeedBigThumbs",null);
_.E([_.h({is:"ytd-video-meta-block",disableElementRegistration:!0})],U9);
_.W(U9,"ytd-video-meta-block",function(){if(hqL!==void 0)return hqL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return hqL=A},{mode:_.UG("kevlar_poly_si_batch_j080")?1:2});_.xo("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var L_=function(){var A=_.q.apply(this,arguments)||this;A.displayItemCount=2;A.isBackstagePlaylist=!1;A.isPostCompactPlaylist=!1;A.shouldShowChannelThumbnail=!1;A.useModernCollectionsV2=_.K("web_modern_collections_v2");return A};
_.O(L_,_.q);_.d=L_.prototype;_.d.computeFirstVideos=function(A,Q){return A===void 0||Q===void 0?[]:A.slice(0,Q)};
_.d.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var A=this.data.thumbnailRenderer;A.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",A.playlistVideoThumbnailRenderer.thumbnail);A.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",A.playlistCustomThumbnailRenderer.thumbnail)}};
_.d.computeThumbnailHeight=function(A,Q,b,f,a){return f?a==="BIG"?280:a==="MASSIVE"?337:234:b?240:Q?72:A?118:138};
_.d.computeThumbnailWidth=function(A,Q,b,f,a){return f?a==="MEDIUM"?450:a==="BIG"?500:a==="MASSIVE"?600:420:b?360:Q?128:A?210:246};
_.d.computeUseBiggerThumbs=function(A){return A&&_.K("enable_desktop_search_bigger_thumbs")};
_.d.computeShouldShowChannelThumbnail=function(A,Q){return A&&!(Q==null||!Q.channelThumbnail)};
_.Qr.Object.defineProperties(L_.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
L_.prototype.dataChanged=L_.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],L_.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],L_.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],L_.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],L_.prototype,"displayItemCount",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],L_.prototype,"isBackstagePlaylist",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],L_.prototype,"isPostCompactPlaylist",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],L_.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.c("design:type",Boolean)],L_.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],L_.prototype,"biggerThumbsStyle",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],L_.prototype,"isDownloads",void 0);_.E([_.C({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.c("design:type",Object)],L_.prototype,"shouldShowChannelThumbnail",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],L_.prototype,"useModernCollectionsV2",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],L_.prototype,"dataChanged",null);_.E([_.H("isSearch"),_.c("design:type",String),_.c("design:paramtypes",[])],L_.prototype,"stackThumbnailSize",null);_.E([_.h({is:"ytd-playlist-renderer",disableElementRegistration:!0})],L_);
_.W(L_,"ytd-playlist-renderer",function(){if(KHj===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);KHj=A}A=KHj;return A},{mode:1});var WHj;var vbv;var M0=function(){var A=_.q.apply(this,arguments)||this;A.collections=!!_.K("web_modern_collections_v2");A.startX=0;return A};
_.O(M0,_.q);M0.prototype.onEndpointMouseDown=function(A){this.startX=A.clientX};
M0.prototype.onEndpointClick=function(A){this.startX!==A.clientX&&(A.preventDefault(),A.stopPropagation())};
M0.prototype.computeObjectFit=function(A){return A==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
M0.prototype.computeCardStyle=function(A){return A?A.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Qr.Object.defineProperties(M0.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var A,Q;return this.collections&&((A=this.data)==null?void 0:(Q=A.searchRefinementCardRendererStyle)==null?void 0:Q.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],M0.prototype,"data",void 0);_.E([_.C({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.c("design:type",Number)],M0.prototype,"objectFit",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.c("design:type",String)],M0.prototype,"cardStyle",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],M0.prototype,"roundContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],M0.prototype,"collections",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],M0.prototype,"isAlbumCard",null);_.E([_.H("data","collections","isAlbumCard"),_.c("design:type",Object),_.c("design:paramtypes",[])],M0.prototype,"collectionStack",null);
_.E([_.h({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],M0);
_.W(M0,"ytd-search-refinement-card-renderer",function(){if(vbv!==void 0)return vbv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return vbv=A},{mode:1});var Eb1;var lt=function(){var A=_.q.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.O(lt,_.q);_.E([_.C(),_.c("design:type",Object)],lt.prototype,"data",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],lt.prototype,"componentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],lt.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],lt.prototype,"isRichGrid",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],lt.prototype,"miniMode",void 0);
_.E([_.h({is:"ytd-game-details-renderer",disableElementRegistration:!0})],lt);
_.W(lt,"ytd-game-details-renderer",function(){if(Eb1!==void 0)return Eb1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Eb1=A},{mode:1});var xvW;var cer;var K_=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return A};
_.O(K_,_.q);_.d=K_.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.currentStateData=function(A){var Q=A||this.data;return Q&&Q.states&&Q.currentStateId!=null?Q.states.find(function(b){return b.stateId===Q.currentStateId})||null:null};
_.d.currentStateRendererData=function(A){return(A=this.currentStateData(A))&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.d.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())};
_.d.computeButtonIcon=function(A){A=this.currentStateRendererData(A);var Q;return(A==null?0:(Q=A.icon)==null?0:Q.iconType)?A.icon.iconType.toLowerCase():null};
_.d.computeAccessibility=function(A){return(A=this.currentStateRendererData(A))&&A.accessibilityData?A.accessibilityData.accessibilityData||null:null};
_.d.computeButtonClass=function(A){var Q=this.currentStateRendererData(A);if(!Q)return"";A="";var b=Q.style;b&&(A+=b.toLowerCase().replace(/_/g,"-")+" ");(Q=Q.size)&&(A+=Q.toLowerCase().replace(/_/g,"-")+" ");return A.trim()};
_.d.computeServiceEndpoint=function(A){if(!A)return null;var Q=A&&A.serviceEndpoint,b=this.get("command.commandMetadata.webCommandMetadata.sendPost",A);return Q?Q:b&&A.command?A.command:null};
_.d.computeBellMenuItemParams=function(A){var Q;A=(Q=_.V(A==null?void 0:A.command,_.LD))==null?void 0:Q.commands;if(!A||A.length===0)return null;Q=_.V(A[0],_.ju);var b,f;return(Q==null?0:(b=Q.popup)==null?0:(f=b.menuPopupRenderer)==null?0:f.items)?Q.popup.menuPopupRenderer.items.map(function(a){return a.menuServiceItemRenderer.trackingParams}):null};
_.d.handleBellMenuOpenSelectedAction=function(A){var Q=A.trackingParams,b=this.computeBellMenuItemParams(this.data);this.data&&Q&&b&&b.includes(Q)&&this.ytRenderButtonBehavior._setButtonIcon(A.icon.iconType.toLowerCase())};
_.d.onYtServiceRequestCompleted=function(A,Q){(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Q))&&this.set("data",A)};
_.d.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.d.resetState=function(){this.set("data.currentStateId",3)};
_.d.onYtButtonTapHandler=function(){if(this.data){var A=this.currentStateRendererData(this.data);A&&this.ytRendererBehavior.logExplicitClick(A)}};
K_.prototype.onYtServiceRequestError=K_.prototype.onYtServiceRequestError;K_.prototype.onYtServiceRequestCompleted=K_.prototype.onYtServiceRequestCompleted;K_.prototype.stateChanged=K_.prototype.stateChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(qb.YtRenderButtonBehavior),_.c("design:type",Object)],K_.prototype,"ytRenderButtonBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],K_.prototype,"data",void 0);_.E([_.I_("data","data.currentStateId"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],K_.prototype,"stateChanged",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],K_.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],K_.prototype,"onYtServiceRequestError",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],K_);
_.W(K_,"ytd-subscription-notification-toggle-button-renderer",function(){if(cer!==void 0)return cer;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return cer=A},{mode:1});var zqL;var JS=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};A.tapHandler=function(){if(A.data){var Q=A.currentStateRendererData();Q&&A.ytRendererBehavior.logExplicitClick(Q)}};
return A};
_.O(JS,_.q);_.d=JS.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.currentStateData=function(){var A=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(Q){return Q.stateId===A.data.currentStateId})||null:null};
_.d.currentStateRendererData=function(){var A=this.currentStateData();return A&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.d.computeAccessibilityLabel=function(){var A,Q,b;return(A=this.currentStateRendererData())==null?void 0:(Q=A.accessibilityData)==null?void 0:(b=Q.accessibilityData)==null?void 0:b.label};
_.d.computeBellMenuItemParams=function(){var A,Q,b=(Q=_.V((A=this.data)==null?void 0:A.command,_.LD))==null?void 0:Q.commands;if(!b||b.length===0)return null;A=_.V(b[0],_.ju);var f,a;return(A==null?0:(f=A.popup)==null?0:(a=f.menuPopupRenderer)==null?0:a.items)?A.popup.menuPopupRenderer.items.map(function(T){return T.menuServiceItemRenderer.trackingParams}):null};
_.d.handleBellMenuOpenSelectedAction=function(A){var Q=A.trackingParams,b=this.computeBellMenuItemParams();if(this.data&&Q&&b&&b.includes(Q)&&(A==null||!A.isDisabled)){var f;((f=_.V(A.serviceEndpoint,_.li))==null?void 0:f.signal)!=="CLIENT_SIGNAL"&&(this.icon=A.icon.iconType)}};
_.d.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.d.onYtServiceRequestCompleted=function(A,Q){if(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",Q))this.icon=void 0,this.set("data",A)};
_.d.onYtServiceRequestError=function(){this.icon=void 0};
_.Qr.Object.defineProperties(JS.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data,Q=this.textLabel,b=this.hostElement,f=this.computeAccessibilityLabel(),a=this.tapHandler,T=this.isOverlay?"overlay":"mono",G=(A==null?0:A.disableButton)?"disabled":"active";Q=Q?_.xz(Q):void 0;return{style:T,type:"tonal",state:G,size:"M",focused:!1,formattedButtonText:Q,iconPosition:"leading-trailing",onTap:WHJ(A,a,b),accessibilityLabel:f}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.currentStateRendererData(),Q,b,f=(b=this.icon)!=null?b:A==null?void 0:(Q=A.icon)==null?void 0:Q.iconType;if(f)return _.K0(f)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.secondaryIcon)==null?void 0:Q.iconType;if(b)return _.K0(b)}}});
JS.prototype.onYtServiceRequestError=JS.prototype.onYtServiceRequestError;JS.prototype.onYtServiceRequestCompleted=JS.prototype.onYtServiceRequestCompleted;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],JS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],JS.prototype,"textLabel",void 0);
_.E([_.C(),_.c("design:type",String)],JS.prototype,"icon",void 0);_.E([_.C(),_.c("design:type",Boolean)],JS.prototype,"isOverlay",void 0);_.E([_.H("data.*","textLabel"),_.c("design:type",Object),_.c("design:paramtypes",[])],JS.prototype,"computedButtonShape",null);_.E([_.H("data.*","icon"),_.c("design:type",Object),_.c("design:paramtypes",[])],JS.prototype,"computedIcon",null);_.E([_.H("data.*"),_.c("design:type",Object),_.c("design:paramtypes",[])],JS.prototype,"computedSecondaryIcon",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],JS.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],JS.prototype,"onYtServiceRequestError",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],JS);
_.W(JS,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(zqL!==void 0)return zqL;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return zqL=A},{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var wCv;_.pE(zTp,"yt-animated-action",{props:{backgroundLottieRef:_.Qf,foregroundLottieRef:_.Qf,wrapperClass:_.Qf,disableAnimation:_.Qf},unsafeExternallySettableAttributes:new Set(["key"])});var VD=function(){var A=_.q.apply(this,arguments)||this;A.animatedActionEnabled=_.K("web_animated_actions");A.foregroundLottieRef={};A.backgroundLottieRef={};A.forceIconOnly=!1;A.showTextWhileAnimating=!1;A.keyboardFocused=!1;A.isAnimating=!1;A.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return A};
_.O(VD,_.q);_.d=VD.prototype;_.d.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.d.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]]"}}}}}};
_.d.attached=function(){this.keyboardFocused=!1};
_.d.onYtServiceRequestSent=function(A,Q){(this.get("endpoint.subscribeEndpoint",Q)||this.get("endpoint.unsubscribeEndpoint",Q))&&this.updateSubscriptionState(!this.subscribed)};
_.d.onYtServiceRequestCompleted=function(A,Q){(A=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",Q.data))&&this.bellButton&&(this.bellButton.data=A)};
_.d.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Uc(this.hostElement)};
_.d.onPlayerSubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.d.onPlayerUnsubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||this.updateSubscriptionState(!1)};
_.d.handleUpdateSubscribeButtonAction=function(A){A=_.V(A,AP1);var Q;A&&A.channelId===((Q=this.data)==null?void 0:Q.channelId)&&this.updateSubscriptionState(!!A.subscribed)};
_.d.computeButtonStyle=function(A){return this.get("style.styleType",A)||null};
_.d.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.d.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.d.updateSubscriptionState=function(A){if(A!==this.subscribed){this.set("data.subscribed",A);var Q,b=(Q=this.data)==null?void 0:Q.subscribedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.HL("subscriptionStateEntity",b,{key:b,subscribed:A}));this.isCompactRed()||_.Bn(this.hostElement,"yt-subscription-changed",A);A||(_.pD(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!A),A&&this.hasBellButton&&this.startAnimation())}};
_.d.startAnimation=function(){var A=this;if(!this.isAnimating){var Q=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var b;(b=this.backgroundLottieRef.lottieEl)==null||b.goToAndPlay(0);var f;(f=this.foregroundLottieRef.lottieEl)==null||f.goToAndPlay(0);_.j7.addJob(function(){A.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.j7.addJob(function(){A.updateContainerToFitContent(!!A.subscribed,!0)},2,1500);
_.j7.addJob(function(){A.isAnimating=!1},2,Q)}};
_.d.maybeAnimateBellIcon=function(){var A=_.pc(this.hostElement).querySelector("yt-animated-icon");if(A){var Q;(Q=A.animationRef.lottieEl)==null||Q.goToAndPlay(0)}};
_.d.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.d.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.d.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var A;this.unsubscribedWidth=(A=this.subscribeButtonShape)==null?void 0:A.getBoundingClientRect().width}var Q;this.subscribedWidth=(Q=this.bellButton)==null?void 0:Q.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.d.updateContainerToFitContent=function(A,Q){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(A?(A=this.subscribedWidth,Q=this.isAnimating&&!Q,this.subscribedIconOnlyWidth===void 0||Q||(A=this.subscribedIconOnlyWidth),this.hostElement.style.width=A+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.d.clearContainerSize=function(){this.hostElement.style.width=""};
_.d.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.d.maybeSetSubscribedButtonIconOnlyWidth=function(){var A=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 Q;A.subscribedIconOnlyWidth=(Q=A.bellButton)==null?void 0:Q.getBoundingClientRect().width;requestAnimationFrame(function(){if(A.bellButton){var b;A.bellButton.textLabel=
(b=A.data)==null?void 0:b.subscribedButtonText}})})))};
_.Qr.Object.defineProperties(VD.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 A;return(A=this.data)==null?void 0:A.subscribedButtonText}var Q;return this.forceIconOnly?void 0:(Q=this.data)==null?void 0:Q.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=((A=this.data)==null?void 0:(Q=A.timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:"subscribe",timings:b,enabled:b.length>0&&!this.subscribed,experimentEnabled:b.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!this.subscribed&&((A=this.data)==null?void 0:A.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 A={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var Q=A.renderer;var b=A.element;var f=A.subscribed;var a=A.commandController;var T=A.isOverlay;A=A.stopPropagation;var G=ceX(Q,f);T&&(G.style="overlay");T=Object;var p=T.assign,P;a:switch((P=Q.style)==null?void 0:P.styleType){case "COMPACT_GRAY":case "COMPACT_RED":P={size:"S"};break a;default:P={size:"M"}}var U=xvA(Q,
f);var L=(L=f?Q.subscribedButtonText:Q.unsubscribedButtonText)?_.xz(L):void 0;return p.call(T,{},G,P,{focused:!1,toggled:f,accessibilityLabel:U,formattedButtonText:L,onTap:EbC(Q,f,b,a,A)})}}}});
VD.prototype.onMouseDown=VD.prototype.onMouseDown;VD.prototype.onDataChanged=VD.prototype.onDataChanged;VD.prototype.observedSubscribed=VD.prototype.observedSubscribed;VD.prototype.onYtServiceRequestCompleted=VD.prototype.onYtServiceRequestCompleted;VD.prototype.onYtServiceRequestSent=VD.prototype.onYtServiceRequestSent;VD.prototype.maybeUpdateBellButtonText=VD.prototype.maybeUpdateBellButtonText;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],VD.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],VD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],VD.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],VD.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.subscribedEntityKey"],selector:ePf}),_.c("design:type",Object)],VD.prototype,"subscriptionStateEntity",void 0);_.E([_.C({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.c("design:type",Boolean)],VD.prototype,"subscribed",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],VD.prototype,"branded",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],VD.prototype,"animatedActionEnabled",void 0);
_.E([_.C(),_.c("design:type",Object)],VD.prototype,"foregroundLottieRef",void 0);_.E([_.C(),_.c("design:type",Object)],VD.prototype,"backgroundLottieRef",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],VD.prototype,"overlayButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.c("design:type",Object)],VD.prototype,"buttonStyle",void 0);_.E([_.C(),_.c("design:type",Object)],VD.prototype,"forceIconOnly",void 0);
_.E([_.C(),_.c("design:type",Object)],VD.prototype,"showTextWhileAnimating",void 0);_.E([_.C({value:function(){return!!_.fJ().resolve(_.bu(_.L3))&&_.K("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.c("design:type",Boolean)],VD.prototype,"useKeyboardFocused",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],VD.prototype,"keyboardFocused",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],VD.prototype,"isAnimating",void 0);_.E([_.H("data.notificationPreferenceButton.*"),_.c("design:type",Object),_.c("design:paramtypes",[])],VD.prototype,"hasBellButton",null);
_.E([_.iN("subscribedButtonText"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],VD.prototype,"maybeUpdateBellButtonText",null);_.E([_.H("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.c("design:type",Object),_.c("design:paramtypes",[])],VD.prototype,"subscribedButtonText",null);_.E([_.H("data.timedAnimationData.animationTiming","subscribed"),_.c("design:type",Object),_.c("design:paramtypes",[])],VD.prototype,"smartimationSettings",null);
_.E([_.C({reflectToAttribute:!0}),_.H("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.c("design:type",Object),_.c("design:paramtypes",[])],VD.prototype,"subscribeButtonHidden",null);_.E([_.C({reflectToAttribute:!0}),_.H("subscribed","hasBellButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],VD.prototype,"subscribeButtonInvisible",null);
_.E([_.C({reflectToAttribute:!0}),_.H("subscribed"),_.c("design:type",Object),_.c("design:paramtypes",[])],VD.prototype,"unsubscribeButtonHidden",null);_.E([_.V1("ytd-subscription-notification-toggle-button-renderer-next"),_.c("design:type",Object)],VD.prototype,"bellButton",void 0);_.E([_.V1("#subscribe-button-shape"),_.c("design:type",HTMLElement)],VD.prototype,"subscribeButtonShape",void 0);
_.E([_.H("overlayButton","subscribed","data"),_.c("design:type",Object),_.c("design:paramtypes",[])],VD.prototype,"buttonShape",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],VD.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],VD.prototype,"onYtServiceRequestCompleted",null);
_.E([_.iN("subscribed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],VD.prototype,"observedSubscribed",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],VD.prototype,"onDataChanged",null);_.E([_.Kc("mousedown"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],VD.prototype,"onMouseDown",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],VD);
_.W(VD,"ytd-subscribe-button-renderer",function(){if(wCv!==void 0)return wCv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return wCv=A},{mode:1});var O9=function(){var A=_.q.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.O(O9,_.q);O9.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],O9.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],O9.prototype,"isRichGrid",void 0);_.E([_.h({is:"ytd-game-card-renderer",disableElementRegistration:!0})],O9);
_.W(O9,"ytd-game-card-renderer",function(){if(xvW!==void 0)return xvW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xvW=A},{mode:1});var n_={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.K("defer_menus")&&!n0Y?0:void 0,waitForSignal:"eocs"};var uA$;var ZjL;var kK=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return A};
_.O(kK,_.q);_.d=kK.prototype;_.d.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.d.onSeriesReminderStateEntityChange=function(){var A,Q,b;((A=this.eventReminderStateEntity)==null?0:A.key)&&((Q=this.seriesReminderStateEntity)==null?void 0:Q.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.HL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.d.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.d.onYtServiceRequestError=function(){var A;this.updateReminderStateEntitiesFromButtonState((A=this.data)==null?void 0:A.currentState)};
_.d.handleUpdateUpcomingEventReminderButtonStateCommand=function(A){if(A=_.V(A,KcL)){var Q,b=(Q=this.data)==null?void 0:Q.targetId;b&&A.targetId===b&&_.y1(this.updateReminderStateEntitiesFromButtonState.bind(this,A.state))}};
_.d.getButtonStateFromReminderState=function(){var A;if(((A=this.seriesReminderStateEntity)==null?void 0:A.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var Q;if(((Q=this.eventReminderStateEntity)==null?void 0:Q.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var b,f;if(((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((f=this.eventReminderStateEntity)==
null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var a;return(a=this.data)==null?void 0:a.currentState};
_.d.updateReminderStateEntitiesFromButtonState=function(A){if(A){switch(A){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":A="UPCOMING_EVENT_REMINDER_STATE_NONE";var Q="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":A="UPCOMING_EVENT_REMINDER_STATE_SINGLE";Q="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":A="UPCOMING_EVENT_REMINDER_STATE_NONE";Q="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var b;
((b=this.eventReminderStateEntity)==null?0:b.key)&&this.ytdReduxBehavior.dispatch(_.HL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:A})));var f;((f=this.seriesReminderStateEntity)==null?0:f.key)&&this.ytdReduxBehavior.dispatch(_.HL("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:Q})))}};
_.Qr.Object.defineProperties(kK.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.getButtonStateFromReminderState(),Q,b;if(A&&((Q=this.data)==null?0:(b=Q.states)==null?0:b.length))for(Q=_.F(this.data.states),b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0;if(((f=_.V(b,i2L))==null?void 0:f.state)===A)return _.V(b,i2L)}}}});
kK.prototype.onYtServiceRequestError=kK.prototype.onYtServiceRequestError;kK.prototype.onYtServiceRequestCompleted=kK.prototype.onYtServiceRequestCompleted;kK.prototype.onSeriesReminderStateEntityChange=kK.prototype.onSeriesReminderStateEntityChange;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],kK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],kK.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kK.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Wb6}),_.c("design:type",Object)],kK.prototype,"eventReminderStateEntity",void 0);
_.E([_.C({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(A,Q){return _.Me(A.entities,"sportsSeriesReminderStateEntity",Q)}}),
_.c("design:type",Object)],kK.prototype,"seriesReminderStateEntity",void 0);_.E([_.H("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],kK.prototype,"currentButtonStateRenderer",null);_.E([_.iN("seriesReminderStateEntity"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kK.prototype,"onSeriesReminderStateEntityChange",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kK.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kK.prototype,"onYtServiceRequestError",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],kK);
_.W(kK,"ytd-upcoming-event-reminder-button-renderer",function(){if(ZjL!==void 0)return ZjL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return ZjL=A},{mode:1});var yev;var IZ=function(){return _.q.apply(this,arguments)||this};
_.O(IZ,_.q);IZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Qr.Object.defineProperties(IZ.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(_.K("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],IZ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],IZ.prototype,"shelfDismissal",void 0);_.E([_.H("data.responseText"),_.c("design:type",Object),_.c("design:paramtypes",[])],IZ.prototype,"text",null);
_.E([_.H("data.responseText"),_.c("design:type",Object),_.c("design:paramtypes",[])],IZ.prototype,"textAriaLabel",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],IZ);
_.W(IZ,"ytd-notification-multi-action-renderer",function(){if(yev!==void 0)return yev;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return yev=A},{mode:1});var Y_9;var Hm=function(){return _.q.apply(this,arguments)||this};
_.O(Hm,_.q);Hm.prototype.ready=function(){var A=this;_.Bj(this.hostElement).querySelector("#undo").addEventListener("tap",function(){A.onUndoTap()})};
Hm.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Hm.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Hm);
_.W(Hm,"ytd-notification-text-renderer",function(){if(Y_9!==void 0)return Y_9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Y_9=A},{mode:1});var Dvv;var C_=function(){var A=_.q.apply(this,arguments)||this;A.mouseOverDelayJobId=0;A.fadeInImageDelayJobId=0;A.startTimeMs=-1;A.loadingStartTimeMs=-1;A.loadingEndTimeMs=-1;A.hasVideoPreview=!1;return A};
_.O(C_,_.q);_.d=C_.prototype;_.d.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.d.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.d.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.d.showThumbnail=function(){var A=this;this.csn=_.WR();_.Wn("fmth");_.j7.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.LE(_.j7,function(){A.loadingStartTimeMs=(0,_.f4)();var Q=_.Bj(A.hostElement).querySelector("#thumbnail");Q.complete?A.displayMouseOverImage():Q.addEventListener("load",_.lN(A,A.displayMouseOverImage))},150):_.Pj(_.Bj(this.hostElement).querySelector("#play"),"show",!0)};
_.d.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.d.onTap=function(){this.removeVideoPreview()};
_.d.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var A=this.videoId,Q=this.csn,b=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,f=this.startTimeMs,a=this.hasVideoPreview,T=_.t8(this.trackingParams),G={isMovingThumbnail:a};a&&f>0&&(b>0&&(G.movingThumbnailLoadingDurationMs=Math.round(b)),G.durationHoveredMs=Math.round((0,_.f4)()-f));A&&(G.videoId=A);_.NB(Q,T,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:G});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.d.removeVideoPreview=function(){_.j7.cancelJob(this.mouseOverDelayJobId);_.j7.cancelJob(this.fadeInImageDelayJobId);var A=_.Bj(this.hostElement).querySelector("#thumbnail");_.Pj(A,"fade-in",!1);A.removeEventListener("load",_.lN(this,this.displayMouseOverImage));A=_.Bj(this.hostElement).querySelector("#play");_.Pj(A,"fade-in",!1);_.Pj(A,"show",!1)};
_.d.displayMouseOverImage=function(){var A=_.Bj(this.hostElement).querySelector("#thumbnail"),Q=_.Bj(this.hostElement).querySelector("#play");this.isImageAvailable(A)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.f4)(),this.startTimeMs=(0,_.f4)(),this.fadeInImageDelayJobId=_.LE(_.j7,function(){_.Pj(A,"fade-in",!0)},50)):_.Pj(Q,"fade-in",!0)};
_.d.computeThumbnail=function(A,Q){var b;A&&A.movingThumbnailDetails&&A.movingThumbnailDetails.thumbnails&&Q?b=_.Pz(A.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):b=Q?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(b)return _.hs(b)};
_.d.isImageAvailable=function(A){return!(!A.src||A.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||A.naturalWidth===120)};
C_.prototype.onTap=C_.prototype.onTap;C_.prototype.dataChanged=C_.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],C_.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],C_.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],C_.prototype,"csn",void 0);_.E([_.C(),_.c("design:type",Object)],C_.prototype,"trackingParams",void 0);
_.E([_.C(),_.c("design:type",String)],C_.prototype,"videoId",void 0);_.E([_.C(),_.c("design:type",Boolean)],C_.prototype,"isAttachedAndDataSet",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C_.prototype,"dataChanged",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C_.prototype,"onTap",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],C_);
_.W(C_,"ytd-moving-thumbnail-renderer",function(){if(Dvv!==void 0)return Dvv;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Dvv=A},{mode:1});var $vK;_.Xw=function(A){this.hostElement=A;this.eventSink=null;this.eventList=[]};
_.Xw.prototype.shouldForward=function(){var A,Q;return(Q=(A=this.eventSink)==null?void 0:A.isConnected)!=null?Q:document.body.contains(this.eventSink)};
_.Xw.prototype.start=function(A,Q){this.eventSink&&this.stop();for(var b=0;b<A.length;b++)this.hostElement.addEventListener(A[b],_.lN(this,this.forwardEvent));var f;this.eventSink=(f=Q.hostElement)!=null?f:Q;this.eventList=A};
_.Xw.prototype.stop=function(){for(var A=0;A<this.eventList.length;A++)this.hostElement.removeEventListener(this.eventList[A],_.lN(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Xw.prototype.forwardEvent=function(A,Q){this.shouldForward()&&(A.stopPropagation(),this.eventSink instanceof Element?_.Bn(this.eventSink,A.type,Q):_.Wv(new _.IO("eventSink is not an element")))};_.q0={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Xw(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(A,Q){this.forwarder_.start(A,Q)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var oZ=function(){return _.q.apply(this,arguments)||this};
_.O(oZ,_.q);_.d=oZ.prototype;_.d.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=_.vG("HTML_DIR")==="rtl"?"right":"left"};
_.d.dataChanged=function(){this.popupOpen=!1};
_.d.computeAriaLabel=function(A){return _.V(A,Ow9).label};
_.d.onTap=function(A){A.stopPropagation();A.preventDefault();this.data.command&&_.fJ().resolve(_.de).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.d.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.d.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
oZ.prototype.onPopupClosed=oZ.prototype.onPopupClosed;oZ.prototype.onPopupOpened=oZ.prototype.onPopupOpened;oZ.prototype.onTap=oZ.prototype.onTap;oZ.prototype.dataChanged=oZ.prototype.dataChanged;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],oZ.prototype,"eventForwardingBehavior",void 0);_.E([_.I(_.Wp),_.c("design:type",Object)],oZ.prototype,"ironButtonState",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],oZ.prototype,"componentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],oZ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:-1}),_.c("design:type",Number)],oZ.prototype,"tabindex",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.c("design:type",Object)],oZ.prototype,"ariaLabel",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],oZ.prototype,"disableTooltips",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],oZ.prototype,"popupOpen",void 0);
_.E([_.C(),_.c("design:type",Element)],oZ.prototype,"eventSink",void 0);_.E([_.V1("#tooltip"),_.c("design:type",Object)],oZ.prototype,"tooltip",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oZ.prototype,"dataChanged",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],oZ.prototype,"onTap",null);
_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oZ.prototype,"onPopupOpened",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oZ.prototype,"onPopupClosed",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],oZ);
_.W(oZ,"ytd-thumbnail-overlay-button-renderer",function(){if($vK!==void 0)return $vK;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $vK=A},{mode:1});var NMW;var tS=function(){return _.q.apply(this,arguments)||this};
_.O(tS,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],tS.prototype,"disableAnimation",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],tS.prototype,"rounded",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],tS.prototype,"transparentBackground",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],tS.prototype,"noPadding",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],tS);
_.W(tS,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(NMW!==void 0)return NMW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return NMW=A},{mode:1});var sM1;var rw=function(){return _.q.apply(this,arguments)||this};
_.O(rw,_.q);rw.prototype.computeIconPosition=function(A){return this.get("iconPosition",A)||null};
rw.prototype.computeIconStyle=function(A){return this.get("iconStyle",A)||null};
rw.prototype.computeIsIconStyleFilled=function(A){if(!A)return!1;var Q;return A.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((Q=A.icon)==null?void 0:Q.iconType)==="ERROR_BLACK"};
_.E([_.C(),_.c("design:type",Object)],rw.prototype,"data",void 0);_.E([_.C({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.c("design:type",Object)],rw.prototype,"iconPosition",void 0);_.E([_.C({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.c("design:type",Object)],rw.prototype,"iconStyle",void 0);_.E([_.C({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],rw.prototype,"iconStyleFilled",void 0);
_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],rw);
_.W(rw,"ytd-thumbnail-overlay-icon-renderer",function(){if(sM1!==void 0)return sM1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return sM1=A},{mode:1});var mvp;var jy=function(){return _.q.apply(this,arguments)||this};
_.O(jy,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jy.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],jy);
_.W(jy,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(mvp!==void 0)return mvp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return mvp=A},{mode:1});var A5Y;var RZ=function(){var A=_.q.apply(this,arguments)||this;A.isPreviewLoading=!1;return A};
_.O(RZ,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],RZ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],RZ.prototype,"isPreviewLoading",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],RZ);
_.W(RZ,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(A5Y!==void 0)return A5Y;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return A5Y=A},{mode:1});var Q2v;var gw=function(){return _.q.apply(this,arguments)||this};
_.O(gw,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gw.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],gw);
_.W(gw,"ytd-thumbnail-overlay-pinking-renderer",function(){if(Q2v!==void 0)return Q2v;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Q2v=A},{mode:1});var b5$;var ey=function(){var A=_.q.apply(this,arguments)||this;A.disableTooltips=!1;A.isLoading=!1;A.useExpandableTooltip=!1;A.toggled=!1;A.hovered=!1;A.mouseoverDelayJobId=0;A.toggleDelayJobId=0;A.expandAnimationDelayJobId=0;return A};
_.O(ey,_.q);_.d=ey.prototype;_.d.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");_.Bj(this.hostElement).querySelector("#tooltip").position=_.vG("HTML_DIR")==="rtl"?"right":"left"};
_.d.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.j7.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.j7.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.j7.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.d.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.j7.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.j7.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.j7.cancelJob(this.expandAnimationDelayJobId)};
_.d.computeIcon=function(A,Q,b){return(A=b?Q:A)&&A.iconType?_.K0(A.iconType):void 0};
_.d.computeAriaLabel=function(A,Q,b){return _.V(b?Q:A,Ow9).label};
_.d.computeTooltip=function(A,Q,b){return b?Q:A};
_.d.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.d.computeIconOnHover=function(A,Q){if((A==null?0:A.iconType)&&!Q)return _.K0(A.iconType)};
_.d.onTap=function(A){var Q=this;A.stopPropagation();A.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(A),this.useExpandableTooltip&&(this.toggleDelayJobId=_.LE(_.j7,function(){Q.hovered=!1;Q.data&&!Q.data.toggledServiceEndpoint&&(Q.expandAnimationDelayJobId=_.LE(_.j7,function(){Q.set("data.isToggled",
!1)},200))},2E3))};
_.d.onMouseenter=function(){var A=this;this.mouseoverDelayJobId=_.LE(_.j7,function(){A.hovered=!0},300)};
_.d.onMouseleave=function(){_.j7.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.d.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.d.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.d.onServiceRequestCompleted=function(A,Q){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(Q)||this.set("data.isToggled",!this.data.isToggled)};
_.d.serviceRequestWasSuccessful=function(A){return _.V(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.xj)?A.data.status==="STATUS_SUCCEEDED":!0};
ey.prototype.onServiceRequestCompleted=ey.prototype.onServiceRequestCompleted;ey.prototype.onPopupClosed=ey.prototype.onPopupClosed;ey.prototype.onPopupOpened=ey.prototype.onPopupOpened;ey.prototype.onMouseleave=ey.prototype.onMouseleave;ey.prototype.dataChanged=ey.prototype.dataChanged;_.E([_.I(_.Wp),_.c("design:type",Object)],ey.prototype,"ironButtonState",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ey.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],ey.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ey.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.c("design:type",Object)],ey.prototype,"ariaLabel",void 0);_.E([_.C(),_.c("design:type",Object)],ey.prototype,"disableTooltips",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],ey.prototype,"popupOpen",void 0);_.E([_.C(),_.c("design:type",Object)],ey.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Element)],ey.prototype,"eventSink",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ey.prototype,"useExpandableTooltip",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.c("design:type",Object)],ey.prototype,"toggled",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ey.prototype,"hovered",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.c("design:type",Object)],ey.prototype,"iconOnHover",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ey.prototype,"dataChanged",null);
_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ey.prototype,"onMouseleave",null);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ey.prototype,"onPopupOpened",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ey.prototype,"onPopupClosed",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],ey.prototype,"onServiceRequestCompleted",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],ey);
_.W(ey,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(b5$!==void 0)return b5$;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return b5$=A},{mode:_.UG("kevlar_poly_si_batch_j053")?1:2});var fGj;var aGK=_.aP(function(A){var Q=A.data;var b=A.thumbnailSize;var f=function(){return Q().enableSegmentView};
return _.X("yt-thumbnail-overlay-progress-bar-view-model",{class:_.O4("ytThumbnailOverlayProgressBarHost",function(){return zqb(b==null?void 0:b())})},_.X(_.S,{cond:f,
then:function(){return _.X("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.X("div",{class:_.nE("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+Q().startPercent+"%"}}),_.X("div",{class:_.nE("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+Q().segmentDurationPercent+"%"}},_.X("div",{class:_.nE("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.X("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.X("div",null," ",function(){return Q().segmentLabel})),_.X("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.X("div",{class:_.nE("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.X(_.S,{cond:function(){return!f()&&Q().startPercent},
then:function(){var a={};return _.X("div",{class:_.nE("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(a.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.K("web_enable_modern_progress_bar_overlay"),a))},_.X("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+Q().startPercent+"%"}}))}}))},"U");
aGK.idomCompat=!0;var TJr=_.aP(function(A){var Q=_.Vh(),b=_.Zc(function(a){var T,G,p;a:{var P=(T=A.data())==null?void 0:T.animationActivationTargetId;T=((G=A.data())==null?void 0:G.animationActivationEntityKey)||"";G=(p=A.data())==null?void 0:p.animationActivationEntitySelectorType;if(T&&P)switch(G){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":a=_.Me(a.entities,"playerStateEntity",T);p=_.fJ().resolve(_.bu(_.zb));P=!!(a&&a.videoId===P&&(p==null?0:p.isMiniplayerActive()));P={activated:P,playAnimation:P&&
a.playerState==="PLAYER_STATE_PLAYING"};break a}P=void 0}return P});
_.H_(function(){var a;if((a=b())==null?0:a.activated){var T;if((T=b())==null?0:T.playAnimation){var G;(G=Q.lottieEl)==null||G.goToAndPlay(0)}else{var p;(p=Q.lottieEl)==null||p.goToAndStop(0)}}},"MDTl2e");
var f=function(){var a,T=!((a=b())==null||!a.activated);if(A.data()){a=A.data();var G=void 0;a.icon&&(G=_.PlX(a.icon),G=KYy(G));var p=void 0,P;if((P=a.backgroundColor)==null?0:P.lightTheme){var U;p={backgroundColor:uB((U=a.backgroundColor)==null?void 0:U.lightTheme,"0.8")}}if(a.text||G||T){if(T&&a.lottieData&&Q){U=a.lottieData;var L,M,l;P={animationConfig:{name:U.url,path:U.url,autoplay:(L=U.settings)==null?void 0:L.autoplay,loop:(l=(M=U.settings)==null?void 0:M.loop)!=null?l:!0},animationRef:Q}}else P=
void 0;if(T)L=17;else b:switch(a.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":L=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":L=19;break b;default:L=17}T={type:L,text:T&&a.animatedText?a.animatedText:a.text,icon:G,customColors:p,animation:P}}else T=void 0}else T=void 0;return T};
return _.X("yt-thumbnail-badge-view-model",{class:_.O4("yt-thumbnail-badge-view-model-wiz",A.class)},_.X(_.S,{cond:f,then:function(){return _.X(_.cF,{data:function(){return f()}})}}))},"V");var dw$=_.aP(function(A){var Q={},b={};return _.X("yt-thumbnail-bottom-overlay-view-model",{class:_.O4("ytThumbnailBottomOverlayViewModelHost",(Q.ytThumbnailBottomOverlayViewModelHostBackground=function(){return A.data().enableGradientBackground},Q))},_.X(_.WL,{data:function(){return A.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(f){return _.X(aGK,{data:f.data,
thumbnailSize:A.thumbnailSize})}}),_.X("div",{class:_.O4("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var f;
return wC4((f=A.thumbnailSize)==null?void 0:f.call(A))},(b.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var f;
return(f=A.isClip)==null?void 0:f.call(A)},b.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var f;
return!_.K("web_enable_modern_progress_bar_overlay")&&((f=A.thumbnailSize)==null?void 0:f.call(A))==="small"},b))},_.X(_.WL,{data:function(){return A.data().badge}},{thumbnailBadgeViewModel:function(f){return _.X(TJr,{data:f.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.X(_.WL,{data:function(){return A.data().badges}},{thumbnailBadgeViewModel:function(f){return _.X(TJr,{data:f.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"W");
dw$.idomCompat=!0;_.pE(dw$,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Bz,thumbnailSize:_.Bz,isClip:_.Bz}});var A5y={calledOnce:!1,state:"visible"},Q24={calledOnce:!1,state:"hidden"};var hS=_.aP(function(A){var Q=A.data;var b=A.className;A=A.alwaysShow;var f=_.ye4(),a={};return _.X("thumbnail-hover-overlay-view-model",{el:_.d_(_.Zb(function(){return Q().rendererContext})),
class:_.O4("ytThumbnailHoverOverlayViewModelHost",b,(a.ytThumbnailHoverOverlayViewModelHostForceHover=A,a)),"aria-label":function(){var T;return(T=_.V(Q().rendererContext,_.HV))==null?void 0:T.label},
role:function(){return _.wz(Q().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.wz(Q().rendererContext)!==void 0?0:void 0},
"on:keypress":f},_.X("div",{class:_.O4("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(Q().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var T="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:T="ytThumbnailHoverOverlayViewModelStyleCover"}return T})},_.X(_.S,{cond:function(){return Q().icon},
then:function(T){return _.X(_.aY,{data:T,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.X(_.S,{cond:function(){return Q().text},
then:function(T){return _.X(_.Rb,{text:T,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"X");
hS.idomCompat=!0;var FeY=_.aP(function(A){var Q=A.data;return _.X(_.WL,{data:function(){return Q==null?void 0:Q().overlays}},{thumbnailHoverOverlayViewModel:hS})},"Y");
FeY.idomCompat=!0;var G4j={};var BJ$=_.aP(function(A){var Q=A.data;var b=A.image;var f=A.state;var a=A.iconType;var T=A.overlays;var G=A.isOverlay;var p=_.mS("div");A=_.F(_.pz(!0,void 0,"sUzEZ"));var P=A.next().value,U=A.next().value,L=function(){return!!Q().onTap},M=_.Q0(a,"LIVE");
_.H_(function(){var J=Q();requestAnimationFrame(function(){if(p.value===null)var n=!0;else{var t=p.value;n=J.badgeText;var g=aGU(J.size);n in G4j?t=G4j[n]:(t=t.clientWidth,G4j[n]=t);(n=t>g)?p.value.style.display="none":p.value.style.visibility="visible"}U(n)})},"SpVcNb");
var l=function(){var J={};return J["yt-spec-avatar-shape__image"]=!0,J["yt-spec-avatar-shape__image--ads-app"]=Q().type===1,J};
return _.X("yt-avatar-shape",null,_.X("div",{el:_.d_(dwF(L,{keydown:function(J){if(J.key==="Enter"){var n;(n=J.currentTarget)==null||n.click()}},
click:function(J){var n,t;return void((t=(n=Q()).onTap)==null?void 0:t.call(n,J))}})),
class:function(){var J={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},n=Q();J=(J[n.clusterLayoutConfig?BJF(n.clusterLayoutConfig):p44(n.size)]=!0,J["yt-spec-avatar-shape__button--tappable"]=L(),J);(n=Q().avatarButtonCustomClassName)&&(J[n]=!0);return _.nE(J)},
"aria-label":function(){return L()?Q().accessibilityText:""},
role:function(){return L()?"button":void 0},
tabindex:function(){return L()?0:void 0}},_.X("div",{class:function(){var J,n=Q(),t=f==null?void 0:f(),g=G==null?void 0:G(),e=!((J=n.decorations)==null||!J.includes(2)||n.size!=="medium"&&n.size!=="large"),x=n.size==="tiny"||n.size==="extra-small",D,w,u,y,a9={};
J=(a9["yt-spec-avatar-shape--live-ring"]=!!(((D=n.decorations)==null?0:D.includes(0))&&X4e(n.size)),a9["yt-spec-avatar-shape--stories-watched"]=e&&!(t==null||!t.storiesWatched),a9["yt-spec-avatar-shape--stories-unwatched"]=e&&!(t==null?0:t.storiesWatched),a9["yt-spec-avatar-shape--background-border"]=SFU(n.decorations)&&!x,a9["yt-spec-avatar-shape--background-border-thin"]=SFU(n.decorations)&&x,a9["yt-spec-avatar-shape__on-select-border"]=!((w=n.decorations)==null||!w.includes(4)),a9["yt-spec-avatar-shape__white-border"]=
!((u=n.decorations)==null||!u.includes(5)),a9["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=n.decorations)==null?0:y.includes(5))&&x),a9["yt-spec-avatar-shape--is-overlay"]=!!g,a9);return _.nE(J)},
style:function(){a:{var J=Q().clusterLayoutConfig;if(J){b:{var n=J.numAvatarsInCluster;var t=J.avatarIndex;if(t!==n-1){switch(J.clusterSize){case "small":J="32";break;case "medium":J="36";break;case "40":J="40";break;default:n=void 0;break b}n="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+J+"x"+J+"_avatars_"+n+"_index_"+t+".svg"}else n=void 0}if(n){n=_.qM({"-webkit-mask-image":"url("+n+")","mask-image":"url("+n+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}n=void 0}return n}},_.X("div",{class:function(){var J={};
var n=Q();J=(J[n.clusterLayoutConfig?Fey(n.clusterLayoutConfig):G4J(n.size)]=!0,J["yt-spec-avatar-shape--no-margin"]=SFU(Q().decorations),J);return _.nE(J)}},_.X(_.aY,{data:b,
alt:function(){return!L()&&Q().accessibilityText?Q().accessibilityText:""},
targetWidth:function(){return P5y(Q().size)},
targetHeight:function(){return P5y(Q().size)},
className:function(){return _.nE(l())}}),_.X(_.S,{cond:function(){var J;
return((J=Q().decorations)==null?void 0:J.includes(0))&&X4e(Q().size)},
then:function(){return _.X("div",{class:function(){var J={};J=(J["yt-spec-avatar-shape__live-badge"]=!0,J["yt-spec-avatar-shape__live-badge--badge-small"]=Q().size==="small",J["yt-spec-avatar-shape__live-badge--badge-medium"]=Q().size==="medium"||Q().size==="48",J["yt-spec-avatar-shape__live-badge--badge-large"]=Q().size==="large",J["yt-spec-avatar-shape__live-badge--badge-extra-large"]=Q().size==="extra-large"||Q().size==="extra-extra-large"||Q().size==="giant",J);return _.nE(J)}},_.X(_.S,{cond:function(){return Q().badgeText},
then:function(J){return _.X("div",{class:"yt-spec-avatar-shape__badge-text",el:p},J)}}),_.X(_.S,{cond:P,
then:function(){return _.X("div",{class:"yt-spec-avatar-shape__badge-icon"},_.X(_.oY,{icon:M,size:function(){a:switch(Q().size){case "extra-large":var J=16;break a;default:J=13}return J}}))}}))}}),_.X(_.S,{cond:function(){var J,n;
return((J=Q().decorations)==null?void 0:J.includes(1))||((n=Q().decorations)==null?void 0:n.includes(0))&&!X4e(Q().size)},
then:function(){return _.X("div",{class:function(){var J=Q(),n,t,g={};var e=(g["yt-spec-avatar-shape__live-dot"]=!((n=J.decorations)==null||!n.includes(0)||X4e(J.size)),g["yt-spec-avatar-shape__new-content"]=!((t=J.decorations)==null||!t.includes(1)),g);return _.nE(e)}})}}),_.X(_.S,{cond:function(){return!!T},
then:function(){return _.X("div",{class:function(){var J={};J=Object.assign((J["yt-spec-avatar-shape__image-overlays"]=!0,J),l());return _.nE(J)}},T==null?void 0:T())}})))))},"Z");
BJ$.idomCompat={callbacks:{overlays:!0}};_.Wm=_.aP(function(A){function Q(){b().endpoint&&_.D3(b().endpoint)}
var b=A.data;var f=A.decorations;var a=A.avatarButtonCustomClassName;var T=A.isOverlay;var G=A.clusterLayoutConfig;return _.X("avatar-view-model",null,_.X(_.S,{cond:function(){return b().image},
then:function(p){return _.X(BJ$,{data:function(){return LeA({data:b(),onTap:b().endpoint?Q:void 0,decorations:f==null?void 0:f(),badgeText:void 0,accessibilityText:b().accessibilityText,avatarButtonCustomClassName:a==null?void 0:a(),clusterLayoutConfig:G==null?void 0:G()})},
image:p,iconType:"RADAR_LIVE",overlays:function(){return _.X(FeY,{data:b})},
isOverlay:T})}}))},"$");
_.Wm.idomCompat=!0;_.E9=_.aP(function(A){var Q=A.data;A=A.className;var b=_.mS("yt-decorated-avatar-view-model"),f=function(){return _.V(Q().avatar,_.yh)},a=_.Lz(function(){var T,G=Q(),p=f(),P=_.wz(Q().rendererContext),U=(T=b.value)!=null?T:void 0,L;
if(p){U={data:G,avatar:p,onTap:P,element:U};T=U.data;G=U.avatar;p=U.onTap;P=U.element;U=U.commandController;p=p?i5i(p,P,U):void 0;P=[];T.liveData&&P.push(0);var M;U=(M=T.liveData)==null?void 0:M.liveBadgeText;M=(L=_.V(T.rendererContext,_.HV))==null?void 0:L.label;L=LeA({data:G,onTap:p,decorations:P,badgeText:U,accessibilityText:M?M:T.a11yLabel})}else L={size:"medium"};return L},void 0,"H8tk9d");
return _.X("yt-decorated-avatar-view-model",{class:_.O4("yt-decorated-avatar-view-model-wiz",A),el:b},_.X(_.S,{cond:function(){var T;return(T=f())==null?void 0:T.image},
then:function(T){return _.X(BJ$,{data:a,image:T,iconType:"RADAR_LIVE",overlays:function(){return _.X(FeY,{data:f})}})}}))},"aa");
_.E9.idomCompat=!0;_.xK=_.aP(function(A){var Q=function(){var p;return Object.assign({},A.data(),(p=A.overrides)==null?void 0:p.call(A))},b=function(){return _.uJ(Q().rendererContext)},f=function(){var p=Q().avatars,P,U;
return(U=(P=(p==null?0:p[0])?_.V(p[0],_.yh):void 0)==null?void 0:P.avatarImageSize)!=null?U:"AVATAR_SIZE_UNKNOWN"},a=function(){return Ke9(Q())},T=function(){if(Q().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var p=void 0;
else if((p=A.decorations)==null?0:p.call(A))p=A.decorations();else{p=Q();var P=0;p.avatars&&(P+=p.avatars.length);p.decoratedText&&(P+=1);p=P>1?[3]:[]}return p},G={};
return _.X("yt-avatar-stack-view-model",{el:_.d_(_.Zb(function(){return Q().rendererContext})),
class:_.O4("yt-avatar-stack-view-model-wiz",A.className,(G["yt-avatar-stack-view-model-wiz--tappable"]=b,G["yt-avatar-stack-view-model-wiz--is-overlay"]=A.isOverlay,G["yt-avatar-stack-view-model-wiz--medium-text"]=A.useMediumText,G)),tabindex:function(){return b()?0:void 0},
role:function(){return b()?"link":void 0},
"aria-label":function(){var p,P;return(P=(p=_.V(Q().rendererContext,_.HV))==null?void 0:p.label)!=null?P:""}},_.X(_.S,{cond:function(){var p;
return Q().avatars&&!((p=A.hideAvatar)==null?0:p.call(A))},
then:function(){return _.X("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.X(_.S,{cond:function(){return Q().decoratedText},
then:function(p){var P={};return _.X("div",{class:_.O4("yt-avatar-stack-view-model-wiz__text-container",(P["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return f()==="AVATAR_SIZE_XXS"||f()==="AVATAR_SIZE_XS"},P["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var U;
return((U=A.isOverlay)==null?void 0:U.call(A))&&(f()==="AVATAR_SIZE_XXS"||f()==="AVATAR_SIZE_XS")},P)),
style:_.qM({width:function(){return a().avatarSizeInPx+"px"},
height:function(){return a().avatarSizeInPx+"px"}})},_.X(_.Rb,{text:p,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.X("div",{style:function(){return _.qM(a().avatarStackStyle)()},
class:function(){return a().avatarStackClass}},_.X(_.WL,{data:function(){return a().avatars.reverse()}},{avatarViewModel:function(p,P){return _.X("div",{style:function(){var U,L;
return _.qM((L=(U=a()).avatarStyle)==null?void 0:L.call(U,P()))()},
class:function(){return a().avatarClass}},_.X(_.Wm,{data:p.data,
decorations:T,avatarButtonCustomClassName:function(){return a().avatarButtonCustomClassName},
isOverlay:A.isOverlay,clusterLayoutConfig:function(){var U,L;return(L=(U=a()).clusterLayoutConfig)==null?void 0:L.call(U,P())}}))},
decoratedAvatarViewModel:function(p,P){return _.X("div",{style:function(){var U,L;return _.qM((L=(U=a()).avatarStyle)==null?void 0:L.call(U,P()))()},
class:function(){return a().avatarClass}},_.X(_.E9,{data:p.data}))}})))}}),_.X(_.S,{cond:function(){return Q().text},
then:function(p){return _.X(_.Rb,{text:p,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ba");
_.xK.idomCompat=!0;_.pE(_.aP(function(A){var Q=A.data;var b=A.thumbnailSize;return _.X("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.X("div",{class:_.O4("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return J5X(b==null?void 0:b())})},_.X(_.WL,{data:function(){return Q().avatarStack}},{avatarStackViewModel:function(f){return _.X(_.xK,{data:f.data,
decorations:[5]})}})))},"ca"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Qf,
thumbnailSize:_.Qf}});var p4v=_.aP(function(A){A=_.be(A,{hidden:!1});var Q=A.data;return _.X("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:A.hidden},_.X(_.Rb,{text:function(){return Q().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(){return _.X(_.Rb,{text:function(){return Q().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"da");
p4v.idomCompat=!0;_.pE(p4v,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Qf,hidden:_.Qf}});var P5Y=_.aP(function(A){A=_.be(A,{isClip:!1});var Q=A.data,b=A.thumbnailSize,f={};return _.X("yt-thumbnail-overlay-badge-view-model",{class:_.O4("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(Q().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var a="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:a="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return a},function(){return VjF(b==null?void 0:b())},(f["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
A.isClip,f))},_.X(_.WL,{data:function(){return Q().thumbnailBadges}},{thumbnailBadgeViewModel:function(a){return _.X(TJr,{data:a.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ea");
P5Y.idomCompat=!0;_.pE(P5Y,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Qf,thumbnailSize:_.Qf,isClip:_.Qf}});_.dK(O5F);_.KE(O5F,"yt-page-indicator-view-model",{propNames:["data"]});var cm=function(){var A=_.q.apply(this,arguments)||this;A.eventSink=function(){return A};
A.disableInteraction=!1;A.noRoundedCorners=!1;A.isPreviewLoading=!1;A.isOriginalAspectRatio=!1;A.computedObjectFit=!1;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return A};
_.O(cm,_.q);_.d=cm.prototype;
_.d.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:_.K("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"}}};
_.d.onImageLoaded=function(){this.loaded=!0};
_.d.onImageUnloaded=function(){this.loaded=!1};
_.d.computeRichThumbnail=function(A,Q,b,f){if(A&&Q&&!f&&!_.K("disable_moving_thumbs_handling")&&!b)return Q};
_.d.computeImageWidth=function(A,Q){return Q||9999};
_.d.computeIsOriginalAspectRatio=function(A){return A};
_.d.computeIsLive=function(A){if(A==null?0:A.badges)for(var Q=0;Q<A.badges.length;Q++){var b=A.badges[Q];if(b.metadataBadgeRenderer&&b.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(A==null?0:A.thumbnailOverlays)for(Q=0;Q<A.thumbnailOverlays.length;Q++)if(b=A.thumbnailOverlays[Q],b.thumbnailOverlayTimeStatusRenderer&&b.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.d.computeObjectFit=function(A,Q){return Q||(A?"CONTAIN":"")};
_.d.computeNavigationEndpoint=function(A,Q,b){return A?Q:b};
_.d.computeHasClip=function(A){A=_.F(A||[]);for(var Q=A.next();!Q.done;Q=A.next())if(Q.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.d.computeOverlayColor=function(A){var Q;return(A==null?0:(Q=A.darkColorPalette)==null?0:Q.section2Color)?A.darkColorPalette.section2Color:A==null?void 0:A.sampledThumbnailColor};
_.Qr.Object.defineProperties(cm.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return ZRy(this.width)}}});
cm.prototype.onImageUnloaded=cm.prototype.onImageUnloaded;cm.prototype.onImageLoaded=cm.prototype.onImageLoaded;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],cm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(uyx),_.c("design:type",Object)],cm.prototype,"ytdThumbnailBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],cm.prototype,"componentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],cm.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cm.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],cm.prototype,"circular",void 0);
_.E([_.C({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.c("design:type",Object)],cm.prototype,"richThumbnail",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.c("design:type",Boolean)],cm.prototype,"hasClip",void 0);_.E([_.C(),_.c("design:type",Object)],cm.prototype,"eventSink",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],cm.prototype,"queued",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],cm.prototype,"richGridThumbnail",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],cm.prototype,"useExpandableTooltip",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],cm.prototype,"useUntranslatedNavigationEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cm.prototype,"disableInteraction",void 0);
_.E([_.C({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.c("design:type",Object)],cm.prototype,"computedNavigationEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],cm.prototype,"nowPlayingEqualizerOnly",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],cm.prototype,"hidePlaybackStatus",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],cm.prototype,"objectFit",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cm.prototype,"noRoundedCorners",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],cm.prototype,"watchFeedThumbnail",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cm.prototype,"isPreviewLoading",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.c("design:type",Object)],cm.prototype,"isOriginalAspectRatio",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.c("design:type",Object)],cm.prototype,"computedObjectFit",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.c("design:type",Boolean)],cm.prototype,"isLiveVideo",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],cm.prototype,"loaded",void 0);_.E([_.C({computed:"computeOverlayColor(data.thumbnail)"}),_.c("design:type",Object)],cm.prototype,"overlayColor",void 0);_.E([_.C({selector:_.cYf}),_.c("design:type",Boolean)],cm.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.C(),_.c("design:type",Number)],cm.prototype,"width",void 0);
_.E([_.H("inlinePreviewIsEnabled"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cm.prototype,"isPreviewDisabled",null);_.E([_.H("width"),_.c("design:type",String),_.c("design:paramtypes",[])],cm.prototype,"thumbnailSize",null);_.E([_.Kc("image-loaded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cm.prototype,"onImageLoaded",null);
_.E([_.Kc("image-unloaded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cm.prototype,"onImageUnloaded",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-thumbnail"})],cm);
var X4M=_.SM()(cm,"ytd-thumbnail",function(){if(fGj===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);fGj=A}A=fGj;return A},{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 H5y=function(A){var Q=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14805_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14805_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(b){SFK(Q,b)};
this.onLockupMouseLeaveFn=function(b){b=b.relatedTarget;var f,a;((f=document.getElementsByTagName("ytd-video-preview"))==null?0:(a=f.item(0))==null?0:a.contains(b))||(Q.terminateVideoPreview(),z$(Q))};
this.onThumbnailMouseDownFn=function(){Q.terminateVideoPreview();z$(Q)};
this.onTouchStart=function(){Q.JSC$14805_touched=!0};
this.mediaRenderer=A.mediaRenderer;this.thumbnailElement=A.thumbnailElement;this.lockupElement=A.lockupElement;this.videoPreviewOptsInput=A.videoPreviewOpts;Uwr(this);ww(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)):
_.Wv(Error("Bh")):_.Wv(Error("Ch")):LeW(this)},f7=function(A){LeW(A);
var Q;(Q=A.lockupElement)==null||Q.removeEventListener("mouseenter",A.onMouseMoveFn);var b;(b=A.lockupElement)==null||b.removeEventListener("mouseleave",A.onLockupMouseLeaveFn);var f;(f=A.lockupElement)==null||f.removeEventListener("touchstart",A.onTouchStart);var a;(a=A.thumbnailElement)==null||a.removeEventListener("mousedown",A.onThumbnailMouseDownFn);z$(A)},Uwr=function(A){A.inlinePreviewIsEnabledForUser=_.QK().getState().ui.inlinePreviewIsEnabled;
A.unsubscribeFromInlinePreviewIsEnabled=_.H1(_.QK(),_.cYf,function(Q){(A.inlinePreviewIsEnabledForUser=Q)||z$(A)});
A.JSC$14805_unsubscribeFromInlinePreviewIsActive=_.H1(_.QK(),_.xkF,function(Q){(A.inlinePreviewIsActive=Q)||z$(A)})},LeW=function(A){A.unsubscribeFromInlinePreviewIsEnabled();
A.unsubscribeFromInlinePreviewIsEnabled=function(){};
A.JSC$14805_unsubscribeFromInlinePreviewIsActive();A.JSC$14805_unsubscribeFromInlinePreviewIsActive=function(){}},SFK=function(A,Q){Q.buttons>0||(Q=_.GP("kevlar_lockup_hover_delay",-1),A.JSC$14805_touched&&Q>=0?(_.j7.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.LE(_.j7,function(){MjM(A)},Q),A.JSC$14805_touched=!1):MjM(A))},lIX=function(A){A.videoPreviewJobId=_.LE(_.j7,function(){var Q,b,f,a;
return _.B(function(T){if(T.nextAddress==1){if(!ww(A))return T.return();Q=A.getVideoPreviewOpts();if(!Q)return T.return();Q.isAutoplay=!0;return(f=(b=_.Pn(A.mediaRenderer.hostElement,"yt-open-video-preview-action",[Q]))&&b[0])?T.yield(b[0],3):T.jumpTo(2)}T.nextAddress!=2&&(f=T.yieldResult===1);f&&k4C((a=A.mediaRenderer)==null?void 0:a.data);_.Oi(T)})})},MjM=function(A){!A.previewTriggered&&ww(A)&&(A.inlinePreviewIsActive&&A.terminateVideoPreview(),A.previewTriggered=!0,A.mediaRenderer.isInlinePreviewTriggered=
!0,_.j7.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.LE(_.j7,function(){var Q,b,f,a;
return _.B(function(T){if(T.nextAddress==1){if(!ww(A))return T.return();Q=A.getVideoPreviewOpts();return Q?(f=(b=_.Pn(A.mediaRenderer.hostElement,"yt-open-video-preview-action",[Q]))&&b[0])?T.yield(b[0],3):T.jumpTo(2):T.return()}T.nextAddress!=2&&(f=T.yieldResult===1);f&&k4C((a=A.mediaRenderer)==null?void 0:a.data);_.Oi(T)})}))};
H5y.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var A,Q;if((Q=(A=this.videoPreviewOptsInput)==null?void 0:A.videoPreviewData)!=null)A=Q;else if(A=this.mediaRenderer.data)if(niF(A))A={inlinePlaybackEndpoint:_.ue(A.inlinePlayerData.onVisible),navigationEndpoint:_.ue(A.onTap),thumbnail:"image"in A?A.image:A.thumbnail,thumbnailOverlays:void 0,accessibilityText:IGb(A)};else if("multipleInlinePlaybackEndpoint"in A){var b=_.V(_.V(A.multipleInlinePlaybackEndpoint,gH$),e9$);if(b!=
null&&b.playerDescriptors){Q=[];b=_.F(b.playerDescriptors);for(var f=b.next();!f.done;f=b.next())f=f.value,Q.push({inlinePlaybackEndpoint:f.inlinePlaybackEndpoint,navigationEndpoint:f.navigationEndpoint,thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays,accessibilityText:IGb(A)});A=Q}else A=void 0}else A={inlinePlaybackEndpoint:A.inlinePlaybackEndpoint,navigationEndpoint:A.navigationEndpoint,thumbnail:A.thumbnail,thumbnailOverlays:A.thumbnailOverlays,accessibilityText:IGb(A)};else A=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:A,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var ww=function(A){var Q;if(Q=A.inlinePreviewIsEnabledForUser)Q=(A=A.mediaRenderer.data)?"inlinePlaybackEndpoint"in A&&A.inlinePlaybackEndpoint||niF(A)&&A.inlinePlayerData||"multipleInlinePlaybackEndpoint"in A&&A.multipleInlinePlaybackEndpoint?!0:!1:!1;return Q};
H5y.prototype.terminateVideoPreview=function(){_.pD(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var z$=function(A){_.j7.cancelJob(A.videoPreviewJobId);A.inlinePreviewIsActive=!1;A.previewTriggered=!1;A.mediaRenderer.isInlinePreviewTriggered=!1};var lGL=_.sC(["#"]),ut=function(){var A=_.q.apply(this,arguments)||this;A.isDisabled=!1;return A};
_.O(ut,_.q);_.d=ut.prototype;_.d.configureRendererStamper=function(){return{"data.menu":n_,"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"}}}};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.getMetadata=function(A){var Q=[];if(A.metadataText&&Object.keys(A.metadataText).length>0){var b=this.ytRendererBehavior.getSimpleString(A.metadataText);A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&(b=_.Eh(b,Number(A.upcomingEventData.startTime)));Q.push(b)}else A.shortViewCountText&&Q.push(this.ytRendererBehavior.getSimpleString(A.shortViewCountText)),A.publishedTimeText&&Q.push(this.ytRendererBehavior.getSimpleString(A.publishedTimeText)),A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&
(b=this.ytRendererBehavior.getSimpleString(A.upcomingEventData.upcomingEventText),Q.push(_.Eh(b,Number(A.upcomingEventData.startTime))));return Q};
_.d.calculateBylineText=function(A){return A.shortBylineText?A.shortBylineText:A.bylineText?A.bylineText:null};
_.d.calculateIsDisabled=function(A){return!!A.isDisabled};
_.d.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.mse(lGL)};
_.d.onDetailsTap=function(A){var Q=this.data&&this.data.navigationEndpoint;Q&&!_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.K("kevlar_grid_video_renderer_killswitch")?_.Bn(this.hostElement,"yt-navigate",{endpoint:Q}):this.ytComponentBehavior.resolveCommand(Q))};
_.d.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14810_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:_.Bj(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Bj(this.hostElement).querySelector("ytd-thumbnail")})};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$14810_inlinePreviewHoverListener)==null||f7(A)};
_.d.computeThumbnailWidth=function(A,Q){return Q&&Q>0?Q:A?360:210};
_.d.computeShowChannelThumbnail=function(A,Q){var b;return Q&&!!(A==null?0:(b=A.channelThumbnailSupportedRenderers)==null?0:b.channelThumbnailWithLinkRenderer)};
_.Qr.Object.defineProperties(ut.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$14810_inlinePreviewHoverListener)==null?0:ww(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ut.prototype.dataChanged=ut.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ut.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],ut.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.NC),_.c("design:type",Object)],ut.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ut.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],ut.prototype,"noEndpoints",void 0);_.E([_.C({computed:"calculateBylineText(data)"}),_.c("design:type",Object)],ut.prototype,"bylineText",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],ut.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],ut.prototype,"isDownloading",void 0);_.E([_.C({reflectToAttribute:!0,value:0}),_.c("design:type",Number)],ut.prototype,"width",void 0);_.E([_.C({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.c("design:type",Object)],ut.prototype,"isDisabled",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ut.prototype,"dataChanged",null);_.E([_.H("lockupIsHovered"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ut.prototype,"isHovered",null);_.E([_.h({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],ut);
_.W(ut,"ytd-grid-video-renderer",function(){if(uA$!==void 0)return uA$;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return uA$=A},{mode:_.UG("kevlar_poly_si_batch_j047")?1:2});var Key;var Zx=function(){var A=_.q.apply(this,arguments)||this;A.roundedContainer=!0;A.skipRoundingTop=!1;A.disableTopPadding=!1;A.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return A};
_.O(Zx,_.q);Zx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Zx.prototype.onClick=function(A){var Q,b=(Q=this.data)==null?void 0:Q.sourceEndpoint;!_.TG(_.mW(A),this.hostElement,["A".toString()])&&b&&_.Bn(this.hostElement,"yt-navigate",{endpoint:b})};
_.Qr.Object.defineProperties(Zx.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 A;return!((A=this.data)==null||!A.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=(A=this.data)==null?void 0:A.paragraphMaxLines)!=null?Q:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zx.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zx.prototype,"showVerticalDividers",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zx.prototype,"roundedContainer",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zx.prototype,"skipRoundingTop",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zx.prototype,"disableTopPadding",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Zx.prototype,"amsterdamEnabled",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Zx.prototype,"showMetadataAtTop",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Zx.prototype,"showMetadataBelowTitle",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.menu"),_.c("design:type",Object),_.c("design:paramtypes",[])],Zx.prototype,"hasMenu",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.truncateParagraphs"),_.c("design:type",Object),_.c("design:paramtypes",[])],Zx.prototype,"truncateParagraphs",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data.paragraphMaxLines"),_.c("design:type",Number),_.c("design:paramtypes",[])],Zx.prototype,"paragraphMaxLines",null);_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.background"),_.c("design:type",Object),_.c("design:paramtypes",[])],Zx.prototype,"background",null);_.E([_.h({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Zx);
_.W(Zx,"ytd-info-panel-content-renderer",function(){if(Key!==void 0)return Key;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Key=A},{mode:_.UG("kevlar_poly_si_batch_j076")?1:2});var i5L;var J5r;var Vj$;var O5$;var yD=function(){return _.q.apply(this,arguments)||this};
_.O(yD,_.q);yD.prototype.computeStyle=function(A){return A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yD.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.c("design:type",String)],yD.prototype,"style_",void 0);_.E([_.Ec({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],yD);
_.W(yD,"yt-channel-thumbnail-with-link-renderer",function(){if(O5$===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Vj$===void 0&&(Vj$=document.createElement("template"));var f=Vj$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);O5$=A}A=O5$;return A},{mode:2});var YK=function(){var A=_.q.apply(this,arguments)||this;A.modernTypography=_.K("web_modern_typography");return A};
_.O(YK,_.q);YK.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"}}}};
YK.prototype.computeTitleStyle=function(A){return A||null};
YK.prototype.computeAvatarStyle=function(A){return A||null};
YK.prototype.computeShowNavigationButton=function(A,Q){return!(A==null||!A.navigationButton||Q)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YK.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.c("design:type",String)],YK.prototype,"titleStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.c("design:type",String)],YK.prototype,"avatarStyle",void 0);_.E([_.C(),_.c("design:type",Boolean)],YK.prototype,"hideNavigationButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],YK.prototype,"isModernSd",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YK.prototype,"modernTypography",void 0);
_.E([_.h({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],YK);
_.W(YK,"ytd-rich-list-header-renderer",function(){if(J5r!==void 0)return J5r;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return J5r=A},{mode:_.UG("kevlar_poly_si_batch_j058")?1:2});var Dx=function(){return _.q.apply(this,arguments)||this};
_.O(Dx,_.q);Dx.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Dx.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Dx.prototype,"isSearch",void 0);_.E([_.h({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Dx);
_.W(Dx,"ytd-preview-card-renderer",function(){if(i5L!==void 0)return i5L;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return i5L=A},{mode:1});var ni$;var $K=function(){return _.q.apply(this,arguments)||this};
_.O($K,_.q);$K.prototype.configureRendererStamper=function(){return{"data.menu":n_}};
$K.prototype.dataChanged=function(){var A=this.get("colorExtractionPalette.section1Color",this.data);A=_.zx(A);_.Uc(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":A})};
$K.prototype.computeCardStyle=function(A){return this.get("style.value",A)||null};
$K.prototype.dataChanged=$K.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],$K.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$K.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.c("design:type",String)],$K.prototype,"cardStyle",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$K.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],$K);
_.W($K,"ytd-compact-channel-recommendation-card-renderer",function(){if(ni$!==void 0)return ni$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ni$=A},{mode:1});var k41;var IGL;var N0=function(){var A=_.q.apply(this,arguments)||this;A.alignAuto=!1;A.collapsed=!0;A.isToggled=!1;A.alwaysCollapsed=!1;A.canToggle=!0;A.collapsedHeight=80;A.disableToggle=!1;A.alwaysToggleable=!1;A.reversed=!1;A.shouldUseNumberOfLines=!1;A.recomputeOnResize=!1;A.canToggleJobId=0;A.lastReversed=!1;return A};
_.O(N0,_.q);_.d=N0.prototype;_.d.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.d.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.d.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var A=_.Bj(this.hostElement),Q=A.childNodes,b=document.createDocumentFragment(),f=A.childNodes.length-1;f>=0;f--)_.Bj(b).appendChild(Q[f]);_.K("enable_shadydom_free_scoped_node_methods")?_.pc(this.hostElement).appendChild(b):A.appendChild(b)}};
_.d.ready=function(){var A=this;_.y1(function(){A.initChildrenObserver()},1)};
_.d.attached=function(){var A;(A=this.resizeObserver)==null||A.observe(this.content)};
_.d.detached=function(){this.detachObserver()};
_.d.toggle=function(A,Q){this.canToggle&&(this.isToggled=Q,_.Bn(this.hostElement,"yt-refit"),A&&A.stopPropagation())};
_.d.reset=function(){this.childrenChanged()};
_.d.onIronResize=function(){this.recomputeOnResize&&!_.K("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.d.computeIsMoreVisible=function(A,Q){return A&&!Q};
_.d.computeShouldUseNumberOfLines=function(A){try{return!!A&&window.CSS.supports("-webkit-line-clamp","1")}catch(Q){}return!1};
_.d.computeIsLessVisible=function(A,Q){return A&&Q};
_.d.observeCollapsedHeightAndMaxLines=function(){var A=this.collapsedHeight,Q=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Uc(this.hostElement,{"--ytd-expander-max-lines":""+Q,"--ytd-expander-collapsed-height":""}):_.Uc(this.hostElement,{"--ytd-expander-collapsed-height":A+"px","--ytd-expander-max-lines":""})};
_.d.handleMoreTap=function(A){this.disableToggle||(_.Bn(this.hostElement,"yt-expander-more-tapped"),this.toggle(A,!0))};
_.d.handleLessTap=function(A){_.Bn(this.hostElement,"yt-expander-less-tapped");this.toggle(A,!1)};
_.d.initChildrenObserver=function(){var A=this;this.observer=new MutationObserver(function(){A.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.K("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Ac(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var Q;(Q=A.resizeThrottle)==null||Q.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.d.childrenChanged=function(){var A=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){U4(function(){A.canToggleJobId=0;A.calculateCanCollapse()})}))};
_.d.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};
_.d.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.d.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("collapsed-changed",this.collapsed))};
_.d.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("is-toggled-changed",this.isToggled))};
_.d.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("can-toggle-changed",this.canToggle))};
_.Qr.Object.defineProperties(N0.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
N0.prototype.canToggleChangedForBinding=N0.prototype.canToggleChangedForBinding;N0.prototype.isToggledChangedForBinding=N0.prototype.isToggledChangedForBinding;N0.prototype.collapsedChangedForBinding=N0.prototype.collapsedChangedForBinding;N0.prototype.observeCollapsedHeightAndMaxLines=N0.prototype.observeCollapsedHeightAndMaxLines;N0.prototype.onIronResize=N0.prototype.onIronResize;N0.prototype.reversedChanged=N0.prototype.reversedChanged;N0.prototype.toggledChanged=N0.prototype.toggledChanged;
N0.prototype.alwaysToggleableChanged=N0.prototype.alwaysToggleableChanged;_.E([_.I(_.eI),_.c("design:type",Object)],N0.prototype,"ironResizableBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],N0.prototype,"alignAuto",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],N0.prototype,"collapsed",void 0);_.E([_.C(),_.c("design:type",Object)],N0.prototype,"isToggled",void 0);_.E([_.C(),_.c("design:type",Object)],N0.prototype,"alwaysCollapsed",void 0);
_.E([_.C(),_.c("design:type",Object)],N0.prototype,"canToggle",void 0);_.E([_.C(),_.c("design:type",Object)],N0.prototype,"collapsedHeight",void 0);_.E([_.C(),_.c("design:type",Object)],N0.prototype,"disableToggle",void 0);_.E([_.C(),_.c("design:type",Object)],N0.prototype,"alwaysToggleable",void 0);_.E([_.C(),_.c("design:type",Object)],N0.prototype,"reversed",void 0);_.E([_.C(),_.c("design:type",Number)],N0.prototype,"maxNumberOfLines",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.c("design:type",Object)],N0.prototype,"shouldUseNumberOfLines",void 0);_.E([_.C(),_.c("design:type",Object)],N0.prototype,"recomputeOnResize",void 0);_.E([_.V1("#content"),_.c("design:type",HTMLDivElement)],N0.prototype,"content",void 0);_.E([_.I_("alwaysToggleable"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"alwaysToggleableChanged",null);
_.E([_.I_("isToggled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"toggledChanged",null);_.E([_.H("canToggleJobId"),_.c("design:type",Object),_.c("design:paramtypes",[])],N0.prototype,"isResetting",null);_.E([_.iN("reversed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"reversedChanged",null);
_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"onIronResize",null);_.E([_.iN("maxNumberOfLines","collapsedHeight"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"observeCollapsedHeightAndMaxLines",null);_.E([_.iN("collapsed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"collapsedChangedForBinding",null);
_.E([_.iN("isToggled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"isToggledChangedForBinding",null);_.E([_.iN("canToggle"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N0.prototype,"canToggleChangedForBinding",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-expander"})],N0);
_.W(N0,"ytd-expander",function(){if(IGL!==void 0)return IGL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return IGL=A},{mode:1});var s9=function(){return _.q.apply(this,arguments)||this};
_.O(s9,_.q);s9.prototype.computeIsCarousel=function(A){return!!A.isCarousel};
s9.prototype.observeLightsourcePalette=function(){var A,Q=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;Q&&_.vz(this.hostElement,Q)};
s9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
s9.prototype.observeLightsourcePalette=s9.prototype.observeLightsourcePalette;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],s9.prototype,"data",void 0);_.E([_.C({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],s9.prototype,"isCarousel",void 0);
_.E([_.iN("data.vibrantsourceColorPaletteData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],s9.prototype,"observeLightsourcePalette",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],s9);
_.W(s9,"ytd-media-upsell-renderer",function(){if(k41!==void 0)return k41;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return k41=A},{mode:2});var H5Y;var mt=function(){var A=_.q.apply(this,arguments)||this;A.JSC$14838_playerEvents=new Map;A.listeningToPlayer=!1;A.startX=0;A.active=!1;A.shouldShowButtons=_.K("web_buttons_hidden_killswitch");A.isHighlighted=!1;A.useHighlightStyling=_.K("web_enable_deeper_metadata_highlight_styling");A.modern=_.K("kevlar_modern_sd");A.enableProblemWalkthrough=_.K("problem_walkthrough_sd");return A};
_.O(mt,_.q);_.d=mt.prototype;
_.d.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}}}}}};
_.d.created=function(){this.JSC$14838_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.d.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.lN(this,this.onRepeatButtonToggle));_.K("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.lN(this,this.onActiveUpdate))};
_.d.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.lN(this,this.onRepeatButtonToggle));_.K("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.lN(this,this.onActiveUpdate))};
_.d.onDataChanged=function(){this.removePlayerListeners()};
_.d.onColorPaletteChange=function(){var A={},Q;if(_.jL()==="USER_INTERFACE_THEME_DARK"&&((Q=this.data)==null?0:Q.darkColorPalette)){var b=this.data.darkColorPalette;A["--ytd-macro-markers-list-item-background-color"]=_.w6(this.get("section2Color",b))}else{var f;_.jL()==="USER_INTERFACE_THEME_LIGHT"&&((f=this.data)==null?0:f.lightColorPalette)&&(b=this.data.lightColorPalette,A["--ytd-macro-markers-list-item-background-color"]=_.w6(this.get("section3Color",b)))}b?(A["--ytd-macro-markers-list-item-title-color"]=
_.w6(this.get("primaryTitleColor",b)),A["--ytd-macro-markers-list-item-secondary-color"]=_.w6(this.get("secondaryTitleColor",b)),A["--ytd-macro-markers-list-item-timestamp-background-color"]=_.w6(this.get("section1Color",b)),this.customButtonProperties={customColors:{color:_.w6(this.get("primaryTitleColor",b))}},this.useColorSampling=!0):(A["--ytd-macro-markers-list-item-background-color"]="initial",A["--ytd-macro-markers-list-item-title-color"]="initial",A["--ytd-macro-markers-list-item-secondary-color"]=
"initial",A["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Uc(this.hostElement,A)};
_.d.onEndpointMouseDown=function(A){this.startX=A.clientX};
_.d.onEndpointClick=function(A){var Q=this,b,f,a;return _.B(function(T){if(T.nextAddress==1){if(Q.startX!==A.clientX)return A.preventDefault(),T.return();Q.data&&Q.ytRendererBehavior.logExplicitClick(Q.data);if(!Q.seekWithAnimationOnClick)return T.jumpTo(0);if(A.button!==0||A.shiftKey||A.altKey||A.metaKey||A.ctrlKey||_.TG(_.mW(A),Q.hostElement,["BUTTON".toString()]))return T.return();A.stopPropagation();A.preventDefault();return Q.data?T.yield(_.p6().getPlayerPromise(),3):T.return()}b=T.yieldResult;
a=(f=_.V(Q.data.onTap,_.sv))==null?void 0:f.startTimeSeconds;a!==void 0&&b.seekToTimeWithAnimation(a*1E3,_.mO(Q.data.title));_.Oi(T)})};
_.d.computeLayout=function(A){return A};
_.d.computeIsHighlighted=function(A){return!!A};
_.d.computeCarouselType=function(A){return A};
_.d.hideModernCarousel=function(A){return this.modern&&this.hideThumbnail(A)};
_.d.hideThumbnail=function(A){return this.enableProblemWalkthrough&&A!==null&&A==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.d.onRepeatButtonToggle=function(A){var Q=this;A.detail.toggled&&_.p6().getPlayerPromise().then(function(b){Q.ytPlayerListenerBehavior.listenToPlayerEvents(b,Q.JSC$14838_playerEvents);Q.listeningToPlayer=!0})};
_.d.onLoopRangeChange=function(A){var Q=_.Bj(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(Q){var b=Q.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",Q.polymerController.data);if(b){var f=Number(b.endTimeMs);if(Number(b.startTimeMs)!==(A==null?void 0:A.startTimeMs)||f!==(A==null?void 0:A.endTimeMs))Q.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.d.removePlayerListeners=function(){var A=this;this.listeningToPlayer&&_.p6().getPlayerPromise().then(function(Q){A.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Q,A.JSC$14838_playerEvents);A.listeningToPlayer=!1})};
_.d.onActiveUpdate=function(A){this.active=A.detail.active};
mt.prototype.onColorPaletteChange=mt.prototype.onColorPaletteChange;mt.prototype.onDataChanged=mt.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],mt.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],mt.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],mt.prototype,"useCustomColors",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mt.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],mt.prototype,"shouldShowButtons",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.c("design:type",String)],mt.prototype,"layout",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.c("design:type",Object)],mt.prototype,"isHighlighted",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mt.prototype,"useHighlightStyling",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mt.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mt.prototype,"enableProblemWalkthrough",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.c("design:type",String)],mt.prototype,"carouselType",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],mt.prototype,"useColorSampling",void 0);_.E([_.C(),_.c("design:type",Boolean)],mt.prototype,"seekWithAnimationOnClick",void 0);_.E([_.C(),_.c("design:type",Object)],mt.prototype,"customButtonProperties",void 0);
_.E([_.V1("#repeat-button"),_.c("design:type",HTMLElement)],mt.prototype,"repeatButton",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mt.prototype,"onDataChanged",null);_.E([_.iN("data.lightColorPalette","data.darkColorPalette"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mt.prototype,"onColorPaletteChange",null);_.E([_.h({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],mt);
_.W(mt,"ytd-macro-markers-list-item-renderer",function(){if(H5Y!==void 0)return H5Y;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return H5Y=A},{mode:1});var C59;var qFx;var AZ=function(){var A=_.q.apply(this,arguments)||this;A.modernTypography=_.K("web_modern_typography");return A};
_.O(AZ,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],AZ.prototype,"modernTypography",void 0);_.E([_.C(),_.c("design:type",Object)],AZ.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],AZ);
_.W(AZ,"ytd-title-and-button-list-header-renderer",function(){if(qFx!==void 0)return qFx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return qFx=A},{mode:1});var oiY;var tjW=new _.TS("BUTTON_RENDERER_WIZ_TOKEN"),r5Y=new _.TS("BUTTON_RENDERER_TOKEN");_.QM=_.aP(function(A){var Q=_.fJ().resolve(_.bu(tjW));if(Q)return _.X(Q,Object.assign({},A));var b=_.fJ().resolve(r5Y);return b?_.X(Sse,null,function(){return _.X(Aj,null,function(){var f,a,T,G,p,P,U,L,M,l,J,n;return void b(A.data(),{onButtonClickCallback:A.onButtonClickCallback,shouldShowIcons:(f=A.shouldShowIcons)==null?void 0:f.call(A),icon:(a=A.icon)==null?void 0:a.call(A),processAllEndpoints:(T=A.processAllEndpoints)==null?void 0:T.call(A),preventDefault:(G=A.preventDefault)==null?void 0:G.call(A),
stopPropagation:(p=A.stopPropagation)==null?void 0:p.call(A),disableButtonRendererClickHandling:(P=A.disableButtonRendererClickHandling)==null?void 0:P.call(A),className:(U=A.className)==null?void 0:U.call(A),buttonOverrides:(L=A.buttonOverrides)==null?void 0:L.call(A),forceModernIconButton:(M=A.forceModernIconButton)==null?void 0:M.call(A),isSubscribe:(l=A.isSubscribe)==null?void 0:l.call(A),alignByText:(J=A.alignByText)==null?void 0:J.call(A),forceDisabled:(n=A.forceDisabled)==null?void 0:n.call(A)})})}):
_.X(_.bd,null)},"fa");
_.QM.idomCompat=!0;var j2M=_.aP(function(A){var Q=A.data,b=_.Q0(A.useSquareAspectRatio,!1);return _.X("dismissed-mini-game-card-view-model",null,_.X(_.S,{cond:function(){var f,a;return(f=Q().responseText)==null?void 0:(a=f.runs)==null?void 0:a.length},
then:function(){var f={};return _.X("div",{class:_.O4("yt-mini-game-card-view-model__dismissed-card",(f["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!b()},f["yt-mini-game-card-view-model--dismissed-square-card"]=b,f))},_.X("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.X(_.S,{cond:function(){return Q().responseText.runs[0].text},
then:function(a){return _.X("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:a},a)}}),_.X(_.WL,{data:function(){return Q().buttons}},{buttonRenderer:_.QM,
buttonViewModel:_.J9})))}}))},"ga");var EiM=_.aP(function(A){A=_.be(A,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var Q=A.data,b=A.useFullWidth,f=A.isDesktopWeb,a=A.addSearchResultTopMargin,T=function(){return Q().layout},G=function(){return Q().title},p=function(){return Q().metadataText?Q().metadataText:Q().genre},P=function(){return Q().channelName},U=function(){return Q().image},L=function(){return Q().colorPalette},M=function(){return Q().actionButton},l=function(){return Q().overflowButton},
J=function(){return Q().avatar},n=function(){var x={};
x=_.O4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(x["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return f()},x));
return _.X("div",{class:x},_.X(RCW,{imageData:U,colorPalette:L}),_.X(gi$,{onTap:function(){return Q().onTap},
imageData:U,accessibilityText:function(){return Q().accessibilityText},
overlayBadgeText:function(){return Q().overlayBadgeText},
iconName:function(){return Q().iconName},
unplayableInlinePlaybackIconName:function(){return Q().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.X(_.S,{cond:function(){return!f()},
then:function(){return _.X(_.bd,null,_.X(eCW,{layout:T,colorPalette:L,isDesktopWeb:f,overflowButton:l,avatar:J,onTap:function(){return Q().onTap},
genre:p,title:G,channelName:P}),_.X(hCY,{actionButton:M}))}}))},t=function(){var x={};
x=_.O4((x["yt-mini-game-card-view-model--search-result-desktop"]=function(){return f()},x["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!f()},x["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return a()},x));
return _.X("div",{class:x},n(),_.X(WeK,{description:function(){return Q().description},
isDesktopWeb:f,title:G,genre:p,onTap:function(){return Q().onTap},
actionButton:M,overflowButton:l,avatar:J,channelName:P}))},g=function(){var x={};
x=_.O4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(x["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return f()},x["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return f()&&Q().width===135},x["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return f()},x["yt-mini-game-card-view-model--big-metadata-font"]=function(){return Q().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},x["yt-mini-game-card-view-model--use-full-width"]=
function(){return b()},x["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!M()},x));
return _.X("div",{class:x},_.X(vi9,{colorPalette:L,isDesktopWeb:f,onTap:function(){return Q().onTap},
accessibilityText:function(){return Q().accessibilityText},
overlayBadgeText:function(){return Q().overlayBadgeText},
iconName:function(){return Q().iconName},
unplayableInlinePlaybackIconName:function(){return Q().unplayableInlinePlaybackIconName},
actionButton:M,imageData:U}),_.X(eCW,{layout:T,colorPalette:L,isDesktopWeb:f,overflowButton:l,avatar:J,onTap:function(){return Q().onTap},
genre:p,title:G,channelName:P}))},e=function(){var x={};
x=_.O4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(x["yt-mini-game-card-view-model--square-card-desktop"]=function(){return f()},x["yt-mini-game-card-view-model--use-full-width"]=function(){return b()},x));
return _.X("div",{class:x},_.X(gi$,{onTap:function(){return Q().onTap},
imageData:U,accessibilityText:function(){return Q().accessibilityText},
overlayBadgeText:function(){return Q().overlayBadgeText},
iconName:function(){return Q().iconName},
unplayableInlinePlaybackIconName:function(){return Q().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.X(eCW,{layout:T,colorPalette:L,isDesktopWeb:f,overflowButton:l,avatar:J,onTap:function(){return Q().onTap},
genre:p,title:G,channelName:P}))};
return _.X("mini-game-card-view-model",{class:A.className},_.X(_.I8,null,_.X(_.nH,{when:function(){return T()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return g()}),_.X(_.nH,{when:function(){return T()==="MINI_APP_LAYOUT_SQUARE"}},function(){return e()}),_.X(_.nH,{when:function(){return T()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return t()})))},"ha");
EiM.idomCompat=!0;var hCY=_.aP(function(A){var Q=_.Q0(A.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.X(_.WL,{data:A.actionButton},{buttonViewModel:function(b){return _.X("div",{class:Q},_.X(_.J9,{data:b.data}))}})},"ia"),gi$=_.aP(function(A){var Q=A.onTap;
var b=A.imageData;var f=A.accessibilityText;var a=A.overlayBadgeText;var T=A.iconName;var G=A.unplayableInlinePlaybackIconName;A=A.isDesktopWeb;return _.X(_.Db,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:Q},_.X(_.aY,{data:b,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(f==null?void 0:f())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.X(xw1,{overlayBadgeText:a,iconName:T,unplayableInlinePlaybackIconName:G,isDesktopWeb:A}))},"ja"),xw1=_.aP(function(A){var Q=A.overlayBadgeText;
var b=A.iconName;var f=A.unplayableInlinePlaybackIconName;var a=A.isDesktopWeb;return _.X("div",{class:"yt-mini-game-card-view-model__badge-container"},_.X(_.S,{cond:b,then:function(T){return _.X("div",{class:"yt-mini-game-card-view-model__badge"},_.X("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.X(_.oY,{icon:T,className:"yt-mini-game-card-view-model__icon",size:12}),_.X("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},Q)))}}),_.X(_.S,{cond:function(){return!b()&&
Q()},
then:function(){return _.X("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},Q)}}),_.X(_.S,{cond:function(){return f()&&a()},
then:function(){return _.X("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.X(_.oY,{icon:f,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ka"),RCW=_.aP(function(A){var Q=A.colorPalette;
var b=A.imageData;var f=function(){return Q().vibrantColorPalette?Q().vibrantColorPalette.section2Color:Q().sectionTwoColor};
return _.X(_.bd,null,_.X("div",{class:"yt-mini-game-card-view-model__background-base",style:_.qM({"background-color":function(){return uB(f(),"1")}})}),_.X("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.qM({"background-image":function(){return"url("+b().sources[0].url+")"}})}),_.X("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.qM({background:function(){return"linear-gradient(180deg,\n    "+uB(f(),".8")+" 0%,\n    "+uB(f(),".4")+" 25%,\n    "+uB(Q().vibrantColorPalette?Q().vibrantColorPalette.section4Color:Q().sectionFourColor,".8")+" 100%)"}})}))},"la"),eCW=_.aP(function(A){var Q=A.layout;
var b=A.colorPalette;var f=A.overflowButton;var a=A.avatar;var T=A.onTap;var G=A.title;var p=A.channelName;var P=A.genre;var U=function(){var L;return Q()!=="MINI_APP_LAYOUT_SQUARE"&&((L=b())==null?0:L.textPrimaryColor)?"color: "+uB(b().textPrimaryColor,".7"):""};
return _.X("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.X(_.S,{cond:a,then:function(){return _.X("div",{class:"yt-mini-game-card-view-model__avatar"},_.X(_.WL,{data:a},{avatarViewModel:_.Wm}))}}),_.X(_.Db,{command:T,
className:"yt-mini-game-card-view-model__metadata-details"},_.X("h3",{class:"yt-mini-game-card-view-model__title",title:G},G),_.X(_.S,{cond:a,then:function(){return _.X("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.X("span",{class:"yt-mini-game-card-view-model__genre",title:p,style:U},p),_.X("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:U},P))},
else:function(){return _.X("span",{class:"yt-mini-game-card-view-model__genre",title:P},P)}})),_.X("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.X(_.WL,{data:f},{buttonViewModel:function(L){var M=L.data;
return _.X(_.J9,{data:function(){return Object.assign({},M(),{customFontColor:Q()==="MINI_APP_LAYOUT_SINGLETON"?M().customFontColor:void 0})}})}})))},"ma"),vi9=_.aP(function(A){var Q=A.colorPalette;
var b=A.isDesktopWeb;var f=A.onTap;var a=A.accessibilityText;var T=A.overlayBadgeText;var G=A.iconName;var p=A.unplayableInlinePlaybackIconName;var P=A.actionButton;A=A.imageData;return _.X("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.X(RCW,{imageData:A,colorPalette:Q}),_.X(gi$,{onTap:f,imageData:A,accessibilityText:a,overlayBadgeText:T,iconName:G,unplayableInlinePlaybackIconName:p,isDesktopWeb:b}),_.X(_.S,{cond:function(){return P==null?void 0:P()},
then:function(){return _.X(hCY,{actionButton:P})}}))},"na"),WeK=_.aP(function(A){var Q=A.description;
var b=A.isDesktopWeb;var f=A.title;var a=A.genre;var T=A.onTap;var G=A.actionButton;var p=A.overflowButton;var P=A.avatar;A=A.channelName;var U={};U=_.O4("yt-mini-game-card-view-model--search-result-metadata-wrapper",(U["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=b,U["yt-mini-game-card-view-model--show-unplayable-on-hover"]=b,U["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!b()},U));
var L={};L=_.O4("yt-mini-game-card-view-model__search-result-info-row",(L["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!b()},L));
return _.X("div",{class:U},_.X("div",{class:L},_.X(_.Db,{command:T,className:"yt-mini-game-card-view-model__metadata-details"},_.X("h3",{class:"yt-mini-game-card-view-model__title",title:f},f),_.X("span",{class:"yt-mini-game-card-view-model__genre",title:a},a)),_.X(hCY,{actionButton:G,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.X("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.X(_.WL,{data:p},{buttonViewModel:_.J9}))),_.X("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.X("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.X("div",{class:"yt-mini-game-card-view-model__avatar"},_.X(_.WL,{data:P},{avatarViewModel:function(M){var l=M.data;return _.X(_.Wm,{data:function(){return Object.assign({},l(),{avatarImageSize:b()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.X(_.Db,{command:T,
className:"yt-mini-game-card-view-model__description"},_.X("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},A)),_.X(_.Db,{command:T,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.X("div",null)))),_.X(_.S,{cond:b,then:function(){return _.X(_.Db,{command:T,className:"yt-mini-game-card-view-model__description"},Q)}}))},"oa");_.pE(EiM,"mini-game-card-view-model",{props:{data:_.Qf,className:_.Qf,useFullWidth:_.Qf,isDesktopWeb:_.Qf,addSearchResultTopMargin:_.Qf}});_.pE(j2M,"dismissed-mini-game-card-view-model",{props:{data:_.Qf,useSquareAspectRatio:_.Qf}});var bH=function(){var A=_.q.apply(this,arguments)||this;A.isSearch=!1;A.isRichGrid=!1;return A};
_.O(bH,_.q);_.d=bH.prototype;_.d.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.d.dismissibleItemOnYtServiceRequestSent=function(A,Q){Q.actions&&this.dismissibleItemProcessActions(A,Q.actions)};
_.d.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.d.dataChanged=function(){this.dismissibleItemReset()};
_.d.dismissibleItemProcessActions=function(A,Q){for(var b=0;b<Q.length;b++){var f=Q[b];_.V(f,_.q8)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.V(f,_.q8)),A.stopPropagation())}};
_.d.dismissibleItemHandleReplaceEnclosingAction=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0};
_.Qr.Object.defineProperties(bH.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var A;return!!this.data&&!((A=this.dismissedRenderer)==null?0:A.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.dismissedRenderer)==null||!A.notificationMultiActionRenderer)}}});
bH.prototype.dataChanged=bH.prototype.dataChanged;bH.prototype.dismissibleItemOnRequestSent=bH.prototype.dismissibleItemOnRequestSent;bH.prototype.dismissibleItemOnYtServiceRequestSent=bH.prototype.dismissibleItemOnYtServiceRequestSent;_.E([_.C(),_.c("design:type",Object)],bH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bH.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],bH.prototype,"isDismissed",void 0);
_.E([_.C(),_.c("design:type",Object)],bH.prototype,"dismissedRenderer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bH.prototype,"isRichGrid",void 0);_.E([_.H("data.layout"),_.c("design:type",Object),_.c("design:paramtypes",[])],bH.prototype,"useSquareAspectRatio",null);_.E([_.H("data","dismissedRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],bH.prototype,"showCard",null);
_.E([_.H("data","dismissedRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],bH.prototype,"showDismissed",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],bH.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.E([_.Kc("yt-service-request-sent-button-renderer"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],bH.prototype,"dismissibleItemOnRequestSent",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bH.prototype,"dataChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],bH);
_.W(bH,"ytd-mini-game-card-view-model",function(){if(oiY!==void 0)return oiY;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return oiY=A},{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var c5M;var zCL;var f8=function(){return _.bh.apply(this,arguments)||this};
_.O(f8,_.bh);f8.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
f8.prototype.getContinuationUrl=function(A){var Q={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(Q.itct=this.data.clickTrackingParams);return _.$Q(A,Q)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],f8.prototype,"data",void 0);_.E([_.Ec({is:"yt-reload-continuation",noInjection:!0})],f8);var w49;var uXr;var au=function(){var A=_.q.apply(this,arguments)||this;A.notificationData={};return A};
_.O(au,_.q);_.d=au.prototype;_.d.isMenuExpanded=function(A){return A&&A.length<=1?"undefined":"false"};
_.d.dataChanged_=function(){this.selected=void 0;var A=this.computeSelectedIndex_(this.data);A>=0&&(this.selected=A);A=this.data&&this.data.length>1;_.Pj(this.hostElement,"has-items",A);_.Bj(this.hostElement).querySelector("#label").tabIndex=A?0:-1};
_.d.onDropdownOpen=function(){var A=_.WR();if(this.parentTrackingParams&&this.data){var Q=_.t8(this.parentTrackingParams);this.data.forEach(function(b){A&&Q&&b.trackingParams&&(b=_.t8(b.trackingParams),_.ui(A,Q,b),_.Y_(A,[b]))})}else this.parentTrackingParams||_.Wv(new _.IO("No parent tracking params passed in for yt-dropdown-menu."))};
_.d.hasNotification=function(A){var Q;if(A.targetId&&((Q=this.notificationData)==null?0:Q.targetId)){var b;return A.targetId===((b=this.notificationData)==null?void 0:b.targetId)}};
_.d.computeSelectedIndex_=function(A){if(A)for(var Q=0,b=A.length;Q<b;Q++)if(A[Q].selected)return Q;return-1};
_.d.computeLabel_=function(A){return this.data&&A!=void 0?this.data[A].title:""};
_.d.computeShowIcon_=function(A,Q){return!Q&&!!A};
_.d.computeVerticalOffset_=function(A){return A?36:0};
_.d.computeEndpoint_=function(A){return A.endpoint||A.navigationEndpoint};
_.d.onLabelClick_=function(A){this.data&&this.data.length<=1?A.stopPropagation():this.menuExpanded="true"};
_.d.onIronActivate_=function(A){A=A.detail.item;var Q=_.Bj(this.hostElement).querySelector("#repeat").itemForElement(A);if(Q&&Q.trackingParams){var b=_.WR(),f=_.t8(Q.trackingParams);b&&_.$_(b,f)}if(Q&&Q.serviceEndpoint)_.K("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(Q.serviceEndpoint):_.X5(this.hostElement,[Q.serviceEndpoint]),_.Bn(this.hostElement,"yt-playlist-reloading");else a:{if((Q=A.querySelector("yt-supported-renderers"))&&
(Q=Q.rendererElement)&&Q.is=="yt-reload-continuation"){Q.trigger();break a}(A=A.querySelector("yt-reload-continuation"))&&A.trigger()}};
_.d.onTap_=function(A){A.preventDefault()};
_.d.onItemTap_=function(A){this.ytEndpointBehavior.onEndpointTap_(A)};
_.d.onLinkFocus_=function(A){try{var Q=A.target}catch(f){}if(Q){var b=Q.querySelector("tp-yt-paper-item");b&&_.Yl(this,"focus",function(){b.focus()})}};
_.d.onMenuClose_=function(){this.menuExpanded="false"};
_.d.isLabelIconActive_=function(A){return A==="true"};
_.d.computeHasSubtitle_=function(A){return!!A};
_.d.computeHrefForItem_=function(A){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(A))};
_.d.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
_.Qr.Object.defineProperties(au.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
au.prototype.onMenuClose_=au.prototype.onMenuClose_;au.prototype.onTap_=au.prototype.onTap_;au.prototype.onIronActivate_=au.prototype.onIronActivate_;au.prototype.onDropdownOpen=au.prototype.onDropdownOpen;au.prototype.dataChanged_=au.prototype.dataChanged_;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],au.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.kZ.YtEndpointBehavior),_.c("design:type",Object)],au.prototype,"ytEndpointBehavior",void 0);
_.E([_.C(),_.c("design:type",Array)],au.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],au.prototype,"parentTrackingParams",void 0);_.E([_.C(),_.c("design:type",Object)],au.prototype,"selected",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],au.prototype,"useLabel",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],au.prototype,"useComputedAriaLabel",void 0);_.E([_.C(),_.c("design:type",String)],au.prototype,"icon",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],au.prototype,"iconLabel",void 0);_.E([_.C(),_.c("design:type",String)],au.prototype,"ariaLabel",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],au.prototype,"disabled",void 0);_.E([_.C({computed:"isMenuExpanded(data)"}),_.c("design:type",String)],au.prototype,"menuExpanded",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],au.prototype,"closeOnActivate",void 0);
_.E([_.C({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.c("design:type",Boolean)],au.prototype,"modernButtons",void 0);_.E([_.C(),_.c("design:type",Object)],au.prototype,"notificationData",void 0);_.E([_.H("ariaLabel, selected"),_.C(),_.c("design:type",String),_.c("design:paramtypes",[])],au.prototype,"computedAriaLabel",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],au.prototype,"dataChanged_",null);
_.E([_.Kc("paper-dropdown-open"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],au.prototype,"onDropdownOpen",null);_.E([_.Kc("iron-activate"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],au.prototype,"onIronActivate_",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],au.prototype,"onTap_",null);
_.E([_.Kc("iron-overlay-closed"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],au.prototype,"onMenuClose_",null);_.E([_.Ec({is:"yt-dropdown-menu",disableElementRegistration:!0})],au);
_.W(au,"yt-dropdown-menu",function(){if(uXr===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;w49===void 0&&(w49=document.createElement("template"));var f=w49;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);uXr=A}A=uXr;return A},{mode:2});var TB=function(){var A=_.q.apply(this,arguments)||this;A.hasNotification=!1;return A};
_.O(TB,_.q);TB.prototype.computeId=function(A){return A};
TB.prototype.computeHorizontalAlign=function(A){return A?"right":"left"};
TB.prototype.computeAccessibilityLabel=function(A){var Q,b;return((Q=A.accessibility)==null?void 0:(b=Q.accessibilityData)==null?void 0:b.label)||null};
TB.prototype.notificationDataChanged=function(){var A;this.hasNotification=!!this.notificationData&&!((A=this.data)==null?0:A.icon)};
TB.prototype.notificationDataChanged=TB.prototype.notificationDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.yn.YtLiveChatTooltipTargetingBehavior),_.c("design:type",Object)],TB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],TB.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.c("design:type",String)],TB.prototype,"id",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],TB.prototype,"isRightAligned",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],TB.prototype,"disabled",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],TB.prototype,"closeOnActivate",void 0);_.E([_.C(),_.c("design:type",Object)],TB.prototype,"notificationData",void 0);_.E([_.C(),_.c("design:type",Object)],TB.prototype,"hasNotification",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],TB.prototype,"useComputedAriaLabel",void 0);_.E([_.iN("notificationData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],TB.prototype,"notificationDataChanged",null);_.E([_.Ec({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],TB);
_.W(TB,"yt-sort-filter-sub-menu-renderer",function(){if(zCL===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;c5M===void 0&&(c5M=document.createElement("template"));var f=c5M;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);zCL=A}A=zCL;return A},{mode:2});var Z5y=_.ko(C5W);_.dK(C5W);_.pE(Z5y,"place-data-view-model",{props:{data:_.Qf}});var y5$=new _.TS("INLINE_PLAYBACK_HOOK_TOKEN");var YFW=function(A){this.setActiveSlideIndex=A;this.jobIds=[];this.isSlideshowPlaying=!1},NJv=function(A,Q){A.isSlideshowPlaying||(A.isSlideshowPlaying=!0,DwW(A),$wp(A,Q,0))},DwW=function(A){_.LE(_.j7,function(){A.setActiveSlideIndex(0)},1)},$wp=function(A,Q,b){A.jobIds.push(_.LE(_.j7,function(){var f=b<Q-1?b+1:0;
A.setActiveSlideIndex(f);$wp(A,Q,f)},1800))};var s2L=new _.TS("IMAGE_ON_LOAD_HANDLER_TOKEN");var mw9=_.aP(function(A){return _.X("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.X(_.S,{cond:function(){var Q;return(Q=A.data())==null?void 0:Q.thumbnail},
then:function(Q){return _.X(_.aY,{data:Q,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"pa");_.Ai9=_.aP(function(A){var Q=A.data;var b=A.lockupExperiments;A={};return _.X("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.X("div",{class:_.O4("ytThumbnailOverlayButtonViewModelButton",(A.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var f;return b&&((f=b())==null?void 0:f.useLegacySizedIconButton)},A))},_.X(_.WL,{data:function(){return Q().overlayButton}},{buttonViewModel:function(f){return _.X(_.J9,{data:f.data,
buttonOverrides:function(){var a;return b&&((a=b())==null?0:a.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0}:void 0}})}})))},"qa");
_.Ai9.idomCompat=!0;var Q6j=_.aP(function(A){return _.X("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.IY(function(Q){Q.preventDefault();return!1})},_.X(_.WL,{data:function(){return A.data().buttons}},{toggleButtonViewModel:function(Q){return _.X("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.X(_.eq,{data:Q.data}))}}))},"ra");
Q6j.idomCompat=!0;var bgx=_.aP(function(A){var Q=function(){var b;return((b=_.V(A.data().rendererContext,_.HV))==null?void 0:b.label)||""};
return _.X("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.X(_.S,{cond:function(){return A.data().image},
then:function(){return _.X("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.X(_.aY,{data:function(){return A.data().image},
alt:Q}))}}),_.X(_.S,{cond:function(){return A.data().text},
then:function(){return _.X("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return A.data().text})}}))},"sa");_.dq=_.aP(function(A){var Q=[],b=function(){var l,J;return ZRy((l=A.width)==null?void 0:l.call(A),(J=A.height)==null?void 0:J.call(A))},f=_.fJ().resolve(_.bu(s2L)),a=_.st("yt-thumbnail-view-model",function(){Q.push("elRef.value set");
var l;(l=A.playbackRef)==null||l.call(A,{thumbnailElRef:a,thumbnail:A.data().image,thumbnailOverlays:A.data().overlays,thumbnailSize:b()})});
_.tz(function(){Q.push("onInit");_.Cz(function(){Q.push("onCleanup")})});
var T=_.Zc(oiy),G=function(){var l,J;return(J=(l=A.aspectRatio)==null?void 0:l.call(A))!=null?J:0},p=function(){return(A.data().image?_.pcW(A.data().image):G())<=1&&G()===0},P=function(){return p()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},U=function(){a.value||_.Wv(new _.IO("Thumbnail elRef.value is null",Q.join("\n")));
f&&a.value&&f(a.value)},L=function(){var l,J;
return((l=A.hovered)==null?void 0:l.call(A))&&b()!=="large"&&((J=A.data().overlays)==null?void 0:J.some(function(n){return _.V(n,w3x)}))},M={};
return _.X("yt-thumbnail-view-model",{class:_.O4("yt-thumbnail-view-model",A.className,function(){return j2e(G())},function(){var l,J;
a:{var n=b(),t=(l=A.disableRounding)==null?void 0:l.call(A);l=(J=A.isClip)==null?void 0:J.call(A);if(!t&&!l)switch(n){case "large":J="yt-thumbnail-view-model--large";break a;case "small":J="yt-thumbnail-view-model--small";break a;default:J="yt-thumbnail-view-model--medium";break a}J=void 0}return J},(M["yt-thumbnail-view-model--cinematic"]=p,M)),
style:_.qM({"background-color":function(){var l,J=p()?(l=A.data().backgroundColor)==null?void 0:l.lightTheme:void 0;return J?uB(J,"1"):void 0}}),
el:a},_.X(_.S,{cond:p,then:function(){return _.X("div",{class:"yt-thumbnail-view-model__blurred-image"},_.X(_.aY,{data:function(){return A.data().image},
alt:"",contentMode:P,targetWidth:A.width,onload:U}))}}),_.X("div",{class:"yt-thumbnail-view-model__image"},_.X(_.aY,{data:function(){return A.data().image},
alt:"",contentMode:P,targetWidth:A.width,onload:U}),null),_.X(_.WL,{data:function(){return L()?void 0:A.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:p4v,thumbnailOverlayBadgeViewModel:function(l){return _.X(P5Y,{data:l.data,thumbnailSize:b,isClip:A.isClip})},
thumbnailBottomOverlayViewModel:function(l){return _.X(dw$,{data:l.data,thumbnailSize:b,isClip:A.isClip})},
thumbnailOverlayFullViewModel:bgx,thumbnailOverlayButtonViewModel:function(l){return _.X(_.Ai9,{data:l.data,lockupExperiments:A.lockupExperiments})}}),_.X(_.WL,{data:function(){var l;
return((l=A.hovered)==null?0:l.call(A))?A.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(l){return _.X(hS,{data:l.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Q6j}),_.X(_.WL,{data:function(){var l;return((l=A.hovered)==null?0:l.call(A))&&T()?A.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:mw9}),_.X(_.S,{cond:A.isClip,then:function(){return _.X("div",{class:"yt-pinking"},_.X("svg",{class:"yt-pinking__pinking-left"},_.X("defs",null,_.X("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.X("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.X("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.X("svg",{class:"yt-pinking__pinking-right"},_.X("defs",null,_.X("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.X("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.X("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ta");
_.dq.idomCompat={callbacks:{playbackRef:!0}};var fYL=_.aP(function(A){var Q=_.F(_.pz(-1,void 0,"IOLZ0b")),b=Q.next().value,f=Q.next().value;_.tz(function(){var a=new YFW(f);NJv(a,A.data().thumbnails.length);_.Cz(function(){if(a.isSlideshowPlaying){a.isSlideshowPlaying=!1;for(var T=a.jobIds,G=0,p=T.length;G<p;G++)_.j7.cancelJob(T[G]);a.jobIds.length=0}})});
return _.X("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.X(_.WL,{data:function(){return A.data().thumbnails}},{thumbnailViewModel:function(a,T){return _.X("div",{class:function(){var G=!A.data().primaryThumbnail,p=T(),P=b(),U=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
G&&p===0&&U.push("yt-collection-thumbnail-slideshow--first-slide");p<=P&&U.push("yt-collection-thumbnail-slideshow--show-slide");return U.join(" ")}},_.X(_.dq,{data:a.data,
disableRounding:A.disableRounding}))}}))},"ua");
fYL.idomCompat=!0;var RCA=new _.TS("DWELL_DETECTOR_REGISTRY_TOKEN");var Tgv=_.aP(function(A){var Q=giF(A.triggeringElement),b=function(){return!!A.data().primaryThumbnail},f=function(){var T,G=(T=A.data())==null?void 0:T.maxHeight,p;
T=(p=A.maxHeight)==null?void 0:p.call(A);return G!=null&&T!=null?Math.min(G,T):T!=null?T:G},a=function(){var T=f();
if(T){var G;if(b()&&(G=A.includeStackHeight)!=null&&G.call(A)){var p;G=((p=A.doubleStack)==null?0:p.call(A))?8:4}else G=0;T=T-G-1;if(!(T<0)){p=Math;G=p.ceil;var P,U;var L=uyf((U=(P=A.aspectRatio)==null?void 0:P.call(A))!=null?U:0);return G.call(p,T*L)}}};
return _.X("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.qM({height:function(){return f()?f()+"px":void 0},
width:function(){return a()?a()+"px":void 0}})},_.X(aYY,{stackEnabled:b,
thumbnailSize:function(){var T,G;return ZRy((T=A.width)==null?void 0:T.call(A),(G=A.height)==null?void 0:G.call(A))},
doubleStack:A.doubleStack,stackColor:function(){return A.data().stackColor},
includeStackHeight:A.includeStackHeight},_.X(_.WL,{data:function(){return A.data().primaryThumbnail}},{thumbnailViewModel:function(T){var G={};
return _.X(_.dq,{data:T.data,width:A.width,height:A.height,aspectRatio:A.aspectRatio,disableRounding:A.disableRounding,className:_.O4((G["yt-collection-thumbnail-view-model--has-stacks"]=b,G)),hovered:A.hovered,playbackRef:A.playbackRef})}}),_.X(_.S,{cond:function(){var T;
return Q()&&((T=A.data().thumbnails)==null?void 0:T.length)},
then:function(){return _.X("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.X(fYL,{data:A.data,disableRounding:function(){return!b()}}))}})))},"va");
Tgv.idomCompat={callbacks:{playbackRef:!0}};
var aYY=_.aP(function(A){var Q=A.children;var b=A.stackEnabled;var f=A.thumbnailSize;var a=A.doubleStack;var T=A.stackColor;var G=A.includeStackHeight;var p,P=(p=_.fJ().resolve(_.bu(_.Af)))==null?void 0:p();return _.X(_.S,{cond:b,then:function(){return _.X(eqK,{data:function(){var U,L;return{experimentEnabled:!0,thumbnailSize:f(),doubleStack:a==null?void 0:a(),color:P?T==null?void 0:(U=T())==null?void 0:U.darkTheme:T==null?void 0:(L=T())==null?void 0:L.lightTheme,enableResponsiveMode:!1,includeStackHeight:G==
null?void 0:G()}}},Q)},
else:function(){return Q}})},"wa");var dU9=new _.TS("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var GB;_.Fb={calledOnce:!0,state:"visible"};GB={calledOnce:!0,state:"hidden"};_.BK=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;var f=A.className;var a=A.delayedClassName;var T=A.animationEntityKey;var G=A.isCompactWidth;A=_.F(_.pz(!1,void 0,"aSkCmb"));var p=A.next().value,P=A.next().value,U=_.Q0(T,""),L=_.I$(qWA,U),M=function(){var Ob,I9;return(I9=(Ob=L())==null?void 0:Ob.value)!=null?I9:!1},l=function(){_.A8(_.HL("booleanEntity",U(),{key:U(),
value:!0}));w=void 0};
T=_.F(_.CE(M));var J=T.next().value,n=T.next().value;T=_.F(_.CE(M));var t=T.next().value,g=T.next().value;T=_.F(_.CE(function(){var Ob;return M()?(Ob=Q().styleTransitionConfig)==null?void 0:Ob.destinationStyle:void 0}));
var e=T.next().value,x=T.next().value,D=function(){var Ob=Object.assign({},Q(),e()&&{style:e()});var I9,iy,wW=Ob.label,h4=(I9=Ob.interaction)==null?void 0:(iy=I9.accessibility)==null?void 0:iy.label;I9=Ob.iconImage?Ob.label&&Ob.label.content?Ob.iconLeading?"leading":"trailing":"icon-only":void 0;Ob={formattedButtonText:wW,accessibilityLabel:h4,style:viW(Ob.style),type:Eie(Ob.style),state:"active",size:WeU(Ob.size),iconPosition:I9,disabled:!1,aTagConfig:hCy(Ob,b)};_.K("enable_desktop_vdcbg_components")&&
(Ob.focused=p());return Ob},w;
T=_.T9({visibilityCallback:function(Ob){var I9,iy=(I9=Q().interaction)==null?void 0:I9.onFirstVisible;Ob&&iy&&_.D3(iy)},
showOption:_.Fb});var u=function(){return tf(D(),!!Q().iconImage)};
A={};f=_.O4(function(){return"ytwAdButtonViewModelHost"},function(){return Q().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Ob=!!Q().delayedAppearanceConfig,I9=J();
return Ob?I9?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Ob=!!Q().delayedAppearanceConfig,I9=t();
return Ob?I9?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!Q().delayedAppearanceConfig||J()?a==null?void 0:a():""},(A.ytwAdButtonViewModelHostCompactWidth=function(){return G==null?void 0:G()},A),f!=null?f:"");
var y=function(){var Ob,I9=(Ob=Q().delayedAppearanceConfig)==null?void 0:Ob.delayedInvisibleSeconds;I9&&(w=_.o$(_.j7,function(){n(!0);a9()},I9*1E3))},a9=function(){var Ob,I9=(Ob=Q().delayedAppearanceConfig)==null?void 0:Ob.delayedVisibleSeconds;
I9&&(w=_.o$(_.j7,function(){g(!0);pF()},I9*1E3))},pF=function(){var Ob,I9=(Ob=Q().styleTransitionConfig)==null?void 0:Ob.styleTransitionSeconds,iy,wW=(iy=Q().styleTransitionConfig)==null?void 0:iy.destinationStyle;
I9&&wW?w=_.o$(_.j7,function(){x(wW);l()},I9*1E3):l()},Ub=function(){var Ob;
return(Ob=Q().delayedAppearanceConfig)==null?void 0:Ob.transitionDurationSeconds};
_.tz(function(){y()});
_.Cz(function(){w&&_.j7.cancelJob(w)});
return _.X("ad-button-view-model",{"on:focusin":_.IY(_.K("enable_desktop_vdcbg_components")?function(){var Ob=_.fJ().resolve(_.bu(_.L3));Ob&&P(Ob.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.IY(_.K("enable_desktop_vdcbg_components")?function(){P(!1);return!1}:void 0),
class:f,el:_.d_(T),style:_.qM({"transition-duration":function(){return Ub()?Ub()+"s":void 0}})},_.X(_.S,{cond:D,
then:function(){return _.X(_.K3,{data:D,icon:function(){return _.X(_.S,{cond:function(){return Q().iconImage},
then:function(Ob){return _.X(_.aY,{data:Ob,alt:"",targetWidth:u,targetHeight:u,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"xa");var FuN=_.aP(function(A){var Q=A.data;A=_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb});var b={};return _.X("ad-button-group-view-model",{class:_.O4("ytwAdButtonGroupViewModelHost",(b.ytwAdButtonGroupViewModelHostCompactWidth=function(){return Q().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},b)),
el:_.d_(A)},_.X("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.X(_.WL,{data:function(){return Q().secondaryAdButton}},{adButtonViewModel:function(f){return _.X(_.BK,{data:f.data})}})),_.X("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.X(_.WL,{data:function(){return Q().primaryAdButton}},{adButtonViewModel:function(f){return _.X(_.BK,{data:f.data})}})))},"ya");var GwW=_.aP(function(A){var Q=function(){var b;return((b=A.data())==null?void 0:b.answers)||[]};
return _.X("yt-survey-icons",{class:"ytSurveyIconsHost"},_.X("div",{class:"ytSurveyIconsHeader"},_.X("div",{class:"ytSurveyIconsTitle"},function(){var b;return(b=A.data())==null?void 0:b.text}),_.X("div",null,_.X(_.K3,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var b;(b=A.onDismiss)==null||b.call(A)}}},
iconName:"DISMISSAL"}))),_.X("div",null,_.X("div",{class:"ytSurveyIconsAnswers"},_.X(_.Op,{each:function(){return Q()},
keyBy:"INDEX"},function(b,f){return _.X("div",null,_.X(_.K3,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var a;(a=A.onSelect)==null||a.call(A,b(),f)}}},
icon:function(){return _.X(_.oY,{icon:function(){var a,T;return(a=b())==null?void 0:(T=a.icon)==null?void 0:T.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.X("div",{class:"ytSurveyIconsAnswersText"},_.X("div",null,function(){return Q().length?Q()[0].text:""}),_.X("div",null,function(){return Q().length?Q()[Q().length-1].text:""}))))},"za");var Bg9=_.aP(function(A){var Q=_.d_(_.Zb(function(){var P;return(P=A.data())==null?void 0:P.rendererContext},void 0,void 0,void 0,!0)),b=_.F(_.pz(!1,void 0,"YxWRNc")),f=b.next().value,a=b.next().value,T=_.I$(Hj4,function(){var P;
return(P=A.data().keys)==null?void 0:P.surveyEntityKey}),G=_.I$(CW4,function(){var P;
return(P=A.data().keys)==null?void 0:P.surveyStateEntityKey});
_.N3("ytd-slimline-survey-show-action",function(){a(!1)});
var p=function(){var P,U;var L=(P=G())==null?void 0:(U=P.questionStack)==null?void 0:U[0];if(L!==void 0){var M,l;return(M=T())==null?void 0:(l=M.questions)==null?void 0:l[L]}};
b={};return _.X("yt-slimline-survey-view-model",{el:Q,class:_.O4("ytSlimlineSurveyViewModelHost",(b.ytSlimlineSurveyViewModelCollapsed=function(){return f()},b))},_.X("div",{class:"ytSlimlineSurveyViewModelContainer"},_.X(_.S,{cond:function(){var P;
return((P=p())==null?void 0:P.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.X(GwW,{data:function(){return p()},
onSelect:function(P,U){var L,M;return _.B(function(l){a(!0);if(M=(L=A.data())==null?void 0:L.onSelectRating)_.D3(M),_.A8(pK9(U));_.Oi(l)})},
onDismiss:function(){a(!0);var P;var U=(P=T())==null?void 0:P.dismissalFeedbackToken;P=U?{feedbackEndpoint:{feedbackToken:U}}:void 0;P&&_.Z3(P,{form:{element:Q.value}})}})}})))},"Aa");var pN$=_.aP(function(A){return _.X("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.X(_.WL,{data:function(){var Q;return(Q=A.data())==null?void 0:Q.attachments}},{flexibleActionsViewModel:function(Q){return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.X(N0j,{data:Q.data,
layout:function(){var b;return((b=A.lockupStyle())==null?void 0:b.arrangement)===1?0:1},
justifyContentOverride:function(){var b;return((b=A.lockupStyle())==null?void 0:b.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(Q){return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.X(Bg9,{data:Q.data}))},
expandableMetadataViewModel:function(Q){Q=Q.data;var b;return _.X("div",{class:_.O4("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(b=_.fJ().resolve(_.bu(dU9)))==null?void 0:b({data:Q}))},
adButtonGroupViewModel:function(Q){return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.X(FuN,{data:Q.data}))},
adButtonViewModel:function(Q){return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.X(_.BK,{data:Q.data,isCompactWidth:!0}))}}))},"Ba");var Z59=_.GP("rich_grid_min_item_width",310),w4W=_.GP("rich_grid_max_item_width",500);var P2$=_.aP(function(A){var Q=A.data;return _.X("br-nz-badge-shape",{class:_.O4(function(){return AiW(Q().brNzRatingBadgeType)}),
role:function(){return Q().accessibilityText?"img":void 0},
"aria-label":function(){return Q().accessibilityText}},function(){var b;
return(b=Q())==null?void 0:b.text})},"Ca");_.Xb=_.aP(function(A){var Q=function(){var b=A.data(),f,a;if(b){var T=!((f=A.workaroundShortsIsThumbnailBadge)==null||!f.call(A));f=(a=A.modern)==null?void 0:a.call(A);a:switch(b.badgeStyle){case "BADGE_OVERLAY":a=!0;break a;default:a=!1}b={type:T?17:Q6J(b.badgeStyle),brNzRatingBadgeType:bgf(b.badgeStyle),text:b.badgeText,icon:b.iconName,isOverlay:a,modern:f||_.K("web_modern_badge_view_model"),accessibilityText:b.accessibilityLabel}}else b=void 0;return b};
return _.X("yt-badge-view-model",{class:_.O4("yt-badge-view-model-wiz",A.class)},_.X(_.I8,null,_.X(_.nH,{when:function(){var b;return!((b=Q())==null||!b.brNzRatingBadgeType)}},function(){return _.X(P2$,{data:function(){return Q()}})}),_.X(_.nH,{when:function(){return!!Q()&&!Q().brNzRatingBadgeType}},function(){return _.X(_.cF,{data:function(){return Q()}})})))},"Da");
_.Xb.idomCompat=!0;var aYy,fYi;aYy=16/9;fYi=2/3;_.Sv=_.aP(function(A){var Q=A.data;var b=A.className;var f=A.imageSizeConfig;var a=A.notifyOnLoaded;var T=function(){return Q().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},G=function(){var l;
return _.uJ((l=Q())==null?void 0:l.rendererContext)};
A={};A=(A["yt-content-preview-image-view-model-wiz"]=!0,A["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return T()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},A["yt-content-preview-image-view-model-wiz--tappable"]=function(){return G()},A);
var p=function(){var l,J;return(J=(l=_.V(Q().rendererContext,_.HV))==null?void 0:l.label)!=null?J:""},P=function(){return dUW(Q())},U=function(){var l=Tg4(T(),Q().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",f==null?void 0:f(),Fu6(P()),Q().layoutWidth,Q().layoutHeight),J=Object.assign({},l);
l.width&&(J.width=Math.round(l.width));l.height&&(J.height=Math.round(l.height));l.maxWidth&&(J.maxWidth=Math.round(l.maxWidth));l.maxHeight&&(J.maxHeight=Math.round(l.maxHeight));return J},L=_.Lz(function(){return U().height},void 0,"Cn10Ce"),M=_.Lz(function(){return U().width},void 0,"laoove");
return _.X("yt-content-preview-image-view-model",{el:_.d_(_.Zb(function(){var l;return(l=Q())==null?void 0:l.rendererContext})),
role:function(){return G()?"link":void 0},
tabindex:function(){return G()?0:void 0},
class:_.O4(b,A,function(){var l=T();var J=f==null?void 0:f();l=l==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||l==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(J==null?void 0:J.size)!=null&&J.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(J==null?void 0:J.size)!=null&&J.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return l}),
style:function(){var l=U(),J=[];l.width&&J.push("width: "+l.width+"px");l.height&&J.push("height: "+l.height+"px");l.maxWidth&&J.push("max-width: "+l.maxWidth+"px");l.maxHeight&&J.push("max-height: "+l.maxHeight+"px");l.fullWidth&&J.push("width: 100%");return J.join(";")}},_.X(_.S,{cond:P,
then:function(l){return _.X(_.aY,{data:l,alt:p,"data-disabled$":function(){return!p()},
notifyOnLoaded:a,targetWidth:M,targetHeight:L,preserveWidth:function(){return!!M()},
preserveHeight:function(){return!!L()}})}}),_.X(_.WL,{data:function(){var l;
return(l=Q())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:hS,
thumbnailOverlayButtonViewModel:_.Ai9}))},"Ea");
_.Sv.idomCompat=!0;var SuY=_.aP(function(A){var Q=A.data;var b=A.className;var f=A.useSmallLayout;A=A.useMediumText;var a={};A=(a["yt-attribution-view-model-wiz"]=!0,a["yt-attribution-view-model-wiz--medium-text"]=A,a);return _.X("yt-attribution-view-model",{el:_.d_(_.Zb(function(){var T;return(T=Q())==null?void 0:T.rendererContext})),
class:_.O4(b,A)},_.X(_.S,{cond:function(){return _.uJ(Q().rendererContext)},
then:function(){return _.X("button",{class:"yt-attribution-view-model-wiz--tappable"},_.X(XNv,{data:Q,useSmallLayout:f}))},
else:function(){return _.X(XNv,{data:Q,useSmallLayout:f})}}))},"Fa"),XNv=_.aP(function(A){var Q=A.data;
var b=A.useSmallLayout;var f=function(){return{size:(b==null?0:b())?16:24}};
return _.X(_.bd,null,_.X(_.WL,{data:function(){return Q().contentPreviewImage}},{contentPreviewImageViewModel:function(a){return _.X(_.Sv,{data:a.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:f})}}),_.X(_.WL,{data:function(){return Q().badge}},{badgeViewModel:function(a){return _.X(_.Xb,{data:a.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.X(_.S,{cond:function(){return Q().text},
then:function(){return _.X(_.Rb,{text:function(){return Q().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.X(_.S,{cond:function(){return Q().suffix},
then:function(){return _.X(_.Rb,{text:function(){return Q().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ga");
SuY.idomCompat=!0;var UUr,LuK,Mhy,lYL,Kup;UUr=_.aP(function(A){var Q=A.delimiter;var b=A.max;var f=A.index;var a=A.isStandalone;return _.X(_.S,{cond:function(){return b()-1>f()},
then:function(){var T={};return _.X("span",{class:_.O4("yt-content-metadata-view-model-wiz__delimiter",(T["yt-content-metadata-view-model-wiz__delimiter--standalone"]=a,T)),"aria-hidden":!0},Q)}})},"Ha");
LuK=_.aP(function(A){var Q=A.metadataPart;var b=A.maxLines;return _.X(_.Rb,{text:function(){return Q().text},
linkInheritColor:!0,className:function(){return GwA(b())},
userInput:!0})},"Ia");
Mhy=_.aP(function(A){var Q=A.metadataPart;var b=A.maxLines;return _.X(_.S,{cond:function(){return Q().tooltip},
then:function(f){return _.X("span",{title:f,role:"tooltip"},_.X(LuK,{metadataPart:Q,maxLines:b}))},
else:function(){return _.X(LuK,{metadataPart:Q,maxLines:b})}})},"Ja");
lYL=_.aP(function(A){var Q=A.metadataPart;var b=A.isOverlay;var f=A.useMediumText;var a=A.hideAvatar;var T=function(){return Q().maxLines!==void 0?Q().maxLines:1};
return _.X(_.bd,null,_.X(_.WL,{data:function(){return Q().avatarStack}},{avatarStackViewModel:function(G){return _.X(_.xK,{data:G.data,
isOverlay:b,useMediumText:f,hideAvatar:a})},
badgeViewModel:_.Xb}),_.X(_.S,{cond:function(){return Q().leadingIcon},
then:function(G){return _.X(_.oY,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return G().name},
size:function(){return G().width}})}}),_.X(_.S,{cond:function(){return Q().text},
then:function(){return _.X(Mhy,{metadataPart:Q,maxLines:T})}}),_.X(_.S,{cond:function(){return Q().icon},
then:function(G){return _.X(_.oY,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return G().name},
size:function(){return G().width}})}}))},"Ka");
Kup=_.aP(function(A){var Q=A.metadataRow;var b=A.isInline;var f=A.delimiter;var a=A.isOverlay;var T=A.useMediumText;var G=A.extensions;var p=function(){var U,L=G==null?void 0:(U=G())==null?void 0:U.lockupMetadata;U=Q();var M,l;return!!((L==null?0:(M=L.byline)==null?0:M.hideAvatar)&&((l=_.V(U,eGY))==null?void 0:l.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},P=function(){return Q().metadataParts||[]};
A={};return _.X("div",{class:_.O4("yt-content-metadata-view-model-wiz__metadata-row",(A["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=b,A["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var U,L=G==null?void 0:(U=G())==null?void 0:U.lockupMetadata;U=Q();var M,l;return!!((L==null?0:(M=L.byline)==null?0:M.addPadding)&&((l=_.V(U,eGY))==null?void 0:l.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},A["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var U;
return!!(G==null?0:(U=G())==null?0:U.lockupMetadata)&&Q().badges&&!Q().metadataParts},A))},_.X(_.WL,{data:function(){return Q().badges}},{badgeViewModel:function(U){return _.X("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.X(_.Xb,{data:U.data}))}}),_.X(_.Op,{each:P},function(U,L){return _.X(_.bd,null,_.X(lYL,{metadataPart:U,
isOverlay:a,useMediumText:T,hideAvatar:p}),_.X(UUr,{delimiter:f,max:function(){return P().length},
index:L,isStandalone:!1}))}),_.X(_.S,{cond:function(){return Q().isSpacerRow&&!b()},
then:function(){return _.X("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"La");
_.UM=_.aP(function(A){A=_.be(A,{layout:0,isOverlay:!1});var Q=A.data,b=A.layout,f=A.isOverlay,a=A.useMediumText,T=A.extensions,G=function(){return b()===0},p=function(){var U;
return((U=Q().metadataRows)==null?void 0:U.filter(function(L){var M,l=T==null?void 0:(M=T())==null?void 0:M.lockupMetadata,J,n;M=!!((l==null?0:(J=l.description)==null?0:J.hideDescription)&&((n=_.V(L,eGY))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var t,g;return!((l==null?0:(t=l.spacer)==null?0:t.hideSpacer)&&((g=_.V(L,eGY))==null?void 0:g.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||M)}))||[]},P={};
return _.X("yt-content-metadata-view-model",{class:_.O4(A.className,"yt-content-metadata-view-model-wiz",(P["yt-content-metadata-view-model-wiz--inline"]=G,P["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.uJ(Q().rendererContext)},P["yt-content-metadata-view-model-wiz--medium-text"]=a,P)),
el:_.d_(_.Zb(function(){return Q().rendererContext}))},_.X(_.Op,{each:p},function(U,L){return _.X(_.bd,null,_.X(Kup,{metadataRow:U,
isInline:G,delimiter:function(){return Q().delimiter},
isOverlay:f,useMediumText:a,extensions:T}),_.X(_.S,{cond:function(){return G()&&!U.isSpacerRow},
then:function(){return _.X(UUr,{delimiter:function(){return Q().delimiter},
max:function(){return p().length},
index:L,isStandalone:!0})}}))}))},"Ma");
_.UM.idomCompat=!0;var ig$=_.aP(function(A){var Q={};return _.X("yt-lockup-metadata-view-model",{class:_.O4("yt-lockup-metadata-view-model-wiz",function(){a:{var b=A.lockupStyle();if(b==null?0:b.isOverlay)b="yt-lockup-metadata-view-model-wiz--overlay";else switch(b==null?void 0:b.arrangement){case 1:b="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:b="yt-lockup-metadata-view-model-wiz--vertical"}}return b},function(){a:{var b=A.lockupStyle();
if(b==null?0:b.isTiny)b="yt-lockup-metadata-view-model-wiz--tiny";else switch(b==null?void 0:b.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":b="yt-lockup-metadata-view-model-wiz--compact";break a;default:b="yt-lockup-metadata-view-model-wiz--standard"}}return b},(Q["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var b;
return(b=A.lockupStyle())==null?void 0:b.isOverlay},Q["yt-lockup-metadata-view-model-wiz--card"]=function(){var b;
return(b=A.lockupStyle())==null?void 0:b.isCard},Q["yt-lockup-metadata-view-model-wiz--centered"]=function(){var b;
return(b=A.lockupStyle())==null?void 0:b.isCentered},Q["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var b;
return(b=A.lockupStyle())==null?void 0:b.typographyBump},Q["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var b;
return(b=A.lockupStyle())==null?void 0:b.useLegacyTypography},Q["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var b;
return(b=A.lockupStyle())==null?void 0:b.useRichGridLegacyTypography},Q))},_.X(_.WL,{data:function(){return A.data().image}},{avatarStackViewModel:function(b){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.X(_.xK,{data:b.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(b){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.X(_.Wm,{data:b.data}))},
decoratedAvatarViewModel:function(b){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.X(_.E9,{data:b.data}))}}),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.X("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var b;return(b=A.data().title)==null?void 0:b.content}},_.X(_.S,{cond:function(){return A.data().title},
then:function(b){return _.X(_.Db,{command:A.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:A.lockupAccessibilityLabel},_.X(_.Rb,{text:b,userInput:!0}))}})),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.X(_.WL,{data:function(){return A.data().metadata}},{contentMetadataViewModel:function(b){return _.X(_.UM,{data:b.data,
layout:1,useMediumText:function(){var f,a;return((f=A.lockupStyle())==null?void 0:f.typographyBump)||((a=A.lockupStyle())==null?void 0:a.useRichGridLegacyTypography)},
extensions:function(){var f,a,T,G;return{lockupMetadata:{byline:{hideAvatar:((f=A.lockupStyle())==null?void 0:f.arrangement)===0,addPadding:((a=A.lockupStyle())==null?void 0:a.arrangement)===1},description:{hideDescription:!((T=A.lockupStyle())==null||!T.compactMetadata)},spacer:{hideSpacer:!((G=A.lockupStyle())==null||!G.compactMetadata)}}}}})}})),_.X(_.WL,{data:function(){return A.data().attribution}},{attributionViewModel:function(b){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.X(SuY,{data:b.data,
useSmallLayout:!0}))}})),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.X(_.WL,{data:function(){return A.data().menuButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
buttonOverrides:function(){var f;return((f=A.lockupStyle())==null?0:f.isOverlay)?{style:"overlay"}:void 0}})}})))},"Na");
ig$.idomCompat=!0;var JiM=_.aP(function(A){var Q=_.st("notification-multi-action-renderer");_.CH(function(){requestAnimationFrame(function(){_.Ng(Q.value)})});
var b={},f={},a={};return _.X("notification-multi-action-renderer",{class:_.O4("ytNotificationMultiActionRendererHost",(b.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var T;return(T=A.useLegacyShelfStyle)==null?void 0:T.call(A)},b)),
el:Q},_.X("span",{"aria-live":"polite",class:_.O4("ytNotificationMultiActionRendererTextContainer",(f.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var T;return(T=A.useLegacyShelfStyle)==null?void 0:T.call(A)},f))},_.X(_.Rb,{text:function(){return A.data().responseText}})),_.X("div",{class:_.O4("ytNotificationMultiActionRendererButtonContainer",(a.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var T;
return(T=A.useLegacyShelfStyle)==null?void 0:T.call(A)},a))},_.X(_.WL,{data:function(){var T;
return(T=A.data().buttons)==null?void 0:T.map(function(G){if(G=G.buttonRenderer){var p,P=Object,U=P.assign,L=(p=G.icon)==null?void 0:p.iconType;p=(p=G.command||G.serviceEndpoint||G.navigationEndpoint)?{innertubeCommand:p}:void 0;G={buttonViewModel:U.call(P,{},{iconName:L,onTap:p,trackingParams:G.trackingParams,titleFormatted:G.text?_.xz(G.text):void 0},pNF(G))}}else G=void 0;return G}).filter(function(G){return!!G})}},{buttonViewModel:function(T,G){return _.X("div",null,_.X(_.J9,{data:T.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var p;return((p=A.useModernStyles)==null?0:p.call(A))?{type:G()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Oa");var VhW=_.aP(function(A){var Q=_.st("notification-text-renderer");_.CH(function(){requestAnimationFrame(function(){_.Ng(Q.value)})});
return _.X("notification-text-renderer",{el:Q,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.X(_.Rb,{text:function(){return A.data().successResponseText}}))},"Pa");_.L8=_.aP(function(A){var Q=_.I$(zPA,function(){var f;return P2F((f=A.contentId)==null?void 0:f.call(A))}),b=function(){var f;
return _.V((f=Q())==null?void 0:f.command,_.q8)};
return _.X(_.S,{cond:function(){var f;if(!(f=b())){var a;f=_.V((a=Q())==null?void 0:a.command,oEv)}return f},
then:function(){return _.X(_.S,{cond:b,then:function(){var f={};return _.X("div",{class:_.O4("ytDismissibleItemReplacedContent",function(){var a;return XN4((a=A.aspectRatio)==null?void 0:a.call(A))})},_.X("div",{class:_.O4((f.ytDismissibleItemAspectRatioContainer=function(){var a;
return((a=A.aspectRatio)==null?void 0:a.call(A))!==void 0},f))},_.X(_.WL,{data:function(){var a;
return(a=b())==null?void 0:a.item}},{notificationMultiActionRenderer:function(a){return _.X(JiM,{data:a.data,
useModernStyles:A.useModernStyle,useLegacyShelfStyle:A.useLegacyShelfStyle})},
notificationTextRenderer:VhW})))}})},
else:A.children})},"Qa");_.Og1=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;A=_.d_(_.T9({visibilityCallback:function(T){var G,p=(G=Q().interaction)==null?void 0:G.onFirstVisible;T&&p&&_.D3(p)},
showOption:_.Fb}));var f=function(){var T;return((T=Q().interaction)==null?0:T.onTap)?function(G){var p;eCA(G,(p=Q().interaction)==null?void 0:p.onTap,b)}:void 0},a=function(){var T,G=Q(),p=f(),P=(T=_.V(Q().rendererContext,_.HV))==null?void 0:T.label;
a:switch(G.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":T=1;break a;default:T=0}return{size:LuU(G.size),type:T,onTap:p,accessibilityText:P}};
return _.X("ad-avatar-view-model",{class:function(){var T;return((T=Q().interaction)==null?0:T.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:A},_.X(_.S,{cond:function(){return Q().image},
then:function(T){return _.X(BJ$,{data:a,image:T})}}))},"Ra");_.Mo=_.aP(function(A){var Q=_.be(A,{hasDot:!1});A=Object.assign({},Q);var b=Q.data,f=Q.hasDot;Q=Q.customCommandResolver;var a=(delete A.data,delete A.hasDot,delete A.customCommandResolver,A);A=function(){return b().style};
A!==void 0&&A!==null||_.wN(Error("Dh"));A=_.NI(function(){return b().interaction},Q);
return _.X("ad-badge-view-model",{class:_.O4(function(){var T;return((T=b().interaction)==null?0:T.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var T=a.adRenderingContextType();
b();return T==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.d_(A)},_.X(_.cF,{data:function(){var T;b();return{type:2,text:(T=b().label)==null?void 0:T.content,adsIncludeDot:f(),isOverlay:b().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Sa");var nej;_.lH=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;var f=A.adRenderingContextType;return _.X("ad-details-line-view-model",{class:function(){var a;return((a=Q().interaction)==null?0:a.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(a){var T,G=(T=Q().interaction)==null?void 0:T.onFirstVisible;a&&G&&_.D3(G)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},b))},_.X(_.S,{cond:function(){return Q().style},
then:function(a){return _.X(_.Op,{each:function(){var T;return((T=Q())==null?void 0:T.attributes)||[]},
keyBy:"INDEX"},function(T){return _.X(nej,{attribute:T,style:a,adRenderingContextType:function(){return f()}})})}}))},"Ta");
nej=_.aP(function(A){var Q=A.attribute;var b=A.style;var f=A.adRenderingContextType;return _.X(_.S,{cond:function(){return Q().text},
then:function(a){return _.X(_.Rb,{text:a,className:function(){var T=f();b();return T==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ua");var kwL=_.aP(function(A){var Q=A.data;var b=A.typographyBump;var f=function(){return Q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
A={};return _.X(_.bd,null,_.X("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.X(_.Rb,{text:function(){return Q().headline},
className:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return f==null?void 0:f()},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(b==null?void 0:b())&&!(f==null?0:f())},A)),
linkInheritColor:!0}),_.X(_.S,{cond:function(){return Q().description},
then:function(a){var T={};return _.X(_.Rb,{text:a,className:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(T.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return f==null?void 0:f()},T.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(b==null?void 0:b())&&!(f==null?0:f())},T)),
linkInheritColor:!0})}}),_.X(_.S,{cond:function(){return Q().secondaryDescription},
then:function(a){var T={};return _.X(_.Rb,{text:a,className:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(T.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return b==null?void 0:b()},T)),
linkInheritColor:!0})}}),_.X("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.X(_.S,{cond:function(){return Q().adAvatar},
then:function(){return _.X("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.X(_.WL,{data:function(){return Q().adAvatar}},{adAvatarViewModel:_.Og1}))}}),_.X(_.WL,{data:function(){return Q().adBadge}},{adBadgeViewModel:function(a){return _.X(_.Mo,{data:a.data,
hasDot:function(){return!!Q().adDetailsLine},
adRenderingContextType:function(){return Q().adRenderingContextType}})}}),_.X(_.WL,{data:function(){return Q().adDetailsLine}},{adDetailsLineViewModel:function(a){return _.X(_.lH,{data:a.data,
adRenderingContextType:function(){return Q().adRenderingContextType}})}}))),_.X("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.X(_.WL,{data:function(){return Q().menu}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
buttonOverrides:function(){a:switch(Q().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var T="S";break a;default:T="M"}return{size:T}}})}})))},"Va"),IYv=_.aP(function(A){var Q=A.data;
var b=A.noBottomMargin;var f=A.useVideoLockupTopPadding;var a=A.typographyBump;A={};A=_.O4("ytwFeedAdMetadataViewModelHostMetadata",(A.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return b==null?void 0:b()},A.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},A));
var T=function(){return Q().adBadge};
T!==void 0&&T!==null||_.wN(Error("Eh"));T={};var G={};return _.X(_.bd,null,_.X(_.S,{cond:function(){return Q().adAvatar},
then:function(){return _.X("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.X(_.WL,{data:function(){return Q().adAvatar}},{adAvatarViewModel:function(p){return _.X(_.Og1,{data:p.data})}}))}}),_.X("div",{class:A},_.X("div",{class:_.O4("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(T.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return a==null?void 0:a()},T.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(a==
null?void 0:a())&&_.K("web_enable_typography_bump_v2")},T))},_.X(_.Rb,{text:function(){return Q().headline},
linkInheritColor:!0})),_.X(_.S,{cond:function(){return Q().description},
then:function(p){return _.X(_.Rb,{text:p,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.X("div",{class:function(){return Q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.K("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.X(_.WL,{data:function(){return Q().adBadge}},
{adBadgeViewModel:function(p){return _.X(_.Mo,{data:p.data,
hasDot:function(){return!!Q().adDetailsLine},
adRenderingContextType:function(){return Q().adRenderingContextType}})}}),_.X(_.WL,{data:function(){return Q().adDetailsLine}},{adDetailsLineViewModel:function(p){return _.X(_.lH,{data:p.data,
adRenderingContextType:function(){return Q().adRenderingContextType}})}})),_.X(_.S,{cond:function(){return Q().secondaryDescription},
then:function(p){return _.X(_.Rb,{text:p,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.X("div",{class:_.O4("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(G.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},G))},_.X(_.WL,{data:function(){return Q().menu}},{buttonViewModel:_.J9})))},"Wa"),HgM=_.aP(function(A){var Q=A.data;
var b=A.noBottomMargin;var f=A.listenToTapEvent;var a=A.setTouchEndHandler;var T=A.useVideoLockupTopPadding;var G=A.typographyBump;A=_.T9({visibilityCallback:function(M){var l,J=(l=Q().interaction)==null?void 0:l.onFirstVisible;M&&J&&_.D3(J)},
showOption:_.Fb});var p=_.NI(function(){return Q().interaction},void 0,function(){return f==null?void 0:f()}),P=_.F(_.pz(!1,void 0,"p7Js8e")),U=P.next().value,L=P.next().value;
P=_.IY(function(M){(a==null?0:a())&&!U()&&(M.currentTarget.click(),L(!0),setTimeout(function(){L(!1)},100));
return!1});
return _.X("feed-ad-metadata-view-model",{class:function(){var M;return((M=Q().interaction)==null?0:M.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.d_(A,p),"on:touchend":P},_.X(_.I8,null,_.X(_.nH,{when:function(){return Q().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.X(kwL,{data:Q,
typographyBump:G})}),_.X(_.nH,{when:function(){return Q().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.X(IYv,{data:Q,
noBottomMargin:b,useVideoLockupTopPadding:T,typographyBump:G})})))},"Xa");var C2K;_.K8=_.aP(function(A){return _.X("yt-lockup-view-model",{class:_.O4(A.className)},_.X(_.L8,{contentId:function(){return A.data().contentId},
useModernStyle:!0,aspectRatio:function(){var Q,b;return((Q=A.containerType)==null?void 0:Q.call(A))!==3?s2b(A.data().contentType,(b=A.force16By9ThumbnailAspectRatio)==null?void 0:b.call(A)):void 0}},function(){return _.X(C2K,Object.assign({},A))}))},"Ya");
C2K=_.aP(function(A){A=_.be(A,{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 Q=A.data,b=A.containerLayoutConfig,f=A.containerType,a=A.sizing,T=A.protectBackground,G=A.typographyBump,p=A.force16By9ThumbnailAspectRatio,P=A.thumbnailFixedWidth,U=A.thumbnailTargetWidth,L=A.lockupExperiments,M=A.elementsPerRow;
A=_.d_(_.Zb(function(){var iy;return(iy=Q())==null?void 0:iy.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 l=_.Zc(tjA),J=_.fJ().resolve(_.bu(y5$)),n=J?{}:void 0,t=function(){var iy,wW,h4;return(h4=(wW=_.V((iy=Q())==null?void 0:iy.rendererContext,_.HV))==null?void 0:wW.label)!=null?h4:void 0},g=function(){var iy=b==null?void 0:b(),wW;
if(iy==null?0:iy.containerType){var h4=(wW=Q())==null?void 0:wW.contentType;wW=L();var SW=G(),r9=U(),PM=T();iy=Object.assign({},mwW(DwA(iy),y5F(iy.responsiveSize),SW,h4,iy.force16By9ThumbnailAspectRatio,r9,PM,wW),{thumbnailFixedWidth:iy.contentPreviewWidth})}else iy=mwW(f(),a(),G(),(h4=Q())==null?void 0:h4.contentType,p(),U(),T(),L());return iy};
J&&n&&J({enabled:function(){return l()},
itemPlaybackModel:function(){return Q().itemPlayback},
thumbnailElRef:function(){return n.thumbnailElRef},
containerElRef:A,options:function(){var iy,wW=(iy=_.V(Q().metadata,_.hGL))==null?void 0:iy.endorsement;iy=n.thumbnailOverlays||[];wW&&iy.push(wW);var h4,SW;return{thumbnail:n.thumbnail,thumbnailOverlays:iy,accessibilityText:t(),thumbnailSize:n.thumbnailSize,enableRounding:g().isCollection,containPlayerWithinThumbnail:g().isCollection,trackingParams:(h4=_.V(Q().rendererContext,_.H8))==null?void 0:(SW=h4.loggingDirectives)==null?void 0:SW.trackingParams}}});
var e=0;J=_.F(_.pz(!1,void 0,"HzAs3"));var x=J.next().value,D=J.next().value;J=_.F(_.pz(!1,void 0,"ujOXud"));var w=J.next().value,u=J.next().value;J=_.IY(function(){var iy=l()&&Q().itemPlayback;w()?(_.j7.cancelJob(e),e=_.j7.addJob(function(){D(!iy)},8,32)):D(!iy);
return!0});
var y=_.IY(function(){e&&(_.j7.cancelJob(e),e=0);D(!1)});
_.Cz(function(){e&&(_.j7.cancelJob(e),e=0)});
var a9=UUX(function(){u(!0)}),pF=a9.touchFeedbackEvents,Ub=a9.touchFeedbackOnPointerUp,Ob=a9.touchFeedbackOnPointerDown;
a9=a9.touchFeedbackOnPointerLeave;var I9={};return _.X("div",{el:A,class:_.O4("yt-lockup-view-model-wiz",function(){a:{var iy=g();if(iy.isOverlay)iy="yt-lockup-view-model-wiz--overlay";else switch(iy.arrangement){case 1:iy="yt-lockup-view-model-wiz--horizontal";break a;default:iy="yt-lockup-view-model-wiz--vertical"}}return iy},function(){a:{var iy=g();
if(iy.isOverlay)iy="yt-lockup-view-model-wiz--overlay";else{switch(iy.collectionStackNumber){case 1:iy="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:iy="yt-lockup-view-model-wiz--collection-stack-2";break a}iy=void 0}}return iy},function(){var iy;
return _.BgW((iy=Q())==null?void 0:iy.contentId)},(I9["yt-lockup-view-model-wiz--card"]=function(){return g().isCard},I9["yt-lockup-view-model-wiz--compact"]=function(){return g().isTiny||g().sizing!=="STANDARD"},I9["yt-lockup-view-model-wiz--protect-background"]=T,I9["yt-lockup-view-model-wiz--add-margins"]=function(){return g().addMarginForFullbleed},I9["yt-lockup-view-model-wiz--centered"]=function(){return g().isCentered},I9["yt-lockup-view-model-wiz--fullbleed"]=function(){return g().fullbleed},
I9["yt-lockup-view-model-wiz--single-column-grid"]=function(){return M()===1&&f()===2},I9["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var iy;
return(iy=L())==null?void 0:iy.useRichGridLegacyMargin},I9)),
"on:mousedown":Ob,"on:mouseleave":y,"on:mouseup":Ub,"on:mouseover":J,"on:touchstart":Ob,"on:touchend":Ub,"on:pointerleave":a9},_.X(_.Db,{command:function(){var iy;return _.wz((iy=Q())==null?void 0:iy.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return P()&&g().arrangement===1?"width: "+P():""}},_.X(_.WL,{data:function(){var iy;
return(iy=Q())==null?void 0:iy.contentImage}},{thumbnailViewModel:function(iy){return _.X(_.dq,{data:iy.data,
aspectRatio:function(){return g().aspectRatio},
disableRounding:function(){return g().disableRounding},
width:U,hovered:x,isClip:function(){var wW;return((wW=Q())==null?void 0:wW.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:qFf(n),lockupExperiments:function(){return L()}})},
collectionThumbnailViewModel:function(iy){return _.X(Tgv,{data:iy.data,aspectRatio:function(){return g().aspectRatio},
disableRounding:function(){return g().disableRounding},
width:U,doubleStack:function(){return g().collectionStackNumber===2},
hovered:x,playbackRef:qFf(n)})},
decoratedAvatarViewModel:_.E9})),_.X("div",{class:"yt-lockup-view-model-wiz__metadata"},_.X(_.WL,{data:function(){var iy;return(iy=Q())==null?void 0:iy.metadata}},{lockupMetadataViewModel:function(iy){return _.X(ig$,{data:iy.data,
lockupStyle:g,lockupCommand:function(){var wW;return _.wz((wW=Q())==null?void 0:wW.rendererContext)},
lockupAccessibilityLabel:function(){return t()}})},
feedAdMetadataViewModel:function(iy){return _.X(HgM,{data:iy.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:G})}}),_.X(_.WL,{data:function(){var iy;
return(iy=Q())==null?void 0:iy.attachmentSlot}},{lockupAttachmentsViewModel:function(iy){return _.X(pN$,{data:iy.data,
lockupStyle:g})}})),_.X(_.jl,{model:function(){a:{switch(g().collectionStackNumber){case 1:var iy=8;
break a;case 2:iy=12;break a}iy=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:iy}},
pointerDownEvent:pF.pointerDownEvent,pointerUpEvent:pF.pointerUpEvent,pointerLeaveEvent:pF.pointerLeaveEvent}))},"Za");
_.K8.idomCompat=!0;_.pE(_.K8,"yt-lockup-view-model",{props:{data:_.Qf,containerLayoutConfig:_.Qf,containerType:_.Qf,sizing:_.Qf,protectBackground:_.Qf,typographyBump:_.Qf,thumbnailFixedWidth:_.Qf,thumbnailTargetWidth:_.Qf,force16By9ThumbnailAspectRatio:_.Qf,className:_.Qf,lockupExperiments:_.Qf,elementsPerRow:_.Qf}});var Jie,qup=_.aP(function(A){var Q=_.be(A,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),b=Q.text,f=Q.alwaysShowTruncationText;A=Q.truncationText;var a=Q.onTextClick,T=Q.maxLines,G=Q.disableTextMask,p=Q.textStyle,P=Q.accessibilityLabel,U=Q.textSize,L=Q.alwaysTruncateAtMaxLines,M=Q.expandOnClick;Q=_.F(_.pz(!1,void 0,"TgZFQb"));var l=Q.next().value,J=Q.next().value;Q=_.IY(function(){M()&&J(!l());a==null||a()});
var n=function(){a:switch(U()){case "medium":var y=2;break a;case "large":y=2.2;break a;default:y=1.8}return y},t=kwb(b,function(){return l()?Infinity:T()},n,G,L),g=t.isTruncated;
b=t.displayText;L=t.contentRef;var e=t.hiddenRef,x=t.placeholderTruncationTextRef,D=t.hiddenTruncationTextRef;t=t.truncationTextRef;var w={},u={};return _.X("truncated-text",{class:_.O4((w["truncated-text-wiz"]=!0,w["truncated-text-wiz--overlay"]=function(){return p()==="overlay"},w["truncated-text-wiz--medium-text"]=function(){return U()==="medium"},w["truncated-text-wiz--large-text"]=function(){return U()==="large"},w["truncated-text-wiz--primary-text"]=function(){return p()==="primary-text"},w)),
"on:click":Q,style:function(){return"line-height: "+n()+"rem;"}},_.X("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:L,style:function(){return l()?"":"max-height: "+T()*n()+"rem;"}},_.X(_.Rb,{text:b}),_.X("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:x,style:function(){return"line-height: "+n()+"rem;"}},_.X(_.Rb,{text:A}))),_.X("truncated-text-content",{class:_.O4("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:e,style:function(){return l()?"":"max-height: "+T()*n()+"rem;"},
"aria-hidden":"true"},_.X(_.Rb,{text:b}),_.X("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:D,style:function(){return"line-height: "+n()+"rem;"}},_.X(_.Rb,{text:A}))),_.X("button",{"aria-label":P,
class:_.O4((u["truncated-text-wiz__absolute-button"]=function(){return!G()},u["truncated-text-wiz__bottom-button"]=function(){return G()},u["truncated-text-wiz--hidden"]=function(){return!(!l()&&(f!=null&&f()||g()))},u)),
el:t,style:function(){return"line-height: "+n()+"rem;"}},_.X(_.Rb,{text:A})))},"$a");
qup.idomCompat={callbacks:{onTextClick:!0}};var rir=_.aP(function(A){var Q=A.data;A=A.className;var b=_.Lz(function(){return Hge(Q())},void 0,"sR58pd");
return _.X("yt-video-attribute-view-model",{class:A},_.X("div",{class:function(){var f=Q();a:switch(f.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var a="yt-video-attribute-view-model--vertical";break a;default:a="yt-video-attribute-view-model--horizontal"}a:switch(f.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var T="yt-video-attribute-view-model--image-small";break a;default:T="yt-video-attribute-view-model--image-large"}a:switch(f.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var G=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":G="yt-video-attribute-view-model--image-avatar";break a;default:G=""}a:switch(f.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var p="yt-video-attribute-view-model--metadata-header";break a;default:p=""}a:switch(f.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var P="yt-video-attribute-view-model--container-card";break a;default:P=""}return["yt-video-attribute-view-model",a,T,
G,p,P,Hge(f)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.qM({"background-color":function(){var f=Q();if(f.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var a="";else{a=f.lightColorPalette;f=f.darkColorPalette;var T,G=((T=_.fJ().resolve(_.bu(_.Af)))==null?0:T())&&f?f:a;a=(a=G==null?void 0:G.section2Color)?_.w6(a):""}return a}})},_.X(_.S,{cond:function(){return b()||!_.K("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.X(_.Db,{className:"yt-video-attribute-view-model__content-container",command:b,role:"group",ariaLabel:function(){return Q().title}},_.X(_.S,{cond:function(){return Q().heroText||Q().image},
then:function(){return _.X(oe$,{data:Q})}}),_.X(thN,{data:Q,
sizeSmall:function(){return Q().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.X("div",{class:"yt-video-attribute-view-model__content-container"},_.X(_.S,{cond:function(){return Q().heroText||Q().image},
then:function(){return _.X(oe$,{data:Q})}}),_.X(thN,{data:Q,
sizeSmall:function(){return Q().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"ab");
rir.idomCompat=!0;var oe$=_.aP(function(A){var Q=A.data;var b,f=(b=_.fJ().resolve(_.bu(_.Af)))==null?void 0:b(),a=function(){return f&&Q().darkThemeImage?Q().darkThemeImage:Q().image},T=_.Lz(function(){return C2U(Q())},void 0,"zGDeMe");
return _.X("div",{class:"yt-video-attribute-view-model__hero-section"},_.X(_.I8,null,_.X(_.nH,{when:a},function(){return _.X(_.aY,{data:function(){return a()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.X(_.nH,{when:function(){return Q().heroText}},function(){return _.X("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.X("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return Q().heroText}))})),_.X(_.S,{cond:function(){return Q().overflowMenuOnTap},
then:function(){return _.X("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.X(_.K3,{data:T,iconName:"MORE_VERT"}))}}))},"bb");
oe$.idomCompat=!0;var thN=_.aP(function(A){var Q=A.data;A=A.sizeSmall;var b=function(){return Q().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},f=_.Lz(function(){return Yz(_.y0({innertubeCommand:Hge(Q())}))?"link":"group"},void 0,"kGuRzd"),a={};
return _.X("div",{class:_.O4("yt-video-attribute-view-model__metadata",(a["yt-video-attribute-view-model--small-font"]=A,a)),role:f},_.X("h1",{class:"yt-video-attribute-view-model__title"},function(){return Q().title}),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(){return _.X("h4",{class:"yt-video-attribute-view-model__subtitle"},_.X(_.S,{cond:b,then:function(){return _.X(qup,{text:function(){return IY4(Q().subtitle)},
truncationText:function(){return IY4(Q().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.X("span",null,function(){return Q().subtitle})}}))}}),_.X(_.S,{cond:function(){return Q().secondarySubtitle},
then:function(T){return _.X("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.X(_.Rb,{text:function(){var G=T();if(G!=null&&G.attachmentRuns){for(var p=[],P=_.F(G.attachmentRuns),U=P.next();!U.done;U=P.next())U=U.value,U.element&&p.push(Object.assign({},U,{element:Object.assign({},U.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));G=Object.assign({},G,{attachmentRuns:p})}return G}}))}}),_.X(_.WL,
{data:function(){return Q().buttonViewModel}},{buttonViewModel:function(T){return _.X(_.J9,{data:T.data,
className:"yt-video-attribute-view-model__button"})}}))},"cb");
thN.idomCompat=!0;_.pE(rir,"yt-video-attribute-view-model",{props:{data:_.Qf,className:_.Qf}});var iH=function(){var A=_.q.apply(this,arguments)||this;A.useHighlightStyling=_.K("web_enable_deeper_metadata_highlight_styling");A.isSearch=!1;A.JSC$15042_lastScrollContainerWidth=NaN;A.pageLoadingFromNavigation=!1;A.currentIndex=0;A.supportComponentResize=!1;return A};
_.O(iH,_.q);_.d=iH.prototype;
_.d.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}}}}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageChange))};
_.d.detached=function(){document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageChange))};
_.d.getItemsPath=function(){return"data.cards"};
_.d.onIronResize=function(){this.updateListStyles()};
_.d.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var A;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(A=this.data)==null?void 0:A.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.K("problem_walkthrough_sd")&&!!this.centerItems};
_.d.computeCardListStyle=function(A){return A||null};
_.d.computeEmpty=function(A){return!this.get("cards.length",A)};
_.d.computeThumbnailStyle=function(A){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",A)||null};
_.d.computeHasSubtitle=function(A){return!!this.get("header.richListHeaderRenderer.subtitle",A)};
_.d.computeInitialCountNumber=function(A){return this.hasSquareMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.d.computeUseFloorScrolling=function(A){return A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.d.computeHasGameCard=function(A){return(A=this.get("cards",A))?A.some(function(Q){return Q.gameCardRenderer}):!1};
_.d.computeCenterHeaderTitle=function(A){return!(A==null||!A.centerHeaderTitle)};
_.d.computeHasPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(Q){return Q.miniGameCardViewModel&&Q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.d.computeHasSquareMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(Q){return Q.miniGameCardViewModel&&Q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.d.computeHasSkinnyWidthPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(Q){return Q.miniGameCardViewModel&&Q.miniGameCardViewModel.width===135}):!1};
_.d.computeCenterItems=function(A){return!!A};
_.d.computeHasInfoPanel=function(A){var Q;return A==null?void 0:(Q=A.cards)==null?void 0:Q.some(function(b){return b.infoPanelContentRenderer})};
_.d.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.d.getItemByIndex=function(A){var Q=this.items.children;return Q&&Q.length>A?Q[A]:void 0};
_.d.onPageChange=function(){var A=this;this.pageLoadingFromNavigation=!0;_.j7.addJob(function(){A.pageLoadingFromNavigation=!1;_.Pn(A.hostElement,"yt-terminate-video-preview-action")},8)};
_.d.updateListStyles=function(){if(_.K("problem_walkthrough_sd")&&this.JSC$15042_scrollContainer!==void 0){var A=this.JSC$15042_scrollContainer.clientWidth;A!==this.JSC$15042_lastScrollContainerWidth&&(this.JSC$15042_lastScrollContainerWidth=A,_.Uc(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(A*.8,415)+"px"}),_.Bn(this.hostElement,"iron-resize"))}};
_.Qr.Object.defineProperties(iH.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.K("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!((A=this.data)==null?0:(Q=A.cards)==null?0:(b=Q[0])==null?0:b.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!((A=this.data)==null?0:(Q=A.cards)==null?0:(b=Q[0])==null?0:b.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return _.K("enable_desktop_amsterdam_info_panels")&&!!((A=this.data)==null?0:(Q=A.cards)==null?0:(b=Q[0])==null?0:b.infoPanelContentRenderer)}}});
iH.prototype.dataChanged=iH.prototype.dataChanged;iH.prototype.onIronResize=iH.prototype.onIronResize;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.pa.YtdHorizontalListBehavior),_.c("design:type",Object)],iH.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.I(_.wS),_.c("design:type",Object)],iH.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iH.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],iH.prototype,"useCustomColors",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],iH.prototype,"useHighlightStyling",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.c("design:type",Object)],iH.prototype,"cardListStyle",void 0);_.E([_.C({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.c("design:type",Boolean)],iH.prototype,"empty",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.c("design:type",Boolean)],iH.prototype,"hasSubtitle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.c("design:type",Boolean)],iH.prototype,"thumbnailStyle",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.c("design:type",Boolean)],iH.prototype,"hasGameCard",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.c("design:type",Boolean)],iH.prototype,"centerHeaderTitle",void 0);
_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.c("design:type",Boolean)],iH.prototype,"hasPortraitMiniApp",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.c("design:type",Boolean)],iH.prototype,"hasSquareMiniApp",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.c("design:type",Boolean)],iH.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.E([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.c("design:type",Boolean)],iH.prototype,"hasInfoPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],iH.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],iH.prototype,"inlineStructuredDescription",void 0);_.E([_.V1("#scroll-container"),_.c("design:type",HTMLDivElement)],iH.prototype,"JSC$15042_scrollContainer",void 0);
_.E([_.C({computed:"computeInitialCountNumber(data.style.type)"}),_.c("design:type",Number)],iH.prototype,"initialCount",void 0);_.E([_.C({computed:"computeUseFloorScrolling(data.style.type)"}),_.c("design:type",Boolean)],iH.prototype,"useFloorScrolling",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.c("design:type",Boolean)],iH.prototype,"centerItems",void 0);_.E([_.C(),_.c("design:type",Object)],iH.prototype,"pageLoadingFromNavigation",void 0);
_.E([_.C(),_.c("design:type",Object)],iH.prototype,"currentIndex",void 0);_.E([_.C(),_.c("design:type",Number)],iH.prototype,"scrollCount",void 0);_.E([_.C(),_.c("design:type",Object)],iH.prototype,"supportComponentResize",void 0);_.E([_.V1("#items"),_.c("design:type",HTMLDivElement)],iH.prototype,"items",void 0);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],iH.prototype,"onIronResize",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],iH.prototype,"dataChanged",null);_.E([_.C({reflectToAttribute:!0}),_.H("inlineStructuredDescription"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],iH.prototype,"hideNavigationButton",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],iH.prototype,"modernChapters",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],iH.prototype,"hasVideoAttributeViewModels",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],iH.prototype,"modernInfoPanels",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],iH);
_.W(iH,"ytd-horizontal-card-list-renderer",function(){if(C59!==void 0)return C59;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return C59=A},{mode:_.UG("kevlar_poly_si_batch_j072")?1:2});var j6Y=_.aP(function(A){var Q=A.data;var b={};return _.X("video-summary-content-view-model",{class:_.O4("video-summary-content-view-model-wiz",A.className,(b["video-summary-content-view-model-wiz--is-search"]=A.isSearch,b))},_.X(_.Op,{each:function(){var f=[],a=Q().paragraphs;if(a==null||!a.length)return[];for(var T=0;T<a.length;T++){var G=_.V(a[T],xFY),p=void 0;T>0&&(p=_.V(a[T-1],xFY));p&&!!p.marker===!!G.marker?f[f.length-1].paragraphs.push(G):f.push({isList:!!G.marker,paragraphs:[G]})}return f},
keyBy:"INDEX"},function(f){return _.X(_.S,{cond:function(){return f().isList},
then:function(){return _.X("ul",{class:"video-summary-content-view-model-wiz__list"},_.X(_.Op,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(a){return _.X("li",{class:"video-summary-content-view-model-wiz__list-item"},_.X(_.Rb,{text:function(){return a().text}}))}))},
else:function(){return _.X(_.Op,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(a){return _.X("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.X(_.Rb,{text:function(){return a().text}}))})}})}),_.X(_.S,{cond:function(){return!!_.V(Q().likeButtonViewModel,_.vV)&&!!_.V(Q().dislikeButtonViewModel,_.WV)},
then:function(){return _.X("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.X("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.X(_.EP,{data:function(){return _.V(Q().likeButtonViewModel,_.vV)},
disableIconAnimation:!0})),_.X(_.vF,{data:function(){return _.V(Q().dislikeButtonViewModel,_.WV)}}))}}))},"db");
j6Y.idomCompat=!0;_.pE(j6Y,"video-summary-content-view-model",{props:{data:_.Qf,isSearch:_.Qf,className:_.Qf}});var JZ=function(){var A=_.q.apply(this,arguments)||this;var Q,b;A.isExpanded=(b=(Q=A.data)==null?void 0:Q.isExpanded)!=null?b:!1;A.disableExpand=!1;A.showProminentLabel=!1;A.showRightSideLabel=!0;A.toggleExpandableContent=function(f){A.disableExpand||(f.stopPropagation(),_.dz(_.mW(f),A.hostElement,["info","expanded-subtitle"])||(A.isExpanded=!A.isExpanded,A.ytRendererBehavior.logExplicitClick(A.data),A.JSC$15053_cardList&&!_.K("expandable_metadata_a11y_fix_ks")&&_.mL(A,function(){_.Dg(A.hostElement)})))};
A.useSquareThumbnail=!1;A.contentHiddenWithDisplayNone=_.K("web_expandable_metadata_content_hidden_with_display_none");A.startX=0;return A};
_.O(JZ,_.q);_.d=JZ.prototype;_.d.computeUseSquareThumbnail=function(){var A;return(A=this.data)==null?void 0:A.useSquareThumbnail};
_.d.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"}}}}};
_.d.dataChanged=function(){if(this.data){var A,Q;this.isExpanded=(Q=(A=this.data)==null?void 0:A.isExpanded)!=null?Q:!1;var b,f,a,T;if(A=this.isDarkTheme()?(b=this.data)==null?void 0:(f=b.colorData)==null?void 0:f.darkColorPalette:(a=this.data)==null?void 0:(T=a.colorData)==null?void 0:T.lightColorPalette){var G,p;if((G=this.data)==null?0:(p=G.colorData)==null?0:p.vibrantColorPalette)A.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.vz(this.hostElement,A)}}};
_.d.isExpandedChanged=function(){this.isExpanded&&this.JSC$15053_cardList&&_.Bn(this.JSC$15053_cardList,"iron-resize")};
_.d.computeIsExpanded=function(A){return!!A.isExpanded};
_.d.computeShowProminentLabel=function(A,Q){var b;return!!(A==null?0:(b=A.header)==null?0:b.showLeadingCollapsedLabel)&&!Q};
_.d.computeShowRightSideLabel=function(A,Q){var b;return!(A==null?0:(b=A.header)==null?0:b.showLeadingCollapsedLabel)&&!Q};
_.d.captureContentClick=function(A){if(!this.disableExpand)if(_.K("expandable_metadata_fix_killswitch")){var Q=A.target;_.pdL(Q,"ytd-macro-markers-list-item-renderer")||A.stopPropagation();(Q==null?void 0:Q.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.dz(_.mW(A),this.hostElement,["items"])||_.TG(_.mW(A),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.d.timestampClick=function(A){A.stopPropagation();var Q,b;(A=(Q=this.data)==null?void 0:(b=Q.header)==null?void 0:b.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(A)};
_.d.onDown=function(A){A.stopPropagation();this.startX=A.detail?A.detail.x:0};
_.d.onUp=function(A){this.skipKeyInteraction(A)&&A.stopPropagation()};
_.d.skipKeyInteraction=function(A){var Q=A.target;if((Q==null?void 0:Q.id)==="scroll-container"||(Q==null?void 0:Q.id)==="items"||A.detail&&A.detail.x!==this.startX)return!0;A=_.mW(A);A=_.F(A);for(Q=A.next();!Q.done;Q=A.next()){Q=Q.value;if(Q===this.hostElement)break;if(Q.hasAttribute&&Q.hasAttribute("skip-key-interaction"))return!0}return!1};
_.d.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Qr.Object.defineProperties(JZ.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.V((A=this.data)==null?void 0:A.expandedContent,E7y)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.V((A=this.data)==null?void 0:A.expandedContent,_.Wdv)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.useCustomColors)&&!((Q=this.data)==null||!Q.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!!((A=this.data)==null?0:(Q=A.header)==null?0:Q.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!!((A=this.data)==null?0:(Q=A.header)==null?0:Q.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!!((A=this.data)==null?0:(Q=A.header)==null?0:Q.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.K("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
JZ.prototype.onUp=JZ.prototype.onUp;JZ.prototype.onDown=JZ.prototype.onDown;JZ.prototype.isExpandedChanged=JZ.prototype.isExpandedChanged;JZ.prototype.dataChanged=JZ.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],JZ.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JZ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JZ.prototype,"isExpanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JZ.prototype,"disableExpand",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],JZ.prototype,"isSearch",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],JZ.prototype,"isWatch",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.c("design:type",Object)],JZ.prototype,"showProminentLabel",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.c("design:type",Object)],JZ.prototype,"showRightSideLabel",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"hasVideoSummary",null);_.E([_.C({value:!1,reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"hasLockupViewModel",null);_.E([_.C({reflectToAttribute:!0}),_.H("data","isWatch"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"useCustomColors",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data","isExpanded"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"showInfoButton",null);_.E([_.H("data","isExpanded"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"showTimestamp",null);_.E([_.H("data","isExpanded"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"showExpandedSubtitle",null);
_.E([_.H("data","isExpanded"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"showThumbnail",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],JZ.prototype,"useVppShoppingDestinationStyle",null);_.E([_.C(),_.c("design:type",Object)],JZ.prototype,"toggleExpandableContent",void 0);_.E([_.V1("ytd-horizontal-card-list-renderer"),_.c("design:type",Object)],JZ.prototype,"JSC$15053_cardList",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.c("design:type",Object)],JZ.prototype,"useSquareThumbnail",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JZ.prototype,"contentHiddenWithDisplayNone",void 0);_.E([_.H("isExpanded"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JZ.prototype,"contentHidden",null);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JZ.prototype,"dataChanged",null);_.E([_.iN("isExpanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JZ.prototype,"isExpandedChanged",null);_.E([_.Kc("down"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],JZ.prototype,"onDown",null);
_.E([_.Kc("up"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],JZ.prototype,"onUp",null);_.E([_.h({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],JZ);
_.W(JZ,"ytd-expandable-metadata-renderer",function(){if(WHj!==void 0)return WHj;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return WHj=A},{mode:1});var RhN,geL=function(){if(RhN!==void 0)return RhN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return RhN=A};_.pE(_.xK,"yt-avatar-stack-view-model",{props:{className:_.Qf,data:_.Qf,overrides:_.Qf,isOverlay:_.Qf,useMediumText:_.Qf,decorations:_.Qf,hideAvatar:_.Qf}});_.xo("itemSectionRenderer","videoRenderer","ytd-video-renderer");var VM=function(){var A=_.q.apply(this,arguments)||this;A.disableExpand=!1;A.shouldShowChannelInfo=!1;A.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return A};
_.O(VM,_.q);_.d=VM.prototype;_.d.computeUseSearchUi=function(){var A,Q;return this.isSearch||((A=this.data)==null?void 0:(Q=A.style)==null?void 0:Q.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.d.computeUseThreeLineTitle=function(){var A;return((A=this.data)==null?void 0:A.maxTitleLines)===3};
_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.K("polymer_video_renderer_defer_menu")&&!n0Y?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"}}}};
_.d.attached=function(){_.Pj(this.hostElement,"blue-links",_.K("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Xs(_.Bj(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Q;A&&((Q=_.V(A.commandMetadata,_.RA))==null?0:Q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A);this.updateInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15058_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:this.JSC$15058_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15058_inlinePreviewHoverListener)==null||f7(A)};
_.d.onTextWrapperClick=function(A){var Q,b,f=this.hideTranslation?(Q=this.data)==null?void 0:Q.untranslatedNavigationEndpoint:(b=this.data)==null?void 0:b.navigationEndpoint;Q=_.dz(_.mW(A),this.hostElement,["expandable-metadata"]);!f||Q&&!_.K("expandable_metadata_fix_killswitch")||_.TG(_.mW(A),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Bn(this.hostElement,"yt-navigate",{endpoint:f})};
_.d.computeThumbnailWidth=function(A,Q,b,f,a){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:f?a==="MASSIVE"?600:a==="BIG"?500:a==="MEDIUM"?450:420:b?360:Q?128:A?210:246};
_.d.computeUseBiggerThumbs=function(A){return A&&_.K("enable_desktop_search_bigger_thumbs")};
_.d.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.d.computeVideoStyle=function(){if(_.K("enable_video_style")){var A,Q;return(A=this.data)==null?void 0:(Q=A.style)==null?void 0:Q.value}};
_.d.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.d.handleHideItemSectionVideosByIdCommand=function(A){var Q;A=(Q=_.V(A,GdM))==null?void 0:Q.videoId;this.data&&this.data.videoId===A&&(this.isHidden=!0)};
_.d.getMetadataSnippetContainerClass=function(A){return A?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.d.computeTitleText=function(A,Q,b){return A?b:Q};
_.d.computeDescriptionSnippet=function(A,Q,b){return A?b:Q};
_.d.computeSnippetText=function(A,Q,b){return A?b:Q};
_.d.computeNavigationEndpoint=function(A,Q){return A?Q==null?void 0:Q.untranslatedNavigationEndpoint:Q==null?void 0:Q.navigationEndpoint};
_.d.hideInlineTitleIcon=function(A,Q){return A||!Q};
_.Qr.Object.defineProperties(VM.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 A;return(A=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?A:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!(this==null?0:(A=this.data)==null?0:(Q=A.channelThumbnailSupportedRenderers)==null?0:(b=Q.channelThumbnailWithLinkRenderer)==null?0:b.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.V((A=this.data)==null?void 0:A.avatar,v3v)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15058_inlinePreviewHoverListener)==null?0:ww(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Qr.Object.defineProperties(VM,{template:{configurable:!0,enumerable:!0,get:function(){return geL()}}});
VM.prototype.dataChanged=VM.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],VM.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],VM.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.NC),_.c("design:type",Object)],VM.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],VM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],VM.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],VM.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],VM.prototype,"isBackstageVideo",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],VM.prototype,"isPostCompactVideo",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],VM.prototype,"isHistory",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],VM.prototype,"isRichGridVideoPost",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],VM.prototype,"isHidden",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],VM.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.c("design:type",Boolean)],VM.prototype,"useSearchUi",void 0);_.E([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.c("design:type",Boolean)],VM.prototype,"useThreeLineTitle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.c("design:type",Boolean)],VM.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.c("design:type",Object)],VM.prototype,"videoStyle",void 0);_.E([_.C({computed:"computeDisableExpand(videoStyle)"}),_.c("design:type",Object)],VM.prototype,"disableExpand",void 0);
_.E([_.C({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.c("design:type",Object)],VM.prototype,"shouldShowChannelInfo",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],VM.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.c("design:type",String)],VM.prototype,"inlineTitleIcon",void 0);_.E([_.C({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.c("design:type",Object)],VM.prototype,"computedNavigationEndpoint",void 0);_.E([_.C({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(A,Q){return _.Me(A.entities,"searchVideoResultEntity",Q)}}),
_.c("design:type",Object)],VM.prototype,"searchVideoResultEntity",void 0);_.E([_.V1("ytd-thumbnail"),_.c("design:type",HTMLElement)],VM.prototype,"thumbnail",void 0);_.E([_.V1("#dismissible"),_.c("design:type",HTMLElement)],VM.prototype,"JSC$15058_dismissibleMedia",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],VM.prototype,"dataChanged",null);
_.E([_.H("searchVideoResultEntity"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],VM.prototype,"hideTranslation",null);_.E([_.H("searchVideoResultEntity"),_.c("design:type",Array),_.c("design:paramtypes",[])],VM.prototype,"hiddenBadgeGroups",null);_.E([_.H("data","useAvatar"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],VM.prototype,"shouldShowChannelThumbnail",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],VM.prototype,"useAvatar",null);
_.E([_.H("lockupIsHovered"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],VM.prototype,"isHovered",null);_.E([_.h({is:"ytd-video-renderer",disableElementRegistration:!0})],VM);_.W(VM,"ytd-video-renderer",function(){return geL()},{mode:_.UG("kevlar_poly_si_batch_j047")?1:2});var OM=function(){var A=_.q.apply(this,arguments)||this;A.editDialog=null;A.roundedContainer=!0;A.isLoading=!1;A.isRichGrid=!1;A.isRichGridRepost=!1;A.reduceSidePaddings=_.K("reduce_side_paddings_in_shelf");A.JSC$15065_spinnerEl=null;return A};
_.O(OM,_.q);_.d=OM.prototype;
_.d.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"}}}};
_.d.contentTextChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){var A=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var Q=0,b=this.data.actions&&this.data.actions.length;Q<b;Q++)this.openEditDialog(_.V(this.data.actions[Q],J1M));if((Q=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(Q=this.get("buttonRenderer.hint.hintRenderer.hintId",Q))&&Q.startsWith("share-post-hint")){var f=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(f){_.B3.getInstance();var a=pW(_.sr(_.JQ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.j7.addLowPriorityJob(function(){_.ST(A.hostElement,a,f)})}}}};
_.d.updatePoll=function(A){A>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.d.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15065_spinnerEl||(this.JSC$15065_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Bj(this.hostElement).appendChild(this.JSC$15065_spinnerEl));this.JSC$15065_spinnerEl&&(this.JSC$15065_spinnerEl.active=this.isLoading)};
_.d.onYtNavigate=function(A){var Q=this.get("updateCommentDialogEndpoint",A.detail.endpoint);Q&&(this.openEditDialog(Q),A.stopPropagation())};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.onYtCommentPollRevert=function(A,Q){Q&&this.updatePoll(Q.selectedChoiceIndex)};
_.d.onYtServiceRequestSent=function(A,Q){var b;Q.endpoint&&(_.V(Q.endpoint,$8Y)||_.V(Q.endpoint,D81)&&((b=_.V(Q.endpoint,D81))==null||!b.clientActions))&&(this.isLoading=!0);if(Q.actions)for(A=0;A<Q.actions.length;A++)b=Q.actions[A],_.V(b,rE)&&(b=this.get("updateBackstagePollAction.selectedChoiceIndex",b),b==void 0&&(b=-1),this.updatePoll(b))};
_.d.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.d.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.d.computeIsPostHidden=function(A,Q){return!!A||Q};
_.d.computeSurfaceType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.d.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.d.computeShowWithoutToolbar=function(A){return!A.actionButtons&&!A.actionMenu};
_.d.computePostAttachment=function(A){if(A.backstageAttachment){if(_.V(A.backstageAttachment,ojL))return"poll";if(_.V(A.backstageAttachment,SqN))return"quiz";if(_.V(A.backstageAttachment,_.Z6))return"video";if(_.V(A.backstageAttachment,U8M))return"uploaded-videos";if(_.V(A.backstageAttachment,uCj))return A.contentText?"image":"image-only";if(_.V(A.backstageAttachment,BEr))return"playlist"}return"none"};
_.d.computePostTabIndex=function(A){return A?0:-1};
_.d.computeButtonTooltipPosition=function(A){return this.computeUsesCompactLockup(A)?"top":"bottom"};
_.d.computeHasText=function(A){return!(A==null||!A.contentText)};
_.d.onTap=function(A){var Q,b;if(((Q=this.data)==null?0:Q.navigationEndpoint)&&((b=this.data)==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var f;((f=this.data)==null?0:f.navigationEndpoint)&&!_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Qr.Object.defineProperties(OM.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.sr("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.V(this.data.backstageAttachment,ojL))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.V(this.data.backstageAttachment,U8M))}}});
OM.prototype.onYtServiceRequestCompleted=OM.prototype.onYtServiceRequestCompleted;OM.prototype.onYtServiceRequestSent=OM.prototype.onYtServiceRequestSent;OM.prototype.onYtCommentPollRevert=OM.prototype.onYtCommentPollRevert;OM.prototype.onYtCommentboxDismiss=OM.prototype.onYtCommentboxDismiss;OM.prototype.onYtNavigate=OM.prototype.onYtNavigate;OM.prototype.isLoadingChanged=OM.prototype.isLoadingChanged;OM.prototype.dataChanged=OM.prototype.dataChanged;OM.prototype.contentTextChanged=OM.prototype.contentTextChanged;
_.E([_.I(_.wS),_.c("design:type",Object)],OM.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],OM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],OM.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],OM.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],OM.prototype,"editDialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OM.prototype,"roundedContainer",void 0);_.E([_.C(),_.c("design:type",Object)],OM.prototype,"isLoading",void 0);_.E([_.C({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.c("design:type",String)],OM.prototype,"surface",void 0);
_.E([_.C({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.c("design:type",Boolean)],OM.prototype,"usesCompactLockup",void 0);_.E([_.C({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],OM.prototype,"showWithoutToolbar",void 0);_.E([_.C({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.c("design:type",String)],OM.prototype,"attachment",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OM.prototype,"isRichGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OM.prototype,"isRichGridRepost",void 0);_.E([_.C({reflectToAttribute:!0,value:_.K("use_better_post_dismissals")}),_.c("design:type",Boolean)],OM.prototype,"useBetterPostDismissals",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OM.prototype,"reduceSidePaddings",void 0);
_.E([_.C({computed:"computeHasText(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],OM.prototype,"hasText",void 0);_.E([_.V1("#expander"),_.c("design:type",Object)],OM.prototype,"expander",void 0);_.E([_.V1("#action-buttons"),_.c("design:type",Object)],OM.prototype,"actionButtons",void 0);_.E([_.V1("#edit-dialog"),_.c("design:type",HTMLElement)],OM.prototype,"editDialogEl",void 0);
_.E([_.iN("data.contentText"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OM.prototype,"contentTextChanged",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OM.prototype,"dataChanged",null);_.E([_.iN("isLoading"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OM.prototype,"isLoadingChanged",null);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],OM.prototype,"onYtNavigate",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OM.prototype,"onYtCommentboxDismiss",null);_.E([_.Kc("yt-comment-poll-revert"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],OM.prototype,"onYtCommentPollRevert",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],OM.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],OM.prototype,"onYtServiceRequestCompleted",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],OM.prototype,"voteCount",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],OM.prototype,"commentCount",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OM.prototype,"hasPoll",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OM.prototype,"hasUploadedVideo",null);_.E([_.h({is:"ytd-post-renderer",disableElementRegistration:!0})],OM);
_.W(OM,"ytd-post-renderer",function(){if(TMy!==void 0)return TMy;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return TMy=A},{mode:1});var ehx;var hhr;var n8=function(){return _.q.apply(this,arguments)||this};
_.O(n8,_.q);n8.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.pa.YtdHorizontalListBehavior),_.c("design:type",Object)],n8.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],n8.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],n8.prototype,"data",void 0);
_.E([_.C({value:"$.items.children"}),_.c("design:type",String)],n8.prototype,"itemsPath",void 0);_.E([_.C({value:1}),_.c("design:type",Number)],n8.prototype,"initialCount",void 0);_.E([_.C(),_.c("design:type",String)],n8.prototype,"surface",void 0);_.E([_.h({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],n8);
_.W(n8,"ytd-post-multi-image-renderer",function(){if(hhr!==void 0)return hhr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return hhr=A},{mode:_.UG("kevlar_poly_si_batch_j079")?1:2});var WuM={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},ku=function(){var A=_.q.apply(this,arguments)||this;A.hasInlineCommentSection=!1;A.editDialog=null;A.isLoading=!1;A.shouldHideAuthor=!1;A.shouldShowVideoTime=!1;
A.isInEngagementPanel=!1;A.hideBorder=!1;A.usesFullLockup=!1;A.shouldShowMenuInCompactView=!1;A.JSC$15081_spinnerEl=null;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.O(ku,_.q);_.d=ku.prototype;_.d.configureRendererStamper=function(){return WuM};
_.d.computeIsPollHeaderEnabled=function(A){return(A==null?void 0:A.pollMetadataIcon)!=null};
_.d.getPublishTimeStampString=function(A,Q){Q=new Date((Number(Q)-60*((new Date).getTimezoneOffset()-(new Date(Number(Q)*1E3)).getTimezoneOffset()))*1E3);Q=(new $L(10)).format(Q);if(A&&A.runs&&A.runs.length)for(var b=0;b<A.runs.length;b++)A.runs[b].text&&(A.runs[b].text=A.runs[b].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",Q));return A};
_.d.created=function(){this.JSC$15081_spinnerEl=null};
_.d.contentTextChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var A;if((A=this.data)==null?0:A.actions){A=_.F(this.data.actions);for(var Q=A.next();!Q.done;Q=A.next())this.openEditDialog(_.V(Q.value,J1M))}};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){_.Bj(this.hostElement).querySelector("#action-buttons").reply()};
_.d.updatePoll=function(A,Q){Q&&this.set("data.pollMetadataVoteCountText",Q);this.hasInlineCommentSection&&(A=A>=0,Q=_.Bj(this.hostElement).querySelector("#action-buttons"),A?Q.reply():Q.hideReplyDialog())};
_.d.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15081_spinnerEl||(this.JSC$15081_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Bj(this.hostElement).appendChild(this.JSC$15081_spinnerEl));this.JSC$15081_spinnerEl&&(this.JSC$15081_spinnerEl.active=this.isLoading)};
_.d.onYtNavigate=function(A){var Q=this.get("updateCommentDialogEndpoint",A.detail.endpoint);Q&&(this.openEditDialog(Q),A.stopPropagation())};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.onYtCommentPollRevert=function(A,Q){Q&&this.updatePoll(Q.selectedChoiceIndex,Q.totalVotes)};
_.d.onYtServiceRequestSent=function(A,Q){A.stopPropagation();A=_.V(Q.endpoint,D81);if(_.V(Q.endpoint,$8Y)||A&&!A.clientActions)this.isLoading=!0;if(Q.actions)for(A=0;A<Q.actions.length;A++){var b=Q.actions[A],f=_.V(b,rE);f&&(b=this.get("updateBackstagePollAction.selectedChoiceIndex",b),b===void 0&&(b=-1),this.updatePoll(b,f.totalVotes))}};
_.d.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.d.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogElement.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.d.computeIsBodyHidden=function(A,Q){return!!A||Q};
_.Qr.Object.defineProperties(ku.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var A,Q;if((A=this.data)==null?0:(Q=A.pollMetadataIcon)==null?0:Q.iconType)return _.K0(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.sr("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.V(this.data.backstageAttachment,ojL))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.V(this.data.backstageAttachment,SqN))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.V(this.data.backstageAttachment,U8M))}}});
ku.prototype.onYtServiceRequestCompleted=ku.prototype.onYtServiceRequestCompleted;ku.prototype.onYtServiceRequestSent=ku.prototype.onYtServiceRequestSent;ku.prototype.onYtCommentPollRevert=ku.prototype.onYtCommentPollRevert;ku.prototype.onYtCommentboxDismiss=ku.prototype.onYtCommentboxDismiss;ku.prototype.onYtNavigate=ku.prototype.onYtNavigate;ku.prototype.isLoadingChanged=ku.prototype.isLoadingChanged;ku.prototype.dataChanged=ku.prototype.dataChanged;ku.prototype.contentTextChanged=ku.prototype.contentTextChanged;
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ku.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ku.prototype,"rendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ku.prototype,"rendererstamperBehavior",void 0);_.E([_.V1("#contentTextExpander"),_.c("design:type",Object)],ku.prototype,"expander",void 0);
_.E([_.V1("#edit-dialog"),_.c("design:type",Element)],ku.prototype,"editDialogElement",void 0);_.E([_.C(),_.c("design:type",Object)],ku.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],ku.prototype,"hasInlineCommentSection",void 0);_.E([_.C(),_.c("design:type",Object)],ku.prototype,"editDialog",void 0);_.E([_.C(),_.c("design:type",Object)],ku.prototype,"isLoading",void 0);
_.E([_.C({computed:"computeIsPollHeaderEnabled(data)"}),_.c("design:type",Boolean)],ku.prototype,"isPollHeaderEnabled",void 0);_.E([_.C(),_.c("design:type",Object)],ku.prototype,"shouldHideAuthor",void 0);_.E([_.C(),_.c("design:type",Object)],ku.prototype,"shouldShowVideoTime",void 0);_.E([_.C(),_.c("design:type",Object)],ku.prototype,"isInEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ku.prototype,"hideBorder",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ku.prototype,"usesFullLockup",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ku.prototype,"shouldShowMenuInCompactView",void 0);_.E([_.H("isInEngagementPanel"),_.c("design:type",Number),_.c("design:paramtypes",[])],ku.prototype,"postTextMaxLines",null);_.E([_.H("data.icon.iconType"),_.c("design:type",Object),_.c("design:paramtypes",[])],ku.prototype,"pollIcon",null);
_.E([_.iN("data.contentText"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ku.prototype,"contentTextChanged",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ku.prototype,"dataChanged",null);_.E([_.iN("isLoading"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ku.prototype,"isLoadingChanged",null);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ku.prototype,"onYtNavigate",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ku.prototype,"onYtCommentboxDismiss",null);_.E([_.Kc("yt-comment-poll-revert"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],ku.prototype,"onYtCommentPollRevert",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],ku.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ku.prototype,"onYtServiceRequestCompleted",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],ku.prototype,"voteCount",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],ku.prototype,"commentCount",null);_.E([_.H("data.backstageAttachment"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ku.prototype,"hasPoll",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ku.prototype,"hasQuiz",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ku.prototype,"hasUploadedVideo",null);
_.E([_.h({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],ku);
_.W(ku,"ytd-backstage-post-renderer",function(){if(ehx!==void 0)return ehx;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ehx=A},{mode:1});var vex;var Iu=function(){var A=_.q.apply(this,arguments)||this;A.editDialog=null;A.showExpandButton=!1;A.isRichGrid=!1;A.usesFullLockup=!1;return A};
_.O(Iu,_.q);_.d=Iu.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.d.computeShowExpandButton=function(A){return this.usesCompactLockup||A&&A.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.d.computeUsesCompactLockup=function(A){return!!A.condensedContent};
_.d.computeShowFullContentText=function(A){return!A};
_.d.onYtNavigate=function(A){A=this.get("updateCommentDialogEndpoint",A.detail.endpoint);this.openEditDialog(A)};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.repostEditDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.d.onTap=function(A){if(this.data){var Q=null;this.usesCompactLockup&&!_.TG(_.mW(A)||[],this.hostElement,["YT-IMG-SHADOW"])?Q=this.get("navigationEndpoint",this.data):A.target===this.moreButtonEl&&(Q=this.get("navigationEndpoint",A.target.data));Q&&_.Bn(this.hostElement,"yt-navigate",{endpoint:Q})}};
Iu.prototype.onYtCommentboxDismiss=Iu.prototype.onYtCommentboxDismiss;Iu.prototype.onYtNavigate=Iu.prototype.onYtNavigate;Iu.prototype.dataChanged=Iu.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Iu.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],Iu.prototype,"editDialog",void 0);_.E([_.C({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],Iu.prototype,"usesCompactLockup",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Iu.prototype,"showExpandButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Iu.prototype,"isRichGrid",void 0);
_.E([_.C({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.c("design:type",Boolean)],Iu.prototype,"showFullContentText",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Iu.prototype,"usesFullLockup",void 0);_.E([_.V1("#more"),_.c("design:type",Object)],Iu.prototype,"moreButtonEl",void 0);_.E([_.V1("#repost-content-text"),_.c("design:type",HTMLElement)],Iu.prototype,"repostContentTextEl",void 0);
_.E([_.V1("#repost-edit-dialog"),_.c("design:type",HTMLElement)],Iu.prototype,"repostEditDialogEl",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Iu.prototype,"dataChanged",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Iu.prototype,"onYtNavigate",null);
_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Iu.prototype,"onYtCommentboxDismiss",null);_.E([_.h({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Iu);
_.W(Iu,"ytd-shared-post-renderer",function(){if(vex!==void 0)return vex;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return vex=A},{mode:1});var Eev;var xUp;var HK=function(){return _.q.apply(this,arguments)||this};
_.O(HK,_.q);HK.prototype.attached=function(){var A=this;this.networkStatusManager||(this.networkStatusManager=new _.uC,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){A.onlineHandler()}))};
HK.prototype.detached=function(){var A=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){A.onlineHandler()}),delete this.networkStatusManager)};
HK.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],HK.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],HK.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],HK);
_.W(HK,"ytd-reload-page-button-renderer",function(){if(xUp!==void 0)return xUp;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return xUp=A},{mode:1});var ciW={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"},C8=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(C8,_.q);_.d=C8.prototype;_.d.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.d.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.d.computeHasBodyText=function(A){return!!A.bodyText};
_.d.computeButtons=function(A){var Q=[];A.ctaButton&&Q.push(A.ctaButton);A.secondaryButton&&Q.push(A.secondaryButton);return Q};
_.d.computeRendererStyle=function(A){return A.style?A.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():A.icon?"":"no-icon"};
_.d.getIconName=function(A,Q){Q=Q===void 0?!1:Q;if(A===void 0)return"";A=this.get("icon.iconType",A);var b;_.K("enable_hlp_client_icon_pick")?b=this.getThemedIcon(A,Q):b=A;(Q=ciW[b])||(Q="yt-icons");return[Q,b].join(":")};
_.d.getThemedIcon=function(A,Q){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(A)?Q?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(A)?Q?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":A};
_.d.isThumbnail=function(A){return!!A.thumbnail};
_.d.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],C8.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],C8.prototype,"data",void 0);
_.E([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.c("design:type",String)],C8.prototype,"rendererStyle",void 0);_.E([_.C({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.c("design:type",String)],C8.prototype,"iconName",void 0);_.E([_.C({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],C8.prototype,"thumbnail",void 0);_.E([_.C({computed:"computeButtons(data)"}),_.c("design:type",Array)],C8.prototype,"buttons",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],C8.prototype,"isDarkTheme",void 0);_.E([_.C({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],C8.prototype,"hasBodyText",void 0);_.E([_.h({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],C8);
_.W(C8,"ytd-background-promo-renderer",function(){if(Eev!==void 0)return Eev;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Eev=A},{mode:1});var zhv;var qo=function(){var A=_.q.apply(this,arguments)||this;A.collections=_.K("web_modern_collections_v2");return A};
_.O(qo,_.q);_.Qr.Object.defineProperties(qo.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a,T;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(Q=A.thumbnail)==null?void 0:Q.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(f=b.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(a=this.data)==null?void 0:(T=a.thumbnail)==null?void 0:T.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qo.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],qo.prototype,"collections",void 0);_.E([_.H("data","collections"),_.c("design:type",Object),_.c("design:paramtypes",[])],qo.prototype,"collectionStack",null);_.E([_.h({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],qo);
_.W(qo,"ytd-compact-station-renderer",function(){if(zhv!==void 0)return zhv;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return zhv=A},{mode:1});var wN1;var ou=function(){var A=_.q.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.O(ou,_.q);ou.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ou.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ou.prototype,"isRichGrid",void 0);_.E([_.h({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ou);
_.W(ou,"ytd-grid-channel-renderer",function(){if(wN1!==void 0)return wN1;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return wN1=A},{mode:1});var u4r;var tZ=function(){return _.q.apply(this,arguments)||this};
_.O(tZ,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tZ.prototype,"data",void 0);_.E([_.h({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],tZ);
_.W(tZ,"ytd-grid-movie-playlist-renderer",function(){if(u4r!==void 0)return u4r;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return u4r=A},{mode:1});var ZgN;var rq=function(){var A=_.q.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.modernButtons=_.K("web_modern_buttons");A.useModernCollectionsV2=_.K("web_modern_collections_v2");return A};
_.O(rq,_.q);rq.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
rq.prototype.configureRendererStamper=function(){return{"data.menu":n_}};
rq.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
rq.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.K("woffle_playlist_renderer_killswitch")){var A,Q=eGy(this.entityInfo,this.transferState,this.downloadProgress,(A=this.data)==null?void 0:A.playlistId,this.isOnline);A=Q.viewPlaylistText;var b=Q.badges;Q=Q.thumbnailOverlays;this.isDownloads=!!A||!!b;this.set("data.viewPlaylistText",A);b&&b.length>0&&this.set("data.badges",b);Q&&Q.length>0&&this.set("data.thumbnailOverlays",
Q)}};
_.Qr.Object.defineProperties(rq.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 A;return!((A=this.data)==null?0:A.menu)}}});
rq.prototype.transferStateChanged=rq.prototype.transferStateChanged;rq.prototype.dataChanged=rq.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],rq.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],rq.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C({selector:_.$kX,selectorArgs:["data.playlistId"]}),_.c("design:type",Object)],rq.prototype,"downloadProgress",void 0);_.E([_.C({selector:_.cO,selectorArgs:["data.playlistId"]}),_.c("design:type",Object)],rq.prototype,"transferState",void 0);_.E([_.C({selector:Dke,selectorArgs:["data.playlistId"]}),_.c("design:type",Object)],rq.prototype,"entityInfo",void 0);_.E([_.C({selector:_.Er}),_.c("design:type",Boolean)],rq.prototype,"isOnline",void 0);
_.E([_.C(),_.c("design:type",Object)],rq.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],rq.prototype,"downloadRenderData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],rq.prototype,"modernButtons",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],rq.prototype,"isDownloads",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],rq.prototype,"useModernCollectionsV2",void 0);
_.E([_.H("transferState"),_.C({reflectToAttribute:!0}),_.c("design:type",String),_.c("design:paramtypes",[])],rq.prototype,"downloadState",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],rq.prototype,"menuHidden",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rq.prototype,"dataChanged",null);
_.E([_.I_("transferState","downloadProgress","isOnline"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rq.prototype,"transferStateChanged",null);_.E([_.h({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],rq);
_.W(rq,"ytd-grid-playlist-renderer",function(){if(ZgN!==void 0)return ZgN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ZgN=A},{mode:1});var yi$;var jv=function(){var A=_.q.apply(this,arguments)||this;A.collections=_.K("web_modern_collections_v2");return A};
_.O(jv,_.q);jv.prototype.configureRendererStamper=function(){return{"data.menu":n_,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Qr.Object.defineProperties(jv.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a,T;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(Q=A.thumbnail)==null?void 0:Q.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(f=b.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(a=this.data)==null?void 0:(T=a.thumbnail)==null?void 0:T.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],jv.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],jv.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jv.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],jv.prototype,"collections",void 0);_.E([_.H("data","collections"),_.c("design:type",Object),_.c("design:paramtypes",[])],jv.prototype,"collectionStack",null);_.E([_.h({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],jv);
_.W(jv,"ytd-grid-radio-renderer",function(){if(yi$!==void 0)return yi$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return yi$=A},{mode:1});var YuL;var Ru=function(){var A=_.q.apply(this,arguments)||this;A.useModernCollectionsV2=_.K("web_modern_collections_v2");return A};
_.O(Ru,_.q);Ru.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Ru.prototype.computeNavigationEndpoint=function(A){return zty(A==null?void 0:A.navigationEndpoint)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],Ru.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ru.prototype,"data",void 0);_.E([_.C({computed:"computeNavigationEndpoint(data)"}),_.c("design:type",Object)],Ru.prototype,"computedNavigationEndpoint",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ru.prototype,"useModernCollectionsV2",void 0);_.E([_.h({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Ru);
_.W(Ru,"ytd-grid-show-renderer",function(){if(YuL!==void 0)return YuL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return YuL=A},{mode:1});var DUv;_.gq=function(A){this.playerClient=A};
_.$UN=function(A,Q,b){b=b===void 0?{}:b;return A.playerClient.setOption("ad",Q,b)};
_.gq.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.gq.prototype.executeCommand=function(A,Q){this.getOptions().includes("executeCommand")?_.$UN(this,"executeCommand",{command:A,layoutId:Q}):_.Q3("Calling executeCommand when adModule is not loaded")};var ev=function(){return _.q.apply(this,arguments)||this};
_.O(ev,_.q);ev.prototype.getLayoutId=function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
ev.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var A=_.BL(),Q=this.getLayoutId(),b=this.data.clickthroughEndpoint;A&&Q&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(f){(new _.gq(f)).executeCommand(b,Q)}):_.Bn(this.hostElement,"yt-navigate",{endpoint:b})}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ev.prototype,"data",void 0);_.E([_.h({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],ev);
_.W(ev,"ytd-shopping-companion-item-renderer",function(){if(DUv!==void 0)return DUv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return DUv=A},{mode:1});var NgL;var hZ=function(){var A=_.q.apply(this,arguments)||this;A.isExpandableContent=!1;return A};
_.O(hZ,_.q);_.Qr.Object.defineProperties(hZ.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?void 0:A.price)||((Q=this.data)==null?void 0:(b=Q.dealsData)==null?void 0:b.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var A,Q;if((A=this.data)!=null&&A.dealsData&&((Q=this.data)==null||!Q.priceReplacementText)){A=this.data.dealsData;var b,f,a;return((b=A.salesData)==null?void 0:b.originalPrice)||((f=A.priceDropData)==null?void 0:f.referencePrice)||((a=A.promotionData)==null?void 0:a.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(A=this.data)==null?void 0:(Q=A.dealsData)==null?void 0:Q.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],hZ.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],hZ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],hZ.prototype,"isExpandableContent",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"showCta",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"ctaText",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"hasPriceTopPosition",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"hasPriceBottomPosition",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"useNewStyle",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"showPriceReplacementText",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"priceValue",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"showDeal",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"showAffiliateDisclaimer",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"useSaleStyle",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"useFromBrandCtaStyle",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"useFromVendorCtaStyle",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hZ.prototype,"useShoppingCollectionCtaStyle",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],hZ);
_.W(hZ,"ytd-vertical-product-card-renderer",function(){if(NgL!==void 0)return NgL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return NgL=A},{mode:1});var s61;var WK=function(){return _.q.apply(this,arguments)||this};
_.O(WK,_.q);WK.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],WK.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],WK.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],WK);
_.W(WK,"ytd-grid-movie-renderer",function(){if(s61!==void 0)return s61;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return s61=A},{mode:1});var mUL;var vK=function(){var A=_.q.apply(this,arguments)||this;A.rounded=!0;A.itemStyle="small-item";return A};
_.O(vK,_.q);vK.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,Q,b,f,a=(Q=_.V((A=this.data)==null?void 0:A.buttonCommand,_.CY))==null?void 0:(b=Q.item)==null?void 0:(f=b.notificationTextRenderer)==null?void 0:f.successResponseText;a&&_.quY(this.hostElement,a)}};
_.Qr.Object.defineProperties(vK.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:A.isProductPlaceholder)!==void 0&&((Q=this.data)==null?void 0:Q.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vK.prototype,"rounded",void 0);_.E([_.C(),_.c("design:type",Object)],vK.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],vK.prototype,"itemStyle",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],vK.prototype,"hasPrice",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],vK.prototype,"hasPriceReplacementText",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],vK.prototype,"hasAdditionalFeesText",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],vK.prototype,"hasAffiliateDisclaimer",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],vK.prototype,"isProductPlaceholder",null);
_.E([_.C(),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],vK.prototype,"hideOpenInNewIcon",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],vK.prototype,"ariaLabel",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],vK);
_.W(vK,"ytd-merch-shelf-item-renderer",function(){if(mUL!==void 0)return mUL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return mUL=A},{mode:1});var ANy=_.aP(function(A){return _.X("button-card-view-model",{el:_.d_(_.Zb(function(){return A.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return A.data().title},
role:"button"},_.X(_.jl,{model:{}}),_.X("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.X("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.X(_.S,{cond:function(){return A.data().image},
then:function(Q){return _.X(_.aY,{data:Q,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.X("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return A.data().title})))},"eb");_.K("web_button_view_model_wcw_registration_killswitch")||_.pE(ANy,"button-card-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){A=_.be(A,{className:void 0});var Q=A.data;A=A.className;var b=_.Lz(function(){return Q().onTapCommand},void 0,"NprDr");
return _.X("ytd-shopping-item-card",{class:_.O4("ytdShoppingItemCardHost",A)},_.X(_.Db,{command:b,className:"ytdShoppingItemCardHostLink"},_.X("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.X(_.WL,{data:function(){return Q().thumbnailViewModel}},{thumbnailViewModel:function(f){return _.X(_.dq,{data:f.data,
aspectRatio:3})}})),_.X("div",null,_.X("p",{class:"ytdShoppingItemCardHostItemTitle"},_.X(_.Rb,{text:function(){return Q().itemTitle}})),_.X("p",{class:"ytdShoppingItemCardHostPrice"},_.X(_.Rb,{text:function(){return Q().priceOrStatus}})))))},"fb"),"ytd-shopping-item-card",{props:{data:_.Qf,
className:_.Qf}});var Qsj={isAdsVideo:!0},bxj={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},fdr={showPlayerControls:!1,videoPreviewDurationMs:15E3},adK={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.K("web_shorts_imp_fullwidth_killswitch")};var fS=null,oeF={};var j6y="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(" "),EM={},Rh6=(EM.FEwhat_to_watch="home",EM.FEhashtag="hashtag",EM.FEtrending="trending",EM.FEhistory="history",EM.SPunlimited="premium",EM.FEmemberships_and_purchases="paid_memberships",EM.SPredeem_code="redeem",EM.SPverify_location="locate",EM.SPminor_moment="minor_moment",
EM.FEmini_app_container="mini_app",EM.FEnews_destination="news",EM.SPopen_in_app="open_in_app",EM.FEexplore="explore",EM.FEsubscriptions="subscriptions",EM.FEsfv_audio_pivot="sfv_audio_pivot",EM.FEplaylist_aggregation="playlist_aggregation",EM);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");_.Ul("init");var TC9=function(){},BCK=_.aP(function(A){var Q=A.data;
var b=A.inlineMetadata;var f=A.aspectRatio;var a=A.scrimStyle;var T=A.className;var G=A.useDefaultStyle;var p=new TC9,P=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",U=_.Lz(function(){return(G==null?0:G())?P==="SHORTS_LOCKUP_STYLE_SLIM":Q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),L=_.Lz(function(){return _.o7(b)||U()||!1},void 0,"F6KaVc"),M=function(){return(a==null?void 0:a())!==void 0?a==null?void 0:a():1},l=_.Lz(function(){return Q().belowThumbnailMetadata||
!L()},void 0,"t2xwLe");
A=_.T9({visibilityCallback:function(y){var a9=Q().onFirstVisible;y&&a9&&_.D3(a9)},
showOption:{calledOnce:!0,state:"visible"}});var J=_.d_(),n={},t=_.O4(function(){return U(),"shortsLockupViewModelHostThumbnailContainer"},(n.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.o7(f)===1},n.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.o7(f)===2},n.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!U()},n.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.K("web_shorts_2_by_3_lockups_study")&&
!_.K("desktop_search_enable_two_by_three_shorts_aspect_ratio")},n)),g=_.Lz(function(){if(_.o7(f)===1)return 1;
_.o7(f);return 2},void 0,"No1ZPc"),e,x=function(){if(p){var y;
(y=e)==null||f7(y);var a9;if(p.hostElement&&((a9=p.data)==null?0:a9.inlinePlayerData)){y=Object.assign({},adK);var pF,Ub;((pF=p.data)==null?void 0:(Ub=pF.inlinePlayerData)==null?void 0:Ub.maxPlaybackLengthSec)!==void 0&&(y.videoPreviewDurationMs=p.data.inlinePlayerData.maxPlaybackLengthSec*1E3);e=Ys({mediaRenderer:p,lockupElement:p.hostElement,thumbnailElement:J.value,videoPreviewOpts:y})}}};
_.H_(function(){p&&(p.data=Q(),x())},"ou3rue");
var D=_.Lz(function(){return Q().thumbnail},void 0,"F8lWDd");
n=_.Lz(function(){return Q().badge},void 0,"IWPLte");
var w=_.Lz(function(){return Q().onTap},void 0,"G1C37d"),u={};
return _.X("ytm-shorts-lockup-view-model",{el:_.d_(function(y){p&&(p.hostElement=y)},x,A),
class:_.O4("shortsLockupViewModelHost",T)},_.X(_.bd,null,_.X(_.Db,{command:w,className:_.O4("shortsLockupViewModelHostEndpoint",(u.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!l()},u),"reel-item-endpoint",""),
ariaHidden:function(){return!L()},
tabIndex:function(){return L()?0:-1}},_.X("div",{el:J,
class:"shortsLockupViewModelHostThumbnailParentContainer"},_.X(_.S,{cond:D,then:function(){return _.X("div",{class:t},_.X(_.aY,{data:function(){var y;return(y=D==null?void 0:D())!=null?y:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.X(_.WL,{data:function(){return Q().thumbnailViewModel}},{thumbnailViewModel:function(y){return _.X(_.dq,{data:y.data,
aspectRatio:function(){return g()},
disableRounding:function(){return U()}})}}),null),_.X(_.S,{cond:L,
then:function(){return _.X(d5L,{data:Q,scrimStyle:M,useDefaultStyle:G})}}),_.X(_.WL,{data:n},{badgeViewModel:function(y){return _.X(_.Xb,{data:y.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.X(_.S,{cond:function(){return L()&&Q().menuOnTap},
then:function(){return _.X(FaN,{data:Q,inlineMetadata:!0})}}),_.X(_.S,{cond:l,
then:function(){return _.X(GQr,{data:Q,useDefaultStyle:G,inlineMetadata:L})}})))},"gb"),d5L=_.aP(function(A){var Q=A.data;
var b=A.scrimStyle;var f=A.useDefaultStyle;var a=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",T=f&&_.K("web_hide_primary_text_for_pivot_panel"),G=_.Lz(function(){return(f==null?0:f())?a==="SHORTS_LOCKUP_STYLE_SLIM":Q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"NcNabd");
A={};A=_.O4("shortsLockupViewModelHostInlineMetadata",(A.shortsLockupViewModelHostMetadataRounded=function(){return!G()},A.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(b==null?void 0:b())===3&&!_.K("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(b==null?void 0:b())===3&&_.K("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(b==null?void 0:b())===2||(b==null?void 0:
b())===4},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
var p={};return _.X("div",{class:A},_.X("h3",{class:_.O4("shortsLockupViewModelHostMetadataTitle",(p.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(b==null?void 0:b())===4},p.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return Q().belowThumbnailMetadata},p)),
"aria-label":function(){return Q().accessibilityText}},_.X(_.S,{cond:function(){var P;
return!((P=Q().overlayMetadata)==null||!P.primaryText)&&!T},
then:function(){return _.X(_.Rb,{text:function(){var P;return(P=Q().overlayMetadata)==null?void 0:P.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.X(_.S,{cond:function(){var P;
return(P=Q().overlayMetadata)==null?void 0:P.secondaryText},
then:function(){return _.X(pA$,{data:Q,scrimStyle:b,className:void 0})}}))},"hb"),GQr=_.aP(function(A){var Q=A.data;
var b=A.useDefaultStyle;var f=A.inlineMetadata;var a=_.K("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",T=_.Lz(function(){return(b==null?0:b())?a==="SHORTS_LOCKUP_STYLE_SLIM":Q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"UBARTb"),G=_.d_(),p;
A=_.IY(function(J){if(_.zG(_.cL(J),G.value,["AVATAR-VIEW-MODEL"]))return!1;var n;(n=p)==null||n.click();return!1});
var P=_.Lz(function(){return Q().belowThumbnailMetadata||Q().overlayMetadata},void 0,"nD3Z0"),U=function(){return Q().menuOnTap&&!f()},L=function(){var J;
return(J=P())==null?void 0:J.avatar},M={},l={};
return _.X("div",{class:_.O4(function(){return T()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(M.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!L()},M.shortsLockupViewModelHostOutsideMetadataHasMenu=U,M)),
"on:click":A,el:G},_.X(_.WL,{data:L},{avatarViewModel:function(J){return _.X("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.X(_.Wm,{data:J.data}))}}),_.X("div",null,_.X("h3",{class:_.O4("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(l.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var J,n;
return!((J=P())==null?0:(n=J.primaryText)==null?0:n.content)},l.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=f,l)),
"aria-label":function(){return Q().accessibilityText}},_.X(_.Db,{ref:function(J){return void(p=J)},
command:function(){return Q().onTap},
className:_.O4("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var J,n;return(J=P())==null?void 0:(n=J.primaryText)==null?void 0:n.content}},_.X(_.S,{cond:function(){var J;
return(J=P())==null?void 0:J.primaryText},
then:function(J){return _.X(_.Rb,{text:J,noEndpoints:!0,noStyleRuns:!0})}}))),_.X(_.S,{cond:function(){var J;
return(J=P())==null?void 0:J.secondaryText},
then:function(J){return _.X("div",{class:_.O4("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.X(_.Rb,{text:J,noStyleRuns:!0}))}})),_.X(_.S,{cond:U,
then:function(){return _.X(FaN,{data:Q,inlineMetadata:!1})}}))},"ib"),pA$=_.aP(function(A){var Q=A.data;
var b=A.scrimStyle;A=A.className;var f={};return _.X("div",{class:_.O4((f.shortsLockupViewModelHostMetadataSubhead=function(){return(b==null?void 0:b())!==4},f.shortsLockupViewModelHostMetadataSubheadNew=_.K("enable_shorts_lockup_new_scrim"),f.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(b==null?void 0:b())===4},f),A),
"aria-hidden":"true"},_.X(_.Rb,{text:function(){var a;return(a=Q().overlayMetadata)==null?void 0:a.secondaryText},
noStyleRuns:!0}))},"jb"),FaN=_.aP(function(A){var Q=A.data;
var b=A.inlineMetadata;A={};A=_.O4((A.shortsLockupViewModelHostInlineMetadataMenu=function(){return b()},A.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!b()},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
return _.X("div",{class:A},_.X(_.K3,{data:function(){return{style:b()?"overlay":"mono",accessibilityLabel:Q().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(f){f.preventDefault();f.stopPropagation();var a=_.y0({elementsCommand:Q().menuOnTap,forceNewState:!0});if(a==null?0:a.onclick)a.onclick(f)}}},
iconName:"MORE_VERT"}))},"kb");var P8L=_.aP(function(A){var Q=A.data;var b=A.inlineMetadata;var f=A.aspectRatio;var a=A.scrimStyle;var T=A.className;var G=A.useDefaultStyle;A=_.Lz(function(){var p=Q().entityId;return p?p.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.X("ytm-shorts-lockup-view-model-v2",{class:_.O4("shortsLockupViewModelHost",T)},_.X(_.L8,{contentId:A,aspectRatio:function(){return(f==null?void 0:f())===1?1:(f==null?void 0:f())===2?2:4}},function(){return _.X(BCK,{data:Q,
inlineMetadata:b,aspectRatio:f,scrimStyle:a,className:T,useDefaultStyle:G})}))},"lb");_.pE(P8L,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Bz,inlineMetadata:_.Bz,aspectRatio:_.Bz,scrimStyle:_.Bz,className:_.Bz,useDefaultStyle:_.Bz}});var XAN=16/9*210,xu=function(){var A=_.q.apply(this,arguments)||this;A.isExpandableContent=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.buttonClasses=["arrow"];A.isSearch=!1;A.disableScrollEventListener=!1;A.containsLockup=!1;A.overrideArrowPositionForProductCard=!1;A.overrideArrowPositionForShoppingItemCard=!1;A.overrideArrowPositionForReelItems=!1;A.overrideArrowPositionForGridMovie=!1;A.overrideArrowPositionToCenter=!1;A.isSearchPostShelf=!1;A.overrideArrowPositionForMixedShelf=!1;A.overrideArrowPositionForMixedShelfShortsOnly=
!1;A.hasBigThumbsReelItems=!1;A.shouldUseMixedListHeight=!1;A.shouldUseShortsListHeight=!1;A.gridVideoWidth=0;A.isSearchVodShelf=!1;A.disableWheelScroll=!1;A.sizing="COMPACT";A.shortsLockupAspectRatio=0;return A};
_.O(xu,_.q);_.d=xu.prototype;
_.d.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]]"}}}}};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.K("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.d.computeInitialCountNumber=function(A){if(!A)return 6;var Q=A.items.some(function(T){return!!T.topicRecommendationsChipRenderer}),b=A.items.some(function(T){return!!T.displayAdRenderer}),f=this.computeShouldListItemsHaveEqualHeight(A),a=A.items.some(function(T){return!!T.gridPlaylistRenderer});
A=A.items.some(function(T){return!!T.shoppingItemCardViewModel});
return Q?9:b?8:a||f?10:A?7:6};
_.d.computeContainsPost=function(A){return!!A&&!!A.items&&A.items.some(function(Q){return!!Q.postRenderer})};
_.d.computeContainsLockup=function(){if(_.K("web_horizontal_list_lockup_arrow_killswitch"))return!1;var A,Q;return(A=this.data)==null?void 0:(Q=A.items)==null?void 0:Q.some(function(b){return!!b.lockupViewModel})};
_.d.maybeUpdateLockupAspectRatio=function(){var A,Q;if(this.computeContainsLockup()&&((A=this.data)==null?0:(Q=A.items)==null?0:Q.length)){var b;A=s2b((b=this.data.items[0].lockupViewModel)==null?void 0:b.contentType,this.data.force16By9ThumbnailAspectRatio);b=yW6(A);b=this.computeLockupWidth()/b;_.Uc(this.hostElement,{"--yt-horizontal-list-content-height":b+"px"})}};
_.d.computeOverrideArrowPositionForProductCard=function(A){if(this.isExpandableContent)return!1;var Q;return!!(A==null?0:(Q=A.items)==null?0:Q.some(function(b){return!!b.verticalProductCardRenderer}))};
_.d.computeOverrideArrowPositionForShoppingItemCard=function(A){var Q;return!!(A==null?0:(Q=A.items)==null?0:Q.some(function(b){return!!b.shoppingItemCardViewModel}))};
_.d.computeOverrideArrowPositionForReelItemRenderer=function(A){return this.containsReelItemRenderer(A)};
_.d.computeHasBigThumbsReelItems=function(A,Q){return A&&this.containsReelItemRenderer(Q)};
_.d.computeShouldListItemsHaveEqualHeight=function(A){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(A==null?void 0:A.itemSizeConstraint)};
_.d.computeShouldListItemsHaveShortsHeight=function(A){return this.computeShouldListItemsHaveEqualHeight(A)&&!this.containsGridVideoRenderer(A)};
_.d.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.d.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.d.containsReelItemRenderer=function(A){var Q;return!!(A==null?0:(Q=A.items)==null?0:Q.some(function(b){return!(!b.reelItemRenderer&&!b.shortsLockupViewModel)}))};
_.d.containsGridVideoRenderer=function(A){var Q;return!!(A==null?0:(Q=A.items)==null?0:Q.some(function(b){return!!b.gridVideoRenderer||!!b.lockupViewModel}))};
_.d.computeContainsGridMovieRenderer=function(A){var Q;return!!(A==null?0:(Q=A.items)==null?0:Q.some(function(b){return!!b.gridMovieRenderer}))};
_.d.computeOverrideArrowPositionToCenter=function(A){return this.computeIsSearchPostShelf(A)};
_.d.computeIsSearchPostShelf=function(A){var Q;return!!(A==null?0:(Q=A.items)==null?0:Q.some(function(b){var f,a;return((a=(f=b.postRenderer)==null?void 0:f.surface)!=null?a:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.d.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(A){var Q;return!!(A==null?0:(Q=A.items)==null?0:Q.some(function(b){var f,a,T;return((T=(f=b.backgroundPromoRenderer)==null?void 0:(a=f.style)==null?void 0:a.value)!=null?T:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.d.computeIsSearchVodShelf=function(A,Q){return A&&this.containsGridVideoRenderer(Q)};
_.d.computeDisableWheelScroll=function(A,Q){return this.computeIsSearchVodShelf(A,Q)};
_.d.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.d.computeShortsLockupAspectRatio=function(){return 1};
_.d.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Uc(this.hostElement,{"--ytd-reel-item-thumbnail-height":XAN+"px"})};
xu.prototype.dataChanged=xu.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.pa.YtdHorizontalListBehavior),_.c("design:type",Object)],xu.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xu.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],xu.prototype,"isExpandableContent",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"hideShelfHeader",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"engagementPanel",void 0);_.E([_.C(),_.c("design:type",Array)],xu.prototype,"buttonClasses",void 0);_.E([_.C(),_.c("design:type",Object)],xu.prototype,"isSearch",void 0);
_.E([_.C(),_.c("design:type",Object)],xu.prototype,"disableScrollEventListener",void 0);_.E([_.C({computed:"computeInitialCountNumber(data)"}),_.c("design:type",Number)],xu.prototype,"initialCount",void 0);_.E([_.C({computed:"computeContainsPost(data)"}),_.c("design:type",Boolean)],xu.prototype,"supportComponentResize",void 0);_.E([_.C({computed:"computeContainsPost(data)"}),_.c("design:type",Boolean)],xu.prototype,"containsPost",void 0);
_.E([_.C({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"containsLockup",void 0);_.E([_.C({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],xu.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.E([_.C({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"overrideArrowPositionForProductCard",void 0);_.E([_.C({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.E([_.C({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"overrideArrowPositionForReelItems",void 0);_.E([_.C({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"overrideArrowPositionForGridMovie",void 0);
_.E([_.C({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"overrideArrowPositionToCenter",void 0);_.E([_.C({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"isSearchPostShelf",void 0);_.E([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.E([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.E([_.C({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"hasBigThumbsReelItems",void 0);
_.E([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"shouldUseMixedListHeight",void 0);_.E([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"shouldUseShortsListHeight",void 0);_.E([_.C({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"gridVideoWidth",void 0);
_.E([_.C({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"isSearchVodShelf",void 0);_.E([_.C({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.c("design:type",Object)],xu.prototype,"disableWheelScroll",void 0);_.E([_.C({computed:"computeSizing(isSearch)"}),_.c("design:type",Object)],xu.prototype,"sizing",void 0);
_.E([_.C({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.c("design:type",Object)],xu.prototype,"shortsLockupAspectRatio",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xu.prototype,"dataChanged",null);
_.W(xu,"yt-horizontal-list-renderer",function(){if(iI$===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);iI$=A}A=iI$;return A},{mode:1});var SUy;var U5M=[10,12,14,16,18,20,24,28,32,36],LaY=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],cK=function(){var A=_.q.apply(this,arguments)||this;A.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";A.hideOverflow=!1;A.useRoboto=!1;A.fontClass="";A.overflown=!1;A.actionMap={"yt-window-resized":"resize"};return A};
_.O(cK,_.q);_.d=cK.prototype;
_.d.attached=function(){var A=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();_.mL(this,function(){A.resize()});
if(!_.S1){var Q,b,f;(Q=document)==null||(b=Q.fonts)==null||(f=b.ready)==null||f.then(function(){A.resize()})}};
_.d.dataChanged=function(){this.resize()};
_.d.guideIsExpandedChanged=function(){this.resize()};
_.d.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 A=this.getMaxNumLines(),Q=this.getMinFont(),b=this.getMaxFont(),f=this.useRoboto?U5M:LaY;for(f=f.filter(function(T){return T<=b&&T>=Q});f.length>1;){var a=Math.floor(f.length/2);
this.updateFontSize(f[a]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=A)f=f.slice(a,f.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>A)f=f.slice(0,a);else break}this.updateFontSize(f[f.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(A)}};
_.d.handleOverflow=function(A){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>A&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",A.toString()))};
_.d.updateFontSize=function(A){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+A;this.textNode.classList.add(this.fontClass)};
_.d.getMaxFont=function(){var A=this.useRoboto?U5M:LaY;A=A[A.length-1];return this.maxFontSize&&this.maxFontSize<=A?this.maxFontSize:A};
_.d.getMinFont=function(){var A=(this.useRoboto?U5M:LaY)[0];return this.minFontSize&&this.minFontSize>=A?this.minFontSize:A};
_.d.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.d.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.d.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.mO(this.text).split("\n").length-1:Infinity};
_.d.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("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
cK.prototype.guideIsExpandedChanged=cK.prototype.guideIsExpandedChanged;cK.prototype.dataChanged=cK.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],cK.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],cK.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cK.prototype,"text",void 0);
_.E([_.C(),_.c("design:type",String)],cK.prototype,"fontFamily",void 0);_.E([_.C(),_.c("design:type",Number)],cK.prototype,"maxWidth",void 0);_.E([_.C(),_.c("design:type",Number)],cK.prototype,"maxHeight",void 0);_.E([_.C(),_.c("design:type",Number)],cK.prototype,"maxFontSize",void 0);_.E([_.C(),_.c("design:type",Number)],cK.prototype,"minFontSize",void 0);_.E([_.C(),_.c("design:type",Number)],cK.prototype,"maxLines",void 0);_.E([_.C(),_.c("design:type",Object)],cK.prototype,"hideOverflow",void 0);
_.E([_.C({selector:_.h5Y}),_.c("design:type",Boolean)],cK.prototype,"guideIsExpanded",void 0);_.E([_.V1("#container"),_.c("design:type",HTMLElement)],cK.prototype,"containerNode",void 0);_.E([_.V1("#text"),_.c("design:type",HTMLElement)],cK.prototype,"textNode",void 0);_.E([_.I_("text"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cK.prototype,"dataChanged",null);
_.E([_.I_("guideIsExpanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cK.prototype,"guideIsExpandedChanged",null);_.E([_.h({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],cK);
_.W(cK,"yt-dynamic-sizing-formatted-string",function(){if(SUy!==void 0)return SUy;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return SUy=A},{mode:1});var M8L;_.ldr=function(A){_.A4.call(this,A)};
_.O(_.ldr,_.A4);var Ka1=function(A){_.A4.call(this,A)};
_.O(Ka1,_.ldr);var zB=function(){return _.q.apply(this,arguments)||this};
_.O(zB,_.q);zB.prototype.onTapSuspendedChannel=function(){var A;if((A=this.data)!=null&&A.serviceEndpoint){var Q,b;(A=(b=_.V((Q=this.data)==null?void 0:Q.serviceEndpoint,_.y_))==null?void 0:b.url)?_.Yr(A,void 0,void 0,window.top):(Q=new Ka1("Did not handle suspended account tap. No appealUrl."),_.en(Q))}else Q=new Ka1("Did not handle suspended account tap. No serviceEndpoint."),_.en(Q)};
zB.prototype.onTap=function(){var A=this,Q=_.IP(),b,f=(b=_.kz(Q,{veType:7116}))!=null?b:void 0;_.NM(Q,{visualElement:f});_.Zk();this.saveRoleText();var a;if((a=this.data)==null?0:a.youtubeSuspended)this.onTapSuspendedChannel();else{var T=!1,G,p;(Q=(p=_.V((G=this.data)==null?void 0:G.serviceEndpoint,_.b2v))==null?void 0:p.supportedTokens)&&Q.forEach(function(P){if(P.accountSigninToken)if(T=!0,A.onAccountItemTap)A.onAccountItemTap(P.accountSigninToken.signinUrl);else _.Yr(P.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!T){if(G=this.get("serviceEndpoint",this.data))T=!0,this.ytComponentBehavior.resolveCommand(G);T||_.hq(new Ka1("Did not handle account switch tap. No token."))}}};
zB.prototype.saveRoleText=function(){if(this.data){var A=this.data,Q=A.channelDelegationRole;if(Q){var b,f=(b=_.V(A==null?void 0:A.serviceEndpoint,_.b2v))==null?void 0:b.supportedTokens;if(!f){var a,T,G,p;f=(a=_.V(A==null?void 0:A.serviceEndpoint,_.ju))==null?void 0:(T=a.popup)==null?void 0:(G=T.confirmDialogRenderer)==null?void 0:(p=G.confirmButton)==null?void 0:p.buttonRenderer;var P;f=(P=_.V(f==null?void 0:f.command,_.LD))==null?void 0:P.commands;if(!f)return;var U;f=(U=_.V(f[1],_.b2v))==null?
void 0:U.supportedTokens}if(f){P=void 0;U=_.F(f);for(f=U.next();!f.done;f=U.next())if(f=f.value,f.datasyncIdToken){P=f.datasyncIdToken.datasyncIdToken;break}if(P){var L;a:{if(_.axY()&&(U=_.LOA(P+"::pom"))){U=new Ra(U);break a}U=void 0}(L=U)==null||L.set("role_text",Q);if((lxY?lxY:window.location).href.indexOf("studio")!==-1&&(L=Twf())){U=L.src?(new URL(L.src)).origin:"*";var M;(M=L.contentWindow)==null||M.postMessage({action:"save_pom_role",datasyncId:P,roleText:Q},U)}}}}}};
_.Qr.Object.defineProperties(zB.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.accountPhoto)==null?void 0:Q.thumbnails;return b&&b.length>0&&(b[0].height===36||b[0].height===48)?b[0].height:40}}});
zB.prototype.onTap=zB.prototype.onTap;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],zB.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zB.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.c("design:type",Function)],zB.prototype,"onAccountItemTap",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],zB.prototype,"enableRingForActiveAccount",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],zB.prototype,"thumbnailSize",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zB.prototype,"onTap",null);_.E([_.h({is:"ytd-account-item-renderer",disableElementRegistration:!0})],zB);
_.W(zB,"ytd-account-item-renderer",function(){if(M8L!==void 0)return M8L;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return M8L=A},{mode:1});var ix9;var wq=function(){return _.q.apply(this,arguments)||this};
_.O(wq,_.q);wq.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.fJ().resolve(_.de).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],wq.prototype,"data",void 0);_.E([_.h({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],wq);
_.W(wq,"ytd-identity-chip-renderer",function(){if(ix9!==void 0)return ix9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ix9=A},{mode:1});var JNY;var V8j;var Oxr;var ndN;var uH=function(){var A=_.q.apply(this,arguments)||this;A.richItemMinWidth=_.GP("wn_grid_min_item_width",310);A.isShorts=!1;A.isWatchNext=!1;A.isExploreHub=!1;return A};
_.O(uH,_.q);_.Qr.Object.defineProperties(uH.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var A=[],Q=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Uc(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var b;if(((b=this.data)==null?0:b.rows)&&Q)for(Q*=this.data.rows,b=0;b<Q;b++)A.push({});return A}}});
_.E([_.I(_.cb),_.c("design:type",Object)],uH.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.hH,value:3}),_.c("design:type",Number)],uH.prototype,"itemsPerRow",void 0);_.E([_.C({selector:_.e59,value:6}),_.c("design:type",Number)],uH.prototype,"slimItemsPerRow",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Number)],uH.prototype,"richItemMinWidth",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],uH.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uH.prototype,"isShorts",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uH.prototype,"isWatchNext",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uH.prototype,"isExploreHub",void 0);
_.E([_.H("isExploreHub"),_.C({reflectToAttribute:!0}),_.c("design:type",Object),_.c("design:paramtypes",[])],uH.prototype,"shimmerAnimation",null);_.E([_.H("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.c("design:type",Array),_.c("design:paramtypes",[])],uH.prototype,"cardItems",null);_.E([_.h({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],uH);
_.kQL=_.SM()(uH,"ytd-ghost-grid-renderer",function(){if(ndN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);ndN=A}A=ndN;return A},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.pE(_.aP(function(A){var Q=_.be(A,{numberOfComments:3}).numberOfComments,b=_.be(A,{isInitialLoad:!1}).isInitialLoad,f=_.be(A,{engagementPanel:!1}).engagementPanel,a=function(){return Math.min(Number(Q==null?void 0:Q())||20,20)};
return _.X("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.X(_.S,{cond:function(){return!(f==null?0:f())&&(b==null?void 0:b())},
then:function(){return _.X("div",{class:"ytGhostCommentsComments"},_.X("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.X("div",{class:_.O4("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.X("div",{class:_.O4("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.X("div",{class:"ytGhostCommentsGhostCard"},_.X("div",{class:"ytGhostCommentsAvatar"},_.X("div",{class:"ytGhostCommentsCircle"})),_.X("div",{class:"ytGhostCommentsComments"},_.X("div",{class:"ytGhostCommentsMeta"},
_.X("div",{class:_.O4("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.X("div",{class:_.O4("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.X("div",{class:"ytGhostCommentsComments"},_.X(_.Op,{each:function(){return Array((a==null?void 0:a())||3)}},function(){return _.X("div",{class:"ytGhostCommentsGhostCard"},_.X("div",{class:"ytGhostCommentsAvatar"},_.X("div",{class:"ytGhostCommentsCircle"})),_.X("div",{class:"ytGhostCommentsHost"},_.X("div",{class:"ytGhostCommentsMeta"},
_.X("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.X("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.X("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.X("div",{class:"ytGhostCommentsGhostLikeDislike"},_.X("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.X("div",{class:_.O4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"mb"),"yt-ghost-comments",{props:{numberOfComments:_.Qf,
isInitialLoad:_.Qf,engagementPanel:_.Qf}});_.xo("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Zn=function(){var A=_.q.apply(this,arguments)||this;A.isOverridable=!1;A.spinnerActive=!1;A.showButton=!1;A.isCommentsSection=!1;A.engagementPanel=!0;A.isShortsGrid=!1;A.isShortsPage=!1;A.isWatchPage=!1;A.ghostCardExperimentEnabled=_.K("show_ghost_comments_shorts_watch")||_.K("show_ghost_comments_desktop_watch");A.originalShowButton=!1;A.endOfList=!1;return A};
_.O(Zn,_.q);_.d=Zn.prototype;_.d.resetIntersectionObserver=function(){var A;(A=this.observer)==null||A.disconnect();this.observer=void 0};
_.d.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var A,Q;((A=this.data)==null?void 0:A.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((Q=this.data)==null?0:Q.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.d.initializeIntersectionObserver=function(){var A=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(Q){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b.value.isIntersecting&&(A.triggerContinuation(),A.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.d.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]]"}}}}}};
_.d.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var A;((A=this.data)==null?0:A.continuationEndpoint)&&(A=_.V(this.data.continuationEndpoint,_.Yo))&&this.ytdReduxBehavior.dispatch(_.G7({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:A}}))};
_.d.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.d.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.d.onServiceRequestCompleted=function(A,Q){if(!_.K("kevlar_hide_spinner_on_empty_continuation_killswitch")){var b;(b=Q.actions)!=null&&b.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.d.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.d.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.d.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.d.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var A=3;if(this.engagementPanel){var Q,b,f;A=Math.floor(((((Q=this.hostElement)==null?void 0:(b=Q.parentElement)==null?void 0:(f=b.parentElement)==null?void 0:f.scrollHeight)||108)-108)/108);A=this.isInitialLoad?Math.max(A,3):3}Q=[].concat(_.ri(this.hostElement.querySelectorAll("yt-ghost-comments")));Q=_.F(Q);for(b=Q.next();!b.done;b=Q.next())b=b.value,b.numberOfComments=A,b.isInitialLoad=this.isInitialLoad,b.engagementPanel=
this.engagementPanel}};
_.d.detached=function(){this.resetIntersectionObserver()};
_.Qr.Object.defineProperties(Zn.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.K("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.K("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Zn.prototype.numberOfGhostCommentsChanged=Zn.prototype.numberOfGhostCommentsChanged;Zn.prototype.continuationTriggerOffsetChanged=Zn.prototype.continuationTriggerOffsetChanged;Zn.prototype.showButtonChanged=Zn.prototype.showButtonChanged;Zn.prototype.onYtServiceRequestCompletedForButtonRenderer=Zn.prototype.onYtServiceRequestCompletedForButtonRenderer;Zn.prototype.onServiceRequestCompleted=Zn.prototype.onServiceRequestCompleted;Zn.prototype.onYtServiceRequestSentForButtonRenderer=Zn.prototype.onYtServiceRequestSentForButtonRenderer;
Zn.prototype.observeData=Zn.prototype.observeData;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NO.YtVisibilityBehavior),_.c("design:type",Object)],Zn.prototype,"ytVisibilityBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Zn.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],Zn.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zn.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Zn.prototype,"isOverridable",void 0);_.E([_.C(),_.c("design:type",Object)],Zn.prototype,"spinnerActive",void 0);_.E([_.C(),_.c("design:type",Object)],Zn.prototype,"showButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zn.prototype,"isCommentsSection",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zn.prototype,"engagementPanel",void 0);_.E([_.C(),_.c("design:type",Object)],Zn.prototype,"isShortsGrid",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.EgX}),_.c("design:type",Object)],Zn.prototype,"isShortsPage",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.vgb}),_.c("design:type",Object)],Zn.prototype,"isWatchPage",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zn.prototype,"ghostCardExperimentEnabled",void 0);
_.E([_.C(),_.c("design:type",Number)],Zn.prototype,"continuationTriggerOffset",void 0);_.E([_.C(),_.c("design:type",Object)],Zn.prototype,"endOfList",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Zn.prototype,"isInitialLoad",void 0);_.E([_.V1("ytd-button-renderer"),_.c("design:type",_.dS)],Zn.prototype,"buttonRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],Zn.prototype,"buttonOverrides",void 0);
_.E([_.C(),_.H("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.c("design:type",Object),_.c("design:paramtypes",[])],Zn.prototype,"isShortsCommentsSection",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zn.prototype,"observeData",null);
_.E([_.Kc("yt-service-request-sent-button-renderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zn.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],Zn.prototype,"onServiceRequestCompleted",null);
_.E([_.Kc("yt-service-request-completed-button-renderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zn.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.E([_.I_("showButton"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zn.prototype,"showButtonChanged",null);
_.E([_.I_("continuationTriggerOffset"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zn.prototype,"continuationTriggerOffsetChanged",null);_.E([_.iN("isInitialLoad","engagementPanel"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zn.prototype,"numberOfGhostCommentsChanged",null);_.E([_.h({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Zn);
_.W(Zn,"ytd-continuation-item-renderer",function(){if(Oxr!==void 0)return Oxr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Oxr=A},{mode:1});var Id1;var yM=function(){var A=_.q.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;A.downloadedVideoPlaybackPosition=0;return A};
_.O(yM,_.q);yM.prototype.dataChanged=function(){var A;this.videoData=_.V((A=this.data)==null?void 0:A.renderer,gjK);this.transferStateChanged()};
yM.prototype.downloadProgressChanged=function(){if(this.entityInfo){var A=Object.assign({},this.videoData),Q=hGb(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),b=Q.publishedTimeText,f=Q.badges;A.shortViewCountText=Q.shortViewCountText;A.publishedTimeText=b;A.badges=f;this.set("videoData",A)}};
yM.prototype.transferStateChanged=function(){if(this.entityInfo){var A=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",Q=_.IX(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kL(this.entityInfo.policyEntity),b=Object.assign({},this.videoData),f=hGb(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),a=f.publishedTimeText,T=f.badges;b.shortViewCountText=
f.shortViewCountText;b.publishedTimeText=a;b.badges=T;b.isDisabled=Q;b.isWatched=this.downloadedVideoPlaybackPosition>0;b.navigationEndpoint=Q?void 0:xX9(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var G;A&&((G=this.videoData)==null?0:G.videoId)&&!_.K("dl_resume_click_killswitch")&&(b.isDisabled=!1,b.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});b.thumbnailOverlays=g3A(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",b)}};
yM.prototype.transferStateChanged=yM.prototype.transferStateChanged;yM.prototype.downloadProgressChanged=yM.prototype.downloadProgressChanged;yM.prototype.dataChanged=yM.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],yM.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yM.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],yM.prototype,"videoData",void 0);_.E([_.C({selector:z7,selectorArgs:["videoData.videoId"]}),_.c("design:type",Object)],yM.prototype,"downloadProgress",void 0);_.E([_.C(),_.c("design:type",Number)],yM.prototype,"relativeDateReference",void 0);_.E([_.C({selector:_.xL,selectorArgs:["videoData.videoId"]}),_.c("design:type",Object)],yM.prototype,"transferState",void 0);
_.E([_.C({selector:dOY,selectorArgs:["videoData.videoId"]}),_.c("design:type",Object)],yM.prototype,"downloadState",void 0);_.E([_.C({selector:uEb,selectorArgs:["videoData.videoId"]}),_.c("design:type",Object)],yM.prototype,"offlinePolicyAction",void 0);_.E([_.C({selector:Z2b,selectorArgs:["videoData.videoId"]}),_.c("design:type",Object)],yM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.C({selector:ws,selectorArgs:["videoData.videoId"]}),_.c("design:type",Object)],yM.prototype,"downloadedVideoPlaybackPosition",void 0);_.E([_.C({selector:YZU,selectorArgs:["videoData.videoId"]}),_.c("design:type",Object)],yM.prototype,"entityInfo",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],yM.prototype,"isDownloading",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],yM.prototype,"dataChanged",null);
_.E([_.I_("downloadProgress"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],yM.prototype,"downloadProgressChanged",null);_.E([_.I_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],yM.prototype,"transferStateChanged",null);
_.E([_.h({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],yM);
_.W(yM,"ytd-downloaded-video-grid-video-renderer",function(){if(Id1!==void 0)return Id1;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Id1=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var Hx9;var Yu=function(){};
Yu.prototype.resolve=function(A,Q){var b=this;return _.B(function(f){return f.yield(b.resolveCommand(A,Q),0)})};var C8r,Dn;C8r=pCX(function(A){return A.targetId},{shouldPersist:!1});
Dn=C8r.updateData;_.qUY=C8r.useUpdatableData;var odM,t8L;odM=pCX(function(A){return A.targetId});
t8L=odM.updateData;_.rNY=odM.useUpdatableData;var jsM=hhX.bind(null,Dn),Rcv=hhX.bind(null,t8L);(function(A,Q,b){var f=_.V(b==null?void 0:b.updatedRenderer,_.pVN);return f?A({targetId:Q},function(){return f}):!1}).bind(null,Dn);var $u=function(){};
_.O($u,Yu);$u.prototype.resolveCommand=function(A){var Q;return _.B(function(b){Q=_.V(A,_.eyY);if(!Q)return b.return();jsM(Q.targetId,Q);_.Oi(b)})};var No=function(){var A=_.nc.apply(this,arguments)||this;A.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return A};
_.O(No,_.nc);_.d=No.prototype;_.d.configureContinuationPathMap=function(){return{}};
_.d.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.d.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.d.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.d.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.d.handleAppendContinuationItemsAction=function(A){var Q=_.V(A,_.eVW);if(this.data&&this.data.targetId&&Q&&this.continuationPathMap&&Q.targetId===this.data.targetId){var b=ry9(A),f=b&&this.continuationPathMap[b];if(f&&b)if(A=this.get(f,this.data)){a:{for(b=0;b<A.length;b++){var a=A[b],T=void 0,G=!!_.V((T=_.V(a,Vpy))==null?void 0:T.content,_.tuK);if(_.V(a,_.ac)||G)break a}b=A.length}f="data."+f;Q.continuationItems?b===A.length-1?(this.pop(f),this.push.apply(this,[f].concat(_.ri(Q.continuationItems)))):
b===A.length?this.push.apply(this,[f].concat(_.ri(Q.continuationItems))):this.splice.apply(this,[f,b,1].concat(_.ri(Q.continuationItems))):this.splice(f,b,1);(_.K("web_enable_voting_animation")||_.K("enable_music_web_cairo_voting_animation"))&&_.Bn(this.hostElement,"yt-append-continuation-items-action-finished");_.Bn(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Wv(new _.IO("append continuation items does not exist",b));else _.Wv(new _.IO("append continuation path does not exist",
b))}};
_.d.handleReloadContinuationItemsCommand=function(A){var Q=_.V(A,_.eyY);if(this.data&&Q){if(_.K("web_client_explore_hub")||_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover"))try{_.fJ().resolve($u).resolveCommand(A)}catch(T){}if(this.data.targetId&&this.continuationPathMap&&Q.targetId===this.data.targetId&&(!_.K("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||Q.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var b,f=(b=Q.slot)==null?void 0:
b.replace("RELOAD_CONTINUATION_SLOT_","");b=(A=ry9(A)+"-"+(f==null?void 0:f.toLowerCase()))&&this.continuationPathMap[A];if(!b||!A||!f)_.Wv(new _.IO("reload continuation path does not exist",A));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(Q)){if(Q.replaceWithFirstItem){var a;this.set("data."+b,((a=Q.continuationItems)==null?0:a.length)?Q.continuationItems[0]:{})}else this.set("data."+b,Q.continuationItems?Q.continuationItems:[]);this.continuationIsReloading=
!1;_.Bn(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.d.handleShowReloadUiCommand=function(A){A=_.V(A,NrL);var Q;((Q=this.data)==null?0:Q.targetId)&&(A==null?0:A.targetId)&&A.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
No.prototype.observeData=No.prototype.observeData;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],No.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],No.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],No.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],No.prototype,"continuationIsReloading",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],No.prototype,"observeData",null);_.E([_.kl()],No);_.sM=[_.Y3.YtComponentBehavior,_.PJ.YtActionHandlerBehavior,No.prototype];_.mG={};_.mG.YtNextContinuationBehavior=[_.du.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",_.lN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(A,Q){A.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,Q,{}):(A={locationRetrieved:function(b){this.makeNextContinuationRequest_(b,Q,{})}.bind(this)},_.Bn(this.hostElement,"yt-retrieve-location",A))},
makeNextContinuationRequest_:function(A,Q,b){_.Wn("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();A=Q(A);var f;this.canUseContextualNetworkManager_()&&(f=this.getNetworkManager());f||(f=_.fJ().resolve(_.WY));Q=_.s4.instance;if(_.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&Q){f=_.bB([A.startsWith("/")?A.substr(1):A]);var a,T;b=_.wl(Q,{},f,b==null?void 0:(a=b.context)==null?void 0:(T=a.clickTracking)==null?void 0:T.clickTrackingParams).then(function(G){return{response:G}})}else b=
this.nextContinuation.usePost?f.postData(A,b):f.fetchData(A);
b.then(this.updateNextContinuationData_.bind(this,A));this.pendingContinuationRequest_=b;this.startListeningForNavigate_()},
updateNextContinuationData_:function(A,Q){var b=this;_.Wn("ncl");this.pendingContinuationRequest_=void 0;if(Q){var f={};this.nextContinuation&&(f=this.nextContinuation);if(Q.response&&Q.response.continuationContents&&Q.response.continuationContents[f.continuationType]){A=Q.response.continuationContents[f.continuationType];var a=f.header||"data.header",T=A[f.responseHeaderKey||"header"];T&&this.set(a,T);a=f.contentsArray||"data.contents";T=this.getContents_(A,f.responseContentsKey||"contents")||[];
this.pathExists_(a)?(T.unshift(a),this.push.apply(this,T)):this.set(a,T);T&&(Wue(_.IP(),Q.response,this.hostElement,function(G){_.pD(b.hostElement,"yt-store-grafted-ve-action",[G])}),_.Bn(this.hostElement,"yt-next-continuation-data-updated",{continuationData:Q,
page:this,contentsArray:a}));this.set(f.continuationsArray||"data.continuations",A[f.responseContinuationsKey||"continuations"]||[])}else Q.reload?_.Wv(new _.IO("Reloading from continuation is unsupported")):Q.responseContext&&Q.responseContext.errors||(delete Q.xsrf_token,delete Q.timing,delete Q.endpoint,delete Q.csn,Q.responseContext&&delete Q.responseContext.serviceTrackingParams,a={request:_.DR(A,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(Q).sort()},Q.response&&(a.responseContentKeys=
Object.keys(Q.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(a.continuationType=this.nextContinuation.continuationType.substr(0,256)),Q=new _.IO("Malformed continuation",a),A.indexOf("/comment_service_ajax")==0?_.Wv(Q):_.en(Q)),this.set(f.continuationsArray||"data.continuations",[])}else _.hq(new _.IO("Missing continuation response",A))},
getContents_:function(A,Q){Q=Q.split(".");return _.j2.getValueByKeys(A,Q)},
pathExists_:function(A){var Q=this;A=A.toString().split(".");for(var b=0;b<A.length;b++)if(Q=Q[A[b]],Q===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var gd$;var ecp;var A_=function(){var A=_.q.apply(this,arguments)||this;A.triggered_=!1;return A};
_.O(A_,_.q);_.d=A_.prototype;_.d.attached=function(){this.maybeTriggerAutoload()};
_.d.detached=function(){this.hasBeenTriggered_=!1};
_.d.onPrescanVisible=function(){this.onShow()};
_.d.onShow=function(){this.showButton||this.trigger()};
_.d.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Bn(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.d.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.d.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.d.computeLabel_=function(A,Q){return A===void 0?null:A.label||!Q?A.label:this.showMoreText_};
_.d.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.d.getContinuationUrl=function(A){var Q={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(Q.itct=this.data.clickTrackingParams);return _.$Q(A,Q)};
_.d.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
A_.prototype.showButtonChanged_=A_.prototype.showButtonChanged_;A_.prototype.observeData_=A_.prototype.observeData_;_.E([_.I(_.NO.YtVisibilityBehavior),_.c("design:type",Object)],A_.prototype,"ytVisibilityBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],A_.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],A_.prototype,"showButton",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],A_.prototype,"showIcon",void 0);_.E([_.C({computed:"computeLabel_(data, showButton)"}),_.c("design:type",Object)],A_.prototype,"label",void 0);_.E([_.C({value:_.sr(_.JQ("SHOW_MORE",void 0,"Show More"))}),_.c("design:type",Object)],A_.prototype,"showMoreText_",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],A_.prototype,"spinnerActive_",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],A_.prototype,"hasBeenTriggered_",void 0);
_.E([_.C({value:void 0}),_.c("design:type",String)],A_.prototype,"observeVisibleOption",void 0);_.E([_.C({value:void 0}),_.c("design:type",String)],A_.prototype,"observeHiddenOption",void 0);_.E([_.C({value:"observe_once"}),_.c("design:type",Object)],A_.prototype,"observePrescanOption",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],A_.prototype,"observeData_",null);
_.E([_.iN("showButton"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],A_.prototype,"showButtonChanged_",null);_.E([_.Ec({is:"yt-next-continuation",disableElementRegistration:!0})],A_);
_.W(A_,"yt-next-continuation",function(){if(ecp===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;gd$===void 0&&(gd$=document.createElement("template"));var f=gd$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ecp=A}A=ecp;return A},{mode:2});var hcr;var WaL;var QT=function(){return _.q.apply(this,arguments)||this};
_.O(QT,_.q);QT.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],QT.prototype,"data",void 0);_.E([_.Ec({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],QT);
_.W(QT,"yt-music-pass-small-feature-info-renderer",function(){if(WaL===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;hcr===void 0&&(hcr=document.createElement("template"));var f=hcr;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);WaL=A}A=WaL;return A},{mode:2});_.xo("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var bL=function(){var A=_.q.apply(this,arguments)||this;A.isCollapsible=!1;A.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return A};
_.O(bL,_.q);_.d=bL.prototype;_.d.computeIsCollapsible=function(A){return!!(((A==null?0:A.showMoreText)||(A==null?0:A.visibleRowCount))&&(A==null?0:A.isCollapsible))};
_.d.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"}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.d.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.d.onIronResize=function(){var A=this;_.Yl(this,"updateGridInitItems",function(){A.maybeUpdateInitialItemsDisplayed()})};
_.d.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var A=this.getVisibleWidth();A!==0&&(A=Math.floor(A/214)*(this.data.visibleRowCount||2),A!==this.initialCount&&(this.initialCount=A,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.d.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.d.computeExpandVisible=function(A,Q,b,f){return A&&Q&&b&&!!f&&!!f.showMoreText};
_.d.computeShowMoreButton=function(A){return{text:A,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.d.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.d.initCollapsed=function(){var A=this;this.ytLazyListBehavior.canShowMore=!1;var Q;(this.collapsed=!((Q=this.data)==null||!Q.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.mL(this,function(){_.Pn(A.hostElement,"yt-refit-popups-action")})};
_.d.fillRestIfNotCollapsible=function(){var A=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!A||this.ytLazyListBehavior.fillRemainingListItems()};
_.d.computeViewAllHidden=function(A,Q){return A||!Q.viewAllEndpoint};
bL.prototype.fillRestIfNotCollapsible=bL.prototype.fillRestIfNotCollapsible;bL.prototype.initCollapsed=bL.prototype.initCollapsed;bL.prototype.onIronResize=bL.prototype.onIronResize;bL.prototype.persistentGuideChanged=bL.prototype.persistentGuideChanged;_.E([_.I(_.eI),_.c("design:type",Object)],bL.prototype,"ironResizableBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],bL.prototype,"ytLazyListBehavior",void 0);_.E([_.I(_.mG.YtNextContinuationBehavior),_.c("design:type",Object)],bL.prototype,"ytNextContinuationBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],bL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.I(_.sM),_.c("design:type",Object)],bL.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bL.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],bL.prototype,"collapsed",void 0);_.E([_.C(),_.c("design:type",Number)],bL.prototype,"initialCount",void 0);_.E([_.C({computed:"computeShowMoreButton(data.showMoreText)"}),_.c("design:type",Object)],bL.prototype,"showMoreButton",void 0);
_.E([_.C({computed:"computeIsCollapsible(data)"}),_.c("design:type",Object)],bL.prototype,"isCollapsible",void 0);_.E([_.V1("#items"),_.c("design:type",HTMLElement)],bL.prototype,"items",void 0);_.E([_.I_("guidePersistentAndVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bL.prototype,"persistentGuideChanged",null);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bL.prototype,"onIronResize",null);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bL.prototype,"initCollapsed",null);_.E([_.I_("canShowMore"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bL.prototype,"fillRestIfNotCollapsible",null);_.E([_.h({is:"ytd-grid-renderer",disableElementRegistration:!0})],bL);
_.W(bL,"ytd-grid-renderer",function(){if(Hx9!==void 0)return Hx9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Hx9=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var fB=function(){return _.q.apply(this,arguments)||this};
_.O(fB,_.q);
fB.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fB.prototype,"data",void 0);_.E([_.h({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],fB);
_.W(fB,"ytd-carousel-ad-renderer",function(){if(V8j!==void 0)return V8j;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return V8j=A},{mode:1});var vdr;var an=function(){return _.q.apply(this,arguments)||this};
_.O(an,_.q);_.d=an.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,an.JSC$15257_CLICK_LOCATION_ID_MAP))};
_.d.onSitelinkTap=function(A){A.stopPropagation();var Q,b,f=A==null?void 0:(Q=A.model)==null?void 0:(b=Q.item)==null?void 0:b.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,A,!1)};
_.d.onTap=function(A){var Q=this.data&&this.data.content&&this.data.content.navigationEndpoint;Q&&this.ytSparklesClickLocationBehavior.handleClick(Q,A,!1)};
_.d.sendImpression=function(){if(this.data&&this.data.content)for(var A=_.F(this.data.content.impressionEndpoints||[]),Q=A.next();!Q.done;Q=A.next()){Q=_.F(Q.value.loggingUrls||[]);for(var b=Q.next();!b.done;b=Q.next())b=b.value,b.baseUrl&&wO(b.baseUrl,b.attributionSrcMode)}};
an.prototype.onTap=an.prototype.onTap;an.prototype.dataChanged=an.prototype.dataChanged;an.JSC$15257_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],an.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],an.prototype,"data",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],an.prototype,"dataChanged",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],an.prototype,"onTap",null);_.E([_.h({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],an);
_.W(an,"ytd-promoted-sparkles-text-search-renderer",function(){if(vdr!==void 0)return vdr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return vdr=A},{mode:1});var Edv;var TA=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.O(TA,_.q);_.d=TA.prototype;
_.d.configureRendererStamper=function(){return{"data.menu":{id:_.K("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]]"}}}}}};
_.d.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.d.computeHasAdBadge=function(A){return!(A==null||!A.adBadge)};
_.d.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",TA.JSC$15266_DEFAULT_AD_BADGE_RENDERER),_.Pj(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,TA.JSC$15266_CLICK_LOCATION_ID_MAP))};
_.d.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var A;(((A=this.data)==null?void 0:A.impressionCommands)||[]).forEach(function(Q){Q=_.F(Q.loggingUrls||[]);for(var b=Q.next();!b.done;b=Q.next())b=b.value,b.baseUrl&&wO(b.baseUrl,b.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.d.onTap=function(A){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint,f;(Q=(f=this.data)==null?void 0:f.thumbnailNavigationEndpoint)&&_.dz(_.mW(A),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(Q,A,!1):b&&this.ytSparklesClickLocationBehavior.handleClick(b,A,!1)};
_.d.handleMuteAd=function(){this.collapsed=!0};
_.d.attached=function(){var A=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Qr.Object.defineProperties(TA.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
TA.prototype.dataChanged=TA.prototype.dataChanged;
TA.JSC$15266_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"]]);
TA.JSC$15266_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.E([_.I(xX),_.c("design:type",Object)],TA.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.I([_.PJ.YtActionHandlerBehavior]),_.c("design:type",Object)],TA.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],TA.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],TA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],TA.prototype,"collapsed",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.c("design:type",Boolean)],TA.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],TA.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.c("design:type",Boolean)],TA.prototype,"fixAlignmentSmallScreens",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs_square")}}),
_.c("design:type",Boolean)],TA.prototype,"useBiggerThumbsSquare",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.mediaHoverOverlay"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],TA.prototype,"hideHoverOverlay",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],TA.prototype,"webSearchLayout",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],TA.prototype,"webSearchLayoutLandscape",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],TA.prototype,"webSearchLayoutSquare",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data.promotedSparklesWebStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],TA.prototype,"sparklesCtaNoBackground",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.actionButton"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],TA.prototype,"hideActionButton",null);_.E([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.c("design:type",Object)],TA.prototype,"buttonOverride",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.c("design:type",Boolean)],TA.prototype,"hasNewAdBadge",void 0);_.E([_.H("data.promotedSparklesWebStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],TA.prototype,"useRoundedBadge",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],TA.prototype,"dataChanged",null);_.E([_.h({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],TA);
_.W(TA,"ytd-promoted-sparkles-web-renderer",function(){if(Edv!==void 0)return Edv;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Edv=A},{mode:1});var x59;var d5=function(){var A=_.q.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.enableMonoStyle=_.K("enable_default_mono_cta_migration_web_client");return A};
_.O(d5,_.q);_.d=d5.prototype;_.d.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]]"}}}}}};
_.d.computeShowCta=function(A){return!(A==null||!A.ctaRenderer)};
_.d.onCtaClick=function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.ctaRenderer)==null?void 0:(b=Q.buttonRenderer)==null?void 0:b.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.d.onWatchButtonClick=function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.watchButtonRenderer)==null?void 0:(b=Q.buttonRenderer)==null?void 0:b.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.d.onTap=function(){};
_.d.dataChanged=function(){if(this.data){var A;_.K("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",d5.JSC$15270_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",d5.JSC$15270_DEFAULT_CLICK_LOCATION_BEHAVIOR,d5.JSC$15270_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))}};
_.d.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var A=_.F(this.data.impressionUrls),Q=A.next();!Q.done;Q=A.next())Q=Q.value,MMW(Q,KXe(Q));this.data.impressionsFired=!0}};
_.d.maybeComputeHref=function(){return null};
_.d.computeIsShortDR=function(A){return!(A==null||!A.watchButtonRenderer)&&!(A==null||!A.ctaRenderer)&&!!this.enableShortDR};
_.d.computeIsNewUiOrShortDr=function(A){return!!this.enableUiUpdate||this.computeIsShortDR(A)};
_.d.computeIsNewUiAndNotShortDr=function(A){return!!this.enableUiUpdate&&!this.computeIsShortDR(A)};
_.d.computeHideAvatar=function(A){return!((A==null?0:A.channelThumbnail)&&this.computeIsNewUiOrShortDr(A))};
_.d.onClick=function(A){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint;if(this.enableShortDR&&b&&(_.V(b,_.sv)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(b,A,!!_.V(b,_.sv)),A.stopPropagation();else if(b&&_.V(b,_.sv))this.ytSparklesClickLocationBehavior.handleClick(b,A,!0),A.stopPropagation();else if(b){var f,a;((f=this.data)==null?0:f.navigationEndpoint)&&((a=this.data)==null?0:a.adPlaybackContextParams)&&(Q=this.data.navigationEndpoint,A=this.data.adPlaybackContextParams,
Q.commandMetadata&&_.V(Q.commandMetadata,_.KD)&&_.V(Q.commandMetadata,_.KD).url&&(Q=_.YQ(_.V(Q.commandMetadata,_.KD).url).adurl)&&_.KEi(Q)&&_.bi(_.yr(Q),{encoded_ad_playback_context:A}));this.ytComponentBehavior.resolveCommand(b)}};
_.d.computeButtonOverride=function(A){if(this.computeIsNewUiOrShortDr(A))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.d.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.d.onThumbnailContainerClick=function(A){this.onClick(A)};
_.d.computeThumbnailWidth=function(A,Q){return A?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:360};
_.d.attached=function(){var A=this,Q;_.K("enable_inline_muted_playback_on_web_search")&&((Q=this.data)==null?0:Q.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){var A;_.K("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15271_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Qsj})};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15271_inlinePreviewHoverListener)==null||f7(A)};
d5.prototype.dataChanged=d5.prototype.dataChanged;d5.prototype.onTap=d5.prototype.onTap;d5.JSC$15270_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};d5.JSC$15270_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
d5.JSC$15270_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.E([_.I(xX),_.c("design:type",Object)],d5.prototype,"ytdActiveViewBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],d5.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],d5.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.V1("#main-container"),_.c("design:type",HTMLElement)],d5.prototype,"mainContainer",void 0);_.E([_.C(),_.c("design:type",Object)],d5.prototype,"isInlinePreviewTriggered",void 0);_.E([_.C(),_.c("design:type",Object)],d5.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.c("design:type",Boolean)],d5.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_video_display_compact_button_group_for_desktop_search")}}),
_.c("design:type",Boolean)],d5.prototype,"enableShortDR",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_vac_ui_update_for_desktop_search")}}),
_.c("design:type",Boolean)],d5.prototype,"enableUiUpdate",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],d5.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.c("design:type",Boolean)],d5.prototype,"showCta",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.c("design:type",Boolean)],d5.prototype,"isShortDr",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.c("design:type",Boolean)],d5.prototype,"isShortDrOrNewUi",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.c("design:type",Boolean)],d5.prototype,"isNewUiAndNotShortDr",void 0);_.E([_.C({computed:"computeButtonOverride(data)"}),_.c("design:type",Object)],d5.prototype,"buttonOverride",void 0);_.E([_.C({computed:"computeSecondaryButtonOverride(data)"}),_.c("design:type",Object)],d5.prototype,"secondaryButtonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],d5.prototype,"enableMonoStyle",void 0);
_.E([_.V1("ytd-thumbnail"),_.c("design:type",HTMLElement)],d5.prototype,"thumbnail",void 0);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d5.prototype,"onTap",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d5.prototype,"dataChanged",null);_.E([_.h({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],d5);
_.W(d5,"ytd-promoted-video-renderer",function(){if(x59!==void 0)return x59;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return x59=A},{mode:1});var cNr;var Fo=function(){var A=_.q.apply(this,arguments)||this;A.useRoundedBadge=!0;A.sitelinkIds=[];return A};
_.O(Fo,_.q);_.d=Fo.prototype;
_.d.configureRendererStamper=function(){return{"data.menu":{id:_.K("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]]"}}}}}};
_.d.dataChanged=function(){var A;(A=this.data)!=null&&A.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Fo.JSC$15276_CLICK_LOCATION_ID_MAP)};
_.d.onTap=function(A){var Q,b=(Q=this.data)==null?void 0:Q.navigationCommand;b&&!_.dz(_.mW(A),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(b,A,!1)};
_.d.onSitelinkTap=function(A){var Q,b,f=A==null?void 0:(Q=A.model)==null?void 0:(b=Q.item)==null?void 0:b.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,A,!1)};
_.d.configureSitelinkClickTargets=function(){var A=this,Q,b,f=(Q=this.data)==null?void 0:(b=Q.clickLocationTargets)==null?void 0:b.find(function(a){return a.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
f&&_.Bj(this.hostElement).querySelectorAll(".sitelink").forEach(function(a){_.Pj(a,"yt-simple-endpoint",!0);A.sitelinkIds.push(a.id);var T,G;(T=A.ytSparklesClickLocationBehavior)==null||(G=T.clickTargetMap)==null||G.set(a.id,f)})};
_.d.sendImpression=function(){var A,Q,b=((A=this.data)==null?void 0:(Q=A.impressionCommand)==null?void 0:Q.loggingUrls)||[];A=_.F(b);for(Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.baseUrl&&wO(Q.baseUrl,Q.attributionSrcMode)};
_.d.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Qr.Object.defineProperties(Fo.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Fo.prototype.onTap=Fo.prototype.onTap;Fo.prototype.dataChanged=Fo.prototype.dataChanged;Fo.JSC$15276_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],Fo.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Fo.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Fo.prototype,"showFavicon",null);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.c("design:type",Boolean)],Fo.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],Fo.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.c("design:type",Boolean)],Fo.prototype,"enableThumbnailScalingFix",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fo.prototype,"dataChanged",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Fo.prototype,"onTap",null);_.E([_.h({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Fo);
_.W(Fo,"ytd-text-image-no-button-layout-renderer",function(){if(cNr!==void 0)return cNr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return cNr=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var zcN;var GA=function(){var A=_.q.apply(this,arguments)||this;A.isInlinePlaybackState=!1;A.uiUpdate=_.K("web_modern_buttons");A.hideCta=_.K("hide_cta_for_home_web_video_ads");A.noBottomMargin=!1;A.animateInTimeStamp=_.GP("hide_cta_for_home_web_video_ads_animate_in_time");A.animateInCta=!1;A.isHovered=!1;A.enableMonoStyle=_.K("enable_default_mono_cta_migration_web_client");A.player=null;A.JSC$15283_playerEvents=new Map;A.JSC$15283_preventProgressSaveTimer=null;A.delayedCtaJobId=null;return A};
_.O(GA,_.q);_.d=GA.prototype;_.d.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]]"}}}}}};
_.d.attached=function(){this.JSC$15283_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15283_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.K("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.d.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15283_playerEvents)};
_.d.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",GA.JSC$15282_DEFAULT_CLICK_LOCATION_BEHAVIOR,GA.JSC$15282_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.d.hoverChanged=function(){var A=this;this.delayedCtaJobId&&(_.j7.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.K("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.o$(_.j7,function(){A.buttonContainer.classList.add("show-delayed-buttons")},_.GP("delayed_cta_on_web_delay_milliseconds")))};
_.d.setPlayer=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return(Q=_.Pn(A.hostElement,"yt-get-inline-preview-player-action"))&&Q[0]?b.yield(Q[0].getPlayerPromise(),3):b.jumpTo(0);A.player=b.yieldResult;A.ytPlayerListenerBehavior.listenToPlayerEvents(A.player,A.JSC$15283_playerEvents);_.Oi(b)})};
_.d.onPlaybackStart=function(){var A=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15283_preventProgressSaveTimer=_.LE(_.j7,function(){A.JSC$15283_preventProgressSaveTimer=null},1E4))};
_.d.onVideoProgress=function(A){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&A>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.d.resetPreventProgressSaveTimer=function(){_.j7.cancelJob(this.JSC$15283_preventProgressSaveTimer);this.JSC$15283_preventProgressSaveTimer=null};
_.d.getSimpleString=function(A){return _.mO(A)};
_.d.onClick=function(A){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint,f;Q=(f=this.data)==null?void 0:f.channelEndpoint;var a,T;(f=(T=_.V((a=this.data)==null?void 0:a.adCtaButton,_.wE))==null?void 0:T.command)&&_.dz(_.mW(A),this.hostElement,["call-to-action"])?_.K("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(f,A,!1):Q&&_.dz(_.mW(A),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(Q,A,!1):!_.dz(_.mW(A),this.hostElement,["secondary-button"])&&b&&(_.K("enable_short_dr_for_desktop_launchable")?(a=!!_.V(b,_.sv),this.isInlinePlaybackState&&a&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(b,A,a)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(b,A,!0)))}};
_.d.updateWatchEndpointStartTime=function(){var A,Q;this.player&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&((Q=this.data)==null?0:Q.navigationEndpoint)&&!this.JSC$15283_preventProgressSaveTimer&&(A=Math.floor(this.player.getCurrentTime()),_.V(this.data.navigationEndpoint,_.sv).startTimeSeconds=A,_.V(this.data.inlinePlaybackEndpoint,_.sv).startTimeSeconds=A)};
_.d.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.d.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Qr.Object.defineProperties(GA.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.K("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.watchButton)&&!((Q=this.data)==null||!Q.adCtaButton)}}});
GA.prototype.hoverChanged=GA.prototype.hoverChanged;GA.prototype.dataChanged=GA.prototype.dataChanged;
GA.JSC$15282_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"]]);
GA.JSC$15282_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],GA.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],GA.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],GA.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],GA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GA.prototype,"isInlinePlaybackState",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],GA.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GA.prototype,"uiUpdate",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GA.prototype,"hideCta",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GA.prototype,"noBottomMargin",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GA.prototype,"animateInCta",void 0);_.E([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.c("design:type",Object)],GA.prototype,"buttonOverride",void 0);
_.E([_.C({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.c("design:type",Object)],GA.prototype,"secondaryButtonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GA.prototype,"isHovered",void 0);_.E([_.V1("#button-container"),_.c("design:type",HTMLElement)],GA.prototype,"buttonContainer",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],GA.prototype,"typographyBump",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("typographyBump"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],GA.prototype,"typographyBumpV2",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GA.prototype,"enableMonoStyle",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],GA.prototype,"dataChanged",null);
_.E([_.iN("isHovered"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],GA.prototype,"hoverChanged",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],GA.prototype,"isButtonGroup",null);_.E([_.h({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],GA);
_.W(GA,"ytd-ad-inline-playback-meta-block",function(){if(zcN!==void 0)return zcN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zcN=A},{mode:_.UG("kevlar_poly_si_batch_j065")?1:2});var wAx;var By=function(){var A=_.q.apply(this,arguments)||this;A.noBottomMargin=!1;A.isInlinePreviewTriggered=!1;A.JSC$15288_activeViewMeasurementDataResolver=_.Qh();return A};
_.O(By,_.q);_.d=By.prototype;_.d.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$15288_activeViewMeasurementDataResolver.promise.then(function(Q){A.ytdActiveViewBehavior.enableActiveViewMeasurement(Q,15)});
_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){this.clearInlinePreviewHoverListeners();_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15288_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:this.JSC$15288_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Qsj})};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15288_inlinePreviewHoverListener)==null||f7(A)};
_.d.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$15288_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",By.JSC$15287_DEFAULT_CLICK_LOCATION_BEHAVIOR,By.JSC$15287_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"));var Q;if((Q=this.data)==
null?0:Q.forceImpAutoplay){var b;(b=this.JSC$15288_inlinePreviewHoverListener)==null||lIX(b)}};
_.d.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.d.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(b,A,!!_.V(b,_.sv));A.stopPropagation()}};
_.d.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.d.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Q,b,f=(b=_.V((Q=this.data)==null?void 0:Q.onImpression,_.LD))==null?void 0:b.commands;f&&(f.forEach(function(a){a.clickTrackingParams&&delete a.clickTrackingParams;A.ytComponentBehavior.resolveCommand(a)}),this.data.impressionsFired=!0)}};
_.Qr.Object.defineProperties(By.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15288_inlinePreviewHoverListener)==null?0:ww(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
By.prototype.onTypographyBumpChanged=By.prototype.onTypographyBumpChanged;By.prototype.onDataChanged=By.prototype.onDataChanged;By.JSC$15287_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);By.JSC$15287_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],By.prototype,"ytComponentBehavior",void 0);_.E([_.I(xX),_.c("design:type",Object)],By.prototype,"ytdActiveViewBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],By.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],By.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.NC),_.c("design:type",Object)],By.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],By.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],By.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],By.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],By.prototype,"noBottomMargin",void 0);
_.E([_.C(),_.c("design:type",Object)],By.prototype,"isInlinePreviewTriggered",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],By.prototype,"miniMode",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],By.prototype,"typographyBump",void 0);_.E([_.V1("ytd-thumbnail"),_.c("design:type",HTMLElement)],By.prototype,"thumbnail",void 0);_.E([_.V1("#dismissible"),_.c("design:type",HTMLElement)],By.prototype,"JSC$15288_dismissibleMedia",void 0);
_.E([_.V1("ytd-ad-inline-playback-meta-block"),_.c("design:type",HTMLElement)],By.prototype,"adInlinePlaybackMetaBlock",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],By.prototype,"onDataChanged",null);_.E([_.I_("typographyBump"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],By.prototype,"onTypographyBumpChanged",null);
_.E([_.H("lockupIsHovered"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],By.prototype,"isHovered",null);_.E([_.h({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],By);
_.W(By,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(wAx!==void 0)return wAx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return wAx=A},{mode:1});var uUx;var pB=function(){var A=_.q.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.JSC$15291_activeViewMeasurementDataResolver=_.Qh();return A};
_.O(pB,_.q);_.d=pB.prototype;_.d.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$15291_activeViewMeasurementDataResolver.promise.then(function(Q){A.ytdActiveViewBehavior.enableActiveViewMeasurement(Q,15)})};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15291_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:this.JSC$15291_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Qsj})};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15291_inlinePreviewHoverListener)==null||f7(A)};
_.d.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$15291_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",pB.JSC$15290_DEFAULT_CLICK_LOCATION_BEHAVIOR,pB.JSC$15290_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))};
_.d.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(b,A,!0);A.stopPropagation()}};
_.d.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.d.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var Q,b,f=(b=_.V((Q=this.data)==null?void 0:Q.onImpression,_.LD))==null?void 0:b.commands;f&&(f.forEach(function(a){a.clickTrackingParams&&delete a.clickTrackingParams;_.fJ().resolve(_.de).resolveCommand(a,{form:{element:A.hostElement}})}),this.data.impressionsFired=!0)}};
_.Qr.Object.defineProperties(pB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15291_inlinePreviewHoverListener)==null?0:ww(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
pB.prototype.onDataChanged=pB.prototype.onDataChanged;pB.JSC$15290_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);pB.JSC$15290_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.I(xX),_.c("design:type",Object)],pB.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],pB.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],pB.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],pB.prototype,"ytdReduxBehavior",void 0);
_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],pB.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pB.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],pB.prototype,"isInlinePreviewTriggered",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],pB.prototype,"miniMode",void 0);_.E([_.V1("ytd-thumbnail"),_.c("design:type",HTMLElement)],pB.prototype,"thumbnail",void 0);
_.E([_.V1("#dismissible"),_.c("design:type",HTMLElement)],pB.prototype,"JSC$15291_dismissibleMedia",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pB.prototype,"onDataChanged",null);_.E([_.H("lockupIsHovered"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],pB.prototype,"isHovered",null);_.E([_.h({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],pB);
_.W(pB,"ytd-video-display-full-buttoned-renderer",function(){if(uUx!==void 0)return uUx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return uUx=A},{mode:1});var pS=function(A,Q,b,f){f=f===void 0?!1:f;_.A4.call(this,A);this.adsClientErrorMessage=b;this.aggressivelySample=f;this.args=[];Q&&this.args.push(Q)};
_.O(pS,_.A4);var Gk=function(A,Q,b,f){f=f===void 0?!1:f;_.A4.call(this,A);this.adsClientErrorMessage=b;this.aggressivelySample=f;this.args=[];Q&&this.args.push(Q)};
_.O(Gk,_.A4);var Zxp=function(A){_.k$.call(this);var Q=this;this.initializationFunction=A;this.instance=null;this.addOnDisposeCallback(function(){_.AT(Q.instance);Q.instance=null})};
_.O(Zxp,_.k$);Zxp.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Q3("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Zg6=function(){var A=new Map;[].forEach(function(Q){A.set(Q.JSC$30248_getType(),Q)});
this.getters=A};new Promise(function(){});var xUY=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"]]),vef=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"}]]),yNW=function(A){this.experimentApiProvider=A;A=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=A<.1};var Py=function(A,Q,b,f){_.k$.call(this);this.adsControlFlowEventListeners=Q;this.adEventLogger=b;this.experimentApiProvider=f;this.adsControlFlowManagerHelper=A(this,this,this,this,this);_.SY(this,this.adsControlFlowManagerHelper);A=_.F(Q);for(Q=A.next();!Q.done;Q=A.next())_.SY(this,Q.value)};
_.O(Py,_.k$);var YUp=function(A,Q,b,f){Xo(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",Q,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f);A=_.F(A.adsControlFlowEventListeners);for(f=A.next();!f.done;f=A.next())YUp(f.value,Q,b)};
_.d=Py.prototype;_.d.onOpportunityProcessedExternallyManaged=function(A,Q,b,f){Xo(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",A,b,Q,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f)};
_.d.onSlotReceivedExternallyManaged=function(A,Q){S0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",A,Q)};
_.d.onSlotEntered=function(A){if(Uw(this.adsControlFlowManagerHelper,A)!=null){S0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",A);this.adsControlFlowManagerHelper.onSlotEntered(A);for(var Q=_.F(this.adsControlFlowEventListeners),b=Q.next();!b.done;b=Q.next())b.value.onSlotEntered(A);if(Uw(this.adsControlFlowManagerHelper,A)!=null&&Uw(this.adsControlFlowManagerHelper,A).isOccupyingSlotType()&&LB(this.adsControlFlowManagerHelper,A)&&!D5W(this.adsControlFlowManagerHelper,A)){var f;M2(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",A,(f=LB(this.adsControlFlowManagerHelper,A))!=null?f:void 0);A=Uw(this.adsControlFlowManagerHelper,A);A.slotLifecycleStage!=="entered"&&lL(A.slot,A.slotLifecycleStage,"enterLayoutForSlot");A.slotLifecycleStage="rendering";A.registeredLayoutRenderingAdapter.startRendering(A.layout)}}};
_.d.onSlotExited=function(A){if(Uw(this.adsControlFlowManagerHelper,A)!=null){S0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",A);this.adsControlFlowManagerHelper.onSlotExited(A);for(var Q=_.F(this.adsControlFlowEventListeners),b=Q.next();!b.done;b=Q.next())b.value.onSlotExited(A);Uw(this.adsControlFlowManagerHelper,A)!=null&&Uw(this.adsControlFlowManagerHelper,A).markedForUnscheduleAfterOutboundAdapterRequests&&$59(this,A)}};
_.d.onLayoutReceivedExternallyManaged=function(A,Q,b){A.managerLayer!=="core"&&M2(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",A,Q,b)};
var NC$=function(A,Q,b){if(Uw(A.adsControlFlowManagerHelper,Q)!=null){M2(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,b);A=_.F(A.adsControlFlowEventListeners);for(var f=A.next();!f.done;f=A.next())NC$(f.value,Q,b)}};
Py.prototype.onLayoutExited=function(A,Q,b){if(Uw(this.adsControlFlowManagerHelper,A)!=null){M2(this.adEventLogger,Ee4(b),A,Q);this.adsControlFlowManagerHelper.onLayoutExited(A,Q);for(var f=_.F(this.adsControlFlowEventListeners),a=f.next();!a.done;a=f.next())a.value.onLayoutExited(A,Q,b);(b=LB(this.adsControlFlowManagerHelper,A))&&Q.layoutId===b.layoutId&&ssy(this,A)}};
Py.prototype.disposeInternal=function(){var A=m5p(this.adsControlFlowManagerHelper);A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())$59(this,Q.value);_.k$.prototype.disposeInternal.call(this)};
var $59=function(A,Q){if(Uw(A.adsControlFlowManagerHelper,Q)!=null)if(Uw(A.adsControlFlowManagerHelper,Q).JSC$30278_isSlotExitRequested()||Uw(A.adsControlFlowManagerHelper,Q).JSC$30278_isLayoutExitRequested())Uw(A.adsControlFlowManagerHelper,Q).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Uw(A.adsControlFlowManagerHelper,Q).isOccupyingSlotType())Uw(A.adsControlFlowManagerHelper,Q).markedForUnscheduleAfterOutboundAdapterRequests=!0,ssy(A,Q);else if(Uw(A.adsControlFlowManagerHelper,Q).JSC$30278_isSlotFillRequested())Uw(A.adsControlFlowManagerHelper,
Q).markedForUnscheduleAfterOutboundAdapterRequests=!0,Uw(A.adsControlFlowManagerHelper,Q)!=null&&(S0(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",Q),Q=Uw(A.adsControlFlowManagerHelper,Q),Q.fulfillmentLifecycleStage="fill_cancel_requested",Q.registeredFulfillmentAdapter.cancelSlotFilling());else{var b=LB(A.adsControlFlowManagerHelper,Q),f;A.experimentApiProvider.get();(f=_.K("h5_enable_layout_unscheduling_events"))&&(b?ARN(A,Q,b):_.Q3(Error("Hh"),Q,b,void 0,!1));S0(A.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",Q);var a=Uw(A.adsControlFlowManagerHelper,Q),T=Q.slotEntryTrigger,G=a.registeredSlotEntryTriggerAdapters.get(T.triggerId);G&&(G.unregisterTrigger(T),a.registeredSlotEntryTriggerAdapters.delete(T.triggerId));T=_.F(Q.slotFulfillmentTriggers);for(G=T.next();!G.done;G=T.next()){G=G.value;var p=a.registeredFulfillmentTriggerAdapters.get(G.triggerId);p&&(p.unregisterTrigger(G),a.registeredFulfillmentTriggerAdapters.delete(G.triggerId))}T=_.F(Q.slotExpirationTriggers);
for(G=T.next();!G.done;G=T.next())if(G=G.value,p=a.registeredExpirationTriggerAdapters.get(G.triggerId))p.unregisterTrigger(G),a.registeredExpirationTriggerAdapters.delete(G.triggerId);a.hasLayout()&&(T=a.layout,KB(a,T.layoutExitNormalTriggers),KB(a,T.layoutExitSkipTriggers),KB(a,T.layoutExitMuteTriggers),KB(a,T.layoutExitUserInputSubmittedTriggers),KB(a,T.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=A.adsControlFlowManagerHelper;Uw(a,Q)&&(a=QoN(a,Q.slotType+"_"+Q.slotPhysicalPosition))&&a.delete(Q.slotId);S0(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Q);A=_.F(A.adsControlFlowEventListeners);for(a=A.next();!a.done;a=A.next())a=a.value,a.onSlotUnscheduled(Q),b&&!f&&ARN(a,Q,b)}},ARN=function(A,Q,b){M2(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
Q,b);
M2(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",Q,b);A=_.F(A.adsControlFlowEventListeners);for(var f=A.next();!f.done;f=A.next())f=f.value,b&&ARN(f,Q,b)},ssy=function(A,Q){if(Uw(A.adsControlFlowManagerHelper,Q)!=null&&Uw(A.adsControlFlowManagerHelper,Q).isOccupyingSlotType()){var b=LB(A.adsControlFlowManagerHelper,Q);
if(b&&D5W(A.adsControlFlowManagerHelper,Q)){if(Uw(A.adsControlFlowManagerHelper,Q)!=null){var f=A.adEventLogger,a;var T=((a=vef.get("abandoned"))==null?void 0:a.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";M2(f,T,Q,b);A=Uw(A.adsControlFlowManagerHelper,Q);A.slotLifecycleStage!=="rendering"&&lL(A.slot,A.slotLifecycleStage,"exitLayout");A.slotLifecycleStage="rendering_stop_requested";A.registeredLayoutRenderingAdapter.stopRendering(b,"abandoned")}}else{S0(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
Q);try{f=Uw(A.adsControlFlowManagerHelper,Q);if(!f)throw new Gk("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");f.slotLifecycleStage!=="enter_requested"&&f.slotLifecycleStage!=="entered"&&f.slotLifecycleStage!=="rendering"&&lL(f.slot,f.slotLifecycleStage,"exitSlot");f.slotLifecycleStage="exit_requested";if(f.registeredSlotAdapter===void 0)throw f.slotLifecycleStage="scheduled",new Gk("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
f.registeredSlotAdapter.exit()}catch(G){G instanceof Gk&&G.adsClientErrorMessage?(bhK(A.adEventLogger,G.adsClientErrorMessage,Q),_.Q3(G,Q,void 0,void 0,G.aggressivelySample)):(bhK(A.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Q),_.Q3(G,Q))}}}};var iL=function(A,Q,b,f,a,T){_.k$.call(this);this.registry=A;this.experimentApiProvider=T;this.slotMap=new Map};
_.O(iL,_.k$);var QoN=function(A,Q){return(A=A.slotMap.get(Q))?A:new Map},Uw=function(A,Q){return QoN(A,Q.slotType+"_"+Q.slotPhysicalPosition).get(Q.slotId)},m5p=function(A){var Q=[];
A.slotMap.forEach(function(b){b=_.F(b.values());for(var f=b.next();!f.done;f=b.next())Q.push(f.value.slot)});
return Q};
iL.prototype.onSlotEntered=function(A){A=Uw(this,A);A.slotLifecycleStage!=="enter_requested"&&lL(A.slot,A.slotLifecycleStage,"onSlotEntered");A.slotLifecycleStage="entered"};
var D5W=function(A,Q){A=Uw(A,Q);return A.hasLayout()&&A.isRendering()},LB=function(A,Q){(A=Uw(A,Q))?A.hasLayout()&&!A.layout&&_.Q3("Unexpected empty layout",Q):_.Q3("Unexpected undefined slotState",Q);
return(A==null?void 0:A.layout)||null};
iL.prototype.onSlotExited=function(A){A=Uw(this,A);A.slotLifecycleStage!=="exit_requested"&&lL(A.slot,A.slotLifecycleStage,"onSlotExited");A.slotLifecycleStage="scheduled"};
iL.prototype.onLayoutExited=function(A,Q){A=Uw(this,A);A.isPrimaryLayout(Q)&&(A.slotLifecycleStage!=="rendering_stop_requested"&&lL(A.slot,A.slotLifecycleStage,"onLayoutExited"),A.slotLifecycleStage="entered")};
var KB=function(A,Q){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=A.registeredLayoutExitTriggerAdapters.get(b.triggerId);f&&(f.unregisterTrigger(b),A.registeredLayoutExitTriggerAdapters.delete(b.triggerId))}},lL=function(A,Q,b){_.Q3("Slot stage was "+Q+" when calling method "+b,A)};var aq1=function(A){_.k$.call(this);this.deps=A;this.JSC$15341_adsControlFlowManager=fqL(this)};
_.O(aq1,_.k$);var fqL=function(A){var Q=new Py(function(b,f,a,T){return new iL(A.deps.registry,b,f,a,T,A.deps.experimentApiProvider)},new Set(u4X(A.deps.registry).concat(A.deps.listeners)),A.deps.adEventLogger,A.deps.experimentApiProvider);
_.SY(A,Q);return Q};var n_Y=function(){};var TT9=function(A,Q){_.k$.call(this);this.experimentApiProvider=A;this.eventLoggingSettingsProvider=Q;this.eventCount=0;this.premiumAdSeenEventLogger=koW()()};
_.O(TT9,_.k$);TT9.prototype.logEvent=function(A){Xo(this,A)};
var S0=function(A,Q,b,f){Xo(A,Q,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,f)},M2=function(A,Q,b,f,a){Xo(A,Q,void 0,void 0,void 0,b,f?f:void 0,void 0,void 0,b.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,void 0,a);
b=_.fJ().resolve(_.bu(Cu))==null?void 0:q3();Q=b==null?void 0:b.adsSeenHotConfig;b=b==null?void 0:b.adsHotConfig;(Q==null?0:Q.logOnAdsSeen)&&(b==null?0:b.webEnablePremiumAdsSeenLogging)&&da$(A,f?f:void 0,a)},bhK=function(A,Q,b){Xo(A,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:Q})},Xo=function(A,Q,b,f,a,T,G,p,P,U,L,M,l){l=l===void 0?0:l;
F1L(A.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"slot:",T,"layout:",G,"ping:",p,"Opportunity:",{opportunityType:b,associatedSlotId:f,slotsFromOpportunity:a,triggerBundle:P,adSlotLoggingData:U,adLayoutLoggingData:L});try{var J=function(){A.experimentApiProvider.get();if(Q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Q||_.Q3("Empty PACF event type",T,G);var n=A.eventLoggingSettingsProvider.get();var t;(t=n.alwaysIncludeDebugData)||(n.experimentApiProvider.get(),t=
!1);n=t;t={eventType:Q,eventOrder:++A.eventCount};var g={};T&&(g.slotData=zh4(n,T));if(G){var e={type:G.layoutType,controlFlowManagerLayer:xUY.get(G.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};n&&(e.debugData={layoutId:G.layoutId});g.layoutData=e}p&&(g.pingData={pingDispatchStatus:p.dispatchStatus,serializedAdPingMetadata:p.ping.serializedAdPingMetadata,pingIndex:p.index});P&&(g.triggerData=ciA(P.trigger,P.category));b&&(g.opportunityData=wNC(n,b,f,a));t.adClientData=g;U&&(t.serializedSlotAdServingData=
U.serializedSlotAdServingDataEntry);L&&(t.serializedAdServingData=L.serializedAdServingDataEntry);M&&(t.errorInfo=M);_.R4("adsClientStateChange",{adsClientEvent:t})}};
l&&l>0?_.Hv(_.Rc(),function(){return J()},l):J()}catch(n){F1L(A.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Hv(_.Rc(),function(){_.Q3(n instanceof Error?n:String(n),T,G,{pacf_message:"exception during pacf logging"})})}},da$=function(A,Q,b){if(Q){var f=Q.adLayoutLoggingData;
_.Hv(_.Rc(),function(){A.premiumAdSeenEventLogger!=null&&f&&_.R4("adsSeenClientLogging",{serializedAdServingDataEntry:f.serializedAdServingDataEntry})},b!=null?b:0)}};var GiN=function(A,Q){TT9.call(this,A,Q)};
_.O(GiN,TT9);var BT$=function(){},F1L=function(A,Q){return _.K(Q)};var PXL=function(){var A=new p9Y;this.JSC$15366_adsControlFlowManager=(new aq1(A)).JSC$15341_adsControlFlowManager},p9Y=function(){_.k$.call(this);
var A=this;this.experimentApiProvider=new Zxp(function(){return new BT$});
var Q=new Zxp(function(){return new yNW(A.experimentApiProvider)});
this.adEventLogger=new GiN(this.experimentApiProvider,Q);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.O(p9Y,_.k$);var X9W=function(){},SDj,J_=function(){SDj||(SDj=new X9W);
return SDj},VT=function(A){if(!A.JSC$15377_externallyManagedSlotAdapterCallback){var Q=(new PXL).JSC$15366_adsControlFlowManager;
A.JSC$15377_externallyManagedSlotAdapterCallback=Q}return A.JSC$15377_externallyManagedSlotAdapterCallback},UaL=function(A,Q,b){var f=Q.opportunityType,a=Error("Ih");
if(f!==void 0){var T=VT(A);YUp(T,f,void 0,b)}else _.Q3(a,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});T=[];if(Q.adSlotAndLayoutMetadata!==void 0){Q=_.F(Q.adSlotAndLayoutMetadata);for(var G=Q.next();!G.done;G=Q.next()){var p=G.value;if(G=p.adSlotMetadata)if(T.push(G),A.onSlotReceivedExternallyManaged(G,b),p.adLayoutMetadata){p=_.F(p.adLayoutMetadata);for(var P=p.next();!P.done;P=p.next())A.onLayoutReceivedExternallyManaged(G,P.value,b)}else b>0&&_.Q3("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else b>0&&_.Q3("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else b>0&&_.Q3("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(f!==void 0)A.onOpportunityProcessedExternallyManaged(f,T,void 0,b);else _.Q3(a,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
X9W.prototype.onSlotReceivedExternallyManaged=function(A,Q){A=Bi(A);if(A instanceof Gk)_.Q3(A,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else VT(this).onSlotReceivedExternallyManaged(A,Q)};
X9W.prototype.onLayoutReceivedExternallyManaged=function(A,Q,b){A=Bi(A);Q=yiF(Q);if(A instanceof Gk)_.Q3(A,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(Q instanceof pS)_.Q3(Q,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else VT(this).onLayoutReceivedExternallyManaged(A,Q,b)};
X9W.prototype.onOpportunityProcessedExternallyManaged=function(A,Q,b,f){var a=[];Q=_.F(Q);for(var T=Q.next();!T.done;T=Q.next())T=Bi(T.value),T instanceof Gk?_.Q3(T,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):a.push(T);VT(this).onOpportunityProcessedExternallyManaged(A,a,b,f)};
var L1r=function(A,Q){Q=Bi(Q);if(Q instanceof Gk)_.Q3(Q,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var b=VT(A);S0(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Q);b=_.F(b.adsControlFlowEventListeners);for(var f=b.next();!f.done;f=b.next())f=Uw(f.value,Q),f.slotLifecycleStage!=="not_scheduled"&&lL(f.slot,f.slotLifecycleStage,"onSlotScheduled"),f.slotLifecycleStage="scheduled";A=VT(A);S0(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Q);A=_.F(A.adsControlFlowEventListeners);
for(b=A.next();!b.done;b=A.next())b.value.onSlotEntered(Q)}},MaL=function(A,Q){Q=Bi(Q);
if(Q instanceof Gk)_.Q3(Q,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var b=VT(A);S0(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Q);b=_.F(b.adsControlFlowEventListeners);for(var f=b.next();!f.done;f=b.next())f.value.onSlotExited(Q);A=VT(A);S0(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",Q);A=_.F(A.adsControlFlowEventListeners);for(b=A.next();!b.done;b=A.next())b.value.onSlotUnscheduled(Q)}},lq$=function(A,Q,b){Q=Bi(Q);
b=yiF(b);if(Q instanceof Gk)_.Q3(Q,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(b instanceof pS)_.Q3(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var f=VT(A);M2(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",Q,b);f=_.F(f.adsControlFlowEventListeners);for(var a=f.next();!a.done;a=f.next())a.value.onLayoutScheduled(Q,b);A=VT(A);M2(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",Q,b);A=_.F(A.adsControlFlowEventListeners);
for(f=A.next();!f.done;f=A.next())NC$(f.value,Q,b)}},Ow=function(A,Q,b){Q=Bi(Q);
b=yiF(b);if(Q instanceof Gk)_.Q3(Q,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(b instanceof pS)_.Q3(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var f=VT(A);M2(f.adEventLogger,Ee4("normal"),Q,b);f=_.F(f.adsControlFlowEventListeners);for(var a=f.next();!a.done;a=f.next())a.value.onLayoutExited(Q,b,"normal");A=VT(A);A=_.F(A.adsControlFlowEventListeners);for(f=A.next();!f.done;f=A.next())ARN(f.value,Q,b)}};_.nB=_.aP(function(A){var Q=_.be(A,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});A=Object.assign({},Q);var b=Q.data;Q=Q.customCommandResolver;var f=(delete A.data,delete A.customCommandResolver,A);A=_.T9({visibilityCallback:function(p,P){var U,L=(U=b().interaction)==null?void 0:U.onFirstVisible;p&&(L&&_.D3(L),f.setOnErrorHandler()&&Yui(P))},
showOption:_.Fb});Q=_.NI(function(){return b().interaction},Q,function(){var p;
return(p=f.listenToTapEvent)==null?void 0:p.call(f)});
var a=_.F(_.pz(!1,void 0,"nqIeMd")),T=a.next().value,G=a.next().value;a=_.IY(function(p){var P;((P=f.setTouchEndHandler)==null?0:P.call(f))&&!T()&&(p.currentTarget.click(),G(!0),setTimeout(function(){G(!1)},100));
return!1});
return _.X("ad-image-view-model",{class:function(){var p,P=[((p=b().interaction)==null?0:p.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],U;((U=f.isGridViewEnabled)==null?0:U.call(f))&&P.push("ytwAdImageViewModelHostInGridView");return P.join(" ")},
el:_.d_(A,Q),"on:touchend":a},_.X("div",{class:"ytwAdImageViewModelHostImageContainer"},_.X(_.aY,{data:function(){var p;return{sources:b().imageSources,contentMode:(p=b().imageProperties)==null?void 0:p.contentMode}},
alt:function(){var p,P;return((p=b().interaction)==null?void 0:(P=p.accessibility)==null?void 0:P.label)||""},
targetHeight:f.targetHeight,targetWidth:f.targetWidth,preserveHeight:f.preserveHeight,preserveWidth:f.preserveWidth,useWidth:f.useWidth,style:function(){var p,P;return"vertical-align: bottom;"+(((p=b().background)==null?0:p.color)?"background-color:"+_.zx((P=b().background)==null?void 0:P.color)+";":"")},
className:function(){return f.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var p,P;return(P=(p=f.setDraggable)==null?void 0:p.call(f))!=null?P:void 0}})))},"nb");var K1W=_.aP(function(A){var Q=A.data,b=A.listenToTapEvent,f=function(){};
return _.X("ad-button-hover-overlay-view-model",{"on:click":_.IY(function(a){if(_.K("enable_web_home_top_landscape_image_layout_legacy_click_command")){var T,G=(T=Q().interaction)==null?void 0:T.onTap;G&&_.Bn(a.currentTarget,"yt-navigate",{endpoint:_.ue(G)})}}),
class:function(){var a;return((a=Q().interaction)==null?0:a.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(a){var T,G=(T=Q().interaction)==null?void 0:T.onFirstVisible;a&&G&&_.D3(G)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},void 0,function(){return!_.K("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(b==null?void 0:b())}))},function(){return _.K("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.X(_.WL,{data:function(){return Q().button}},{adButtonViewModel:function(a){return _.X(_.BK,{data:a.data,
customCommandResolver:f})}}):_.X(_.WL,{data:function(){return Q().button}},{adButtonViewModel:_.BK})}())},"ob");var Pi;_.pE(_.aP(function(A){var Q=A.data;A=_.T9({visibilityCallback:function(p,P){if(p){var U;(p=(U=Q().interaction)==null?void 0:U.onFirstVisible)&&_.D3(p);var L;if(U=(L=Q().adLayoutData)==null?void 0:L.activeViewData)XG(P,U),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(P)})}else _.K("stop_av_measurement_on_detach")&&SQ(P)},
showOption:_.Fb,hideOption:GB});var b=_.NI(function(){return Q().interaction},void 0,function(){return!0}),f=_.F(_.pz(!1,void 0,"K1MNM")),a=f.next().value,T=f.next().value;
f=_.IY(function(){T(!0)});
var G=_.IY(function(){T(!1)});
return _.X("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.d_(A,QsJ,b),"on:mouseenter":f,"on:mouseleave":G},_.X("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.qM({"max-width":function(){return _.K("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.X("div",{class:function(){var p;
a:{var P;switch((p=_.V(Q().thumbnailImage,x_y))==null?void 0:(P=p.imageProperties)==null?void 0:P.renderingAspect){case "RENDERING_ASPECT_SQUARE":p="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":p="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}p=void 0}return p}},_.X(_.WL,{data:function(){return Q().thumbnailImage}},{adImageViewModel:function(p){return _.X(_.nB,
{data:p.data,
listenToTapEvent:!0,setTouchEndHandler:_.K("enable_top_landscape_image_experiment_dom_id_web")})}})),_.X("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.X(_.S,{cond:function(){var p,P,U;
return(p=_.V(Q().thumbnailImage,x_y))==null?void 0:(P=p.imageProperties)==null?void 0:(U=P.overlayIcon)==null?void 0:U.iconImage},
then:function(p){return _.X(_.aY,{data:p,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.X("div",{class:function(){return a()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.X(_.WL,{data:function(){return Q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(p){return _.X(K1W,
{data:p.data,
listenToTapEvent:!0})}}))),_.X("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.X(_.WL,{data:function(){return Q().feedAdMetadata}},{feedAdMetadataViewModel:function(p){return _.X(HgM,{data:p.data,
listenToTapEvent:!0,setTouchEndHandler:_.K("enable_top_landscape_image_experiment_dom_id_web")})}})))},"pb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;A=_.T9({visibilityCallback:function(p,P){if(p){var U;(p=(U=Q().interaction)==null?void 0:U.onFirstVisible)&&_.D3(p);var L;if(U=(L=Q().adLayoutData)==null?void 0:L.activeViewData)XG(P,U),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(P)})}else _.K("stop_av_measurement_on_detach")&&SQ(P)},
showOption:_.Fb,hideOption:GB});var b=_.Zc(_.uc),f=_.NI(function(){return Q().interaction}),a={},T={},G={};
return _.X("square-image-layout-view-model",{class:_.O4("ytwSquareImageLayoutViewModelHost",(a.ytwSquareImageLayoutViewModelHostColumn=b,a)),el:_.d_(A,bxJ,f)},_.X("div",{class:_.O4("ytwSquareImageLayoutViewModelHostImage",(T.ytwSquareImageLayoutViewModelHostColumnImage=b,T))},function(){return _.X(_.WL,{data:function(){return Q().adImage}},{adImageViewModel:function(p){return _.X(_.nB,{data:p.data,
isGridViewEnabled:b,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.X("div",{class:_.O4("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(G.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=b,G))},_.X(_.WL,{data:function(){return Q().feedAdMetadata}},{feedAdMetadataViewModel:HgM}),function(){return _.X(_.WL,{data:function(){return Q().adButton}},{adButtonViewModel:function(p){var P={};
return _.X(_.BK,{data:p.data,className:_.O4((P.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,P.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=b,P))})}})}()))},"qb"),"square-image-layout-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=A.noBottomMargin;var f=A.typographyBump;A=_.T9({visibilityCallback:function(M,l){if(M){var J;(M=(J=Q().interaction)==null?void 0:J.onFirstVisible)&&_.D3(M);var n;if(J=(n=Q().adLayoutData)==null?void 0:n.activeViewData)XG(l,J),_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&SQ(l)})}else _.K("stop_av_measurement_on_detach")&&SQ(l)},
showOption:_.Fb,hideOption:GB});var a=_.NI(function(){return Q().interaction},void 0,function(){return _.K("enable_web_home_top_landscape_image_layout_level_click")}),T=function(){return Q().interaction};
T!==void 0&&T!==null||_.wN(Error("Jh"));var G=function(){var M,l,J;return(M=_.V(Q().thumbnailImage,x_y))==null?void 0:(l=M.background)==null?void 0:(J=l.backgroundImageSource)==null?void 0:J.imageSources};
T=_.F(_.pz(!1,void 0,"pZPLOd"));var p=T.next().value,P=T.next().value;T=_.IY(function(){P(!0)});
var U=_.IY(function(){P(!1)}),L=function(){return p()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.X("top-landscape-image-layout-view-model",{class:function(){var M;return((M=Q().interaction)==null?0:M.onTap)&&_.K("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.d_(A,fdX,a),"on:mouseenter":T,"on:mouseleave":U},_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.X(_.S,{cond:function(){return G()&&G().length>0},
then:function(){return _.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.qM({top:"0","background-image":function(){return"url("+String(G()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.X(_.S,{cond:function(){return!!Q().adButtonHoverOverlay},
then:function(){return _.X("div",{class:L},_.X(_.WL,{data:function(){return Q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:K1W}))}}),_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.X(_.WL,{data:function(){return Q().thumbnailImage}},{adImageViewModel:function(M){return _.X(_.nB,{data:M.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.K("enable_web_home_top_landscape_image_layout_level_click")})}})),_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.X(_.aY,{data:{sources:[{clientResource:{imageName:_.K("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.X(_.WL,{data:function(){return Q().feedAdMetadata}},{feedAdMetadataViewModel:function(M){return _.X(HgM,{data:M.data,
noBottomMargin:function(){return b==null?void 0:b()},
listenToTapEvent:function(){return _.K("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return f==null?void 0:f()}})}})))},"rb"),"top-landscape-image-layout-view-model",{props:{data:_.Qf,
noBottomMargin:_.Qf,typographyBump:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=A.typographyBump;return _.X("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.d_(_.T9({visibilityCallback:function(f,a){if(f){var T;(f=(T=Q().interaction)==null?void 0:T.onFirstVisible)&&_.D3(f);var G;(T=(G=Q().adLayoutData)==null?void 0:G.activeViewData)&&XG(a,T)}},
showOption:_.Fb,hideOption:GB}))},_.X("div",null,_.X(_.WL,{data:function(){return Q().videoLockup}},{lockupViewModel:function(f){return _.X(_.K8,{data:f.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:b})}})))},"sb"),"video-display-button-group-layout-view-model",{props:{data:_.Qf,
noBottomMargin:_.Qf,typographyBump:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=A.className;var f=A.typographyBump;return _.X("video-display-compact-button-group-layout-view-model",{el:_.d_(_.T9({visibilityCallback:function(a,T){if(a){var G;(a=(G=Q().interaction)==null?void 0:G.onFirstVisible)&&_.D3(a);var p;(G=(p=Q().adLayoutData)==null?void 0:p.activeViewData)&&XG(T,G)}},
showOption:_.Fb})),class:_.O4("videoDisplayCompactButtonGroupLayoutViewModelHost",b)},_.X(_.WL,{data:function(){return Q().videoLockup}},{lockupViewModel:function(a){return _.X(_.K8,{data:a.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:f})}}))},"tb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Qf,
className:_.Qf,typographyBump:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=A.className;var f=A.typographyBump;return _.X("video-display-compact-buttoned-layout-view-model",{el:_.d_(_.T9({visibilityCallback:function(a,T){if(a){var G;(a=(G=Q().interaction)==null?void 0:G.onFirstVisible)&&_.D3(a);var p;(G=(p=Q().adLayoutData)==null?void 0:p.activeViewData)&&XG(T,G)}},
showOption:_.Fb})),class:_.O4("videoDisplayCompactButtonedLayoutViewModelHost",b)},_.X(_.WL,{data:function(){return Q().videoLockup}},{lockupViewModel:function(a){return _.X(_.K8,{data:a.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:f})}}))},"ub"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Qf,
className:_.Qf,typographyBump:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=A.className;var f=A.typographyBump;var a=function(){return Q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},T=_.Zc(_.uc);
A=_.T9({visibilityCallback:function(U,L){if(U){var M=Q();U=M.adLayoutData;var l;(M=(l=M.interaction)==null?void 0:l.onFirstVisible)&&_.D3(M);(l=U==null?void 0:U.activeViewData)&&XG(L,l)}},
showOption:_.Fb});var G=_.Lz(function(){return{containerType:a()&&T()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),p=_.Lz(function(){return a()&&T()?"":a()?"168px":"50%"},void 0,"ikSkm"),P=_.Lz(function(){return a()&&T()?9999:void 0},void 0,"M8rucc");
return _.X("video-display-compact-layout-view-model",{el:_.d_(A),class:_.O4("videoDisplayCompactLayoutViewModelHost",b)},_.X(_.WL,{data:function(){return Q().videoLockup}},{lockupViewModel:function(U){return _.X(_.K8,{data:U.data,
containerLayoutConfig:G,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:p,thumbnailTargetWidth:P,typographyBump:f})}}))},"vb"),"video-display-compact-layout-view-model",{props:{data:_.Qf,
className:_.Qf,typographyBump:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=A.typographyBump;return _.X("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.d_(_.T9({visibilityCallback:function(f,a){if(f){var T;(f=(T=Q().interaction)==null?void 0:T.onFirstVisible)&&_.D3(f);var G;(T=(G=Q().adLayoutData)==null?void 0:G.activeViewData)&&XG(a,T)}},
showOption:_.Fb,hideOption:GB}))},_.X("div",null,_.X(_.WL,{data:function(){return Q().videoLockup}},{lockupViewModel:function(f){return _.X(_.K8,{data:f.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:b})}})))},"wb"),"video-display-full-layout-view-model",{props:{data:_.Qf,
noBottomMargin:_.Qf,typographyBump:_.Qf}});_.ihy=_.aP(function(A){var Q=A.data;A=_.st("ad-card-badge-view-model");return _.X("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:A},_.X(_.S,{cond:function(){return Q().imageBadge},
then:function(b){return _.X(_.aY,{data:b,alt:""})}}))},"xb");var JRK=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;return _.X("carousel-ad-card-image-view-model",{class:function(){var f;return((f=Q().interaction)==null?0:f.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},b)),
"aria-label":function(){var f,a;return(f=Q().interaction)==null?void 0:(a=f.accessibility)==null?void 0:a.label}},_.X(_.WL,{data:function(){return Q().adImage}},{adImageViewModel:function(f){return _.X(_.nB,{data:f.data,
customCommandResolver:b})}}),_.X("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.X(_.WL,{data:function(){return Q().badge}},{adCardBadgeViewModel:_.ihy})),_.X(_.jl,{model:{color:4}}))},"yb");var VaY=_.aP(function(A){var Q=_.F(_.pz(0,void 0,"o9Bzd")),b=Q.next().value;Q.next();var f=Q.next().value,a=_.F(_.pz(!1,void 0,"KLdzYe"));Q=a.next().value;var T=a.next().value,G;_.Cz(function(){clearTimeout(G)});
a=_.IY(function(){var U;((U=A.animate)==null?0:U.call(A))?(T(!0),G=setTimeout(function(){T(!1);p()},200)):p();
return!1});
var p=function(){f(function(U){return(U+A.numShownItems())%A.data().length})},P={};
return _.X("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.X("div",{class:_.O4("ytwHorizontalCarouselCarouselWrapper")},_.X("div",{class:_.O4("ytwHorizontalCarouselCarouselInnerWrapper",(P.ytwHorizontalCarouselAnimating=Q,P))},_.X(_.Op,{each:A.data,keyBy:"INDEX"},function(U,L){return _.X("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.qM({"flex-basis":function(){return"calc((100% - (8px * "+(A.numShownItems()-1)+")) / "+A.numShownItems()+")"},
order:function(){var M=L-b();M<0&&(M+=A.data().length);return M}})},A.children(U,L))}))),_.X("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":a},A.nextButton()))},"zb");var Oh9=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;var f=A.expansive;return _.X("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.d_(_.T9({visibilityCallback:function(a){var T,G=(T=Q().interaction)==null?void 0:T.onFirstVisible;a&&G&&_.D3(G)},
showOption:_.Fb}))},_.X(VaY,{data:function(){var a;return((a=Q())==null?void 0:a.carouselAdCards)||[]},
nextButton:function(){return _.X(_.WL,{data:function(){return Q().nextButton}},{buttonViewModel:function(a){var T=a.data;
return _.X(_.J9,{data:function(){return(f==null?0:f())?Object.assign({},T(),{style:"mono"}):T()},
className:_.K("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(a){return _.X(_.WL,{data:a},{carouselAdCardImageViewModel:function(T){return _.X(JRK,{data:T.data,customCommandResolver:b})}})}))},"Ab");var nN1=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;var f=A.className;var a=A.buttonClassName;var T=A.animationEntityKey;var G=A.expansive;return _.X("carousel-button-view-model",{class:_.O4("ytwCarouselButtonViewModelHost",f)},_.X(_.WL,{data:function(){return Q().carousel}},{carouselAdCardCollectionViewModel:function(p){return _.X(Oh9,{data:p.data,
customCommandResolver:b,expansive:G})}}),_.X(_.WL,{data:function(){return Q().button}},{adButtonViewModel:function(p){var P=p.data;
return _.X(_.BK,{data:function(){return(G==null?0:G())?Object.assign({},P(),{style:"AD_BUTTON_STYLE_TONAL"}):P()},
className:a,customCommandResolver:b,animationEntityKey:T})}}))},"Bb");_.kiL=_.aP(function(A){var Q=A.data;A=A.className;var b=_.st("pivot-button-view-model");_.tz(function(){var f;((f=Q())==null?0:f.backgroundColor)&&b.value.setAttribute("data-background-color",String(Q().backgroundColor))});
return _.X("pivot-button-view-model",{el:b,class:_.O4("ytwPivotButtonViewModelHost",A)},_.X(_.Db,{command:function(){var f=Q();f=f.onClickCommand?_.ue(f.onClickCommand):f.contentDescription?_.az(f.contentDescription):void 0;return f},
ariaLabel:function(){return Q().contentDescription}},_.X(_.S,{cond:function(){return Q().thumbnail},
then:function(f){return _.X(_.aY,{data:f,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.X(_.S,{cond:function(){return Q().icon},
then:function(f){return _.X(_.oY,{icon:function(){return f().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cb");_.Iqp=_.aP(function(A){var Q=A.data;var b=A.buttonShapeOverrideables;return _.X("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.X(_.WL,{data:function(){return Q().buttonViewModels}},{buttonViewModel:function(f){return _.X(_.J9,{data:f.data,
buttonOverrides:b})},
likeButtonViewModel:function(f){return _.X(_.EP,{data:f.data,buttonShapeOverrideables:b})},
dislikeButtonViewModel:function(f){return _.X(_.vF,{data:f.data,buttonShapeOverrideables:b})},
toggleButtonViewModel:function(f){return _.X(_.eq,{data:f.data,buttonShapeOverrides:b})}}))},"Db");var HhL=_.aP(function(A){var Q=A.avatar;var b=A.headline;var f=A.badge;var a=A.description;var T=A.expansive;A={};return _.X("yt-ad-metadata-shape",{class:_.O4("ytAdMetadataShapeHost",(A.ytAdMetadataShapeHostLarge=T,A))},_.X("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.X(_.S,{cond:Q,then:function(G){return _.X(_.Og1,{data:function(){return(T==null?0:T())?Object.assign({},G(),{size:"AD_AVATAR_SIZE_MPLUS"}):G()}})}}),_.X("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.X(_.Rb,{text:b,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.X(_.S,{cond:f,then:function(G){return _.X(_.Mo,{data:function(){return(T==null?0:T())?Object.assign({},G(),{style:"AD_BADGE_STYLE_STARK"}):G()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.X("h2",{class:"ytAdMetadataShapeHostDescription"},_.X(_.Rb,{text:a,
linkInheritColor:!0})))},"Eb");var CXL=_.aP(function(A){var Q=A.data;var b=A.onShow;var f=A.expansive;A=_.NI(function(){return Q().interaction});
_.tz(function(){var T,G=(T=Q().animatedRenderingConfig)==null?void 0:T.delayedSecondsToVisible;if(G){var p=setTimeout(b,G*1E3);_.Cz(function(){clearTimeout(p)})}});
var a={};return _.X("reels-ad-card-buttoned-view-model",{class:_.O4(function(){var T;return((T=Q().interaction)==null?0:T.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(a.ytwReelsAdCardButtonedViewModelHostExpansive=f,a)),
el:_.d_(A)},_.X(HhL,{avatar:function(){return _.V(Q().avatar,vEL)},
headline:function(){return Q().headline},
badge:function(){return _.V(Q().adBadge,EEM)},
description:function(){return Q().description},
expansive:f}),_.X(_.WL,{data:function(){return Q().ctaButton}},{adButtonViewModel:function(T){var G=T.data;
return _.X(_.BK,{data:function(){return(f==null?0:f())?Object.assign({},G(),{style:"AD_BUTTON_STYLE_FILLED"}):G()}})}}))},"Fb");var qDj=_.aP(function(A){var Q=A.data;A=A.expansive;var b=_.K("web_ad_metadata_clickable")?_.NI(function(){return Q().interaction},void 0,function(){return _.K("web_ad_metadata_clickable")}):void 0,f={};
f=_.nE("ytwReelsAdMetadataViewModelHost",(f.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.K("web_ad_metadata_clickable"),f));return _.X("reels-ad-metadata-view-model",{class:f,el:_.d_(b)},_.X(HhL,{avatar:function(){return _.V(Q().avatar,vEL)},
headline:function(){return Q().headline},
badge:function(){return _.V(Q().adBadge,EEM)},
description:function(){return Q().description},
expansive:A}))},"Gb");var oNx={iconPosition:"icon-with-label",size:"L"},tay=_.aP(function(A){var Q=A.data;var b=A.overlayDensity;A=_.st("reels-player-overlay-layout-view-model");var f=_.Q0(b,0),a=function(){var M;return(M=Q().reelsAdCardButtonedEntityKey)!=null?M:""},T=function(){return a()+"/ad_button"},G=_.I$(qWA,a),p=function(){var M,l;
return(l=(M=G())==null?void 0:M.value)!=null?l:!1},P=_.Zc(adU),U=function(){return Object.assign({},oNx,(P()||f()===2)&&{style:"overlay-dark"})};
b={};var L={};return _.X("reels-player-overlay-layout-view-model",{class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHost",(b.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!Q().extension},b.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},b)),
"overlay-density":function(){return String(f())},
el:A},_.X("div",{class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(L.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},L))},_.X("div",{"aria-hidden":function(){return p()},
class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return p()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.qM({"transition-duration":function(){return GQX(Q())}})},_.X(_.WL,{data:function(){return Q().adMetadata}},{reelsAdMetadataViewModel:function(M){return _.X(qDj,{data:M.data,
expansive:function(){return f()===1}})}}),_.X(_.S,{cond:function(){return Q().extension},
then:function(M){return _.X("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.X(_.WL,{data:M},{adButtonViewModel:function(l){return _.X(_.BK,{data:l.data,animationEntityKey:T,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(l){return _.X(nN1,{data:l.data,animationEntityKey:T,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return f()===1}})}}))}})),_.X("div",{"aria-hidden":function(){return!p()},
class:_.O4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return p()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.qM({"transition-duration":function(){return GQX(Q())}})},_.X(_.WL,{data:function(){return Q().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(M){return _.X(CXL,{data:M.data,
onShow:function(){_.A8(_.HL("booleanEntity",a(),{key:a(),value:!0}))},
expansive:function(){return f()===1}})}}))),_.X("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.X(_.WL,{data:function(){return Q().actions}},{reelActionBarViewModel:function(M){return _.X(_.Iqp,{data:M.data,
buttonShapeOverrideables:U})}}),_.X(_.WL,{data:function(){return Q().menu}},{buttonViewModel:function(M){return _.X(_.J9,{data:M.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},U(),{type:"tonal"})}})}}),_.X(_.WL,{data:function(){return Q().pivotButton}},{pivotButtonViewModel:function(M){return _.X(_.kiL,{data:M.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hb");_.pE(tay,"reels-player-overlay-layout-view-model",{props:{data:_.Qf,overlayDensity:_.Qf}});var kO=function(){var A=_.q.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;return A};
_.O(kO,_.q);_.d=kO.prototype;
_.d.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.K("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]]"}}}}}};
_.d.ready=function(){var A=this;S6A(function(){A.isAttached&&dL(A.JSC$15420_storedAdSlotMetadata,A.JSC$15420_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&Ow(J_(),A.JSC$15420_storedAdSlotMetadata,A.JSC$15420_storedAdLayoutMetadata)})};
_.d.attached=function(){dL(this.JSC$15420_storedAdSlotMetadata,this.JSC$15420_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&lq$(J_(),this.JSC$15420_storedAdSlotMetadata,this.JSC$15420_storedAdLayoutMetadata)};
_.d.detached=function(){dL(this.JSC$15420_storedAdSlotMetadata,this.JSC$15420_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ow(J_(),this.JSC$15420_storedAdSlotMetadata,this.JSC$15420_storedAdLayoutMetadata)};
_.d.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.d.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15420_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15420_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15420_storedAdLayoutMetadata!==void 0&&this.JSC$15420_storedAdSlotMetadata!==void 0&&Ow(J_(),this.JSC$15420_storedAdSlotMetadata,this.JSC$15420_storedAdLayoutMetadata),lq$(J_(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15420_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15420_storedAdSlotMetadata=this.adSlotMetadata)};
_.Qr.Object.defineProperties(kO.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
kO.prototype.onAdMetadataChanged=kO.prototype.onAdMetadataChanged;kO.prototype.onTypographyBumpChanged=kO.prototype.onTypographyBumpChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kO.prototype,"rendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],kO.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],kO.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],kO.prototype,"noBottomMargin",void 0);_.E([_.C(),_.c("design:type",Object)],kO.prototype,"overlayDensity",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],kO.prototype,"typographyBump",void 0);_.E([_.H("data.adLayoutMetadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],kO.prototype,"adLayoutMetadata",null);_.E([_.C(),_.c("design:type",Object)],kO.prototype,"adSlotMetadata",void 0);
_.E([_.V1("ytd-video-display-full-buttoned-and-button-group-renderer"),_.c("design:type",HTMLElement)],kO.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.E([_.iN("typographyBump"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kO.prototype,"onTypographyBumpChanged",null);_.E([_.iN("adLayoutMetadata","adSlotMetadata"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kO.prototype,"onAdMetadataChanged",null);
_.E([_.h({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],kO);
_.W(kO,"ytd-in-feed-ad-layout-renderer",function(){if(JNY!==void 0)return JNY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return JNY=A},
{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var rRv;var jov;_.pE(_.Mo,"ad-badge-view-model",{props:{data:_.Qf,hasDot:_.Qf,customCommandResolver:_.Bz,adRenderingContextType:_.Bz}});var In=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return A};
_.O(In,_.q);_.d=In.prototype;_.d.computeHasLiveDescription=function(A){return!(A==null||!A.liveDescription)};
_.d.computeHasByline=function(A){return!(A==null||!A.byline)};
_.d.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.d.onYtToggleButton=function(A){var Q,b=(Q=this.data)==null?void 0:Q.videoReminderEntityKey;b&&this.ytdReduxBehavior.dispatch(_.HL("upcomingEventReminderStateEntity",b,{key:b,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.d.attached=function(){this.updateChannelBanner()};
_.d.dataChanged=function(){this.updateChannelBanner()};
_.d.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.V((A=this.data)==null?void 0:A.cta,_.u3)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.d.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var A=_.Pz(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);A&&(A.startsWith("//")&&(A="https:"+A),this.hostElement.classList.add("channel-banner"),_.Uc(this.hostElement,{"--ytvmh-channel-banner":"url("+A+")"}))}else _.K("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.d.onPlayerReady=function(){this.onIronResize()};
_.d.maybeFlushDebouncer=function(){_.K("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(A){var Q;A=(Q=A.getElementsByTagName("yt-attributed-string"))==null?void 0:Q[0];CE6(A==null?void 0:A.polymerController)})};
_.d.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var A=_.Bj(this.hostElement).querySelector("#live-description"),Q;A&&((Q=this.data)==null?0:Q.shortLiveDescription)&&A.clientWidth<A.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
In.prototype.onIronResize=In.prototype.onIronResize;In.prototype.videoReminderStateChanged=In.prototype.videoReminderStateChanged;In.prototype.dataChanged=In.prototype.dataChanged;In.prototype.onYtToggleButton=In.prototype.onYtToggleButton;_.E([_.I(_.eI),_.c("design:type",Object)],In.prototype,"ironResizableBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],In.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],In.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],In.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],In.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:Wb6}),_.c("design:type",Object)],In.prototype,"videoReminderState",void 0);
_.E([_.C({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.c("design:type",Boolean)],In.prototype,"rounded",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.c("design:type",Boolean)],In.prototype,"hasLiveDescription",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.c("design:type",Boolean)],In.prototype,"hasByline",void 0);
_.E([_.C({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.c("design:type",String)],In.prototype,"adRenderingContextType",void 0);_.E([_.C({reflectToAttribute:!0,value:_.K("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.c("design:type",Boolean)],In.prototype,"resizableAdBannerSafariFix",void 0);_.E([_.C({reflectToAttribute:!0,value:_.K("align_three_dot_menu_with_title_description")}),_.c("design:type",Boolean)],In.prototype,"menuFix",void 0);
_.E([_.Oc("yt-formatted-string"),_.c("design:type",Array)],In.prototype,"formattedStrings",void 0);_.E([_.V1("#cta-button"),_.c("design:type",HTMLElement)],In.prototype,"ctaButton",void 0);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],In.prototype,"onYtToggleButton",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],In.prototype,"dataChanged",null);
_.E([_.iN("videoReminderState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],In.prototype,"videoReminderStateChanged",null);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],In.prototype,"onIronResize",null);_.E([_.h({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],In);
_.W(In,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(jov!==void 0)return jov;var A=document.createElement("template");_.k(A,'\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]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return jov=A},{mode:1});var RL$;var Hy=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.isLocked=!1;return A};
_.O(Hy,_.q);_.d=Hy.prototype;_.d.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.d.onExpandedChanged=function(){this.expanded&&_.Pn(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.d.onMouseOver=function(){this.maybeExpand()};
_.d.onTap=function(){this.maybeExpand()};
_.d.onExpandableTileExpanding=function(A){A!==this&&(this.expanded=!1)};
_.d.onExpandableTileLockAndCollapse=function(A){this.isLocked=!0;A!==this&&(this.expanded=!1)};
_.d.onExpandableTileUnlock=function(){this.isLocked=!1};
Hy.prototype.onTap=Hy.prototype.onTap;Hy.prototype.onMouseOver=Hy.prototype.onMouseOver;Hy.prototype.onExpandedChanged=Hy.prototype.onExpandedChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Hy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Hy.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Hy.prototype,"expanded",void 0);_.E([_.I_("expanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Hy.prototype,"onExpandedChanged",null);_.E([_.Kc("mouseover"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Hy.prototype,"onMouseOver",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Hy.prototype,"onTap",null);
_.E([_.h({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Hy);
_.W(Hy,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(RL$!==void 0)return RL$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return RL$=A},{mode:1});var gN9;var CB=function(){var A=_.q.apply(this,arguments)||this;A.buttonOverrides={style:"overlay"};A.useYtdPlayer=_.K("use_ytd_player_for_desktop_masthead");A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.playbackFinished=!1;A.JSC$15433_playerManager=null;A.JSC$15433_mastheadCounter=new e_L;return A};
_.O(CB,_.q);_.d=CB.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$15433_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15433_playerManager=new gk)};
_.d.ready=function(){var A=this;this.JSC$15433_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var Q=_.Bj(this.hostElement).querySelector("#player");this.useYtdPlayer?Q.style.display="none":(this.ytdPlayer.style.display="none",hWr(this.JSC$15433_playerManager,Q,function(){A.onPlaybackEnded()}),_.Bj(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var b;
((b=A.data)==null?0:b.navigationEndpoint)&&_.Bn(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})}))};
_.d.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15433_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.d.attached=function(){var A=this;_.y1(function(){A.maybePlayVideo()})};
_.d.maybePlayVideo=function(){var A=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$15433_playerManager.playVideo(),this.getPlayerPromise().then(function(){A.JSC$15433_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.d.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15433_playerManager.stopVideo()};
_.d.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var A,Q={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((A=this.data.playbackStartMs)!=null?A:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(Q);this.setupYtdPlayer()}else v0K(this.JSC$15433_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(WnL(this.JSC$15433_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.d.getPlayerPromise=function(){return this.JSC$15433_playerManager.getPlayerPromise()};
_.d.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$15433_playerManager.mute():this.JSC$15433_playerManager.unMute()};
_.d.onYtNavigate=function(A){var Q=JSW(A.detail.endpoint),b=VyA(this.data.clickthroughReportingData);Q&&b&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=b:_.bi(Q,b,30))};
_.d.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.d.onExpandedChanged=function(){this.expanded?(_.Pn(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.d.onMouseOver=function(){this.maybeExpand()};
_.d.onTap=function(){this.maybeExpand()};
_.d.onExpandableTileExpanding=function(A){A!==this&&(this.stopVideo(),this.expanded=!1)};
_.d.onExpandableTileLockAndCollapse=function(A){A!==this&&(this.isLocked=!0,this.expanded=!1)};
_.d.onExpandableTileUnlock=function(){this.isLocked=!1};
_.d.lockAndCollapseExpandableTiles=function(){_.pD(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.d.unlockExpandableTiles=function(){_.pD(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.d.setupYtdPlayer=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(A.ytdPlayer.getPlayerPromise(),2);Q=b.yieldResult;Q.addEventListener("onStateChange",function(f){A.onPlayerStateChange(f)});
Q.addEventListener("onCueRangeExit",function(f){A.onCueRangeExit(f)});
_.Oi(b)})};
_.d.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var Q=A.getCurrentTime(),b,f,a=Q+((f=(b=this.data)==null?void 0:b.playbackDurationMs)!=null?f:0)/1E3;A.addCueRange("playback",Q,a);this.JSC$15433_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.d.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.d.toggleMute=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.ytdPlayer.getPlayerPromise(),2);b=f.yieldResult;A?b.mute():b.unMute();_.Oi(f)})};
CB.prototype.onTap=CB.prototype.onTap;CB.prototype.onMouseOver=CB.prototype.onMouseOver;CB.prototype.onExpandedChanged=CB.prototype.onExpandedChanged;CB.prototype.onYtNavigate=CB.prototype.onYtNavigate;CB.prototype.onYtToggleButton=CB.prototype.onYtToggleButton;CB.prototype.dataChanged=CB.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],CB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],CB.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],CB.prototype,"expanded",void 0);_.E([_.C(),_.c("design:type",Object)],CB.prototype,"buttonOverrides",void 0);
_.E([_.C(),_.c("design:type",Object)],CB.prototype,"useYtdPlayer",void 0);_.E([_.V1("#ytd-player"),_.c("design:type",Object)],CB.prototype,"ytdPlayer",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],CB.prototype,"dataChanged",null);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],CB.prototype,"onYtToggleButton",null);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],CB.prototype,"onYtNavigate",null);_.E([_.I_("expanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],CB.prototype,"onExpandedChanged",null);_.E([_.Kc("mouseover"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],CB.prototype,"onMouseOver",null);
_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],CB.prototype,"onTap",null);_.E([_.h({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],CB);
_.W(CB,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(gN9!==void 0)return gN9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return gN9=A},{mode:1});var eLL;var q2=function(){return _.q.apply(this,arguments)||this};
_.O(q2,_.q);q2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
q2.prototype.onShow=function(){var A=_.Bj(this.hostElement).querySelector("#live-description"),Q;A&&((Q=this.data)==null?0:Q.shortLiveDescription)&&A.clientWidth<A.scrollWidth&&this.hostElement.classList.add("short-live-description")};
q2.prototype.onYtToggleButton=function(A){var Q,b=(Q=this.data)==null?void 0:Q.videoReminderEntityKey;b&&this.ytdReduxBehavior.dispatch(_.HL("upcomingEventReminderStateEntity",b,{key:b,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
q2.prototype.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.V((A=this.data)==null?void 0:A.cta,_.u3)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
q2.prototype.videoReminderStateChanged=q2.prototype.videoReminderStateChanged;q2.prototype.onYtToggleButton=q2.prototype.onYtToggleButton;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],q2.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],q2.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:Wb6}),_.c("design:type",Object)],q2.prototype,"videoReminderState",void 0);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],q2.prototype,"onYtToggleButton",null);_.E([_.iN("videoReminderState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],q2.prototype,"videoReminderStateChanged",null);
_.E([_.h({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],q2);
_.W(q2,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(eLL!==void 0)return eLL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return eLL=A},{mode:_.UG("kevlar_poly_si_batch_j065")?1:2});var hLM;var on=function(){var A=_.q.apply(this,arguments)||this;A.useYtdPlayer=_.K("use_ytd_player_for_desktop_masthead");A.buttonOverrides={style:"overlay"};A.JSC$15441_playerManager=null;A.JSC$15441_mastheadCounter=new e_L;A.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return A};
_.O(on,_.q);_.d=on.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$15441_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15441_playerManager=new gk)};
_.d.ready=function(){var A=this;this.JSC$15441_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var Q;(Q=this.embeddedPlayer)==null||Q.remove()}else{var b;(b=this.ytdPlayer)==null||b.remove();hWr(this.JSC$15441_playerManager,this.embeddedPlayer,function(){A.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){A.data&&A.data.navigationEndpoint&&_.Bn(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})})}};
_.d.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15441_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.d.dataChanged=function(){var A=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var Q=!this.data.disableAutoPlayback,b,f={autoplay:Q,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((b=this.data.playbackStartMs)!=null?b:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(Q?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(f);this.setupYtdPlayer()}else v0K(this.JSC$15441_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(WnL(this.JSC$15441_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15441_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.pD(A.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");A.JSC$15441_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.d.getPlayerPromise=function(){return this.JSC$15441_playerManager.getPlayerPromise()};
_.d.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$15441_playerManager.mute():this.JSC$15441_playerManager.unMute()};
_.d.onYtNavigate=function(A){var Q=JSW(A.detail.endpoint),b=VyA(this.data.clickthroughReportingData);Q&&b&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=b:_.bi(Q,b,30))};
_.d.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15441_playerManager.stopVideo()};
_.d.setupYtdPlayer=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(A.ytdPlayer.getPlayerPromise(),2);Q=b.yieldResult;Q.addEventListener("onStateChange",function(f){A.onPlayerStateChange(f)});
Q.addEventListener("onCueRangeExit",function(f){A.onCueRangeExit(f)});
_.Oi(b)})};
_.d.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var Q=A.getCurrentTime(),b,f,a=Q+((f=(b=this.data)==null?void 0:b.playbackDurationMs)!=null?f:0)/1E3;A.addCueRange("playback",Q,a);_.pD(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15441_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.d.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.d.toggleMute=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.ytdPlayer.getPlayerPromise(),2);b=f.yieldResult;A?b.mute():b.unMute();_.Oi(f)})};
_.Qr.Object.defineProperties(on.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A,Q;if(!((A=this.data)==null?0:(Q=A.accessibilityData)==null?0:Q.label))return"Ad primary link";var b,f;return _.JQ("AD_TITLE",{title:(b=this.data)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label})}}});
on.prototype.onYtMastheadHidden=on.prototype.onYtMastheadHidden;on.prototype.onYtNavigate=on.prototype.onYtNavigate;on.prototype.onYtToggleButton=on.prototype.onYtToggleButton;on.prototype.dataChanged=on.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],on.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],on.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],on.prototype,"useYtdPlayer",void 0);_.E([_.V1("ytd-toggle-button-renderer"),_.c("design:type",Object)],on.prototype,"muteButton",void 0);_.E([_.C(),_.c("design:type",Object)],on.prototype,"buttonOverrides",void 0);
_.E([_.H("data.accessibilityData.label"),_.c("design:type",String),_.c("design:paramtypes",[])],on.prototype,"titleAriaLabel",null);_.E([_.V1("#replay-button"),_.c("design:type",Object)],on.prototype,"replayButton",void 0);_.E([_.V1("#player-container"),_.c("design:type",Object)],on.prototype,"playerContainer",void 0);_.E([_.V1("#player"),_.c("design:type",Object)],on.prototype,"embeddedPlayer",void 0);_.E([_.V1("#ytd-player"),_.c("design:type",Object)],on.prototype,"ytdPlayer",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],on.prototype,"dataChanged",null);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],on.prototype,"onYtToggleButton",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],on.prototype,"onYtNavigate",null);
_.E([_.Kc("yt-masthead-hidden"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],on.prototype,"onYtMastheadHidden",null);_.E([_.h({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],on);
_.W(on,"ytd-video-masthead-ad-primary-video-renderer",function(){if(hLM!==void 0)return hLM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return hLM=A},{mode:2});var W1v;var t_=function(){var A=_.q.apply(this,arguments)||this;A.collapsed=!1;A.impressionResolver=_.Qh();A.JSC$15445_activeViewMeasurementDataResolver=_.Qh();A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.O(t_,_.q);_.d=t_.prototype;_.d.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"}}}};
_.d.ready=function(){var A=this;_.Bj(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){A.expandAd()});
this.hostElement.addEventListener("yt-action",function(Q){if(Q.detail.actionName==="yt-service-request"){var b=Q.detail.args[1];b.videoMastheadAdMuteCommand&&(A.collapseAd(b.videoMastheadAdMuteCommand.encryptedMastheadId),Q.stopPropagation())}})};
_.d.attached=function(){var A=this;_.y1(function(){A.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(Q){if(!A.collapsed){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,wO(b.baseUrl,b.attributionSrcMode);A.data.impressionCommand=void 0}});
this.JSC$15445_activeViewMeasurementDataResolver.promise.then(function(Q){A.ytdActiveViewBehavior.enableActiveViewMeasurement(Q,15)});
_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.dataChanged=function(){var A;((A=this.data.impressionCommand)==null?0:A.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var Q;((Q=this.data)==null?0:Q.activeView)&&this.JSC$15445_activeViewMeasurementDataResolver.resolve(this.data.activeView);(A=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(A.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.d.computeWidescreen=function(A){var Q;return!!(A&&((Q=_.V(A,Ru$))==null?0:Q.isWidescreen))};
_.d.computeExpandable=function(A){return!!(A&&A.length>0)};
_.d.onIronResize=function(){if(this.expandable){var A=_.Bj(this.hostElement).querySelector("#expandable-tile-container :first-child");A&&!A.expanded&&(A.expanded=!0)}};
_.d.handleMuteAd=function(){this.collapseAd(null)};
_.d.restoreCollapsedState=function(A){this.collapsed=_.nD().get("HIDDEN_MASTHEAD_ID")===A};
_.d.collapseAd=function(A){if(A){var Q=_.nD();Q.set("HIDDEN_MASTHEAD_ID",A);Q.save()}(A=_.Bj(this.hostElement).querySelector("#video"))&&_.Bn(A,"yt-masthead-hidden");this.collapsed=!0};
_.d.expandAd=function(){var A=_.nD();A.set("HIDDEN_MASTHEAD_ID",!1);A.save();location.reload()};
_.d.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
t_.prototype.onIronResize=t_.prototype.onIronResize;t_.prototype.dataChanged=t_.prototype.dataChanged;_.E([_.I(_.eI),_.c("design:type",Object)],t_.prototype,"ironResizableBehavior",void 0);_.E([_.I(xX),_.c("design:type",Object)],t_.prototype,"ytdActiveViewBehavior",void 0);_.E([_.I(_.ZJ),_.c("design:type",Object)],t_.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],t_.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],t_.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.c("design:type",Boolean)],t_.prototype,"widescreen",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.c("design:type",Boolean)],t_.prototype,"expandable",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],t_.prototype,"collapsed",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],t_.prototype,"dataChanged",null);
_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],t_.prototype,"onIronResize",null);_.E([_.h({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],t_);
_.W(t_,"ytd-video-masthead-ad-v3-renderer",function(){if(W1v!==void 0)return W1v;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return W1v=A},{mode:2});var r5=function(){return _.q.apply(this,arguments)||this};
_.O(r5,_.q);_.d=r5.prototype;_.d.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.d.ready=function(){var A=this;S6A(function(){A.isAttached&&dL(A.JSC$15450_storedAdSlotMetadata,A.JSC$15450_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&Ow(J_(),A.JSC$15450_storedAdSlotMetadata,A.JSC$15450_storedAdLayoutMetadata)})};
_.d.attached=function(){dL(this.JSC$15450_storedAdSlotMetadata,this.JSC$15450_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&lq$(J_(),this.JSC$15450_storedAdSlotMetadata,this.JSC$15450_storedAdLayoutMetadata)};
_.d.detached=function(){dL(this.JSC$15450_storedAdSlotMetadata,this.JSC$15450_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ow(J_(),this.JSC$15450_storedAdSlotMetadata,this.JSC$15450_storedAdLayoutMetadata)};
_.d.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15450_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15450_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15450_storedAdLayoutMetadata!==void 0&&this.JSC$15450_storedAdSlotMetadata!==void 0&&Ow(J_(),this.JSC$15450_storedAdSlotMetadata,this.JSC$15450_storedAdLayoutMetadata),lq$(J_(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15450_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15450_storedAdSlotMetadata=this.adSlotMetadata)};
_.Qr.Object.defineProperties(r5.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
r5.prototype.onAdMetadataChanged=r5.prototype.onAdMetadataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],r5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],r5.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],r5.prototype,"data",void 0);_.E([_.H("data.adLayoutMetadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],r5.prototype,"adLayoutMetadata",null);
_.E([_.C(),_.c("design:type",Object)],r5.prototype,"adSlotMetadata",void 0);_.E([_.iN("adLayoutMetadata","adSlotMetadata"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],r5.prototype,"onAdMetadataChanged",null);_.E([_.h({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],r5);
_.W(r5,"ytd-page-top-ad-layout-renderer",function(){if(rRv!==void 0)return rRv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return rRv=
A},{mode:_.UG("kevlar_poly_si_batch_j070")?1:2});var vN$;var Wy=function(){var A=_.q.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;A.typographyBump=!1;return A};
_.O(Wy,_.q);_.d=Wy.prototype;
_.d.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.d.ready=function(){var A=this;S6A(function(){A.isAttached&&A.adSlotMetadata&&MaL(J_(),A.adSlotMetadata)})};
_.d.attached=function(){if(this.adSlotMetadata){var A;if(this.adSlotMetadata===((A=this.data)==null?void 0:A.adSlotMetadata))L1r(J_(),this.adSlotMetadata);else{var Q;_.Wv(Error("Kh`"+this.adSlotMetadata+"`"+((Q=this.data)==null?void 0:Q.adSlotMetadata)))}}};
_.d.detached=function(){this.adSlotMetadata&&MaL(J_(),this.adSlotMetadata)};
_.d.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.d.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&MaL(J_(),this.adSlotMetadata),L1r(J_(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Qr.Object.defineProperties(Wy.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=_.V((A=this.data)==null?void 0:(Q=A.fulfillmentContent)==null?void 0:Q.fulfilledLayout,_.eu1),f;return(A=(f=_.V(b==null?void 0:b.renderingContent,gEL))==null?void 0:f.layout)?A.toLowerCase().replace(/_/g,"-"):""}}});
Wy.prototype.onAdSlotMetadataChanged=Wy.prototype.onAdSlotMetadataChanged;Wy.prototype.onTypographyBumpChanged=Wy.prototype.onTypographyBumpChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Wy.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Wy.prototype,"rendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Wy.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Wy.prototype,"noBottomMargin",void 0);_.E([_.C(),_.c("design:type",Object)],Wy.prototype,"overlayDensity",void 0);_.E([_.C(),_.c("design:type",Object)],Wy.prototype,"typographyBump",void 0);_.E([_.V1("ytd-in-feed-ad-layout-renderer"),_.c("design:type",HTMLElement)],Wy.prototype,"inFeedAdLayoutRenderer",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],Wy.prototype,"layout",null);_.E([_.iN("typographyBump"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Wy.prototype,"onTypographyBumpChanged",null);_.E([_.iN("data.adSlotMetadata"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Wy.prototype,"onAdSlotMetadataChanged",null);
_.E([_.h({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Wy);
_.W(Wy,"ytd-ad-slot-renderer",function(){if(vN$!==void 0)return vN$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return vN$=A},{mode:_.UG("kevlar_poly_si_batch_j077")?
1:2});var ENY;var vy=function(){return _.q.apply(this,arguments)||this};
_.O(vy,_.q);_.d=vy.prototype;_.d.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"}}}};
_.d.maybeComputeHref=function(){return null};
_.d.onTap=function(){};
_.d.onThumbnailContainerClick=function(A){this.onClick(A)};
_.d.onClick=function(A){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint;b&&_.V(b,_.sv)&&(this.ytSparklesClickLocationBehavior.handleClick(b,A,!1),A.stopPropagation())};
_.d.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var A=_.F(this.data.impressionUrls),Q=A.next();!Q.done;Q=A.next())Q=Q.value,MMW(Q,KXe(Q));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",vy.JSC$15458_DEFAULT_CLICK_LOCATION_BEHAVIOR,vy.JSC$15458_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&
A.removeAttribute("href"))}};
_.d.attached=function(){var A=this;_.K("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){_.K("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Qr.Object.defineProperties(vy.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
vy.prototype.dataChanged=vy.prototype.dataChanged;vy.prototype.onTap=vy.prototype.onTap;vy.JSC$15458_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
vy.JSC$15458_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.E([_.I(xX),_.c("design:type",Object)],vy.prototype,"ytdActiveViewBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],vy.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],vy.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],vy.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.C({selector:_.uc}),_.c("design:type",Object)],vy.prototype,"isGridViewEnabled",void 0);_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],vy.prototype,"watchFeedBigThumbs",null);_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",String),_.c("design:paramtypes",[])],vy.prototype,"thumbnailWidth",null);_.E([_.C(),_.c("design:type",Object)],vy.prototype,"data",void 0);
_.E([_.V1("ytd-thumbnail"),_.c("design:type",HTMLElement)],vy.prototype,"thumbnail",void 0);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vy.prototype,"onTap",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vy.prototype,"dataChanged",null);_.E([_.h({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],vy);
_.W(vy,"ytd-compact-promoted-video-renderer",function(){if(ENY!==void 0)return ENY;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ENY=A},{mode:1});var xav;_.xo("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Ew=function(){return _.q.apply(this,arguments)||this};
_.O(Ew,_.q);Ew.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ew.prototype,"data",void 0);_.E([_.h({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Ew);
_.W(Ew,"ytd-search-pyv-renderer",function(){if(xav!==void 0)return xav;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return xav=A},{mode:1});var cRr;_.xo("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var xO=function(){var A=_.q.apply(this,arguments)||this;A.roundedContainer=!0;A.JSC$15466_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.O(xO,_.q);_.d=xO.prototype;
_.d.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}}};
_.d.onStampFinished=function(){this.JSC$15466_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.Bj(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");A?A.openDialog():this.JSC$15466_handleOpenPostCommentDialogActionAfterStamp=!0};
_.d.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.d.computeHideBorder=function(){return this.isInEngagementPanel};
_.d.computeIsCompact=function(){return this.isInEngagementPanel};
_.d.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.d.computeUsesFullLockup=function(){var A,Q=(A=this.data)==null?void 0:A.post,b;A=(b=_.V(Q,Zwr))==null?void 0:b.surface;var f;b=(f=_.V(Q,D_L))==null?void 0:f.originalPost;var a;if(f=A||((a=_.V(b,Zwr))==null?void 0:a.surface))return!this.computeUsesCompactLockup(f)&&this.useUpdatedRepostUi;var T;return((T=_.V(Q,D_L))==null?void 0:T.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Qr.Object.defineProperties(xO.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((Q=_.V((A=this.data)==null?void 0:A.post,Zwr))==null?void 0:Q.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useUpdatedRepostUi}}});
xO.prototype.onYtCommentModerationPanelEmpty=xO.prototype.onYtCommentModerationPanelEmpty;xO.prototype.onStampFinished=xO.prototype.onStampFinished;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],xO.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xO.prototype,"roundedContainer",void 0);_.E([_.C({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.c("design:type",Boolean)],xO.prototype,"hideBorder",void 0);_.E([_.C({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.c("design:type",Boolean)],xO.prototype,"isCompact",void 0);
_.E([_.C({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.c("design:type",Boolean)],xO.prototype,"usesFullLockup",void 0);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xO.prototype,"onStampFinished",null);
_.E([_.Kc("ytd-comment-moderation-panel-empty"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],xO.prototype,"onYtCommentModerationPanelEmpty",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xO.prototype,"isInEngagementPanel",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xO.prototype,"useUpdatedRepostUi",null);
_.E([_.h({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],xO);
_.W(xO,"ytd-backstage-post-thread-renderer",function(){if(cRr!==void 0)return cRr;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return cRr=A},{mode:1});var zLM;var cy=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(cy,_.q);cy.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
cy.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var A=this.data.thumbnail.thumbnails;this.isDarkTheme&&(A=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(A=_.Pz(A,24,void 0,"height"))?A:void 0}};
cy.prototype.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
cy.prototype.computeHasText=function(){var A;return!((A=this.data)==null||!A.text)};
_.Qr.Object.defineProperties(cy.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.hs(this.bannerImageUrl))+'");'}}});
cy.prototype.computeHasText=cy.prototype.computeHasText;cy.prototype.computeBannerImageUrl=cy.prototype.computeBannerImageUrl;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],cy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],cy.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],cy.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],cy.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",String)],cy.prototype,"bannerImageUrl",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.c("design:type",Boolean)],cy.prototype,"hasText",void 0);_.E([_.iN("data","isDarkTheme"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cy.prototype,"computeBannerImageUrl",null);
_.E([_.iN("data.text"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cy.prototype,"computeHasText",null);_.E([_.H("bannerImageUrl"),_.c("design:type",Object),_.c("design:paramtypes",[])],cy.prototype,"bannerStyle",null);_.E([_.h({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],cy);
_.W(cy,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(zLM!==void 0)return zLM;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return zLM=A},{mode:1});var w9p;var zA=function(){return _.q.apply(this,arguments)||this};
_.O(zA,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zA.prototype,"data",void 0);_.E([_.h({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],zA);
_.W(zA,"ytd-backstage-zero-state-renderer",function(){if(w9p!==void 0)return w9p;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return w9p=A},{mode:1});var ujY;var w5=function(){return _.q.apply(this,arguments)||this};
_.O(w5,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],w5.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",String)],w5.prototype,"icon",void 0);_.E([_.h({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],w5);
_.W(w5,"ytd-post-filter-zero-state-renderer",function(){if(ujY!==void 0)return ujY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ujY=A},{mode:1});var Zh$;var yRK={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},uL=function(){return _.q.apply(this,arguments)||this};
_.O(uL,_.q);uL.prototype.configureRendererStamper=function(){return yRK};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],uL.prototype,"rendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uL.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",String)],uL.prototype,"icon",void 0);_.E([_.h({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],uL);
_.W(uL,"ytd-post-scheduling-zero-state-renderer",function(){if(Zh$!==void 0)return Zh$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Zh$=A},{mode:1});var YDM;var ZH=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return A};
_.O(ZH,_.q);ZH.prototype.onTabsActivate=function(A){this.data&&this.data.tabs&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[A.detail.selected].navigationEndpoint})};
ZH.prototype.shouldShowTotalCount=function(A){return A&&A.totalCount!==void 0};
ZH.prototype.handleUpdatePostsTotalCountAction=function(A){var Q=this.get(["data.tabs",1,"totalCount"]),b=this.get("updatePostsTotalCountAction.updateType",A);A=this.get("updatePostsTotalCountAction.number",A);Q!==void 0&&b!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&A&&(b==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(Q)+A):b==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(Q)-A))};
_.Qr.Object.defineProperties(ZH.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var A=0,Q=this.data.tabs.length;A<Q;A++)if(this.data.tabs[A].selected)return A;return 0}}});
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ZH.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ZH.prototype,"rendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ZH.prototype,"data",void 0);_.E([_.H("data.tabs"),_.c("design:type",Number),_.c("design:paramtypes",[])],ZH.prototype,"selected",null);_.E([_.h({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],ZH);
_.W(ZH,"ytd-post-stream-filter-renderer",function(){if(YDM!==void 0)return YDM;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return YDM=A},{mode:1});var Da9;var yT=function(){return _.q.apply(this,arguments)||this};
_.O(yT,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yT.prototype,"kevlarBehaviors",void 0);_.E([_.C(),_.c("design:type",Object)],yT.prototype,"data",void 0);_.E([_.h({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],yT);
_.W(yT,"ytd-channel-age-gate-renderer",function(){if(Da9!==void 0)return Da9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Da9=A},{mode:1});var $a9;_.xo("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var YO=function(){var A=_.q.apply(this,arguments)||this;A.data=null;return A};
_.O(YO,_.q);YO.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Qr.Object.defineProperties(YO.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?0:(Q=A.title)==null?0:(b=Q.runs)==null?0:b.length)?147:160}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YO.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],YO.prototype,"imageSizePx",null);_.E([_.h({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],YO);
_.W(YO,"ytd-channel-owner-empty-state-renderer",function(){if($a9!==void 0)return $a9;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $a9=A},{mode:1});var NT$;var sor;var DH=function(){var A=_.q.apply(this,arguments)||this;A.boundSubmitSearch=function(){A.submitSearch()};
A.boundClearSearch=function(){A.clearSearch()};
return A};
_.O(DH,_.q);_.d=DH.prototype;_.d.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]]"}}}}}};
_.d.toggleClearButton=function(){this.hideClearButton=VPA||!this.input.value};
_.d.submitOnEnterKeyUp=function(A){A.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.d.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.d.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.d.submit=function(){_.Bn(this.hostElement,"search-query-changed",this.input.value)};
DH.prototype.toggleClearButton=DH.prototype.toggleClearButton;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],DH.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],DH.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],DH.prototype,"hideClearButton",void 0);_.E([_.C(),_.c("design:type",Object)],DH.prototype,"boundSubmitSearch",void 0);_.E([_.C(),_.c("design:type",Object)],DH.prototype,"boundClearSearch",void 0);_.E([_.V1("#input"),_.c("design:type",Object)],DH.prototype,"input",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],DH.prototype,"toggleClearButton",null);
_.E([_.h({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],DH);
_.W(DH,"ytd-channel-switcher-search-box-renderer",function(){if(sor!==void 0)return sor;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return sor=A},{mode:1});var maW;var $O=function(){var A=_.q.apply(this,arguments)||this;A.boundSubmit=function(){A.submit()};
return A};
_.O($O,_.q);_.d=$O.prototype;_.d.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"}}}}};
_.d.ready=function(){var A=this;this.form.addEventListener("submit",function(Q){return A.onSubmit(Q)})};
_.d.onSubmit=function(A){A.preventDefault();return!1};
_.d.toggleClearButton=function(){this.hideClearButton=VPA||!this.input.value};
_.d.submitOnEnterKeyUp=function(A){A.keyCode===13&&this.submit()};
_.d.submit=function(){var A=this.data.endpoint,Q=(0,_.j2.unsafeClone)(A);_.V(Q,_.nT)?_.V(Q,_.nT).query=this.input.value:_.V(Q,_.kr)&&(_.V(Q,_.kr).query=this.input.value);var b=_.V(Q.commandMetadata,_.KD);(b==null?0:b.url)?(b.url=_.zD(b.url,"query",this.input.value),_.Bn(this.hostElement,"yt-navigate",{endpoint:Q})):_.V(Q,qJ1)?(_.V(Q,qJ1).channelSwitcherQuery=this.input.value,_.fJ().resolve(_.de).resolveCommand(Q,{form:{element:this.hostElement}})):(A=Error("Lh`"+JSON.stringify(A)),_.en(A))};
_.d.getUrl=function(A){return this.get("commandMetadata.webCommandMetadata.url",A)};
$O.prototype.toggleClearButton=$O.prototype.toggleClearButton;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$O.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],$O.prototype,"hideClearButton",void 0);
_.E([_.C(),_.c("design:type",Object)],$O.prototype,"boundSubmit",void 0);_.E([_.V1("#form"),_.c("design:type",HTMLFormElement)],$O.prototype,"form",void 0);_.E([_.V1("#input"),_.c("design:type",Object)],$O.prototype,"input",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$O.prototype,"toggleClearButton",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],$O);
_.W($O,"ytd-search-box-renderer",function(){if(maW!==void 0)return maW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return maW=A},{mode:2});var N2=function(){var A=_.q.apply(this,arguments)||this;A.showSearchBox=!0;return A};
_.O(N2,_.q);N2.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],N2.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],N2.prototype,"showSearchBox",void 0);_.E([_.h({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],N2);
_.W(N2,"ytd-channel-switcher-header-renderer",function(){if(NT$!==void 0)return NT$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return NT$=A},{mode:1});var AwW;var Qdj;var sw=function(){var A=_.q.apply(this,arguments)||this;A.isDisplayed=!0;return A};
_.O(sw,_.q);_.d=sw.prototype;_.d.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.dataChanged=function(){this.isDisplayed=!0};
_.d.computeType=function(A){return A||"UNKNOWN"};
_.d.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isDisplayed=!1};
_.d.onClose=function(){this.isDisplayed=!1};
sw.prototype.onYtServiceRequestCompleted=sw.prototype.onYtServiceRequestCompleted;sw.prototype.dataChanged=sw.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sw.prototype,"data",void 0);
_.E([_.C({computed:"computeType(data.type)",reflectToAttribute:!0}),_.c("design:type",String)],sw.prototype,"type",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sw.prototype,"isDisplayed",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sw.prototype,"dataChanged",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],sw.prototype,"onYtServiceRequestCompleted",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],sw);
_.W(sw,"ytd-alert-with-button-renderer",function(){if(Qdj!==void 0)return Qdj;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Qdj=A},{mode:1});var m0=function(){var A=_.q.apply(this,arguments)||this;A.noResult=!1;A.enableAlertBanner=!1;A.dismissedAlertBanner=!1;A.hideCreateChannelButton=!1;A.boundDismissAlertBanner=function(){A.dismissAlertBanner()};
A.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return A};
_.O(m0,_.q);_.d=m0.prototype;_.d.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.d.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.d.updateChannelSwitcherAction=function(A){var Q;A=(Q=_.V(A,JPN))==null?void 0:Q.page;_.V(A,ioN)!==void 0&&(this.data=_.V(A,ioN))};
_.d.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]]"}}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d.searchQueryChanged=function(A,Q){if(this.data&&this.data.contents&&this.data.contents.length){A=[];var b=[];this.hideCreateChannelButton=this.noResult=!1;for(var f=document.querySelectorAll("ytd-account-item-renderer"),a=_.F(f),T=a.next();!T.done;T=a.next())T=T.value,b.push(T),T.style.display="block";this.resetRightBorder(b);if(Q){this.hideCreateChannelButton=!0;for(b=1;b<this.data.contents.length;b++)if(T=this.data.contents[b],_.V(T,IWK)){var G=void 0,p=void 0;a=(G=_.V(T,IWK))==null?void 0:(p=
G.accountName)==null?void 0:p.simpleText;p=G=void 0;T=(G=_.V(T,IWK))==null?void 0:(p=G.channelHandle)==null?void 0:p.simpleText;(G=f[b-1])&&a&&_.Xi(a,Q)?A.push(G):_.K("enable_handle_search_on_channel_switcher")&&G&&T&&_.Xi(T.toString(),Q.toString())?A.push(G):G.style.display="none"}A.length===0&&(this.noResult=!0);this.resetRightBorder(A)}}};
_.d.resetRightBorder=function(A){for(var Q=0;Q<A.length;Q++)A[Q].style.borderRight=!this.hideCreateChannelButton&&(Q+2)%3===0||this.hideCreateChannelButton&&(Q+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.d.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.d.setShowSearchBox=function(A){if(A&&A.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var Q=0;Q<A.contents.length;Q++)_.V(A.contents[Q],_.ac)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.d.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Qr.Object.defineProperties(m0.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.contents)}}});
m0.prototype.onContinuationItemsUpdated=m0.prototype.onContinuationItemsUpdated;m0.prototype.searchQueryChanged=m0.prototype.searchQueryChanged;m0.prototype.onDataChanged=m0.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],m0.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],m0.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],m0.prototype,"data",void 0);_.E([_.V1("ytd-channel-switcher-header-renderer"),_.c("design:type",Object)],m0.prototype,"channelSwitcherHeaderRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],m0.prototype,"noResult",void 0);
_.E([_.C(),_.c("design:type",Object)],m0.prototype,"enableAlertBanner",void 0);_.E([_.C(),_.c("design:type",Object)],m0.prototype,"dismissedAlertBanner",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m0.prototype,"hideCreateChannelButton",void 0);_.E([_.H("data.contents"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],m0.prototype,"isLoading",null);_.E([_.C(),_.c("design:type",Object)],m0.prototype,"boundDismissAlertBanner",void 0);
_.E([_.C({computed:"computeButtonOverride()"}),_.c("design:type",Object)],m0.prototype,"buttonOverride",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m0.prototype,"onDataChanged",null);_.E([_.Kc("search-query-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,String]),_.c("design:returntype")],m0.prototype,"searchQueryChanged",null);
_.E([_.Kc("yt-next-continuation-data-updated"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],m0.prototype,"onContinuationItemsUpdated",null);_.E([_.h({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],m0);
_.W(m0,"ytd-channel-switcher-page-renderer",function(){if(AwW!==void 0)return AwW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return AwW=A},{mode:1});var bQx;var ftM;var AO=function(){var A=_.q.apply(this,arguments)||this;A.images=[];A.selectedImageIndex=0;return A};
_.O(AO,_.q);_.d=AO.prototype;
_.d.ready=function(){_.jM(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.jM(this.JSC$15511_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.jM(this.JSC$15511_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.jM(this.JSC$15511_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.d.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.d.updateImageThumbnails=function(A){A=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:A.event_.detail});this.images.splice(this.selectedImageIndex,1,A);this.images=[].concat(_.ri(this.images))};
_.d.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Bn(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.d.saveImageRepositions=function(){this.selectedImageIndex=0;_.Bn(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Qr.Object.defineProperties(AO.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var A=this;return(this.images||[]).map(function(Q,b){return{image:Q,selected:b===A.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("ytd-backstage-image-preview-renderer"),_.c("design:type",Object)],AO.prototype,"JSC$15511_imagePreviewContainer",void 0);_.E([_.V1(".thumbnail-images-container"),_.c("design:type",HTMLElement)],AO.prototype,"thumbnailImagesContainer",void 0);_.E([_.C(),_.c("design:type",Array)],AO.prototype,"images",void 0);
_.E([_.C(),_.c("design:type",Object)],AO.prototype,"repositionInstructions",void 0);_.E([_.C(),_.c("design:type",Object)],AO.prototype,"selectedImageIndex",void 0);_.E([_.H("images","selectedImageIndex"),_.c("design:type",Array),_.c("design:paramtypes",[])],AO.prototype,"thumbnailRendererDatas",null);_.E([_.H("images","selectedImageIndex"),_.c("design:type",Object),_.c("design:paramtypes",[])],AO.prototype,"selectedImageData",null);
_.E([_.h({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],AO);
_.W(AO,"ytd-backstage-multi-image-reposition-renderer",function(){if(ftM!==void 0)return ftM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ftM=A},{mode:1});var Qs=function(A,Q){_.IH.call(this);this.uploadUrl=A;this.channelId=Q;this.imagesUploadData=[]};
_.O(Qs,_.IH);Qs.prototype.getAllUploadStatuses=function(){var A=this,Q,b,f;return _.B(function(a){if(a.nextAddress==1)return a.yield(at$(A),2);Q=a.yieldResult;b=Q.get("succeed");f=Q.get("failed");return a.return(b.concat(f))})};
var diW=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(at$(A),2);Q=f.yieldResult;b=Q.get("failed");b.length>0&&THK(A,b);return f.return(A.getAllUploadStatuses())})},at$=function(A){var Q,b,f,a,T,G,p;
return _.B(function(P){if(P.nextAddress==1)return Q=new Map,P.yield(Promise.allSettled(A.imagesUploadData.map(function(U){return U.uploadPromise})),2);
b=P.yieldResult;f=[];a=_.F(b);for(T=a.next();!T.done;T=a.next())G=T.value,G.status==="fulfilled"&&f.push(G.value);p=A.imagesUploadData.map(function(U){return U.image}).filter(function(U){return f.every(function(L){return L.id!==U.id})});
Q.set("succeed",f);Q.set("failed",p);return P.return(Q)})},THK=function(A,Q){Q=_.F(Q);
for(var b=Q.next();!b.done;b=Q.next()){var f=A;b=b.value;F3r(f,b.id)>=0&&f.cancel(b.id);var a=new GC1(b),T=_.SJM(f.uploadUrl,{"X-YouTube-ChannelId":f.channelId},b.imageBlob);a.transfer=T;a.uploadPromise=BHL(T,b);f.imagesUploadData.push(a);T.run()}};
Qs.prototype.cancel=function(A){var Q=F3r(this,A);Q!==-1&&((Q=this.imagesUploadData[Q].transfer)&&Q.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(b){return b.image.id!==A}))};
var F3r=function(A,Q){return A.imagesUploadData.findIndex(function(b){return b.image.id===Q})},BHL=function(A,Q){return new Promise(function(b,f){A.listen("l",function(){var a=A.getResponseText();
a?(a=JSON.parse(a).encryptedBlobId,Q.encryptedBlobId=a,b(Q)):f("upload failed")});
A.listen("n",function(){f("upload failed")})})},GC1=function(A){this.image=A};var BCU=function(A,Q,b,f,a){this.id=A;this.imageBlob=Q;this.localImageSrc=b;this.naturalWidth=f;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 pwy=[".jpeg",".jpg",".png"],bE=function(){var A=_.q.apply(this,arguments)||this;A.showImagesPreview=!1;A.pollOptions=[];A.errorMessage="";A.optionPlaceholderText="";A.optionDefaultText="";A.JSC$15522_imageId=0;A.maxFileSizeMb=0;A.maxAspectRatio=0;A.invalidFileSizeError="";A.invalidAspectRatioError="";A.invalidFileTypeError="";A.imageSelector=new KY(null,"single_file",pwy);return A};
_.O(bE,_.q);_.d=bE.prototype;_.d.ready=function(){_.jM(this.imageSelector,"j",this.onImageSelect,!1,this);_.jM(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.jM(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.d.dataChanged=function(){var A,Q,b=_.V((A=this.data)==null?void 0:(Q=A.cellTemplate)==null?void 0:Q.onEmptyCellTap,nt1);if(b&&b.uploadUrl&&b.channelId){var f;this.maxFileSizeMb=((f=b.imageValidationInfo)==null?void 0:f.maxFileSizeMb)||0;var a;this.maxAspectRatio=((a=b.imageValidationInfo)==null?void 0:a.allowedMaxAspectRatio)||0;var T;this.invalidFileSizeError=this.getSimpleString((T=this.data)==null?void 0:T.invalidFileSizeError);var G;this.invalidAspectRatioError=this.getSimpleString((G=this.data)==
null?void 0:G.invalidAspectRatioError);var p;this.invalidFileTypeError=this.getSimpleString((p=this.data)==null?void 0:p.invalidFileTypeError);this.uploadManager=new Qs(b.uploadUrl,b.channelId)}};
_.d.onEditorInfoChange=function(){this.optionPlaceholderText=_.mO(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.mO(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.d.observeAddImageError=function(){this.errorMessage!==""&&_.Bn(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.d.onPollOptionsChange=function(){for(var A=!1,Q=[],b=0;b<this.pollOptions.length;b++){var f=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(b+1);this.pollOptions[b].placeholderText!==f?(A=!0,Q.push(Object.assign({},this.pollOptions[b],{placeholderText:f}))):Q.push(this.pollOptions[b])}A&&(this.pollOptions=Q);this.isValid()?_.Bn(this.hostElement,"yt-commentbox-post-enable"):_.Bn(this.hostElement,"yt-commentbox-post-disable")};
_.d.createPollOptions=function(A){var Q=[],b;A=(b=A==null?void 0:A.minPollOptions)!=null?b:0;for(b=0;b<A;b++)Q.push(this.createPollOption());return Q};
_.d.onImageSelect=function(A){var Q=this,b,f,a,T,G,p;return _.B(function(P){if(P.nextAddress==1){if(Q.selectedImageIndex===void 0)return P.jumpTo(0);b=A.files[0];Q.errorMessage="";f=Q.validateImage(b);if(f!=="")return Q.errorMessage=f,P.return();a=new Q2(Q.maxAspectRatio,!1,!0);return P.yield(a.transform(b),3)}if(P.nextAddress!=4)return T=P.yieldResult,T.transformedData?T.invalidAspectRatio?(Q.errorMessage=Q.invalidAspectRatioError,P.return()):P.yield(pAF(Q.JSC$15522_imageId,A.files[0],T.transformedData),
4):(Q.errorMessage=Q.invalidFileTypeError,P.return());G=P.yieldResult;Q.JSC$15522_imageId++;THK(Q.uploadManager,[G]);p=Object.assign({},Q.pollOptions[Q.selectedImageIndex],{image:G});Q.pollOptions.splice(Q.selectedImageIndex,1,p);Q.refreshPollOptions();_.Bn(Q.hostElement,"yt-backstage-poll-image-select");_.Oi(P)})};
_.d.validateImage=function(A){return A.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.d.refreshPollOptions=function(){this.pollOptions=[].concat(_.ri(this.pollOptions))};
_.d.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.ri(this.pollOptions),[this.createPollOption()]))};
_.d.onRemovePollOption=function(A){var Q=this.pollOptions[A.model.index];Q&&Q.image&&this.uploadManager.cancel(Q.image.id);this.pollOptions.splice(A.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Bn(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.d.onTextInput=function(){this.refreshPollOptions()};
_.d.onImageButtonClick=function(A){this.selectedImageIndex=A.model.index;this.imageSelector.click()};
_.d.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.d.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.d.saveImageRepositions=function(A){A=A.event_.detail;for(var Q=0,b=[],f=_.F(this.pollOptions),a=f.next();!a.done;a=f.next())a=a.value,a.image!==void 0?(a=Object.assign({},a,{image:A[Q]}),b.push(a),Q++):b.push(a);this.showImagesPreview=!1;this.pollOptions=[].concat(_.ri(b))};
_.d.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 A=0,Q=_.F(this.pollOptions),b=Q.next();!b.done;b=Q.next())if(b=b.value,b.optionText.trim()!==""||b.image!==void 0){if(!b.image||this.hasCustomOptionText&&b.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;A++}return A>=Number(this.editorInfo.minPollOptions)};
_.d.getAllUploadStatuses=function(){var A=this,Q,b,f,a;return _.B(function(T){if(T.nextAddress==1)return T.yield(A.uploadManager.getAllUploadStatuses(),2);Q=T.yieldResult;b=_.F(Q);for(f=b.next();!f.done;f=b.next())if(a=f.value,a.encryptedBlobId===void 0)return T.return(diW(A.uploadManager));return T.return(Q)})};
_.d.getPostCreateOptions=function(){for(var A=[],Q=_.F(this.pollOptions),b=Q.next();!b.done;b=Q.next())b=b.value,b.image!==void 0&&A.push({text:this.hasCustomOptionText?b.optionText:b.placeholderText,image:b.image});return A};
_.d.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.d.createButtonRenderer=function(A,Q){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleString(A)}},isDisabled:Q}};
_.d.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.d.computeThumbnailRendererData=function(A){return A?{image:A,selected:!1}:void 0};
_.d.getSimpleString=function(A){return _.mO(A)};
_.d.updateOptionTextFromBinding=function(A){if(A.target){var Q=Array.from(_.Bj(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(A.target);if(Q>=0){var b;this.pollOptions[Q].optionText=(b=A.detail.value)!=null?b:""}}};
_.Qr.Object.defineProperties(bE.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,Q;return this.pollOptions.length<((Q=(A=this.editorInfo)==null?void 0:A.maxPollOptions)!=null?Q:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(A){return A.image}).map(function(A){return A.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var A,Q=(A=this.data)==null?void 0:A.addOptionButtonText;return Q?this.createButtonRenderer(Q,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var A,Q=(A=this.data)==null?void 0:A.repositionImagesButtonLabel;return Q?this.createButtonRenderer(Q,!this.hasImages):void 0}}});
bE.prototype.onPollOptionsChange=bE.prototype.onPollOptionsChange;bE.prototype.observeAddImageError=bE.prototype.observeAddImageError;bE.prototype.onEditorInfoChange=bE.prototype.onEditorInfoChange;bE.prototype.dataChanged=bE.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("ytd-backstage-multi-image-reposition-renderer"),_.c("design:type",Object)],bE.prototype,"imageRepositionContainer",void 0);
_.E([_.C(),_.c("design:type",Object)],bE.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],bE.prototype,"editorInfo",void 0);_.E([_.C(),_.c("design:type",Qs)],bE.prototype,"uploadManager",void 0);_.E([_.C(),_.c("design:type",Object)],bE.prototype,"showImagesPreview",void 0);_.E([_.C(),_.c("design:type",Array)],bE.prototype,"pollOptions",void 0);_.E([_.C(),_.c("design:type",Object)],bE.prototype,"errorMessage",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bE.prototype,"dataChanged",null);_.E([_.I_("editorInfo"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bE.prototype,"onEditorInfoChange",null);_.E([_.iN("errorMessage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bE.prototype,"observeAddImageError",null);
_.E([_.I_("pollOptions"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bE.prototype,"onPollOptionsChange",null);_.E([_.H("pollOptions","editorInfo"),_.c("design:type",Object),_.c("design:paramtypes",[])],bE.prototype,"isAllowedToAddOption",null);_.E([_.H("pollOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],bE.prototype,"hasImages",null);
_.E([_.H("pollOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],bE.prototype,"imagesToReposition",null);_.E([_.H("pollOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],bE.prototype,"hasCustomOptionText",null);_.E([_.H("data","isAllowedToAddOption"),_.c("design:type",Object),_.c("design:paramtypes",[])],bE.prototype,"addOptionButton",null);_.E([_.H("data","hasImages"),_.c("design:type",Object),_.c("design:paramtypes",[])],bE.prototype,"repositionImagesButton",null);
_.E([_.h({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],bE);
_.W(bE,"ytd-backstage-image-poll-editor-renderer",function(){if(bQx!==void 0)return bQx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return bQx=A},{mode:2});var PaY={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 XwW;var ff=function(){var A=_.q.apply(this,arguments)||this;A.a11yConfig=PaY;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.showPreviewContainer=!0;A.startPicker=!1;A.repositionOptional=!1;A.editOnlyMode=!1;A.savedImageDisplayOffsetTop=0;A.savedImageDisplayOffsetLeft=0;return A};
_.O(ff,_.q);_.d=ff.prototype;_.d.created=function(){_.ur.requestAvailability()};
_.d.ready=function(){};
_.d.onArrowKeysDown=function(A){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var Q=0,b=0,f="";switch(A.detail.keyboardEvent.key){case "ArrowUp":P8b(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:Q=this.imageHeight*.05*-1;break;case "ArrowDown":P8b(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
Q=this.imageHeight*.05;break;case "ArrowLeft":P8b(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:b=this.imageWidth*.05*-1;break;case "ArrowRight":P8b(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:b=this.imageWidth*.05}f&&_.JQ(f)&&_.Bn(this.hostElement,"iron-announce",{text:_.JQ(f)});if(b||Q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Q)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.JQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+b)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.JQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.Bn(this.hostElement,"iron-announce",{text:A})}};
_.d.getPreviewPosition=function(A,Q,b,f){return Math.round(100*(A+Q*.5-b)/f)};
_.d.calculateDisplayPosition=function(){var A=this.imageData.naturalWidth,Q=this.imageData.naturalHeight;this.displayScale=Math.max(200/A,200/Q);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var b=A*this.displayScale*this.imageData.previewCoordinates.left,f=Q*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=Q>A?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-b;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=A>Q?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-f;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=A*this.displayScale;this.imageHeight=Q*this.displayScale};
_.d.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.d.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.d.getSignedPosition=function(A,Q,b){return Q==="X"&&_.vG("HTML_DIR")==="rtl"?b==="-"?A+"px":A*-1+"px":b==="-"?A*-1+"px":A+"px"};
_.d.pickerMove=function(A){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Q=this.pickerOffsetX-A.clientX,b=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
b)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Q))}};
_.d.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.d.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var A=this.generateCropPreview();A&&_.Bn(this.hostElement,"ytd-backstage-image-preview-coordinates-update",A)};
_.d.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Bn(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.d.deleteImage=function(){_.Bn(this.hostElement,"ytd-backstage-image-preview-delete")};
_.d.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.d.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var A=this.generateCropPreview();A&&_.Bn(this.hostElement,"ytd-backstage-image-preview-coordinates-save",A)};
_.d.getPreviewOffset=function(A,Q,b){return Q&&A?(b==="X"&&_.vG("HTML_DIR")==="rtl"?300/Q*A:300/Q*A*-1)+"px":"0px"};
_.d.getSimpleText=function(A){return A?_.mO(A):""};
_.d.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}};
_.Qr.Object.defineProperties(ff.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.JQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.JQ(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.JQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.JQ(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 A,Q,b=(A=this.instruction)==null?void 0:(Q=A.previewInstruction)==null?void 0:Q.editButtonLabel;return b?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a=this.editOnlyMode?(A=this.instruction)==null?void 0:(Q=A.editInstruction)==null?void 0:Q.saveImagesButtonLabel:(b=this.instruction)==null?void 0:(f=b.editInstruction)==null?void 0:f.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 A,Q,b=(A=this.instruction)==null?void 0:(Q=A.previewInstruction)==null?void 0:Q.deleteButtonLabel;return b?{size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.instruction)==null?void 0:(Q=A.editInstruction)==null?void 0:Q.cancelButtonLabel;A=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return b?{style:A,size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}: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"}}});
ff.prototype.onEditOnlyModeUpdate=ff.prototype.onEditOnlyModeUpdate;ff.prototype.onImageChange=ff.prototype.onImageChange;_.E([_.C(),_.c("design:type",BCU)],ff.prototype,"imageData",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"instruction",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"a11yConfig",void 0);_.E([_.C(),_.c("design:type",Number)],ff.prototype,"imageWidth",void 0);_.E([_.C(),_.c("design:type",Number)],ff.prototype,"imageHeight",void 0);
_.E([_.C(),_.c("design:type",Number)],ff.prototype,"displayScale",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"imageDisplayOffsetTop",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"showPreviewContainer",void 0);
_.E([_.C(),_.c("design:type",Object)],ff.prototype,"startPicker",void 0);_.E([_.C(),_.c("design:type",Number)],ff.prototype,"pickerOffsetX",void 0);_.E([_.C(),_.c("design:type",Number)],ff.prototype,"pickerOffsetY",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"repositionOptional",void 0);_.E([_.C(),_.c("design:type",Object)],ff.prototype,"editOnlyMode",void 0);_.E([_.V1("#picker-container"),_.c("design:type",HTMLElement)],ff.prototype,"JSC$15535_pickerContainer",void 0);
_.E([_.V1("#picker"),_.c("design:type",HTMLElement)],ff.prototype,"picker",void 0);_.E([_.V1("#preview-clipper"),_.c("design:type",HTMLElement)],ff.prototype,"previewClipper",void 0);_.E([_.V1("#image-in-picker-background"),_.c("design:type",HTMLImageElement)],ff.prototype,"JSC$15535_imageInBackground",void 0);_.E([_.V1("#image-in-picker"),_.c("design:type",HTMLImageElement)],ff.prototype,"JSC$15535_imageInPicker",void 0);
_.E([_.V1("#image-in-preview-clipper"),_.c("design:type",HTMLImageElement)],ff.prototype,"JSC$15535_imageInPreviewClipper",void 0);_.E([_.H("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ff.prototype,"altLabelForImage",null);_.E([_.H("imageHeight","imageWidth"),_.c("design:type",Number),_.c("design:paramtypes",[])],ff.prototype,"pickerSize",null);
_.E([_.H("imageHeight","imageWidth"),_.c("design:type",Object),_.c("design:paramtypes",[])],ff.prototype,"imageOrientationStyle",null);_.E([_.H("instruction"),_.c("design:type",Object),_.c("design:paramtypes",[])],ff.prototype,"editButton",null);_.E([_.H("instruction","editOnlyMode"),_.c("design:type",Object),_.c("design:paramtypes",[])],ff.prototype,"saveButton",null);_.E([_.H("instruction"),_.c("design:type",Object),_.c("design:paramtypes",[])],ff.prototype,"deleteButton",null);
_.E([_.H("instruction","editOnlyMode"),_.c("design:type",Object),_.c("design:paramtypes",[])],ff.prototype,"cancelButton",null);_.E([_.H("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.c("design:type",Number),_.c("design:paramtypes",[])],ff.prototype,"cropOffsetTop",null);_.E([_.H("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.c("design:type",Number),_.c("design:paramtypes",[])],ff.prototype,"cropOffsetLeft",null);
_.E([_.H("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ff.prototype,"pickerBackgroundStyle",null);_.E([_.H("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ff.prototype,"pickerDisplayStyle",null);_.E([_.H("cropOffsetLeft","cropOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ff.prototype,"imageInPickerStyle",null);
_.E([_.H("cropOffsetLeft","cropOffsetTop","pickerSize"),_.c("design:type",String),_.c("design:paramtypes",[])],ff.prototype,"previewClipperStyle",null);_.E([_.I_("imageData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ff.prototype,"onImageChange",null);_.E([_.I_("editOnlyMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ff.prototype,"onEditOnlyModeUpdate",null);
_.E([_.H("showPreviewContainer"),_.c("design:type",String),_.c("design:paramtypes",[])],ff.prototype,"pickerModeStyle",null);_.E([_.h({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],ff);
_.W(ff,"ytd-backstage-image-preview-renderer",function(){if(XwW!==void 0)return XwW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return XwW=A},{mode:1});var S51;var UiL={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 L3Y;var MSN;var ag=function(){var A=_.q.apply(this,arguments)||this;A.a11yConfig=UiL;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.cropCoordinatesSaved=!1;A.previewSize=0;A.startPicker=!1;A.repositionOptional=!1;return A};
_.O(ag,_.q);_.d=ag.prototype;_.d.created=function(){_.ur.requestAvailability()};
_.d.ready=function(){};
_.d.onArrowKeysDown=function(A){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var Q=0,b=0,f="";switch(A.detail.keyboardEvent.key){case "ArrowUp":XA6(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:Q=this.imageHeight*.05*-1;break;case "ArrowDown":XA6(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
Q=this.imageHeight*.05;break;case "ArrowLeft":XA6(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:b=this.imageWidth*.05*-1;break;case "ArrowRight":XA6(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:b=this.imageWidth*.05}f&&_.JQ(f)&&_.Bn(this.hostElement,"iron-announce",{text:_.JQ(f)});if(b||Q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+Q)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.JQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+b)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.JQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.Bn(this.hostElement,"iron-announce",{text:A})}};
_.d.getPreviewPosition=function(A,Q,b,f){return Math.round(100*(A+Q*.5-b)/f)};
_.d.displayImage=function(){var A=this.JSC$15546_pickerContainer.getBoundingClientRect().width,Q=this.JSC$15546_pickerContainer.getBoundingClientRect().height,b=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),f=this.JSC$15546_imageInBackground.naturalWidth,a=this.JSC$15546_imageInBackground.naturalHeight;this.displayScale=Math.max(b/f,b/a);this.imageWidth=f*this.displayScale;this.imageHeight=a*this.displayScale;this.pickerDisplayOffsetLeft=(A-b)/2;this.pickerDisplayOffsetTop=
(Q-b)/2;this.imageDisplayOffsetLeft=a>f?this.pickerDisplayOffsetLeft:(A-this.imageWidth)/2;this.imageDisplayOffsetTop=f>a?this.pickerDisplayOffsetTop:(Q-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.d.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15546_imageInBackground.src=this.imageData.toString(),this.JSC$15546_imageInPicker.src=this.imageData.toString(),this.JSC$15546_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.d.getSignedPosition=function(A,Q,b){return Q==="X"&&_.vG("HTML_DIR")==="rtl"?b==="-"?A+"px":A*-1+"px":b==="-"?A*-1+"px":A+"px"};
_.d.pickerMove=function(A){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var Q=this.pickerOffsetX-A.clientX,b=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
b)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-Q))}};
_.d.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.d.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.d.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Bn(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.d.getPreviewOffset=function(A,Q,b,f){return Q&&A&&b?(f==="X"&&_.vG("HTML_DIR")==="rtl"?b/Q*A:b/Q*A*-1)+"px":"0px"};
_.d.getSimpleText=function(A){return A?_.mO(A):""};
_.d.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var A=this.cropOffsetTop/this.imageHeight,Q=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,b=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,f=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Bj(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Bn(this.hostElement,"yt-img-crop-coordinates-update",{top:A,right:Q,bottom:b,left:f})}};
_.Qr.Object.defineProperties(ag.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.JQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.JQ(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.JQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.JQ(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 A,Q=(A=this.learnMore.runs[0])==null?void 0:A.navigationEndpoint,b;return((b=_.V(Q,_.y_))==null?void 0:b.url)||void 0}}}});
ag.prototype.onImageDataChange=ag.prototype.onImageDataChange;_.E([_.C(),_.c("design:type",Object)],ag.prototype,"imageData",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"instruction",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"a11yConfig",void 0);_.E([_.C(),_.c("design:type",Number)],ag.prototype,"imageWidth",void 0);_.E([_.C(),_.c("design:type",Number)],ag.prototype,"imageHeight",void 0);_.E([_.C(),_.c("design:type",Number)],ag.prototype,"displayScale",void 0);
_.E([_.C(),_.c("design:type",Object)],ag.prototype,"imageDisplayOffsetTop",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"cropCoordinatesSaved",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"previewSize",void 0);
_.E([_.C(),_.c("design:type",Object)],ag.prototype,"startPicker",void 0);_.E([_.C(),_.c("design:type",Number)],ag.prototype,"pickerOffsetX",void 0);_.E([_.C(),_.c("design:type",Number)],ag.prototype,"pickerOffsetY",void 0);_.E([_.C(),_.c("design:type",Object)],ag.prototype,"repositionOptional",void 0);_.E([_.V1("#picker-container"),_.c("design:type",HTMLElement)],ag.prototype,"JSC$15546_pickerContainer",void 0);_.E([_.V1("#picker"),_.c("design:type",HTMLElement)],ag.prototype,"picker",void 0);
_.E([_.V1("#image-in-picker-background"),_.c("design:type",HTMLImageElement)],ag.prototype,"JSC$15546_imageInBackground",void 0);_.E([_.V1("#image-in-picker"),_.c("design:type",HTMLImageElement)],ag.prototype,"JSC$15546_imageInPicker",void 0);_.E([_.V1("#image-in-preview-clipper"),_.c("design:type",HTMLImageElement)],ag.prototype,"JSC$15546_imageInPreviewClipper",void 0);_.E([_.V1("#full-image-as-preview"),_.c("design:type",HTMLImageElement)],ag.prototype,"imageAsPreview",void 0);
_.E([_.H("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ag.prototype,"altLabelForImage",null);_.E([_.H("imageHeight","imageWidth"),_.c("design:type",Number),_.c("design:paramtypes",[])],ag.prototype,"pickerSize",null);_.E([_.H("imageHeight","imageWidth"),_.c("design:type",Object),_.c("design:paramtypes",[])],ag.prototype,"imageOrientationStyle",null);
_.E([_.H("instruction.previewInstruction.editButtonLabel"),_.c("design:type",Object),_.c("design:paramtypes",[])],ag.prototype,"editButton",null);_.E([_.H("instruction.editInstruction.saveButtonLabel"),_.c("design:type",Object),_.c("design:paramtypes",[])],ag.prototype,"saveButton",null);_.E([_.H("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.c("design:type",Number),_.c("design:paramtypes",[])],ag.prototype,"cropOffsetTop",null);
_.E([_.H("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.c("design:type",Number),_.c("design:paramtypes",[])],ag.prototype,"cropOffsetLeft",null);_.E([_.H("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ag.prototype,"pickerBackgroundStyle",null);_.E([_.H("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ag.prototype,"pickerDisplayStyle",null);
_.E([_.H("cropOffsetLeft","cropOffsetTop"),_.c("design:type",String),_.c("design:paramtypes",[])],ag.prototype,"imageInPickerStyle",null);_.E([_.H("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.c("design:type",String),_.c("design:paramtypes",[])],ag.prototype,"previewClipperStyle",null);_.E([_.iN("imageData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ag.prototype,"onImageDataChange",null);
_.E([_.H("cropCoordinatesSaved"),_.c("design:type",String),_.c("design:paramtypes",[])],ag.prototype,"pickerModeStyle",null);_.E([_.H("instruction.editInstruction.learnMore"),_.c("design:type",Object),_.c("design:paramtypes",[])],ag.prototype,"learnMore",null);_.E([_.H("learnMore"),_.c("design:type",Object),_.c("design:paramtypes",[])],ag.prototype,"learnMoreUrl",null);_.E([_.Ec({is:"yt-img-crop-picker",disableElementRegistration:!0})],ag);
_.W(ag,"yt-img-crop-picker",function(){if(MSN===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;L3Y===void 0&&(L3Y=document.createElement("template"));var f=L3Y;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);MSN=A}A=MSN;return A},{mode:2});var T_=function(){var A=_.q.apply(this,arguments)||this;A.errorMessage="";A.hasPreview=!1;A.isBackstagePost=!1;A.dismissButtonOverrides={size:"XS"};return A};
_.O(T_,_.q);_.d=T_.prototype;_.d.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"}}}};
_.d.detached=function(){this.removeOverlay()};
_.d.setPreview=function(A){_.Bj(this.hostElement).querySelector("#preview-picker").imageData=A;this.hasPreview=!0;_.Bn(this.hostElement,"yt-backstage-image-select-preview")};
_.d.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var A=_.Bj(this.hostElement).querySelector("#dropzone");A.classList.remove("dragover");A.classList.remove("error");_.Bn(this.hostElement,"yt-backstage-image-select-cancel")};
_.d.setupOverlay=function(){var A=this.imageUploadEndpoint;this.removeOverlay();if(A&&A.imageValidationInfo){var Q=_.Bj(this.hostElement).querySelector("#dropzone"),b=_.Bj(this.hostElement).querySelector("#select");this.overlay=new f2(A.uploadUrl,A.channelId,A.imageValidationInfo.maxFileSizeMb,A.imageValidationInfo.allowedMaxAspectRatio,Q,b,!0);_.jM(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.jM(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.jM(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.jM(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.jM(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.d.removeOverlay=function(){this.overlay&&(_.kp(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.kp(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.kp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.kp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.kp(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.d.onDragOver=function(A){var Q=_.Bj(this.hostElement).querySelector("#dropzone");_.Pj(Q,"dragover",A.value)};
_.d.onPreview=function(A){this.setPreview(A.value)};
_.d.onImageError=function(A){if(A.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var Q;A=(Q=this.data)==null?void 0:Q.fileSizeError}else if(A.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var b;A=(b=this.data)==null?void 0:b.invalidError}else if(A.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var f;A=(f=this.data)==null?void 0:f.invalidAspectRatioError}else return;this.errorMessage=_.mO(A);_.Bj(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.d.onImageAlert=function(A){this.onImageError(A)};
_.d.uploadPromise=function(){var A=this,Q=this.overlay&&this.overlay.uploadPromise();if(Q)return Q.catch(function(){throw Error(A.data?_.mO(A.data.uploadFailureError):"");})};
_.Qr.Object.defineProperties(T_.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var A,Q;if((A=this.data)==null?0:(Q=A.icon)==null?0:Q.iconType)return _.K0(this.data.icon.iconType)}}});
T_.prototype.setupOverlay=T_.prototype.setupOverlay;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],T_.prototype,"rendererStamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],T_.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],T_.prototype,"imageUploadEndpoint",void 0);_.E([_.C(),_.c("design:type",Object)],T_.prototype,"errorMessage",void 0);
_.E([_.C(),_.c("design:type",f2)],T_.prototype,"overlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],T_.prototype,"hasPreview",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],T_.prototype,"isBackstagePost",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],T_.prototype,"selectionCancel",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],T_.prototype,"previewCancel",null);
_.E([_.H("data.icon.iconType"),_.c("design:type",Object),_.c("design:paramtypes",[])],T_.prototype,"icon",null);_.E([_.C(),_.c("design:type",Object)],T_.prototype,"dismissButtonOverrides",void 0);_.E([_.iN("imageUploadEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],T_.prototype,"setupOverlay",null);_.E([_.h({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],T_);
_.W(T_,"ytd-backstage-image-select-renderer",function(){if(S51!==void 0)return S51;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return S51=A},{mode:1});var ltr;var K3W;var dm=function(){var A=_.q.apply(this,arguments)||this;A.selected=!1;return A};
_.O(dm,_.q);_.d=dm.prototype;_.d.computeSelected=function(A){return A==null?void 0:A.selected};
_.d.computeTransform=function(A,Q,b){var f,a,T=(a=(f=this.imageContainer)==null?void 0:f.getBoundingClientRect())!=null?a:{width:0,height:0};f=Math.max(T.width/Q,T.height/b);b=b*f*A.top;return"translateX("+this.getSignedPosition(Q*f*A.left,"X","-")+") translateY("+this.getSignedPosition(b,"Y","-")+")"};
_.d.getSignedPosition=function(A,Q,b){return Q==="X"&&_.vG("HTML_DIR")==="rtl"?b==="-"?A+"px":A*-1+"px":b==="-"?A*-1+"px":A+"px"};
_.d.onClick=function(){var A;_.Bn(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(A=this.data)==null?void 0:A.image)};
_.d.onKeyPress=function(A){if(A.keyCode===13)this.onClick()};
_.Qr.Object.defineProperties(dm.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.image)==null?void 0:Q.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.image){var Q;A=(Q=this.data)==null?void 0:Q.image;return A.previewCoordinates.top!==0||A.previewCoordinates.left!==0?(Q=this.computeTransform(A.previewCoordinates,A.naturalWidth,A.naturalHeight),A.naturalHeight>=A.naturalWidth?"width:inherit;transform:"+Q+";":"height:inherit;transform:"+Q+";"):A.naturalHeight>=A.naturalWidth?"width:inherit;":"height:inherit;"}}}});
dm.prototype.onKeyPress=dm.prototype.onKeyPress;_.E([_.V1(".image-container"),_.c("design:type",HTMLElement)],dm.prototype,"imageContainer",void 0);_.E([_.C(),_.c("design:type",Object)],dm.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.c("design:type",Object)],dm.prototype,"selected",void 0);_.E([_.H("data.image"),_.c("design:type",Object),_.c("design:paramtypes",[])],dm.prototype,"thumbnailUrl",null);
_.E([_.H("data.image","data.image.previewCoordinates"),_.c("design:type",Object),_.c("design:paramtypes",[])],dm.prototype,"thumbnailStyle",null);_.E([_.Kc("keypress"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],dm.prototype,"onKeyPress",null);_.E([_.h({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],dm);
_.W(dm,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(K3W!==void 0)return K3W;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return K3W=A},{mode:2});var Fm=function(A,Q,b){b=b===void 0?!1:b;_.IH.call(this);var f=this;this.dropZoneOverlay=new l3(A);this.selectOverlay=b?new KY(Q,"multiple_file",["image/*"]):new KY(Q,"single_file",["image/*"]);this.handler=new _.BR(this);_.SY(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(Q,"click",function(){f.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.O(Fm,_.IH);Fm.prototype.onChange=function(A){var Q;(Q=A.files)!=null&&Q.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:A.files}))};var G_=function(){var A=_.q.apply(this,arguments)||this;A.addImageErrorMessage="";A.errorMessage="";A.images=[];A.selectedImageIndex=0;A.modern=_.K("web_modern_buttons");A.maxNumImagesPerPost=_.GP("max_num_images_per_post_web_ui");A.JSC$15561_imageId=0;return A};
_.O(G_,_.q);_.d=G_.prototype;_.d.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Bn(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.d.observeDragToReorder=function(){var A=this;if(this.showImagesPreview){var Q,b=HBL(_.B3.getInstance(),(Q=this.data)==null?void 0:Q.dragToReorderTooltip);_.j7.addLowPriorityJob(function(){_.ST(A.hostElement,b,A.thumbnailDragDropArea)})}};
_.d.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}}};
_.d.computeThumbnail=function(A){return(A==null?void 0:A.localImageSrc)||void 0};
_.d.onRendererstamperFinished=function(){_.OP1(this.ytReorderableBehavior,_.Bj(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Bj(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.d.handleDrop=function(A){var Q=A.currDragItem;if(Q!=null&&Q.data){A=this.images[this.selectedImageIndex];var b=Q.data.image,f=this.images.indexOf(b)||0;Q=_.eA(Q.parentNode.children,Q);this.images.splice(f,1);this.images.splice(Q,0,b);this.images=[].concat(_.ri(this.images));this.selectedImageIndex=this.images.indexOf(A)}};
_.d.setUpImagePicker=function(){var A=this.imageUploadEndpoint;A&&A.imageValidationInfo&&(this.uploadManager=new Qs(A.uploadUrl,A.channelId),this.initialPicker||(this.initialPicker=new Fm(this.dropzone,this.selectLink,!0),_.jM(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Fm(this.addImageButtonContainer,this.addImageSelectButton),_.jM(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.jM(this.JSC$15561_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.jM(this.JSC$15561_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.jM(_.Bj(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.d.detached=function(){this.initialPicker&&(_.kp(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.kp(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.d.onInitialSelectImages=function(A){var Q=this;return _.B(function(b){return b.yield(Q.onSelectImages(A,!1),0)})};
_.d.onAddImage=function(A){var Q=this;return _.B(function(b){return b.yield(Q.onSelectImages(A,!0),0)})};
_.d.onSelectImages=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y;return _.B(function(a9){switch(a9.nextAddress){case 1:Q?b.addImageErrorMessage="":(b.images=[],b.errorMessage="");f=A.detail;a=b.validateImages([].concat(_.ri(f)));if(a!=="")return Q?b.addImageErrorMessage=a:b.errorMessage=a,a9.return();T=[].concat(_.ri(f)).map(function(pF){return(new Q2(b.maxAspectRatio,!1,!0)).transform(pF)});
return a9.yield(Promise.allSettled(T),2);case 2:G=a9.yieldResult,p=_.F(G.entries()),P=p.next();case 3:if(P.done){a9.jumpTo(5);break}U=P.value;L=_.F(U);M=L.next().value;l=L.next().value;J=M;n=l;if(n.status!=="fulfilled"){e=g=t=void 0;Q?b.addImageErrorMessage=_.mO((t=b.data)==null?void 0:t.invalidError):b.errorMessage=b.errorMessage===""?_.mO((g=b.data)==null?void 0:g.invalidError):_.mO((e=b.data)==null?void 0:e.multiFileError);a9.jumpTo(4);break}x=n.value;x.cropped&&_.Bn(b.hostElement,"yt-backstage-multi-image-cropped");
if(x.invalidAspectRatio){u=w=D=void 0;Q?b.addImageErrorMessage=_.mO((D=b.data)==null?void 0:D.invalidAspectRatioError):b.errorMessage=b.errorMessage===""?_.mO((w=b.data)==null?void 0:w.invalidAspectRatioError):_.mO((u=b.data)==null?void 0:u.multiFileError);a9.jumpTo(4);break}return a9.yield(pAF(b.JSC$15561_imageId,A.detail[J],x.transformedData),8);case 8:y=a9.yieldResult,b.images.push(y),b.JSC$15561_imageId++;case 4:P=p.next();a9.jumpTo(3);break;case 5:if(b.errorMessage!==""||b.addImageErrorMessage!==
"")return a9.return();Q?THK(b.uploadManager,[b.images[b.images.length-1]]):THK(b.uploadManager,b.images);b.images=[].concat(_.ri(b.images));b.selectedImageIndex=Q?Math.max(b.images.length-1,0):0;_.Bn(b.hostElement,"yt-backstage-multi-image-select");_.Oi(a9)}})};
_.d.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.d.validateImages=function(A){if(A.length>this.maxNumImagesPerPost){var Q;return _.mO((Q=this.data)==null?void 0:Q.multiImageExceedMaxImageCountError)}var b=1048576*this.maxFileSizeMb;A=A.filter(function(T){return T.size>b}).length;
if(A===0)return"";var f,a;A=A>1?(f=this.data)==null?void 0:f.multiFileError:(a=this.data)==null?void 0:a.fileSizeError;return _.mO(A)};
_.d.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.ri(this.images));this.selectedImageIndex=0};
_.d.repositionImage=function(A){this.images[this.selectedImageIndex].previewCoordinates=A.event_.detail;this.images=[].concat(_.ri(this.images))};
_.d.getAllUploadStatuses=function(){var A=this,Q,b,f,a;return _.B(function(T){if(T.nextAddress==1)return T.yield(A.uploadManager.getAllUploadStatuses(),2);Q=T.yieldResult;b=_.F(Q);for(f=b.next();!f.done;f=b.next())if(a=f.value,a.encryptedBlobId===void 0)return T.return(diW(A.uploadManager));return T.return(Q)})};
_.d.hasImages=function(){return this.images.length>0};
_.d.cancel=function(){for(var A=this.uploadManager,Q=_.F(A.imagesUploadData),b=Q.next();!b.done;b=Q.next())A.cancel(b.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Bn(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Qr.Object.defineProperties(G_.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.imageUploadEndpoint)==null?void 0:(Q=A.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.imageUploadEndpoint)==null?void 0:(Q=A.imageValidationInfo)==null?void 0:Q.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var A,Q;if((A=this.data)==null?0:(Q=A.icon)==null?0:Q.iconType)return _.K0(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.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 A=this;return(this.images||[]).map(function(Q,b){return{renderer:{image:Q,selected:b===A.selectedImageIndex}}})}}});
G_.prototype.setUpImagePicker=G_.prototype.setUpImagePicker;G_.prototype.onRendererstamperFinished=G_.prototype.onRendererstamperFinished;G_.prototype.observeDragToReorder=G_.prototype.observeDragToReorder;G_.prototype.observeAddImageError=G_.prototype.observeAddImageError;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],G_.prototype,"rendererStamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.n9L),_.c("design:type",Object)],G_.prototype,"ytReorderableBehavior",void 0);_.E([_.V1("#dropzone"),_.c("design:type",HTMLElement)],G_.prototype,"dropzone",void 0);_.E([_.V1("#select-link"),_.c("design:type",HTMLElement)],G_.prototype,"selectLink",void 0);_.E([_.V1("#thumbnail-drag-drop-area"),_.c("design:type",HTMLElement)],G_.prototype,"thumbnailDragDropArea",void 0);_.E([_.V1("#add-image-button-container"),_.c("design:type",HTMLElement)],G_.prototype,"addImageButtonContainer",void 0);
_.E([_.V1("#add-image-button"),_.c("design:type",HTMLElement)],G_.prototype,"addImageSelectButton",void 0);_.E([_.V1("#image-preview-container"),_.c("design:type",Object)],G_.prototype,"JSC$15561_imagePreviewContainer",void 0);_.E([_.C(),_.c("design:type",Object)],G_.prototype,"addImageErrorMessage",void 0);_.E([_.C(),_.c("design:type",Object)],G_.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],G_.prototype,"errorMessage",void 0);
_.E([_.C(),_.c("design:type",Object)],G_.prototype,"imageUploadEndpoint",void 0);_.E([_.C(),_.c("design:type",Array)],G_.prototype,"images",void 0);_.E([_.C(),_.c("design:type",Fm)],G_.prototype,"initialPicker",void 0);_.E([_.C(),_.c("design:type",Fm)],G_.prototype,"addImagePicker",void 0);_.E([_.C(),_.c("design:type",Qs)],G_.prototype,"uploadManager",void 0);_.E([_.C(),_.c("design:type",Object)],G_.prototype,"selectedImageIndex",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],G_.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],G_.prototype,"maxNumImagesPerPost",void 0);_.E([_.H("imageUploadEndpoint"),_.c("design:type",Number),_.c("design:paramtypes",[])],G_.prototype,"maxAspectRatio",null);_.E([_.H("imageUploadEndpoint"),_.c("design:type",Number),_.c("design:paramtypes",[])],G_.prototype,"maxFileSizeMb",null);
_.E([_.H("data.icon.iconType"),_.c("design:type",Object),_.c("design:paramtypes",[])],G_.prototype,"dropIcon",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],G_.prototype,"selectionCancel",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],G_.prototype,"previewCancel",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],G_.prototype,"dataForAddImageButton",null);
_.E([_.H("errorMessage"),_.c("design:type",String),_.c("design:paramtypes",[])],G_.prototype,"dropzoneClass",null);_.E([_.H("images"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],G_.prototype,"showImagesPreview",null);_.E([_.H("images"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],G_.prototype,"containMaxImages",null);_.E([_.iN("addImageErrorMessage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],G_.prototype,"observeAddImageError",null);
_.E([_.iN("showImagesPreview"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],G_.prototype,"observeDragToReorder",null);_.E([_.H("images","selectedImageIndex"),_.c("design:type",Object),_.c("design:paramtypes",[])],G_.prototype,"selectedImageData",null);_.E([_.H("images","selectedImageIndex"),_.c("design:type",Array),_.c("design:paramtypes",[])],G_.prototype,"thumbnailRenderers",null);
_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],G_.prototype,"onRendererstamperFinished",null);_.E([_.iN("imageUploadEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],G_.prototype,"setUpImagePicker",null);_.E([_.h({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],G_);
_.W(G_,"ytd-backstage-multi-image-select-renderer",function(){if(ltr!==void 0)return ltr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ltr=A},{mode:1});var iQ1;var Jwx;var VSL;var B7=function(){var A=_.q.apply(this,arguments)||this;A.boundCaptureFocus=function(Q){A.onCaptureFocus(Q)};
return A};
_.O(B7,_.q);_.d=B7.prototype;_.d.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.d.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.d.onCaptureFocus=function(A){_.mW(A).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.d.getIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.d.onSelect=function(){var A;if((A=this.data)==null?0:A.onSelectCommand)if(_.K("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var Q;((Q=_.V(this.data.onSelectCommand.commandMetadata,_.KD))==null?0:Q.url)?_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.fJ().resolve(_.de).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Qr.Object.defineProperties(B7.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.mO(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],B7.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],B7.prototype,"data",void 0);_.E([_.V1("#item"),_.c("design:type",HTMLElement)],B7.prototype,"item",void 0);_.E([_.H("data.label"),_.c("design:type",String),_.c("design:paramtypes",[])],B7.prototype,"label",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],B7.prototype,"value",null);_.E([_.h({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],B7);
_.W(B7,"ytd-privacy-dropdown-item-renderer",function(){if(VSL!==void 0)return VSL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return VSL=A},{mode:1});var pf=function(){var A=_.q.apply(this,arguments)||this;A.value="";A.label="";A.disabled=!1;return A};
_.O(pf,_.q);_.d=pf.prototype;_.d.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"}}}};
_.d.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.d.dataChanged=function(){this.reset()};
_.d.valueChanged=function(){var A;if(this.value&&(A=this.data)!=null&&A.entries){A=_.F(this.data.entries);for(var Q=A.next();!Q.done;Q=A.next())if((Q=this.getRendererForEntry(Q.value))&&this.getItemRendererValue(Q)===this.value){this.label=this.ytComponentBehavior.getSimpleString(Q.label);break}}};
_.d.setInitialLabel=function(){if(this.data&&this.data.entries)for(var A=_.F(this.data.entries),Q=A.next();!Q.done;Q=A.next())if(Q=this.getRendererForEntry(Q.value)){if(Q.isSelected){this.label=this.ytComponentBehavior.getSimpleString(Q.label);break}this.data.label&&(this.label=this.data.label)}};
_.d.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var A=_.F(this.data.entries),Q=A.next();!Q.done;Q=A.next()){Q=this.getRendererForEntry(Q.value);var b=void 0;if((b=Q)==null?0:b.isSelected)return this.getItemRendererValue(Q)||-1}return-1};
_.d.getItemRendererValue=function(A){return"stringValue"in A||"int32Value"in A?A.stringValue||A.int32Value||null:null};
_.d.getRendererForEntry=function(A){return A.dropdownItemRenderer||A.privacyDropdownItemRenderer||A.navigationDropdownItemRenderer||null};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("value-changed",this.value))};
_.d.updateValueFromBinding=function(A){this.value=A.detail.value};
pf.prototype.valueChangedForBinding=pf.prototype.valueChangedForBinding;pf.prototype.valueChanged=pf.prototype.valueChanged;pf.prototype.dataChanged=pf.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],pf.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],pf.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],pf.prototype,"value",void 0);_.E([_.C(),_.c("design:type",Object)],pf.prototype,"label",void 0);_.E([_.V1("#entries"),_.c("design:type",Object)],pf.prototype,"entries",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pf.prototype,"disabled",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pf.prototype,"dataChanged",null);
_.E([_.I_("value"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pf.prototype,"valueChanged",null);_.E([_.iN("value"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pf.prototype,"valueChangedForBinding",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],pf);
_.W(pf,"ytd-flat-dropdown-renderer",function(){if(Jwx!==void 0)return Jwx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Jwx=A},{mode:1});var OQy;var P7=function(){var A=_.q.apply(this,arguments)||this;A.quizOptions=[];A.explanationPlaceholderText="";A.optionPlaceholderText="";A.correctAnswerIndex=-1;A.isMarkAnswerTooltipShown=!1;A.timer=0;return A};
_.O(P7,_.q);_.d=P7.prototype;_.d.dataChanged=function(){this.optionPlaceholderText=_.mO(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.mO(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.d.onMarkCorrectAnswer=function(A){var Q,b=((Q=this.quizOptions[this.correctAnswerIndex])==null?void 0:Q.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[A.model.index]=Object.assign({},this.quizOptions[A.model.index],{explanationText:b,isCorrect:!0});this.correctAnswerIndex=A.model.index;this.quizOptions=[].concat(_.ri(this.quizOptions))};
_.d.updatePlaceholderTexts=function(){for(var A=!1,Q=[],b=0;b<this.quizOptions.length;b++){var f=this.optionPlaceholderText+" "+(b+1),a=void 0;((a=this.quizOptions[b])==null?void 0:a.placeholderText)!==f?(A=!0,Q.push(Object.assign({},this.quizOptions[b],{placeholderText:f}))):Q.push(this.quizOptions[b])}A&&(this.quizOptions=Q);this.isValid()?_.Bn(this.hostElement,"yt-commentbox-post-enable"):_.Bn(this.hostElement,"yt-commentbox-post-disable")};
_.d.getSimpleString=function(A){return _.mO(A)};
_.d.createQuizOptions=function(A){var Q=[],b;A=(b=A==null?void 0:A.minQuizOptions)!=null?b:0;for(b=0;b<A;b++)Q.push(this.createQuizOption());return Q};
_.d.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.ri(this.quizOptions),[this.createQuizOption()]))};
_.d.onInput=function(){this.quizOptions=[].concat(_.ri(this.quizOptions))};
_.d.onExplanationInput=function(){_.Bn(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.d.onRemoveQuizOption=function(A){this.quizOptions.splice(A.model.index,1);A.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:A.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.ri(this.quizOptions));this.quizOptions.length===0&&_.Bn(this.hostElement,"yt-quiz-attachment-dismiss")};
_.d.updateHintRenderer=function(){var A=this;clearTimeout(this.timer);this.timer=setTimeout(function(){A.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.d.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var A=0,Q=0,b=_.F(this.quizOptions),f=b.next();!f.done;f=b.next()){f=f.value;var a=void 0;if(((a=f.optionText)==null?void 0:a.trim())!==""||f.isCorrect){f.isCorrect&&Q++;a=void 0;if(this.hasCustomOptionText&&((a=f.optionText)==null?void 0:a.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;A++}}return A>=
Number(this.editorInfo.minQuizOptions)&&Q===1};
_.d.getPostCreateOptions=function(){for(var A=[],Q=_.F(this.quizOptions),b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0;((f=b.optionText)==null?void 0:f.trim())!==""&&A.push({pollOption:{text:b.optionText,explanation:b.explanationText},isCorrect:b.isCorrect})}return A};
_.d.getExplanationText=function(){var A;return((A=this.quizOptions[this.correctAnswerIndex])==null?void 0:A.explanationText)||""};
_.d.maybeDisplayMarkAnswerEduToolTip=function(){var A,Q,b,f,a,T,G;this.shouldShowMarkAnswerTooltip()&&((A=this.editorInfo)==null?0:(Q=A.markAnswerButton)==null?0:(b=Q.buttonRenderer)==null?0:(f=b.hint)==null?0:(a=f.hintRenderer)==null?0:(T=a.content)==null?0:(G=T.bubbleHintRenderer)==null?0:G.text)&&(_.B3.getInstance(),A=pW(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,(A==null?void 0:A.length)>0&&this.optionSelectors&&_.V0(A[0],this.optionSelectors[0]))};
_.d.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var A=0,Q=_.F(this.quizOptions),b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0;((f=b.optionText)==null?void 0:f.trim())!==""&&A++;if(b.isCorrect)return!1}return A<2?!1:!0};
_.d.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.d.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.d.updateOptionTextFromBinding=function(A){if(A.target){var Q=Array.from(_.Bj(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(A.target);if(Q>=0){var b;this.quizOptions[Q].optionText=(b=A.detail.value)!=null?b:""}}};
_.Qr.Object.defineProperties(P7.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.editorInfo)==null?void 0:(Q=A.addOptionButton)==null?void 0:Q.buttonRenderer;b&&(b.style="STYLE_SUGGESTIVE",b.size="SIZE_SMALL",b.isDisabled=!this.isAllowedToAddOption);return(b==null?0:b.text)?b:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,Q;return this.quizOptions.length<((Q=(A=this.editorInfo)==null?void 0:A.maxQuizOptions)!=null?Q:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(A){var Q;return(Q=A.optionText)==null?void 0:Q.trim()})}}});
P7.prototype.updatePlaceholderTexts=P7.prototype.updatePlaceholderTexts;P7.prototype.dataChanged=P7.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],P7.prototype,"editorInfo",void 0);_.E([_.C(),_.c("design:type",Array)],P7.prototype,"quizOptions",void 0);_.E([_.C(),_.c("design:type",Object)],P7.prototype,"explanationPlaceholderText",void 0);_.E([_.Oc(".option-selector-button"),_.c("design:type",Array)],P7.prototype,"optionSelectors",void 0);
_.E([_.I_("editorInfo"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],P7.prototype,"dataChanged",null);_.E([_.H("editorInfo","isAllowedToAddOption","quizOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],P7.prototype,"addAnswerButton",null);_.E([_.H("editorInfo","quizOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],P7.prototype,"isAllowedToAddOption",null);
_.E([_.I_("quizOptions"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],P7.prototype,"updatePlaceholderTexts",null);_.E([_.H("quizOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],P7.prototype,"hasCustomOptionText",null);_.E([_.h({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],P7);
_.W(P7,"ytd-backstage-quiz-editor-renderer",function(){if(OQy!==void 0)return OQy;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return OQy=A},{mode:2});var nV9;var kCY=(kB.FIRSTDAYOFWEEK+1)%7;var Itx;var HQL=[],CaW=0,q5K=0;CaW=0;q5K=24;if(.25*(q5K-CaW)<0)Itx=[];else{for(var oV1=CaW;oV1<q5K;oV1+=.25)HQL.push(oV1);Itx=HQL}var tS1=Itx.map(function(A){A=A*60*60;return{secondsSinceMidnight:A,text:(new $L(7)).format(new Date(0,0,0,0,0,A))}});var rwy;var Xm=function(){var A=_.q.apply(this,arguments)||this;A.skipNextOpenDialog=!1;A.errorMessage="";A.previousMonthLabel=_.JQ("PREVIOUS_MONTH_LABEL");A.nextMonthLabel=_.JQ("NEXT_MONTH_LABEL");return A};
_.O(Xm,_.q);_.d=Xm.prototype;_.d.attached=function(){var A=this,Q=new MutationObserver(function(){A.JSC$15604_calendarMain.scrollHeight>0&&(Q.disconnect(),A.calendarConfig&&A.calendarConfig.selectedDate&&A.scrollToDate())});
Q.observe(this.JSC$15604_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){Q.disconnect()},1E3)};
_.d.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.d.onDateTextChange=function(){if(this.calendarConfig){var A=this.validateDateText();A.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(A.details)):this.textbox.setAttribute("invalid","")}};
_.d.handleDayClick=function(A){A.model.day.date&&(this.commitDate(A.model.day.date),this.dialog.close())};
_.d.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var A=V8J(this.calendarConfig.selectedDate,this.renderData);A!==void 0&&this.JSC$15604_calendarMain.scrollToIndex(A)}};
_.d.scrollToNextMonth=function(){this.JSC$15604_calendarMain.scrollToIndex(this.JSC$15604_calendarMain.firstVisibleIndex+1)};
_.d.scrollToPrevMonth=function(){this.JSC$15604_calendarMain.firstVisibleIndex===0&&this.JSC$15604_calendarMain.scrollTo(0,0);this.JSC$15604_calendarMain.scrollToIndex(this.JSC$15604_calendarMain.firstVisibleIndex-1)};
_.d.onFormSubmit=function(A){A.preventDefault();this.calendarConfig&&(A=this.validateDateText(),A.isValid&&(this.commitDate(A.details),this.dialog.close()))};
_.d.onEscOrClickingOutside=function(A){A=A.detail.path&&!!A.detail.path.length&&A.detail.path[0];if(A.classList.contains("ytd-calendar-date-picker")){A===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var Q=0;Q<this.dropdownButton.children.length;Q++)this.dropdownButton.children[Q]===A&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}A=this.textbox.value!==this.dateText;Q=this.validateDateText();A&&Q.isValid&&this.commitDate(Q.details);this.dialog.close();this.textbox.value=
this.dateText};
_.d.commitDate=function(A){this.calendarConfig&&(this.set("calendarConfig.selectedDate",A),_.Bn(this.hostElement,"ytd-calendar-date-selected",A))};
_.d.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var A=this.textbox.value;var Q=new Date;A=(new x5W(2)).parse(A,Q,{validate:!0})===A.length?ixW(Q):void 0;if(!A)return this.errorMessage=_.JQ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};Q=this.calendarConfig.start;var b=this.calendarConfig.end;if(U5e(A,Q))return this.errorMessage=_.JQ("ENTER_DATE_OR_LATER",{allowed_date:KaC(Q)}),{isValid:!1,details:void 0};if(U5e(b,A))return this.errorMessage=
_.JQ("ENTER_DATE_OR_EARLIER",{allowed_date:KaC(b)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:A}};
_.Qr.Object.defineProperties(Xm.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?KaC(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var A=this.calendarConfig,Q=[],b=0;b<7;b++)Q.push(kB.NARROWWEEKDAYS[(b+kCY)%7]);b=[];for(var f=new Date(A.start.year,A.start.month);f.getFullYear()<A.end.year||f.getFullYear()===A.end.year&&f.getMonth()<=A.end.month;){var a=b,T=a.push,G=f.getFullYear(),p=f.getMonth(),P=A,U=void 0,L=[],M=Object.freeze({extraCssClass:"invisible",debugClass:""}),l=new Date(G,p),J=ixW(l);l=l.getDay();for(var n=ixW(new Date);J.month===
p;){l!==kCY&&U||(U=Array.from({length:7}).fill(M),L.push(U));var t={date:{year:G,month:p,day:J.day},extraCssClass:"",debugClass:""};P.selectedDate&&t.date&&SU9(t.date,P.selectedDate)&&(t.extraCssClass+=" selected");if(U5e(J,P.start)||U5e(P.end,J))t.extraCssClass+=" disabled";SU9(J,n)&&(t.extraCssClass+=" today");t.extraCssClass=t.extraCssClass.trim();U[(l-kCY+7)%7]=t;J=M8b(J);l=(l+1)%7}T.call(a,{weeks:L,monthLabel:kB.SHORTMONTHS[p]+" "+G,year:G,month:p,monthLabelExtraCssClass:L[0][2]===M?"shift-down-label":
""});f.setMonth(f.getMonth()+1)}return{months:b,daysOfWeekLabel:Q}}}}});
Xm.prototype.onEscOrClickingOutside=Xm.prototype.onEscOrClickingOutside;Xm.prototype.scrollToDate=Xm.prototype.scrollToDate;_.E([_.C(),_.c("design:type",Object)],Xm.prototype,"calendarConfig",void 0);_.E([_.C(),_.c("design:type",Object)],Xm.prototype,"skipNextOpenDialog",void 0);_.E([_.C(),_.c("design:type",Object)],Xm.prototype,"errorMessage",void 0);_.E([_.C(),_.c("design:type",Object)],Xm.prototype,"previousMonthLabel",void 0);
_.E([_.C(),_.c("design:type",Object)],Xm.prototype,"nextMonthLabel",void 0);_.E([_.V1("#textbox"),_.c("design:type",HTMLInputElement)],Xm.prototype,"textbox",void 0);_.E([_.V1("#calendar-dialog"),_.c("design:type",Object)],Xm.prototype,"dialog",void 0);_.E([_.V1("#calendar-main"),_.c("design:type",Object)],Xm.prototype,"JSC$15604_calendarMain",void 0);_.E([_.V1("#date-picker"),_.c("design:type",HTMLElement)],Xm.prototype,"dropdownButton",void 0);
_.E([_.H("calendarConfig.selectedDate"),_.c("design:type",String),_.c("design:paramtypes",[])],Xm.prototype,"dateText",null);_.E([_.H("calendarConfig","calendarConfig.selectedDate"),_.c("design:type",Object),_.c("design:paramtypes",[])],Xm.prototype,"renderData",null);_.E([_.iN("renderData","calendarConfig.selectedDate"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Xm.prototype,"scrollToDate",null);
_.E([_.Kc("iron-overlay-canceled"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Xm.prototype,"onEscOrClickingOutside",null);_.E([_.Ec({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Xm);
_.W(Xm,"ytd-calendar-date-picker",function(){if(rwy!==void 0)return rwy;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rwy=A},{mode:2});var jdY=_.JQ("UTC_OFFSET_FORMAT",{utc_offset:(new $L("Z")).format(new Date)}),R1M=(new Date).getTimezoneOffset()*-60,gVL=new Date,e1y,h1Y=D5(gVL.getTimezoneOffset());e1y=ic9(VK9(h1Y,gVL));var W3M=_.JQ("LOCAL_TIME_GMT_LABEL",{gmt_text:e1y.replace("+0","+").replace("-0","-").replace(":00","")}),Sz=function(){var A=_.q.apply(this,arguments)||this;A.selectedTimeIndex=0;A.selectedTimezoneIndex=0;A.timeOfDayOptions=tS1;return A};
_.O(Sz,_.q);_.d=Sz.prototype;_.d.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var A=ldX();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=A,this.selectedTimeIndex=0;else{var Q=JNy(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},A,{selectedDate:Q.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(b){return b.secondsSinceMidnight===Q.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.d.onDatePicked=function(A){this.selectedDate=A.detail};
_.d.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Bn(this.hostElement,"ytd-date-time-selection-cancelled")};
_.d.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var A=this.selectedDate;A=new Date(A.year,A.month,A.day);_.Bn(this.hostElement,"ytd-date-time-selection-update",Math.floor(A.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+A.getTimezoneOffset()*60))}};
_.d.getTimezoneFormat=function(A){return A.localizedDisplayText?A.localizedDisplayText:_.JQ("TIMEZONE_FORMAT",{utc_offset_text:""+A.localizedUtcOffset,city_name:""+A.localizedName})};
_.d.updateSelectedTimeIndexFromBinding=function(A){this.selectedTimeIndex=A.detail.value};
_.d.updateSelectedTimezoneIndexFromBinding=function(A){this.selectedTimezoneIndex=A.detail.value};
_.Qr.Object.defineProperties(Sz.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data.timezoneOptions;var Q={name:"Etc/Unknown",localizedName:_.JQ("LOCAL_TIME_LABEL"),localizedUtcOffset:jdY,utcOffsetSec:""+R1M,localizedDisplayText:W3M};A?A.length&&A[0].name!==Q.name&&(A[0].localizedDisplayText||(Q.localizedDisplayText=""),A.unshift(Q)):A=[Q];return A}}},
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]}}});
Sz.prototype.onDateTimeTimezoneChange=Sz.prototype.onDateTimeTimezoneChange;Sz.prototype.onDatePicked=Sz.prototype.onDatePicked;Sz.prototype.updateDefaultSelectedValue=Sz.prototype.updateDefaultSelectedValue;_.E([_.C(),_.c("design:type",Object)],Sz.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Sz.prototype,"calendarConfig",void 0);_.E([_.C(),_.c("design:type",Object)],Sz.prototype,"selectedDate",void 0);_.E([_.C(),_.c("design:type",Object)],Sz.prototype,"selectedTimeIndex",void 0);
_.E([_.C(),_.c("design:type",Object)],Sz.prototype,"selectedTimezoneIndex",void 0);_.E([_.V1("#time-listbox"),_.c("design:type",Object)],Sz.prototype,"timeListBox",void 0);_.E([_.V1("#timezone-listbox"),_.c("design:type",Object)],Sz.prototype,"timezoneListBox",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Sz.prototype,"rendererStamperBehavior",void 0);_.E([_.H("data.timezoneOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],Sz.prototype,"timeZones",null);
_.E([_.I_("data","timeZones"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sz.prototype,"updateDefaultSelectedValue",null);_.E([_.H("selectedTimezoneIndex","timeZones"),_.c("design:type",Object),_.c("design:paramtypes",[])],Sz.prototype,"selectedTimezone",null);_.E([_.H("selectedTimeIndex"),_.c("design:type",Object),_.c("design:paramtypes",[])],Sz.prototype,"selectedTime",null);
_.E([_.Kc("ytd-calendar-date-selected"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Sz.prototype,"onDatePicked",null);_.E([_.iN("selectedTimezone","selectedTime","selectedDate"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sz.prototype,"onDateTimeTimezoneChange",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Sz);
_.W(Sz,"ytd-date-time-picker-renderer",function(){if(nV9!==void 0)return nV9;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return nV9=A},{mode:1});var vV1;var UA=function(){var A=_.q.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.dismissTapHandler()};
A.dismissButtonOverrides={size:"XS"};return A};
_.O(UA,_.q);UA.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}}}}}};
UA.prototype.dismissTapHandler=function(){_.Bn(this.hostElement,"yt-backstage-attachment-dismissed")};
UA.prototype.computeAttachmentType=function(A){return A?A.backstageImageRenderer?"image":A.videoRenderer?"video":"none":"none"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],UA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UA.prototype,"attachmentPreview",void 0);_.E([_.C(),_.c("design:type",Object)],UA.prototype,"dismissButton",void 0);_.E([_.C(),_.c("design:type",Object)],UA.prototype,"boundOnTapDismissButton",void 0);
_.E([_.C(),_.c("design:type",Object)],UA.prototype,"dismissButtonOverrides",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.c("design:type",String)],UA.prototype,"attachmentType",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],UA);
_.W(UA,"ytd-backstage-dismissable-attachment",function(){if(vV1!==void 0)return vV1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return vV1=A},{mode:1});var EVr;var Lf=function(){var A=_.q.apply(this,arguments)||this;A.selectedVideoId=void 0;A.picker=void 0;A.dismissButtonOverrides={size:"XS"};A.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return A};
_.O(Lf,_.q);_.d=Lf.prototype;_.d.onServiceRequestCompleted=function(A){A.stopPropagation()};
_.d.handleAddVideoPreviewAction=function(A){A=this.get("addVideoPreviewAction",A);this.onGetVideoPreviewSuccess(A)};
_.d.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}}}}}};
_.d.onLaunchVideoPicker=function(A){var Q=this,b=_.mO(this.get("addVideoLinkAction.title",A)),f=this.get("addVideoLinkAction.onePickHostId",A);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",A);f&&(this.picker||(b=_.Soj(_.nJ4(f).setTitle(b).addView(Bej()).addView(GPN()),function(a){Q.onPickVideo(a)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",A)||b.addView("youtube"),this.picker=b.build()),this.picker.setVisible(!0))};
_.d.onPickVideo=function(A){if(A)if(A.action==="cancel")_.Bn(this.hostElement,"yt-video-link-button-cancel");else if(A.action==="picked"){A=A.docs;if(!A||A.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(A=(A==null?0:A.length)?A[0]:void 0)?A.id:void 0;this.setVideoPreview()}};
_.d.setVideoPreview=function(){var A=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){A.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.d.onGetVideoPreviewSuccess=function(A){if(A&&A.videoPreview&&A.cancelButton)this.videoPreview=A.videoPreview,this.cancelButton=A.cancelButton,_.Bn(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.d.onGetVideoPreviewError=function(){this.cancel()};
_.d.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Bn(this.hostElement,"yt-video-link-cancel")};
_.d.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Lf.prototype.onServiceRequestCompleted=Lf.prototype.onServiceRequestCompleted;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Lf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Lf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Lf.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Lf.prototype,"videoPreview",void 0);_.E([_.C(),_.c("design:type",Object)],Lf.prototype,"cancelButton",void 0);_.E([_.C(),_.c("design:type",Object)],Lf.prototype,"getVideoPreviewCommand",void 0);_.E([_.C(),_.c("design:type",Object)],Lf.prototype,"dismissButtonOverrides",void 0);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Lf.prototype,"onServiceRequestCompleted",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Lf);
_.W(Lf,"ytd-backstage-video-link-attachment",function(){if(EVr!==void 0)return EVr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return EVr=A},{mode:1});var xiN;var cwM;var z1$;var Mn=function(){return _.q.apply(this,arguments)||this};
_.O(Mn,_.q);Mn.prototype.dataChanged=function(){this.active=!1};
Mn.prototype.onTap=function(){_.Bn(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Mn.prototype.identity=function(A){return A};
_.Qr.Object.defineProperties(Mn.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;if((A=this.data)==null?0:(Q=A.image)==null?0:(b=Q.thumbnails)==null?0:(f=b[0])==null?0:f.url)return A=this.data.image.thumbnails[0].url,A.startsWith("data:image/svg+xml")?qs(A):_.hs(A)}}});
Mn.prototype.dataChanged=Mn.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],Mn.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Mn.prototype,"active",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Mn.prototype,"dataChanged",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Mn.prototype,"imageSrc",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Mn);
_.W(Mn,"ytd-emoji-suggestion",function(){if(z1$!==void 0)return z1$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return z1$=A},{mode:1});var wwj=/.*([:@#].*?)$/,lE=function(){var A=_.q.apply(this,arguments)||this;A.suggestions=[];A.suggestionIndex=-1;A.JSC$15632_lastSuggestionRange=null;return A};
_.O(lE,_.q);_.d=lE.prototype;_.d.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.d.getSuggestions=function(A){var Q=[],b=kav(this.emojiManager,A.substr(0,3));if(b)for(var f in b)if(f.toLocaleLowerCase().indexOf(A)===0){var a=b[f];if(a&&a.emojiId){a=yf(this.emojiManager,a.emojiId);var T=void 0,G=void 0,p=void 0,P=void 0,U=((T=a)==null?0:T.isCustomEmoji)?(G=a)==null?void 0:(p=G.shortcuts)==null?void 0:p[0]:(P=a)==null?void 0:P.emojiId;T=void 0;Q.push({suggestion:{image:(T=a)==null?void 0:T.image,alt:U,text:f}});if(Q.length>=64)break}}return Q?Q.sort(function(L,M){return M.suggestion.text<
L.suggestion.text?-1:M.suggestion.text===L.suggestion.text?0:1}):null};
_.d.insertSuggestion=function(A){_.Bn(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15632_lastSuggestionRange,text:A.alt});this.dropdown.opened=!1};
_.d.updateSuggestionsAtCaret=function(A){this.updateSuggestions(A,this.retrieveTextBeforeRange(A))};
_.d.offsetStartOfRangeBy=function(A,Q){A.startOffset>=Q&&A.setStart(A.startContainer,A.startOffset-Q)};
_.d.updateSuggestions=function(A,Q){var b=this;this.JSC$15632_lastSuggestionRange&&(this.JSC$15632_lastSuggestionRange.detach(),this.JSC$15632_lastSuggestionRange=null);if((Q=wwj.exec(Q))&&Q.length&&(Q=Q[Q.length-1].toLocaleLowerCase(),Q.length>2||Q===":_")&&(this.offsetStartOfRangeBy(A,Q.length),this.JSC$15632_lastSuggestionRange=A,(A=this.getSuggestions(Q))&&A.length)){this.suggestions=A;_.mL(this,function(){b.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.d.onKeyDown=function(A){if(this.dropdown.opened)switch(A.key){case "Escape":this.dropdown.opened=!1;A.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);A.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.d.onKeyUp=function(A,Q){switch(A.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(Q);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(Q)}};
_.d.onKeyPress=function(A){A.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),A.preventDefault())};
_.d.changeSuggestionIndex=function(A){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(A+this.suggestions.length)%this.suggestions.length,A=this.dropdownContent.children[this.suggestionIndex],A.active=!0,this.dropdownContent.scrollTop=A.offsetTop)};
_.d.retrieveTextBeforeRange=function(A){var Q=A.startContainer;return Q&&Q.nodeType===Node.TEXT_NODE?Q.textContent.substr(0,A.startOffset):""};
lE.prototype.onKeyPress=lE.prototype.onKeyPress;lE.prototype.onKeyUp=lE.prototype.onKeyUp;lE.prototype.onKeyDown=lE.prototype.onKeyDown;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Array)],lE.prototype,"suggestions",void 0);_.E([_.C(),_.c("design:type",_.uz)],lE.prototype,"emojiManager",void 0);_.E([_.C(),_.c("design:type",Number)],lE.prototype,"verticalSuggestionsOffset",void 0);
_.E([_.V1("#dropdown"),_.c("design:type",Object)],lE.prototype,"dropdown",void 0);_.E([_.V1("#dropdown-content"),_.c("design:type",HTMLDivElement)],lE.prototype,"dropdownContent",void 0);_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent]),_.c("design:returntype")],lE.prototype,"onKeyDown",null);_.E([_.Kc("keyup"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent,Range]),_.c("design:returntype")],lE.prototype,"onKeyUp",null);
_.E([_.Kc("keypress"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent]),_.c("design:returntype")],lE.prototype,"onKeyPress",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-emoji-input"})],lE);
_.W(lE,"ytd-emoji-input",function(){if(cwM!==void 0)return cwM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return cwM=A},{mode:2});var unW;var Kf=function(){var A=_.q.apply(this,arguments)||this;A.hasMaxOptions=!1;return A};
_.O(Kf,_.q);_.d=Kf.prototype;_.d.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.d.setPrefilledChoices=function(A){var Q=this;this.set("pollOptions",[]);var b;for(b=0;b<Math.min(A.length,this.data.maxPollOptions);b++)this.push("pollOptions",A[b].substring(0,this.data.maxPollOptionChars));for(;b<this.data.minPollOptions;b++)this.push("pollOptions","");this.hasMaxOptions=b>=this.data.maxPollOptions;_.mL(this,function(){for(var f=Q.pollOptions,a=_.Bj(Q.hostElement).querySelectorAll(".poll-option-input"),T=0;T<a.length;T++)a[T].value=f[T]})};
_.d.focusChanged=function(){_.Uc(this.hostElement)};
_.d.onInput=function(){var A=this;_.Yl(this,"onInput",function(){A.isValid()?_.Bn(A.hostElement,"yt-commentbox-post-enable"):_.Bn(A.hostElement,"yt-commentbox-post-disable")},300)};
_.d.setPollOptions=function(){var A=[],Q,b=((Q=this.data)==null?0:Q.minPollOptions)?this.data.minPollOptions:0;for(Q=0;Q<b;Q++)A.push("");return A};
_.d.addPollOption=function(){var A=this;_.Bn(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.j7.addLowPriorityJob(function(){var Q;(Q=_.Bj(A.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||Q.focus()})};
_.d.onRemovePollOption=function(A){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Bn(this.hostElement,"yt-poll-attachment-dismiss")):(A=this.repeat.indexForElement(A.target.parentNode),A!==null&&(this.splice("pollOptions",A,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Bn(this.hostElement,"yt-commentbox-post-enable"))))};
_.d.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.d.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var A=0,Q=this.pollOptions.length;A<Q;A++)if(this.pollOptions[A].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.d.getPollOptions=function(){return this.pollOptions};
_.d.setPollOptionsFromInputs=function(){for(var A=_.Bj(this.hostElement).querySelectorAll(".poll-option-input"),Q=0;Q<A.length;Q++)this.pollOptions[Q]=A[Q].value.trim()};
_.d.clearPollOptions=function(){var A=_.Bj(this.hostElement).querySelectorAll(".poll-option-input");A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())Q.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.d.getSimpleString=function(A){return _.mO(A)};
_.d.updateValueFromBinding=function(A){if(A.target&&this.pollOptions){var Q=Array.from(_.Bj(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(A.target);if(Q>=0){var b;this.pollOptions[Q]=(b=A.detail.value)!=null?b:"";this.notifyPath("pollOptions."+Q)}}};
Kf.prototype.dataChanged=Kf.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Kf.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Array)],Kf.prototype,"pollOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Kf.prototype,"hasMaxOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Kf.prototype,"enableCreationBox",void 0);
_.E([_.V1("#repeat"),_.c("design:type",eK)],Kf.prototype,"repeat",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Kf.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Kf);
_.W(Kf,"ytd-poll-attachment",function(){if(unW!==void 0)return unW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return unW=A},{mode:2});var ZQ$;var ywj;var Y5M;var DiY;var iE=function(){return _.q.apply(this,arguments)||this};
_.O(iE,_.q);_.Qr.Object.defineProperties(iE.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iE.prototype,"rendererBehaviors",void 0);_.E([_.C(),_.c("design:type",Object)],iE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],iE.prototype,"focused",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("focused"),_.c("design:type",Object),_.c("design:paramtypes",[])],iE.prototype,"ariaSelected",null);_.E([_.Ec({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],iE);
_.W(iE,"yt-user-mention-suggestion-renderer",function(){if(DiY===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Y5M===void 0&&(Y5M=document.createElement("template"));var f=Y5M;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);DiY=A}A=DiY;return A},{mode:2});var $iY;var NHy;var JO=function(){var A=_.q.apply(this,arguments)||this;A.focusedSuggestionIndex=-1;return A};
_.O(JO,_.q);_.d=JO.prototype;_.d.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.d.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.d.setFocusedSuggestionIndex=function(A){!this.data||!this.data.suggestions||A<0||A>=this.data.suggestions.length||(this.focusedSuggestionIndex=A,A=this.getSuggestionId(A),this._setFocusedSuggestionId(A))};
_.d.advanceSuggestion=function(A){this.focusedSuggestionIndex===-1||A!==-1&&A!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+A),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.d.ensureSuggestionVisible=function(A){A=this.getSuggestionId(A);A=_.Bj(this.hostElement).querySelector("[id="+A+"]");A!=null&&(A.offsetTop<this.hostElement.scrollTop?A.scrollIntoView(!0):A.offsetTop+A.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&A.scrollIntoView(!1))};
_.d.getSuggestionId=function(A){return"user-mention-suggestion-"+A};
_.d.onSuggestionTap=function(A){var Q=_.V(A.model.item,Uk9);this.ytRendererBehavior.logExplicitClick(Q);_.Bn(this.hostElement,"yt-user-mention-suggestion-selected",{data:Q,index:A.model.index})};
_.d.onSuggestionMouseMove=function(A){A.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(A.model.index)};
_.d.isSuggestionFocused=function(A,Q){return A===Q};
_.d.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.d.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("focused-suggestion-id-changed",this.focusedSuggestionId))};
JO.prototype.focusedSuggestionIdChangedForBinding=JO.prototype.focusedSuggestionIdChangedForBinding;JO.prototype.onDomChange=JO.prototype.onDomChange;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JO.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],JO.prototype,"focusedSuggestionIndex",void 0);_.E([_.C({readOnly:!0}),_.c("design:type",String)],JO.prototype,"focusedSuggestionId",void 0);
_.E([_.Kc("dom-change"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],JO.prototype,"onDomChange",null);_.E([_.iN("focusedSuggestionId"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JO.prototype,"focusedSuggestionIdChangedForBinding",null);_.E([_.Ec({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],JO);
_.W(JO,"yt-user-mention-suggestions-dropdown",function(){if(NHy===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;$iY===void 0&&($iY=document.createElement("template"));var f=$iY;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);NHy=A}A=NHy;return A},{mode:2});var Vs=function(){var A=_.q.apply(this,arguments)||this;A.suggestionsResponse=null;A.activeMention=null;A.selectionChangeListener=A.onSelectionChange.bind(A);A.handlesEnabled=_.K("enable_handles_in_mention_suggest_posts");A.handlesInMentionSuggestionsEnabled=_.K("handles_in_mention_suggest_posts");A.zeroPrefixMentionSuggestionEnabled=_.K("enable_zero_prefix_mention_suggestion_web");A.pendingQuery=null;A.flowNonce=null;return A};
_.O(Vs,_.q);_.d=Vs.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.d.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.d.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.d.hasSuggestions=function(A){return!!(A&&A.suggestions&&A.suggestions.length>0)};
_.d.onInput=function(){var A=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var Q=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),b=this.activeMention.JSC$11233_getText().slice(-1)===" ",f=this.activeMention.JSC$11233_getText().slice(-2,-1)===" ",a="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11233_getText().slice(-2,
-1))>=0;a=this.zeroPrefixMentionSuggestionEnabled&&a;if(this.activeMention.isCollapsed()||(Q||f||a)&&b)this.cancelActiveMention();else{var T=this.activeMention.JSC$11233_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Yl(this,"requestSuggestions",function(){A.requestSuggestions(T)},100)}}}};
_.d.onServiceRequestSent=function(A){A.stopPropagation()};
_.d.onServiceRequestCompleted=function(A){A.stopPropagation();A=A.detail.data;A.query&&(!this.pendingQuery||this.pendingQuery!==A.query)||!this.zeroPrefixMentionSuggestionEnabled&&A.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=A,this.hasSuggestions(A)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.d.onServiceRequestError=function(A){A.stopPropagation()};
_.d.onUserMentionSuggestionSelected=function(A){this.selectSuggestion(A.detail.data,A.detail.index)};
_.d.onSelectionChange=function(){if(this.activeMention){var A=_.ip(),Q=this.activeMention.JSC$11233_containsRange(A);A=A&&this.containsHelper(this.dropdown,A.getContainer());Q||A||this.cancelActiveMention()}};
_.d.containsHelper=function(A,Q){var b;if(((b=window.ShadyDOM)==null?void 0:b.noPatch)===!0)return A.contains(Q);for(;Q;){if(Q===A)return!0;Q=Q instanceof ShadowRoot?Q.host:Q.parentNode}return!1};
_.d.maybeStartSuggest=function(){var A=_.ip();if(A&&A.isCollapsed()){var Q=A.JSC$11233_getStartNode(),b=A.JSC$11233_getStartOffset();if(Q instanceof Text&&!(b<1)){var f=Q.textContent;!(f=f&&f.charAt(b-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(f)<0||(this.activeMention=_.zd(Q,b-1,A.JSC$11233_getEndNode(),A.JSC$11233_getEndOffset()),this.flowNonce=gG(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.d.updateActiveMention=function(){if(this.activeMention){var A=_.ip();A&&A.isCollapsed()&&(this.activeMention=_.zd(this.activeMention.JSC$11233_getStartNode(),this.activeMention.JSC$11233_getStartOffset(),A.JSC$11233_getEndNode(),A.JSC$11233_getEndOffset()))}};
_.d.requestSuggestions=function(A){if(this.activeMention){var Q={suggestions_query:A};this.pendingQuery=A;_.X5(this.hostElement,[this.suggestionsEndpoint,Q])}};
_.d.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()};
_.d.focusPreviousSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),A.preventDefault())};
_.d.focusNextSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),A.preventDefault())};
_.d.selectFocusedSuggestion=function(A){if(this.hasSuggestions(this.suggestionsResponse)){var Q=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.V(Q,Uk9)&&(this.selectSuggestion(_.V(Q,Uk9),this.dropdown.focusedSuggestionIndex),A.preventDefault())}};
_.d.selectSuggestion=function(A,Q){if(A){var b=this.activeMention;if(b){var f=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&A.handle?_.vk(f,"\u00a0\u2068@"+A.handle+"\u2069\u00a0"):this.handlesEnabled?_.vk(f,"\u00a0"+A.displayName+"\u00a0"):_.vk(f,"\u00a0@"+A.displayName+"\u00a0");_.ch(f,"/channel/"+A.channelId);f.classList.add("yt-formatted-string","yt-simple-endpoint");f.setAttribute("spellcheck","false");b.isCollapsed()||b.JSC$11233_removeContents();b.insertNode(f,!0);A=
document.createTextNode(" ");f.parentNode.insertBefore(A,f.nextSibling);window.getSelection().collapse(A,1);Q={suggestionSelected:{suggestionIndex:Q}};if(this.zeroPrefixMentionSuggestionEnabled){var a;Q.suggestionSelected.isZeroPrefix=((a=this.suggestionsResponse)==null?void 0:a.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",Q);this.cancelActiveMention();_.Bn(this.hostElement,"yt-mention-inserted")}}};
_.d.getPositionTarget=function(A){return A&&A.getBrowserRangeObject()};
_.d.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.d.onFocusedSuggestionIdChanged=function(A){var Q=_.CHi(this.hostElement)[0];Q&&(A.detail.value?Q.setAttribute("aria-activedescendant",A.detail.value):Q.removeAttribute("aria-activedescendant"))};
_.d.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.d.logGELEvent=function(A,Q){A={eventType:A,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};Q&&(A=Object.assign(A,Q));_.R4("userMentionAutoCompleteBoxEvent",A)};
Vs.prototype.onDomChange=Vs.prototype.onDomChange;Vs.prototype.onUserMentionSuggestionSelected=Vs.prototype.onUserMentionSuggestionSelected;Vs.prototype.onServiceRequestError=Vs.prototype.onServiceRequestError;Vs.prototype.onServiceRequestCompleted=Vs.prototype.onServiceRequestCompleted;Vs.prototype.onServiceRequestSent=Vs.prototype.onServiceRequestSent;Vs.prototype.onInput=Vs.prototype.onInput;_.E([_.I(_.Hp),_.c("design:type",Object)],Vs.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Vs.prototype,"suggestionsEndpoint",void 0);_.E([_.C(),_.c("design:type",Object)],Vs.prototype,"suggestionsResponse",void 0);_.E([_.C(),_.c("design:type",Object)],Vs.prototype,"activeMention",void 0);_.E([_.V1("#dropdown"),_.c("design:type",Object)],Vs.prototype,"dropdown",void 0);_.E([_.V1("#iron-dropdown"),_.c("design:type",Object)],Vs.prototype,"ironDropdown",void 0);
_.E([_.Kc("input"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],Vs.prototype,"onInput",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Vs.prototype,"onServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Vs.prototype,"onServiceRequestCompleted",null);
_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Vs.prototype,"onServiceRequestError",null);_.E([_.Kc("yt-user-mention-suggestion-selected"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Vs.prototype,"onUserMentionSuggestionSelected",null);
_.E([_.Kc("dom-change"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Vs.prototype,"onDomChange",null);_.E([_.Ec({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Vs);
_.W(Vs,"yt-user-mention-autosuggest-input",function(){if(ywj===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;ZQ$===void 0&&(ZQ$=document.createElement("template"));var f=ZQ$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ywj=A}A=ywj;return A},{mode:2});var OA=null;
_.gn({is:"ytd-commentbox",_template:function(){if(xiN!==void 0)return xiN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xiN=A},
behaviors:[_.T5Y.YtHostElementBehavior,_.Hp,_.PJ.YtActionHandlerBehavior,_.Y3.YtComponentBehavior,_.p3.YtRendererstamperBehavior,_.wPK.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(A,Q){return _.Me(A.entities,"aadcGuidelinesStateEntityPayload",Q)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(A,Q){return _.Me(A.entities,"commentboxStateEntity",Q)},
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 _.YZ}},
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:_.K("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.K("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",_.lN(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(A){this.fire(A?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(A){this.set("submitButtonDisabled",void 0);this.clear();A&&this.computeIsEmojiButtonDisplayed_(A)&&(A=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&A.updateEmojiCategories()},
observePrefilledImage_:function(A,Q,b){this.isValidPrefilledImage_(A,Q,b)&&(this.prefilledAttachment_="image",this.prefilledImageData_=Q,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(A,Q){this.isValidPrefilledVideo_(A,Q)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(A){A&&A.pollData&&A.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(A.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Kn();this.focus()},
detached:function(){document.removeEventListener("tap",_.lN(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(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var Q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Q,A);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var A=_.ip();if(A){A=A.getBrowserRangeObject();for(var Q=A.commonAncestorContainer;Q;){if(Q===this.getEditableTextArea_())return A;Q=Q.parentNode}}A=this.getEditableTextArea_();A=_.cT(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,Q,b){(Q=this.emojiManager.createDocumentFragment(Q,!0,!1,b===void 0?!0:b))&&Q.childNodes.length!==0&&(A.collapsed||A.deleteContents(),b=Q.lastChild,A.insertNode(Q),_.xjp(b).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var A=_.ip();if(A){var Q=A.JSC$11233_getStartNode(),b=A.JSC$11233_getEndNode();if(OxX(Q)&&OxX(b)){var f=A.JSC$11233_getStartOffset(),a;if(_.lT&&Q.nodeType===Node.ELEMENT_NODE&&(a=_.xxp(Q)))_.cT(a,0).select();else{a=Ml(Q)?Q:_.vl(Q,Ml);var T=Ml(b)?b:_.vl(b,Ml);if(a||T)if(A.isCollapsed()){if(Q.nodeType===Node.TEXT_NODE){A=!0;f===Q.length&&(A=!1);if(OA==="end"||OA==="right")A=!1;Q=Q.parentNode;A=[].concat(_.ri(Q.parentNode.childNodes)).indexOf(Q)+(A?0:1);_.cT(Q.parentNode,
A).select()}}else a?a.previousSibling&&a.previousSibling.length>0?_.zd(b,A.JSC$11233_getEndOffset(),a.previousSibling,a.previousSibling.length-1).select():(Q=document.createTextNode("\u200b"),a.parentNode.insertBefore(Q,a),_.zd(b,A.JSC$11233_getEndOffset(),Q,0).select()):T&&(T.nextSibling&&T.nextSibling.length>0?_.zd(Q,A.JSC$11233_getStartOffset(),T.nextSibling,1).select():(b=document.createTextNode("\u200b"),T.parentNode.insertBefore(b,T.nextSibling),_.zd(Q,A.JSC$11233_getStartOffset(),b,b.length).select()));
OA=null}}else OA=null}else OA=null},
leftKeyPressed_:function(){OA="left"},
rightKeyPressed_:function(){OA="right"},
endKeyPressed_:function(){OA="end"},
maybeDeleteChip_:function(){var A=qUy(!0);if(A){var Q=_.ip(),b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();_.h2(b,Q,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=qUy(!1);if(A){var Q=_.ip(),b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();_.h2(b,Q,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var Q=_.ip();if(Q.isCollapsed()){var b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();var f=ode(b,Q,!0);f&&(_.h2(b,Q,f,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var Q=_.ip();if(Q.isCollapsed()){var b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();var f=ode(b,Q,!1);f&&(_.h2(b,Q,f,f.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onTap_:function(A){if(!A.defaultPrevented&&(A.currentTarget.tagName==="YTD-COMMENTBOX"&&Ml(A.target)&&A.preventDefault(),this.isEmojiPickerDisplayed)){var Q=this.$$("#emojis"),b=this.$$("#emoji-button"),f=this.getEditableTextArea_();if((A=A.path?A.path:A.composedPath&&A.composedPath())&&!A.includes(Q)&&!A.includes(f)&&!A.includes(b))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(A,Q,b){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Q!==void 0&&Q.encryptedBlobId!==null&&Q.sourceExternalVideoId!==null&&b!==void 0&&b.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(A,Q){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!Q&&!!Q.videoRenderer&&!!Q.videoRenderer.videoId},
isValidPrefilledAttachment_:function(A,Q,b){return this.isValidPrefilledImage_(A,Q,b)||this.isValidPrefilledVideo_(A,b)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.K("enable_multi_image_post_creation")){var A=this.$$("ytd-backstage-multi-image-select-renderer");A&&A.hasImages()&&A.cancel()}else(A=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&A.cancel();(A=this.$["poll-attachment"])&&this.hasPoll_&&A.clearPollOptions();(A=this.$["image-poll-attachment"])&&this.hasImagePoll_&&A.resetPollOptions();(A=this.$["quiz-attachment"])&&this.hasQuiz_&&A.resetQuizOptions();
(A=this.$["video-link-attachment"])&&this.hasVideo_&&A.cancel();(A=this.$["access-restrictions-selector"].firstElementChild)&&A.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 _.Bj(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Bj(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(A,Q){A=kQb(A,this.emojiManager,Q).cloneNode(!0);for(Q=A.firstChild;Q;)if(Q.nodeType!==1)Q=Q.nextSibling;else switch(Q.tagName){case "BR":var b=_.jE();_.Dxj(b,Q);Q=b.nextSibling;break;case "DIV":(b=Q.lastChild)&&Q.nextSibling&&_.hd(_.jE(),b);Q.previousSibling&&(Q.previousSibling.nodeType===1||Q.previousSibling.nodeType===3&&!Q.previousSibling.textContent.endsWith("\n"))&&_.eE(_.jE(),Q);b&&b.nodeName==="BR"&&_.im(b);b=Q;Q.hasChildNodes()?(Q=Q.firstChild,
_.$xL(b)):(Q=Q.nextSibling,_.im(b));break;default:Q=Q.nextSibling}return t8i(A)},
onAddImageError_:function(A){A.stopPropagation();this.errorMessage_=_.sr(A.detail)},
setTextAreaValue_:function(A){A||(A="");var Q=this.getEditableFormattedString_();Q.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});Q.text=A},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();OA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.cT(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.vG("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),Q=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",Q)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var A;return GSb((A=this.$["quiz-attachment"])==null?void 0:A.getExplanationText())||GSb(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var Q=this.getInputRange_();Q&&(A=this.emojiInput.retrieveTextBeforeRange(Q))}this.insertText_(A,!0);this.updateCharCount_();this.setSubmitButton_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(A)},
onPasteEmoji_:function(A){A.preventDefault();A.stopImmediatePropagation();A=A.clipboardData.getData("text/plain");this.insertText_(A,!1,!1)},
insertText_:function(A,Q,b){Q=Q===void 0?!1:Q;b=b===void 0?!0:b;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(Q&&this.emojiInput.offsetStartOfRangeBy(f,A.length),this.insertTextWithEmojis_(f,A,b),nd6(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,A),this.updateSuggestionOffset_(f)))}},
setSubmitButton_:function(){if(this.data){var A=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",Q=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(A||Q){var b=this.getTextAreaValue().trim();Q=b===this.previousText_;b=!b||this.aboveCharLimit_;A&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(b=this.aboveCharLimit_);this.submitButtonDisabled=
Q||b||!this.getTextLength();A&&_.K("enable_post_scheduling")&&(this.submitButtonDisabled=Q&&!this.scheduledPublishTimeSec_||b)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.mO,computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computeFooterMessageClass_:function(A,Q){return Q?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(A,Q){return Q?Q:A},
computeFooterMessageHidden_:function(A,Q){return!Q&&!A},
computePlaceholderText_:function(A,Q,b){return(b==="video"||b==="image")&&(A==null?0:A.prefilledPlaceholderText)?A==null?void 0:A.prefilledPlaceholderText:Q==="poll"||Q==="image-poll"?A==null?void 0:A.pollPostPlaceholderText:Q==="quiz"?A==null?void 0:A.quizPostPlaceholderText:Q==="image"?A==null?void 0:A.imagePostPlaceholderText:A==null?void 0:A.placeholderText},
computeHideAttachmentButtons_:function(A,Q,b,f){return A===void 0?!1:f&&this.getSimpleString(f)===this.getSimpleString(A.rateLimitErrorMessage)?!0:Q!=="none"||b!=="none"||!A.videoLinkButton&&!A.pollButton&&!A.imagePollButton&&!A.quizButton&&!A.imageButton},
computeHideDismissableAttachment_:function(A){return A!=="image"&&A!=="video"},
computeHasVideo_:function(A){return A==="video"},
computeHasImage_:function(A){return A==="image"},
computeHasPoll_:function(A){return A==="poll"},
computeHasImagePoll_:function(A){return A==="image-poll"},
computeHasQuiz_:function(A){return A==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(A){return A&&A.backstageAttachment?A.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!A.backstageAttachment.quizRenderer&&!A.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(A){if(this.isValidPrefilledAttachment_(A.purpose,A.prefilledImageData,A.backstageAttachment))return A.backstageAttachment},
computeEditAttachment_:function(A){if(this.computePrefilledContent_(A)===void 0)return A.backstageAttachment},
computeAuthorThumbnailDimension_:function(A,Q){return A&&!Q?24:40},
computeImageUploadEndpoint_:function(A){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",A)},
computeRateLimitErrorCommands_:function(A){var Q,b;return A==null?void 0:(Q=A.advancedTierFeatures)==null?void 0:(b=Q.rateLimit)==null?void 0:b.rateLimitCommands},
computeIsBackstageComment_:function(A){return!(!A||A!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)||this.get("replyButton.buttonRenderer.serviceEndpoint",A)||this.get("postButton.buttonRenderer.serviceEndpoint",A)},
computeSubmitButtonOverride:function(){if(_.K("web_modern_buttons")){var A,Q;return{segmentedPosition:this.dropdownSchedulePanel_||!((A=this.data)==null?0:(Q=A.postOptionsMenu)==null?0:Q.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.K("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(A,Q){A=this.get("submitButton.buttonRenderer",A)||this.get("replyButton.buttonRenderer",A)||this.get("postButton.buttonRenderer",A);Q&&(A=Q);A&&(A=Object.assign({},A),A.serviceEndpoint=void 0,A.isDisabled=this.submitButtonDisabled);return A},
computeHasExternalLinksAccess_:function(A){if(_.K("enable_rfa_external_links")){var Q,b,f;return(f=A==null?void 0:(Q=A.advancedTierFeatures)==null?void 0:(b=Q.externalLinks)==null?void 0:b.allowExternalLinks)!=null?f:!0}return!0},
computeIsEmojiButtonDisplayed_:function(A){return A.emojiButton&&A.emojiPicker&&A.emojiPicker.emojiPickerRenderer&&A.emojiPicker.emojiPickerRenderer.categories?A.emojiPicker.emojiPickerRenderer.categories.find(function(Q){return Q.emojiPickerCategoryRenderer?Q.emojiPickerCategoryRenderer.emojiIds&&Q.emojiPickerCategoryRenderer.emojiIds.length>0:Q.emojiPickerUpsellCategoryRenderer?Q.emojiPickerUpsellCategoryRenderer.emojis&&Q.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(A){return A.charLimit?A.charLimit:null},
computeDropdownSchedulingPanel_:function(A,Q){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&Q)return Q},
computeInlineSchedulingPanel_:function(A,Q){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Q)return Q},
computeHideAuthorThumbnail_:function(A,Q){return A||this.computeUseIdentityChip_(Q)},
computeHideIdentityChipRenderer_:function(A,Q){return A||!this.computeUseIdentityChip_(Q)},
computeUseIdentityChip_:function(A){return!!A&&!!A.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(A){var Q,b,f,a;(A==null?0:(Q=A.detail)==null?0:(b=Q.endpoint)==null?0:b.ypcGetOffersEndpoint)||(A==null?0:(f=A.detail)==null?0:(a=f.endpoint)==null?0:a.ypcOffersEndpoint)?(A.stopPropagation(),_.X5(this,[A.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(A.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(A){this.addedAttachment="video";this.selectedVideoId_=A.detail.videoId},
commentboxStateEntityChanged_:function(A){var Q=this;(A==null?void 0:A.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(A==null?void 0:A.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){Q.focus()})},
onYtServiceRequestSent_:function(A,Q){if(Q.actions)for(A=_.F(Q.actions),Q=A.next();!Q.done;Q=A.next())Q.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(A){this.isLoading=!1;var Q=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",A),b,f,a,T=A==null?void 0:(b=A.detail)==null?void 0:(f=b.data)==null?void 0:(a=f.actionResult)==null?void 0:a.commentboxStateEntityKey;if(Q)this.errorMessage_=Q;else if(T){var G;this.dismissData_=A==null?void 0:(G=A.detail)==null?void 0:G.data;this.commentboxStateKey_=T}else{this.clear();var p;this.fire("yt-commentbox-dismiss",A==null?void 0:(p=A.detail)==
null?void 0:p.data)}},
onYtServiceRequestError_:function(A){A.stopPropagation();this.isLoading=!1;var Q,b;if(((Q=this.data)==null?void 0:Q.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(Q=this.get("detail.error.args",A)||[],Q.length>1&&Q[1].message){this.handlePostsServiceRequestError_(Q[1].message);return}(A=this.get("detail.error.message",A))?this.errorMessage_=this.data.errorMessage||_.sr(A):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(A){if(_.K("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var Q=_.F(this.rateLimitErrorCommands),b=Q.next();!b.done;b=Q.next())if(b=b.value,b.errorLabel===A){_.V0(b.command,this.hostElement);return}this.errorMessage_=_.sr(A)},
submitIfNotBackstagePost_:function(A){if(!this.isBackstagePost)this.onSubmit_(A)},
onSubmit_:function(A){var Q=this,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g;return _.B(function(e){switch(e.nextAddress){case 1:A.stopPropagation();if(!Q.serviceEndpoint||!Q.isValidInput_())return e.return();if(Q.shouldShowPostAadcNotice_())return Q.showPostAadcNotice_(),e.return();if(Q.shouldShowCommentAadcNotice_())return Q.showCommentAadcNotice_(),e.return();if(!(Q.$$("ytd-backstage-multi-image-select-renderer")&&Q.hasImage_&&_.K("enable_multi_image_post_creation"))){e.jumpTo(2);break}b=Q.$$("ytd-backstage-multi-image-select-renderer");
return e.yield(b.getAllUploadStatuses(),3);case 3:f=e.yieldResult;if(!f)return e.return();a=_.F(f);for(T=a.next();!T.done;T=a.next())if(G=T.value,G.encryptedBlobId===void 0)return Q.isLoading=!1,P=p=void 0,Q.errorMessage_=(P=(p=Q.imageUploadEndpoint_)==null?void 0:p.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?P:null,e.return();return e.return(Q.submitForm_(void 0,void 0,void 0,void 0,b.images,Q.taggedVideoId_));case 2:if(!Q.hasImagePoll_||!Q.$["image-poll-attachment"]){e.jumpTo(4);
break}return e.yield(Q.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:U=e.yieldResult;if(!U)return e.return();L=_.F(U);for(M=L.next();!M.done;M=L.next())if(l=M.value,!l.encryptedBlobId)return Q.isLoading=!1,J=void 0,Q.errorMessage_=(J=Q.data.errorMessage)!=null?J:null,e.return();case 4:t=(n=Q.$$("ytd-backstage-image-select-renderer"))&&n.uploadPromise(),g=Q.getSharedPostId_(),t?t.then(function(){Q.submitForm_.apply(Q,_.ri(_.E$.apply(0,arguments)))}).catch(function(x){Q.isLoading=!1;
Q.errorMessage_=_.sr(x.message)}):Q.selectedVideoId_?Q.submitForm_(void 0,Q.selectedVideoId_):Q.prefilledAttachment_==="image"?Q.submitForm_(Q.prefilledImageData_.encryptedBlobId,void 0,void 0,Q.prefilledImageData_.sourceExternalVideoId,void 0,Q.taggedVideoId_):Q.prefilledAttachment_==="video"?Q.submitForm_(void 0,Q.data.backstageAttachment.videoRenderer.videoId):g?Q.submitForm_(void 0,void 0,g):Q.taggedVideoId_!==void 0?Q.submitForm_(void 0,void 0,void 0,void 0,void 0,Q.taggedVideoId_):Q.submitForm_(),
_.Oi(e)}})},
openSchedulingPanel:function(A){A&&A.scheduleButton&&A.scheduleButton.buttonRenderer&&(this.scheduleButton_=A.scheduleButton.buttonRenderer);A&&A.dateTimePicker&&this.set("data.schedulingDateTimePicker",A.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(A){A.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(A){A.stopPropagation();A.detail.alertMessage&&(this.alertMessage_=A.detail.alertMessage)},
onImageSelected_:function(A){A.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(A){A.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(A.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(A){var Q=this.$["video-link-attachment"];Q&&Q.onLaunchVideoPicker(A)},
onAttachmentDismiss_:function(A){A.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"&&_.K("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.K("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 A;if(this.addedAttachment==="image-poll"&&((A=this.$["image-poll-attachment"])==null||!A.isValid()))return!1;var Q;if(this.addedAttachment==="quiz"&&((Q=this.$["quiz-attachment"])==null||!Q.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;A=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(A=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")A=!0;return A||!!this.getTextAreaValue().trim()},
submitForm_:function(A,Q,b,f,a,T){var G=this.getTextAreaValue().trim(),p={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&G===this.previousText_&&(G=void 0);G!==void 0&&(p.comment_text=G);this.isLoading=!0;T!=void 0&&(p.tagged_video_id=T);A?(p.image_blob_id=A,this.imagePreviewCoordinates_&&(p.image_preview_coordinates=this.imagePreviewCoordinates_)):Q?p.attached_video_id=Q:b?p.shared_post_id=b:a&&a.length>0&&(p.images_data=a.map(function(P){return{encryptedBlobId:P.encryptedBlobId,
previewCoordinates:P.previewCoordinates}}));
f&&(p.source_video_id=f);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(p.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(p.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(p.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.K("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(p.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.K("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(p.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.X5(this,[this.serviceEndpoint,p])},
onIsInputFocusChanged_:function(A,Q){A?this.fire("yt-autonav-pause-focus"):Q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var Q=this.getEditableTextArea_();[].concat(_.ri(A.dataTransfer.items)).forEach(function(b){b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(f){Q.appendChild(document.createTextNode(f))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
computeSubmitButtonClass_:function(A,Q){return!Q||A?"":"with-options"},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.Bj(this.emojiInput).querySelector("#dropdown")){var Q=this.getEditableTextArea_().getBoundingClientRect().bottom,b=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Q-b)+5;Q=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-Q;_.Bj(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(A){if(_.K("enable_post_scheduling")&&this.data&&this.data.purpose){A=A.detail;if(Math.floor(Date.now()/1E3)>=A)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var Q=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(Q)||Q!==A?this.scheduledPublishTimeSec_=A:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=A;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var A=["image-button","image-poll-button","poll-button"];_.K("enable_quiz_creation")&&A.push("quiz-button");_.K("auto_convert_posts_video_tag")||A.push("video-link-button");return A},
getButtonRenderer:function(A,Q){if(A)switch(Q){case "video-link-button":var b;return((b=A.videoLinkButton)==null?void 0:b.buttonRenderer)||void 0;case "image-button":var f;return((f=A.imageButton)==null?void 0:f.buttonRenderer)||void 0;case "poll-button":var a;return((a=A.pollButton)==null?void 0:a.buttonRenderer)||void 0;case "image-poll-button":var T;return((T=A.imagePollButton)==null?void 0:T.buttonRenderer)||void 0;case "quiz-button":var G;return((G=A.quizButton)==null?void 0:G.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var A;return(A=this.data)==null||!A.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var A,Q;return!((A=this.data)==null||!A.openAadcDialog)&&!((Q=this.aadcGuidelinesState_)==null||!Q.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.vG("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var A;((A=this.data)==null?0:A.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.WE("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(A){A.clickTrackingParams&&_.IP().clickCommand(A);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.pD(this,"yt-close-popup-action")},
onHideIdentityChip:function(A){var Q;this.set("data.placeholderText",(Q=A.hideIdentityChipAction)==null?void 0:Q.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var nf=function(){var A=_.q.apply(this,arguments)||this;A.isOpen=!1;A.modern=_.K("web_modern_buttons");A.roundedContainer=!0;A.dropdownButtonOverride=_.K("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;A.inPopupContainer=!1;A.isCommentboxLoading=!1;var Q=["image-button","image-poll-button","poll-button"];_.K("enable_quiz_creation")&&Q.push("quiz-button");_.K("auto_convert_posts_video_tag")||Q.push("video-link-button");A.attachmentButtonIds=Q;A.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 A};
_.O(nf,_.q);_.d=nf.prototype;_.d.computeButtonOverride=function(){var A;return((A=this.data)==null?0:A.postOptionsMenu)&&_.K("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.d.configureRendererStamper=function(){var A={"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]]"}}}}};_.K("auto_convert_posts_video_tag")||(A["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return A};
_.d.ready=function(){var A=this,Q=_.Bj(this.hostElement).querySelector("#placeholder-area"),b=function(f){A.onOpen(f)};
Q.addEventListener("tap",b);Q.addEventListener("keypress",b)};
_.d.showButtonEduTooltip=function(){var A,Q,b,f,a,T,G;if(_.K("enable_quiz_creation")&&((A=this.data)==null?0:(Q=A.quizButton)==null?0:(b=Q.buttonRenderer)==null?0:(f=b.hint)==null?0:(a=f.hintRenderer)==null?0:(T=a.content)==null?0:(G=T.bubbleHintRenderer)==null?0:G.text)&&(_.B3.getInstance(),A=pW(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(A==null?void 0:
A.length)>0)){this.ytComponentBehavior.resolveCommand(A[0],{form:{element:this.quizButton}});return}var p;if((p=this.data)==null?0:p.imagePollButtonTooltip)if(_.B3.getInstance(),p=pW(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(p==null?void 0:p.length)>0){this.ytComponentBehavior.resolveCommand(p[0],{form:{element:this.imagePollButton}});return}var P;_.K("enable_multi_image_post_creation")&&
((P=this.data)==null?0:P.multiImageButtonTooltip)&&(_.B3.getInstance(),P=pW(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(P==null?void 0:P.length)>0&&this.ytComponentBehavior.resolveCommand(P[0],{form:{element:this.imageButton}}))};
_.d.onCreatePollAction=function(A){_.V(A,Kpv)&&(this.JSC$15687_commentbox.addedAttachment="poll",this.openDialog())};
_.d.onAddVideoLinkAction=function(A){if(_.V(A,UYL))this.JSC$15687_commentbox.onAddVideoLink(A)};
_.d.onShowSchedulingPanelCommand=function(A){(A=_.V(A,zuY))&&this.openSchedulingPanel(A)};
_.d.onCreateImagePollCommand=function(A){_.V(A,P3K)&&(this.JSC$15687_commentbox.openImagePollComponent(),this.openDialog())};
_.d.onCreateQuizCommand=function(A){_.V(A,XVK)&&(this.JSC$15687_commentbox.openQuizComponent(),this.openDialog())};
_.d.openSchedulingPanel=function(A){_.K("enable_post_scheduling")&&(this.openDialog(),this.JSC$15687_commentbox.openSchedulingPanel(A))};
_.d.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.JSC$15687_commentbox.clear(),this.closeDialog())};
_.d.onOpen=function(A){A instanceof KeyboardEvent&&A.type==="keypress"&&A.keyCode!==13&&A.keyCode!==32||(this.data.prepareAccountEndpoint?_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.d.onYtCommentboxDismiss=function(){this.closeDialog()};
_.d.onYtCommentboxLoadingStart=function(A){A.stopPropagation();this.isCommentboxLoading=!0};
_.d.onYtCommentboxLoadingEnd=function(A){A.stopPropagation();this.isCommentboxLoading=!1};
_.d.onYtVideoLinkButtonCancel=function(A){A.stopPropagation();this.onOpen(A)};
_.d.onYtVideoLinkSelected=function(A){A.stopPropagation();this.onOpen(A)};
_.d.onIronSelect=function(A){A.stopPropagation();A.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=A.detail.item.value&&(this.accessRestriction?(this.accessRestriction=A.detail.item.value,this.onOpen(A)):this.accessRestriction=A.detail.item.value)};
_.d.onYtNavigate=function(A){this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(this.JSC$15687_commentbox.addedAttachment="image",this.JSC$15687_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.d.onRequestSent=function(A){if(_.K("web_button_rework"))for(var Q=_.F(A.detail),b=Q.next();!b.done;b=Q.next())_.V(b.value,nt1)&&(this.JSC$15687_commentbox.addedAttachment="image",this.JSC$15687_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.d.openDialog=function(){this.JSC$15687_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15687_commentbox.focus()};
_.d.onPopupClosed=function(){_.B3.getInstance()};
_.d.computeCreationDisabled=function(A){return!!A};
_.d.computeIsCreationDialog=function(A){return!!A&&A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.d.computeDisabledPostButton=function(A){if(!A)return null;A.isDisabled=!0;return A};
_.d.computeIsCreationDialogWithHeader=function(A){return!this.inPopupContainer&&!!A&&!!A.authorText&&A.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.d.computeIsHeaderHidden=function(A,Q){return!A||Q};
_.d.computeDropdownRendererClasses=function(A){return A?["text-secondary-style"]:[]};
_.d.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var A=_.Bj(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;A&&A.reset()};
nf.prototype.onPopupClosed=nf.prototype.onPopupClosed;nf.prototype.onRequestSent=nf.prototype.onRequestSent;nf.prototype.onYtNavigate=nf.prototype.onYtNavigate;nf.prototype.onIronSelect=nf.prototype.onIronSelect;nf.prototype.onYtVideoLinkSelected=nf.prototype.onYtVideoLinkSelected;nf.prototype.onYtVideoLinkButtonCancel=nf.prototype.onYtVideoLinkButtonCancel;nf.prototype.onYtCommentboxLoadingEnd=nf.prototype.onYtCommentboxLoadingEnd;nf.prototype.onYtCommentboxLoadingStart=nf.prototype.onYtCommentboxLoadingStart;
nf.prototype.onYtCommentboxDismiss=nf.prototype.onYtCommentboxDismiss;nf.prototype.showButtonEduTooltip=nf.prototype.showButtonEduTooltip;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],nf.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],nf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],nf.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nf.prototype,"isOpen",void 0);_.E([_.C({computed:"computeButtonOverride(data)"}),_.c("design:type",Object)],nf.prototype,"buttonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nf.prototype,"modern",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nf.prototype,"roundedContainer",void 0);_.E([_.C(),_.c("design:type",Object)],nf.prototype,"dropdownButtonOverride",void 0);_.E([_.C({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.c("design:type",Boolean)],nf.prototype,"creationDisabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],nf.prototype,"enableCreationBox",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.c("design:type",Boolean)],nf.prototype,"isCreationDialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nf.prototype,"inPopupContainer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.c("design:type",Boolean)],nf.prototype,"isCreationDialogWithHeader",void 0);_.E([_.C(),_.c("design:type",Object)],nf.prototype,"accessRestriction",void 0);
_.E([_.C({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.c("design:type",Array)],nf.prototype,"dropdownRendererClasses",void 0);_.E([_.C(),_.c("design:type",Object)],nf.prototype,"isCommentboxLoading",void 0);_.E([_.C(),_.c("design:type",Array)],nf.prototype,"attachmentButtonIds",void 0);_.E([_.V1("#image-button"),_.c("design:type",HTMLElement)],nf.prototype,"imageButton",void 0);
_.E([_.V1("#image-poll-button"),_.c("design:type",HTMLElement)],nf.prototype,"imagePollButton",void 0);_.E([_.V1("#quiz-button"),_.c("design:type",HTMLElement)],nf.prototype,"quizButton",void 0);_.E([_.V1("#commentbox"),_.c("design:type",Object)],nf.prototype,"JSC$15687_commentbox",void 0);_.E([_.iN("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nf.prototype,"showButtonEduTooltip",null);
_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onYtCommentboxDismiss",null);_.E([_.Kc("yt-commentbox-loading-start"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onYtCommentboxLoadingStart",null);
_.E([_.Kc("yt-commentbox-loading-end"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onYtCommentboxLoadingEnd",null);_.E([_.Kc("yt-video-link-button-cancel"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onYtVideoLinkButtonCancel",null);
_.E([_.Kc("yt-video-link-selected"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onYtVideoLinkSelected",null);_.E([_.Kc("iron-select"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onIronSelect",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onYtNavigate",null);
_.E([_.Kc("yt-service-request-sent-button-renderer"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nf.prototype,"onRequestSent",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nf.prototype,"onPopupClosed",null);_.E([_.h({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],nf);
_.W(nf,"ytd-backstage-post-dialog-renderer",function(){if(iQ1!==void 0)return iQ1;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return iQ1=A},{mode:1});var sdv;var miK;var k0=function(){return _.q.apply(this,arguments)||this};
_.O(k0,_.q);_.d=k0.prototype;_.d.computeHeartButtonStyle=function(A){return(A==null?0:A.styleType)?A.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.d.onYtButtonTap=function(){if(this.data.isEnabled){var A=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(A=this.getEndpoint(A))&&_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})}else(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(A)};
_.d.toggle=function(A){this.set("data.isHearted",A!==void 0?A:!this.data.isHearted)};
_.d.getEndpoint=function(A){var Q,b=(Q=this.data)==null?void 0:Q.heartEndpoint,f;Q=(f=this.data)==null?void 0:f.unheartEndpoint;if(b&&Q)return A?Q:b};
_.d.computeButtonAccessibility=function(A,Q){var b,f,a=A==null?void 0:(b=A.heartedAccessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label,T,G;A=A==null?void 0:(T=A.unheartedAccessibility)==null?void 0:(G=T.accessibilityData)==null?void 0:G.label;return Q?a:A};
_.Qr.Object.defineProperties(k0.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 A;return _.K("kevlar_system_icons")&&!((A=this.data)==null||!A.isHearted)}}});
k0.prototype.onYtButtonTap=k0.prototype.onYtButtonTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],k0.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],k0.prototype,"data",void 0);_.E([_.H("data.isHearted"),_.c("design:type",Object),_.c("design:paramtypes",[])],k0.prototype,"heartTooltip",null);
_.E([_.H("data.isHearted"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],k0.prototype,"iconFilled",null);_.E([_.C({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.c("design:type",String)],k0.prototype,"buttonAccessibility",void 0);_.E([_.C({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.c("design:type",String)],k0.prototype,"heartButtonStyle",void 0);
_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],k0.prototype,"onYtButtonTap",null);_.E([_.h({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],k0);
_.W(k0,"ytd-creator-heart-renderer",function(){if(miK!==void 0)return miK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return miK=A},{mode:1});var Ig=function(){var A=_.q.apply(this,arguments)||this;A.hasCreatorReply=!1;A.buttonOverrides={size:"S",iconPosition:"icon-only"};A.replyButtonOverrides={size:"S",type:"text"};A.forceIconButton=!_.K("web_modern_buttons");A.modern=_.K("web_modern_buttons");A.buttonTooltipPosition="bottom";A.systemIcons=_.K("kevlar_system_icons");A.replyDialog=null;return A};
_.O(Ig,_.q);_.d=Ig.prototype;
_.d.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]]"}}}}}};
_.d.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.d.dataChange=function(){this.replyDialog&&_.Bj(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var A,Q,b;this.isLiked=this.systemIcons&&!!((A=this.data)==null?0:(Q=A.likeButton)==null?0:(b=Q.toggleButtonRenderer)==null?0:b.isToggled)};
_.d.computeShowVoteCountBeginning=function(A,Q){return A===void 0||Q===void 0?!0:A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Q&&this.ytRendererBehavior.getSimpleString(Q)!=="0"};
_.d.computeShowVoteCountEnd=function(A,Q){return A===void 0||Q===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Q&&this.ytRendererBehavior.getSimpleString(Q)!=="0"};
_.d.computeShowCommentCount=function(A,Q){return A===void 0||Q===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!Q&&this.ytRendererBehavior.getSimpleString(Q)!=="0"};
_.d.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.d.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.d.showReplyDialog=function(A){A&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Bj(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=A,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.d.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.d.onRequestSent=function(A){if(_.K("web_button_rework")){A=_.F(A.detail);for(var Q=A.next();!Q.done;Q=A.next())(Q=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",Q.value))&&this.showReplyDialog(Q)}};
_.d.onYtNavigate=function(A){var Q,b;(A=(Q=_.V(A.detail.endpoint,_.IOL))==null?void 0:(b=Q.dialog)==null?void 0:b.commentReplyDialogRenderer)&&this.showReplyDialog(A)};
_.d.onYtServiceRequestSent=function(A,Q){A.stopPropagation();if(Q.actions)for(A=0;A<Q.actions.length;A++){var b=_.V(Q.actions[A],ksx);b&&this.handleUpdateCommentVoteAction(b)}};
_.d.handleUpdateCommentVoteAction=function(A){this.voteCount=A.voteCount||_.sr("0");A.voteStatus==="LIKE"?this.JSC$15698_ytdDislikeToggleButtonRenderer.toggle(!1):A.voteStatus==="DISLIKE"?this.JSC$15698_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15698_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15698_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.d.computeReplyButtonHidden=function(A){return A};
_.d.computeReplyButtonBeginning=function(A){return(A==null?0:A.replyButton)&&A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.d.computeReplyButtonEnd=function(A){return(A==null?0:A.replyButton)&&A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.d.computeActionButtonStyle=function(A){return(A==null?0:A.style)?A.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.d.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.d.onYtToggleButton=function(A){var Q,b;this.isLiked=this.systemIcons&&!!((Q=A.detail)==null?0:(b=Q.actions)==null?0:b.like)};
Ig.prototype.onYtToggleButton=Ig.prototype.onYtToggleButton;Ig.prototype.onButtonTooltipPositionChanged=Ig.prototype.onButtonTooltipPositionChanged;Ig.prototype.onYtServiceRequestSent=Ig.prototype.onYtServiceRequestSent;Ig.prototype.onYtNavigate=Ig.prototype.onYtNavigate;Ig.prototype.onRequestSent=Ig.prototype.onRequestSent;Ig.prototype.onYtCommentboxDismiss=Ig.prototype.onYtCommentboxDismiss;Ig.prototype.dataChange=Ig.prototype.dataChange;
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"voteCount",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"commentCount",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"replyThumbnail",void 0);
_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"hasCreatorReply",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Ig.prototype,"enableCreationBox",void 0);_.E([_.C({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.c("design:type",String)],Ig.prototype,"actionButtonsStyle",void 0);_.E([_.C({computed:"computeReplyButtonBeginning(data)"}),_.c("design:type",Object)],Ig.prototype,"replyButtonBeginning",void 0);
_.E([_.C({computed:"computeReplyButtonEnd(data)"}),_.c("design:type",Object)],Ig.prototype,"replyButtonEnd",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"buttonOverrides",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"replyButtonOverrides",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"forceIconButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Ig.prototype,"useCommentIcon",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ig.prototype,"modern",void 0);_.E([_.C(),_.c("design:type",Object)],Ig.prototype,"buttonTooltipPosition",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ig.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Ig.prototype,"isLiked",void 0);_.E([_.V1("ytd-button-renderer"),_.c("design:type",Object)],Ig.prototype,"ytdReplyButtonRenderer",void 0);
_.E([_.V1("#like-button"),_.c("design:type",Object)],Ig.prototype,"JSC$15698_ytdLikeToggleButtonRenderer",void 0);_.E([_.V1("#dislike-button"),_.c("design:type",Object)],Ig.prototype,"JSC$15698_ytdDislikeToggleButtonRenderer",void 0);_.E([_.V1("#reply-dialog"),_.c("design:type",HTMLElement)],Ig.prototype,"replyDialogElement",void 0);_.E([_.V1("#reply-button"),_.c("design:type",HTMLElement)],Ig.prototype,"replyButtonElement",void 0);
_.E([_.V1("#reply-button-end"),_.c("design:type",HTMLElement)],Ig.prototype,"replyButtonEndElement",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ig.prototype,"dataChange",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ig.prototype,"onYtCommentboxDismiss",null);
_.E([_.Kc("yt-service-request-sent-button-renderer"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ig.prototype,"onRequestSent",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ig.prototype,"onYtNavigate",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],Ig.prototype,"onYtServiceRequestSent",null);_.E([_.iN("buttonTooltipPosition"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ig.prototype,"onButtonTooltipPositionChanged",null);
_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ig.prototype,"onYtToggleButton",null);_.E([_.h({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Ig);
_.W(Ig,"ytd-comment-action-buttons-renderer",function(){if(sdv!==void 0)return sdv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return sdv=A},{mode:1});var AtN;var H7=function(){return _.q.apply(this,arguments)||this};
_.O(H7,_.q);H7.prototype.focus=function(){_.Bj(this.hostElement).querySelector("#commentbox").focus()};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],H7.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],H7.prototype,"zeroStepChannelCreationRenderer",void 0);_.E([_.h({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],H7);
_.W(H7,"ytd-comment-dialog-renderer",function(){if(AtN!==void 0)return AtN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return AtN=A},{mode:1});var Qvv;var Cf=function(){var A=_.q.apply(this,arguments)||this;A.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.K("enable_web_delhi_icons")};A.replyButtonOverrides={size:"S",type:"text"};return A};
_.O(Cf,_.q);_.d=Cf.prototype;_.d.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.d.detached=function(){this.replyBox&&this.replyBox.remove()};
_.d.showReplyDialog=function(A){if(A){var Q=this.replyBox;Q||(Q=document.createElement("ytd-comment-reply-dialog-renderer"),Q.id="replybox",_.Bj(this.replyDialogDiv).appendChild(Q));Q.data=A;this.replyDialogDiv.hidden=!1;Q.openDialog()}};
_.d.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.d.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var A,Q=_.V((A=this.toolbarSurface)==null?void 0:A.subscribersOnlyDisclaimerSnackbarCommand,_.wF);Q&&_.Bn(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:Q})}};
_.d.onYtServiceRequestSent=function(A,Q){A.stopPropagation();if(Q.actions)for(var b=0;b<Q.actions.length;b++){var f=_.V(Q.actions[b],ksx);f?this.handleUpdateCommentVoteAction(f):A.target===this.heartButton&&this.toggleHeartState()}};
_.d.handleUpdateCommentVoteAction=function(A){var Q;(Q=this.toolbarState)!=null&&Q.key&&this.ytdReduxBehavior.dispatch(_.Wi("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:A.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":A.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.d.toggleHeartState=function(){var A;(A=this.toolbarState)!=null&&A.key&&this.ytdReduxBehavior.dispatch(_.Wi("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Qr.Object.defineProperties(Cf.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return(((A=this.toolbarState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(Q=this.toolbarData)==null?void 0:Q.likeCountLiked:(b=this.toolbarData)==null?void 0:b.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand)!==void 0&&!_.K("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,Q=_.V((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.wF),b,f,a,T,G,p,P,U,L;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((b=this.toolbarSharedData)==null||!b.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:Q!=null?Q:_.V((a=this.toolbarSurface)==null?void 0:a.likeCommand,_.wF),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Q!=null?Q:_.V((T=this.toolbarSurface)==null?void 0:T.unlikeCommand,_.wF),defaultCommand:this.isVisiblyDisabled?_.V((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand,_.wF):void 0,defaultTooltip:(p=this.toolbarData)==null?void 0:p.likeInactiveTooltip,toggledTooltip:(P=this.toolbarData)==null?void 0:P.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(U=this.toolbarData)==null?void 0:U.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(L=this.toolbarSharedData)==null?void 0:L.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,Q=_.V((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.wF),b,f,a,T,G,p,P,U,L,M;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((b=this.toolbarSharedData)==null||!b.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:Q!=null?Q:_.V((a=this.toolbarSurface)==null?void 0:a.dislikeCommand,_.wF),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:Q!=null?Q:_.V((T=this.toolbarSurface)==null?void 0:T.undislikeCommand,_.wF),defaultCommand:this.isVisiblyDisabled?_.V((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand,_.wF):void 0,defaultTooltip:(p=this.toolbarData)==null?void 0:p.dislikeInactiveTooltip,toggledTooltip:(P=this.toolbarData)==null?void 0:
P.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(U=this.toolbarSharedData)==null?void 0:U.dislikeReplyButtonA11y:(L=this.toolbarSharedData)==null?void 0:L.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(M=this.toolbarSharedData)==null?void 0:M.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;if(((A=this.toolbarState)==null?void 0:A.heartState)!==void 0&&((Q=this.toolbarState)==null?void 0:Q.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var f,a,T,G,p,P,U,L,M,l,J,n,t,g;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(f=this.toolbarData)==null?void 0:f.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((T=this.toolbarState)==null?void 0:T.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((G=this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((p=this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.V((P=this.toolbarSurface)==null?void 0:P.heartCommand,
_.wF),unheartEndpoint:this.isVisiblyDisabled?void 0:_.V((U=this.toolbarSurface)==null?void 0:U.unheartCommand,_.wF),disabledEndpoint:this.isVisiblyDisabled?_.V((L=this.toolbarSurface)==null?void 0:L.commentDisabledActionCommand,_.wF):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(M=this.toolbarData)==null?void 0:M.heartActiveTooltip,unheartedTooltip:(l=this.toolbarData)==null?void 0:l.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((J=
this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(n=this.toolbarSharedData)==null?void 0:n.unheartButtonA11y:(t=this.toolbarSharedData)==null?void 0:t.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(g=this.toolbarSharedData)==null?void 0:g.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.toolbarSurface)==null||!A.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(A=this.commentStrings)==null?void 0:A.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.V((Q=this.toolbarSurface)==null?void 0:Q.replyCommand,_.wF),command:this.isVisiblyDisabled?_.V((b=this.toolbarSurface)==null?
void 0:b.commentDisabledActionCommand,_.wF):this.isSubsOnlyCommentsIneligibleUser?_.V((f=this.toolbarSurface)==null?void 0:f.subscribersOnlySnackbarCommand,_.wF):void 0}}}});
Cf.prototype.onYtServiceRequestSent=Cf.prototype.onYtServiceRequestSent;Cf.prototype.hideReplyDialogDiv=Cf.prototype.hideReplyDialogDiv;_.E([_.C(),_.c("design:type",Object)],Cf.prototype,"commentStrings",void 0);_.E([_.C(),_.c("design:type",Boolean)],Cf.prototype,"isReply",void 0);_.E([_.C(),_.c("design:type",Object)],Cf.prototype,"toolbarData",void 0);_.E([_.C(),_.c("design:type",Object)],Cf.prototype,"toolbarSharedData",void 0);
_.E([_.C(),_.c("design:type",String)],Cf.prototype,"toolbarStateKey",void 0);_.E([_.C(),_.c("design:type",String)],Cf.prototype,"toolbarSurfaceKey",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Cf.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Cf.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Cf.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.aE),_.c("design:type",Object)],Cf.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.V1("#reply-dialog"),_.c("design:type",HTMLElement)],Cf.prototype,"replyDialogDiv",void 0);_.E([_.V1("#replybox"),_.c("design:type",Object)],Cf.prototype,"replyBox",void 0);_.E([_.V1("ytd-creator-heart-renderer"),_.c("design:type",Object)],Cf.prototype,"heartButton",void 0);_.E([_.C({selector:function(A,Q){return _.Me(A.entities,"engagementToolbarStateEntityPayload",Q)},
selectorArgs:["toolbarStateKey"]}),_.c("design:type",Object)],Cf.prototype,"toolbarState",void 0);_.E([_.C({selector:v9C,selectorArgs:["toolbarSurfaceKey"]}),_.c("design:type",Object)],Cf.prototype,"toolbarSurface",void 0);_.E([_.C(),_.c("design:type",Object)],Cf.prototype,"buttonOverrides",void 0);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Cf.prototype,"hideReplyDialogDiv",null);
_.E([_.H("toolbarData","toolbarState"),_.c("design:type",String),_.c("design:paramtypes",[])],Cf.prototype,"likeCount",null);_.E([_.H("likeCount"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Cf.prototype,"showLikeCount",null);_.E([_.H("toolbarSurface"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Cf.prototype,"isVisiblyDisabled",null);_.E([_.H("toolbarSurface"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Cf.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.E([_.H("toolbarSurface"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Cf.prototype,"isSubsOnlyCommentsEligibleUser",null);_.E([_.H("toolbarSurface"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Cf.prototype,"hasPrepareAccountCommand",null);_.E([_.H("toolbarData","toolbarState","toolbarSurface"),_.c("design:type",Object),_.c("design:paramtypes",[])],Cf.prototype,"likeToggleButtonRenderer",null);
_.E([_.H("isReply","toolbarData","toolbarState","toolbarSurface"),_.c("design:type",Object),_.c("design:paramtypes",[])],Cf.prototype,"dislikeToggleButtonRenderer",null);_.E([_.H("toolbarData","toolbarState","toolbarSurface"),_.c("design:type",Object),_.c("design:paramtypes",[])],Cf.prototype,"creatorHeartSupportedRenderer",null);_.E([_.H("toolbarSurface"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Cf.prototype,"hasReplyCommand",null);
_.E([_.H("toolbarSurface","commentStrings","isVisiblyDisabled"),_.c("design:type",Object),_.c("design:paramtypes",[])],Cf.prototype,"replyButtonRenderer",null);_.E([_.C(),_.c("design:type",Object)],Cf.prototype,"replyButtonOverrides",void 0);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],Cf.prototype,"onYtServiceRequestSent",null);_.E([_.h({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Cf);
_.W(Cf,"ytd-comment-engagement-bar",function(){if(Qvv!==void 0)return Qvv;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Qvv=A},{mode:1});var brN;var qn=function(){return _.q.apply(this,arguments)||this};
_.O(qn,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qn.prototype,"data",void 0);_.E([_.h({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],qn);
_.W(qn,"ytd-comment-inline-thumbnail-renderer",function(){if(brN!==void 0)return brN;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return brN=A},{mode:1});var fvv;var og=function(){return _.q.apply(this,arguments)||this};
_.O(og,_.q);og.prototype.onMessageTap=function(){if(this.onTapCommand){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);A&&this.ytdOpenPopupBehavior.openPopup(A)}};
_.Qr.Object.defineProperties(og.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return(A=this.data)==null?void 0:(Q=A.button)==null?void 0:(b=Q.buttonRenderer)==null?void 0:b.command}}});
_.E([_.I(_.aE),_.c("design:type",Object)],og.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],og.prototype,"data",void 0);_.E([_.H("data.button.buttonRenderer.command"),_.c("design:type",Object),_.c("design:paramtypes",[])],og.prototype,"onTapCommand",null);_.E([_.h({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],og);
_.W(og,"ytd-comment-pause-composer-renderer",function(){if(fvv!==void 0)return fvv;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return fvv=A},{mode:1});var avM;var TUW;var tO=function(){var A=_.q.apply(this,arguments)||this;A.isOpen=!1;return A};
_.O(tO,_.q);_.d=tO.prototype;_.d.dataChanged=function(){this.isOpen=!1};
_.d.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.d.focus=function(){this.JSC$15728_commentbox.focus()};
_.d.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.d.openDialog=function(){this.isOpen=!0;this.JSC$15728_commentbox.focus();this.JSC$15728_commentbox.maybeHeightChanged()};
tO.prototype.onYtCommentboxDismiss=tO.prototype.onYtCommentboxDismiss;tO.prototype.dataChanged=tO.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tO.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],tO.prototype,"isOpen",void 0);_.E([_.V1("#commentbox"),_.c("design:type",Object)],tO.prototype,"JSC$15728_commentbox",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],tO.prototype,"dataChanged",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],tO.prototype,"onYtCommentboxDismiss",null);_.E([_.h({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],tO);
_.W(tO,"ytd-comment-reply-dialog-renderer",function(){if(TUW!==void 0)return TUW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return TUW=A},{mode:1});var d9$;var rm=function(){return _.q.apply(this,arguments)||this};
_.O(rm,_.q);_.Qr.Object.defineProperties(rm.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.icon)==null?void 0:Q.iconType;return b?"yt-icons:"+b.toLowerCase():null}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rm.prototype,"data",void 0);_.E([_.C(),_.H("data.icon"),_.c("design:type",Object),_.c("design:paramtypes",[])],rm.prototype,"icon",null);_.E([_.h({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],rm);
_.W(rm,"ytd-pinned-comment-badge-renderer",function(){if(d9$!==void 0)return d9$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return d9$=A},{mode:1});var Fz9;var GgN={},BU9={input:!0,meta:!0,br:!0,link:!0,img:!0},jz=null;GgN.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(){jz==null&&(jz=document.createElement("tp-yt-paper-tooltip"),jz.offset=8,jz.fitToVisibleBounds=!0)},
onMouseOver_:function(A){if(A=_.vl(A.target,function(a){return a==this||a.getAttribute&&a.getAttribute("shared-tooltip-text")}.bind(this),!0)){var Q=A.getAttribute("shared-tooltip-text");
if(Q){var b=this,f=null;A!=this&&(A.tagName.toLowerCase()in BU9?b=A.parentElement:b=A,A.id&&(f=A.id));this.polymerController.createTooltipIfRequired_();if(jz.parentElement!=b||jz.for!=f)(0,_.SK)(jz).textContent=Q,_.Bj(b).appendChild(jz),jz.for=f,jz.animationDelay=this.polymerController.sharedTooltipAnimationDelay,jz.position=this.polymerController.sharedTooltipPosition}}}};var Rg=function(){return _.q.apply(this,arguments)||this};
_.O(Rg,_.q);Rg.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]]"}}}}}};
Rg.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Rg.prototype.colorChanged=function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.color)==null?void 0:(b=Q.basicColorPaletteData)==null?void 0:b.foregroundBodyColor;f&&(this.rgbBadgeColor=_.zx(f));_.Bj(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Rg.prototype.tooltipChanged=function(){var A;((A=this.data)==null?0:A.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Rg.prototype.tooltipChanged=Rg.prototype.tooltipChanged;Rg.prototype.colorChanged=Rg.prototype.colorChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(GgN.YtSharedTooltipBehavior),_.c("design:type",Object)],Rg.prototype,"ytSharedTooltipBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Rg.prototype,"data",void 0);
_.E([_.C({value:"#4285F4"}),_.c("design:type",String)],Rg.prototype,"rgbBadgeColor",void 0);_.E([_.iN("data.color"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Rg.prototype,"colorChanged",null);_.E([_.iN("data.tooltip"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Rg.prototype,"tooltipChanged",null);_.E([_.h({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Rg);
_.W(Rg,"ytd-sponsor-comment-badge-renderer",function(){if(Fz9!==void 0)return Fz9;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Fz9=A},{mode:1});var p5L;var Pxj;var gm=function(){return _.q.apply(this,arguments)||this};
_.O(gm,_.q);gm.prototype.computeState=function(A){switch(A==null?void 0:A.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"}};
gm.prototype.updateStateIdentifier=function(A){if(this.viewModel.triStateKey){var Q=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Wi("triStateButtonStateEntityPayload",Q,{key:Q,stateIdentifier:A}))}};
gm.prototype.onClick=function(){var A=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(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Qr.Object.defineProperties(gm.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 A;return((A=this.data)==null?void 0:A.buttonText)||""}}});
_.E([_.C(),_.c("design:type",Object)],gm.prototype,"viewModel",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],gm.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],gm.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.E([_.C({selector:E9X,selectorArgs:["viewModel.triStateKey"]}),_.c("design:type",Object)],gm.prototype,"triStateButtonStateEntity",void 0);
_.E([_.C({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.c("design:type",String)],gm.prototype,"state",void 0);_.E([_.H("viewModel","state"),_.c("design:type",Object),_.c("design:paramtypes",[])],gm.prototype,"data",null);_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],gm.prototype,"buttonText",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],gm);
_.W(gm,"ytd-tri-state-button-view-model",function(){if(Pxj!==void 0)return Pxj;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Pxj=A},{mode:1});var X5L;var SKy;var ez=function(){var A=_.q.apply(this,arguments)||this;A.defaultIconToFilled=!_.K("kevlar_fill_comment_chip_icon_killswitch");return A};
_.O(ez,_.q);ez.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
ez.prototype.dataChanged=function(){if(this.data){var A,Q;((A=this.data.chipColorPalette)==null?0:A.backgroundColor)&&((Q=this.data.chipColorPalette)==null?0:Q.foregroundTitleColor)&&_.Uc(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.w6(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.w6(this.data.chipColorPalette.foregroundTitleColor)});var b;((b=this.data)==null?0:b.command)?(_.Uc(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Uc(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}};
ez.prototype.onTap=function(){var A;if(this.data&&(A=this.data)!=null&&A.command){var Q;this.ytComponentBehavior.resolveCommand((Q=this.data)==null?void 0:Q.command)}};
ez.prototype.getIconSize=function(){return _.K("kevlar_fill_comment_chip_icon_killswitch")?24:12};
ez.prototype.onTap=ez.prototype.onTap;ez.prototype.dataChanged=ez.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ez.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Hp),_.c("design:type",Object)],ez.prototype,"ironA11yKeysBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ez.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],ez.prototype,"basePriceText",void 0);_.E([_.C(),_.c("design:type",Object)],ez.prototype,"chipIcon",void 0);_.E([_.C(),_.c("design:type",Object)],ez.prototype,"defaultIconToFilled",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ez.prototype,"dataChanged",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ez.prototype,"onTap",null);
_.E([_.Ec({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],ez);
_.W(ez,"yt-pdg-comment-chip-renderer",function(){if(SKy===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;X5L===void 0&&(X5L=document.createElement("template"));var f=X5L;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);SKy=A}A=SKy;return A},{mode:2});var hO=function(){var A=_.q.apply(this,arguments)||this;A.useSmallAvatars=_.K("small_avatars_for_comments");A.webWatchCompactComments=_.K("web_watch_compact_comments");A.editDialog=null;return A};
_.O(hO,_.q);_.d=hO.prototype;_.d.onShow=function(){_.Wn("cmv",void 0,"wn_comments")};
_.d.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"}}}};
_.d.detached=function(){this.editDialog=null;this.expander.reset()};
_.d.updateBackgroundColor=function(){if(this.backgroundColor){var A={"--ytd-comment-paid-background-color":_.w6(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Uc(this.hostElement,A)}else _.Uc(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.d.resetExpander=function(){var A;(A=this.expander)==null||A.reset()};
_.d.openEditDialog=function(A){A.dialog&&(this.editDialog=A.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.d.onYtNavigate=function(A){var Q=A.detail.endpoint;if(Q=_.V(Q,_.Hbj)||_.V(Q,_.Crr))A.stopPropagation(),this.openEditDialog(Q)};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null;_.Uc(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.d.onAuthorThumbnailClicked=function(){_.K("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.d.onYtCommentboxResize=function(A){var Q;(A==null?0:(Q=A.detail)==null?0:Q.height)&&_.Uc(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":A.detail.height+"px"})};
_.Qr.Object.defineProperties(hO.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 A,Q=(A=this.commentEntity)==null?void 0:A.author;return Q&&(Q.isCreator||Q.isVerified||Q.isArtist)?{renderer:{authorEndpoint:Q.channelPageEndpoint?_.V(Q.channelPageEndpoint,_.wF):_.V(Q.channelCommand,_.wF),authorText:{runs:[{text:Q.displayName}]},color:Q.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:Q.isArtist?{iconType:"AUDIO_BADGE"}:
Q.isVerified?{iconType:Q.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:Q.isArtist||Q.isVerified?Q.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var A,Q=(A=this.commentEntity)==null?void 0:A.author;return Q!=null&&Q.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:Q.sponsorBadgeUrl}]},tooltip:Q.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return _.V((A=this.commentSurfaceEntity)==null?void 0:A.pdgCommentChip,_.bY9)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&((A=this.voiceReplyContainerViewModel)==null?void 0:A.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return _.V((A=this.commentSurfaceEntity)==null?void 0:A.voiceReplyContainerViewModel,RVj)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&(A=this.voiceReplyContainerViewModel)!=null&&A.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=(A=this.commentSurfaceEntity)==null?void 0:A.commentBackgroundColor)!=null?Q:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(((A=this.commentEntity)==null?void 0:(Q=A.properties)==null?void 0:Q.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,Q;if(_.K("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(Q=A.author)==null?0:Q.profileCardEndpoint)&&this.viewModel.allowProfileCard){var b,f;return _.V((b=this.commentEntity)==null?void 0:(f=b.author)==null?void 0:f.profileCardEndpoint,_.wF)}var a,T;return _.V((a=this.commentEntity)==null?void 0:(T=a.avatar)==null?void 0:T.endpoint,_.wF)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,Q;if(_.K("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(Q=A.author)==null?0:Q.channelPageEndpoint)){var b,f;return _.V((b=this.commentEntity)==null?void 0:(f=b.author)==null?void 0:f.channelPageEndpoint,_.wF)}var a,T;return _.V((a=this.commentEntity)==null?void 0:(T=a.avatar)==null?void 0:T.endpoint,_.wF)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a=(A=this.commentEntity)==null?void 0:(Q=A.avatar)==null?void 0:(b=Q.image)==null?void 0:(f=b.sources)==null?void 0:f[0];return a?{thumbnails:[{url:a.url,width:a.width,height:a.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.commentEntity)==null?0:(Q=A.author)==null?0:Q.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.commentEntity)==null?void 0:(Q=A.author)==null?void 0:Q.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.commentEntity)==null?void 0:(Q=A.properties)==null?void 0:Q.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.V((A=this.commentSurfaceEntity)==null?void 0:A.publishedTimeCommand,_.wF)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var A,Q;if(((A=this.commentEntity)==null?0:A.translatedContent)&&((Q=this.translateButtonState)==null?void 0:Q.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var b;if((b=this.voiceReplyContainerViewModel)==null?0:b.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var f,a;return((f=this.commentEntity)==null?void 0:(a=f.properties)==null?void 0:a.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.commentSharedEntity)==null?void 0:(Q=A.strings)==null?void 0:Q.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.commentSharedEntity)==null?void 0:(Q=A.strings)==null?void 0:Q.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentEntity)==null||!A.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var A,Q,b=(Q=_.V((A=this.viewModel)==null?void 0:A.translateButton,jHv))!=null?Q:{},f,a,T,G,p,P,U,L,M,l,J;return Object.assign({},b,{untoggledStateData:Object.assign({},b.untoggledStateData,{buttonText:(f=this.commentEntity)==null?void 0:(a=f.translateData)==null?void 0:a.text}),togglingStateData:Object.assign({},b.togglingStateData,{buttonText:(T=this.commentSharedEntity)==null?
void 0:(G=T.strings)==null?void 0:G.translatingText}),toggledStateData:Object.assign({},b.toggledStateData,{buttonText:(p=this.commentSharedEntity)==null?void 0:(P=p.strings)==null?void 0:P.seeOriginalText}),transitionCommand:((U=this.commentEntity)==null?0:U.translatedContent)?void 0:_.V((L=this.commentEntity)==null?void 0:(M=L.translateData)==null?void 0:M.translateComment,_.wF),triStateKey:(l=this.commentEntity)==null?void 0:(J=l.properties)==null?void 0:J.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((Q=_.V(_.V((A=this.toolbarSurface)==null?void 0:A.menuCommand,_.wF),qzL))==null?void 0:(b=Q.menu)==null?void 0:b.menuRenderer)||null}}});
hO.prototype.onYtCommentboxResize=hO.prototype.onYtCommentboxResize;hO.prototype.onYtCommentboxDismiss=hO.prototype.onYtCommentboxDismiss;hO.prototype.onYtNavigate=hO.prototype.onYtNavigate;hO.prototype.resetExpander=hO.prototype.resetExpander;hO.prototype.updateBackgroundColor=hO.prototype.updateBackgroundColor;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],hO.prototype,"ytdReduxBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],hO.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("#author-thumbnail > button"),_.c("design:type",HTMLElement)],hO.prototype,"authorThumbnailAnchor",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("viewModel"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],hO.prototype,"linked",null);
_.E([_.H("viewModel","linked"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"linkedCommentBadge",null);_.E([_.C({reflectToAttribute:!0}),_.H("viewModel"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],hO.prototype,"pinned",null);_.E([_.H("viewModel","pinned"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"pinnedCommentBadge",null);
_.E([_.H("commentEntity","commentSharedEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"authorCommentBadge",null);_.E([_.C({reflectToAttribute:!0}),_.H("authorCommentBadge"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"hasAuthorBadge",null);_.E([_.H("commentEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"sponsorCommentBadge",null);
_.E([_.C({reflectToAttribute:!0}),_.H("sponsorCommentBadge"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"hasSponsorBadge",null);_.E([_.H("commentSurfaceEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"pdgCommentChipRenderer",null);_.E([_.C({reflectToAttribute:!0}),_.H("voiceReplyContainerViewModel"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"hasVoiceReply",null);
_.E([_.H("commentSurfaceEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"voiceReplyContainerViewModel",null);_.E([_.H("voiceReplyContainerViewModel"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"voiceReplyUnavailableText",null);_.E([_.C(),_.c("design:type",Object)],hO.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"viewModel",null);
_.E([_.C({selector:function(A,Q){return _.Me(A.entities,"commentSharedEntityPayload",Q)},
selectorArgs:["viewModel.sharedKey"]}),_.c("design:type",Object)],hO.prototype,"commentSharedEntity",void 0);_.E([_.C({selector:function(A,Q){return _.Me(A.entities,"commentEntityPayload",Q)},
selectorArgs:["viewModel.commentKey"]}),_.c("design:type",Object)],hO.prototype,"commentEntity",void 0);_.E([_.C({selector:function(A,Q){return _.Me(A.entities,"commentSurfaceEntityPayload",Q)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.c("design:type",Object)],hO.prototype,"commentSurfaceEntity",void 0);_.E([_.C({selector:v9C,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.c("design:type",Object)],hO.prototype,"toolbarSurface",void 0);_.E([_.C({selector:E9X,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.c("design:type",Object)],hO.prototype,"translateButtonState",void 0);
_.E([_.H("commentSurfaceEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"backgroundColor",null);_.E([_.C({reflectToAttribute:!0}),_.H("viewModel"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],hO.prototype,"optimalReadingWidthComments",null);_.E([_.V1("ytd-expander"),_.c("design:type",Object)],hO.prototype,"expander",void 0);
_.E([_.iN("backgroundColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],hO.prototype,"updateBackgroundColor",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],hO.prototype,"useSmallAvatars",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],hO.prototype,"webWatchCompactComments",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("commentEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"isReply",null);
_.E([_.H("commentEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"authorThumbnailEndpoint",null);_.E([_.H("commentEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"authorNameEndpoint",null);_.E([_.H("commentEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"authorThumbnail",null);_.E([_.H("commentEntity"),_.c("design:type",String),_.c("design:paramtypes",[])],hO.prototype,"authorTextClass",null);
_.E([_.H("commentEntity"),_.c("design:type",String),_.c("design:paramtypes",[])],hO.prototype,"authorChannelName",null);_.E([_.H("commentEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"publishedTime",null);_.E([_.H("commentSurfaceEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"publishedTimeCommand",null);
_.E([_.H("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"contentText",null);_.E([_.iN("contentText"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],hO.prototype,"resetExpander",null);_.E([_.H("commentEntity"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],hO.prototype,"shouldShowReadMoreInitially",null);
_.E([_.H("commentSharedEntity"),_.c("design:type",String),_.c("design:paramtypes",[])],hO.prototype,"expandText",null);_.E([_.H("commentSharedEntity"),_.c("design:type",String),_.c("design:paramtypes",[])],hO.prototype,"collapseText",null);_.E([_.H("commentEntity"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],hO.prototype,"shouldShowTranslateButton",null);
_.E([_.H("commentEntity","commentSharedEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"translateButton",null);_.E([_.H("toolbarSurface"),_.c("design:type",Object),_.c("design:paramtypes",[])],hO.prototype,"overflowMenuRenderer",null);_.E([_.C(),_.c("design:type",Object)],hO.prototype,"editDialog",void 0);_.E([_.V1("ytd-comment-dialog-renderer"),_.c("design:type",Object)],hO.prototype,"editCommentDialogContainer",void 0);
_.E([_.V1("ytd-comment-reply-dialog-renderer"),_.c("design:type",Object)],hO.prototype,"editReplyDialogContainer",void 0);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],hO.prototype,"onYtNavigate",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],hO.prototype,"onYtCommentboxDismiss",null);
_.E([_.Kc("yt-commentbox-resize"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],hO.prototype,"onYtCommentboxResize",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-comment-view-model"})],hO);
_.W(hO,"ytd-comment-view-model",function(){if(p5L!==void 0)return p5L;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return p5L=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var W7=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_modern_buttons");A.commentThreadingEnabled=_.K("web_delhi_comment_threads");A.isWatchGrid=_.K("kevlar_watch_grid");A.buttonOverrides=A.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};A.JSC$15774_spinnerEl=null;return A};
_.O(W7,_.q);_.d=W7.prototype;_.d.configureContinuationPathMap=function(){return _.K("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.d.shouldShowExpandedThreads=function(A,Q){return this.commentThreadingEnabled&&!Q&&(A==null?void 0:A.length)>0};
_.d.shouldShowCollapsedThreads=function(A,Q){return this.commentThreadingEnabled&&Q&&A};
_.d.computeThreadRenderer=function(A){return _.V(A,I71)};
_.d.computeIsContinuationItem=function(A){return!!this.computeContinuationItemRenderer(A)};
_.d.computeButtonRenderer=function(A){return _.V(A,_.wE)};
_.d.computeContinuationItemRenderer=function(A){return _.V(A,_.ac)};
_.d.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]]"}}}}}};
_.d.attached=function(){this.isShowRepliesVisible=!0};
_.d.dataChanged=function(){var A=this.expanderContents;A&&(A.hidden=!0);this.isLoading=!1};
_.d.endsInContinuation=function(A){return!!A&&A.length>0&&!!this.computeContinuationItemRenderer(A[A.length-1])};
_.d.computeShouldShowHideRepliesButton=function(A,Q){return!A&&Q};
_.d.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.d.isLoadingChanged=function(){this.isLoading&&!this.JSC$15774_spinnerEl&&(this.JSC$15774_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Bj(this.expanderContents).appendChild(this.JSC$15774_spinnerEl));this.JSC$15774_spinnerEl&&(this.JSC$15774_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var A;(A=this.contents)==null||A.classList.remove("reloading")}};
_.d.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var A=_.V(this.data.viewReplies,_.wE);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.d.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var A=_.V(this.data.hideReplies,_.wE);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.d.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var A=_.Bj(this.hostElement).querySelector("#expander-contents");A&&(A.hidden=this.isShowRepliesVisible)}};
_.d.computeAlign=function(){if(this.modern){var A;return!((A=this.data)==null?0:A.viewRepliesCreatorThumbnail)}};
_.Qr.Object.defineProperties(W7.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var A,Q;return this.endsInContinuation((A=this.data)==null?void 0:A.contents)||this.commentThreadingEnabled&&this.endsInContinuation((Q=this.data)==null?void 0:Q.subThreads)}}});
W7.prototype.isShowMoreChanged=W7.prototype.isShowMoreChanged;W7.prototype.isLoadingChanged=W7.prototype.isLoadingChanged;W7.prototype.triggerFirstContinuation=W7.prototype.triggerFirstContinuation;W7.prototype.dataChanged=W7.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.sM),_.c("design:type",Object)],W7.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],W7.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],W7.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],W7.prototype,"commentThreadingEnabled",void 0);_.E([_.C(),_.c("design:type",Boolean)],W7.prototype,"collapsed",void 0);
_.E([_.C(),_.c("design:type",Function)],W7.prototype,"toggleCollapsed",void 0);_.E([_.C(),_.c("design:type",Boolean)],W7.prototype,"isLoading",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],W7.prototype,"isShowRepliesVisible",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],W7.prototype,"useNewFormatting",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],W7.prototype,"isWatchGrid",void 0);_.E([_.C(),_.c("design:type",Object)],W7.prototype,"buttonOverrides",void 0);
_.E([_.V1("#expander-contents"),_.c("design:type",HTMLElement)],W7.prototype,"expanderContents",void 0);_.E([_.V1("ytd-continuation-item-renderer"),_.c("design:type",Object)],W7.prototype,"continuationItemRenderer",void 0);_.E([_.V1("#contents"),_.c("design:type",HTMLElement)],W7.prototype,"contents",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],W7.prototype,"dataChanged",null);
_.E([_.H("data.contents","data.subThreads.*"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],W7.prototype,"hasContinuation",null);_.E([_.Kc("yt-expander-more-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],W7.prototype,"triggerFirstContinuation",null);_.E([_.iN("isLoading"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],W7.prototype,"isLoadingChanged",null);
_.E([_.iN("isShowRepliesVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],W7.prototype,"isShowMoreChanged",null);_.E([_.h({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],W7);
_.W(W7,"ytd-comment-replies-renderer",function(){if(avM!==void 0)return avM;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return avM=A},{mode:1});var U9j;var v7=function(){var A=_.q.apply(this,arguments)||this;A.isOpen=!1;A.commentDialog=null;A.useSmallAvatars=_.K("small_avatars_for_comments");A.useSmallAvatarsEngagementPanelOnly=_.K("small_avatars_for_comments_ep");A.placeholderFocusListener=null;A.hasOpenedDialog=!1;A.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return A};
_.O(v7,_.q);_.d=v7.prototype;_.d.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]]"}}}}}};
_.d.ready=function(){var A=this,Q=_.Bj(this.hostElement).querySelector("#placeholder-area"),b=_.Bj(this.hostElement).querySelector("#simplebox-placeholder"),f=function(a){a.stopPropagation();a instanceof KeyboardEvent&&a.type==="keypress"&&a.keyCode!==13&&a.keyCode!==32||A.openDialog()};
this.placeholderFocusListener=f;b.addEventListener("focus",this.placeholderFocusListener);Q.addEventListener("tap",f);Q.addEventListener("keypress",f)};
_.d.maybeRemoveFocusEventListener=function(){var A;(A=this.data)!=null&&A.prepareAccountEndpoint&&!_.K("web_comments_simplebox_modal_focus_on_tap_ks")&&(A=_.Bj(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(A.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.d.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.d.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.K("web_comment_simplebox_resolve_polymer_command_ks")?_.J8.instance.resolveCommand(this.data.prepareAccountEndpoint):_.V0(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);A&&this.ytdOpenPopupBehavior.openPopup(A);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Bj(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.d.onYtCommentboxDismiss=function(A){A.stopPropagation();this.isOpen=!1};
_.d.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.isOpen=!1)};
_.d.computeCommentDialog=function(A){return{placeholderText:A.placeholderText,authorThumbnail:A.authorThumbnail,submitButton:A.submitButton,imageButton:A.imageButton,cancelButton:A.cancelButton,emojiButton:A.emojiButton,emojis:A.emojis,emojiPicker:A.emojiPicker,aadcGuidelinesStateEntityKey:A.aadcGuidelinesStateEntityKey,openAadcDialog:A.openAadcDialog,unicodeEmojisUrl:A.unicodeEmojisUrl}};
_.d.onHideIdentityChip=function(A){_.V(A,iGp)&&this.set("data.placeholderText",_.V(A,iGp).placeholderText)};
v7.prototype.onYtCommentboxDismiss=v7.prototype.onYtCommentboxDismiss;v7.prototype.dataChanged=v7.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],v7.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],v7.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],v7.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],v7.prototype,"isOpen",void 0);_.E([_.C(),_.c("design:type",Object)],v7.prototype,"commentDialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],v7.prototype,"engagementPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],v7.prototype,"useSmallAvatars",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],v7.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],v7.prototype,"enableCreationBox",void 0);_.E([_.C(),_.c("design:type",Boolean)],v7.prototype,"showCreateDialog",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],v7.prototype,"dataChanged",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],v7.prototype,"onYtCommentboxDismiss",null);_.E([_.h({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],v7);
_.W(v7,"ytd-comment-simplebox-renderer",function(){if(U9j!==void 0)return U9j;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return U9j=A},{mode:1});var Lzx;_.xo("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var EA=function(){var A=_.q.apply(this,arguments)||this;A.addHoverEffect=_.K("swatcheroo_comments_hover_effect");A.useSmallAvatars=_.K("small_avatars_for_comments");A.threadHovered=!1;A.collapsed=!1;A.toggleCollapsed=function(){A.collapsed=!A.collapsed;A.collapsed&&_.K("web_comment_threading_scroll_on_collapse")&&_.pD(A.hostElement,"yt-scroll-to-watch-element",[A.commentElement])};
return A};
_.O(EA,_.q);EA.prototype.onTap=function(A){if(this.addHoverEffect&&!this.engagementPanel&&!_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;((Q=window.getSelection())==null?0:Q.toString().length)||_.V0({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
EA.prototype.attached=function(){var A=this,Q;(Q=this.commentThreadHitbox)==null||Q.addEventListener("mouseover",function(){A.threadHovered=!0});
var b;(b=this.commentThreadHitbox)==null||b.addEventListener("mouseout",function(){A.threadHovered=!1});
var f;(f=this.commentThreadHitbox)==null||f.addEventListener("click",function(){A.maybeToggleCollapsed()})};
EA.prototype.maybeToggleCollapsed=function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.replies)==null?void 0:(b=Q.commentRepliesRenderer)==null?void 0:b.subThreads;f&&(f.length===1&&_.V(f[0],_.ac)||this.toggleCollapsed())};
_.Qr.Object.defineProperties(EA.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.commentViewModel)return _.V(this.data.commentViewModel,r19)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return _.K("web_delhi_comment_threads")&&!!((A=this.data)==null?0:(Q=A.replies)==null?0:(b=Q.commentRepliesRenderer)==null?0:b.subThreads)}}});
EA.prototype.onTap=EA.prototype.onTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],EA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],EA.prototype,"addHoverEffect",void 0);_.E([_.C(),_.c("design:type",Object)],EA.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],EA.prototype,"useSmallAvatars",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],EA.prototype,"isSubThread",void 0);_.E([_.V1(".thread-hitbox"),_.c("design:type",HTMLElement)],EA.prototype,"commentThreadHitbox",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],EA.prototype,"threadHovered",void 0);_.E([_.V1("#comment"),_.c("design:type",HTMLElement)],EA.prototype,"commentElement",void 0);
_.E([_.C(),_.c("design:type",Object)],EA.prototype,"collapsed",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],EA.prototype,"commentViewModel",null);_.E([_.H("data.replies"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],EA.prototype,"hasSubThreading",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],EA.prototype,"engagementPanel",void 0);
_.E([_.Kc("tap"),_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],EA.prototype,"onTap",null);_.E([_.h({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],EA);
_.W(EA,"ytd-comment-thread-renderer",function(){if(Lzx!==void 0)return Lzx;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Lzx=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var MeW;var x0=function(){var A=_.q.apply(this,arguments)||this;A.modernTypography=_.K("web_modern_typography");A.compactHeader=_.K("web_watch_compact_comments_header");A.hidePanelButton=!1;A.isPostSchedulingEnabled=_.K("enable_post_scheduling");A.hasFinishedStamping=!1;A.JSC$15792_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.O(x0,_.q);_.d=x0.prototype;
_.d.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"}}}};
_.d.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.d.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15792_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.d.onYtServiceRequestSent=function(A,Q){if(!_.K("kevlar_command_handler")&&Q.actions)for(A=0;A<Q.actions.length;A++){var b=Q.actions[A];_.V(b,zuY)&&_.Bj(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.V(b,zuY))}};
_.d.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var A;if(this.getPrefilledBackstagePostDialog((A=this.data)==null?void 0:A.actions)){_.Bj(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var Q=_.Bj(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;Q&&_.mL(this,function(){Q.focus();Q.openDialog&&Q.openDialog()})}}else this.hasActionsChange=!0};
_.d.computeIsBackstage=function(A){return A};
_.d.onYtCommentboxDismiss=function(){_.Bj(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.d.removePrefilledDialog=function(A){if(A==null?0:A.actions){for(var Q=A.actions.length-1;Q>=0;Q--){var b=void 0;((b=_.V(A.actions[Q],kyW))==null?0:b.dialog)&&delete A.actions[Q]}this.set("data",void 0);this.set("data",A)}};
_.d.getPrefilledBackstagePostDialog=function(A){if(A)for(var Q=0;Q<A.length;Q++){var b=A[Q],f=void 0;if((f=_.V(b,kyW))==null?0:f.dialog)return _.V(b,kyW).dialog}return null};
_.d.computeBackstagePostDialog=function(A){return A&&(this.getPrefilledBackstagePostDialog(A.actions)||A.createRenderer)};
_.d.dataChanged=function(){if(this.data){var A=this.data.customEmojis,Q=this.data.unicodeEmojisUrl;_.YZ.clear();Q&&_.id$(_.YZ,Q);A&&_.YZ.load(A)}};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.Bj(this.hostElement).querySelector("ytd-comment-simplebox-renderer");A?A.openDialog():this.JSC$15792_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Qr.Object.defineProperties(x0.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.K("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a,T,G;return!this.hidePanelButton&&_.K("kevlar_watch_comments_panel_button")&&((G=_.V((A=this.data)==null?void 0:(Q=A.sortMenu)==null?void 0:(b=Q.sortFilterSubMenuRenderer)==null?void 0:(f=b.subMenuItems)==null?void 0:(a=f[0])==null?void 0:(T=a.serviceEndpoint)==null?void 0:T.commandMetadata,_.KD))==null?void 0:G.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.JQ("MINIPLAYER_EXPAND_LABEL"),text:_.sr(_.JQ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
x0.prototype.dataChanged=x0.prototype.dataChanged;x0.prototype.onYtCommentboxDismiss=x0.prototype.onYtCommentboxDismiss;x0.prototype.observePrefilledBackstagePostDialog=x0.prototype.observePrefilledBackstagePostDialog;x0.prototype.onYtServiceRequestSent=x0.prototype.onYtServiceRequestSent;x0.prototype.onStampFinished=x0.prototype.onStampFinished;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],x0.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],x0.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],x0.prototype,"modernTypography",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],x0.prototype,"compactHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],x0.prototype,"engagementPanel",void 0);_.E([_.C(),_.c("design:type",Object)],x0.prototype,"hidePanelButton",void 0);_.E([_.C({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.c("design:type",Boolean)],x0.prototype,"isBackstage",void 0);_.E([_.C({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.c("design:type",Object)],x0.prototype,"backstagePostDialog",void 0);
_.E([_.C(),_.c("design:type",Object)],x0.prototype,"isPostSchedulingEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data","showCommentsPanelButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],x0.prototype,"useSpaceBetween",null);_.E([_.C({reflectToAttribute:!0}),_.H("data","hidePanelButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],x0.prototype,"showCommentsPanelButton",null);
_.E([_.H("data","showCommentsPanelButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],x0.prototype,"commentsPanelButtonData",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],x0.prototype,"onStampFinished",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],x0.prototype,"onYtServiceRequestSent",null);
_.E([_.iN("data.actions"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],x0.prototype,"observePrefilledBackstagePostDialog",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],x0.prototype,"onYtCommentboxDismiss",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],x0.prototype,"dataChanged",null);
_.E([_.h({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],x0);
_.W(x0,"ytd-comments-header-renderer",function(){if(MeW!==void 0)return MeW;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return MeW=A},{mode:1});var lvL;var c7=function(){return _.q.apply(this,arguments)||this};
_.O(c7,_.q);_.E([_.C(),_.c("design:type",Object)],c7.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.E([_.h({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],c7);
_.W(c7,"ytd-destination-button-renderer",function(){if(lvL!==void 0)return lvL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return lvL=A},{mode:1});var Kzy;var z_=function(){var A=_.q.apply(this,arguments)||this;A.isRichGrid=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};A.modernTypography=_.K("web_modern_typography");return A};
_.O(z_,_.q);_.d=z_.prototype;_.d.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.d.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.d.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.d.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var A;if((A=this.data)==null||!A.isExpanded){A=this.hostElement.clientWidth;var Q;if(A&&(Q=this.data)!=null&&Q.destinationButtons){Q=Math.floor((A+4)/214);A=this.data.destinationButtons.length;var b=Math.ceil(A/Q);this.fullyVisibleRows=A%Q===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}}}};
_.d.updateRichGridDestinationButtonsVisibility=function(){var A,Q;if(this.isRichGrid&&((A=this.data)==null||!A.isExpanded)&&(Q=this.data)!=null&&Q.destinationButtons){A=this.richGridItemsPerRow+1;Q=this.data.destinationButtons.length;var b=Math.ceil(Q/A);this.fullyVisibleRows=Q%A===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}};
_.d.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
z_.prototype.updateRichGridDestinationButtonsVisibility=z_.prototype.updateRichGridDestinationButtonsVisibility;_.E([_.C(),_.c("design:type",Object)],z_.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Number)],z_.prototype,"fullyVisibleRows",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],z_.prototype,"isShowMoreVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],z_.prototype,"isRichGrid",void 0);
_.E([_.C({selector:_.hH,value:0}),_.c("design:type",Number)],z_.prototype,"richGridItemsPerRow",void 0);_.E([_.C(),_.c("design:type",Object)],z_.prototype,"gridStateActionMap",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],z_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],z_.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],z_.prototype,"modernTypography",void 0);_.E([_.iN("data","richGridItemsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z_.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.E([_.h({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],z_);
_.W(z_,"ytd-destination-shelf-renderer",function(){if(Kzy!==void 0)return Kzy;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Kzy=A},{mode:1});var irW;var wm=function(){return _.q.apply(this,arguments)||this};
_.O(wm,_.q);wm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],wm.prototype,"data",void 0);_.E([_.h({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],wm);
_.W(wm,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(irW!==void 0)return irW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return irW=A},{mode:1});var Jtp;var uE=function(){var A=_.q.apply(this,arguments)||this;A.disableAnimation=!1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;return A};
_.O(uE,_.q);uE.prototype.onTap=function(A){A.preventDefault();this.data&&_.Bn(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Qr.Object.defineProperties(uE.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 A,Q,b,f,a;return((A=this.data)==null?0:A.checked)?(Q=this.data)==null?void 0:(b=Q.onStateIcon)==null?void 0:b.iconType:(f=this.data)==null?void 0:(a=f.defaultStateIcon)==null?void 0:a.iconType}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],uE.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uE.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],uE.prototype,"disableAnimation",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uE.prototype,"isSlimlineSurvey",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uE.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uE.prototype,"isShortsStyle",void 0);_.E([_.H("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],uE.prototype,"isAnimatedIcon",null);
_.E([_.H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.c("design:type",Number),_.c("design:paramtypes",[])],uE.prototype,"iconSize",null);_.E([_.H("isShortsStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],uE.prototype,"isDarkTheme",null);_.E([_.H("data.checked"),_.c("design:type",Object),_.c("design:paramtypes",[])],uE.prototype,"icon",null);_.E([_.h({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],uE);
_.W(uE,"ytd-rating-survey-option-renderer",function(){if(Jtp!==void 0)return Jtp;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Jtp=A},{mode:2});var VeL;var Zp=function(){var A=_.q.apply(this,arguments)||this;A.firstResponseText=null;A.lastResponseText=null;A.selectedNonStarOption=null;A.hideOptions=!1;A.hideUndoButton=!0;A.disableAnimation=!1;A.showResponseRangeText=!1;A.selectedRatingIndex=-1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.slimlineSurveyRatingSelectedIndex=-1;return A};
_.O(Zp,_.q);_.d=Zp.prototype;_.d.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.d.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.d.onOptionChange=function(A,Q){var b=this;A=Q.onStateIcon&&Q.defaultStateIcon&&Q.onStateIcon.iconType===Q.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(G,p){G.responseText===Q.responseText?b.isSlimlineSurvey?(b.selectedRatingIndex=p,b.ytdReduxBehavior.dispatch(pK9(p))):(b.setSurveyOptionValue(p,!0,"checked"),b.setSurveyOptionValue(p,!0,"selected")):(b.setSurveyOptionValue(p,!1,"checked"),b.setSurveyOptionValue(p,
!1,"selected"))});
else if(A)this.selectedNonStarOption=Q,this.hideOptions=!0;else{var f=this.ytRendererBehavior.getSimpleString(Q.responseText),a=!0;this.getOptionRenderers().forEach(function(G,p){b.setSurveyOptionValue(p,a,"checked");b.setSurveyOptionValue(p,!1,"selected");b.ytRendererBehavior.getSimpleString(G.responseText)===f&&(a=!1,b.setSurveyOptionValue(p,!0,"selected"))})}A=Q.responseEndpoint;
var T;Q.followUpCommand&&(T=_.V(Q.followUpCommand,Yfv));this.isSlimlineSurvey?(this.resetComponent(),_.pD(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.pD(this.hostElement,"ytd-inline-survey-rating-select-action",[A,T])};
_.d.showSelectedOption=function(){var A=this;_.j7.addJob(function(){var Q=A.getOptionRenderers()[A.slimlineSurveyRatingSelectedIndex];A.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),Q)},8,100)};
_.d.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(A){var Q;return(Q=_.V(A,$A$))!=null?Q:{}}):[]};
_.d.onUndoClick=function(){this.resetComponent();_.pD(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.d.setSurveyOptionValue=function(A,Q,b){this.notifyPath("data.ratings."+A+".ratingSurveyOptionRenderer."+b);this.set("data.ratings."+A+".ratingSurveyOptionRenderer."+b,Q)};
_.d.resetComponent=function(){var A=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var Q=this.getOptionRenderers(),b,f;this.firstResponseText=(f=(b=Q[0])==null?void 0:b.responseText)!=null?f:null;var a,T;this.lastResponseText=(T=(a=Q[Q.length-1])==null?void 0:a.responseText)!=null?T:null;Q.forEach(function(G,p){A.setSurveyOptionValue(p,!1,"checked");A.setSurveyOptionValue(p,!1,"selected")})};
_.Qr.Object.defineProperties(Zp.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Zp.prototype.onOptionChange=Zp.prototype.onOptionChange;Zp.prototype.dataChanged=Zp.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Zp.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"firstResponseText",void 0);_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"lastResponseText",void 0);_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"selectedNonStarOption",void 0);_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"hideOptions",void 0);_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"hideUndoButton",void 0);_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"disableAnimation",void 0);
_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"showResponseRangeText",void 0);_.E([_.C(),_.c("design:type",Object)],Zp.prototype,"selectedRatingIndex",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zp.prototype,"isSlimlineSurvey",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zp.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zp.prototype,"isShortsStyle",void 0);_.E([_.C({selector:function(A){return A.ui.slimlineSurveyRatingSelectedIndex}}),
_.c("design:type",Object)],Zp.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.E([_.H("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Zp.prototype,"isSingleSelect",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zp.prototype,"dataChanged",null);
_.E([_.Kc("ytd-rating-survey-option-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],Zp.prototype,"onOptionChange",null);_.E([_.h({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Zp);
_.W(Zp,"ytd-rating-survey-renderer",function(){if(VeL!==void 0)return VeL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return VeL=A},{mode:1});var OrY;var n2L;var kgr;var Wab=(kB.FIRSTDAYOFWEEK+1)%7,IvL=function(A,Q,b,f){var a="";if(f.selection&&Rc4(f.selection))V3(A,f.selection)&&(a+=" selected");else if(f.selection&&gdF(f.selection)){var T=f.selection.selectionState||"START_DATE";V3(A,f.selection.start)&&(a+=" period-start ",T==="START_DATE"&&(a+="selected"));V3(A,f.selection.end)&&(a+=" period-end ",T==="END_DATE"&&(a+="selected"));Os(A,f.selection.start)||Os(f.selection.end,A)||(a+=" highlighted")}if(Os(Q,f.start)||Os(f.end,Q))a+=" disabled";f.circleToday&&
V3(Q,b)&&(a+=" today");return a};var ys=function(){return _.q.apply(this,arguments)||this};
_.O(ys,_.q);_.d=ys.prototype;_.d.attached=function(){var A=this;_.mL(this,function(){A.JSC$15826_calendarMain.scrollHeight>0&&(A.calendarConfig.selection?A.scrollToDate(ecY(A.calendarConfig.selection)):A.scrollToDate(A.calendarConfig.end))})};
_.d.updateSelection=function(A){A=vdX(Object.assign({},this.calendarConfig,{selection:A}),IvL);this.splice.apply(this,["renderData.months",0,A.length].concat(_.ri(A)))};
_.d.scrollToDate=function(A){this.renderData&&(A=Ed4(A,this.renderData),A!==void 0&&this.JSC$15826_calendarMain.scrollToIndex(A))};
_.d.scrollToNextMonth=function(){this.JSC$15826_calendarMain.scrollToIndex(this.JSC$15826_calendarMain.firstVisibleIndex+1)};
_.d.scrollToPrevMonth=function(){this.JSC$15826_calendarMain.firstVisibleIndex===0&&this.JSC$15826_calendarMain.scrollTo(0,0);this.JSC$15826_calendarMain.scrollToIndex(this.JSC$15826_calendarMain.firstVisibleIndex-1)};
_.d.handleDayClick=function(A){_.pD(this.hostElement,"ytd-calendar-date-clicked",[A.model.day.date])};
_.d.handleDayMouseDown=function(A){A.preventDefault();_.pD(this.hostElement,"ytd-calendar-date-mousedown",[A.model.day.date])};
_.d.handleDayMouseUp=function(A){_.pD(this.hostElement,"ytd-calendar-date-mouseup",[A.model.day.date])};
_.d.handleDayMouseEnter=function(A){A.preventDefault();_.pD(this.hostElement,"ytd-calendar-date-mouseenter",[A.model.day.date])};
_.d.handleDayMouseLeave=function(A){_.pD(this.hostElement,"ytd-calendar-date-mouseleave",[A.model.day.date])};
_.Qr.Object.defineProperties(ys.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var A=this.calendarConfig,Q=IvL;Q=Q===void 0?IvL:Q;for(var b=[],f=0;f<7;f++)b.push(kB.NARROWWEEKDAYS[(f+Wab)%7]);return{months:vdX(A,Q),daysOfWeekLabel:b}}}});
_.E([_.C(),_.c("design:type",Object)],ys.prototype,"calendarConfig",void 0);_.E([_.V1("#calendar-main"),_.c("design:type",Object)],ys.prototype,"JSC$15826_calendarMain",void 0);_.E([_.H("calendarConfig"),_.c("design:type",Object),_.c("design:paramtypes",[])],ys.prototype,"renderData",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],ys);
_.W(ys,"ytd-scrollable-calendar",function(){if(kgr!==void 0)return kgr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return kgr=A},{mode:2});var Hrp;var CxN;var Y0=function(){var A=_.q.apply(this,arguments)||this;A.hideCharCounter=!1;A.hideLabel=!1;A.noLabelFloat=!1;A.autoValidate=!0;A.invalid=!1;A.disabled=!1;A.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return A};
_.O(Y0,_.q);_.d=Y0.prototype;_.d.reset=function(A){this.value=A&&this.data?this.data.value=A:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.d.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.d.focusTextInput=function(){this.input.focus()};
_.d.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()};
_.d.valueChanged=function(){var A,Q;if(((A=this.data)==null?0:A.value)||((Q=this.data)==null?void 0:Q.value)==="")this.value=this.data.value;else{var b;((b=this.data)==null?void 0:b.value)!==void 0||this.value||(this.value="")}};
_.d.computeLabel=function(A,Q){return Q?"":_.mO(A)};
_.d.computeAriaLabel=function(A,Q){return Q?_.mO(A):""};
_.d.computeErrorMessage=function(A,Q,b,f){!A&&Q?A=b||this.strings.REQUIRED_LABEL:(A=_.mO(f),A=_.Pe(A,"&")?"document"in _.by?j9y(A):R6Y(A):A);return A};
_.d.computeType=function(A){return A==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.d.onTextValueChanged=function(A){this.value=A.detail.value;var Q;(Q=this.onValueChanged)==null||Q.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.d.handleUpdateTextInputFormFieldRendererCommand=function(A){(A=_.V(A,LIy))&&this.data&&this.data.id===A.id&&(A.invalid!==void 0&&(this.invalid=A.invalid),A.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",A.invalidValueErrorMessage))};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("value-changed",this.value))};
_.d.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.Qr.Object.defineProperties(Y0.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var A;return!((A=this.data)==null||!A.isMultiline)}}});
Y0.prototype.valueChangedForBinding=Y0.prototype.valueChangedForBinding;Y0.prototype.valueChanged=Y0.prototype.valueChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Y0.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Y0.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Y0.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],Y0.prototype,"value",void 0);_.E([_.C(),_.c("design:type",String)],Y0.prototype,"pattern",void 0);_.E([_.C(),_.c("design:type",String)],Y0.prototype,"errorMessage",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],Y0.prototype,"componentStyle",void 0);_.E([_.C(),_.c("design:type",Object)],Y0.prototype,"hideCharCounter",void 0);
_.E([_.C(),_.c("design:type",Object)],Y0.prototype,"hideLabel",void 0);_.E([_.C(),_.c("design:type",Object)],Y0.prototype,"noLabelFloat",void 0);_.E([_.C(),_.c("design:type",Function)],Y0.prototype,"onValueChanged",void 0);_.E([_.C(),_.c("design:type",Boolean)],Y0.prototype,"isMultilineOverride",void 0);_.E([_.C(),_.c("design:type",Object)],Y0.prototype,"autoValidate",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Y0.prototype,"invalid",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Y0.prototype,"disabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Y0.prototype,"enableOverlayTheme",void 0);_.E([_.C({value:{REQUIRED_LABEL:_.JQ("REQUIRED_LABEL",void 0,"Required")}}),_.c("design:type",Object)],Y0.prototype,"strings",void 0);_.E([_.V1("#input"),_.c("design:type",Object)],Y0.prototype,"input",void 0);
_.E([_.H("data","isMultilineOverride"),_.c("design:type",Object),_.c("design:paramtypes",[])],Y0.prototype,"isMultiline",null);_.E([_.I_("data.value"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Y0.prototype,"valueChanged",null);_.E([_.iN("value"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Y0.prototype,"valueChangedForBinding",null);_.E([_.Ec({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Y0);
_.W(Y0,"yt-text-input-form-field-renderer",function(){if(CxN===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Hrp===void 0&&(Hrp=document.createElement("template"));var f=Hrp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);CxN=A}A=CxN;return A},{mode:2});var Dp=function(){var A=_.q.apply(this,arguments)||this;A.data=void 0;A.selectionState="START_DATE";A.isStartDateInvalid=!1;A.isEndDateInvalid=!1;A.autoapply=!1;A.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 A};
_.O(Dp,_.q);_.d=Dp.prototype;_.d.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"}}}}};
_.d.focus=function(){this.startDateInput.focus()};
_.d.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:nS(this.data.selection.start),end:nS(this.data.selection.end)})};
_.d.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.d.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.x1(this.selectionState)}};
_.d.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.d.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.d.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.d.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,Q=A.end;A=cNX({start:A.start,end:this.endDate||Q},this.startDateInput.value||"");this.isStartDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection=this.endDate?{start:A,end:this.endDate}:A,this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.d.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,Q=A.start;A=cNX({start:this.startDate||Q,end:A.end},this.endDateInput.value||"");this.isEndDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection={start:this.startDate,end:A},this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.d.handleCalendarDateClicked=function(A){var Q=this.selection&&ecY(this.selection),b=this.selection&&hcX(this.selection);Q&&!Os(A,Q)&&this.selectionState==="END_DATE"?(this.selection={start:Q,end:A},this.selectionState="START_DATE"):(b&&!Os(b,A)?this.selection={start:A,end:b}:this.selection=A,this.selectionState="END_DATE")};
_.d.handleCalendarDateMouseDown=function(A){this.selection&&!Rc4(this.selection)&&(this.dragPivot=V3(A,this.selection.start)?this.selection.end:V3(A,this.selection.end)?this.selection.start:A)};
_.d.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.d.handleCalendarDateMouseEnter=function(A){this.dragPivot&&(this.selection={start:function(Q,b){return Os(Q,b)?Q:b}(this.dragPivot,A),
end:function(Q,b){return Os(Q,b)?b:Q}(this.dragPivot,A)},this.dragPivot||(this.selectionState="START_DATE"))};
_.d.handleCalendarDateMouseLeave=function(){};
_.d.handleCalendarSubmitDateRange=function(){this.selection&&!Rc4(this.selection)&&_.pD(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.d.updateInvalidState=function(){var A=function(Q,b){b?Q.setAttribute("invalid",""):Q.removeAttribute("invalid")};
A(this.startDateInput,this.isStartDateInvalid);A(this.endDateInput,this.isEndDateInvalid)};
_.d.updateDateStrings=function(){this.selection&&(Rc4(this.selection)?jse(this.selection):(jse(this.selection.start),jse(this.selection.end)))};
_.d.updateCalendarSelection=function(A){this.calendar.updateSelection(Object.assign({},A,{selectionState:this.selectionState}))};
_.d.updateIsStartDateInvalidFromBinding=function(A){this.isStartDateInvalid=A.detail.value};
_.d.updateIsEndDateInvalidFromBinding=function(A){this.isEndDateInvalid=A.detail.value};
_.d.updateStartDateStringFromBinding=function(){};
_.d.updateEndDateStringFromBinding=function(){};
_.Qr.Object.defineProperties(Dp.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:nS(this.data.dateRangeStart),end:nS(this.data.dateRangeEnd),selection:{start:nS(this.data.selection.start),end:nS(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ecY(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&hcX(this.selection)}}});
Dp.prototype.resetTextboxes=Dp.prototype.resetTextboxes;Dp.prototype.observeSelection=Dp.prototype.observeSelection;Dp.prototype.dataChanged=Dp.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Dp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("#calendar"),_.c("design:type",Object)],Dp.prototype,"calendar",void 0);
_.E([_.V1("#start-date"),_.c("design:type",Object)],Dp.prototype,"startDateInput",void 0);_.E([_.V1("#end-date"),_.c("design:type",Object)],Dp.prototype,"endDateInput",void 0);_.E([_.C(),_.c("design:type",Object)],Dp.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Dp.prototype,"selection",void 0);_.E([_.C(),_.c("design:type",String)],Dp.prototype,"selectionState",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Dp.prototype,"calendarConfig",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Dp.prototype,"errorMessage",null);_.E([_.H("selection"),_.c("design:type",Object),_.c("design:paramtypes",[])],Dp.prototype,"startDate",null);_.E([_.H("selection"),_.c("design:type",Object),_.c("design:paramtypes",[])],Dp.prototype,"endDate",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dp.prototype,"dataChanged",null);
_.E([_.iN("selection","selectionState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dp.prototype,"observeSelection",null);_.E([_.iN("selectionState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dp.prototype,"resetTextboxes",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Dp);
_.W(Dp,"ytd-date-period-picker-renderer",function(){if(n2L!==void 0)return n2L;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return n2L=A},{mode:1});var $0=function(){var A=_.q.apply(this,arguments)||this;var Q={};A.actionMap=(Q["ytd-date-period-picker-apply"]="handleDateRangeUpdated",Q);return A};
_.O($0,_.q);$0.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
$0.prototype.handleDateRangeUpdated=function(){};
_.E([_.C(),_.c("design:type",Object)],$0.prototype,"data",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],$0.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$0.prototype,"rendererstamperBehavior",void 0);_.E([_.h({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],$0);
_.W($0,"ytd-report-history-section-header-renderer",function(){if(OrY!==void 0)return OrY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return OrY=A},{mode:1});var qKL;var o2p;var teM;var Nn=function(){return _.q.apply(this,arguments)||this};
_.O(Nn,_.q);_.Qr.Object.defineProperties(Nn.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?0:(Q=A.icon)==null?0:Q.iconType)?_.K0(this.data.icon.iconType):""}}});
_.E([_.C(),_.c("design:type",Object)],Nn.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],Nn.prototype,"icon",null);_.E([_.h({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Nn);
_.W(Nn,"ytd-report-history-table-text-cell-renderer",function(){if(teM!==void 0)return teM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return teM=A},{mode:1});var sA=function(){return _.q.apply(this,arguments)||this};
_.O(sA,_.q);sA.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sA.prototype,"data",void 0);_.E([_.h({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],sA);
_.W(sA,"ytd-report-history-table-reason-cell-renderer",function(){if(o2p!==void 0)return o2p;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return o2p=A},{mode:1});var mn=function(){return _.q.apply(this,arguments)||this};
_.O(mn,_.q);mn.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],mn.prototype,"rendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mn.prototype,"data",void 0);_.E([_.h({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],mn);
_.W(mn,"ytd-report-history-table-cell-renderer",function(){if(qKL!==void 0)return qKL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return qKL=A},{mode:1});var rtW;var AK=function(){var A=_.q.apply(this,arguments)||this;A.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 A};
_.O(AK,_.q);AK.prototype.onDataChanged=function(){var A;if((A=this.data)==null?0:A.style)this.componentStyle=this.getStyleName(this.data.style)};
AK.prototype.getCellForColumn=function(A){return this.cells.find(function(Q){var b;return((b=_.V(Q==null?void 0:Q.cell,mAj)||_.V(Q==null?void 0:Q.cell,sjj))==null?void 0:b.columnId)===A.type})};
AK.prototype.getClassForColumn=function(A){switch(A){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
AK.prototype.getStyleName=function(A){switch(A){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Qr.Object.defineProperties(AK.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.cells)||[]).map(function(Q){return _.V(Q,Ndj)})}}});
AK.prototype.onDataChanged=AK.prototype.onDataChanged;_.E([_.C(),_.c("design:type",Object)],AK.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Array)],AK.prototype,"columnRenderData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],AK.prototype,"componentStyle",void 0);_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],AK.prototype,"cells",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],AK.prototype,"onDataChanged",null);_.E([_.h({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],AK);
_.W(AK,"ytd-report-history-table-row-renderer",function(){if(rtW!==void 0)return rtW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rtW=A},{mode:1});var jvN;var RDp;var zc6={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},wAf={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Qv=function(){return _.q.apply(this,arguments)||this};
_.O(Qv,_.q);Qv.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"}}}}}};
Qv.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Qr.Object.defineProperties(Qv.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.columns)?D5A(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return yNA(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var A=this.tableSpec,Q=zc6;Q=Q===void 0?wAf:Q;Q=YUY(A.columnDimensions,A.columnsToShow||[],Q);A=0;Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,A+=b.minWidth+b.paddingLeft+b.paddingRight;return A}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.E([_.I(_.sM),_.c("design:type",Object)],Qv.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Qv.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Qv.prototype,"tableSpec",null);_.E([_.H("tableSpec"),_.c("design:type",Array),_.c("design:paramtypes",[])],Qv.prototype,"columnRenderData",null);
_.E([_.H("tableSpec"),_.c("design:type",Number),_.c("design:paramtypes",[])],Qv.prototype,"totalMinWidth",null);_.E([_.H("totalMinWidth"),_.c("design:type",String),_.c("design:paramtypes",[])],Qv.prototype,"tableWidthStyle",null);_.E([_.h({is:"ytd-table-renderer",disableElementRegistration:!0})],Qv);
_.W(Qv,"ytd-table-renderer",function(){if(RDp!==void 0)return RDp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return RDp=A},{mode:1});var bZ=function(){return _.q.apply(this,arguments)||this};
_.O(bZ,_.q);bZ.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bZ.prototype,"data",void 0);_.E([_.h({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],bZ);
_.W(bZ,"ytd-report-reason-history-modal-renderer",function(){if(jvN!==void 0)return jvN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return jvN=A},{mode:1});var g2p;var eDr;var hDK;var f9=function(){return _.q.apply(this,arguments)||this};
_.O(f9,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],f9.prototype,"data",void 0);_.E([_.h({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],f9);
_.W(f9,"ytd-profile-column-stats-entry-renderer",function(){if(hDK!==void 0)return hDK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return hDK=A},{mode:1});var Wzr;var aK=function(){return _.q.apply(this,arguments)||this};
_.O(aK,_.q);aK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],aK.prototype,"data",void 0);_.E([_.h({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],aK);
_.W(aK,"ytd-profile-column-stats-renderer",function(){if(Wzr!==void 0)return Wzr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Wzr=A},{mode:1});var v2y;var TM=function(){return _.q.apply(this,arguments)||this};
_.O(TM,_.q);_.Qr.Object.defineProperties(TM.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var Q,b;A=(Q=this.data)==null?void 0:(b=Q.thumbnail)==null?void 0:b.thumbnails;var f;return A&&((f=A[0])==null?void 0:f.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var Q,b;A=(Q=this.data)==null?void 0:(b=Q.thumbnail)==null?void 0:b.thumbnails;var f;return A&&((f=A[0])==null?void 0:f.height)||80}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],TM.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],TM.prototype,"componentStyle",void 0);_.E([_.H("data.useThumbnailSize"),_.c("design:type",Object),_.c("design:paramtypes",[])],TM.prototype,"thumbnailWidth",null);
_.E([_.H("data.useThumbnailSize"),_.c("design:type",Object),_.c("design:paramtypes",[])],TM.prototype,"thumbnailHeight",null);_.E([_.h({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],TM);
_.W(TM,"ytd-profile-column-user-info-renderer",function(){if(v2y!==void 0)return v2y;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return v2y=A},{mode:1});var dt=function(){return _.q.apply(this,arguments)||this};
_.O(dt,_.q);dt.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],dt.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],dt.prototype,"componentStyle",void 0);_.E([_.h({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],dt);
_.W(dt,"ytd-profile-column-renderer",function(){if(eDr!==void 0)return eDr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return eDr=A},{mode:1});var Fq=function(){var A=_.q.apply(this,arguments)||this;A.componentStyle="NON_CENTERED_PROFILE";return A};
_.O(Fq,_.q);Fq.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Fq.prototype.getIcon=function(A){return A?"settings:"+A.toLowerCase():null};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Fq.prototype,"data",void 0);_.E([_.h({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Fq);
_.W(Fq,"ytd-page-introduction-renderer",function(){if(g2p!==void 0)return g2p;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return g2p=A},{mode:1});var E2W;var GM=function(){return _.q.apply(this,arguments)||this};
_.O(GM,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],GM.prototype,"data",void 0);_.E([_.h({is:"ytd-report-description-renderer",disableElementRegistration:!0})],GM);
_.W(GM,"ytd-report-description-renderer",function(){if(E2W!==void 0)return E2W;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return E2W=A},{mode:1});var x9p;var ctM;var Bg=function(){return _.q.apply(this,arguments)||this};
_.O(Bg,_.q);Bg.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Bg.prototype,"data",void 0);_.E([_.h({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Bg);
_.W(Bg,"ytd-video-report-renderer",function(){if(ctM!==void 0)return ctM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ctM=A},{mode:1});var zDM;_.xo("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.xo("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var p9=function(){return _.q.apply(this,arguments)||this};
_.O(p9,_.q);p9.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]]"}}}}}};
p9.prototype.computeMessageStyle=function(A){return A};
p9.prototype.computeButtonOverride=function(A){var Q;if((A==null?0:(Q=A.style)==null?0:Q.value)&&A.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],p9.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],p9.prototype,"shelf",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],p9.prototype,"panel",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.c("design:type",Boolean)],p9.prototype,"componentStyle",void 0);_.E([_.C({computed:"computeButtonOverride(data)"}),_.c("design:type",Object)],p9.prototype,"buttonOverride",void 0);_.E([_.h({is:"ytd-message-renderer",disableElementRegistration:!0})],p9);
_.W(p9,"ytd-message-renderer",function(){if(zDM!==void 0)return zDM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zDM=A},{mode:1});var Pg=function(){return _.q.apply(this,arguments)||this};
_.O(Pg,_.q);Pg.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"}}}};
Pg.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Pg.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Qr.Object.defineProperties(Pg.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!!(((A=this.data)==null?0:A.header)&&((Q=this.data)==null?0:Q.table))}}});
Pg.prototype.onRequestError=Pg.prototype.onRequestError;_.E([_.I(_.sM),_.c("design:type",Object)],Pg.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Pg.prototype,"data",void 0);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Pg.prototype,"isUnifiedReportHistory",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Pg.prototype,"onRequestError",null);_.E([_.h({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Pg);
_.W(Pg,"ytd-report-history-section-renderer",function(){if(x9p!==void 0)return x9p;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return x9p=A},{mode:1});var w5j;var Xq=function(){var A=_.q.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.O(Xq,_.q);Xq.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Xq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Xq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Xq.prototype,"answerExpanded",void 0);_.E([_.h({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Xq);
_.W(Xq,"ytd-handles-claiming-faq-renderer",function(){if(w5j!==void 0)return w5j;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return w5j=A},{mode:1});var uaW;var Zrj=function(){return _.q.apply(this,arguments)||this};
_.O(Zrj,_.q);_.E([_.C(),_.c("design:type",Object)],Zrj.prototype,"data",void 0);_.E([_.h({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Zrj);
_.W(Zrj,"ytd-handles-claiming-faq-section-renderer",function(){if(uaW!==void 0)return uaW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return uaW=A},{mode:1});var ytL;var Sk=function(){var A=_.q.apply(this,arguments)||this;A.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";A.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";A.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";A.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";A.leftSquiggly=A.leftSquigglyLight;A.rightSquiggly=A.rightSquigglyLight;
A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return A};
_.O(Sk,_.q);_.d=Sk.prototype;_.d.updateLeftSquigglyStyle=function(){_.Uc(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.d.updateRightSquigglyStyle=function(){_.Uc(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.d.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.d.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),A?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Sk.prototype.updateRightSquigglyStyle=Sk.prototype.updateRightSquigglyStyle;Sk.prototype.updateLeftSquigglyStyle=Sk.prototype.updateLeftSquigglyStyle;_.E([_.C(),_.c("design:type",Object)],Sk.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Sk.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",String)],Sk.prototype,"leftSquiggly",void 0);_.E([_.C(),_.c("design:type",String)],Sk.prototype,"rightSquiggly",void 0);
_.E([_.iN("leftSquiggly"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sk.prototype,"updateLeftSquigglyStyle",null);_.E([_.iN("rightSquiggly"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sk.prototype,"updateRightSquigglyStyle",null);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Sk.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Sk.prototype,"actionButtonOverride",void 0);_.E([_.h({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Sk);
_.W(Sk,"ytd-handles-claiming-header-renderer",function(){if(ytL!==void 0)return ytL;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ytL=A},{mode:1});var YKp;var UR=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";A.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";A.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";A.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
A.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";A.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";A.image0SquigglyBackground=A.image0LightSquigglyBackground;A.image1SquigglyBackground=A.image1LightSquigglyBackground;A.image3SquigglyBackground=A.image3LightSquigglyBackground;return A};
_.O(UR,_.q);_.d=UR.prototype;_.d.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.d.onDataChanged=function(){this.updateTitleAndImages()};
_.d.onThemeChanged=function(){this.updateTitleAndImages()};
_.d.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.d.updateImage0SquigglyBackground=function(){_.Uc(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.d.updateImage1SquigglyBackground=function(){_.Uc(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.d.updateImage3SquigglyBackground=function(){_.Uc(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.d.updateTitleAndImages=function(){var A,Q;((A=this.data)==null?void 0:(Q=A.titleImages)==null?void 0:Q.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))};
UR.prototype.updateImage3SquigglyBackground=UR.prototype.updateImage3SquigglyBackground;UR.prototype.updateImage1SquigglyBackground=UR.prototype.updateImage1SquigglyBackground;UR.prototype.updateImage0SquigglyBackground=UR.prototype.updateImage0SquigglyBackground;UR.prototype.onThemeChanged=UR.prototype.onThemeChanged;UR.prototype.onDataChanged=UR.prototype.onDataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],UR.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],UR.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"title0",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"title1",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"title2",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"title3",void 0);
_.E([_.C(),_.c("design:type",Object)],UR.prototype,"title4",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"image0",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"image1",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"image2",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"image3",void 0);_.E([_.C(),_.c("design:type",Object)],UR.prototype,"image4",void 0);_.E([_.C(),_.c("design:type",String)],UR.prototype,"image0SquigglyBackground",void 0);
_.E([_.C(),_.c("design:type",String)],UR.prototype,"image1SquigglyBackground",void 0);_.E([_.C(),_.c("design:type",String)],UR.prototype,"image3SquigglyBackground",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UR.prototype,"onDataChanged",null);_.E([_.iN("isDarkTheme"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UR.prototype,"onThemeChanged",null);
_.E([_.iN("image0SquigglyBackground"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UR.prototype,"updateImage0SquigglyBackground",null);_.E([_.iN("image1SquigglyBackground"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UR.prototype,"updateImage1SquigglyBackground",null);
_.E([_.iN("image3SquigglyBackground"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UR.prototype,"updateImage3SquigglyBackground",null);_.E([_.h({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],UR);
_.W(UR,"ytd-handles-claiming-title-images-section-renderer",function(){if(YKp!==void 0)return YKp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return YKp=A},{mode:1});var D9L;var L9=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(L9,_.q);L9.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
L9.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
L9.prototype.onCopyButtonClick=function(){var A=this,Q,b,f;return _.B(function(a){return(Q=A.data)!=null&&Q.primaryChannelUrl?a.yield(navigator.clipboard.writeText(((b=A.data)==null?0:b.encodedChannelUrl)?A.data.encodedChannelUrl:"https://"+_.mO((f=A.data)==null?void 0:f.primaryChannelUrl)),0):a.jumpTo(0)})};
_.E([_.C(),_.c("design:type",Object)],L9.prototype,"data",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],L9.prototype,"ytComponentBehavior",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],L9.prototype,"isDarkTheme",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],L9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.h({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],L9);
_.W(L9,"ytd-handles-claiming-update-social-renderer",function(){if(D9L!==void 0)return D9L;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return D9L=A},{mode:1});var $9p;var ME=function(){var A=_.q.apply(this,arguments)||this;A.JSC$15920_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";A.JSC$15920_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.squigglyBackground=A.JSC$15920_squigglyBackgroundLight;return A};
_.O(ME,_.q);ME.prototype.updateSquigglyBackgroundStyle=function(){_.Uc(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ME.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.squigglyBackground=A?this.JSC$15920_squigglyBackgroundDark:this.JSC$15920_squigglyBackgroundLight};
ME.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$15920_squigglyBackgroundDark:this.JSC$15920_squigglyBackgroundLight)};
ME.prototype.updateSquigglyBackgroundStyle=ME.prototype.updateSquigglyBackgroundStyle;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ME.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ME.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],ME.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",String)],ME.prototype,"squigglyBackground",void 0);_.E([_.iN("squigglyBackground"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ME.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.h({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ME);
_.W(ME,"ytd-handles-claiming-vanity-info-renderer",function(){if($9p!==void 0)return $9p;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $9p=A},{mode:1});var NUW;var lZ=function(){var A=_.q.apply(this,arguments)||this;A.JSC$15923_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";A.JSC$15923_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";A.squigglyBackground=A.JSC$15923_squigglyBackgroundLight;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(lZ,_.q);_.d=lZ.prototype;_.d.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.d.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$15923_squigglyBackgroundDark:this.JSC$15923_squigglyBackgroundLight)};
_.d.updateSquigglyBackgroundStyle=function(){_.Uc(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.d.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.d.detached=function(){this.stop()};
_.d.stop=function(){this.playerElement.stop()};
_.d.setupVideoPlayer=function(){var A=this,Q,b;return _.B(function(f){Q=A.data.videoId;b="http://i1.ytimg.com/vi/"+Q+"/maxresdefault.jpg";A.playerElement.loadVideoWithPlayerVars({video_id:Q,iurlhq:b});_.Oi(f)})};
lZ.prototype.onDataChanged=lZ.prototype.onDataChanged;lZ.prototype.updateSquigglyBackgroundStyle=lZ.prototype.updateSquigglyBackgroundStyle;_.E([_.C({value:!1}),_.c("design:type",Boolean)],lZ.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",String)],lZ.prototype,"squigglyBackground",void 0);_.E([_.V1("#player"),_.c("design:type",Object)],lZ.prototype,"playerElement",void 0);_.E([_.C(),_.c("design:type",Object)],lZ.prototype,"data",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],lZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.iN("squigglyBackground"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lZ.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lZ.prototype,"onDataChanged",null);
_.E([_.h({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],lZ);
_.W(lZ,"ytd-handles-claiming-video-item-renderer",function(){if(NUW!==void 0)return NUW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return NUW=A},{mode:1});var sv1;var iZ=function(){var A=_.nc.apply(this,arguments)||this;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.containerWidthDiff=0;A.boundPrevClick=function(){A.set("offset",K9(A,A.offset-(A.scrollDistance||320)))};
A.boundNextClick=function(){A.set("offset",K9(A,A.offset+(A.scrollDistance||320)))};
A.boundScrollContainerMouseDown=function(Q){A.dragMouseStart=Q.clientX;A.dragOffsetStart=A.offset;A.dragging=!0};
A.boundScrollContainerDrag=function(Q){A.dragging&&A.set("offset",K9(A,A.dragOffsetStart-(Q.clientX-A.dragMouseStart)))};
A.boundMouseUp=function(){A.onMouseUp()};
A.boundWheelScroll=function(Q){var b=0;Math.abs(Q.deltaX)>=Math.abs(Q.deltaY)?b=Q.deltaX:Q.shiftKey&&(b=Q.deltaY);b!==0&&(A.offset+=b,Q.stopPropagation(),Q.preventDefault())};
A.boundChipCloudChipScrollIntoView=function(Q){(Q=Q.detail)&&A.scrollChipIntoView(Q)};
return A};
_.O(iZ,_.nc);iZ.prototype.attached=function(){var A=_.Bj(this.hostElement).querySelector("#scroll-container");A.addEventListener("wheel",this.boundWheelScroll);A.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.style.touchAction="pan-y";A.addEventListener("pointerdown",this.boundScrollContainerMouseDown);A.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
iZ.prototype.detached=function(){var A=_.Bj(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.boundWheelScroll);A.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);A.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
iZ.prototype.reset=function(){this.set("offset",0);_.mL(this,this.setContainerWidthDiff);JK(this)};
var K9=function(A,Q){return Math.min(Math.max(Q,0),A.containerWidthDiff)};
iZ.prototype.onMouseUp=function(){this.dragging=!1};
iZ.prototype.transformContainer=function(){this.offset=K9(this,this.offset);var A=_.vG("HTML_DIR")==="rtl"?"":"-";_.Bj(this.hostElement).querySelector("#chips").style.transform="translateX("+A+this.offset+"px)";JK(this)};
var JK=function(A){_.mL(A,A.setButtonsState)};
iZ.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=K9(this,this.offset));this.atStart=this.offset<=0};
iZ.prototype.setContainerWidthDiff=function(){var A=_.Bj(this.hostElement).querySelector("#scroll-container"),Q=_.Bj(this.hostElement).querySelector("#chips");A&&Q&&(this.containerWidthDiff=Q.clientWidth-A.clientWidth)};
iZ.prototype.scrollChipIntoView=function(A){var Q=_.Bj(this.hostElement).querySelector("#scroll-container");if(Q){var b=this.atStart?0:106,f=this.atEnd?0:106;A.offsetLeft<this.offset+b?this.offset=K9(this,A.offsetLeft-b):A.offsetLeft+A.clientWidth>this.offset+Q.clientWidth-f&&(this.offset=K9(this,A.offsetLeft+A.clientWidth+f-Q.clientWidth))}};
iZ.prototype.transformContainer=iZ.prototype.transformContainer;_.E([_.C({value:0}),_.c("design:type",Number)],iZ.prototype,"offset",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.c("design:type",Boolean)],iZ.prototype,"atStart",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],iZ.prototype,"atEnd",void 0);_.E([_.C(),_.c("design:type",Number)],iZ.prototype,"scrollDistance",void 0);
_.E([_.iN("offset"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],iZ.prototype,"transformContainer",null);_.E([_.kl()],iZ);var m9Y;var AGL;var fI$=_.aP(function(A){var Q=A.data;A=_.F(_.pz(!1,void 0,"HDMMr"));var b=A.next().value,f=A.next().value;A={};A=_.O4("ytChipShapeChip",function(){a:switch(Q==null?void 0:Q().state){case 0:var T="ytChipShapeActive";break a;case 1:T="ytChipShapeDisabled";break a;default:T="ytChipShapeInactive"}return T},function(){var T=Q().type===1||Q().type===2,G=Q();
return T||G!=null&&G.startIcon?G==null||!G.startIcon||G!=null&&G.text?T?"ytChipShapeEndIconPadding":(G==null?0:G.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(A.ytChipShapeFocused=function(){var T;
return b()&&((T=Q())==null?void 0:T.state)!==1},A));
var a=function(T){if((Q==null?void 0:Q().state)!==1){var G,p;(p=(G=Q()).onTap)==null||p.call(G,T)}};
return _.X("chip-shape",{class:"ytChipShapeHost","on:focusin":_.IY(function(){var T=_.fJ().resolve(_.bu(_.L3));if(T){f(T.isKeyBoardInUse());var G,p;(p=(G=Q()).onFocusIn)==null||p.call(G)}return!1}),
"on:focusout":_.IY(function(){f(!1);return!1})},_.X(QGM,{shouldWrapInButton:function(){return Q().type!==2},
selected:function(){return Q().state===0},
onClick:a,isDropdown:function(){return Q().type===1},
accessibilityLabel:function(){return Q().accessibilityLabel}},_.X("div",{class:A},_.X(_.S,{cond:function(){return Q().startIcon},
then:function(){return _.X(_.oY,{icon:function(){var T;return(T=Q())==null?void 0:T.startIcon},
className:function(){return Q().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return Q().text},_.X(byM,{shape:Q,
onClick:a}),_.X(_.jl,{model:{borderRadius:"8px"}}))))},"Ib");
fI$.idomCompat=!0;var QGM=_.aP(function(A){var Q=_.IY(function(b){A.onClick(b);return!1});
return _.X(_.S,{cond:A.shouldWrapInButton,then:function(){return _.X("button",{class:"ytChipShapeButtonReset","on:click":Q,role:function(){return A.isDropdown()?"combobox":"tab"},
"aria-label":A.accessibilityLabel,"aria-selected":A.selected},A.children)},
else:function(){return A.children}})},"Jb"),byM=_.aP(function(A){var Q=A.shape;
var b=A.onClick;var f=_.IY(function(a){b(a);return!1});
return _.X(_.I8,null,_.X(_.nH,{when:function(){return Q().type===1}},function(){return _.X(_.oY,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.X(_.nH,{when:function(){return Q().type===2}},function(){return _.X("button",{class:"ytChipShapeButtonReset",
"on:click":f},_.X(_.oY,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.X(_.nH,{when:function(){return Q().type===0}},function(){return _.X(_.bd,null)}))},"Kb");_.pE(fI$,"chip-shape",{props:{data:_.Qf}});var Vv=function(){var A=_.q.apply(this,arguments)||this;A.disableDeselectEvent=!1;A.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return A};
_.O(Vv,_.q);_.d=Vv.prototype;_.d.onSelectChipCommand=function(A){if(!this.selected&&this.data&&(A=_.V(A,dAL),A.targetId&&A.targetId===this.data.targetId))this.onTap()};
_.d.onFilterChipTransformCommand=function(A){if(!this.selected&&this.data){var Q;(A=(Q=_.V(A,m_v))==null?void 0:Q.chipUniqueId)&&A===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.d.dataChanged=function(){var A=this;_.mL(this,function(){A.data&&A.data.isSelected&&!A.selected&&(A.scrollChipIntoView(),A.onTap())})};
_.d.computeChipStyle=function(A){return A!=null?A:"STYLE_DEFAULT"};
_.d.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.pD(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.pD(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.d.onFocus=function(){var A=_.fJ().resolve(_.bu(_.L3));A&&A.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.d.scrollChipIntoView=function(){_.Bn(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Qr.Object.defineProperties(Vv.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Qo6({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Vv.prototype.onFocus=Vv.prototype.onFocus;Vv.prototype.onTap=Vv.prototype.onTap;Vv.prototype.dataChanged=Vv.prototype.dataChanged;_.E([_.I(_.oJ),_.c("design:type",Object)],Vv.prototype,"ironButtonState",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Vv.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Vv.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Hp),_.c("design:type",Object)],Vv.prototype,"ironA11yKeysBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Vv.prototype,"disableDeselectEvent",void 0);_.E([_.C(),_.c("design:type",Object)],Vv.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.icon"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Vv.prototype,"hasIcon",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data.uniqueId"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Vv.prototype,"isGnomeChip",null);_.E([_.C({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.c("design:type",String)],Vv.prototype,"chipStyle",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],Vv.prototype,"selected",void 0);
_.E([_.H("data","selected"),_.c("design:type",Object),_.c("design:paramtypes",[])],Vv.prototype,"chipShapeData",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vv.prototype,"dataChanged",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vv.prototype,"onTap",null);
_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vv.prototype,"onFocus",null);_.E([_.Ec({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Vv);
_.W(Vv,"yt-chip-cloud-chip-renderer",function(){if(AGL===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;m9Y===void 0&&(m9Y=document.createElement("template"));var f=m9Y;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);AGL=A}A=AGL;return A},{mode:2});var OR=function(){var A=_.q.apply(this,arguments)||this;A.isDarkTheme=!1;A.notSticky=!1;A.transparentBackground=!1;A.shouldHide=!1;A.disableSticky=!1;A.fluidWidth=!1;A.isClipList=!1;A.defaultChipIndex=0;A.isPlaylist=!1;A.playlistVotingAnimationEnabled=_.K("web_enable_voting_animation");A.toolbarHeight=0;A.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return A};
_.O(OR,_.q);_.d=OR.prototype;
_.d.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}}}}}};
_.d.attached=function(){var A=this;document.addEventListener("scroll",_.lN(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var Q;this.toolbarHeight=((Q=document.querySelector("ytd-masthead"))==null?void 0:Q.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(b){A.handleIntersect(b)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.d.detached=function(){var A;(A=this.intersectionObserver)==null||A.disconnect();var Q;(Q=this.resizeObserver)==null||Q.disconnect();document.removeEventListener("scroll",_.lN(this,this.updateChipBarWidthAndTop))};
_.d.dataChanged=function(){var A=this,Q,b,f;((f=_.V((Q=this.data)==null?void 0:(b=Q.contents)==null?void 0:b[0],jAj))==null?void 0:f.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var a=this.findSelectedChipIndex();this.selectedIndex!==a&&(this.selectedIndex=-1);_.mL(this,function(){A.selectedIndex=a;A.updating=!1;A.ytScrollableChipCloudBehavior.reset()})};
_.d.findSelectedChipIndex=function(){var A;if((A=this.data)==null||!A.contents)return 0;A=this.data.contents;for(var Q=0;Q<A.length;Q++){var b=void 0;if((b=_.V(A[Q],jAj))==null?0:b.isSelected)return Q}return 0};
_.d.computeStyle=function(A){return A};
_.d.handleChipCloudChipSelectAction=function(A){A=this.JSC$15944_chipsSelector.indexOf(A);A>-1&&this.JSC$15944_chipsSelector.selectIndex(A)};
_.d.handleChipCloudChipDeselectAction=function(){if(_.K("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],jAj))==null?void 0:b.navigationEndpoint;f&&_.pD(this.hostElement,"yt-browse-section-list-reload-endpoint",[f]);this.JSC$15944_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.d.onGuideIsExpandedChanged=function(){var A=this.ytScrollableChipCloudBehavior;_.mL(A,A.setContainerWidthDiff);JK(this.ytScrollableChipCloudBehavior)};
_.d.onResize=function(){var A=this.ytScrollableChipCloudBehavior;_.mL(A,A.setContainerWidthDiff);JK(this.ytScrollableChipCloudBehavior)};
_.d.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.d.handleIntersect=function(A){this.notSticky=this.isChannelPageGrid||this.disableSticky||A[0].intersectionRatio===1};
_.d.updateDimensions=function(){var A=this.ytRendererBehavior.parentComponent;if(A){var Q,b=(Q=A.headerElement)!=null?Q:A;_.Uc(this.hostElement,{"--ytd-rich-grid-chips-bar-width":b.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.d.updateSelectedIndexFromBinding=function(A){this.selectedIndex=A.detail.value};
_.d.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var A;(A=this.sortFilterHeaderRendererElement)==null||A.setAttribute("is-playlist-page-with-filters","")}};
_.d.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(SMj(!this.notSticky))};
_.Qr.Object.defineProperties(OR.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 A,Q,b=(A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q.find(function(f){return _.V(f,WrL)});
return{sortFilterHeaderRenderer:_.V(b,WrL)}}}});
OR.prototype.dispatchChipBarIsSticky=OR.prototype.dispatchChipBarIsSticky;OR.prototype.isPlaylistPageChanged=OR.prototype.isPlaylistPageChanged;OR.prototype.updateChipBarWidthAndTop=OR.prototype.updateChipBarWidthAndTop;OR.prototype.onResize=OR.prototype.onResize;OR.prototype.onGuideIsExpandedChanged=OR.prototype.onGuideIsExpandedChanged;OR.prototype.dataChanged=OR.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],OR.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.eI),_.c("design:type",Object)],OR.prototype,"ironResizableBehavior",void 0);_.E([_.I(),_.c("design:type",iZ)],OR.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],OR.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],OR.prototype,"data",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],OR.prototype,"selectedIndex",void 0);_.E([_.C({value:320}),_.c("design:type",Number)],OR.prototype,"scrollDistance",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"notSticky",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"transparentBackground",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.c("design:type",String)],OR.prototype,"componentStyle",void 0);_.E([_.C({selector:_.h5Y}),_.c("design:type",Boolean)],OR.prototype,"guideIsExpanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"shouldHide",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"disableSticky",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"fluidWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"isClipList",void 0);_.E([_.C(),_.c("design:type",Object)],OR.prototype,"defaultChipIndex",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OR.prototype,"isPlaylist",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],OR.prototype,"playlistVotingAnimationEnabled",void 0);_.E([_.V1("#chips"),_.c("design:type",Object)],OR.prototype,"JSC$15944_chipsSelector",void 0);_.E([_.V1("ytd-sort-filter-header-renderer"),_.c("design:type",HTMLElement)],OR.prototype,"sortFilterHeaderRendererElement",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],OR.prototype,"updating",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OR.prototype,"dataChanged",null);_.E([_.iN("guideIsExpanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OR.prototype,"onGuideIsExpandedChanged",null);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OR.prototype,"onResize",null);
_.E([_.I_("isChannelPageGrid","disableSticky","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OR.prototype,"updateChipBarWidthAndTop",null);_.E([_.H("componentStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OR.prototype,"isChannelPageGrid",null);_.E([_.H("componentStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OR.prototype,"isHashtagLandingPage",null);
_.E([_.iN("isPlaylistPage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OR.prototype,"isPlaylistPageChanged",null);_.E([_.H("componentStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OR.prototype,"isPlaylistPage",null);_.E([_.H("componentStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OR.prototype,"isDisableDeselectEvent",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],OR.prototype,"sortFilterHeaderRendererData",null);_.E([_.C({reflectToAttribute:!0,selector:_.w1J}),_.c("design:type",String)],OR.prototype,"frostedGlassMode",void 0);_.E([_.iN("notSticky"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OR.prototype,"dispatchChipBarIsSticky",null);_.E([_.h({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],OR);
_.W(OR,"ytd-feed-filter-chip-bar-renderer",function(){if(sv1!==void 0)return sv1;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return sv1=A},{mode:1});var aIM;var Tpr=_.aP(function(A){var Q=A.data;var b=A.buttonIndex;var f=A.selectedIndex;var a=A.onSelect;var T=function(){return b()===f()},G=function(){var p,P;
return(P=(p=Q().text)==null?void 0:p.content)!=null?P:""};
A=_.Zji();return _.X("yt-toggleable-image-button-view-model",{class:function(){var p={};p=(p["toggleable-image-button-view-model-wiz"]=!0,p[""]=!0,p["toggleable-image-button-view-model-wiz__semi-transparent"]=f()!==-1&&!T(),p);return _.nE(p)},
tabindex:0,"aria-label":G,"aria-pressed":T,role:"button","on:keydown":A,"on:click":_.IY(function(){a(Q().onSubmitCommand);return!1})},_.X(_.S,{cond:function(){return Q().logo},
then:function(p){return _.X(_.aY,{data:p,className:function(){var P={};P=(P["toggleable-image-button-view-model-wiz__image"]=!0,P["toggleable-image-button-view-model-wiz__circular-radius"]=!(!Q().backgroundColor||!Q().backgroundColorDarkMode),P["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(T()&&Q().backgroundColor&&Q().backgroundColorDarkMode),P);return _.nE(P)},
alt:G,useWidth:!1,style:function(){if(T()&&Q().backgroundColor&&Q().backgroundColorDarkMode){var P=uB(Number(Q().backgroundColorDarkMode),"1");var U=uB(Number(Q().backgroundColor),"1");P="background: linear-gradient(180deg,"+P+","+U+") border-box;"}else P="";return P}})}}),_.X(_.jl,{model:{borderRadius:"16px"}}),_.X("p",{class:function(){var p={};
p=(p["toggleable-image-button-view-model-wiz__label"]=!0,p["toggleable-image-button-view-model-wiz__bold-text"]=T(),p);return _.nE(p)}},_.X(_.Rb,{text:function(){return Q().text}})))},"Lb");
Tpr.idomCompat=!0;var FsL=_.aP(function(A){var Q=A.data;A=_.F(_.pz({index:-1,command:{}},void 0,"Zcqtsb"));var b=A.next().value,f=A.next().value;return _.X("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.X("div",{class:"nudge-form-view-model-wiz__form-options"},_.X(_.WL,{data:function(){return Q().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(a,T){return _.X(Tpr,{data:a.data,buttonIndex:T,selectedIndex:function(){return b().index},
onSelect:function(G){f({index:T(),command:G})}})}})),_.X(_.Rb,{text:function(){return Q().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.X("div",{class:"nudge-form-view-model-wiz__submit"},_.X(_.WL,{data:function(){return Q().submitButton}},{buttonViewModel:function(a){return _.X(dhM,{data:a.data,
isDisabled:function(){return b().index===-1},
onClick:function(){_.D3(b().command)}})}})))},"Mb");
FsL.idomCompat=!0;var dhM=_.aP(function(A){var Q=_.Lz(function(){return Object.assign({},A.data(),{state:A.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.X(_.J9,{data:Q,onClick:A.onClick})},"Nb");_.pE(FsL,"yt-nudge-form-view-model",{props:{data:_.Qf}});var n9=function(){var A=_.q.apply(this,arguments)||this;A.roundedContainer=!0;A.buttonUpdate=_.K("web_modern_buttons");A.isDarkMode=!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.O(n9,_.q);_.d=n9.prototype;_.d.computeNudgeStyle=function(A){return A?"modernized-nudge":""};
_.d.handleDarkModeToggledAction=function(A){this.isDarkMode=A};
_.d.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.d.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"}}}};
_.d.computeIsHorizontalButtons=function(A){return A?!!A.applyModernizedStyle&&!!A.enableHorizontalButtons&&!!A.secondaryButton:!1};
_.Qr.Object.defineProperties(n9.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=(A=this.data)==null?void 0:A.backgroundStyle)!=null?Q:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=(A=this.data)==null?void 0:A.contentsLocation)!=null?Q:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.lightIconImage)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],n9.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],n9.prototype,"actionHandlerBehavior",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("isHideEnclosingAction"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],n9.prototype,"isHidden",null);_.E([_.C(),_.c("design:type",Object)],n9.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],n9.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],n9.prototype,"buttonUpdate",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.c("design:type",String)],n9.prototype,"nudgeStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.trimStyle"),_.c("design:type",String),_.c("design:paramtypes",[])],n9.prototype,"trimStyle",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.backgroundStyle"),_.c("design:type",String),_.c("design:paramtypes",[])],n9.prototype,"backgroundStyle",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data.contentsLocation"),_.c("design:type",String),_.c("design:paramtypes",[])],n9.prototype,"contentsLocation",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.disableDropShadow"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],n9.prototype,"noShadow",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.lightIconImage"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],n9.prototype,"noIcon",null);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.c("design:type",Boolean)],n9.prototype,"isHorizontalButtons",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Object)],n9.prototype,"isDarkMode",void 0);_.E([_.h({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],n9);
_.W(n9,"ytd-feed-nudge-renderer",function(){if(aIM!==void 0)return aIM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return aIM=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var GRy;var Bp$;var kI=function(){var A=_.q.apply(this,arguments)||this;A.collapsed=!1;A.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return A};
_.O(kI,_.q);kI.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"}}}};
kI.prototype.handleRatingSelect=function(){var A;((A=this.data)==null?0:A.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
kI.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],kI.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],kI.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.wS),_.c("design:type",Object)],kI.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],kI.prototype,"collapsed",void 0);_.E([_.h({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],kI);
_.W(kI,"ytd-slimline-survey-renderer",function(){if(Bp$!==void 0)return Bp$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Bp$=A},{mode:1});var ps9;var IK=function(){return _.q.apply(this,arguments)||this};
_.O(IK,_.q);IK.prototype.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
IK.prototype.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A&&(A==null?0:A.secondaryTitleColor)&&this.maybeGetBackgroundColor(A)?(this.hostElement.style.backgroundColor=_.zx(this.maybeGetBackgroundColor(A)),this.hostElement.style.color=_.zx(A.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
IK.prototype.colorPaletteChanged=IK.prototype.colorPaletteChanged;_.E([_.I(_.cb),_.c("design:type",Object)],IK.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],IK.prototype,"data",void 0);_.E([_.C({selector:function(A){return A.ui.darkModeIsEnabled}}),
_.c("design:type",Boolean)],IK.prototype,"isDarkMode",void 0);_.E([_.C(),_.c("design:type",Object)],IK.prototype,"lightColorPalette",void 0);_.E([_.C(),_.c("design:type",Object)],IK.prototype,"darkColorPalette",void 0);_.E([_.iN("darkColorPalette","lightColorPalette","data","isDarkMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],IK.prototype,"colorPaletteChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],IK);
_.W(IK,"ytd-endorsement-header-renderer",function(){if(ps9!==void 0)return ps9;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ps9=A},{mode:1});_.pE(_.E9,"yt-decorated-avatar-view-model",{props:{data:_.Qf,className:_.Qf}});_.Hg=new _.TS("VIEW_TRANSITION_MANAGER_TOKEN");var C9=function(){var A=_.q.apply(this,arguments)||this;A.fullHeight=_.K("web_rich_grid_media_full_height");A.showChannelAvatar=!0;A.hasPlaylistThumbnail=!1;A.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};A.registerThumbnailForPageTransition=function(){_.K("web_thumbnail_to_watch_transition")&&_.PoL(_.fJ().resolve(_.Hg),A.thumbnail)};
return A};
_.O(C9,_.q);_.d=C9.prototype;
_.d.configureRendererStamper=function(){return{lazyLoadMenu:n_,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"}}}};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.shouldLazyLoadMenu=function(){var A=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.K("kevlar_modern_downloads_page")||!A};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15969_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:this.JSC$15969_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.d.getVideoPreviewOpts=function(){var A={},Q;if((Q=this.data)==null?0:Q.multipleInlinePlaybackEndpoint)A=fdr;this.isRadio&&(A=bxj);return A};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15969_inlinePreviewHoverListener)==null||f7(A)};
_.d.getOwner=function(){var A,Q,b;return((A=this.data)==null?void 0:(Q=A.channelThumbnailSupportedRenderers)==null?void 0:Q.channelThumbnailWithLinkRenderer)||_.V((b=this.data)==null?void 0:b.showProviderChannelThumbnail,p2p)};
_.d.updateLockupSize=function(){var A;((A=this.getOwner())==null?0:A.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.d.getFeedbackEndpoint=function(A){if(_.V(A,_.WZ))return A;var Q,b;A=(b=(Q=_.V(A,_.LD))==null?void 0:Q.commands)!=null?b:[];Q=_.F(A);for(b=Q.next();!b.done;b=Q.next())if(b=this.getFeedbackEndpoint(b.value))return b;return null};
_.d.computeNavigationEndpoint=function(A){return zty(A==null?void 0:A.navigationEndpoint)};
_.d.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var A=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(A)!==JSON.stringify(this.data)&&this.set("data",A)}};
_.d.onDataChanged=function(){var A=this,Q=this.getOwner();if(Q){this.set("data.owner",Q);var b,f,a,T,G,p=((b=this.data)==null?void 0:(f=b.shortBylineText)==null?void 0:(a=f.runs)==null?void 0:(T=a[0])==null?void 0:T.text)||((G=Q.name)==null?void 0:G.simpleText);this.set("data.owner.title",p)}var P,U,L,M,l,J;Q=((P=this.data)==null?void 0:(U=P.thumbnailRenderer)==null?void 0:U.playlistVideoThumbnailRenderer)||((L=this.data)==null?void 0:(M=L.thumbnailRenderer)==null?void 0:M.playlistCustomThumbnailRenderer)||
((l=this.data)==null?void 0:(J=l.thumbnailRenderer)==null?void 0:J.showCustomThumbnailRenderer);var n;((n=this.data)==null?0:n.thumbnail)||!Q||this.set("data.thumbnail",Q.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){A.updateLockupSize()});
var t;if(P=((t=this.data)==null?void 0:t.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(P);var g;((g=this.dismissActionToReplayEntity)==null?0:g.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.d.onHiddenChanged=function(){this.updateLockupSize()};
_.d.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.pD(this.hostElement,"yt-terminate-video-preview-action");else{var A;(A=this.videoTitleLink)==null||A.focus()}};
_.d.metadataColorChanged=function(){var A;if(this.metadataColor&&((A=this.videoTitle)==null?0:A.style))this.videoTitle.style.color=_.zx(this.metadataColor);else{var Q,b;!this.metadataColor&&((Q=this.videoTitle)==null?0:(b=Q.style)==null?0:b.color)&&(this.videoTitle.style.color="")}};
_.d.onDetailsClick=function(A){var Q=this.computedNavigationEndpoint;Q&&(_.TG(_.mW(A),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Bn(this.hostElement,"yt-navigate",{endpoint:Q}))};
_.d.onRendererTap=function(){this.registerThumbnailForPageTransition();var A,Q,b=((A=this.data)==null?void 0:A.serviceEndpoint)||this.getFeedbackEndpoint((Q=this.data)==null?void 0:Q.navigationEndpoint);b&&_.V(b,_.WZ)&&this.ytComponentBehavior.resolveCommand(b)};
_.d.onMouseDown=function(A){var Q=A.target,b=this.computedNavigationEndpoint,f;A=Q.href||((f=_.V(b==null?void 0:b.commandMetadata,_.KD))==null?void 0:f.url);f=Q.data||b;A&&f&&NXi(A,f)};
_.d.computeVideoTitleText=function(){var A;if((A=this.data)==null?0:A.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.d.computeHasPlaylistThumbnail=function(A){var Q,b,f,a,T;if((((Q=A.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((b=A.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer)||((f=A.thumbnailRenderer)==null?0:f.showCustomThumbnailRenderer)||((a=A.thumbnailRenderer)==null?0:a.playlistVideoThumbnailRenderer)||((T=A.thumbnailRenderer)==null?0:T.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(Q=0;Q<A.thumbnailOverlays.length;Q++)if(b=void 0,(b=A.thumbnailOverlays[Q])==
null?0:b.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Qr.Object.defineProperties(C9.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.K("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15969_inlinePreviewHoverListener)==null?0:ww(A))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.VK(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:A.videoId)||((Q=this.data)==null?void 0:Q.playlistId)||""}}});
C9.prototype.onMouseDown=C9.prototype.onMouseDown;C9.prototype.metadataColorChanged=C9.prototype.metadataColorChanged;C9.prototype.onIsDismissedChanged=C9.prototype.onIsDismissedChanged;C9.prototype.onHiddenChanged=C9.prototype.onHiddenChanged;C9.prototype.onDataChanged=C9.prototype.onDataChanged;C9.prototype.handleReloadDownloadsInfo=C9.prototype.handleReloadDownloadsInfo;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],C9.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],C9.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],C9.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],C9.prototype,"entitySelectorType",void 0);_.E([_.C(),_.c("design:type",Boolean)],C9.prototype,"noEndpoints",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],C9.prototype,"isRadio",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],C9.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],C9.prototype,"fullHeight",void 0);
_.E([_.C(),_.c("design:type",Boolean)],C9.prototype,"showDarkVideoMetadata",void 0);_.E([_.C(),_.c("design:type",Boolean)],C9.prototype,"showLightVideoMetadata",void 0);_.E([_.C(),_.c("design:type",Number)],C9.prototype,"metadataColor",void 0);_.E([_.C(),_.c("design:type",Object)],C9.prototype,"showChannelAvatar",void 0);_.E([_.C(),_.c("design:type",Boolean)],C9.prototype,"hidden",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],C9.prototype,"showYtInteraction",void 0);
_.E([_.C(),_.c("design:type",String)],C9.prototype,"dismissedContentId",void 0);_.E([_.C({selectorArgs:["dismissedContentId"],selector:zPA}),_.c("design:type",Object)],C9.prototype,"dismissActionToReplayEntity",void 0);
_.E([_.C({selectorArgs:["entitySelectorType","mediaId"],selector:function(A,Q,b){if(_.K("kevlar_modern_downloads_page")&&b&&Q&&Q!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Q){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var f=YZU(A,b);if(f){Q=_.xL(A,b);var a=z7(A,b),T=dOY(A,b);A=ws(A,b);var G=hGb(f,Q,a,T);a=G.shortViewCountText;var p=G.publishedTimeText;G=G.badges;var P=A>0;T=g3A(f,Q,T,A);f=_.IX(Q)||Q==="TRANSFER_STATE_FAILED"||Q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kL(f.policyEntity)?
void 0:xX9(b,A,f.videoEntity.lengthSeconds);Q==="TRANSFER_STATE_PAUSED_BY_USER"&&b&&!_.K("dl_resume_click_killswitch")&&(f={offlineVideoEndpoint:{videoId:b,action:"ACTION_RESUME"}});b={shortViewCountText:a,publishedTimeText:p,badges:G,isWatched:P,navigationEndpoint:f,thumbnailOverlays:T}}else b=void 0;return b;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(Q=Dke(A,b))if(f=_.cO(A,b),T=_.$kX(A,b),f!=="TRANSFER_STATE_UNKNOWN"){b=eGy(Q,f,T,b,_.Er(A));break a}b=void 0}return b;default:_.Wv(new _.IO("Error: entitySelectorType defined but not matched in selector.",
A,Q))}}}),
_.c("design:type",Object)],C9.prototype,"entityDrivenState",void 0);_.E([_.C({computed:"computeVideoTitleText(data)"}),_.c("design:type",Object)],C9.prototype,"videoTitleText",void 0);_.E([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.c("design:type",Object)],C9.prototype,"hasPlaylistThumbnail",void 0);_.E([_.C({computed:"computeNavigationEndpoint(data)"}),_.c("design:type",Object)],C9.prototype,"computedNavigationEndpoint",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],C9.prototype,"typographyBump",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("typographyBump"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],C9.prototype,"typographyBumpV2",null);_.E([_.V1("#video-title"),_.c("design:type",HTMLElement)],C9.prototype,"videoTitle",void 0);_.E([_.V1("#video-title-link"),_.c("design:type",HTMLElement)],C9.prototype,"videoTitleLink",void 0);
_.E([_.V1("#thumbnail"),_.c("design:type",HTMLElement)],C9.prototype,"thumbnail",void 0);_.E([_.V1("#dismissible"),_.c("design:type",HTMLElement)],C9.prototype,"JSC$15969_dismissibleMedia",void 0);_.E([_.H("data.menu"),_.c("design:type",Object),_.c("design:paramtypes",[])],C9.prototype,"lazyLoadMenu",null);_.E([_.H("data.menu"),_.c("design:type",Object),_.c("design:paramtypes",[])],C9.prototype,"immediateLoadMenu",null);
_.E([_.I_("entityDrivenState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C9.prototype,"handleReloadDownloadsInfo",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C9.prototype,"onDataChanged",null);_.E([_.I_("hidden"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C9.prototype,"onHiddenChanged",null);
_.E([_.iN("isDismissed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C9.prototype,"onIsDismissedChanged",null);_.E([_.iN("metadataColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],C9.prototype,"metadataColorChanged",null);_.E([_.Kc("mousedown"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],C9.prototype,"onMouseDown",null);
_.E([_.H("lockupIsHovered"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],C9.prototype,"isHovered",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],C9.prototype,"useAvatar",null);_.E([_.H("data","entitySelectorType"),_.c("design:type",String),_.c("design:paramtypes",[])],C9.prototype,"mediaId",null);_.E([_.h({is:"ytd-rich-grid-media",disableElementRegistration:!0})],C9);
var Xsx=_.SM()(C9,"ytd-rich-grid-media",function(){if(GRy!==void 0)return GRy;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return GRy=A},{mode:_.UG("kevlar_poly_si_batch_j072")?1:2});var Sd9;var qE=function(){var A=_.q.apply(this,arguments)||this;A.removeMaxWidth=!0;A.insetMetadata=!1;return A};
_.O(qE,_.q);_.d=qE.prototype;_.d.configureRendererStamper=function(){return{innerMenu:n_,outerMenu:Object.assign({},n_,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.onDataChanged=function(){var A,Q=((A=this.data)==null?void 0:A.trackingParams)||"";Q&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Q));var b;((b=this.dismissActionToReplayEntity)==null?0:b.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$15974_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:this.JSC$15974_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:adK})};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15974_inlinePreviewHoverListener)==null||f7(A)};
_.d.onRendererTap=function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.serviceEndpoints)==null?void 0:Q[0];_.V(b,_.WZ)&&this.componentBehavior.resolveCommand(b)};
_.d.onDetailsClick=function(A){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint;b&&(_.TG(_.mW(A),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(b))};
_.d.onShow=function(){var A=this.data;A.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(A.onFirstVisibleCommand),delete A.onFirstVisibleCommand)};
_.Qr.Object.defineProperties(qE.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?void 0:(A=this.data)==null?void 0:A.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?(A=this.data)==null?void 0:A.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var A=this.data;if(A!=null&&A.badge&&(A=_.V(A.badge,I6M))){var Q,b,f;return[{metadataBadgeRenderer:{label:((Q=A.label)==null?void 0:(b=Q.runs)==null?void 0:b[0].text)||((f=A.label)==null?void 0:f.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var A=this.data;return Object.assign({},A.headline,{accessibility:A.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return this.isSlimShort?(A=this.computedTitle)==null?void 0:(Q=A.accessibility)==null?void 0:(b=Q.accessibilityData)==null?void 0:b.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.K("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15974_inlinePreviewHoverListener)==null?0:ww(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
qE.prototype.onDataChanged=qE.prototype.onDataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],qE.prototype,"componentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],qE.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qE.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.wS),_.c("design:type",Object)],qE.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],qE.prototype,"ytdReduxBehavior",void 0);_.E([_.V1("ytd-thumbnail"),_.c("design:type",HTMLElement)],qE.prototype,"thumbnail",void 0);_.E([_.V1("#dismissible"),_.c("design:type",HTMLElement)],qE.prototype,"JSC$15974_dismissibleMedia",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],qE.prototype,"removeMaxWidth",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],qE.prototype,"insetMetadata",void 0);_.E([_.C(),_.c("design:type",String)],qE.prototype,"dismissedContentId",void 0);_.E([_.C({selectorArgs:["dismissedContentId"],selector:zPA}),_.c("design:type",Object)],qE.prototype,"dismissActionToReplayEntity",void 0);_.E([_.H("insetMetadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],qE.prototype,"thumbnailObjectFit",null);
_.E([_.H("data","insetMetadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],qE.prototype,"innerMenu",null);_.E([_.H("data","insetMetadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],qE.prototype,"outerMenu",null);_.E([_.C(),_.c("design:type",Object)],qE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],qE.prototype,"miniMode",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],qE.prototype,"onDataChanged",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],qE.prototype,"shortsBadges",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],qE.prototype,"isShort",null);
_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],qE.prototype,"isSlimShort",null);_.E([_.H("data","isShort"),_.c("design:type",Object),_.c("design:paramtypes",[])],qE.prototype,"computedTitle",null);_.E([_.H("isSlimShort","computedTitle"),_.c("design:type",Object),_.c("design:paramtypes",[])],qE.prototype,"computedAccessibilityLabel",null);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],qE.prototype,"shouldForce2By3",null);_.E([_.H("lockupIsHovered"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],qE.prototype,"isHovered",null);_.E([_.h({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],qE);
_.W(qE,"ytd-rich-grid-slim-media",function(){if(Sd9!==void 0)return Sd9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Sd9=A},{mode:_.UG("kevlar_poly_si_batch_j063")?1:2});var Uhp;var LsL;var oK=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(oK,_.q);oK.prototype.computeIcon=function(A){return A&&A.iconType?"yt-sys-icons:"+A.iconType.toLowerCase():""};
oK.prototype.onMouseEnter=function(){this.isHovered=!0};
oK.prototype.onMouseLeave=function(){this.isHovered=!1};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],oK.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],oK.prototype,"isHovered",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],oK.prototype,"darkerDarkTheme",void 0);_.E([_.h({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],oK);
_.W(oK,"ytd-expand-on-hover-card-renderer",function(){if(LsL!==void 0)return LsL;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return LsL=A},{mode:1});var MDp,lIr=function(){if(MDp!==void 0)return MDp;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return MDp=A};_.xo("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var tK=function(){var A=_.q.apply(this,arguments)||this;A.compactStyle=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(tK,_.q);_.d=tK.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.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"}}}};
_.d.computeHideDot=function(A){return!(A&&A.subscriberCountText&&A.videoCountText)||this.compactStyle};
_.d.hasDualButtons=function(A){return A&&A.purchaseButton&&A.subscribeButton};
_.d.backgroundColorChanged=function(){if(this.data!==void 0){var A=this.data.backgroundColor;this.isDarkTheme&&(A=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=A!=null?_.zx(A):"transparent"}};
_.d.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.onTap=function(A){var Q,b,f=((Q=this.data)==null?void 0:Q.navigationEndpoint)||((b=this.data)==null?void 0:b.serviceEndpoint);_.V(f,_.Tk)&&(f&&_.fJ().resolve(_.de).resolveCommand(f,{form:{element:this.hostElement}}),A.preventDefault())};
_.d.computeChannelEndpoint=function(A){return _.V(A,_.Tk)?null:A};
_.d.computeHrefEndpoint=function(A){return _.V(A,_.Tk)?null:this.componentBehavior.computeHref_(A)};
_.d.computeChannelRendererStyle=function(A){return A};
_.d.computeIconSize=function(A){return A?108:136};
_.Qr.Object.defineProperties(tK,{template:{configurable:!0,enumerable:!0,get:function(){return lIr()}}});
tK.prototype.backgroundColorChanged=tK.prototype.backgroundColorChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],tK.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],tK.prototype,"componentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],tK.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],tK.prototype,"isDarkTheme",void 0);_.E([_.C({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.c("design:type",String)],tK.prototype,"channelRendererStyle",void 0);_.E([_.C({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],tK.prototype,"dualButtons",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.c("design:type",Boolean)],tK.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],tK.prototype,"biggerThumbStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],tK.prototype,"compactStyle",void 0);_.E([_.iN("data","isDarkTheme"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],tK.prototype,"backgroundColorChanged",null);_.E([_.h({is:"ytd-channel-renderer",disableElementRegistration:!0})],tK);_.W(tK,"ytd-channel-renderer",function(){return lIr()},{mode:1});var Ksr;var iyx;_.xo("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var rt=function(){var A=_.q.apply(this,arguments)||this;A.displayItemCount=2;A.collections=_.K("web_modern_collections_v2");A.hasPlaylistThumbnail=!1;A.stackThumbnailSize="large";return A};
_.O(rt,_.q);_.d=rt.prototype;_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.d.computeFirstVideos=function(A,Q){return A&&Q?A.slice(0,Q):[]};
_.d.computeThumbnailWidth=function(A,Q){return A?Q==="BIG"?500:Q==="MASSIVE"?600:Q==="MEDIUM"?450:420:360};
_.d.computeThumbnailHeight=function(A,Q){return A?Q==="BIG"?280:Q==="MASSIVE"?337:234:202};
_.d.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15987_inlinePreviewHoverListener)==null||f7(A)};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15987_inlinePreviewHoverListener=Ys({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:fdr,thumbnailElement:this.thumbnail})};
_.d.computeHasPlaylistThumbnail=function(A){var Q,b;if((((Q=A.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((b=A.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(Q=0;Q<A.thumbnailOverlays.length;Q++)if(b=void 0,(b=A.thumbnailOverlays[Q])==null?0:b.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Qr.Object.defineProperties(rt.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15987_inlinePreviewHoverListener)==null?0:ww(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
rt.prototype.dataChanged=rt.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],rt.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rt.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],rt.prototype,"displayItemCount",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.c("design:type",Boolean)],rt.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],rt.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],rt.prototype,"collections",void 0);_.E([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.c("design:type",Object)],rt.prototype,"hasPlaylistThumbnail",void 0);_.E([_.C(),_.c("design:type",String)],rt.prototype,"stackThumbnailSize",void 0);_.E([_.V1("ytd-thumbnail"),_.c("design:type",HTMLElement)],rt.prototype,"thumbnail",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rt.prototype,"dataChanged",null);_.E([_.H("lockupIsHovered"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],rt.prototype,"isHovered",null);_.E([_.h({is:"ytd-radio-renderer",disableElementRegistration:!0})],rt);
_.W(rt,"ytd-radio-renderer",function(){if(iyx!==void 0)return iyx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return iyx=A},{mode:_.UG("kevlar_poly_si_batch_j058")?1:2});var JGY;_.xo("itemSectionRenderer","showRenderer","ytd-show-renderer");var jk=function(){return _.q.apply(this,arguments)||this};
_.O(jk,_.q);jk.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
jk.prototype.computeThumbnailWidth=function(A){return A?360:246};
jk.prototype.computeUseProminentThumbs=function(A){return A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jk.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],jk.prototype,"isSearch",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.c("design:type",Boolean)],jk.prototype,"useProminentThumbs",void 0);_.E([_.h({is:"ytd-show-renderer",disableElementRegistration:!0})],jk);
_.W(jk,"ytd-show-renderer",function(){if(JGY!==void 0)return JGY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return JGY=A},{mode:1});_.xo("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var RK=function(){var A=_.q.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.O(RK,_.q);RK.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],RK.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],RK.prototype,"isRichGrid",void 0);_.E([_.h({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],RK);
_.W(RK,"ytd-feed-entry-renderer",function(){if(Ksr!==void 0)return Ksr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Ksr=A},{mode:1});var VDN;var gt=function(){return _.q.apply(this,arguments)||this};
_.O(gt,_.q);gt.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.E([_.I(_.cb),_.c("design:type",Object)],gt.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gt.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.hH,value:3}),_.c("design:type",Number)],gt.prototype,"itemsPerRow",void 0);
_.E([_.h({is:"ytd-link-card-renderer",disableElementRegistration:!0})],gt);
_.W(gt,"ytd-link-card-renderer",function(){if(VDN!==void 0)return VDN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return VDN=A},{mode:1});var OyM;var ek=function(){return _.q.apply(this,arguments)||this};
_.O(ek,_.q);_.d=ek.prototype;_.d.configureRendererStamper=function(){return{"data.menu":n_,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.onRendererTap=function(A){if(!this.ytdDismissibleItemBehavior.isDismissed){var Q,b=(Q=this.data)==null?void 0:Q.navigationEndpoint;b&&!_.TG(_.mW(A),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(b)?_.TG(_.mW(A),this.hostElement,["A"])||_.Bn(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b,{}))}};
_.d.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.d.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
_.d.isNavigationCommand=function(A){return A?_.V(A,_.nT)||_.V(A,_.sv)||_.V(A,_.y_)?!0:!1:!1};
ek.prototype.onRendererTap=ek.prototype.onRendererTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],ek.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ek.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],ek.prototype,"data",void 0);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ek.prototype,"onRendererTap",null);_.E([_.h({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],ek);
_.W(ek,"ytd-lumiere-promo-item-image-renderer",function(){if(OyM!==void 0)return OyM;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return OyM=A},{mode:1});var nFj;var hK=function(){return _.q.apply(this,arguments)||this};
_.O(hK,_.q);hK.prototype.computeLandscapeThumbnail=function(){var A;return((A=this.data)==null?void 0:A.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],hK.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],hK.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],hK.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.hH}),_.c("design:type",Number)],hK.prototype,"itemsPerRow",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.c("design:type",Boolean)],hK.prototype,"landscapeThumbnail",void 0);_.E([_.h({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],hK);
_.W(hK,"ytd-lumiere-shelf-details-renderer",function(){if(nFj!==void 0)return nFj;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return nFj=A},{mode:_.UG("kevlar_poly_si_batch_j076")?1:2});var kRj;var Wg=function(){return _.q.apply(this,arguments)||this};
_.O(Wg,_.q);Wg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Wg.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Wg.prototype,"data",void 0);_.E([_.h({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Wg);
_.W(Wg,"ytd-primetime-promo-details-renderer",function(){if(kRj!==void 0)return kRj;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return kRj=A},{mode:1});var IIr;var vg=function(){return _.q.apply(this,arguments)||this};
_.O(vg,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],vg.prototype,"data",void 0);_.E([_.h({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],vg);
_.W(vg,"ytd-panel-show-style-metadata-renderer",function(){if(IIr!==void 0)return IIr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return IIr=A},{mode:1});var HyW;var ER=function(){return _.q.apply(this,arguments)||this};
_.O(ER,_.q);_.d=ER.prototype;_.d.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.d.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.d.computeThumbnail=function(A){if(A)return A.smallFormFactorBackgroundThumbnail||A.largeFormFactorBackgroundThumbnail};
_.d.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.d.isNavigationCommand=function(A){return A?_.V(A,_.nT)||_.V(A,_.sv)||_.V(A,_.y_)?!0:!1:!1};
_.d.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
ER.prototype.onPanelTap=ER.prototype.onPanelTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ER.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ER.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],ER.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0,value:_.K("web_modern_buttons")}),_.c("design:type",Boolean)],ER.prototype,"modernButtons",void 0);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ER.prototype,"onPanelTap",null);_.E([_.h({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],ER);
_.W(ER,"ytd-primetime-promo-panel-renderer",function(){if(HyW!==void 0)return HyW;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return HyW=A},{mode:1});_.pE(_.aP(function(A){A=_.be(A,{data:{},useFullWidth:!1});var Q=A.data,b=A.useFullWidth;A={};return _.X("teaser-card-view-model",{class:_.O4("ytTeaserCardViewModelHost",(A.ytTeaserCardViewModelUseFullWidth=function(){return b()},A))},_.X(_.S,{cond:function(){return Q().onTap},
then:function(f){return _.X(_.Db,{className:"ytTeaserCardViewModelLink",command:f},_.X("div",{class:"ytTeaserCardViewModelImageContainer"},_.X(_.S,{cond:function(){return Q().image},
then:function(a){return _.X(_.aY,{data:a,className:"ytTeaserCardViewModelImage",alt:""})}})),_.X("p",{class:"ytTeaserCardViewModelCaption"},function(){return Q().caption}))}}))},"Ob"),"teaser-card-view-model",{props:{data:_.Qf,
useFullWidth:_.Qf}});var Cov=new _.TS("RICH_GRID_VIDEO_RENDERER_TOKEN");_.pE(_.aP(function(A){var Q=A.data;var b=A.showYtInteractionInContent;var f=function(){return!!Q().selectableFeedback};
A=_.F(_.pz(!1,void 0,"nblDw"));var a=A.next().value,T=A.next().value;_.tz(function(){var l=_.V(Q().primaryButton,_.R$);(l==null?0:l.isToggled)&&T(l.isToggled)});
A=_.IY(function(l){if(!f())return!1;if(a()){var J;var n=(J=Q().selectableFeedback)==null?void 0:J.onDeselect}else{var t;n=(t=Q().selectableFeedback)==null?void 0:t.onSelect}n&&_.D3(n,{form:{element:l.target}});T(!a());if(l=_.V(Q().primaryButton,_.R$))l.isToggled=a();return!1});
var G=function(){if(!f()){var l,J=(l=Q().loggingDirectives)==null?void 0:l.trackingParams;J&&_.JY(_.fJ().resolve(_.gu),J)}},p=_.ye4(),P=function(){var l;
return f()?(l=Q().selectableFeedback)==null?void 0:l.a11yLabel:void 0},U=function(){return f()?{toggled:a()}:{}},L=_.fJ().resolve(_.bu(Cov)),M={};
return _.X("yt-feedback-item-renderer",{class:_.O4("ytFeedbackItemRendererHost",(M.ytFeedbackItemRendererSelectableFeedback=f,M)),"on:click":A,"on:keydown":p,title:P,"aria-label":P,"aria-pressed":function(){return f()?a():void 0},
tabindex:function(){return f()?0:void 0},
role:function(){return f()?"button":void 0}},_.X("div",{class:"ytFeedbackItemRendererContentContainer"},_.X(_.WL,{data:function(){return Q().content}},{videoRenderer:function(l){return _.X(L,{data:l.data,
showYtInteraction:b})},
lockupViewModel:function(l){return _.X(_.K8,{data:l.data,containerType:2})}})),_.X("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.X(_.WL,{data:function(){return Q().primaryButton}},{toggleButtonViewModel:function(l){return _.X(_.eq,{data:l.data,
buttonShapeOverrides:U,disableExplicitClickLogging:!0,onToggle:G})}})))},"Pb"),"yt-feedback-item-renderer",{props:{data:_.Qf,
showYtInteractionInContent:_.Qf}});var xI=function(){var A=_.q.apply(this,arguments)||this;A.isShortsGrid=!1;A.isCompactGrid=!1;A.isShortsPanelGrid=!1;A.renderedFromRichGrid=!1;A.isInFirstColumn=!1;A.noGutterMargins=!1;A.isInlineGroupItem=!1;A.insetMetadata=!1;A.noBottomMarginInAds=!0;A.force16By9ThumbnailAspectRatio=!1;A.useCompactList=!1;A.containerType=2;A.thumbnailTargetWidth=9999;A.isResponsiveGrid=!1;A.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};A.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};
A.hoverListener=A.hover.bind(A);A.leaveListener=A.leave.bind(A);A.highlighted=!1;A.JSC$16022_unsubscribeFromInlinePreviewIsActive=function(){};
return A};
_.O(xI,_.q);_.d=xI.prototype;_.d.computeContainerType=function(){return this.useCompactList?3:2};
_.d.computeThumbnailTargetWidth=function(){var A;return(A=this.itemWidth)!=null?A:9999};
_.d.updateIsInFirstColumn=function(){var A;this.isInFirstColumn=((A=this.data)==null?void 0:A.colIndex)===0};
_.d.observerContainerType=function(){if(this.lockup){var A=this.lockup;A.containerType=this.containerType;A.sizing=this.sizing;A.typographyBump=this.typographyBump;A.itemWidth=this.itemWidth}this.richGridMedia&&_.K("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.K("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.d.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]]"}}}}}};
_.d.leave=function(A){A=A.relatedTarget;var Q=document.querySelector("ytd-video-preview");A&&Q&&_.pc(Q).contains(A)||this.removeAndCleanupHighlight()};
_.d.hover=function(){var A;if(!this.highlighted&&(!_.K("web_enable_rich_item_on_focus_effect")||(A=this.data)!=null&&A.onFocusEffect)){var Q,b;((Q=this.data)==null?void 0:(b=Q.onFocusEffect)==null?void 0:b.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(A=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:A,boxShadow:"0 0 0 10px "+A}));var f,a;((f=this.data)==null?void 0:(a=f.onFocusEffect)==null?void 0:
a.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.d.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};
_.d.registerHoverHighlightListeners=function(){var A=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16022_unsubscribeFromInlinePreviewIsActive=_.H1(_.QK(),_.xkF,function(Q){A.highlighted&&!Q&&A.removeAndCleanupHighlight()})};
_.d.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16022_unsubscribeFromInlinePreviewIsActive()};
_.d.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.d.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.d.getBackgroundColor=function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.onFocusEffect)==null?void 0:Q.onFocusColor;if(b){if(document.documentElement.hasAttribute("dark")&&(b==null?0:b.darkTheme))return _.zx(b==null?void 0:b.darkTheme);if(b==null?0:b.lightTheme)return _.zx(b==null?void 0:b.lightTheme)}};
_.d.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var A=_.WR(),Q,b,f;A&&((Q=this.data)==null?0:Q.trackingParams)&&((b=this.data)==null?void 0:b.colIndex)!=null&&((f=this.data)==null?void 0:f.rowIndex)!=null&&_.sl(A,_.t8(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.d.isSlimMediaRenderer=function(A){return!!_.V(A==null?void 0:A.content,_.bbM)||!!_.V(A==null?void 0:A.content,QJL)||!!_.V(A==null?void 0:A.content,_.zc)||!!_.V(A==null?void 0:A.content,OYp)};
_.d.isPostRenderer=function(){var A,Q;return!!_.V((A=this.data)==null?void 0:A.content,YJr)||!!_.V((Q=this.data)==null?void 0:Q.content,D_L)};
_.d.computeIsGameCardShelf=function(){var A;return!!_.V((A=this.data)==null?void 0:A.content,TPW)};
_.d.computeIsMiniGameCardShelf=function(){var A,Q;return!!_.V((A=this.data)==null?void 0:A.content,iU$)||!!_.V((Q=this.data)==null?void 0:Q.content,JVL)};
_.d.computeIsTeaserCard=function(){var A;return!!_.V((A=this.data)==null?void 0:A.content,JVL)};
_.d.computeIsSelectableFeedbackItem=function(){var A,Q;return!((Q=_.V((A=this.data)==null?void 0:A.content,_.OUL))==null||!Q.selectableFeedback)};
_.d.computeContainsLumierePosters=function(){var A,Q;return((Q=_.V((A=this.data)==null?void 0:A.content,TrL))==null?void 0:Q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.d.computeIsExpandOnHoverCardShelf=function(){var A;return!!_.V((A=this.data)==null?void 0:A.content,a7$)};
_.d.computeIsLinkCardShelf=function(){var A;return!!_.V((A=this.data)==null?void 0:A.content,r9j)};
_.d.computeIsReelItemStyleAvatarCircle=function(A){var Q;return((Q=_.V(A==null?void 0:A.content,_.zc))==null?void 0:Q.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.d.computeIsLinkCardFullWidth=function(A,Q){var b;return((b=_.V(A==null?void 0:A.content,r9j))==null?void 0:b.useFullWidth)||Q<=2};
_.Qr.Object.defineProperties(xI.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.K("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.K("web_enable_rich_item_on_focus_effect")||_.K("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}}});
xI.prototype.richGridHoverHighlightChanged=xI.prototype.richGridHoverHighlightChanged;xI.prototype.observerContainerType=xI.prototype.observerContainerType;xI.prototype.updateIsInFirstColumn=xI.prototype.updateIsInFirstColumn;_.E([_.I(_.cb),_.c("design:type",Object)],xI.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],xI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],xI.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.c("design:type",Boolean)],xI.prototype,"isPost",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.c("design:type",Boolean)],xI.prototype,"containsLumierePosters",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.c("design:type",Boolean)],xI.prototype,"isSlimMedia",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.c("design:type",Boolean)],xI.prototype,"isGameCardShelf",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.c("design:type",Boolean)],xI.prototype,"isMiniGameCardShelf",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.c("design:type",Boolean)],xI.prototype,"isTeaserCard",void 0);_.E([_.C({computed:"computeIsSelectableFeedbackItem(data)"}),_.c("design:type",Boolean)],xI.prototype,"isSelectableFeedbackItem",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"isShortsGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],xI.prototype,"isSlimGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"isCompactGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"isShortsPanelGrid",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.c("design:type",Boolean)],xI.prototype,"isExpandOnHoverCardShelf",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.c("design:type",Boolean)],xI.prototype,"isLinkCardShelf",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.hH,value:3}),_.c("design:type",Number)],xI.prototype,"itemsPerRow",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"renderedFromRichGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"isInFirstColumn",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"noGutterMargins",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"isInlineGroupItem",void 0);_.E([_.C(),_.c("design:type",Object)],xI.prototype,"insetMetadata",void 0);
_.E([_.C(),_.c("design:type",Object)],xI.prototype,"noBottomMarginInAds",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],xI.prototype,"isShelfItem",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.c("design:type",Boolean)],xI.prototype,"isReelItemStyleAvatarCircle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.c("design:type",Boolean)],xI.prototype,"isLinkCardFullWidth",void 0);
_.E([_.C(),_.c("design:type",Object)],xI.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"useCompactList",void 0);_.E([_.C(),_.c("design:type",String)],xI.prototype,"sizing",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],xI.prototype,"typographyBump",void 0);_.E([_.C(),_.c("design:type",Number)],xI.prototype,"itemWidth",void 0);_.E([_.C(),_.c("design:type",Boolean)],xI.prototype,"isHomeShelf",void 0);
_.E([_.C(),_.c("design:type",Boolean)],xI.prototype,"isHomeGrid",void 0);_.E([_.V1("yt-lockup-view-model"),_.c("design:type",HTMLElement)],xI.prototype,"lockup",void 0);_.E([_.V1("ytd-rich-grid-media"),_.c("design:type",HTMLElement)],xI.prototype,"richGridMedia",void 0);_.E([_.V1("ytd-ad-slot-renderer"),_.c("design:type",HTMLElement)],xI.prototype,"adSlotRenderer",void 0);_.E([_.C({computed:"computeContainerType(useCompactList)"}),_.c("design:type",Object)],xI.prototype,"containerType",void 0);
_.E([_.C({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.c("design:type",Object)],xI.prototype,"thumbnailTargetWidth",void 0);_.E([_.H("showYtInteractionOnRichItem"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xI.prototype,"showYtInteractionOnRichGridMedia",null);_.E([_.H("isSelectableFeedbackItem","richGridHoverHighlight"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xI.prototype,"showYtInteractionOnRichItem",null);
_.E([_.H("typographyBump","isHomeGrid"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xI.prototype,"richTypographyBump",null);_.E([_.C({reflectToAttribute:!0}),_.H("isShortsGrid","isCompactGrid"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xI.prototype,"richGridHoverHighlight",null);_.E([_.H("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.c("design:type",Number),_.c("design:paramtypes",[])],xI.prototype,"shortsLockupViewModelAspectRatio",null);
_.E([_.H("isInlineGroupItem"),_.c("design:type",Number),_.c("design:paramtypes",[])],xI.prototype,"shortsLockupViewModelScrimStyle",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xI.prototype,"updateIsInFirstColumn",null);_.E([_.iN("containerType","sizing","typographyBump"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xI.prototype,"observerContainerType",null);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xI.prototype,"isResponsiveGrid",void 0);_.E([_.C(),_.c("design:type",Object)],xI.prototype,"lockupExperiments",void 0);_.E([_.iN("richGridHoverHighlight"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xI.prototype,"richGridHoverHighlightChanged",null);_.E([_.h({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],xI);
_.qdy=_.SM()(xI,"ytd-rich-item-renderer",function(){if(Uhp===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);Uhp=A}A=Uhp;return A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var BTF={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var OhW=_.sr(_.JQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var PXb={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},SDJ={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Uai={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var oFM;var cg=function(){var A=_.q.apply(this,arguments)||this;A.useResponsiveGrid=!1;A.hidden=!1;A.standardShelfMargins=_.K("web_rich_grid_standard_shelf_margins");A.isShowMoreHidden=!1;A.isExpanded=!1;A.isInnerShelf=!1;A.allVideosCount=0;A.allPlaylistCount=0;A.haveSmartDownloadsCompleted=!1;A.isShowLessHidden=!0;A.restrictContentsOverflow=!1;A.firstShownIndex=0;A.horizontalOffset=0;A.atEnd=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};A.nextClick=function(){var Q;(Q=A.data)!=null&&Q.contents&&(A.firstShownIndex+=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
A.previousClick=function(){var Q;(Q=A.data)!=null&&Q.contents&&(A.firstShownIndex-=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
return A};
_.O(cg,_.q);_.d=cg.prototype;
_.d.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.vG("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.d.attached=function(){this.requestElementsPerRow()};
_.d.refreshGridLayoutNew=function(){var A;if((A=this.data)!=null&&A.contents&&this.containerWidth){var Q;((Q=this.data.responsiveContainerConfiguration)==null?0:Q.responsiveSize)?(A=_.IqY(this.data.responsiveContainerConfiguration,this.containerWidth),A=_.sh(Object.assign({},A,{standardUnitMinWidth:this.standardUnitMinWidth}))):A=_.sh({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=A.typographyBump;if(this.elementsPerRow!==
A.numItems||this.gutter!==A.gutter)this.elementsPerRow=A.numItems,this.gutter=A.gutter,this.itemWidth=A.itemWidth,_.Uc(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":A.gutter+"px"})}};
_.d.computeSizing=function(){if(!this.isLumiere){var A=_.YFA(this.data);if(A)return A;if(_.K("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.d.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.d.computeButton=function(A){var Q=_.V(A,_.wE);A=Object.assign({},_.V(A,_.wE));return Q?(A.text||(A.text={simpleText:A.tooltip}),A.style="STYLE_MONO_OUTLINE",A.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",A):Q};
_.d.onRowIndexChange=function(){var A=_.WR(),Q,b;((Q=this.data)==null?0:Q.trackingParams)&&((b=this.data)==null?void 0:b.rowIndex)!=null&&A&&_.sl(A,_.t8(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.d.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var A,Q=((A=this.getRichItemRenderers()[0])==null?void 0:A.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*Q;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.d.requestElementsPerRow=function(){_.Bn(this.hostElement,"yt-request-elements-per-row")};
_.d.onUpdateElementsPerRowAction=function(A,Q,b,f,a,T){if(this.containerWidth!==T&&(this.containerWidth=T,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&A&&Q&&b&&f&&a&&(this.elementsPerRow!==A||this.postsPerRow!==Q||this.slimItemsPerRow!==b||this.gameCardsPerRow!==f||this.miniGameCardsPerRow!==a)&&(this.elementsPerRow=A,this.postsPerRow=Q,this.slimItemsPerRow=b,this.gameCardsPerRow=f,this.miniGameCardsPerRow=a,this.updateItemVisibility())};
_.d.getRichItemRenderers=function(){return _.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.d.updateItemVisibility=function(){var A=this;if(this.data&&this.data.contents){var Q=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(f,a){var T;((T=A.data)==null?0:T.isExpanded)?(f.hidden=a>Q-1,f.ytRendererBehavior.markDirty()):f.hidden=a>A.currentElementsPerRow-1||a>Q-1});
var b=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||b||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||b||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.d.setHeightToSingleRow=function(){var A=this.getRichItemRenderers(),Q=Number.parseInt(getComputedStyle(A[0]).marginBottom,10)||0;A=A.slice(0,this.currentElementsPerRow).reduce(function(b,f){return Math.max(b,f.getBoundingClientRect().height+Q)},0);
this.contents.style.height=A+"px"};
_.d.focusNextExpandedItem=function(){var A;((A=this.data)==null?0:A.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.d.focusItem=function(A,Q){var b=this.getRichItemRenderers();if(b[A]&&(A=b[A].querySelector(".focus-on-expand"))){if(Q){var f;(f=b[this.currentElementsPerRow])==null||f.scrollIntoView({behavior:"smooth",block:"center"})}A.focus({preventScroll:!0})}};
_.d.onDataChange=function(){var A=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var Q;if((Q=this.data)==null?0:Q.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.mL(this,function(){A.updateItemVisibility()});
var b;if((b=this.data)==null?0:b.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Uc(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),Q=0;Q<this.data.contents.length;Q++)b=_.V(this.data.contents[Q],_.gE)||{},b.colIndex=Q,b.rowIndex=this.data.rowIndex};
_.d.handleRerenderDownloadsData=function(){_.K("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())};
_.d.blockInlinePreview=function(A){var Q=this,b;return _.B(function(f){(b=Q.inlinePreviewIsEnabled)&&Q.ytdReduxBehavior.dispatch(_.XK1(!1));return f.return(new Promise(function(a){A(function(){b&&Q.ytdReduxBehavior.dispatch(_.XK1(!0));a()})}))})};
_.d.expandShelf=function(){var A=this;if(this.data){var Q,b=(Q=_.V(this.data.showMoreButton,_.wE))==null?void 0:Q.trackingParams;b&&_.JY(_.IP(),b);this.data.isExpanded=!0;this.blockInlinePreview(function(f){A.setHeightToSingleRow();A.updateItemVisibility();A.contents.style.height=A.contents.scrollHeight+"px";_.j7.addJob(function(){A.contents.style.height="auto";A.focusNextExpandedItem();f()},2,200)})}};
_.d.collapseShelf=function(){var A=this;return _.B(function(Q){if(Q.nextAddress==1){if(!A.data)return Q.return();A.data.isExpanded=!1;return Q.yield(A.blockInlinePreview(function(b){A.contents.style.height=A.contents.scrollHeight+"px";A.setHeightToSingleRow();_.j7.addJob(function(){A.updateItemVisibility();A.contents.style.height="auto";b()},2,200)}),2)}_.Bn(A.hostElement,"yt-rich-shelf-renderer-collapse",A.data.trackingParams);
A.focusItem(0,!1);_.Oi(Q)})};
_.d.updateArrowButtonStatus=function(){var A=this.getRichItemRenderers().length;if(!_.K("web_rich_shelf_renderer_use_data_contents_killswitch")){var Q,b;A=((Q=this.data)==null?void 0:(b=Q.contents)==null?void 0:b.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=A};
_.d.onChildElementFocus=function(A){this.hasChevronButtons&&(A=A.target.closest("#contents > *"),this.contents.contains(A)&&(A.offsetLeft<this.horizontalOffset?this.previousClick():A.offsetLeft+A.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.d.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.vG("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.d.updateHorizontalOffset=function(){var A=this.getRichItemRenderers(),Q=A.length;if(!_.K("web_rich_shelf_renderer_use_data_contents_killswitch")){var b,f;Q=((b=this.data)==null?void 0:(f=b.contents)==null?void 0:f.length)||0}var a;A=((a=A[0])==null?void 0:a.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>Q?this.firstShownIndex=Q-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*A};
_.d.isSlimMediaShelfRenderer=function(){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE))==null?void 0:b.content;return!!(_.V(f,_.bbM)||_.V(f,QJL)||_.V(f,_.zc)||_.V(f,OYp))};
_.d.isGameCardShelf=function(){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE))==null?void 0:b.content;return!!_.V(f,TPW)};
_.d.isGnomeShelf=function(){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE))==null?void 0:b.content;return!!_.V(f,_.OUL)};
_.d.isMiniGameCardShelf=function(){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE))==null?void 0:b.content;return!!_.V(f,iU$)||!!_.V(f,JVL)};
_.d.hasGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.d.hasRoundedGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.d.isShortsShelf=function(){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE))==null?void 0:b.content;return!!_.V(f,_.zc)||!!_.V(f,OYp)};
_.d.isPostShelfRenderer=function(){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE))==null?void 0:b.content;return!(!_.V(f,YJr)&&!_.V(f,D_L))};
_.d.isLumiereShelf=function(){var A,Q,b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE);return!!_.V(b==null?void 0:b.content,TrL)};
_.d.isLumiereShelfWithPosters=function(){var A,Q,b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE),f;return((f=_.V(b==null?void 0:b.content,TrL))==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.d.isExpandOnHoverCardShelf=function(){var A,Q,b,f=(b=_.V((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:Q[0],_.gE))==null?void 0:b.content;return!!_.V(f,a7$)};
_.d.computeHasFeaturedBadge=function(){var A,Q,b=_.V((A=this.data)==null?void 0:(Q=A.badges)==null?void 0:Q[0],_.nHY);return b?b.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.d.computeHasPaygatedFeaturedBadge=function(){var A,Q,b=_.V((A=this.data)==null?void 0:(Q=A.badges)==null?void 0:Q[0],_.nHY);return b?(b==null?void 0:b.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.d.computeHeaderHidden=function(){var A,Q,b,f,a,T;return!((A=this.data)==null?0:A.icon)&&!((Q=this.data)==null?0:Q.title)&&!((b=this.data)==null?0:b.subtitle)&&!((f=this.data)==null?0:f.thumbnail)&&!((a=this.data)==null?0:a.badges)&&!((T=this.data)==null?0:T.menu)};
_.d.showCtaButton=function(){var A;return!((A=this.data)==null||!A.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.d.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.d.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.d.computeForce16By9ThumbnailAspectRatio=function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.responsiveContainerConfiguration)==null?void 0:Q.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.d.onSectionReactiveDismissal=function(A,Q,b){var f,a;var T=(f=this.data)==null?void 0:(a=f.targetingContext)==null?void 0:a.targetGroupId;this&&T&&Q.targetGroupId&&T.includes(Q.targetGroupId)?(f=this.rowIndex,A=f===void 0?!1:!(Q.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&f<=A)):A=!1;A&&(this.hidden=b)};
_.Qr.Object.defineProperties(cg.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var A=this.elementsPerRow;this.isPostShelfRenderer()?A=this.postsPerRow:this.isSlimMediaShelfRenderer()?A=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?A=this.slimItemsPerRow-1:this.isGameCardShelf()?A=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(A=this.miniGameCardsPerRow);return A}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.K("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.previousButton)&&!((Q=this.data)==null||!Q.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 A;return((A=_.fJ().resolve(_.F7).getCurrentPage())==null?void 0:A.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;return!((A=this.data)==null?0:(Q=A.thumbnail)==null?0:(b=Q.accessibility)==null?0:(f=b.accessibilityData)==null?0:f.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
cg.prototype.onChildElementFocus=cg.prototype.onChildElementFocus;cg.prototype.handleRerenderDownloadsData=cg.prototype.handleRerenderDownloadsData;cg.prototype.onDataChange=cg.prototype.onDataChange;cg.prototype.onRowIndexChange=cg.prototype.onRowIndexChange;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.wS),_.c("design:type",Object)],cg.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],cg.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],cg.prototype,"ytdReduxBehavior",void 0);_.E([_.C({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.c("design:type",Object)],cg.prototype,"useResponsiveGrid",void 0);_.E([_.C(),_.c("design:type",Object)],cg.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Number)],cg.prototype,"standardUnitMinWidth",void 0);_.E([_.C({reflectToAttribute:!0,value:3}),_.c("design:type",Number)],cg.prototype,"elementsPerRow",void 0);_.E([_.C({value:3}),_.c("design:type",Number)],cg.prototype,"postsPerRow",void 0);_.E([_.C({value:6}),_.c("design:type",Number)],cg.prototype,"slimItemsPerRow",void 0);_.E([_.C({value:6}),_.c("design:type",Number)],cg.prototype,"gameCardsPerRow",void 0);
_.E([_.C({value:6}),_.c("design:type",Number)],cg.prototype,"miniGameCardsPerRow",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cg.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cg.prototype,"standardShelfMargins",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cg.prototype,"isShowMoreHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cg.prototype,"isExpanded",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cg.prototype,"isInnerShelf",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.c("design:type",Boolean)],cg.prototype,"isShorts",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.c("design:type",Boolean)],cg.prototype,"isLumiere",void 0);_.E([_.C({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.c("design:type",Boolean)],cg.prototype,"hasBoxArtThumbnailStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.c("design:type",Boolean)],cg.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.c("design:type",Boolean)],cg.prototype,"hasFeaturedBadge",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.c("design:type",Boolean)],cg.prototype,"hasPaygatedFeaturedBadge",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.c("design:type",Boolean)],cg.prototype,"isHeaderHidden",void 0);_.E([_.C({selector:_.yYU}),_.c("design:type",Object)],cg.prototype,"allVideosCount",void 0);_.E([_.C({selector:kib}),_.c("design:type",Object)],cg.prototype,"allPlaylistCount",void 0);_.E([_.C({selector:fBA}),_.c("design:type",Object)],cg.prototype,"haveSmartDownloadsCompleted",void 0);
_.E([_.C({selectorArgs:["entitySelectorType"],selector:function(A,Q){if(_.K("kevlar_modern_downloads_page")&&Q&&Q!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var b=A.entities;switch(Q){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":Q=_.j$(b);A=Hi(Q);var f=_.HO(Q);b=_.gs(b);b=_.T7(Mab(f,b,Q.length));return{contents:A,subtitle:b};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return b=_.j$(b),{contents:Hi(b)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return b=
_.RX(b),{contents:Hi(b)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return b=_.ngi(b),{contents:Hi(b)};default:_.Wv(new _.IO("Error: entitySelectorType defined but not matched in selector.",A,Q))}}}}),
_.c("design:type",Object)],cg.prototype,"entityDrivenRichShelfData",void 0);_.E([_.C({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.c("design:type",Boolean)],cg.prototype,"hasTopCtaButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.c("design:type",Boolean)],cg.prototype,"hasBottomCtaButton",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.c("design:type",Boolean)],cg.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cg.prototype,"isShowLessHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],cg.prototype,"restrictContentsOverflow",void 0);_.E([_.C({selector:_.cYf}),_.c("design:type",Boolean)],cg.prototype,"inlinePreviewIsEnabled",void 0);
_.E([_.C({computed:"computeSizing(data)"}),_.c("design:type",String)],cg.prototype,"sizing",void 0);_.E([_.C(),_.c("design:type",Boolean)],cg.prototype,"typographyBump",void 0);_.E([_.C(),_.c("design:type",Number)],cg.prototype,"itemWidth",void 0);_.E([_.C(),_.c("design:type",Object)],cg.prototype,"firstShownIndex",void 0);_.E([_.C(),_.c("design:type",Object)],cg.prototype,"horizontalOffset",void 0);_.E([_.C(),_.c("design:type",Object)],cg.prototype,"atEnd",void 0);
_.E([_.V1("#contents"),_.c("design:type",HTMLElement)],cg.prototype,"contents",void 0);_.E([_.iN("data.rowIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cg.prototype,"onRowIndexChange",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cg.prototype,"onDataChange",null);
_.E([_.iN("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cg.prototype,"handleRerenderDownloadsData",null);_.E([_.Kc("focusin"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],cg.prototype,"onChildElementFocus",null);_.E([_.C({reflectToAttribute:!0}),_.H("data","isHomePage"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cg.prototype,"isTruncated",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cg.prototype,"hideBottomDivider",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],cg.prototype,"hasChevronButtons",null);_.E([_.H("firstShownIndex"),_.c("design:type",Object),_.c("design:paramtypes",[])],cg.prototype,"previousButtonOverride",null);
_.E([_.H("atEnd"),_.c("design:type",Object),_.c("design:paramtypes",[])],cg.prototype,"nextButtonOverride",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cg.prototype,"isHomePage",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cg.prototype,"thumbnailAriaHidden",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],cg.prototype,"initiallyIsExpanded",null);
_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],cg.prototype,"entitySelectorType",null);_.E([_.h({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],cg);
_.tDN=_.SM()(cg,"ytd-rich-shelf-renderer",function(){if(oFM===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);oFM=A}A=oFM;return A},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var rG1;_.pE(_.Xb,"yt-badge-view-model",{props:{data:_.Qf,class:_.Qf,workaroundShortsIsThumbnailBadge:_.Qf,modern:_.Qf}});_.pE(Bg9,"yt-slimline-survey-view-model",{props:{data:_.Qf}});var zM=function(){var A=_.q.apply(this,arguments)||this;A.tileLottieAnimationRef={};A.backgroundLottieAnimationRef={};A.isOnHoverBehaviorForLottieEnabled=!0;A.useBiggerShowcaseImage=_.K("enable_desktop_search_bigger_thumbs");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return A};
_.O(zM,_.q);_.d=zM.prototype;_.d.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.d.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.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"}}}};
_.d.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var A=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);A!==this.hasTile&&this.set("hasTile",A);A=this.hasLogo(this.data)||!!this.data.badgeText;A!==this.hasMetadata&&this.set("hasMetadata",A);A=this.data.overflowButton?!1:A;A!==this.showLogoImage&&this.set("showLogoImage",A);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.d.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.d.currentColorChanged=function(){this.updateButtonPalette()};
_.d.computeBackgroundStyle=function(A){if(A&&this.data){var Q=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var b=_.XS((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);b&&Q.push('background-image: url("'+b+'");')}var f;((f=A.basicColorData)==null?void 0:f.backgroundColor)!==void 0&&Q.push("background-color: "+_.w6(A.basicColorData.backgroundColor)+";");return Q.join("")}};
_.d.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
_.d.getCurrentLogo=function(A,Q){if(A)return Q?A.darkLogoImage:A.lightLogoImage};
_.d.getCurrentStaticTileImage=function(A,Q){if(this.hasStaticTile(A))return A.darkTileImage?Q?A.darkTileImage:A.tileImage:A.tileImage};
_.d.computeTitleStyle=function(A){if(this.data&&this.data.title&&A&&A.basicColorData&&A.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.zx(A.basicColorData.foregroundTitleColor)+";"};
_.d.computeSubtitleStyle=function(A){if(this.data&&this.data.subtitle&&A&&A.basicColorData&&A.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.zx(A.basicColorData.foregroundBodyColor)+";"};
_.d.computeSupplementalStyle=function(A){if(this.data&&this.data.supplementalText&&A&&A.supplementalTextColor!==void 0)return A=_.zx(A.supplementalTextColor),"color:"+A+";--yt-endpoint-color:"+A+";--yt-endpoint-hover-color:"+A+";--yt-endpoint-visited-color:"+A+";--yt-formatted-string-bold-font-weight:700;"};
_.d.computeDismissIconStyle=function(A){var Q,b;if((A==null?0:(Q=A.dismissButtonColorData)==null?0:Q.foregroundTitleColor)&&(A==null?0:(b=A.dismissButtonColorData)==null?0:b.backgroundColor))return"--yt-button-color:"+_.w6(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.w6(A.dismissButtonColorData.backgroundColor)+";"};
_.d.computeOverflowIconStyle=function(A){var Q,b;if((A==null?0:(Q=A.dismissButtonColorData)==null?0:Q.foregroundTitleColor)&&(A==null?0:(b=A.dismissButtonColorData)==null?0:b.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.w6(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.w6(A.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.w6(A.dismissButtonColorData.foregroundTitleColor)+";"};
_.d.computeBannerStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.d.computeLocation=function(A){switch(A==null?void 0:A.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.d.shouldShowTileSection=function(A,Q,b){return!this.shouldExpandLogo(A,Q,b)&&Q};
_.d.shouldShowExpandedLogoSection=function(A,Q,b){return this.shouldExpandLogo(A,Q,b)&&A!==void 0&&this.hasLogo(A)};
_.d.shouldExpandLogo=function(A,Q,b){return A&&Q?!1:b>=2};
_.d.hasStaticTile=function(A){return!(A==null||!A.tileImage)};
_.d.hasTileLottie=function(A){var Q;return!!(A==null?0:(Q=A.tileLottie)==null?0:Q.url)};
_.d.hasLogo=function(A){return this.getCurrentLogo(A,this.isDarkTheme)!==void 0};
_.d.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.d.getExpandedLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.d.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.d.getMaxTitleFontSize=function(A){return A.overrideTitleMaxFontSize?String(A.overrideTitleMaxFontSize):"36"};
_.d.hasBackgroundLottie=function(A){var Q;return!!(A==null?0:(Q=A.backgroundLottie)==null?0:Q.url)};
_.d.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,Q;(A=this.tileLottieAnimationRef)==null||(Q=A.lottieEl)==null||Q.play();var b,f;(b=this.backgroundLottieAnimationRef)==null||(f=b.lottieEl)==null||f.play()}};
_.d.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,Q;(A=this.tileLottieAnimationRef)==null||(Q=A.lottieEl)==null||Q.pause();var b,f;(b=this.backgroundLottieAnimationRef)==null||(f=b.lottieEl)==null||f.pause()}};
_.d.pauseLottie=function(){var A,Q;(A=this.tileLottieAnimationRef)==null||(Q=A.lottieEl)==null||Q.pause();var b,f;(b=this.backgroundLottieAnimationRef)==null||(f=b.lottieEl)==null||f.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.d.performPrimaryButtonAction=function(){var A,Q,b;((A=this.data)==null?0:(Q=A.primaryButton)==null?0:(b=Q.buttonRenderer)==null?0:b.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.d.requestElementsPerRow=function(){_.Bn(this.hostElement,"yt-request-elements-per-row")};
_.d.updateButtonPalette=function(){if(this.data&&this.currentColorData){var A;((A=this.data.dismissButton)==null?0:A.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 Q;if((Q=this.data.primaryButton)==null?0:Q.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 b;if((b=this.data.secondaryButton)==
null?0:b.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 f;((f=this.data.primaryButton)==null?0:f.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)})}};
_.d.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var A=this.getTileLottieDataBasedOnTheme(),Q,b;if(A.url!==((Q=this.tileLottiePlayerProps)==null?void 0:(b=Q.animationConfig)==null?void 0:b.path)){var f,a;(f=this.tileLottieAnimationRef)==null||(a=f.lottieEl)==null||a.destroy();var T;this.isOnHoverBehaviorForLottieEnabled=!((T=A.settings)==null?0:T.autoplay);var G,p;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(p=(G=A.settings)==null?void 0:G.autoplay)!=null?p:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.tileLottiePlayerProps.animationConfig.path=A.url:this.tileLottiePlayerProps.animationConfig.animationData=A.url}}};
_.d.getOverflowButton=function(A){return _.V(A.overflowButton,C39)};
_.d.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var A=this.getBackgroundLottieDataBasedOnTheme(),Q,b;if(A.url!==((Q=this.backgroundLottiePlayerProps)==null?void 0:(b=Q.animationConfig)==null?void 0:b.path)){var f,a;(f=this.backgroundLottieAnimationRef)==null||(a=f.lottieEl)==null||a.destroy();var T;this.isOnHoverBehaviorForLottieEnabled=!((T=A.settings)==null?0:T.autoplay);var G,p;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(p=(G=A.settings)==null?void 0:G.autoplay)!=null?p:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=A.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
A.url}}};
_.d.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var A;((A=this.tileLottieAnimationRef)==null?void 0:A.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var Q;((Q=this.backgroundLottieAnimationRef)==null?void 0:Q.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.d.getTileLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeTileLottie))return this.data.darkThemeTileLottie;var Q;return((Q=this.data)==null?0:Q.tileLottie)?this.data.tileLottie:{}};
_.d.getBackgroundLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var Q;return((Q=this.data)==null?0:Q.backgroundLottie)?this.data.backgroundLottie:{}};
_.d.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.d.getLottieLoopValue=function(A){return A?A.loop!==void 0?A.loop:A.loopCount?A.loopCount-1:!0:!0};
_.d.logoWithPadding=function(A){var Q,b,f;return(A=(Q=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(b=Q.thumbnails)==null?void 0:(f=b[0])==null?void 0:f.height)&&A%31===0?!0:!1};
zM.prototype.currentColorChanged=zM.prototype.currentColorChanged;zM.prototype.themeChanged=zM.prototype.themeChanged;zM.prototype.dataChanged=zM.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],zM.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],zM.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],zM.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zM.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],zM.prototype,"primaryButton",void 0);_.E([_.C(),_.c("design:type",Object)],zM.prototype,"secondaryButton",void 0);
_.E([_.C({reflectToAttribute:!0,value:3}),_.c("design:type",Number)],zM.prototype,"elementsPerRow",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],zM.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],zM.prototype,"hasTile",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],zM.prototype,"hasMetadata",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],zM.prototype,"showLogoImage",void 0);_.E([_.C(),_.c("design:type",Object)],zM.prototype,"currentColorData",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.c("design:type",String)],zM.prototype,"bannerStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.c("design:type",String)],zM.prototype,"location",void 0);
_.E([_.C(),_.c("design:type",Object)],zM.prototype,"tileLottiePlayerProps",void 0);_.E([_.C(),_.c("design:type",Object)],zM.prototype,"tileLottieAnimationRef",void 0);_.E([_.C(),_.c("design:type",Object)],zM.prototype,"backgroundLottiePlayerProps",void 0);_.E([_.C(),_.c("design:type",Object)],zM.prototype,"backgroundLottieAnimationRef",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],zM.prototype,"useBiggerShowcaseImage",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zM.prototype,"isHideEnclosingAction",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zM.prototype,"dataChanged",null);_.E([_.I_("isDarkTheme"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zM.prototype,"themeChanged",null);
_.E([_.I_("currentColorData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zM.prototype,"currentColorChanged",null);_.E([_.h({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],zM);
_.W(zM,"ytd-statement-banner-renderer",function(){if(rG1!==void 0)return rG1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rG1=A},{mode:1});var jGM;var wt=function(){var A=_.q.apply(this,arguments)||this;A.isSearch=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.disableMouseScroll=!0;A.useFloorScrolling=!0;A.modernTypography=_.K("web_modern_typography");return A};
_.O(wt,_.q);wt.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.JQ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.JQ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
wt.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
wt.prototype.onDataChanged=wt.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],wt.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],wt.prototype,"hideShelfHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],wt.prototype,"engagementPanel",void 0);_.E([_.C(),_.c("design:type",Object)],wt.prototype,"disableMouseScroll",void 0);_.E([_.C(),_.c("design:type",Object)],wt.prototype,"useFloorScrolling",void 0);_.E([_.C(),_.c("design:type",Object)],wt.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],wt.prototype,"modernTypography",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],wt.prototype,"onDataChanged",null);_.E([_.h({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],wt);
_.W(wt,"ytd-reel-shelf-renderer",function(){if(jGM!==void 0)return jGM;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return jGM=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var ReL;var gFK;gFK=_.sC(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.eey=_.GH(gFK);var hey=_.aP(function(A){var Q=A.data;A=A.useSmallFont;var b={},f={};return _.X("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.X(_.S,{cond:function(){return Q().favicon},
then:function(a){return _.X(_.aY,{data:a,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.X("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.X(_.Rb,{text:function(){return Q().title},
className:_.O4("yt-channel-external-link-view-model-wiz__title",(b["yt-channel-external-link-view-model-wiz__title--title-small-font"]=A,b)),ellipsisTruncate:!0,userInput:!0}),_.X(_.Rb,{text:function(){return Q().link},
className:_.O4("yt-channel-external-link-view-model-wiz__link",(f["yt-channel-external-link-view-model-wiz__link--link-small-font"]=A,f)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Qb");
hey.idomCompat=!0;_.pE(hey,"yt-channel-external-link-view-model",{props:{data:_.Qf,useSmallFont:_.Qf}});_.xo("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var uZ=function(){var A=_.q.apply(this,arguments)||this;A.revealButtonClass="button";A.businessEmailDisplayState="HIDE_SECTION";return A};
_.O(uZ,_.q);_.d=uZ.prototype;_.d.refit=function(){var A=this;_.y1(function(){_.Pn(A.hostElement,"yt-refit-popups-action")});
_.mL(this,function(){_.Pn(A.hostElement,"yt-refit-popups-action")})};
_.d.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.uh(_.eey),this.businessEmailDisplayState="CAPTCHA")};
_.d.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"};
_.d.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.d.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"}}}};
_.d.computeEmailHref=function(A){return"mailto:"+A};
_.d.computeSafeUrl=function(A){if(A)return _.hs(A)};
_.d.linkEndpoint=function(A){return _.V(A.onTap,_.wF)};
_.d.linkEndpointToHref=function(A){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(A))};
_.d.onYtServiceRequestCompleted=function(A){var Q;if((Q=A.detail.data)==null?0:Q.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var b;if((b=A.detail.data)==null?0:b.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.d.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var A=this.JSC$16134_captchaTextarea.value;if(A){A={recaptcha_response_token:A,channel_id:this.metadata.channelId};var Q=_.V(this.metadata.onBusinessEmailRevealClickCommand,_.wF);Q&&this.ytComponentBehavior.resolveCommand(Q,{form:A})}}};
_.d.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Qr.Object.defineProperties(uZ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var A;return _.V((A=this.data)==null?void 0:A.metadata,BrL)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.V(this.metadata.businessEmailRevealButton,_.jJ)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var A=new URL(this.metadata.canonicalChannelUrl);return A.host+A.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 _.V(this.metadata.learnMoreOnTap,_.wF)}}});
uZ.prototype.onYtServiceRequestCompleted=uZ.prototype.onYtServiceRequestCompleted;uZ.prototype.businessEmailMetadataChanged=uZ.prototype.businessEmailMetadataChanged;uZ.prototype.refit=uZ.prototype.refit;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],uZ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("#g-recaptcha-response"),_.c("design:type",HTMLTextAreaElement)],uZ.prototype,"JSC$16134_captchaTextarea",void 0);_.E([_.C(),_.c("design:type",Object)],uZ.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],uZ.prototype,"revealButtonClass",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],uZ.prototype,"metadata",null);
_.E([_.H("metadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],uZ.prototype,"revealButton",null);_.E([_.H("metadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],uZ.prototype,"channelDisplayUrl",null);_.E([_.I_("metadata"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uZ.prototype,"refit",null);_.E([_.H("metadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],uZ.prototype,"formattedDescription",null);
_.E([_.H("metadata","learnMoreCommand"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],uZ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.E([_.H("metadata"),_.c("design:type",Object),_.c("design:paramtypes",[])],uZ.prototype,"learnMoreCommand",null);_.E([_.C(),_.c("design:type",String)],uZ.prototype,"businessEmailDisplayState",void 0);_.E([_.C(),_.c("design:type",String)],uZ.prototype,"businessEmail",void 0);
_.E([_.C(),_.c("design:type",String)],uZ.prototype,"businessEmailErrorMessage",void 0);_.E([_.I_("metadata"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uZ.prototype,"businessEmailMetadataChanged",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],uZ.prototype,"onYtServiceRequestCompleted",null);_.E([_.h({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],uZ);
_.W(uZ,"ytd-about-channel-renderer",function(){if(ReL!==void 0)return ReL;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ReL=A},{mode:1});var Wsj;var Z9=function(){return _.q.apply(this,arguments)||this};
_.O(Z9,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Z9.prototype,"data",void 0);_.E([_.h({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Z9);
_.W(Z9,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Wsj!==void 0)return Wsj;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Wsj=A},{mode:1});var vFN;var yv=function(){return _.q.apply(this,arguments)||this};
_.O(yv,_.q);yv.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yv.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],yv.prototype,"aligment",void 0);_.E([_.h({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],yv);
_.W(yv,"ytd-channel-list-sub-menu-renderer",function(){if(vFN!==void 0)return vFN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return vFN=
A},{mode:1});var EFr;var YI=function(){return _.q.apply(this,arguments)||this};
_.O(YI,_.q);YI.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YI.prototype,"data",void 0);_.E([_.h({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],YI);
_.W(YI,"ytd-channel-sub-menu-renderer",function(){if(EFr!==void 0)return EFr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return EFr=A},{mode:1});var xhr;var cGN;var D9=function(){var A=_.q.apply(this,arguments)||this;A.isCompact=!1;return A};
_.O(D9,_.q);_.Qr.Object.defineProperties(D9.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((Q=_.V((A=this.data)==null?void 0:A.endpoint,_.y_))==null?void 0:Q.target)==="TARGET_NEW_WINDOW"}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],D9.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],D9.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],D9.prototype,"isCompact",void 0);_.E([_.H("isCompact"),_.c("design:type",Number),_.c("design:paramtypes",[])],D9.prototype,"thumbnailWidth",null);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],D9.prototype,"openNewWindow",null);_.E([_.h({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],D9);
_.W(D9,"ytd-media-lockup-renderer",function(){if(cGN!==void 0)return cGN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return cGN=A},{mode:1});var zeY;var $I=function(){return _.q.apply(this,arguments)||this};
_.O($I,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],$I.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$I.prototype,"data",void 0);_.E([_.h({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],$I);
_.W($I,"ytd-structured-description-channel-lockup-renderer",function(){if(zeY!==void 0)return zeY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return zeY=A},{mode:1});var wsv;var NE=function(){var A=_.q.apply(this,arguments)||this;A.isCompact=!1;A.collections=_.K("web_modern_collections_v2");A.collectionsStackColor=_.K("modernize_structured_description_playlist_lockups_v2");return A};
_.O(NE,_.q);NE.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:_.K("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Qr.Object.defineProperties(NE.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a,T;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(A=this.data)==null?void 0:(Q=A.thumbnail)==null?void 0:Q.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(b=this.data)==null?void 0:(f=b.thumbnail)==null?void 0:f.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(a=this.data)==null?void 0:(T=a.thumbnail)==
null?void 0:T.vibrantColorPalette:void 0}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],NE.prototype,"componentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],NE.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],NE.prototype,"showSidePanelThumbnailOverlay",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],NE.prototype,"isCompact",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],NE.prototype,"collections",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],NE.prototype,"collectionsStackColor",void 0);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],NE.prototype,"twoLineTitle",null);
_.E([_.H("data","collections","collectionsStackColor"),_.c("design:type",Object),_.c("design:paramtypes",[])],NE.prototype,"collectionStack",null);_.E([_.h({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],NE);
_.W(NE,"ytd-structured-description-playlist-lockup-renderer",function(){if(wsv!==void 0)return wsv;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return wsv=A},{mode:1});var u3Y;var sR=function(){return _.q.apply(this,arguments)||this};
_.O(sR,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],sR.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sR.prototype,"data",void 0);_.E([_.h({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],sR);
_.W(sR,"ytd-structured-description-video-lockup-renderer",function(){if(u3Y!==void 0)return u3Y;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return u3Y=A},{mode:2});var mi=function(){return _.q.apply(this,arguments)||this};
_.O(mi,_.q);
mi.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mi.prototype,"data",void 0);_.E([_.h({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],mi);
_.W(mi,"ytd-compact-infocard-renderer",function(){if(xhr!==void 0)return xhr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return xhr=A},{mode:1});var Zyj;var A6=function(){var A=_.q.apply(this,arguments)||this;A.useModernCollectionsV2=_.K("web_modern_collections_v2");return A};
_.O(A6,_.q);A6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Qr.Object.defineProperties(A6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],A6.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],A6.prototype,"ytdReduxBehavior",void 0);_.E([_.C({selector:_.uc}),_.c("design:type",Object)],A6.prototype,"isGridViewEnabled",void 0);
_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],A6.prototype,"watchFeedBigThumbs",null);_.E([_.H("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"168"}),_.c("design:type",String),_.c("design:paramtypes",[])],A6.prototype,"thumbnailWidth",null);_.E([_.H("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"94"}),_.c("design:type",String),_.c("design:paramtypes",[])],A6.prototype,"customThumbnailSize",null);
_.E([_.C(),_.c("design:type",Object)],A6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],A6.prototype,"useModernCollectionsV2",void 0);_.E([_.h({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],A6);
_.W(A6,"ytd-compact-playlist-renderer",function(){if(Zyj!==void 0)return Zyj;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Zyj=A},{mode:1});var yGy;var Q8=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.roundedContainer=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.O(Q8,_.q);_.d=Q8.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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"}}}};
_.d.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.d.computeViewStyle=function(A){return A.style?A.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.d.onUpdateElementsPerRowAction=function(A){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&A===1};
_.d.requestElementsPerRow=function(){_.Bn(this.hostElement,"yt-request-elements-per-row")};
Q8.prototype.dataChanged=Q8.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],Q8.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Q8.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Q8.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Q8.prototype,"hideThumbnail",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.c("design:type",String)],Q8.prototype,"viewStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Q8.prototype,"darkerDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Q8.prototype,"roundedContainer",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Q8.prototype,"dataChanged",null);_.E([_.h({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Q8);
_.W(Q8,"ytd-compact-promoted-item-renderer",function(){if(yGy!==void 0)return yGy;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return yGy=A},{mode:1});var YdL;var bs=function(){var A=_.q.apply(this,arguments)||this;A.collections=_.K("web_modern_collections_v2");return A};
_.O(bs,_.q);bs.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
bs.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
bs.prototype.onYtNavigate=function(A,Q){var b=this;if(Q.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",Q)){var f=this.get("watchEndpoint.videoId",Q.endpoint),a=_.Pn(this.hostElement,"yt-get-current-video-id-action")[0];_.K("kevlar_mix_handle_first_endpoint_different")&&f&&a&&f!==a||(A.stopPropagation(),_.p6().getPlayerPromise().then(function(T){if(T.getPlayerState()===0&&b.data.secondaryNavigationEndpoint)var G=b.data.secondaryNavigationEndpoint;else{G=
Object.assign({},Q.endpoint);var p=_.V(G.commandMetadata,_.KD);p&&(T=Math.floor(T.getCurrentTime()),p.url=_.$Q(p.url,{t:T}),!_.K("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(p=_.V(G,_.sv)))&&(p.startTimeSeconds=T)}_.Bn(b.hostElement,"yt-navigate",{endpoint:G})}))}};
_.Qr.Object.defineProperties(bs.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a,T;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(Q=A.thumbnail)==null?void 0:Q.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(f=b.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(a=this.data)==null?void 0:(T=a.thumbnail)==null?void 0:T.darkColorPalette,experimentEnabled:this.collections}}}});
bs.prototype.onYtNavigate=bs.prototype.onYtNavigate;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.kZ.YtEndpointBehavior),_.c("design:type",Object)],bs.prototype,"ytEndpointBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],bs.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.NC),_.c("design:type",Object)],bs.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],bs.prototype,"ytdReduxBehavior",void 0);_.E([_.C({selector:_.uc}),_.c("design:type",Object)],bs.prototype,"isGridViewEnabled",void 0);_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bs.prototype,"watchFeedBigThumbs",null);
_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",String),_.c("design:paramtypes",[])],bs.prototype,"thumbnailWidth",null);_.E([_.C(),_.c("design:type",Object)],bs.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],bs.prototype,"collections",void 0);_.E([_.H("data","collections"),_.c("design:type",Object),_.c("design:paramtypes",[])],bs.prototype,"collectionStack",null);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],bs.prototype,"onYtNavigate",null);_.E([_.h({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],bs);
_.W(bs,"ytd-compact-radio-renderer",function(){if(YdL!==void 0)return YdL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return YdL=A},{mode:1});var DhY;var fl=function(){return _.q.apply(this,arguments)||this};
_.O(fl,_.q);fl.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
fl.prototype.computeRendererStyle=function(A){return A.style?A.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.E([_.C(),_.c("design:type",Object)],fl.prototype,"data",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fl.prototype,"rendererBehavior",void 0);_.E([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.c("design:type",String)],fl.prototype,"rendererStyle",void 0);_.E([_.h({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],fl);
_.W(fl,"ytd-compact-text-promo-renderer",function(){if(DhY!==void 0)return DhY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return DhY=A},{mode:1});var $hL;var ah=function(){var A=_.q.apply(this,arguments)||this;A.isShortsStyle=!1;return A};
_.O(ah,_.q);_.d=ah.prototype;_.d.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"}}}};
_.d.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Bn(this.hostElement,"yt-disable-lockup-interaction"):_.Bn(this.hostElement,"yt-enable-lockup-interaction"))};
_.d.isMetaBlockEmpty=function(A){return!A||!A.longBylineText&&!A.shortBylineText&&!A.shortViewCountText&&!A.viewCountText};
_.d.computeHasOneLineTitle=function(A){return this.forceOneLineTitle||!(A==null||!A.buttons)};
_.d.computeDisableInteraction=function(){var A;return!((A=this.data)==null?0:A.navigationEndpoint)};
_.d.hasSingularTopStandaloneBadge=function(){var A;return!((A=this.data)==null||!A.topStandaloneBadge)};
_.Qr.Object.defineProperties(ah.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("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 A;return this.hasSingularTopStandaloneBadge()?[(A=this.data)==null?void 0:A.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var A;return this.shouldShowTopBadges?((A=this.data)==null?void 0:A.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
ah.prototype.disableInteractionChanged=ah.prototype.disableInteractionChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],ah.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],ah.prototype,"ytdLockupBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],ah.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.c("design:type",Boolean)],ah.prototype,"metaBlockEmpty",void 0);_.E([_.C({selector:_.uc}),_.c("design:type",Object)],ah.prototype,"isGridViewEnabled",void 0);_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ah.prototype,"watchFeedBigThumbs",null);
_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",String),_.c("design:paramtypes",[])],ah.prototype,"thumbnailWidth",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ah.prototype,"isShortsStyle",void 0);_.E([_.C(),_.c("design:type",Object)],ah.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.c("design:type",Boolean)],ah.prototype,"hasOneLineTitle",void 0);
_.E([_.C(),_.c("design:type",Boolean)],ah.prototype,"hideThumbnail",void 0);_.E([_.C(),_.c("design:type",Boolean)],ah.prototype,"forceOneLineTitle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.c("design:type",Boolean)],ah.prototype,"disableInteraction",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],ah.prototype,"musicMetadataVideoLockup",void 0);
_.E([_.iN("disableInteraction"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ah.prototype,"disableInteractionChanged",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ah.prototype,"shouldShowTopBadges",null);_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],ah.prototype,"topBadges",null);
_.E([_.H("shouldShowTopBadges","data"),_.c("design:type",Array),_.c("design:paramtypes",[])],ah.prototype,"inlineMetadataBadges",null);_.E([_.H("shouldShowTopBadges"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ah.prototype,"shouldShowBadgesBelowMetadata",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],ah.prototype,"compactTitleClass",null);_.E([_.h({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],ah);
_.W(ah,"ytd-compact-video-renderer",function(){if($hL!==void 0)return $hL;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $hL=A},{mode:_.UG("kevlar_poly_si_batch_j067")?1:2});var Npp;_.xo("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Tu=function(){return _.q.apply(this,arguments)||this};
_.O(Tu,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Tu.prototype,"data",void 0);_.E([_.h({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Tu);
_.W(Tu,"ytd-counterfactual-renderer",function(){if(Npp!==void 0)return Npp;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Npp=A},{mode:1});var sGv;var da=function(){var A=_.q.apply(this,arguments)||this;A.hidden=!1;return A};
_.O(da,_.q);da.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.fJ().resolve(_.de).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
da.prototype.computeHidden=function(A){return!!A};
_.Qr.Object.defineProperties(da.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],da.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.c("design:type",Object)],da.prototype,"hidden",void 0);_.E([_.H("data.label"),_.c("design:type",String),_.c("design:paramtypes",[])],da.prototype,"label",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],da.prototype,"value",null);
_.E([_.h({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],da);
_.W(da,"ytd-dropdown-item-renderer",function(){if(sGv!==void 0)return sGv;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return sGv=A},{mode:1});var mhL;var Am$;var Fx=function(){return _.q.apply(this,arguments)||this};
_.O(Fx,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Fx.prototype,"data",void 0);_.E([_.C({computed:"getSimpleString(data.label)"}),_.c("design:type",String)],Fx.prototype,"label",void 0);_.E([_.h({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Fx);
_.W(Fx,"ytd-navigation-dropdown-item-renderer",function(){if(Am$!==void 0)return Am$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Am$=A},{mode:1});var Gu=function(){var A=_.q.apply(this,arguments)||this;A.disabled=!1;A.value="";A.noLabelFloat=!1;A.noUnderline=!1;A.usePrimaryColor=!1;A.hasBackground=!1;A.verticalAlign="top";A.autosize=!1;A.minAutosizeWidth=100;A.autosizeFont="14px Roboto";return A};
_.O(Gu,_.q);_.d=Gu.prototype;_.d.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"}}}};
_.d.open=function(){this.inputEl.open()};
_.d.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.d.dataChanged=function(){this.reset()};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("value-changed",this.value))};
_.d.stopPropagation=function(A){A.stopPropagation()};
_.d.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var A=this.canvas.getContext("2d");A&&(A.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(A.measureText(this.inputEl.value).width)+24)+"px")}};
_.d.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var A=0,Q=this.data.entries.length;A<Q;A++){var b=this.data.entries[A],f;for(f in b)if(b.hasOwnProperty(f)){var a=b[f];if("isSelected"in a&&a.isSelected)return"stringValue"in a?a.stringValue||"":"int32Value"in a?a.int32Value||0:0}}return null};
_.d.updateValueFromBinding=function(A){this.value=A.detail.value};
_.Qr.Object.defineProperties(Gu.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 A=0,Q=this.data.entries.length;A<Q;A++){var b=this.data.entries[A],f;for(f in b)if(b.hasOwnProperty(f)){var a=b[f];if("isSelected"in a&&a.isSelected&&"label"in a)return this.ytRendererBehavior.getSimpleString(a.label)}}return null}}});
Gu.prototype.autoSizeLabel=Gu.prototype.autoSizeLabel;Gu.prototype.stopPropagation=Gu.prototype.stopPropagation;Gu.prototype.valueChangedForBinding=Gu.prototype.valueChangedForBinding;Gu.prototype.dataChanged=Gu.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Gu.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Gu.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Gu.prototype,"disabled",void 0);_.E([_.C(),_.c("design:type",Object)],Gu.prototype,"value",void 0);_.E([_.C(),_.c("design:type",Object)],Gu.prototype,"noLabelFloat",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Gu.prototype,"noUnderline",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],Gu.prototype,"theme",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Gu.prototype,"usePrimaryColor",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Gu.prototype,"hasBackground",void 0);_.E([_.C(),_.c("design:type",Object)],Gu.prototype,"verticalAlign",void 0);_.E([_.C(),_.c("design:type",Object)],Gu.prototype,"autosize",void 0);_.E([_.C(),_.c("design:type",Object)],Gu.prototype,"minAutosizeWidth",void 0);_.E([_.C(),_.c("design:type",Object)],Gu.prototype,"autosizeFont",void 0);
_.E([_.V1("#entries"),_.c("design:type",Object)],Gu.prototype,"entries",void 0);_.E([_.V1("#input"),_.c("design:type",Object)],Gu.prototype,"inputEl",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Gu.prototype,"dataChanged",null);_.E([_.I_("value"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Gu.prototype,"valueChangedForBinding",null);
_.E([_.Kc("iron-overlay-opened"),_.Kc("iron-overlay-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Gu.prototype,"stopPropagation",null);_.E([_.Kc("iron-select"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Gu.prototype,"autoSizeLabel",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Gu.prototype,"label",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],Gu);
_.W(Gu,"ytd-dropdown-renderer",function(){if(mhL!==void 0)return mhL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return mhL=A},{mode:1});var Q0j;var Bx=function(){var A=_.q.apply(this,arguments)||this;A.isConstrainedList=!1;return A};
_.O(Bx,_.q);Bx.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"}}}};
Bx.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Bx.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Bx.prototype.computeViewAllHidden=function(A,Q){return A||!Q.viewAllEndpoint};
Bx.prototype.fillRestIfNoShowMore=Bx.prototype.fillRestIfNoShowMore;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],Bx.prototype,"ytLazyListBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Bx.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Bx.prototype,"isConstrainedList",void 0);_.E([_.I_("data","canShowMore"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Bx.prototype,"fillRestIfNoShowMore",null);_.E([_.h({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Bx);
_.W(Bx,"ytd-expanded-shelf-contents-renderer",function(){if(Q0j!==void 0)return Q0j;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Q0j=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var bvp;var pl=function(){return _.q.apply(this,arguments)||this};
_.O(pl,_.q);pl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pl.prototype,"data",void 0);_.E([_.h({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],pl);
_.W(pl,"ytd-feed-channel-filter-header-renderer",function(){if(bvp!==void 0)return bvp;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return bvp=A},{mode:1});var fsL;var asM;var TBY;var Px=function(){return _.q.apply(this,arguments)||this};
_.O(Px,_.q);_.d=Px.prototype;_.d.onClick=function(A){var Q,b=(Q=this.data)==null?void 0:Q.sectionEndpoint;!_.TG(_.mW(A),this.hostElement,["A".toString()])&&b&&_.Bn(this.hostElement,"yt-navigate",{endpoint:b})};
_.d.computeHasSectionEndpoint=function(A){return(A==null?void 0:A.sectionEndpoint)!==void 0};
_.d.computeShowHeaderAsLink=function(A){return(A==null?void 0:A.header)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0};
_.d.computeShowSubheaderAsLink=function(A){return(A==null?void 0:A.subheader)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0&&(A==null?void 0:A.header)===void 0};
_.d.getHeaderAsLinkClass=function(A){var Q=[],b;(A==null?0:(b=A.headerIcon)==null?0:b.iconType)&&Q.push("header-link-active");return Q.join(" ")};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Px.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Px.prototype,"data",void 0);
_.E([_.C({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],Px.prototype,"hasSectionEndpoint",void 0);_.E([_.C({computed:"computeShowHeaderAsLink(data)"}),_.c("design:type",Boolean)],Px.prototype,"showHeaderAsLink",void 0);_.E([_.C({computed:"computeShowSubheaderAsLink(data)"}),_.c("design:type",Boolean)],Px.prototype,"showSubheaderAsLink",void 0);_.E([_.h({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Px);
_.W(Px,"ytd-medical-panel-section-renderer",function(){if(TBY!==void 0)return TBY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return TBY=A},{mode:1});var Xx=function(){var A=_.q.apply(this,arguments)||this;A.isExpanded=!1;A.roundedContainer=!0;A.skipRoundingTop=!1;A.toggleExpandableSection=function(){A.isExpanded=!A.isExpanded};
return A};
_.O(Xx,_.q);
Xx.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]]"}}}}}};
Xx.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Xx.prototype.dataChanged=Xx.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Xx.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Xx.prototype,"isExpanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Xx.prototype,"roundedContainer",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Xx.prototype,"skipRoundingTop",void 0);_.E([_.C(),_.c("design:type",Object)],Xx.prototype,"toggleExpandableSection",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Xx.prototype,"dataChanged",null);_.E([_.h({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Xx);
_.W(Xx,"ytd-medical-panel-content-renderer",function(){if(asM!==void 0)return asM;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return asM=A},{mode:1});_.xo("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var SZ=function(){var A=_.q.apply(this,arguments)||this;A.roundedContainer=!0;A.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");A.hasTitle=!1;A.linkIcon="OPEN_IN_NEW";A.isDismissed=!1;return A};
_.O(SZ,_.q);
SZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
SZ.prototype.computeHasTitle=function(A){return!(A==null||!A.title)};
SZ.prototype.onClick=function(A){var Q,b=(Q=this.data)==null?void 0:Q.headerEndpoint;!_.TG(_.mW(A),this.hostElement,["BUTTON".toString()])&&b&&this.ytComponentBehavior.resolveCommand(b)};
_.Qr.Object.defineProperties(SZ.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 A;return((A=this.data)==null?void 0:A.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:A.disableBottomDivider)||!((Q=this.data)==null?0:Q.title)}}});
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],SZ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],SZ.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],SZ.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],SZ.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],SZ.prototype,"amsterdamEnabled",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.c("design:type",Object)],SZ.prototype,"hasTitle",void 0);
_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.background"),_.c("design:type",Object),_.c("design:paramtypes",[])],SZ.prototype,"background",null);_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.titleStyle"),_.c("design:type",Object),_.c("design:paramtypes",[])],SZ.prototype,"titleStyle",null);
_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.H("data.titleStyle"),_.c("design:type",Object),_.c("design:paramtypes",[])],SZ.prototype,"showLinkIcon",null);_.E([_.C(),_.c("design:type",String)],SZ.prototype,"linkIcon",void 0);_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],SZ.prototype,"hideDivider",null);
_.E([_.C({selectorArgs:["data.dismissStateEntityKey"],selector:function(A,Q){A=_.Me(A.entities,"dismissState",Q);return(A==null?void 0:A.isDismissed)||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.c("design:type",Object)],SZ.prototype,"isDismissed",void 0);_.E([_.h({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],SZ);
_.W(SZ,"ytd-info-panel-container-renderer",function(){if(fsL!==void 0)return fsL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return fsL=A},{mode:1});var dtK;_.xo("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var UI=function(){var A=_.q.apply(this,arguments)||this;A.modernTypography=_.K("web_modern_typography");return A};
_.O(UI,_.q);UI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
UI.prototype.computeStyle=function(A){return A?A:""};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.c("design:type",String)],UI.prototype,"titleStyle",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UI.prototype,"modernTypography",void 0);_.E([_.h({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],UI);
_.W(UI,"ytd-item-section-header-renderer",function(){if(dtK!==void 0)return dtK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return dtK=A},{mode:1});var FCx;var GqN,BB$=function(){return GqN!==void 0?GqN:GqN=document.createElement("template")};
document.head.appendChild(BB$().content);var pQp;_.Ll=new _.TS("VOTING_ANIMATION_CONTROLLER_TOKEN");var XQY=_.aP(function(A){var Q=A.data;var b=_.st("div"),f=_.st("div");A=_.F(_.pz("VOTE_STATUS_NONE",void 0,"FVF7mc"));var a=A.next().value,T=A.next().value,G=_.I$(Hhb,function(){var l;return(l=Q())==null?void 0:l.entityKey}),p=_.K("web_enable_voting_animation")||_.K("enable_music_web_cairo_voting_animation");
_.tz(function(){var l;((l=Q().initialState)==null?0:l.status)&&T(Q().initialState.status)});
var P=function(){var l,J,n=(J=(l=Q().initialState)==null?void 0:l.votes)!=null?J:0,t;l=(t=Q().initialState)==null?void 0:t.status;return l==="VOTE_STATUS_UPVOTED"?n-1:l==="VOTE_STATUS_DOWNVOTED"?n+1:n},U=function(){return a()==="VOTE_STATUS_UPVOTED"?P()+1:a()==="VOTE_STATUS_DOWNVOTED"?P()-1:P()},L=function(l){var J=l?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
T(J);var n=U(),t=_.fJ().resolve(_.bu(_.Ll)),g=G();g&&(l&&(g==null?0:g.upvoteDefaultButtonOnTap)?_.D3(g.upvoteDefaultButtonOnTap,{form:{element:b.value},disableClickTracking:!0}):(g==null?0:g.upvoteToggledButtonOnTap)&&_.D3(g.upvoteToggledButtonOnTap,{form:{element:b.value},disableClickTracking:!0}));var e;l=(e=g==null?void 0:g.enableOptimisticReordering)!=null?e:Q().enableOptimisticReordering;p&&t&&Q().itemId&&l&&PDx(t,Q().itemId,n,J)},M=function(l){var J=l?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
T(J);var n=U(),t=_.fJ().resolve(_.bu(_.Ll)),g=G();g&&(l&&(g==null?0:g.downvoteDefaultButtonOnTap)?_.D3(g.downvoteDefaultButtonOnTap,{form:{element:f.value},disableClickTracking:!0}):(g==null?0:g.downvoteToggledButtonOnTap)&&_.D3(g.downvoteToggledButtonOnTap,{form:{element:f.value},disableClickTracking:!0}));var e;l=(e=g==null?void 0:g.enableOptimisticReordering)!=null?e:Q().enableOptimisticReordering;p&&t&&Q().itemId&&l&&PDx(t,Q().itemId,n,J)};
A={};A=_.O4("ytVotingViewModelVoteCount",(A.ytVotingViewModelVoteCountDisabled=function(){return Q().isDisabled},A));
return _.X("voting-view-model",{class:"ytVotingViewModelHost"},_.X("div",{el:b},_.X(_.WL,{data:function(){var l=_.V(Q().upvoteButton,_.R$);return{toggleButtonViewModel:Object.assign({},l,{isToggled:a()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(l){return _.X(_.eq,{data:l.data,
onToggle:L})}})),_.X("div",{class:A},function(){var l,J,n;
return a()==="VOTE_STATUS_UPVOTED"?(l=Q().initialState)==null?void 0:l.compactVotesUpvoted:a()==="VOTE_STATUS_DOWNVOTED"?(J=Q().initialState)==null?void 0:J.compactVotesDownvoted:(n=Q().initialState)==null?void 0:n.compactVotes}),_.X("div",{el:f},_.X(_.WL,{data:function(){var l=_.V(Q().downvoteButton,_.R$);
return{toggleButtonViewModel:Object.assign({},l,{isToggled:a()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(l){return _.X(_.eq,{data:l.data,
onToggle:M})}})))},"Rb");_.pE(_.aP(function(A){var Q=A.data;return _.X("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.X("div",{class:_.O4("ytEngagementBarViewModelEngagementBarWrapper",A.className)},_.X(_.WL,{data:function(){return Q().actions}},{votingViewModel:XQY})))},"Sb"),"engagement-bar-view-model",{props:{data:_.Qf,
className:_.Qf}});var MD=function(){var A=_.q.apply(this,arguments)||this;A.playlistVotingAnimationEnabled=_.K("web_enable_voting_animation");A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;return A};
_.O(MD,_.q);_.d=MD.prototype;_.d.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"}}}};
_.d.canReorderChanged=function(){this.persistentDragHandle=_.K("kevlar_playlist_drag_handles")&&this.canReorder};
_.d.onDrag=function(){if(this.thumbnail){var A=_.Bj(this.thumbnail).querySelector("yt-image");A&&(A.shouldRenderLazy=!1)}};
_.d.onMenuOverlayChanged=function(A,Q){this.menuOpened=Q};
_.d.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.d.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.d.onContentsTap=function(A){var Q,b=(Q=this.data)==null?void 0:Q.serviceEndpoints;if(b&&b.length===1&&_.V(b[0],gei)&&!_.TG(_.mW(A),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(b[0]);else{var f;(Q=(f=this.data)==null?void 0:f.navigationEndpoint)&&_.K("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?SQN(_.fJ().resolve(_.zb),Q):(_.kg().playlistSuggestionsShelfActivation=
!0,_.UtN(_.fJ().resolve(_.zb),Q)):Q&&!_.TG(_.mW(A),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.K("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Bn(this.hostElement,"yt-navigate",{endpoint:Q}):this.ytComponentBehavior.resolveCommand(Q))}};
_.d.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.d.computeThumbnailWidth=function(A){return A==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.d.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=hGb(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))}};
_.d.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.d.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.d.dataChanged=function(){if(this.data){var A,Q,b,f=((A=this.downloadRenderData)==null?void 0:A.badges)&&((Q=this.downloadRenderData)==null?void 0:Q.badges)!==((b=this.data)==null?void 0:b.badges),a,T,G;A=((a=this.downloadRenderData)==null?void 0:a.thumbnailOverlays)&&((T=this.downloadRenderData)==null?void 0:T.thumbnailOverlays)!==((G=this.data)==null?void 0:G.thumbnailOverlays);(!this.downloadRenderData||f||A)&&this.downloadStateChanged()}};
_.d.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var A,Q,b=(A=this.data.menu)==null?void 0:(Q=A.menuRenderer)==null?void 0:Q.items;if(b)for(A=_.F(b),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,b=void 0,_.V((b=Q.menuServiceItemRenderer)==null?void 0:b.serviceEndpoint,_.xj)){var f=b=void 0,a=void 0;Q=(b=Q)==null?void 0:(f=b.menuServiceItemRenderer)==null?void 0:(a=f.serviceEndpoint)==null?void 0:a.playlistEditEndpoint;a=f=void 0;if(b=(f=Q)==null?void 0:(a=f.actions)==null?void 0:
a[0])f=void 0,b.setVideoId=(f=this.data)==null?void 0:f.setVideoId;a=f=b=void 0;if(Q=(b=Q)==null?void 0:(f=b.clientActions)==null?void 0:(a=f[0])==null?void 0:a.playlistRemoveVideosAction)b=void 0,Q.setVideoIds=[(b=this.data)==null?void 0:b.setVideoId]}}};
_.Qr.Object.defineProperties(MD.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
MD.prototype.setVideoIdChanged=MD.prototype.setVideoIdChanged;MD.prototype.dataChanged=MD.prototype.dataChanged;MD.prototype.downloadStateChanged=MD.prototype.downloadStateChanged;MD.prototype.onMenuOverlayChanged=MD.prototype.onMenuOverlayChanged;MD.prototype.canReorderChanged=MD.prototype.canReorderChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],MD.prototype,"ytdReduxBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],MD.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],MD.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],MD.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],MD.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],MD.prototype,"canReorder",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],MD.prototype,"menuOpened",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],MD.prototype,"handleIsHovered",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],MD.prototype,"persistentDragHandle",void 0);_.E([_.C(),_.c("design:type",Object)],MD.prototype,"downloadRenderData",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.c("design:type",String)],MD.prototype,"styleType",void 0);_.E([_.C({computed:"computeThumbnailWidth(data.style)"}),_.c("design:type",Number)],MD.prototype,"thumbnailWidth",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],MD.prototype,"isDownloads",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],MD.prototype,"playlistVotingAnimationEnabled",void 0);
_.E([_.C({selector:z7,selectorArgs:["data.videoId"]}),_.c("design:type",Object)],MD.prototype,"downloadProgress",void 0);_.E([_.C(),_.c("design:type",Number)],MD.prototype,"relativeDateReference",void 0);_.E([_.C({selector:_.xL,selectorArgs:["data.videoId"]}),_.c("design:type",Object)],MD.prototype,"transferState",void 0);_.E([_.C({selector:dOY,selectorArgs:["data.videoId"]}),_.c("design:type",Object)],MD.prototype,"downloadState",void 0);
_.E([_.C({selector:uEb,selectorArgs:["data.videoId"]}),_.c("design:type",Object)],MD.prototype,"offlinePolicyAction",void 0);_.E([_.C({selector:Z2b,selectorArgs:["data.videoId"]}),_.c("design:type",Object)],MD.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.E([_.C({selector:YZU,selectorArgs:["data.videoId"]}),_.c("design:type",Object)],MD.prototype,"entityInfo",void 0);_.E([_.C({selector:_.WO}),_.c("design:type",Boolean)],MD.prototype,"miniplayerIsActive",void 0);
_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],MD.prototype,"playlistVideoId",null);_.E([_.V1("#thumbnail"),_.c("design:type",Object)],MD.prototype,"thumbnail",void 0);_.E([_.I_("canReorder"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],MD.prototype,"canReorderChanged",null);
_.E([_.Kc("yt-menu-overlay-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Boolean]),_.c("design:returntype")],MD.prototype,"onMenuOverlayChanged",null);_.E([_.I_("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],MD.prototype,"downloadStateChanged",null);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],MD.prototype,"dataChanged",null);_.E([_.I_("data.setVideoId"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],MD.prototype,"setVideoIdChanged",null);_.E([_.h({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],MD);
_.W(MD,"ytd-playlist-video-renderer",function(){if(pQp!==void 0)return pQp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);A.content.insertBefore(BB$().content.cloneNode(!0),A.content.firstChild);return pQp=A},{mode:1});var LCL;var ls=function(){return _.q.apply(this,arguments)||this};
_.O(ls,_.q);_.E([_.C(),_.c("design:type",Object)],ls.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ls.prototype,"rendererBehavior",void 0);_.E([_.h({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],ls);
_.W(ls,"ytd-premium-browse-footer-renderer",function(){if(LCL!==void 0)return LCL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return LCL=A},{mode:1});var MgN;var Kl=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.O(Kl,_.q);_.d=Kl.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.handleDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.computeHeaderLogoThumbnail=function(A,Q){if(A)return Q?A.darkLogo:A.lightLogo};
_.d.computeHeaderLogoHeight=function(A,Q){var b,f,a;return(A=(b=this.computeHeaderLogoThumbnail(A,Q))==null?void 0:(f=b.thumbnails)==null?void 0:(a=f[0])==null?void 0:a.height)&&A%31===0?"31":"24"};
_.d.computeHeaderLogoMarginBottom=function(A,Q){return this.computeHeaderLogoHeight(A,Q)==="24"?"0":"-7"};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Kl.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Kl.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],Kl.prototype,"isDarkTheme",void 0);_.E([_.C({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.c("design:type",Object)],Kl.prototype,"themeLogo",void 0);
_.E([_.C({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.c("design:type",String)],Kl.prototype,"logoHeight",void 0);_.E([_.C({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.c("design:type",String)],Kl.prototype,"logoMarginBottom",void 0);_.E([_.h({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Kl);
_.W(Kl,"ytd-primetime-promo-header-renderer",function(){if(MgN!==void 0)return MgN;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return MgN=A},{mode:1});var ls$;var ivK=_.aP(function(A){var Q=_.IY(function(a){var T;(T=A.onClick)==null||T.call(A,a)}),b={},f={};
return _.X("yt-shelf-header-layout",{class:_.O4("shelf-header-layout-wiz",(b["shelf-header-layout-wiz--disable-horizontal-padding"]=A.disableHorizontalPadding,b["shelf-header-layout-wiz--disable-vertical-padding"]=A.disableVerticalPadding,b["shelf-header-layout-wiz--responsive"]=A.useResponsiveLayout,b["shelf-header-layout-wiz--narrow"]=function(){var a,T;return((a=A.useResponsiveLayout)==null?void 0:a.call(A))&&((T=A.forceSmallLayout)==null?void 0:T.call(A))},b["shelf-header-layout-wiz--is-overlay"]=
A.isOverlay,b["shelf-header-layout-wiz--tappable"]=!!A.onClick,b)),
"on:click":Q,tabindex:function(){var a;return((a=A.isInteractive)==null?0:a.call(A))?0:void 0}},_.X(_.S,{cond:A.leadingIcon,
then:function(a){return _.X("div",{class:"shelf-header-layout-wiz__leading-icon"},_.X(_.oY,{icon:a}))},
else:function(){return _.X(_.S,{cond:A.hasLeadingImage,then:function(){var a,T={};return _.X("div",{class:_.O4("shelf-header-layout-wiz__leading-image",(T["shelf-header-layout-wiz__leading-image--circular-image"]=A.circularImage,T))},(a=A.leadingImage)==null?void 0:a.call(A))}})}}),_.X("div",{class:"shelf-header-layout-wiz__label-container"},_.X(_.S,{cond:A.hasSuperlabel,
then:function(){var a;return _.X("div",{class:"shelf-header-layout-wiz__superlabel"},(a=A.superlabel)==null?void 0:a.call(A))}}),_.X("div",{class:"shelf-header-layout-wiz__title-row"},_.X(KCK,{text:A.title,
className:_.O4("shelf-header-layout-wiz__title",(f["shelf-header-layout-wiz__title--small-title"]=A.forceSmallLayout,f)),tagLevel:A.tagLevel}),_.X(_.S,{cond:A.hasDetail,then:function(){var a;return _.X("div",{class:"shelf-header-layout-wiz__detail"},(a=A.detail)==null?void 0:a.call(A))}})),_.X(_.S,{cond:A.hasSublabel,
then:function(){var a;return _.X("div",{class:"shelf-header-layout-wiz__sublabel"},(a=A.sublabel)==null?void 0:a.call(A))}})),_.X(_.S,{cond:A.hasTrailingActions,
then:function(){var a;return _.X("div",{class:"shelf-header-layout-wiz__trailing-actions"},(a=A.trailingActions)==null?void 0:a.call(A))}}))},"Tb");
ivK.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var KCK=_.aP(function(A){var Q=A.text;var b=A.className;var f=A.tagLevel;return _.X(_.I8,null,_.X(_.nH,{when:function(){return(f==null?void 0:f())===0}},function(){return _.X("h2",{class:b},Q())}),_.X(_.nH,{when:function(){return(f==null?void 0:f())===1}},function(){return _.X("h3",{class:b},Q())}),_.X(_.nH,{when:function(){return(f==null?void 0:f())===2}},function(){return _.X("h4",{class:b},Q())}),_.X(_.kQ,null,function(){return _.X("h2",{class:b},Q())}))},"Ub");var Ovp,JmY,Vgx;_.is=_.aP(function(A){var Q=A.className;var b=A.data;var f=A.disableHorizontalPadding;var a=A.disableVerticalPadding;var T=A.forceSmallLayout;var G=A.useResponsiveLayout;A=A.isOverlay;return _.X("yt-section-header-view-model",{class:_.O4("ytSectionHeaderViewModelHost",Q),style:_.qM({"background-color":function(){return CXi(b().backgroundColor)?_.w6(CXi(b().backgroundColor)):void 0}})},_.X(ivK,{hasDetail:!1,
title:function(){return _.X(_.Rb,{text:function(){return b().headline}})},
hasTitle:!0,sublabel:function(){return _.X(JmY,{data:b})},
hasSublabel:function(){return!!b().sublabel||!!b().bottomBadge},
superlabel:function(){return _.X(Vgx,{data:b})},
hasSuperlabel:function(){return!!b().superlabel||!!b().topBadge},
leadingImage:function(){return _.X(Ovp,{leadingAccessory:function(){return b().leadingAccessory}})},
hasLeadingImage:function(){return!!b().leadingAccessory},
trailingActions:function(){return _.X(_.WL,{data:function(){return b().trailingActions}},{flexibleActionsViewModel:_.WF})},
hasTrailingActions:function(){return!!b().trailingActions},
disableHorizontalPadding:f,disableVerticalPadding:a,forceSmallLayout:T,useResponsiveLayout:G,isOverlay:A,isInteractive:function(){return!!_.wz(b().rendererContext)},
onClick:function(p){if(_.uJ(b().rendererContext)){var P=_.wz(b().rendererContext);P&&_.Z3(P,{form:{element:p.target,event:p}})}}}))},"Vb");
Ovp=_.aP(function(A){var Q=A.leadingAccessory;return _.X(_.bd,null,_.X(_.S,{cond:function(){var b;return(b=Q().image)!=null?b:_.mm(Q().themedImage)},
then:function(b){return _.X(_.aY,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.X(_.S,{cond:function(){return _.V(Q().avatar,_.yh)},
then:function(b){return _.X(_.Wm,{data:b})}}))},"Wb");
JmY=_.aP(function(A){var Q=A.data;return _.X(_.bd,null,_.X(_.S,{cond:function(){return _.V(Q().bottomBadge,rXy)},
then:function(b){var f={};return _.X(_.Xb,{data:b,class:_.O4((f.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!b()&&!!Q().sublabel},f))})}}),_.X(_.S,{cond:function(){return Q().sublabel},
then:function(b){return _.X(_.Rb,{text:b})}}))},"Xb");
Vgx=_.aP(function(A){var Q=A.data;return _.X(_.bd,null,_.X(_.S,{cond:function(){return _.V(Q().topBadge,rXy)},
then:function(b){var f={};return _.X(_.Xb,{data:b,class:_.O4((f.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!b()&&!!Q().superlabel},f))})}}),_.X(_.S,{cond:function(){return Q().superlabel},
then:function(b){return _.X(_.Rb,{text:b})}}))},"Yb");_.pE(_.is,"yt-section-header-view-model",{props:{data:_.Qf,className:_.Qf,disableHorizontalPadding:_.Qf,disableVerticalPadding:_.Qf,forceSmallLayout:_.Qf,useResponsiveLayout:_.Qf,isOverlay:_.Qf}});_.xo("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var J6=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.O(J6,_.q);_.d=J6.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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"}}}};
_.d.onDataChange=function(){var A=this;_.mL(this,function(){A.updateItemVisibility()})};
_.d.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A,this.updateItemVisibility())};
_.d.updateItemVisibility=function(){var A=this;this.data&&this.data.panels&&_.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(Q,b){Q.hidden=b>A.elementsPerRow-1})};
_.d.requestElementsPerRow=function(){_.Bn(this.hostElement,"yt-request-elements-per-row")};
J6.prototype.onDataChange=J6.prototype.onDataChange;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],J6.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],J6.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],J6.prototype,"data",void 0);_.E([_.C({value:3}),_.c("design:type",Number)],J6.prototype,"elementsPerRow",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],J6.prototype,"onDataChange",null);_.E([_.h({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],J6);
_.W(J6,"ytd-primetime-promo-renderer",function(){if(ls$!==void 0)return ls$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ls$=A},{mode:1});var nhW;var V8=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return A};
_.O(V8,_.q);V8.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
V8.prototype.handleButtonRefreshAction=function(A){if(A=_.V(A,tEY))this.set("data.button",A.membershipButton),this.notifyPath("data.button")};
_.Qr.Object.defineProperties(V8.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.avatars)==null?void 0:Q.slice(0,8))||[]}}});
_.E([_.C(),_.c("design:type",Object)],V8.prototype,"data",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],V8.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],V8.prototype,"rendererBehavior",void 0);_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],V8.prototype,"avatars",null);
_.E([_.h({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],V8);
_.W(V8,"ytd-recognition-shelf-renderer",function(){if(nhW!==void 0)return nhW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return nhW=A},{mode:1});var kqN;var Is9;var OI=function(){var A=_.q.apply(this,arguments)||this;A.modernButtons=_.K("web_modern_buttons");return A};
_.O(OI,_.q);_.d=OI.prototype;
_.d.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]]"}}}}}};
_.d.dataChanged=function(){this.collapsed=!0};
_.d.computeVisibleItems=function(A,Q){return A!==void 0&&A.items?Q?A.items.slice(0,this.data.collapsedItemCount):A.items:[]};
_.d.computeHideShowMore=function(A,Q,b){return A>=Q||!b};
_.d.computeHideShowAll=function(A,Q,b){return!(A&&Q)||b};
_.d.onMoreClick=function(){this.collapsed=!1};
_.Qr.Object.defineProperties(OI.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.K("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Br("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.K("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
OI.prototype.dataChanged=OI.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],OI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],OI.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],OI.prototype,"isSearch",void 0);
_.E([_.C({computed:"computeVisibleItems(data,collapsed)"}),_.c("design:type",Array)],OI.prototype,"visibleItems",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],OI.prototype,"collapsed",void 0);_.E([_.C({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.c("design:type",Boolean)],OI.prototype,"hideShowMore",void 0);
_.E([_.C({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.c("design:type",Boolean)],OI.prototype,"hideShowAll",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],OI.prototype,"modernButtons",void 0);_.E([_.H("isSearch"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OI.prototype,"typographyBump",null);
_.E([_.H("isSearch"),_.c("design:type",Object),_.c("design:paramtypes",[])],OI.prototype,"lockupExperiments",null);_.E([_.H("isSearch"),_.c("design:type",String),_.c("design:paramtypes",[])],OI.prototype,"thumbnailWidth",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OI.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],OI);
_.W(OI,"ytd-vertical-list-renderer",function(){if(Is9!==void 0)return Is9;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Is9=A},{mode:1});var HvK=_.sC(["#"]);_.xo("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var nl=function(){var A=_.q.apply(this,arguments)||this;A.isConstrainedList=!1;A.modernTypography=_.K("web_modern_typography");return A};
_.O(nl,_.q);_.d=nl.prototype;
_.d.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"}}}};
_.d.computeThumbnailStyle=function(A){return A||""};
_.d.computePlaceAnnotationUnderTitle=function(){var A;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((A=this.data)==null?void 0:A.thumbnailStyle)||"")};
_.d.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.mse(HvK)};
_.d.computeIsPromoShelf=function(A){var Q;return(A=A==null?void 0:(Q=A[0])==null?void 0:Q.metadataBadgeRenderer)?A.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.d.computePlaceBadgeBesideTitle=function(A){var Q;return(A==null?0:(Q=A[0])==null?0:Q.metadataBadgeRenderer)?!this.computeIsPromoShelf(A):!1};
_.d.computeMenuIcon=function(A){return this.computeIsPromoShelf(A)?"yt-icons:more_vert":"yt-icons:more"};
_.d.onDataChange=function(){var A,Q;((A=this.data)==null?0:(Q=A.content)==null?0:Q.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.d.onLockupRequested=function(A){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&A.detail&&A.detail.videoIds){for(var Q=this.data.content.gridRenderer.items,b=new Set,f=_.F(A.detail.videoIds),a=f.next();!a.done;a=f.next())b.add(a.value);A.detail.returnValue=Q.filter(function(T){return T.gridVideoRenderer&&T.gridVideoRenderer.videoId&&b.has(T.gridVideoRenderer.videoId)}).map(function(T){return T.gridVideoRenderer})}};
_.d.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
nl.prototype.onLockupRequested=nl.prototype.onLockupRequested;nl.prototype.onDataChange=nl.prototype.onDataChange;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],nl.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],nl.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.eI),_.c("design:type",Object)],nl.prototype,"ironResizableBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],nl.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],nl.prototype,"isSearch",void 0);_.E([_.C(),_.c("design:type",Object)],nl.prototype,"isConstrainedList",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("kevlar_fluid_dismiss")}}),
_.c("design:type",Boolean)],nl.prototype,"enableFluidDismiss",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.c("design:type",String)],nl.prototype,"thumbnailStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nl.prototype,"modernTypography",void 0);_.E([_.C({computed:"computeMenuIcon(data.badges)"}),_.c("design:type",String)],nl.prototype,"menuIcon",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nl.prototype,"onDataChange",null);_.E([_.Kc("yt-lockup-requested"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nl.prototype,"onLockupRequested",null);_.E([_.h({is:"ytd-shelf-renderer",disableElementRegistration:!0})],nl);
_.W(nl,"ytd-shelf-renderer",function(){if(kqN!==void 0)return kqN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return kqN=A},{mode:1});var CD9;var kx=function(){return _.q.apply(this,arguments)||this};
_.O(kx,_.q);kx.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Qr.Object.defineProperties(kx.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kx.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],kx.prototype,"isPlaylist",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],kx.prototype,"isClipList",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],kx.prototype,"isPlaylistPageWithFilters",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],kx.prototype,"hasTitle",null);_.E([_.C(),_.H("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.c("design:type",Object),_.c("design:paramtypes",[])],kx.prototype,"isRightAligned",null);
_.E([_.h({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],kx);
_.W(kx,"ytd-sort-filter-header-renderer",function(){if(CD9!==void 0)return CD9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return CD9=A},{mode:1});var qQp;var Ih=function(){var A=_.q.apply(this,arguments)||this;A.enableRightArrowHidden=_.K("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return A};
_.O(Ih,_.q);Ih.prototype.attached=function(){var A=this;this.enableRightArrowHidden&&(this.JSC$16263_throttledOnResize=new _.Ac(function(){var Q;(Q=A.ytdHorizontalListBehavior)==null||Q.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var Q;
(Q=A.JSC$16263_throttledOnResize)==null||Q.fire()}),this.resizeObserver.observe(this.hostElement))};
Ih.prototype.detached=function(){if(this.enableRightArrowHidden){var A;(A=this.resizeObserver)==null||A.disconnect();var Q;(Q=this.JSC$16263_throttledOnResize)==null||Q.dispose()}};
Ih.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]]"}}}}}};
Ih.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Qr.Object.defineProperties(Ih.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.K("enable_creator_details_shelf_m2")){var A=[],Q;((Q=this.data)==null?0:Q.creatorVideosButton)&&A.push(this.data.creatorVideosButton);var b;((b=this.data)==null?0:b.creatorAboutButton)&&A.push(this.data.creatorAboutButton);Q=_.F(this.data.creatorCustomUrlButtons||[]);for(b=Q.next();!b.done;b=Q.next())A.push(b.value);return A}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.K("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.pa.YtdHorizontalListBehavior),_.c("design:type",Object)],Ih.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ih.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Ih.prototype,"engagementPanel",void 0);
_.E([_.C(),_.c("design:type",Object)],Ih.prototype,"enableRightArrowHidden",void 0);_.E([_.H("enableRightArrowHidden","atEnd"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Ih.prototype,"hideRightArrow",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ih.prototype,"creatorCustomUrlButtons",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data","creatorCustomUrlButtons"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Ih.prototype,"showCreatorCustomUrlButtons",null);_.E([_.H("showCreatorCustomUrlButtons"),_.c("design:type",Number),_.c("design:paramtypes",[])],Ih.prototype,"channelAvatarSize",null);_.E([_.h({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Ih);
_.W(Ih,"ytd-video-description-infocards-section-renderer",function(){if(qQp!==void 0)return qQp;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return qQp=A},{mode:_.UG("kevlar_poly_si_batch_j067")?1:2});var ohr;var Hx=function(){return _.q.apply(this,arguments)||this};
_.O(Hx,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Hx.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.infoIcon)"}),_.c("design:type",Object)],Hx.prototype,"infoIcon",void 0);_.E([_.h({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Hx);
_.W(Hx,"ytd-eom-settings-disclaimer-renderer",function(){if(ohr!==void 0)return ohr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ohr=A},{mode:1});var tgL;var Cl=function(){return _.q.apply(this,arguments)||this};
_.O(Cl,_.q);_.Qr.Object.defineProperties(Cl.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.suppressPaddingDisclaimer)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Cl.prototype,"componentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Cl.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Cl.prototype,"suppressPaddingDisclaimer",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Cl);
_.W(Cl,"ytd-product-list-header-renderer",function(){if(tgL!==void 0)return tgL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return tgL=A},{mode:1});var rmN;var qD=function(){return _.q.apply(this,arguments)||this};
_.O(qD,_.q);qD.prototype.computeThumbnailStyle=function(A){if(A&&(A=_.zx(A)))return"background-color:"+A+";"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qD.prototype,"rendererBehaviors",void 0);_.E([_.C(),_.c("design:type",Object)],qD.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],qD);
_.W(qD,"ytd-hashtag-tile-renderer",function(){if(rmN!==void 0)return rmN;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rmN=A},{mode:1});var j0Y;var oh=function(){return _.q.apply(this,arguments)||this};
_.O(oh,_.q);oh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],oh.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],oh);
_.W(oh,"ytd-sponsorships-alert-renderer",function(){if(j0Y!==void 0)return j0Y;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return j0Y=A},{mode:1});var Rlv;var t6=function(){return _.q.apply(this,arguments)||this};
_.O(t6,_.q);t6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Qr.Object.defineProperties(t6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.K("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.K("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.E([_.I(_.wS),_.c("design:type",Object)],t6.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],t6.prototype,"ytdLockupBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.E([_.C({selector:_.uc}),_.c("design:type",Object)],t6.prototype,"isGridViewEnabled",void 0);
_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],t6.prototype,"watchFeedBigThumbs",null);_.E([_.H("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.c("design:type",String),_.c("design:paramtypes",[])],t6.prototype,"thumbnailWidth",null);_.E([_.C(),_.c("design:type",Object)],t6.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],t6);
_.W(t6,"ytd-compact-movie-renderer",function(){if(Rlv!==void 0)return Rlv;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Rlv=A},{mode:1});var ghM;var elp;var hlv=_.vG("HTML_DIR")==="rtl",ra=function(){var A=_.q.apply(this,arguments)||this;A.engagementPanel=!1;A.maxLines=2;A.expandButtonOffset=0;A.showExpandButton=!1;A.isTruncated=!1;A.isExpanded=!1;A.currentSnippetType=2;A.alwaysShowExpandButton=!1;A.JSC$16280_lastWidth=NaN;A.observer=null;A.left=0;A.right=0;A.mid=0;A.longestSnippetLength=0;A.isFinalSnippet=!1;A.isFirstMutation=!1;A.isResetMutation=!1;A.OVERFLOW_THRESHOLD=5;return A};
_.O(ra,_.q);_.d=ra.prototype;_.d.onClick=function(A){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;if((Q=window.getSelection())==null||!Q.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.d.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.d.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.d.updateTextOnSnippetTypeChange=function(){_.K("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.d.setUpBinarySearch=function(A){A=A*this.maxLines/8;this.left=0;var Q,b;this.right=Math.min(A*2,(b=(Q=this.simpleText)==null?void 0:Q.length)!=null?b:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.d.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.d.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Wv(new _.IO("AttributedSnippet is empty when the description is not empty",this.text))};
_.d.mutationCallback=function(){if(this.observer!=null){var A=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var Q=Math.floor(A*this.maxLines/8);this.setSnippetText(this.text,Q);Q!==0||this.attributedTextIsEmpty()||_.Wv(new _.IO("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;A=A*this.maxLines/8;this.left=0;var b;this.right=Math.min(A*2,(b=(Q=this.simpleText)==null?void 0:Q.length)!=null?b: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)}}};
_.d.mutationObserve=function(A){var Q=this;this.observer||(this.observer=new MutationObserver(function(){Q.mutationCallback()}));
this.observer.observe(A,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.d.attached=function(){var A=this;_.mL(this,function(){A.resize()})};
_.d.isExpandedChanged=function(){_.Bn(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.d.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)};
_.d.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var A="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((hlv?"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",A);this.snippetContainer.style.setProperty("mask-image",
A)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(hlv?"right":"left",this.expandButtonOffset+"px")};
_.d.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.d.setSnippetText=function(A,Q){A||(A={});if(_.QR(A)){var b=mX(A,Q);b.attachmentRuns||b.commandRuns||b.decorationRuns||b.styleRuns||b.alignment||b.lineBreakMode?this.attributedSnippetTextEl?(_.K("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=mX(A,Q),this.attributedSnippetTextEl.headerRuns=xmC(Q,this.headerRuns)):this.attributedSnippetText={data:mX(A,Q),headerRuns:xmC(Q,this.headerRuns)},this.currentSnippetType=0):_.Wv(new _.IO("Tried to set snippet text when HTML element was null",
A)):(this.plainSnippetText.textContent=N7(A.content||"",Q),this.currentSnippetType=2)}else{a:{b=qDJ(A,Q);if(b.runs){b=_.F(b.runs);for(var f=b.next();!f.done;f=b.next())if(f=f.value,f.bold||f.deemphasize||f.italics||f.strikethrough||f.textColor||f.navigationEndpoint||_.V(f,c8)){b=!0;break a}}b=!1}b?this.formattedSnippetText?(this.formattedSnippetText.text=qDJ(A,Q),this.currentSnippetType=1):_.Wv(new _.IO("Tried to set snippet text when HTML element was null",A)):(this.plainSnippetText.textContent=
N7(_.mO(A),Q),this.currentSnippetType=2)}};
_.d.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.d.attributedTextIsEmpty=function(){var A=this.text;if(!_.QR(A))return!0;var Q;return((Q=A.content)==null?void 0:Q.length)===0?!0:!1};
_.d.resize=function(A){if(this.snippetText){if(A===void 0?0:A)this.JSC$16280_lastWidth=NaN;var Q=this.hostElement.offsetWidth;if(Q!==this.JSC$16280_lastWidth&&!this.isExpanded)if(this.JSC$16280_lastWidth=Q,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;A=0;var b,f;Q=Math.min(Q*this.maxLines/8*2,(f=(b=this.simpleText)==null?void 0:b.length)!=null?f:0)-1;for(b=0;A<=Q;)f=Math.floor(A+(Q-A)/2),this.setSnippetText(this.text,f),this.isOverflowing()?Q=f-1:(A=f+1,b=f);this.setSnippetText(this.text,b);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.d.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.d.onExpandClick=function(){var A=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.K("inline_expander_reset_focus_killswitch")||_.mL(this,function(){var Q;((Q=_.fJ().resolve(_.bu(_.L3)))==null?0:Q.isKeyBoardInUse())&&_.Dg(A.hostElement)});
_.Bn(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.d.onCollapseClick=function(){this.collapse();_.Bn(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.d.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.d.computeExpandButtonOffset=function(){var A=this.expandSizer;return A?hlv?A.offsetParent?A.offsetParent.offsetWidth-A.offsetWidth-A.offsetLeft:0:A.offsetLeft:0};
_.Qr.Object.defineProperties(ra.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.QR(this.text)?this.text.content||"":_.mO(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 _.QR(this.text)?!0:this.text&&_.K("web_replace_formatted_with_attributed_string")&&XfJ(this.text)?(this.text=_.xz(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}}});
ra.prototype.onTextChanged=ra.prototype.onTextChanged;ra.prototype.updateMaskAndExpandButtonOffset=ra.prototype.updateMaskAndExpandButtonOffset;ra.prototype.updateSnippetContainerMaxHeight=ra.prototype.updateSnippetContainerMaxHeight;ra.prototype.isExpandedChanged=ra.prototype.isExpandedChanged;ra.prototype.updateTextOnSnippetTypeChange=ra.prototype.updateTextOnSnippetTypeChange;ra.prototype.updateIsFormattedExpanded=ra.prototype.updateIsFormattedExpanded;ra.prototype.updateIsAttributedExpanded=ra.prototype.updateIsAttributedExpanded;
ra.prototype.onClick=ra.prototype.onClick;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ra.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ra.prototype,"text",void 0);_.E([_.C(),_.c("design:type",Array)],ra.prototype,"headerRuns",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ra.prototype,"engagementPanel",void 0);_.E([_.C(),_.c("design:type",Object)],ra.prototype,"maxLines",void 0);
_.E([_.C(),_.c("design:type",String)],ra.prototype,"expandLabel",void 0);_.E([_.C(),_.c("design:type",String)],ra.prototype,"collapseLabel",void 0);_.E([_.C(),_.c("design:type",Object)],ra.prototype,"expandCommand",void 0);_.E([_.C(),_.c("design:type",Object)],ra.prototype,"expandButtonOffset",void 0);_.E([_.H("text"),_.c("design:type",String),_.c("design:paramtypes",[])],ra.prototype,"simpleText",null);
_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ra.prototype,"onClick",null);_.E([_.H("text","isExpanded"),_.c("design:type",Object),_.c("design:paramtypes",[])],ra.prototype,"expandedText",null);_.E([_.H("headerRuns","isExpanded"),_.c("design:type",Object),_.c("design:paramtypes",[])],ra.prototype,"expandedHeaderRuns",null);
_.E([_.H("text"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ra.prototype,"hasAttributedStringText",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ra.prototype,"showExpandButton",void 0);_.E([_.H("collapseLabel","isExpanded"),_.c("design:type",Object),_.c("design:paramtypes",[])],ra.prototype,"showCollapseButton",null);_.E([_.C(),_.c("design:type",Object)],ra.prototype,"isTruncated",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ra.prototype,"isExpanded",void 0);_.E([_.C(),_.c("design:type",Boolean)],ra.prototype,"isAttributedExpanded",void 0);_.E([_.iN("isExpanded","hasAttributedStringText"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ra.prototype,"updateIsAttributedExpanded",null);_.E([_.C(),_.c("design:type",Boolean)],ra.prototype,"isFormattedExpanded",void 0);
_.E([_.iN("isExpanded","hasAttributedStringText"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ra.prototype,"updateIsFormattedExpanded",null);_.E([_.C(),_.c("design:type",Number)],ra.prototype,"currentSnippetType",void 0);_.E([_.H("currentSnippetType"),_.c("design:type",Object),_.c("design:paramtypes",[])],ra.prototype,"useAttributedSnippet",null);
_.E([_.H("currentSnippetType"),_.c("design:type",Object),_.c("design:paramtypes",[])],ra.prototype,"useFormattedSnippet",null);_.E([_.H("currentSnippetType"),_.c("design:type",Object),_.c("design:paramtypes",[])],ra.prototype,"usePlainSnippet",null);_.E([_.C(),_.c("design:type",Object)],ra.prototype,"alwaysShowExpandButton",void 0);_.E([_.iN("currentSnippetType"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ra.prototype,"updateTextOnSnippetTypeChange",null);
_.E([_.C(),_.c("design:type",Object)],ra.prototype,"attributedSnippetText",void 0);_.E([_.V1("#snippet"),_.c("design:type",HTMLElement)],ra.prototype,"snippetContainer",void 0);_.E([_.V1("#snippet-text"),_.c("design:type",HTMLElement)],ra.prototype,"snippetText",void 0);_.E([_.V1("#plain-snippet-text"),_.c("design:type",HTMLElement)],ra.prototype,"plainSnippetText",void 0);_.E([_.V1("#formatted-snippet-text"),_.c("design:type",Object)],ra.prototype,"formattedSnippetText",void 0);
_.E([_.V1("#attributed-snippet-text"),_.c("design:type",Object)],ra.prototype,"attributedSnippetTextEl",void 0);_.E([_.V1("#expand"),_.c("design:type",HTMLElement)],ra.prototype,"expandButton",void 0);_.E([_.V1("#expand-sizer"),_.c("design:type",HTMLElement)],ra.prototype,"expandSizer",void 0);_.E([_.I_("isExpanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ra.prototype,"isExpandedChanged",null);
_.E([_.iN("isExpanded","maxLines"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ra.prototype,"updateSnippetContainerMaxHeight",null);_.E([_.iN("isTruncated","showExpandButton","expandButtonOffset"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ra.prototype,"updateMaskAndExpandButtonOffset",null);
_.E([_.I_("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ra.prototype,"onTextChanged",null);_.E([_.h({is:"ytd-text-inline-expander",disableElementRegistration:!0})],ra);
_.W(ra,"ytd-text-inline-expander",function(){if(elp===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);elp=A}A=elp;return A},{mode:2});var jZ=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return A};
_.O(jZ,_.q);jZ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
jZ.prototype.handleUpdateDescriptionAction=function(A){if(A=_.V(A,_.f8y))if(A.attributedDescription)this.set("data.attributedDescriptionBodyText",A.attributedDescription);else if(A.description){var Q;((Q=this.data)==null?0:Q.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.xz(A.description)):this.set("data.descriptionBodyText",A.description)}};
_.Qr.Object.defineProperties(jZ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.attributedDescriptionBodyText)||!((Q=this.data)==null||!Q.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.collapsedLineCount){var Q;return(Q=this.data)==null?void 0:Q.collapsedLineCount}A=_.GP("web_watch_description_collapsed_default_lines",12);if(_.K("ww_desc_line_page_size_ks"))return A;Q=Math.round(_.HY().height*_.GP("web_watch_description_screen_height_percentage",.5)/20);return Math.max(Q,A)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return(b=(A=this.data)==null?void 0:A.descriptionBodyText)!=null?b:(Q=this.data)==null?void 0:Q.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.sourceAttributions}}});
jZ.prototype.panelContentVisibleChanged=jZ.prototype.panelContentVisibleChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],jZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],jZ.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jZ.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Boolean)],jZ.prototype,"panelContentVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],jZ.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],jZ.prototype,"shortsPanel",void 0);_.E([_.V1("#inline-expander"),_.c("design:type",Object)],jZ.prototype,"inlineExpander",void 0);
_.E([_.iN("panelContentVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jZ.prototype,"panelContentVisibleChanged",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],jZ.prototype,"hasDescriptionText",null);_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],jZ.prototype,"collapsedLines",null);
_.E([_.H("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.c("design:type",Object),_.c("design:paramtypes",[])],jZ.prototype,"descriptionText",null);_.E([_.H("data","data.headerRuns"),_.c("design:type",Object),_.c("design:paramtypes",[])],jZ.prototype,"headerRuns",null);_.E([_.H("data","data.sourceAttributions"),_.c("design:type",Object),_.c("design:paramtypes",[])],jZ.prototype,"sourceAttributions",null);
_.E([_.h({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],jZ);
_.W(jZ,"ytd-expandable-video-description-body-renderer",function(){if(ghM!==void 0)return ghM;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ghM=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var WCK;var vhr=_.aP(function(A){var Q=A.data;return _.X("factoid-renderer",{class:"ytwFactoidRendererHost"},_.X("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return Q().accessibilityText}},_.X("span",{class:"ytwFactoidRendererValue"},_.X(_.Rb,{text:function(){return Q().value}})),_.X("span",{class:"ytwFactoidRendererLabel"},_.X(_.Rb,{text:function(){return Q().label}}))))},"Zb");_.pE(vhr,"factoid-renderer",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;return _.X("upload-time-factoid-renderer",null,_.X(_.WL,{data:function(){return Q().factoid}},{factoidRenderer:vhr}))},"$b"),"upload-time-factoid-renderer",{props:{data:_.Bz}});_.pE(_.aP(function(A){var Q=A.data;return _.X("view-count-factoid-renderer",null,_.X(_.WL,{data:function(){return Q().factoid}},{factoidRenderer:vhr}))},"ac"),"view-count-factoid-renderer",{props:{data:_.Bz}});var Rh=function(){var A=_.q.apply(this,arguments)||this;A.shortsPanel=!1;A.engagementPanel=!1;A.watchWhileSdp=_.K("shorts_desktop_watch_while_sdp");return A};
_.O(Rh,_.q);Rh.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"}}}}};
_.Qr.Object.defineProperties(Rh.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var A;return(A=this.data)==null?void 0:A.channel}}});
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Rh.prototype,"componentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Rh.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Rh.prototype,"shortsPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Rh.prototype,"engagementPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Rh.prototype,"watchWhileSdp",void 0);_.E([_.H("shortsPanel","engagementPanel","data.channel"),_.c("design:type",Object),_.c("design:paramtypes",[])],Rh.prototype,"showChannelInfo",null);_.E([_.h({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Rh);
_.W(Rh,"ytd-video-description-header-renderer",function(){if(WCK!==void 0)return WCK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return WCK=A},{mode:1});var EhN;var eZ=function(){return _.q.apply(this,arguments)||this};
_.O(eZ,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],eZ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],eZ.prototype,"noPadding",void 0);_.E([_.C(),_.c("design:type",Object)],eZ.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],eZ);
_.W(eZ,"ytd-list-item-view-model",function(){if(EhN!==void 0)return EhN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return EhN=A},{mode:1});var xtN;var cmr;var zl9;var wQ9;var h6=function(){var A=_.q.apply(this,arguments)||this;A.adaptiveFullWidth=!1;A.modernButtons=_.K("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return A};
_.O(h6,_.q);h6.prototype.handleSetTimestamp_=function(A){this.data&&this.data.shortUrl&&(_.Bj(this.hostElement).querySelector("#share-url").value=A.isSet?_.yH(this.data.shortUrl,"t",A.timestamp):this.data.shortUrl)};
h6.prototype.handleSignalActionCopyShareUrl_=function(A,Q){(_.K("killswitch_copy_link_target_check")||_.Bj(this.hostElement).querySelector("#copy-button")===Q)&&this.copyUrlToClipboard()};
h6.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Bj(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
h6.prototype.computeStyle_=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],h6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],h6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.c("design:type",String)],h6.prototype,"rendererStyle",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],h6.prototype,"adaptiveFullWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],h6.prototype,"modernButtons",void 0);_.E([_.C(),_.c("design:type",Object)],h6.prototype,"buttonOverrides",void 0);_.E([_.Ec({is:"yt-copy-link-renderer",disableElementRegistration:!0})],h6);
_.W(h6,"yt-copy-link-renderer",function(){if(wQ9===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;zl9===void 0&&(zl9=document.createElement("template"));var f=zl9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);wQ9=A}A=wQ9;return A},{mode:2});_.xo("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Wx=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return A};
_.O(Wx,_.q);_.d=Wx.prototype;_.d.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.d.attached=function(){this.keyboardFocused=!1};
_.d.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var A=_.fJ().resolve(_.bu(_.L3));A&&(this.keyboardFocused=A.isKeyBoardInUse())}};
_.d.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.d.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}};
_.d.onChange_=function(){if(this.data){var A=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;A&&this.ytComponentBehavior.resolveCommand(A);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.d.handleUpdateToggleAction_=function(A){(A=_.V(A,QjM))&&this.data&&A.targetId==this.data.targetId&&this.set("data.toggled",A.toggled)};
_.d.toBoolean_=function(A){return!!A};
_.d.reset=function(){};
_.d.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("data-changed",this.data))};
_.d.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
Wx.prototype.dataChangedForBinding=Wx.prototype.dataChangedForBinding;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Wx.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Wx.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Wx.prototype,"data",void 0);_.E([_.C({computed:"computeDescription_(data.*)"}),_.c("design:type",Object)],Wx.prototype,"description_",void 0);_.E([_.C({value:function(){return!!_.fJ().resolve(_.bu(_.L3))&&_.K("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.c("design:type",Boolean)],Wx.prototype,"useKeyboardFocused",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],Wx.prototype,"keyboardFocused",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Wx.prototype,"dataChangedForBinding",null);_.E([_.Ec({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Wx);
_.W(Wx,"yt-toggle-form-field-renderer",function(){if(cmr===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;xtN===void 0&&(xtN=document.createElement("template"));var f=xtN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);cmr=A}A=cmr;return A},{mode:2});var u0$;var ZvL;var vx=function(){var A=_.q.apply(this,arguments)||this;A.isDarkTheme=!1;A.isSearch=!1;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.noTopMargin=_.K("kevlar_watch_no_top_margin");A.maskFade=_.K("web_watch_chips_mask_fade");A.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 A};
_.O(vx,_.q);_.d=vx.prototype;_.d.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}}}}}};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.d.dataChanged=function(){var A=this.getSelectedIndex();if(A>0)this.selected=A;else{this.selected=0;var Q,b;(Q=this.ytScrollableChipCloudBehavior)==null||(b=Q.reset)==null||b.call(Q)}};
_.d.getSelectedIndex=function(){var A;if((A=this.data)==null||!A.chips)return-1;A=-1;for(var Q,b=0;b<((Q=this.data)==null?void 0:Q.chips.length);b++){var f=void 0,a=void 0;if((f=this.data)==null?0:(a=f.chips[b].chipCloudChipRenderer)==null?0:a.isSelected){A=b;break}}return A};
_.d.onResize=function(){var A=this.ytScrollableChipCloudBehavior;_.mL(A,A.setContainerWidthDiff);JK(this.ytScrollableChipCloudBehavior)};
_.d.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.handleRelatedChipCommand=function(A,Q){A=this.JSC$16307_chipsSelector.indexOf(Q);A!==-1&&this.JSC$16307_chipsSelector.selectIndex(A)};
_.d.handleChipCloudChipSelectAction=function(A){A=this.JSC$16307_chipsSelector.indexOf(A);A>-1&&this.JSC$16307_chipsSelector.selectIndex(A)};
_.d.handleChipCloudChipDeselectAction=function(){var A=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16307_chipsSelector&&((A==null?0:A.continuationCommand)?_.X5(this.hostElement,[A]):(A==null?0:A.searchEndpoint)?this.ytComponentBehavior.resolveCommand(A):A&&_.ST(this.hostElement,[A],this.hostElement),this.JSC$16307_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.d.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
vx.prototype.onResize=vx.prototype.onResize;vx.prototype.dataChanged=vx.prototype.dataChanged;vx.prototype.isSearchChanged=vx.prototype.isSearchChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],vx.prototype,"actionHandlerBehavior",void 0);
_.E([_.I(_.eI),_.c("design:type",Object)],vx.prototype,"ironResizableBehavior",void 0);_.E([_.I(),_.c("design:type",iZ)],vx.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],vx.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],vx.prototype,"data",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],vx.prototype,"selected",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vx.prototype,"isDarkTheme",void 0);_.E([_.C({value:160}),_.c("design:type",Number)],vx.prototype,"scrollDistance",void 0);_.E([_.C(),_.c("design:type",Object)],vx.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vx.prototype,"darkerDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vx.prototype,"noTopMargin",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vx.prototype,"maskFade",void 0);_.E([_.V1("#chips"),_.c("design:type",Object)],vx.prototype,"JSC$16307_chipsSelector",void 0);_.E([_.iN("isSearch"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vx.prototype,"isSearchChanged",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vx.prototype,"dataChanged",null);
_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vx.prototype,"onResize",null);_.E([_.Ec({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],vx);
_.W(vx,"yt-chip-cloud-renderer",function(){if(ZvL===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;u0$===void 0&&(u0$=document.createElement("template"));var f=u0$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ZvL=A}A=ZvL;return A},{mode:2});var ymx,YQp=function(){return ymx!==void 0?ymx:ymx=document.createElement("template")};
document.head.appendChild(YQp().content);var Dty;var $tN=document.head,NBL=$tN.appendChild,s09;if(Dty===void 0){var mtY=document.createElement("template");_.k(mtY,"");mtY.content.insertBefore(YQp().content.cloneNode(!0),mtY.content.firstChild);Dty=mtY}s09=Dty;NBL.call($tN,s09.content);var AIN=_.aP(function(A){var Q=A.data;return _.X("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.X("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.X("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.X(_.S,{cond:function(){return _.mm(Q().image)},
then:function(b){return _.X("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.X(_.aY,{data:b,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.X("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.X(_.Rb,{text:function(){return Q().subtitle}})))),_.X(_.S,{cond:function(){var b;
return(b=Q())==null?void 0:b.hasBottomDivider},
then:function(){return _.X("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"bc");var QQv=_.aP(function(A){var Q=A.data;return _.X("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.X("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.X(_.WL,{data:function(){var b;return(b=Q().offerPlanDetailsItem)!=null?b:[]}},{offerPlanDetailsItemViewModel:function(b){return _.X("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.X(AIN,{data:b.data}))}})),_.X("div",null,_.X(_.S,{cond:function(){return Q().hasBottomDivider},
then:function(){return _.X("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.X("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.X("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.X("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.X("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"cc");var bZL=_.aP(function(A){var Q=A.data;A=_.F(_.pz(!1,void 0,"SpEGQd"));var b=A.next().value,f=A.next().value,a=_.IY(function(){f(!b());return!1}),T=function(){var G;
return(G=Q().offerPlanDetailsContainer)!=null?G:[]};
return _.X("lp-complex-offer-card-details-view-model",null,_.X("div",null,_.X(_.S,{cond:function(){return b()},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.X("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":a,"aria-expanded":b},_.X(_.Rb,{text:function(){return Q().expandedTitle}})),_.X("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.X(_.WL,{data:T},{offerPlanDetailsContainerViewModel:function(G){return _.X("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.X(QQv,{data:G.data}))}})),_.X("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.X(_.Rb,{text:function(){return Q().legalText}})))},
else:function(){return _.X("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":a,"aria-expanded":b},_.X(_.Rb,{text:function(){return Q().collapsedTitle}}),_.X("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.X(_.oY,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"dc");var f$9=_.aP(function(A){var Q=A.data;return _.X("lp-complex-offer-card-option-view-model",null,_.X("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.X(_.S,{cond:function(){return Q().topDividerText},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.X("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.X("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.X("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.X(_.Rb,{text:function(){return Q().topDividerText}}))))}}),_.X(_.S,{cond:function(){return Q().description},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.X(_.Rb,{text:function(){return Q().description}}))}}),_.X(_.S,{cond:function(){return Q().planPricingPrimary},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.X(_.Rb,{text:function(){return Q().planPricingPrimary}}))}}),_.X(_.S,{cond:function(){return Q().planPricingSecondary},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.X(_.Rb,{text:function(){return Q().planPricingSecondary}}))}}),_.X(_.S,{cond:function(){return Q().primaryButton},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.X(_.WL,{data:function(){return Q().primaryButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"ec");var a$x=_.aP(function(A){var Q=A.data;var b=function(){var T;return((T=Q())==null?void 0:T.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var f={},a={};return _.X("ytm-lp-complex-offer-card-view-model",null,_.X("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.X("div",{class:_.O4((A.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=b,A),"ytmLpComplexOfferCardViewModelCardContainer")},_.X(_.S,{cond:function(){var T;return(T=Q())==null?void 0:T.bannerText},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.X("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.X(_.Rb,{text:function(){return Q().bannerText}})))}}),_.X(_.S,{cond:function(){return _.mm(Q().logo)},
then:function(T){var G={};return _.X("div",{class:_.O4((G.ytmLpComplexOfferCardViewModelLogoAlignLeft=b,G),"ytmLpComplexOfferCardViewModelLogo")},_.X(_.aY,{data:T,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.X("div",{class:_.O4((f.ytmLpComplexOfferCardViewModelTitleAlignLeft=b,f),"ytmLpComplexOfferCardViewModelTitle")},_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.S,{cond:function(){var T;
return(T=Q())==null?void 0:T.subtitle},
then:function(){var T={};return _.X("div",{class:_.O4((T.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=b,T),"ytmLpComplexOfferCardViewModelSubtitle")},_.X(_.Rb,{text:function(){return Q().subtitle}}))}}),_.X(_.S,{cond:function(){return Q().planPricingPrimary},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.X(_.Rb,{text:function(){return Q().planPricingPrimary}}))}}),_.X(_.S,{cond:function(){return Q().planPricingSecondary},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.X(_.Rb,{text:function(){return Q().planPricingSecondary}}))}}),_.X(_.S,{cond:function(){return Q().purchaseButton},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.X(_.WL,{data:function(){return Q().purchaseButton}},{buttonViewModel:function(T){return _.X(_.J9,{data:T.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.X(_.S,{cond:function(){var T;
return(T=Q())==null?void 0:T.offerOptions},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.X(_.WL,{data:function(){return Q().offerOptions}},{lpComplexOfferCardOptionViewModel:f$9}))}}),_.X("div",{class:_.O4((a.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=b,a),"ytmLpComplexOfferCardViewModelLegalText")},_.X(_.Rb,{text:function(){return Q().legalText}})),_.X(_.S,{cond:function(){var T;
return(T=Q())==null?void 0:T.offerCardDetails},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.X(_.WL,{data:function(){return Q().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:bZL}))}}))))},"fc");var TR$=_.aP(function(A){var Q=A.data;var b=function(){var G;return((G=Q())==null?void 0:G.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var f={},a={},T={};return _.X("ytm-lp-complex-offer-card-section-view-model",null,_.X("div",{class:_.O4("ytmLpComplexOfferCardSectionViewModelHost")},_.X("div",{class:_.O4((A.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=b,A),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.X("div",{class:_.O4((f.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=b,f),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.X("h2",{class:_.O4((a.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
b,a),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.X(_.Rb,{text:function(){return Q().title}}))),_.X(_.S,{cond:function(){var G;
return(G=Q())==null?void 0:G.subtitle},
then:function(){var G={},p={};return _.X("div",{class:_.O4((G.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=b,G),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.X("div",{class:_.O4((p.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=b,p),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.X(_.Rb,{text:function(){return Q().subtitle}})))}}),_.X("div",{class:_.O4((T.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=b,T),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.X(_.WL,{data:function(){var G;
return(G=Q().offerPlans)!=null?G:[]}},{lpComplexOfferCardViewModel:function(G){return _.X("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.X(a$x,{data:G.data}))}})))))},"gc");var dZK=_.aP(function(A){return _.X("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.X("div",{class:"ytLpCouponBannerViewModelIcon"},_.X(_.oY,{icon:function(){return"price_tag"}})),_.X("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.X("div",{class:"ytLpCouponBannerViewModelContent"},_.X("div",{class:"ytLpCouponBannerViewModelHeading"},_.X(_.Rb,{text:function(){var Q;
return(Q=A.data())==null?void 0:Q.title}})),_.X("div",{class:"ytLpCouponBannerViewModelBody"},_.X(_.Rb,{text:function(){var Q;
return(Q=A.data())==null?void 0:Q.subtitle}})))))},"hc");
dZK.idomCompat=!0;_.EI=b4$.getInstance();var FNY;FNY=_.aP(function(A){return _.X("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":A.shouldAriaHideContent},_.X("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:A.questionId},_.X(_.Rb,{text:A.question})))},"ic");
_.GJx=_.aP(function(A){var Q=A.data;var b=A.themeOverride;A=_.F(_.pz(!1,void 0,"ljTVPd"));var f=A.next().value,a=A.next().value;A=_.IY(function(){a(!f());return!1});
var T=function(){return f()?"EXPAND_LESS":"EXPAND_MORE"},G=("faq-container"+_.WX(_.EI)).toString(),p="faq-question-and-answers-section-question"+_.WX(_.EI),P={},U={};
return _.X("faq-entry-view-model-c3",null,_.X("div",{class:_.O4("yt-lp-faq-entry-view-model",(P["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return b==null?void 0:b().useDarkTheme},P))},_.X("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":A,role:"button","aria-expanded":f,"aria-labelledby":p.toString(),"tab-index":"0"},_.X(FNY,{question:function(){return Q().question},
questionId:p,shouldAriaHideContent:!0}),_.X(_.S,{cond:function(){return f()!==void 0},
then:function(){return _.X("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.X(_.oY,{icon:T,ariaHidden:!0}),_.X("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.X("div",{class:_.O4("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(U["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!f()},U))},_.X("div",{id:G},_.X(_.Op,{each:function(){return Q().answers||[]}},function(L){return _.X("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.X(_.Rb,{text:L}))})))))},"jc");
_.GJx.idomCompat=!0;var BRx=_.aP(function(A){var Q=A.data;var b=A.themeOverride;A={};return _.X("lp-faq-section-view-model-c3",null,_.X("div",{class:_.O4("yt-lp-faq-section-view-model",(A["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(b==null||!b().useDarkTheme)},A))},_.X("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.X(_.S,{cond:function(){return Q().header},
then:function(f){return _.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.X(_.Rb,{text:f}))}}),_.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.X(_.WL,{data:function(){return Q().faqs}},{faqEntryViewModel:function(f){return _.X(_.GJx,{data:f.data,
themeOverride:b})}})),_.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.X(_.Op,{each:function(){return Q().footers||[]}},function(f){return _.X(_.Rb,{text:f})})),_.X(_.S,{cond:function(){return Q().legal},
then:function(f){return _.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.X(_.Rb,{text:f}))}}))))},"kc");
BRx.idomCompat=!0;var pI1=_.aP(function(A){var Q=A.data;var b=A.themeOverride;_.tz(function(){var G=Q().gtmId;G&&_.eN(G,_.vG("GL",""))});
var f={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var G,p,P;return(P=(G=Q().logo)==null?void 0:(p=G.accessibilityData)==null?void 0:p.label)!=null?P:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},a=_.fJ().resolve(_.bu(_.Af)),T=function(){return a&&a()||(b==null?void 0:b().useDarkTheme)};
return _.X("lp-header-section-view-model",null,_.X("div",{class:function(){var G=Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",p=Q().marginType==="LP_SECTION_MARGIN_TYPE_TOP",P=b==null?void 0:b().useDarkTheme,U=["lp-header-section-view-model"];G&&U.push("lp-header-section-view-model--ptc-layout-type");p&&U.push("lp-header-section-view-model__lp-header-section-margin");P&&U.push("lp-header-section-view-model--premium-force-dark-mode");return U.join(" ")}},_.X(_.S,{cond:function(){return Q().logo},
then:function(){return _.X("div",null,_.X(_.S,{cond:T,then:function(){return _.X(_.S,{cond:function(){var G;return(G=Q().logo)==null?void 0:G.imageDark},
then:function(G){return _.X(_.aY,Object.assign({},{data:G},f))}})},
else:function(){return _.X(_.S,{cond:function(){var G;return(G=Q().logo)==null?void 0:G.imageLight},
then:function(G){return _.X(_.aY,Object.assign({},{data:G},f))}})}}))}}),_.X(_.S,{cond:function(){return Q().title},
then:function(G){return _.X("div",{class:"lp-header-section-view-model__lp-header-title"},_.X(_.Rb,{text:G}))}}),_.X("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.X(_.S,{cond:function(){return Q().subtitles},
then:function(G){return _.X(_.Op,{each:G},function(p){return _.X("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.X(_.Rb,{text:p}))})}})),_.X(_.S,{cond:function(){return Q().additionalInfo},
then:function(G){return _.X("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.X(_.Rb,{text:G}))}}),_.X("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.X(_.S,{cond:function(){return Q().primaryButton},
then:function(G){return _.X("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.X(_.WL,{data:G},{buttonViewModel:_.J9}))}}),_.X(_.S,{cond:function(){return Q().secondaryButton},
then:function(G){return _.X("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.X(_.WL,{data:G},{buttonViewModel:_.J9}))}})),_.X(_.S,{cond:function(){return Q().otherOffersInfo},
then:function(G){return _.X("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.X(_.Rb,{text:G}))}}),_.X("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.X(_.S,{cond:function(){return Q().billingInfo},
then:function(G){return _.X(_.Op,{each:G},function(p){return _.X("div",null,_.X(_.Rb,{text:p}))})}}))))},"lc");
pI1.idomCompat=!0;var PjW=_.aP(function(A){var Q=A.data;var b=_.Q0(A.themeOverride,{useDarkTheme:!1});A={};A=_.O4("ytm-lp-headline-section-view-model",(A["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return b().useDarkTheme},A));
return _.X("lp-headline-section-view-model",null,_.X("div",{class:A},_.X("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(f){return _.X("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.X(_.Rb,{text:f}))}})))},"mc");var XIM=_.aP(function(A){var Q=A.data;var b=A.themeOverride;var f=_.fJ().resolve(_.bu(_.Af)),a=function(){return f&&f()||(b==null?void 0:b().useDarkTheme)},T=function(){var U,L;
var M=a()?(U=Q().textBackgroundImage)==null?void 0:U.imageDark:(L=Q().textBackgroundImage)==null?void 0:L.imageLight;return BfC((M==null?void 0:M.sources)||[])},G=function(){var U,L;
return a()?(U=Q().featureImage)==null?void 0:U.imageDark:(L=Q().featureImage)==null?void 0:L.imageLight},p=function(){return Q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},P=function(){var U,L;
return a()?(U=Q().logo)==null?void 0:U.imageDark:(L=Q().logo)==null?void 0:L.imageLight};
return _.X("ytm-lp-large-feature-section-view-model",null,_.X("div",{class:function(){var U=Q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",L=Q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",M=(Q().index||0)%2===1,l=b==null?void 0:b().useDarkTheme,J=["yt-lp-large-feature-section-view-model"];U?J.push("yt-lp-large-feature-section-view-model--music-feature-type"):L?J.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):M||J.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
l&&J.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return J.join(" ")}},_.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.X(_.S,{cond:G,
then:function(){return _.X(_.aY,{data:function(){return G()},
alt:function(){var U,L,M;return(M=(U=Q().featureImage)==null?void 0:(L=U.accessibilityData)==null?void 0:L.label)!=null?M:""},
contentMode:p})}})),_.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var U;return((U=T())==null?0:U.url)?"background-image: url("+_.hs(T().url)+");":""}},_.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.X(_.S,{cond:P,
then:function(){return _.X(_.aY,{data:function(){return P()},
alt:function(){var U,L,M;return(M=(U=Q().logo)==null?void 0:(L=U.accessibilityData)==null?void 0:L.label)!=null?M:""},
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"})}}),_.X(_.S,{cond:function(){return Q().eyebrowText},
then:function(){return _.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.X(_.Rb,{text:function(){return Q().eyebrowText}}))}}),_.X(_.S,{cond:function(){return Q().title},
then:function(){return _.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.X(_.Rb,{text:function(){return Q().title}}))}}),_.X(_.S,{cond:function(){return Q().subtitles},
then:function(){return _.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.X(_.Op,{each:function(){return Q().subtitles||[]}},function(U){return _.X(_.Rb,{text:U})}))}})))))},"nc");
XIM.idomCompat=!0;var SVK=_.aP(function(A){return _.X("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.X("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.X(_.oY,{icon:function(){var Q;return(Q=A.data())==null?void 0:Q.iconType},
className:function(){var Q;switch((Q=A.data())==null?void 0:Q.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 Q;return((Q=A.data())==null?void 0:Q.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.X("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.X(_.Rb,{text:function(){var Q;
return(Q=A.data())==null?void 0:Q.text},
className:function(){var Q;return((Q=A.data())==null?void 0:Q.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"oc");var UZy=_.aP(function(A){A=_.be(A,{config:void 0,themeOverride:void 0});var Q=A.data,b=A.config,f=A.themeOverride;A={};A=_.O4("ytm-lp-offer-card-option-view-model",(A["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var p;return(p=f())==null?void 0:p.useDarkTheme},A));
var a=_.IY(function(){var p,P;(p=b())==null||(P=p.handleRadioButtonClick)==null||P.call(p,Q());return!1}),T=function(){var p;
return(p=b())==null?void 0:p.shouldDisplayRadioButton},G=function(){var p;
return(p=Q().featureListItems)!=null?p:[]};
return _.X("ytm-lp-offer-card-option-view-model",null,_.X("div",{class:A,"on:click":_.IY(function(){if(T()){var p,P;(p=b())==null||(P=p.handleRadioButtonClick)==null||P.call(p,Q())}return!1})},_.X(_.S,{cond:T,
then:function(){return _.X("div",null,_.X("input",{type:"radio","on:click":a,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var p;return!((p=b())==null||!p.isOptionSelected)}}))}}),_.X("div",null,_.X("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.X(_.Rb,{text:function(){return Q().eyebrowText}})),_.X("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.X(_.Rb,{text:function(){return Q().subtitle}})),_.X(_.S,{cond:function(){return G().length>0},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.X(_.WL,{data:G},{lpFeatureListItemViewModel:SVK}))}}),_.X("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.X(_.Rb,{text:function(){return Q().description}})))))},"pc");
UZy.idomCompat=!0;var LNy=_.aP(function(A){var Q=A.data;var b=A.themeOverride;A=_.F(_.CE(function(){var T,G=(T=Q().offerOptions)==null?void 0:T[0];return _.V(G,Muy)||{}}));
var f=A.next().value,a=A.next().value;A={};return _.X("ytm-lp-offer-card-view-model",null,_.X("div",{class:_.O4("ytm-lp-offer-card-view-model",(A["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(b==null||!b().useDarkTheme)},A))},_.X("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.X(_.S,{cond:function(){return Q().titleIconType},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.X(_.oY,{icon:function(){var T;return((T=Q().titleIconType)==null?void 0:T.toString())||""}}))}}),_.X("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.WL,{data:function(){return Q().titleBadge}},{badgeViewModel:function(T){return _.X("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.X(_.Xb,{data:T.data}))}})),_.X("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.X(_.WL,{data:function(){return Q().offerOptions}},{lpOfferCardOptionViewModel:function(T){var G=T.data;
return _.X(_.bd,null,_.X("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.X(UZy,{data:G,config:function(){var p;return{shouldDisplayRadioButton:(Q().offerOptions||[]).length>1,isOptionSelected:G().id===((p=f())==null?void 0:p.id),handleRadioButtonClick:function(P){return void a(P)}}},
themeOverride:b}))}})),_.X("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.X(_.WL,{data:function(){var T;
return(T=f())==null?void 0:T.purchaseButtonOverride}},{buttonViewModel:_.J9}))))},"qc");
LNy.idomCompat=!0;var M5x=_.aP(function(A){var Q=A.data;var b=A.themeOverride;A={};A=_.O4("ytm-lp-offer-card-section-view-model",(A["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var f;return b==null?void 0:(f=b())==null?void 0:f.useDarkTheme},A));
return _.X("ytm-lp-offer-card-section-view-model",null,_.X("div",{class:A},_.X(_.S,{cond:function(){return Q().title!==void 0},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.X("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.X(_.Rb,{text:function(){return Q().subtitle}}))}}))}}),_.X("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.X(_.WL,{data:function(){return Q().offerCards}},{lpOfferCardViewModel:function(f){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.X(LNy,{data:f.data,
themeOverride:b}))}})),_.X(_.S,{cond:function(){return Q().footer},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.X(_.Rb,{text:function(){return Q().footer}}))}})))},"rc");var l$W=_.aP(function(A){var Q=A.data;return _.X("lp-offer-table-cell-content-view-model",null,_.X("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.X(_.I8,null,_.X(_.nH,{when:function(){return Q().title}},function(){return _.X(_.Rb,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return Q().title}})}),_.X(_.nH,{when:function(){return Q().subTitle}},function(){return _.X(_.Rb,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return Q().subTitle}})}),_.X(_.nH,{when:function(){return Q().featureDescription}},function(){return _.X(_.Rb,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return Q().featureDescription}})}),_.X(_.nH,{when:function(){return Q().description}},function(){return _.X(_.Rb,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return Q().description}})}),_.X(_.nH,{when:function(){return Q().iconType}},function(){return _.X("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.X(_.oY,{icon:function(){return Q().iconType.toString()}}))}),_.X(_.nH,{when:function(){return Q().purchaseButton}},function(){return _.X(_.WL,{data:function(){return Q().purchaseButton}},{buttonViewModel:function(b){return _.X("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.X(_.J9,{data:b.data}))}})}),_.X(_.nH,{when:function(){return Q().note}},function(){return _.X(_.Rb,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return Q().note}})}),_.X(_.nH,{when:function(){return Q().featureDetail}},function(){return _.X(_.Rb,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return Q().featureDetail}})}),_.X(_.nH,{when:function(){return Q().badge}},function(){return _.X(_.WL,{data:function(){return Q().badge}},{badgeViewModel:_.Xb})}))))},"sc");
l$W.idomCompat=!0;var KN$=_.aP(function(A){var Q=A.data;return _.X("lp-offer-table-cell-view-model",null,_.X("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(Q().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;"}}},_.X(_.WL,{data:function(){return Q().contents}},{lpOfferTableCellContentViewModel:l$W})))},
"tc");
KN$.idomCompat=!0;var iZY=_.aP(function(A){var Q=A.data;var b=A.lpTableIsFirstRow;var f=A.lpTableIsLastRow;var a=function(){return(b==null?0:b())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},T=function(){return(b==null?0:b())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(f==null?0:f())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.X("ytm-lp-offer-table-row-view-model",null,_.X("div",{class:"yt-lp-offer-table-row-view-model"},_.X(_.WL,{data:function(){return Q().rowHeaderCell}},{lpOfferTableCellViewModel:function(G){return _.X("div",{class:a},_.X(KN$,{data:G.data}))}}),_.X(_.WL,{data:function(){return Q().contentCells}},{lpOfferTableCellViewModel:function(G){return _.X("div",{class:T},_.X(KN$,{data:G.data}))}})))},"uc");
iZY.idomCompat=!0;var JIr=_.aP(function(A){var Q=A.data;var b=A.themeOverride;var f=_.fJ().resolve(_.bu(_.Af)),a=function(){return _.V(Q().logo,Raj)||{}};
A={};return _.X("ytm-lp-offer-table-section-view-model",null,_.X("div",{class:"yt-lp-offer-table-view-model"},_.X(_.S,{cond:function(){var T,G;return f&&f()||(b==null?0:b().useDarkTheme)?(T=a())==null?void 0:T.imageDark:(G=a())==null?void 0:G.imageLight},
then:function(T){return _.X(_.aY,{data:T,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var G,p,P;return(P=(G=a())==null?void 0:(p=G.accessibilityData)==null?void 0:p.label)!=null?P:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.X(_.Rb,{text:function(){return Q().subtitle}})),_.X(_.S,{cond:function(){return Q().disclaimers},
then:function(T){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.X(_.Op,{each:T},function(G){return _.X("div",null,_.X(_.Rb,{text:G}))}))}}),_.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.X(_.WL,{data:function(){return Q().rows}},{lpOfferTableRowViewModel:function(T,G){return _.X(iZY,{data:T.data,
lpTableIsFirstRow:function(){return G()===0},
lpTableIsLastRow:function(){return G()===Q().rows.length-1}})}})),_.X("div",{class:_.O4((A["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return Q().hasFooterBackground},A))},_.X(_.S,{cond:function(){return Q().footer},
then:function(){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.X(_.Rb,{text:function(){return Q().footer}}))}}),_.X(_.S,{cond:function(){return Q().footerTitle},
then:function(){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.X(_.Rb,{text:function(){return Q().footerTitle}}))}}),_.X(_.S,{cond:function(){return Q().footerDescription},
then:function(){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.X(_.Rb,{text:function(){return Q().footerDescription}}))}}))))},"vc");
JIr.idomCompat=!0;var V5L=_.aP(function(A){var Q=A.data;var b=A.themeOverride;var f=_.fJ().resolve(_.bu(_.Af)),a=function(){var p;return b==null?void 0:(p=b())==null?void 0:p.useDarkTheme},T=function(){var p,P;
return f&&f()||a()?(p=Q().image)==null?void 0:p.imageDark:(P=Q().image)==null?void 0:P.imageLight};
A={};A=_.O4("ytm-lp-small-feature-section-view-model",(A["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=a,A));var G=function(){var p,P,U;return(U=(p=Q().image)==null?void 0:(P=p.accessibilityData)==null?void 0:P.label)!=null?U:""};
return _.X("ytm-lp-small-feature-section-view-model",{class:A},_.X(_.S,{cond:function(){return T()&&!igF},
then:function(){return _.X("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.X(_.aY,{data:function(){return T()},
alt:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.X("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.X("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.X(_.S,{cond:function(){return Q().title},
then:function(p){return _.X(_.Rb,{text:p})}})),_.X("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.X(_.Rb,{text:function(){return Q().description}}))))},"wc");
V5L.idomCompat=!0;var OZp=_.aP(function(A){var Q=A.data;var b=A.themeOverride;A={};return _.X("ytm-lp-small-feature-section-group-view-model",null,_.X("div",{class:_.O4("ytm-lp-small-feature-section-group-view-model",(A["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(b==null||!b().useDarkTheme)},A))},_.X("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.X(_.WL,{data:function(){return Q().smallFeatures}},{lpSmallFeatureSectionViewModel:function(f){return _.X("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.X(V5L,{data:f.data,
themeOverride:b}))}}))))},"xc");
OZp.idomCompat=!0;_.pE(_.aP(function(A){var Q=A.data;var b=function(){return Q().forcedTheme==="USER_INTERFACE_THEME_DARK"},f=function(){return Q().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},a=function(){var G="",p,P;
var U=_.fJ().resolve(_.bu(_.Af));U=b()||(U==null?0:U())?(p=Q().themedImageViewModel)==null?void 0:p.imageDark:(P=Q().themedImageViewModel)==null?void 0:P.imageLight;(p=BfC((U==null?void 0:U.sources)||[]))&&p.url&&(G=f()?"background-image: linear-gradient(to bottom, transparent, "+(Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.hs(p.url)+");":"background-image: url("+_.hs(p.url)+");");return G},T=function(){return{useDarkTheme:b()}};
A={};return _.X("yt-section-group-view-model",null,_.X("div",{class:_.O4("yt-lp-section-group-view-model",(A["yt-lp-section-group-view-model--premium-force-dark-mode"]=b,A["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return Q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A))},_.X(_.S,{cond:function(){return a().length},
then:function(){var G={};return _.X("div",{class:_.O4("yt-lp-section-group-view-model__bg-image",(G["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=f,G)),style:a})}}),_.X("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.X(_.WL,{data:function(){return Q().sections}},{lpFaqSectionViewModel:function(G){return _.X(BRx,{data:G.data,
themeOverride:T})},
lpHeaderSectionViewModel:function(G){return _.X(pI1,{data:G.data,themeOverride:T})},
lpHeadlineSectionViewModel:function(G){return _.X(PjW,{data:G.data,themeOverride:T})},
lpLargeFeatureSectionViewModel:function(G){return _.X(XIM,{data:G.data,themeOverride:T})},
lpOfferCardSectionViewModel:function(G){return _.X(M5x,{data:G.data,themeOverride:T})},
lpComplexOfferCardSectionViewModel:function(G){return _.X(TR$,{data:G.data})},
lpOfferTableSectionViewModel:function(G){return _.X(JIr,{data:G.data,themeOverride:T})},
lpSmallFeatureSectionGroupViewModel:function(G){return _.X(OZp,{data:G.data,themeOverride:T})},
lpCouponBannerViewModel:function(G){return _.X(dZK,{data:G.data})}}))))},"yc"),"yt-section-group-view-model",{props:{data:_.Qf}});var rR4=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.xx=_.aP(function(A){function Q(){if(rR4.has(A.data().displayType)){var U=!f(),L;if((L=A.disableDeselection)==null||!L.call(A)||U){A.data().selected=U;L=Object.assign({},G(),{selected:U});p(L);var M;(M=A.callback)==null||M.call(A,L,U)}}}
var b=_.st("chip-view-model"),f=function(){var U,L;return!!(((U=A.selected)==null?void 0:U.call(A))!==void 0?(L=A.selected)==null?0:L.call(A):G().selected)},a=_.F(_.CE(A.data)),T=a.next().value;
a=a.next().value;var G=T,p=a,P=_.I$(ta9,function(){return A.data().chipEntityKey||""});
return _.X("chip-view-model",{class:"ytChipViewModelHost",el:b},_.X(fI$,{data:function(){var U,L=Object.assign({},G(),{selected:f()}),M=P(),l=(U=A.disableDeselection)==null?void 0:U.call(A);a:switch(L.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":U=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":U=3;break a;default:U=0}return{text:(M==null?void 0:M.text)||L.text,state:L.disabled?1:L.selected?0:2,type:U,onTap:jo4(L,b,Q,l),
accessibilityLabel:L.accessibilityLabel||L.text}}}))},"zc");
_.xx.idomCompat={callbacks:{callback:!0}};_.nv1=_.aP(function(A){var Q=_.I$(oNf,function(){var G;return(G=A.data())==null?void 0:G.chipBarStateEntityKey}),b=function(){return A.data().disableDeselection},f=_.F(_.CE(function(){var G;
if(((G=Q())==null?void 0:G.selectedIndex)!=void 0)return Q().selectedIndex;var p,P;G=_.F(((p=A.data())==null?void 0:(P=p.chips)==null?void 0:P.entries())||[]);for(p=G.next();!p.done;p=G.next()){p=_.F(p.value);P=p.next().value;p=p.next().value;var U=void 0;if((U=_.V(p,_.Yj))==null?0:U.selected)return P}return-1})),a=f.next().value,T=f.next().value;
return _.X("chip-bar-view-model",{class:_.O4("ytChipBarViewModelHost",A.className),role:"tablist"},_.X(_.WL,{data:function(){return A.data().chips}},{chipViewModel:function(G,p){return _.X("div",{class:"ytChipBarViewModelChipWrapper"},_.X(_.xx,{data:G.data,
selected:function(){return p()===a()},
callback:function(P,U){P=!!U;U=p();T(P?U:-1);var L,M=(L=A.data())==null?void 0:L.chipBarStateEntityKey;M&&P&&_.A8(_.HL("chipBarStateEntity",M,{key:M,selectedIndex:U}))},
disableDeselection:A.disableDeselection||b}))}}))},"Ac");_.pE(_.nv1,"chip-bar-view-model",{props:{data:_.Bz,className:_.Bz,disableDeselection:_.Bz}});_.kJx=_.aP(function(A){var Q=A.data;A={};return _.X("divider-view-model",{class:_.O4("divider-view-model-wiz",(A["divider-view-model-wiz__inset-thin-padding"]=function(){return Q().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},A))},_.X("div",{class:_.O4("divider-view-model-wiz__base-divider",function(){return RLF(Q().dividerStyle)}),
style:_.qM({"background-color":function(){return Q().backgroundColor?_.zx(Q().backgroundColor):void 0}})}))},"Bc");
_.kJx.idomCompat=!0;_.pE(_.kJx,"divider-view-model",{props:{data:_.Qf}});var ql=new Map,CS=new Map,hLe=0,ob;var w9Y=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],yRU={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var I$L,HZL;I$L=function(A){return function(Q){return function(){return(Q==null?void 0:Q())!==void 0?String(Q())+A:void 0}}};
_.cx=I$L("px");HZL=I$L("s");var qVM=_.aP(function(A){function Q(u){return function(){var y=J().numItemsPerGridRow,a9=u()*y;y=a9+y;var pF,Ub;return(Ub=(pF=f().contents)==null?void 0:pF.slice(a9,y))!=null?Ub:[]}}
var b=_.be(A,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),f=b.data,a=b.layoutContainerWidth,T=b.shouldUseOwnContainerSize,G=b.marginSettings;b=_.F(_.pz(!0,void 0,"qgr2Je"));var p=b.next().value,P=b.next().value,U=function(){var u,y=(u=_.V(f().showMoreButton,_.jJ))==null?void 0:u.trackingParams;y&&_.JY(_.IP(),y);P(!1)},L=function(){var u,y=(u=_.V(f().showLessButton,_.jJ))==null?void 0:u.trackingParams;
y&&_.JY(_.IP(),y);P(!0)};
b=_.st("grid-shelf-view-model");var M=_.DaW(b,{canHaveZeroSize:!1}),l=function(){var u;return(u=f().contentAspectRatio)!=null?u:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},J=_.Lz(function(){var u=_.sh({containerWidth:T()&&M.width()>0?M.width()||a():a(),
sizing:"EXTRA_COMPACT",marginSettings:G(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:u.maxContainerWidth,numItemsPerGridRow:u.numItems,contentPadding:T()?u.margin:u.contentMargin,itemWidth:u.itemWidth,itemMargin:u.gutter/2}},void 0,"pqVdjc"),n=function(){if(f().enableVerticalExpansion){if(p())return t();
var u,y,a9=(y=(u=f().contents)==null?void 0:u.length)!=null?y:0;return Math.ceil(a9/J().numItemsPerGridRow)}return J().numItemsPerGridRow<=2?2:1},t=function(){var u;
return Math.ceil(((u=f().minCollapsedItemCount)!=null?u:1)/J().numItemsPerGridRow)},g=function(){return f().enableVerticalExpansion&&f().showLessButton&&!p()&&n()>t()},e=function(){var u,y;
return f().enableVerticalExpansion&&f().showMoreButton&&p()&&((y=(u=f().contents)==null?void 0:u.length)!=null?y:0)>J().numItemsPerGridRow*t()},x=function(){return!g()},D=function(){return!e()},w={};
return _.X("grid-shelf-view-model",{class:_.O4("ytGridShelfViewModelHost",A.className,(w.ytGridShelfViewModelHostHasBottomButton=function(){return g()||e()},w)),
el:b,style:_.qM({"margin-left":(0,_.cx)(function(){return J().contentPadding}),
"margin-right":(0,_.cx)(function(){return J().contentPadding})})},_.X(_.S,{cond:function(){return _.V(f().header,ZWj)},
then:function(u){return _.X(_.is,{data:u,disableHorizontalPadding:!0})}}),_.X("div",null,_.X(_.Op,{each:function(){return Array(n())}},function(u,y){return _.X(Cj1,{className:A.className,
items:Q(y),responsiveGridShelfLayout:J,contentAspectRatio:l})})),_.X("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.X(_.WL,{data:function(){return f().showMoreButton}},{buttonViewModel:function(u){return _.X("div",{hidden:D},_.X(_.J9,{data:u.data,
onClick:U}))}}),_.X(_.WL,{data:function(){return f().showLessButton}},{buttonViewModel:function(u){return _.X("div",{hidden:x},_.X(_.J9,{data:u.data,
onClick:L}))}})))},"Cc");
qVM.idomCompat=!0;var Cj1=_.aP(function(A){var Q=A.items;var b=A.responsiveGridShelfLayout;var f=A.contentAspectRatio;A=A.className;var a=_.st("div");eLi(a,function(){a:{var G=a.value;for(var p=Q(),P=[],U=0;U<p.length;U++){var L=_.V(p[U],OYp);if(!L||L==null||!L.inlinePlayerData){G=null;break a}var M=G.children.item(U);if(!M){G=null;break a}P.push({thumbnailElement:M,videoData:L})}G={gridVideoPreviewData:{gridItems:P}}}return G});
var T=(0,_.cx)(function(){return-b().itemMargin});
return _.X("div",{el:a,class:_.O4("ytGridShelfViewModelGridShelfRow",A),style:_.qM({"margin-left":T,"margin-right":T})},_.X(_.WL,{data:Q,replacementWrapper:function(G){return _.X(ov$,{responsiveGridShelfLayout:b},G)}},{shortsLockupViewModel:function(G){return _.X(ov$,{responsiveGridShelfLayout:b},_.X(P8L,{data:G.data,
aspectRatio:function(){return f()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Dc"),ov$=_.aP(function(A){return _.X("div",{style:_.qM({width:(0,_.cx)(function(){return A.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+A.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},A.children)},"Ec");
qVM.idomCompat=!0;_.pE(qVM,"grid-shelf-view-model",{props:{data:_.Qf,layoutContainerWidth:_.Qf,shouldUseOwnContainerSize:_.Qf,marginSettings:_.Qf,className:_.Qf}});_.t5x=_.aP(function(A){var Q=_.F(_.pz(!1,void 0,"YYtxR")),b=Q.next().value,f=Q.next().value;Q={};return _.X("yt-alert-banner-view-model",{class:_.O4("ytAlertBannerViewModelHost",A.className,function(){var a;a:switch((a=A.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},(Q.ytAlertBannerViewModelDismissed=
b,Q.ytAlertBannerViewModelFullbleed=A.fullbleed,Q.ytAlertBannerViewModelNarrow=A.narrow,Q.ytAlertBannerViewModelIsInRichGrid=A.isInRichGrid,Q))},_.X(_.S,{cond:function(){var a;
return!((a=A.data())==null?0:a.hideIcon)},
then:function(){return _.X("div",{class:"ytAlertBannerViewModelIcon"},_.X(_.oY,{icon:function(){return"info_circle"}}))}}),_.X("div",{class:"ytAlertBannerViewModelOuterContainer"},_.X("div",{class:"ytAlertBannerViewModelContainer"},_.X("div",{class:"ytAlertBannerViewModelContent"},_.X("div",{class:"ytAlertBannerViewModelHeading"},_.X(_.Rb,{text:function(){var a;
return(a=A.data())==null?void 0:a.heading}})),_.X("div",{class:"ytAlertBannerViewModelBody"},_.X(_.Rb,{text:function(){var a;
return(a=A.data())==null?void 0:a.body}})))),_.X(_.WL,{data:function(){var a;
return(a=A.data())==null?void 0:a.actionButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.X(_.WL,{data:function(){var a;
return(a=A.data())==null?void 0:a.dismissButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var T;((T=A.data())==null?0:T.disableLocalDismissBehavior)||f(!0)}})}}))},"Fc");_.pE(_.t5x,"yt-alert-banner-view-model",{props:{data:_.Qf,fullbleed:_.Qf,narrow:_.Qf,isInRichGrid:_.Qf,className:_.Qf}});var $aW=_.rz({chipViewModel:_.xx,buttonViewModel:_.J9});_.dK(NTF);var rIK;rIK=_.aP(function(A){var Q=A.data;var b=A.callback;var f=A.enableSingleChipSelection;var a=A.disableChipsScrollAnimation;var T=_.mS("div");A=_.F(_.pz(!0,void 0,"ULL8g"));var G=A.next().value,p=A.next().value;A=_.F(_.pz(!1,void 0,"cWhQn"));var P=A.next().value,U=A.next().value,L=!1,M=0;_.CH(function(){p(n());U(t())});
A=_.F(_.CE(function(){var a9={};return Q().autoselectedChipIndex!=null?(a9[Q().autoselectedChipIndex]=!0,a9):{}}));
var l=A.next().value,J=A.next().value,n=function(){var a9=T.value;return a9==null||a9.scrollLeft-1<=0},t=function(){var a9=T.value;
return a9==null?!1:a9.scrollLeft+1>=(a9==null?NaN:a9.scrollWidth)-(a9==null?NaN:a9.clientWidth)},g=function(){return Q().isHorizontallyScrollable},e=function(a9){T.value!=null&&(_.vG("HTML_DIR")==="rtl"&&(a9=-a9),T.value.scrollBy({left:a9,
behavior:(a==null?0:a())?"instant":"smooth"}))},x=function(){e(-320)},D=function(){e(320)},w=_.IY(function(a9){L=!0;
M=a9.clientX}),u=_.IY(function(a9){if(L){a9=a9.clientX;
var pF=a9-M;M=a9;var Ub;(Ub=T.value)==null||Ub.scrollBy({left:-pF})}}),y=_.IY(function(){var a9=n(),pF=t();
a9!==G()&&p(a9);pF!==P()&&U(pF)});
fk("pointerup",function(){L&&(L=!1)});
return _.X("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.X(_.L8,{contentId:function(){return Q().contentId},
useModernStyle:!0},function(){var a9={},pF={};return _.X("div",null,_.X(_.S,{cond:function(){return Q().title},
then:function(){return _.X("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.X("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return Q().title}),_.X(_.WL,{data:function(){return Q().overflowButton}},{buttonViewModel:_.J9}))}}),_.X("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.X(_.S,{cond:function(){return Q().previousButton},
then:function(){var Ub={};return _.X("div",{class:_.O4("ytChipsShelfViewModelLeftArrowContainer",(Ub.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return G()},Ub))},_.X(_.WL,{data:function(){return Q().previousButton}},{buttonViewModel:function(Ob){return _.X(_.J9,{data:Ob.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:x})}}))}}),_.X("div",{el:T,
"on:pointerdown":w,"on:pointermove":u,"on:scroll":y,class:_.O4("ytChipsShelfViewModelChipsScrollContainer",(a9.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=g,a9))},_.X("div",{class:_.O4("ytChipsShelfViewModelChipsContainer",(pF.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=g,pF.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,pF)),role:"tablist"},_.X(_.WL,{data:function(){return Q().contents}},{chipViewModel:function(Ub,Ob){return _.X("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.X(_.xx,{data:Ub.data,
callback:function(I9,iy){var wW=Ob();if(f==null?0:f()){var h4={};J((h4[wW]=iy,h4))}else h4={},J(Object.assign({},l(),(h4[wW]=iy,h4)));b==null||b(I9,iy,wW)},
disableDeselection:f,selected:function(){return!!l()[Ob()]}}))}}))),_.X(_.S,{cond:function(){return Q().nextButton},
then:function(){var Ub={};return _.X("div",{class:_.O4("ytChipsShelfViewModelRightArrowContainer",(Ub.ytChipsShelfViewModelRightArrowContainerIsHidden=P,Ub))},_.X(_.WL,{data:function(){return Q().nextButton}},{buttonViewModel:function(Ob){return _.X(_.J9,{data:Ob.data,
className:"ytChipsShelfViewModelRightArrow",onClick:D})}}))}})))}))},"Gc");
_.jQr=_.K("enable_chips_shelf_view_model_fully_reactive")?rIK:_.ko(NTF,{callbacks:{callback:!0}});rIK.idomCompat={callbacks:{callback:!0}};_.pE(_.jQr,"chips-shelf-view-model",{props:{data:_.Qf,callback:_.Bz,enableSingleChipSelection:_.Qf,disableChipsScrollAnimation:_.Qf}});var REv=_.aP(function(A){A=_.be(A,{disabled:!1});var Q=A.active,b=A.disabled;A={};A=_.O4("ytSwitchShapeTrack",(A.ytSwitchShapeTrackActive=function(){return Q()},A.ytSwitchShapeTrackDisabled=function(){return b()},A));
var f={};f=_.O4("ytSwitchShapeKnob",(f.ytSwitchShapeKnobActive=function(){return Q()},f));
return _.X("switch-shape",{class:"ytSwitchShapeHost"},_.X("div",{class:A}),_.X("div",{class:f}))},"Hc");var gvL=_.aP(function(A){var Q=_.be(A,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),b=Q.data;A=Q.className;var f=Q.handleOnTapEventInParent,a=Q.parentActive;Q=_.F(_.CE(function(){var M;return(M=a())!=null?M:b().switchedOnByDefault||!1}));
var T=Q.next().value,G=Q.next().value,p=function(){return b().isDisabled},P=_.st("button");
Q=_.IY(function(M){return M.key==="Enter"?(M.preventDefault(),P.value.click(),!1):!0});
var U=_.IY(function(M){if(b().handleOnTapEventInParent||f())return!0;if(p())return!1;maA(b(),T(),M);G(!T());return!1}),L={};
L=_.O4("ytSwitchButtonViewModelButton",(L.ytSwitchButtonViewModelTappable=function(){return!p()},L));
return _.X("switch-button-view-model",{class:_.O4("ytSwitchButtonViewModelHost",A)},_.X("button",{el:P,class:L,"on:click":U,"on:keydown":Q,"aria-label":function(){return T()?b().a11yLabelSwitchedOn:b().a11yLabelSwitchedOff},
"aria-checked":T,"aria-disabled":p,role:"switch"},_.X(REv,{active:T,disabled:p})))},"Ic");var eEx=_.aP(function(A){var Q=A.data;var b=A.isLeading;var f=A.hideSelectionTextChevron;var a=A.isToggled;var T=function(){return b()?Q().leadingImage:Q().trailingImage},G=function(){a:switch(Q().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var L="expand_more";
break a;default:L="chevron_right"}return L};
A={};var p=_.O4("yt-list-item-view-model-wiz__image-container",(A["yt-list-item-view-model-wiz__leading"]=b,A["yt-list-item-view-model-wiz__trailing"]=function(){return!b()},A)),P=_.O4("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
A={};var U=_.O4("yt-list-item-view-model-wiz__accessory",(A["yt-list-item-view-model-wiz__leading"]=b,A["yt-list-item-view-model-wiz__trailing"]=function(){return!b()},A));
return _.X(_.S,{cond:function(){var L=Q(),M=b();return!!(M&&(L.leadingImage||L.leadingAccessory)||!M&&(L.trailingImage||L.trailingButton||L.trailingButtons||L.selectionText))},
then:function(){return _.X(_.bd,null,_.X(_.S,{cond:T,then:function(L){return _.X("div",{class:p,"aria-hidden":"true"},_.X(_.aY,{data:L,alt:"",preserveWidth:!0,preserveHeight:!0,className:P,isToggled:a}))}}),_.X(_.S,{cond:function(){return b()&&Q().leadingAccessory},
then:function(){return _.X("div",{class:p},_.X(_.WL,{data:function(){return Q().leadingAccessory}},{avatarViewModel:function(L){return _.X(_.Wm,{data:L.data,
avatarButtonCustomClassName:P})},
collectionThumbnailViewModel:function(L){return _.X(Tgv,{data:L.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.X(_.S,{cond:function(){return!b()&&Q().trailingButton},
then:function(){return _.X("div",{class:"yt-list-item-view-model-wiz__button-container"},_.X(_.WL,{data:function(){return Q().trailingButton}},{buttonViewModel:function(L){return _.X(_.J9,{data:L.data,
className:U})}}))}}),_.X(_.S,{cond:function(){var L;
return!b()&&((L=Q().trailingButtons)==null?void 0:L.buttons)},
then:function(){return _.X("div",{class:"yt-list-item-view-model-wiz__button-container"},_.X(_.WL,{data:function(){var L;return(L=Q().trailingButtons)==null?void 0:L.buttons}},{buttonViewModel:function(L){return _.X(_.J9,{data:L.data,
className:U})},
accountLinkButtonViewModel:function(L){return _.X(mTy,{data:L.data,className:U})},
switchButtonViewModel:function(L){return _.X(gvL,{data:L.data,className:U})},
subscribeButtonViewModel:function(L){return _.X(_.e4,{data:L.data,isOverlay:!1,animateWidth:!1,className:U})},
toggleButtonViewModel:function(L){return _.X(_.eq,{data:L.data,className:U})}}))}}),_.X(_.S,{cond:function(){return!b()&&!!Q().selectionText},
then:function(){return _.X(_.bd,null,_.X(_.Rb,{text:function(){return Q().selectionText},
className:_.O4("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.X(_.S,{cond:function(){return!(f==null?0:f())},
then:function(){return _.X(_.oY,{icon:G,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Jc");var hEj=_.aP(function(A){var Q=A.data;return _.X(_.S,{cond:function(){return Q().title||Q().subtitle},
then:function(){return _.X("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.X(_.S,{cond:function(){return Q().title},
then:function(b){return _.X("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.X(_.Rb,{text:b,className:"yt-list-item-view-model-wiz__title"}))}}),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(b){return _.X(_.Rb,{text:b,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Kc");var zu=_.aP(function(A){var Q=A.data;var b=A.hideSelectionTextChevron;var f=A.TrailingAccessory;var a=A.isToggled;var T=A.disabled;var G=A.isSelectItem;var p=A.isCompact;var P=A.inPopup;var U=A.disableHorizontalPadding;A=A.isTappableWithoutSelect;var L={};return _.X("div",{class:_.O4("yt-list-item-view-model-wiz__label",(L["yt-list-item-view-model-wiz__container"]=function(){return!(G==null?0:G())},L["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!Q().isDisabled||!(T==null||
!T())},L["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!Q().subtitle},L["yt-list-item-view-model-wiz__container--compact"]=p,L["yt-list-item-view-model-wiz__container--tappable"]=A,L["yt-list-item-view-model-wiz__container--in-popup"]=P,L["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(U==null?void 0:U())&&!(G==null?0:G())},L))},_.X(eEx,{data:Q,
isLeading:!0,hideSelectionTextChevron:b,isToggled:a}),_.X(hEj,{data:Q}),_.X(_.S,{cond:function(){return!!f},
then:function(){return _.X("div",{class:"yt-list-item-view-model-wiz__trailing"},f&&_.X(f,null))},
else:function(){return _.X(eEx,{data:Q,isLeading:!1,hideSelectionTextChevron:b,isToggled:a})}}))},"Lc");var vvv=_.aP(function(A){var Q=_.be(A,{checked:!1});A=Q.name;var b=Q.onChange,f=Q.onClick,a=Q.checked,T=Q.labelRenderable,G=Q.hasLeadingLabel,p=Q.labelClass,P=Q.isCompact,U=Q.selectElementClass;Q=Q.disableHorizontalPadding;var L="checkbox"+_.WX(_.EI),M=_.IY(function(n){f==null||f(n);return!1}),l=_.IY(function(n){b==null||b(n);
return!1}),J={};
return _.X("checkbox-shape",null,_.X("label",{class:_.O4("checkbox-shape-wiz",p,(J["checkbox-shape-wiz--compact"]=P,J["checkbox-shape-wiz--disable-horizontal-padding"]=Q,J))},_.X("input",{class:"checkbox-shape-wiz__input",id:L,checked:a,name:A,type:"checkbox","prop:checked":a,"on:change":l,"on:click":M}),_.X(_.S,{cond:function(){return!(G==null?0:G())},
then:function(){return _.X(WNW,{isLeading:!0,selectElementClass:U})}}),_.X(_.S,{cond:function(){return!!T},
then:function(){return _.X("div",{class:"checkbox-shape-wiz__label"},T==null?void 0:T())}}),_.X(_.S,{cond:G,
then:function(){return _.X(WNW,{isLeading:!1,selectElementClass:U})}})))},"Mc");
vvv.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var WNW=_.aP(function(A){var Q=A.selectElementClass;A={};return _.X("div",{class:_.O4("checkbox-shape-wiz__checkbox",Q,(A["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(Q==null?0:Q())},A)),
"aria-hidden":"true"},_.X(_.oY,{icon:_.K("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.X(_.oY,{icon:_.K("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Nc");_.wa=_.aP(function(A){var Q=A.name;var b=A.onChange;var f=A.onClick;var a=A.checked;var T=A.labelRenderable;var G=A.useCheckIcon;var p=A.hasLeadingLabel;var P=A.labelClass;var U=A.isCompact;var L=A.selectElementClass;var M=A.ariaLabel;A=A.className;var l="radio"+_.WX(_.EI),J=_.st("input"),n=_.IY(function(y){J.value.checked=!(a==null||!a());b==null||b(y);return!1}),t=_.IY(function(y){f==null||f(y);
return!1}),g=_.IY(function(y){_.K("enable_ios_webview_radio_button_responsiveness")&&(y.preventDefault(),J.value.click())}),e=_.F(_.pz(!1,void 0,"nXiHX")),x=e.next().value,D=e.next().value;
e=_.IY(function(){var y;((y=_.fJ().resolve(_.bu(_.L3)))==null?0:y.isKeyBoardInUse())&&D(!0)});
var w=_.IY(function(){D(!1)}),u={};
return _.X("radio-shape",{class:_.O4("radio-shape-wiz",A)},_.X("input",{el:J,class:"radio-shape-wiz__input",id:l,"prop:checked":a,name:Q,type:"radio","on:change":n,"on:click":t,"aria-label":M,"on:focusin":e,"on:focusout":w}),_.X("label",{class:_.O4("radio-shape-wiz__label-container",P,(u["radio-shape-wiz--compact"]=U,u["radio-shape-wiz__label-container--keyboard-focused"]=x,u)),for:l,"on:click":g},_.X(_.S,{cond:function(){return!(p==null?0:p())},
then:function(){return _.X(Evy,{checked:a,useCheckIcon:G,isLeading:!0,selectElementClass:L})}}),_.X(_.S,{cond:function(){return!!T},
then:function(){return _.X("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(M==null?0:M())?"true":"false"}},T==null?void 0:T())}}),_.X(_.S,{cond:p,
then:function(){return _.X(Evy,{checked:a,useCheckIcon:G,isLeading:!1,selectElementClass:L})}})))},"Oc");
_.wa.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Evy=_.aP(function(A){var Q=A.useCheckIcon;var b=A.selectElementClass;A=function(){return(Q==null?0:Q())?"CHECK":_.K("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var f={};return _.X("div",{class:_.O4("radio-shape-wiz__radio",b,(f["radio-shape-wiz__radio--check-icon"]=Q,f["radio-shape-wiz__radio--radio-default-style"]=function(){return!(b==null?0:b())},f)),
"aria-hidden":"true"},_.X(_.oY,{icon:A}),_.X(_.oY,{icon:A,active:function(){return!(Q==null?0:Q())}}))},"Pc");_.us=_.aP(function(A){var Q=A.data;var b=A.isMenuItem;var f=A.isCompact;var a=A.onTap;var T=A.trailingAccessory;var G=A.hideSelectionTextChevron;var p=A.disabled;var P=A.inPopup;var U=A.disableHorizontalPadding;var L=A.isOverlay;A=A.isToggled;var M=_.Zc(function(pF){a:{var Ub=Q();if((Ub==null?0:Ub.entitySelectorType)&&(Ub==null?0:Ub.entityKey))switch(Ub.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":pF=_.Sm6(pF,Ub.entityKey);pF=pF==null?void 0:
pF.value;Ub=!1;pF==="CAPTIONS_UNAVAILABLE"&&(Ub=!0,pF="");pF=Object.assign({},!!pF&&{selectionText:{content:pF}},!!pF&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Ub});break a;default:pF={}}else pF={}}return pF}),l=function(){return _.K("enable_web_shorts_captions_language_command")?Object.assign({},Q(),M()):Q()},J=function(){return!(l().isSelected===void 0||!l().selectionStyle||l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},n=function(){return(_.uJ(l().rendererContext)||
a)&&!J()},t={},g=_.O4("yt-list-item-view-model-wiz__container",(t["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.uJ(l().rendererContext)||J()},t["yt-list-item-view-model-wiz__container--compact"]=f,t["yt-list-item-view-model-wiz__container--in-popup"]=P,t["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(U==null?void 0:U())&&J()},t)),e=function(){return l().leadingImage||l().leadingAccessory},x=_.O4("yt-list-item-view-model-wiz__image-container",
function(){return e()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
t=_.IY(function(pF){return void(a==null?void 0:a(pF))});
var D=_.Zji(),w=_.F(_.pz(!1,void 0,"iQppzc")),u=w.next().value,y=w.next().value,a9={data:l,hideSelectionTextChevron:G,TrailingAccessory:T,isToggled:A,disabled:p,isSelectItem:J,isCompact:f,inPopup:P,disableHorizontalPadding:U,isTappableWithoutSelect:n};T={};return _.X("yt-list-item-view-model",{el:_.d_(_.Zb(function(){return l().rendererContext}),dwF(function(){return n==null?void 0:n()},{focusin:function(){var pF;
((pF=_.fJ().resolve(_.bu(_.L3)))==null?0:pF.isKeyBoardInUse())&&y(!0)},
focusout:function(){y(!1)}})),
class:_.O4("yt-list-item-view-model-wiz",(T["yt-list-item-view-model-wiz--is-overlay"]=L,T["yt-list-item-view-model-wiz--keyboard-focused"]=u,T)),role:function(){return(b==null?0:b())?"menuitem":"listitem"},
tabindex:function(){var pF=n();return a||pF?0:void 0},
"on:keydown":D,"on:click":t},_.X(_.S,{cond:J,then:function(){return _.X(_.I8,null,_.X(_.nH,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.X(vvv,{labelRenderable:function(){return _.X(zu,Object.assign({},a9))},
isCompact:f,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!e()},
labelClass:g,selectElementClass:x,disableHorizontalPadding:U})}),_.X(_.nH,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.X(_.wa,{labelRenderable:function(){return _.X(zu,Object.assign({},a9))},
isCompact:f,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!e()},
labelClass:g,selectElementClass:x})}),_.X(_.nH,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.X(_.wa,{labelRenderable:function(){return _.X(zu,Object.assign({},a9))},
isCompact:f,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!e()},
labelClass:g,selectElementClass:x,useCheckIcon:!0})}),_.X(_.kQ,null,function(){return _.X(zu,Object.assign({},a9))}))},
else:function(){return _.X(zu,Object.assign({},a9))}}))},"Qc");
_.us.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.xZp=_.aP(function(A){var Q=A.data;var b=A.onTap;var f=A.onSwitch;var a=A.overrideDisabled;A=A.disableHorizontalPadding;var T=_.F(_.CE(function(){var M;return((M=QdJ(L()))==null?void 0:M.switchedOnByDefault)||!1})),G=T.next().value,p=T.next().value;
T=_.F(_.pz(!1,void 0,"ZHBkbb"));var P=T.next().value,U=T.next().value,L=function(){var M;if(!(M=Q().switchButton)){var l=Q();M=a==null?void 0:a();l={switchOnCommand:l.switchOnCommand,switchOffCommand:l.switchOffCommand,switchedOnByDefault:l.switchedOnByDefault,isDisabled:l.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:l.a11yLabelSwitchedOn,a11yLabelSwitchedOff:l.a11yLabelSwitchedOff};M!==void 0&&(l.isDisabled=M);M={switchButtonViewModel:l}}return M};
return _.X("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.X(_.us,{data:function(){return{title:Q().title,subtitle:Q().attributedSubtitle,leadingImage:Q().leadingImage,leadingAccessory:Q().leadingAccessory,isDisabled:Q().isDisabled}},
onTap:function(M){var l=QdJ(L());!l||l.isDisabled||Q().ignoreTapUntilCommandCompletes&&P()||(b==null||b(M),maA(l,G(),M,Q().ignoreTapUntilCommandCompletes,U),p(!G()),f==null||f(G()))},
trailingAccessory:function(){return _.X(_.WL,{data:L},{switchButtonViewModel:function(M){return _.X(gvL,{data:M.data,parentActive:G,handleOnTapEventInParent:!!b})}})},
disableHorizontalPadding:A}))},"Rc");var cIp=_.aP(function(A){var Q=_.F(_.CE(function(){var a,T;return!!((a=A.data())==null?0:(T=a.initialState)==null?0:T.isToggled)})),b=Q.next().value,f=Q.next().value;
Q=_.IY(function(){f(!b())});
return _.X("toggleable-list-item-view-model",{el:_.d_(_.Zb(function(){return A.data().rendererContext})),
class:_.O4("toggleableListItemViewModelHost",A.className),"on:click":Q},_.X(_.S,{cond:function(){if(b()){var a=A.data().toggledListItem;a=_.V(a,_.qI)}else a=A.data().defaultListItem,a=_.V(a,_.qI);return a},
then:function(a){return _.X(_.us,{data:a,isToggled:b,ariaLabel:function(){var T=b()?A.data().toggledListItem:A.data().defaultListItem,G;T=(G=_.V(T,_.qI))==null?void 0:G.rendererContext;var p;return(p=_.V(T,_.HV))==null?void 0:p.label},
ariaPressed:function(){return b()}})}}))},"Sc");var zEr=_.JQ("DOWNLOAD",{},"Download"),wIK=_.JQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),u8r=_.JQ("RETRY",{},"Retry"),ZZ9=_.JQ("PAUSE_DOWNLOADING",{},"Pause downloading"),yI9=_.JQ("RESUME_DOWNLOAD",{},"Resume download"),bQf={text:zEr,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},tc={text:wIK,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},THU={text:u8r,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
fte={text:ZZ9,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},atF={text:yI9,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var YVj=_.aP(function(A){var Q=function(){var p=A.data();p=_.wz(p.rendererContext);var P;return(P=_.V(p,_.n6))==null?void 0:P.videoId},b=_.Zc(function(p){var P=Q(),U=GCC(A.data());
return P?_.xL(p,P):U?_.cO(p,U):"TRANSFER_STATE_UNKNOWN"}),f=_.I$(_.Tkb,Q),a=_.Zc(function(p){return _.sRA(p,Q(),GCC(A.data()))}),T=function(){return F3X(b(),f(),_.wz(A.data().rendererContext),!!GCC(A.data()))},G=function(){return a()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.X("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:G},_.X(_.S,{cond:function(){return!G()},
then:function(){return _.X(_.S,{cond:T,then:function(p){return _.X(_.Op,{each:p},function(P){return _.X(_.us,{data:P,isCompact:A.isCompact,isMenuItem:A.isMenuItem,inPopup:A.inPopup,disableHorizontalPadding:A.disableHorizontalPadding})})}})}}))},"Tc");
YVj.idomCompat=!0;_.DZy=_.aP(function(A){var Q=A.data;var b=A.isCompact;var f=A.hideSelectionTextChevron;var a=A.inPopup;var T=A.isOverlay;var G=A.disableHorizontalPadding;var p=function(){return BHi(Q())&&(a==null?void 0:a())};
A={};return _.X("yt-list-view-model",{class:_.O4("yt-list-view-model-wiz",(A["yt-list-view-model-wiz--kaios-spat-nav"]=igF&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",A["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return XwA(Q())},A)),
role:function(){return p()?"menu":"list"},
style:_.qM({"max-height":function(){var P,U=(P=Q())==null?void 0:P.visibleElementCount;if(U)return XwA(Q())?(U+.5)*48+"px":(U+.5)*40+"px"}})},_.X(_.WL,{data:function(){return Q().listItems}},{listItemViewModel:function(P){return _.X(_.us,{data:P.data,
isMenuItem:p,isCompact:b,hideSelectionTextChevron:f,inPopup:a,isOverlay:T,disableHorizontalPadding:G})},
toggleableListItemViewModel:function(P){return _.X(cIp,{data:P.data})},
downloadListItemViewModel:function(P){return _.X(YVj,{data:P.data,isMenuItem:p,isCompact:b,inPopup:a,disableHorizontalPadding:G})},
switchListItemViewModel:function(P){return _.X(_.xZp,{data:P.data,disableHorizontalPadding:G})}}))},"Uc");
_.DZy.idomCompat=!0;var $ZN=_.aP(function(A){var Q=A.data;var b=A.isOverlay;A={};return _.X("yt-course-perks-view-model",{class:_.O4("ytwCoursePerksViewModelHost",(A.ytwCoursePerksViewModelHostOverlay=b,A))},_.X("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("div",null,_.X(_.S,{cond:function(){return Q().perks},
then:function(f){return _.X(_.DZy,{data:function(){return{listItems:f()}},
isCompact:!0,isOverlay:b})}})))},"Vc");_.pE($ZN,"yt-course-perks-view-model",{props:{data:_.Bz,isOverlay:_.Bz}});_.pE(_.aP(function(A){var Q=A.data;return _.X("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.X("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.X(_.Rb,{text:function(){return Q().progressSummary}})),_.X("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.X("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.qM({width:function(){return Q().progressPercentage*100+"%"}})})))},"Wc"),"yt-course-progress-view-model",{props:{data:_.Qf}});var NRK=_.aP(function(A){var Q={};return _.X("yt-progress-view-model",{class:_.O4("ytwProgressViewModelHost",(Q.ytwProgressViewModelHostOverlay=_.Q0(A.isOverlay,!1),Q))},_.X(_.S,{cond:function(){return A.data().progressSummary},
then:function(b){return _.X("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.X(_.Rb,{text:b}))}}),_.X("div",{class:"ytwProgressViewModelHostProgressContainer"},_.X(_.S,{cond:function(){return A.data().leadingLabel},
then:function(b){return _.X("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.X(_.Rb,{text:b}))}}),_.X("div",{class:"ytwProgressViewModelHostProgressBar"},_.X("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(A.data().progressPercentage||0)*100+"%"}}))))},"Xc");var ZP=_.aP(function(A){var Q=A.starNumber;var b=A.data;var f=function(){var a;return((a=b())==null?void 0:a.rating)||0};
return _.X(_.S,{cond:function(){return Q()},
then:function(a){return _.X(_.I8,null,_.X(_.nH,{when:function(){return f()>=a()-.25}},function(){return _.X("div",{class:"ytStarRatingViewModelHostStar"},_.X(_.oY,{icon:"STAR_FILLED"}))}),_.X(_.nH,{when:function(){return f()>=a()-.75}},function(){return _.X("div",{class:"ytStarRatingViewModelHostStar"},_.X(_.oY,{icon:"STAR_HALF"}))}),_.X(_.kQ,null,function(){return _.X("div",{class:"ytStarRatingViewModelHostStar"},_.X(_.oY,{icon:"STAR_BORDER"}))}))}})},"Yc"),sQN=_.aP(function(A){A=A.data;
return _.X("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.X(ZP,{starNumber:1,data:A}),_.X(ZP,{starNumber:2,data:A}),_.X(ZP,{starNumber:3,data:A}),_.X(ZP,{starNumber:4,data:A}),_.X(ZP,{starNumber:5,data:A}))},"Zc");_.pE(_.aP(function(A){var Q=_.be(A,{}).data;return _.X("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.X("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.X(_.Rb,{text:function(){var b;return(b=Q())==null?void 0:b.title}})),_.X("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.X(_.S,{cond:function(){return Q().starProgressViewModels},
then:function(b){return _.X("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.X(_.WL,{data:b},{progressViewModel:NRK}))}}),_.X("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.X("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.X(_.Rb,{text:function(){var b;
return(b=Q())==null?void 0:b.averageRatingLabel}})),_.X(_.S,{cond:function(){return Q().zeroStateText},
then:function(b){return _.X("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.X(_.Rb,{text:b}))}}),_.X(_.S,{cond:function(){return Q().starRatingViewModel},
then:function(b){return _.X("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.X(_.WL,{data:b},{starRatingViewModel:sQN}))}}),_.X("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.X(_.Rb,{text:function(){var b;
return(b=Q())==null?void 0:b.totalRatingsCountLabel}})))))},"$c"),"yt-course-ratings-view-model",{props:{data:_.Bz}});var mZr;mZr={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"}};_.App=_.aP(function(A){var Q=_.st("yt-learning-journey-loader-view-model"),b=_.Vh();_.CH(function(){requestAnimationFrame(function(){var a;(a=b.lottieEl)==null||a.addEventListener("DOMLoaded",function(){var T;(T=A.onLottieLoaded)==null||T.call(A)})});
var f=A.data().browseEndpoint;f&&_.D3(f)});
return _.X("yt-learning-journey-loader-view-model",{class:_.O4("learningJourneyLoaderViewModelHost",A.className),"data-target-id":function(){var f;return((f=A.data)==null?void 0:f.call(A).targetId)||""},
el:Q},_.X(_.X6,{className:_.O4("learningJourneyLoaderViewModelLoader",A.className),animationName:function(){return mZr.animationConfig.name},
data:mZr,animationRef:b}))},"ad");_.pE(_.App,"yt-learning-journey-loader-view-model",{props:{data:_.Qf,className:_.Bz,onLottieLoaded:_.Bz}});var Uib=new Set,S5C=null;_.Qex=_.aP(function(A){var Q=null,b=null,f=null,a=function(){return A.data()},T=function(){var e=a();
var x=_.fJ().resolve(_.bu(_.Af));e=x!=null&&x()?e.darkThemeColorPalette:e.lightThemeColorPalette;return{primaryTextColor:jQ(e,0),secondaryTextColor:jQ(e,1),optionColor:jQ(e,2),backgroundColor:jQ(e,3),videoBackgroundColor:jQ(e,4)}},G=function(){return!!T().optionColor},p=_.F(_.pz(-1,void 0,"Tkfl2e")),P=p.next().value,U=p.next().value,L=function(e){return P()===e},M=function(e){return a().correctAnswerIndex===e},l=function(){return P()!==-1},J=function(){return P()===a().correctAnswerIndex},n=_.IY(function(){U(-1);
return!1}),t=function(){var e=l(),x=J();
return e?x?264685:264684:264683},g=function(e){return J()&&M(e)};
return _.X("learning-journey-quiz-view-model",{class:_.O4("learningJourneyQuizViewModelHost",A.className),style:_.qM({background:function(){return T().backgroundColor}})},_.X(_.S,{cond:function(){return!!a().video},
then:function(){return _.X("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.qM({background:function(){return T().videoBackgroundColor}})},_.X(_.WL,{data:function(){return a().video}},{lockupViewModel:function(e){return _.X(_.K8,{data:e.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.X("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.X("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.X("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.X(_.S,{cond:function(){return!!a().aiGeneratedQuizLabel},
then:function(){return _.X("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.X(_.Rb,{text:function(){return a().aiGeneratedQuizLabel}}))}}),_.X("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.qM({"align-items":function(){return a().overflowMenu?"start":"center"}})},_.X("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.qM({"min-height":function(){return a().overflowMenu?"48px":"26px"}})},_.X("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.d_(function(e){_.rL(t(),e,Q,function(x){Q=x})}),
style:_.qM({color:function(){return T().primaryTextColor}}),
"client-ve-type":t},_.X(_.Rb,{text:function(){var e=a(),x=l(),D=J();return x&&e.quizType!=="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"?D?e.successTitle:e.failureTitle:e.questionHeaderText}}))),_.X("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.X(_.S,{cond:l,
then:function(){return _.X("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.d_(function(e){_.rL(264687,e,b,function(x){b=x})}),
"on:click":n,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.X("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.qM({fill:function(){return T().primaryTextColor}})},_.X("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"})))}}),
_.X(_.WL,{data:function(){return a().overflowMenu}},{buttonViewModel:function(e){return _.X(_.J9,{data:e.data})}}))),_.X("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.d_(function(e){_.rL(264688,e,f,function(x){f=x})}),
style:_.qM({color:function(){return T().secondaryTextColor}}),
"client-ve-type":264688},_.X(_.Rb,{text:function(){var e=a();return l()?e.explanationText:e.questionSubheaderText}}))),_.X("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.X(_.Op,{each:function(){return a().optionsData||[]}},function(e,x){var D={};
return _.X("div",{class:_.O4("learningJourneyQuizViewModelHostQuizOptions",(D.learningJourneyQuizViewModelHostQuizHover=function(){return!l()},D.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return g(x())},D.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!J()&&L(x())},D.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return l()&&!L(x())},D.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=G,D)),
"on:click":_.IY(function(){if(l())return!1;U(x());return!1}),
style:_.qM({background:function(){var w=x();return l()&&L(w)?"":G()?T().optionColor:"transparent"}}),
role:"button","aria-disabled":l,"tab-index":"0","client-ve-type":264686},_.X(_.S,{cond:l,then:function(){var w={};return _.X("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var u=x();return M(u)?"0 0 24 24":"0 -960 960 960"},
class:_.O4("learningJourneyQuizViewModelHostQuizOptionIcon",(w.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return g(x())},w)),
style:_.qM({fill:function(){return T().primaryTextColor}})},_.X("path",{d:function(){var u=x();
return M(u)?"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"}}))}}),_.X(_.Rb,{text:e.optionText}))})))))},"bd");
_.Qex.idomCompat=!0;_.pE(_.Qex,"learning-journey-quiz-view-model",{props:{data:_.Qf,className:_.Qf}});var bAy=_.aP(function(A){var Q=A.data;return _.X("yt-suspense-view-model",{class:_.O4("ytSuspenseViewModelHost")},_.X(_.WL,{data:function(){var b;return(b=Q().config)==null?void 0:b.contents}},{lockupViewModel:_.K8}))},"cd");var fLN=_.aP(function(A){var Q=_.be(A,{palette:void 0,isLastItem:!1}),b=Q.palette,f=Q.isLastItem,a=function(){return A.data().isHighlighted},T=function(){var P;
return MS6((P=b())==null?void 0:P.iconDisabledColor)},G=function(){var P;
return MS6((P=b())==null?void 0:P.primaryTitleColor)},p=function(){var P;
return MS6((P=b())==null?void 0:P.secondaryTitleColor)};
Q={};return _.X("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.d_(_.Zb(function(){return A.data().rendererContext}))},_.X(_.WL,{data:function(){return A.data().thumbnail}},{thumbnailViewModel:_.dq}),_.X("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.X("div",{class:_.O4("ytMacroMarkerListItemViewModelTimeDescription",(Q.ytMacroMarkerListItemViewModelHighlighted=a,Q)),
style:_.qM({"background-color":function(){return a()?G():T()},
color:function(){return a()?"":p()}})},_.X(_.Rb,{text:function(){return A.data().timestamp}})),_.X("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.qM({"background-color":function(){return f()?"transparent":T()}})}),_.X("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(a()?G():p())}},_.X(_.Rb,{text:function(){return A.data().title}}))))},"dd");_.y8=_.aP(function(A){function Q(dW){x("transform:translateX("+(_.vG("HTML_DIR")==="rtl"?"":"-")+dW+"px)")}
function b(dW){return Math.min(Math.max(dW,0),e()-a9())}
function f(){var dW=u()+I9();return a()?(Math.round(a9()/dW)||1)*dW:0}
var a=function(){return A.data().items||[]},T=function(){return A.data().previousButton},G=function(){return A.data().nextButton},p=function(){var dW,bY;
return(bY=(dW=A.disableArrows)==null?void 0:dW.call(A))!=null?bY:!1},P=function(){var dW;
return!((dW=A.forceNarrowLayout)==null||!dW.call(A))},U=_.Lz(function(){var dW;
return!((dW=A.centerAlignItems)==null||!dW.call(A))&&e()<=a9()},void 0,"DL81uf"),L=_.st("horizontal-shelf-view-model"),M=_.st("div"),l=_.F(_.pz(0,void 0,"xZFppf")),J=l.next().value,n=l.next().value;
l=_.F(_.pz(0,void 0,"pH9gvd"));var t=l.next().value,g=l.next().value,e=t;t=_.F(_.pz("",void 0,"oYcWy"));l=t.next().value;var x=t.next().value;t=_.F(_.pz(0,void 0,"lI6NJb"));var D=t.next().value,w=t.next().value,u=D;t=_.F(_.pz(0,void 0,"yPqhW"));D=t.next().value;var y=t.next().value,a9=D;t=_.F(_.pz(!1,void 0,"u4CvOe"));var pF=t.next().value,Ub=t.next().value;t=_.F(_.pz(0,void 0,"oQOBbe"));D=t.next().value;var Ob=t.next().value,I9=D;t=_.F(_.pz(0,void 0,"fCqgxd"));var iy=t.next().value,wW=t.next().value;
t=_.F(_.pz("50%",void 0,"kjP5ke"));var h4=t.next().value,SW=t.next().value,r9=function(){var dW,bY=(dW=A.data())==null?void 0:dW.responsiveContainerConfiguration,OL,iO;return bY?y5F(bY==null?void 0:bY.responsiveSize):(iO=(OL=A.sizing)==null?void 0:OL.call(A))!=null?iO:"STANDARD"};
t=_.Lz(function(){return!p()&&J()>0},void 0,"oVCO3d");
D=_.Lz(function(){return!p()&&J()<e()-a9()},void 0,"MQ6Gb");
var PM=function(){n(b(J()-f()));Q(J())},Nf=function(){n(b(J()+f()));
Q(J())},L$=function(){L.value!==null&&HM()},UL;
_.tz(function(){HM();window.ResizeObserver?(UL=new ResizeObserver(_.IB(L$,0)),UL.observe(L.value)):window.addEventListener("resize",L$)});
_.Cz(function(){if(window.ResizeObserver){var dW;(dW=UL)==null||dW.disconnect()}else window.removeEventListener("resize",L$)});
var HM=function(){var dW=L.value.clientWidth,bY=A.includeMargin!==void 0?A.includeMargin():!1,OL;var iO=A.hasPeek!==void 0?A.hasPeek():!((OL=A.data())==null||!OL.hasPeek);dW=_.sh({containerWidth:dW,hasPeek:iO,sizing:r9(),marginSettings:bY?P()?4:1:0});Ob(dW.gutter);wW(dW.margin);w(dW.itemWidth);Ub(dW.maxContainerWidth<528||P());y(dW.maxContainerWidth);a()&&g((dW.itemWidth+dW.gutter)*a().length-dW.gutter);if(a()){var Jv;if(((Jv=A.thumbnailAspectRatio)==null?void 0:Jv.call(A))!==void 0){var zr;SW(u()/
uyf((zr=A.thumbnailAspectRatio)==null?void 0:zr.call(A))/2+"px")}else SW("50%")}},Ks={},Y1={};
return _.X("horizontal-shelf-view-model",{class:_.O4("ytwHorizontalShelfViewModelHost",A.className),el:L},_.X(_.S,{cond:function(){var dW;return A.data().header&&!((dW=A.horizontalShelfExperiments)==null?0:dW.call(A).hideHeader)},
then:function(){return _.X("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.qM({width:function(){return a9()+"px"},
padding:function(){return"0 "+iy()+"px"}})},_.X(_.WL,{data:function(){return A.data().header}},{sectionHeaderViewModel:function(dW){return _.X(_.is,{data:dW.data,
disableHorizontalPadding:!0,forceSmallLayout:pF,useResponsiveLayout:!0})}}))}}),_.X("div",{class:_.O4("ytwHorizontalShelfViewModelOuterContainer",(Ks.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return U()},Ks)),
style:_.qM({"margin-top":function(){var dW,bY=A.data().header&&!((dW=A.horizontalShelfExperiments)==null?0:dW.call(A).hideHeader),OL;return(((OL=A.ensureMarginTop)==null?0:OL.call(A))&&!bY?12:0)+"px"}})},_.X("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.qM({width:function(){return a9()+"px"},
padding:function(){return"0 "+iy()+"px"},
overflow:function(){return p()?"auto":"hidden"}})},_.X("div",{class:_.O4("ytwHorizontalShelfViewModelItems",(Y1.ytwHorizontalShelfViewModelCenterAlignItems=function(){return U()},Y1)),
el:M,style:l},_.X(_.WL,{data:a},{macroMarkerListItemViewModel:function(dW,bY){return _.X("div",{style:_.qM({width:function(){return u()+"px"},
"margin-right":function(){return(bY()===a().length-1?0:I9())+"px"}})},_.X(fLN,{data:dW.data,
palette:_.Q0(A.palette),isLastItem:function(){return bY()===a().length-1}}))},
lockupViewModel:function(dW,bY){var OL=dW.data;return _.X("div",{style:_.qM({width:function(){return u()+"px"},
"margin-right":function(){return(bY()===a().length-1?0:I9())+"px"}})},_.X(_.K8,{data:OL,
containerType:4,sizing:r9,protectBackground:A.protectBackground,thumbnailFixedWidth:function(){return ltX(OL())+"px"},
thumbnailTargetWidth:function(){return ltX(OL())}}))},
suspenseViewModel:function(dW,bY){return _.X("div",{style:_.qM({width:function(){return u()+"px"},
"margin-right":function(){return(bY()===a().length-1?0:I9())+"px"}})},_.X(bAy,{data:dW.data}))}}))),_.X(_.S,{cond:t,
then:function(){return _.X("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.qM({top:function(){return h4()}})},_.X(_.WL,{data:T},{buttonViewModel:function(dW){return _.X(_.J9,{data:dW.data,
onClick:PM})}}))}}),_.X(_.S,{cond:D,
then:function(){return _.X("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.qM({top:function(){return h4()}})},_.X(_.WL,{data:G},{buttonViewModel:function(dW){return _.X(_.J9,{data:dW.data,
onClick:Nf})}}))}})))},"ed");
_.y8.idomCompat=!0;var aLj=_.aP(function(A){var Q=function(){return A.data().targetId||""},b=function(){var t;
return((t=A.data())==null?void 0:t.expansionEntityKey)||""},f=_.I$(_.Sm6,b),a=!0,T=function(){var t;
return((t=f())==null?void 0:t.value)===Q()},G=function(t){_.A8(_.HL("stringEntity",b(),{key:b(),
value:t?Q():""}))};
_.CH(function(){a=!1;A.data().isExpanded&&G(!0)});
var p=function(){if(T()){var t=!0;A.onCollapse!==void 0&&(t=A.onCollapse());t&&G(!1)}else G(!0)},P=_.IY(p),U=function(){var t;
return(((t=A.accordionStyle)==null?void 0:t.call(A))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L=_.st("div"),M=function(){var t,g;
return(g=(t=_.V(A.data().rendererContext,_.HV))==null?void 0:t.label)!=null?g:""},l=function(){var t,g;
return{disabled:(t=A.hideIfNotExpanded)==null?void 0:t.call(A),ariaHidden:(g=A.hideIfNotExpanded)==null?void 0:g.call(A)}},J={},n={};
return _.X("yt-accordion-item-view-model",{class:_.O4("ytAccordionItemViewModelHost",A.className,(J.ytAccordionItemViewModelExpanded=function(){return T()},J.ytAccordionItemViewModelHidden=function(){var t;
return(t=A.hideIfNotExpanded)==null?void 0:t.call(A)},J.ytAccordionItemViewModelMini=U,J)),
"data-target-id":Q},_.X("div",{class:"ytAccordionItemViewModelContainer"},_.X("div",{class:"ytAccordionItemViewModelLeftSection","on:click":P,title:M,"aria-hidden":function(){var t;return(t=A.hideIfNotExpanded)==null?void 0:t.call(A)}},_.X(_.Rb,{text:function(){return A.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:M})),_.X("div",{class:"ytAccordionItemViewModelRightSection"},_.X(_.WL,{data:function(){return T()?A.data().expandButton:A.data().collapseButton}},{buttonViewModel:function(t){return _.X(_.J9,{data:t.data,
className:"ytAccordionItemViewModelToggleButton",onClick:p,buttonOverrides:l})}}))),_.X("div",{class:"ytAccordionItemViewModelContainer"},_.X("div",{class:_.O4("ytAccordionItemViewModelContent",(n.ytAccordionItemViewModelExpandedSubtitle=function(){return T()},n)),
el:L,style:_.qM({"max-height":function(){return a?"auto":T()?L.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!T()}},_.X(_.S,{cond:function(){return!U()},
then:function(){return _.X(_.Rb,{text:function(){return A.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.X(_.WL,{data:function(){return A.data().content}},{horizontalShelfViewModel:function(t){return _.X(_.y8,{data:t.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"fd");_.T41=_.aP(function(A){var Q=_.F((0,_.qUY)(A.data)).next().value,b=function(){return A.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},f=function(){return b()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},a=_.F(_.pz(!0,void 0,"FVec2e")),T=a.next().value,G=a.next().value,p=function(){return f()&&T()},P=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){G(!T())}}},U=_.IY(function(){Q().onTitleTap&&_.D3(Q().onTitleTap||{})});
a={};return _.X("yt-accordion-view-model",{class:_.O4("ytAccordionViewModelHost",(a.ytAccordionViewModelMinimized=function(){return p()},a)),
"data-target-id":function(){return A.data().targetId||""}},_.X(_.S,{cond:function(){return f()||!!Q().title},
then:function(){return _.X("div",{class:"ytAccordionViewModelHeader"},_.X("div",{class:"ytAccordionViewModelTitleSection"},_.X("div",{class:"ytAccordionViewModelTitleWrapper"},_.X(_.S,{cond:function(){return!!A.data().headerIcon},
then:function(){return _.X(_.oY,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var L;return(L=A.data().headerIcon)==null?void 0:L.iconType}})}}),_.X("div",{class:"ytAccordionViewModelTitle",
"on:click":U},_.X(_.Rb,{className:"ytAccordionViewModelTitleText",text:function(){return Q().title}})))),_.X("div",{class:"ytAccordionViewModelButtonSection"},_.X(_.S,{cond:f,
then:function(){return _.X(_.K3,{data:P,iconName:function(){return p()?"chevron_down":"chevron_collapse"}})}})))}}),_.X("div",{class:"ytAccordionViewModelContent"},_.X(_.WL,{data:function(){return Q().contents}},{accordionItemViewModel:function(L){return _.X(aLj,{data:L.data,
className:"ytAccordionViewModelRow",accordionStyle:b,hideIfNotExpanded:p,onCollapse:function(){return f()?(G(!0),!1):!0}})}})),_.X("div",null,_.X(_.S,{cond:function(){return!f()&&(!!Q().disclaimerFooter||!!Q().footer)},
then:function(){return _.X("div",{class:"ytAccordionViewModelFooter"},_.X(_.Rb,{text:function(){return Q().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.X(_.WL,{data:function(){return A.data().footer}},{flexibleActionsViewModel:function(L){return _.X(_.WF,{data:L.data,
layout:0})}}))}})))},"gd");_.pE(_.T41,"yt-accordion-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=null,b=null,f,a=(f=_.fJ().resolve(_.bu(_.Af)))==null?void 0:f(),T=_.F(_.pz(!1,void 0,"EVXQGb"));f=T.next().value;var G=T.next().value;T=_.F(_.pz(!0,void 0,"W9FIJf"));var p=T.next().value,P=T.next().value,U=_.st("textarea",function(g){_.rL(264503,g,Q,function(e){Q=e})}),L=function(g){G(!0);
g={learningJourneyFormData:{query:g}};_.D3(A.data().searchEndpoint||{},{form:{formData:g}});return!1},M=_.IY(function(g){g.target.closest("button-view-model")&&G(!0)});
T=_.IY(function(){P(U.value.value.length===0)});
var l=_.IY(function(g){if(g.key==="Enter"&&!g.shiftKey&&!p()){var e=g.target;g.preventDefault();L(e.value)}}),J={},n={},t={};
return _.X("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.X("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.X(_.aY,{data:function(){return A.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.X("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.X("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.X("div",{class:_.O4("ytLearningJourneyZeroStateSearchBar",(J.ytLearningJourneyZeroStateSearchBarDark=a,J))},_.X("textarea",{class:_.O4("ytLearningJourneyZeroStateTextInput",(n.ytLearningJourneyZeroStateTextInputDark=a,n)),el:U,"on:keyup":T,"on:keydown":l,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.X("div",{class:_.O4("ytLearningJourneyZeroStateSearchButtonContainer",(t.ytLearningJourneyZeroStateSearchButtonContainerDark=a,t))},_.X(_.J9,{data:function(){return _.V(A.data().searchButton,_.jJ)},
className:"search-button",onClick:function(){return L(U.value.value)},
buttonOverrides:function(){return{disabled:p(),style:a?"mono-inverse":"mono",size:"XL"}}}))),_.X(_.S,{cond:function(){return!!A.data().errorBanner},
then:function(){return _.X("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.d_(function(g){_.rL(264617,g,b,function(e){b=e})})},_.X(_.WL,{data:function(){return A.data().errorBanner}},{alertBannerViewModel:function(g){return _.X(_.t5x,{data:g.data,
"client-ve-type":264617})}}))}})),_.X(_.S,{cond:f,
then:function(){return _.X("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.X(_.WL,{data:function(){return A.data().loader}},{learningJourneyLoaderViewModel:function(g){return _.X(_.App,{data:g.data})}}))},
else:function(){return _.X("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.X(_.S,{cond:function(){return!!A.data().learningJourneyShelf},
then:function(){return _.X("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.X("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().learningJourneySectionTitle}),_.X(_.WL,{data:function(){return A.data().learningJourneyShelf}},{horizontalShelfViewModel:function(g){return _.X(_.y8,{data:g.data,
centerAlignItems:!0})}}))}}),_.X("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.X("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().suggestedJourneySectionTitle}),_.X("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":M},_.X(_.WL,{data:function(){return A.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(g){return _.X(_.WF,{data:g.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"hd"),"yt-learning-journey-zero-state",{props:{data:_.Qf}});var ddj=_.aP(function(A){var Q=A.data;return _.X("ytvl-live-leaderboard-item-action-content-view-model",{class:_.O4("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.X(_.Rb,{text:function(){var b;return(b=Q())==null?void 0:b.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.X(_.WL,{data:function(){return Q().actionButton}},{buttonViewModel:function(b){return _.X(_.J9,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:b.data})}}))},"id");var FFx=_.aP(function(A){var Q=A.data;return _.X("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.O4("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.X(_.Rb,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var b;return(b=Q())==null?void 0:b.displayName},
ellipsisTruncate:!0}),_.X(_.WL,{data:function(){return Q().badge}},{buttonViewModel:function(b){return _.X(_.J9,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:b.data})}}))},"jd");_.pE(_.aP(function(A){var Q=A.data;return _.X("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.X("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.X(_.Rb,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var b;return(b=Q())==null?void 0:b.rank}})),_.X("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.X(_.WL,{data:function(){return Q().avatar}},{avatarViewModel:_.Wm})),_.X("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.X(_.WL,{data:function(){return Q().content}},{liveLeaderboardItemChannelContentViewModel:FFx,
liveLeaderboardItemActionContentViewModel:ddj})),_.X(_.Rb,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var b;return(b=Q())==null?void 0:b.points}}))},"kd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;return _.X("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.X(_.Rb,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var b,f;return(b=Q())==null?void 0:(f=b.ranking)==null?void 0:f.rank}}),_.X("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.X(_.WL,{data:function(){return Q().avatar}},{avatarViewModel:_.Wm})),_.X(_.Rb,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var b,f;return(b=Q())==null?void 0:(f=b.channelContent)==null?void 0:f.channelName}}),_.X(_.Rb,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var b;return(b=Q())==null?void 0:b.points}}))},"ld"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Qf}});var Gl$=_.aP(function(A){A=_.be(A,{wrapper:!1}).wrapper;return _.X(_.S,{cond:A,then:function(){return _.X("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.X("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.X("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"md");
Gl$.idomCompat=!0;var B4W=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],pq$=_.aP(function(A){var Q=A.data;var b=_.d_(),f=_.Lz(function(){return Q().command},void 0,"o6t5Yb");
_.H_(function(){f()&&_.Z3(f(),{form:{element:b.value}})},"qIHWLc");
return _.X("div",{el:b,class:"YtQrCodeRendererHostContainer"},_.X(_.S,{cond:function(){return Q().qrCodeImage},
then:function(a){return _.X(_.aY,{data:a,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.X(_.S,{cond:function(){return Q().spinner},
then:function(){return _.X(Gl$,null)}})}}),_.X(_.S,{cond:function(){return Q().label},
then:function(a){return _.X(_.Rb,{text:a,className:"YtQrCodeRendererHostLabel"})}}),_.X(_.S,{cond:function(){return Q().labels},
then:function(a){return _.X("div",{class:"YtQrCodeRendererHostLabels"},_.X(_.Op,{each:a},function(T){return _.X(_.Rb,{text:T})}))}}))},"od");_.pE(_.aP(function(A){var Q=A.data;var b=_.Lz(function(){return Q().qrEntityKey},void 0,"joYCxd"),f=_.Lz(function(){return Q().deleteEntityOnDismiss},void 0,"x3yAde"),a=_.Lz(function(){return Q().command},void 0,"dJe1Re"),T=_.I$(onW,b);
A=_.Lz(function(){return Q().qrCodeImage},void 0,"qM5dZe");
var G=_.Lz(function(){return Q().style&&B4W.includes(Q().style)},void 0,"CaNEkf"),p=_.T9({visibilityCallback:function(P){P&&a()&&_.Z3(a())},
showOption:{calledOnce:!0,state:"visible"}});_.tz(function(){_.Cz(function(){f()&&b()&&_.m5().dispatch(_.HL("qrCodeEntity",b()))})});
return _.X("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.d_(p)},_.X(_.S,{cond:G,then:function(){return _.X(_.S,{cond:T,then:function(P){return _.X(pq$,{data:P})}})}}),_.X(_.S,{cond:A,
then:function(P){return _.X(_.aY,{data:P,alt:""})}}))},"nd"),"yt-qr-code-renderer",{props:{data:_.Qf}});_.PPK=_.aP(function(A){var Q=A.data;var b=A.topbarOffset;var f,a=((f=_.fJ().resolve(_.bu(_.Af)))==null?void 0:f())||!1;return _.X("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var T=Q();var G,p,P=a?(G=T.config)==null?void 0:G.darkThemeBackgroundColor:(p=T.config)==null?void 0:p.lightThemeBackgroundColor;T=P?_.zx(P):void 0;T="background-color: "+T+";";b!==void 0&&(T+="top: -"+b()+"px;");return T},
"aria-hidden":!0},_.X(_.S,{cond:function(){var T,G,p;return!!((T=Q().backgroundImageConfig)==null?0:(G=T.image)==null?0:(p=G.sources)==null?0:p.length)},
then:function(){return _.X(_.aY,{data:function(){var T;return(T=Q().backgroundImageConfig)==null?void 0:T.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.X("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+K3A(a,Q().gradientColorConfig)+";"}}))},"pd");
_.PPK.idomCompat=!0;var Yx=_.aP(function(A){var Q=A.className;var b=A.data;var f=A.isOverlay;var a=A.maxLinesOverride;var T=A.useMediumText;var G=function(){return b().alwaysShowTruncationText},p=function(){return b().truncationText},P=function(){return T!==void 0&&T()?"medium":"small"},U=function(){return f!==void 0&&f()?"overlay":"default"},L=function(){var n,t;
return(t=(n=_.V(b().rendererContext,_.HV))==null?void 0:n.label)!=null?t:""};
A=_.F(_.pz(!1,void 0,"xVwzHf"));var M=A.next().value,l=A.next().value;A=_.IY(function(){b().expandOnTap&&l(!M());return!1});
var J={};return _.X("yt-description-preview-view-model",{el:_.d_(_.Zb(function(){return b().rendererContext})),
class:_.O4("yt-description-preview-view-model-wiz",Q,(J["yt-description-preview-view-model-wiz--clickable"]=function(){var n;return!((n=_.V(b().rendererContext,fGJ))==null||!n.onTap)},J["yt-description-preview-view-model-wiz--is-overlay"]=f,J)),
"on:click":A},_.X(_.S,{cond:function(){return b().description},
then:function(n){return _.X(_.S,{cond:M,then:function(){var t={};return _.X("div",{class:_.O4("yt-description-preview-view-model-wiz__description",(t["yt-description-preview-view-model-wiz__description--medium-text"]=T,t))},_.X(_.Rb,{text:n}))},
else:function(){return _.X(qup,{text:n,alwaysShowTruncationText:G,truncationText:p,maxLines:function(){var t;return(t=a==null?void 0:a())!=null?t:b().maxLines},
textStyle:U,accessibilityLabel:L,textSize:P})}})}}))},"qd");
Yx.idomCompat=!0;var Xq1=_.aP(function(A){var Q=A.data;var b=A.isOverlay;return _.X("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.X("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.X(_.WL,{data:function(){return Q().header}},{sectionHeaderViewModel:function(f){return _.X(_.is,{data:f.data,
isOverlay:b})}})),_.X("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.X(_.WL,{data:function(){return Q().channelInfoButtons}},{flexibleActionsViewModel:_.WF})),_.X("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.X(_.WL,{data:function(){return Q().description}},{descriptionPreviewViewModel:function(f){return _.X(Yx,{data:f.data,
isOverlay:b})}})))},"rd");
Xq1.idomCompat=!0;var Sy9=_.aP(function(A){var Q=A.data;var b={};return _.X("factoid-view-model",{class:_.O4("ytwFactoidViewModelHost",(b.ytwFactoidViewModelHostOverlay=A.isOverlay,b))},_.X(_.Rb,{text:function(){return Q().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.X(_.Rb,{text:function(){return Q().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"sd");
Sy9.idomCompat=!0;var Udy=_.aP(function(A){var Q=A.data;var b=A.isOverlay;return _.X("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.X(_.WL,{data:function(){return Q().factoids}},{factoidViewModel:function(f){return _.X(Sy9,{data:f.data,
isOverlay:b})}}))},"td");
Udy.idomCompat=!0;_.LFx=_.aP(function(A){var Q=A.data;var b=A.isOverlay;return _.X("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.X(_.WL,{data:function(){return Q().items}},{channelInfoViewModel:function(f){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(Xq1,{data:f.data,
isOverlay:b}))},
coursePerksViewModel:function(f){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X($ZN,{data:f.data,isOverlay:b}))},
descriptionPreviewViewModel:function(f){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(Yx,{data:f.data,isOverlay:b}))},
factoidsRowViewModel:function(f){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(Udy,{data:f.data,isOverlay:b}))},
progressViewModel:function(f){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(NRK,{data:f.data,isOverlay:b}))}}))},"ud");var Mix=_.aP(function(A){return _.X("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.X(_.WL,{data:function(){return A.data().content}},{courseMetadataViewModel:function(Q){return _.X(_.LFx,{data:Q.data,
isOverlay:A.isOverlay})},
progressViewModel:function(Q){return _.X(NRK,{data:Q.data})}}))},"vd");var lLL=_.aP(function(A){var Q=A.data;A=A.className;var b=function(){var a;return _.uJ((a=Q())==null?void 0:a.rendererContext)},f={};
f=(f["dynamic-text-view-model-wiz"]=!0,f["dynamic-text-view-model-wiz--tappable"]=function(){return b()},f);
return _.X("yt-dynamic-text-view-model",{el:_.d_(_.Zb(function(){var a;return(a=Q())==null?void 0:a.rendererContext})),
role:function(){return b()?"link":void 0},
tabindex:function(){return b()?0:void 0},
class:_.O4(A,f)},_.X("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var a,T,G;return(G=(T=_.V((a=Q())==null?void 0:a.rendererContext,_.HV))==null?void 0:T.label)!=null?G:""}},_.X(_.Rb,{text:function(){return Q().text},
userInput:!0})))},"wd");
lLL.idomCompat=!0;_.DP=_.aP(function(A){var Q=A.data;var b=A.isPositionRelative;var f=_.Jwf("(max-width: 527.9px)"),a=function(){var T,G;return(G=(T=Q())==null?void 0:T.style)!=null?G:"IMAGE_BANNER_STYLE_FULL_BLEED"};
A={};return _.X("yt-image-banner-view-model",{el:_.d_(_.Zb(function(){var T;return(T=Q())==null?void 0:T.rendererContext})),
class:_.O4((A["yt-image-banner-view-model-wiz"]=!0,A["yt-image-banner-view-model-wiz--inset"]=function(){return VSi(a())},A["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.o7(!0)&&!(b==null?0:b())},A["yt-image-banner-view-model-wiz--small-inset"]=function(){return VSi(a())&&f()},A["yt-image-banner-view-model-wiz--tappable"]=function(){var T;
return _.uJ((T=Q())==null?void 0:T.rendererContext)},A))},_.X(_.S,{cond:function(){var T;
return(T=Q())==null?void 0:T.image},
then:function(){return _.X(_.aY,{data:function(){return Q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.X(_.WL,{data:function(){var T;
return(T=Q())==null?void 0:T.overlays}},{thumbnailHoverOverlayViewModel:hS}))},"xd");
_.DP.idomCompat=!0;var KF9;KF9=_.aP(function(A){var Q=A.condition;var b=A.content;return _.X(_.S,{cond:Q,then:function(){return _.X("div",{class:"page-header-view-model-wiz__scroll-container"},b())},
else:function(){return b()}})},"yd");
_.iAL=_.aP(function(A){var Q=A.data;var b=A.noPadding;var f=A.enableBanner;var a=A.cinematicContainerTopbarOffset;var T=A.allowCinematicContainerOverflow;var G=A.displayAsSidebar;var p=A.displayAsPanel;var P=A.alwaysUseMediumTextDescription;var U=OQ9(),L=function(){return!!Q().image||!!Q().animatedImage},M=function(){return!!Q().background},l=function(){return(G==null?0:G())||(p==null?0:p())?1:U()},J=function(){return l()===1},n=function(){return J()||l()===2},t=function(){return l()===4},g=function(){var iy=
Q();
var wW=!!Q().heroImage;var h4=l(),SW=nVW(Q()),r9=G==null?void 0:G(),PM=!iy.metadata,Nf;if(Nf=wW?_.V(iy.heroImage,jaK):_.V(iy.animatedImage||iy.image,jaK)){iy=Nf.style;var L$=Nf.layoutMode;if(L$!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Nf=Fu6(dUW(Nf)),wW)wW=iQC(h4,iy,L$,Nf,r9);else b:if(PM)wW=h4===1?{size:48}:{size:72};else switch(h4){case 1:wW={size:72};break b;case 2:wW={size:120};break b;default:wW=SW<4?{size:120}:{size:160}}else wW=void 0}else wW={size:0};return wW};
A={};A=_.O4((A["page-header-view-model-wiz"]=!0,A["page-header-view-model-wiz--no-padding"]=function(){return!(b==null||!b())},A["page-header-view-model-wiz--small-top-padding"]=function(){return J()&&!Q().actions&&!(p==null?0:p())||l()===2&&!(L()||Q().heroImage)},A["page-header-view-model-wiz--small-bottom-padding"]=function(){return n()&&!Q().actions&&!(p==null?0:p())},A["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(T==null?0:T())},A["page-header-view-model-wiz--display-as-sidebar"]=
G,A));
var e={},x=_.O4((e["page-header-view-model-wiz__page-header-headline"]=!0,e["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var iy;return(iy=g())==null?void 0:iy.allowFullWidth},e)),D=function(){var iy;
return n()&&!((iy=g())==null?0:iy.allowFullWidth)},w=function(){return J()&&(!!Q().heroImage||L())&&nVW(Q())>0},u=function(){return w()&&(p==null?void 0:p())};
e={};var y=_.O4((e["page-header-view-model-wiz__page-header-title"]=!0,e["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!w()},e["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return w()&&!u()},e["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=u,e["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=M,e));
e={};var a9=_.O4((e["page-header-view-model-wiz__page-header-headline-image"]=!0,e["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!Q().heroImage&&n()},e));
e={};var pF=_.O4((e["page-header-view-model-wiz__page-header-banner-container"]=f,e["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var iy;return(f==null?void 0:f())&&((iy=_.V(Q().banner,_.g3W))==null?void 0:iy.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},e));
e={};var Ub=_.O4((e["page-header-view-model-wiz__page-header-content-metadata"]=!0,e["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=M,e));e={};var Ob=_.O4((e["page-header-view-model-wiz__page-header-flexible-actions"]=!0,e["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!Q().metadata||n()},e["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!n()},e));
e={};var I9=_.O4((e["page-header-view-model-wiz__page-header-attribution"]=!0,e["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=M,e));return _.X("yt-page-header-view-model",{class:A},_.X(_.S,{cond:M,then:function(){return _.X("div",{class:"page-header-view-model-wiz__page-header-background"},_.X(_.WL,{data:function(){return Q().background}},{cinematicContainerViewModel:function(iy){return _.X(_.PPK,{data:iy.data,
topbarOffset:a})}}))}}),_.X(KF9,{condition:function(){return!(G==null||!G())},
content:function(){return _.X("div",{class:"page-header-view-model-wiz__page-header-content"},_.X(_.S,{cond:function(){return(f==null?void 0:f())&&Q().banner},
then:function(){return _.X("div",{class:pF},_.X(_.WL,{data:function(){return Q().banner}},{imageBannerViewModel:_.DP}))}}),_.X("div",{class:x},_.X(_.S,{cond:L,
then:function(){return _.X(_.WL,{data:function(){var iy;if(!(iy=Q().animatedImage)){iy=Q();if(L()){var wW=iy=Object.assign({},iy),h4=l(),SW=nVW(Q()),r9=wW.image,PM=_.V(r9,RGW),Nf=PM==null?void 0:PM.avatar,L$=_.V(Nf,_.yh);if(r9&&Nf&&L$){switch(h4){case 1:L$.avatarImageSize="AVATAR_SIZE_XL";break;case 2:L$.avatarImageSize="AVATAR_SIZE_XXL";break;default:SW<4?L$.avatarImageSize="AVATAR_SIZE_XXL":L$.avatarImageSize="AVATAR_SIZE_XXXL"}_.K("web_enable_sink_page_header_view_model")&&(_.EG(Nf,_.yh,Object.assign({},
L$)),PM.avatar=Object.assign({},Nf),_.EG(r9,RGW,Object.assign({},PM)),wW.image=Object.assign({},r9))}}iy=iy.image}return iy}},{contentPreviewImageViewModel:function(iy){return _.X(_.Sv,{data:iy.data,
className:a9,imageSizeConfig:g})},
decoratedAvatarViewModel:function(iy){return _.X(_.E9,{data:iy.data,className:a9})}})}}),_.X(_.S,{cond:function(){return!!Q().heroImage&&!D()},
then:function(){return _.X(_.WL,{data:function(){return Q().heroImage}},{contentPreviewImageViewModel:function(iy){return _.X(_.Sv,{data:iy.data,
className:a9,imageSizeConfig:g})}})}}),_.X("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.X(_.S,{cond:function(){return!!Q().heroImage&&D()},
then:function(){return _.X("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.X(_.WL,{data:function(){return Q().heroImage}},{contentPreviewImageViewModel:function(iy){return _.X(_.Sv,{data:iy.data,
className:a9,imageSizeConfig:g})}}))}}),_.X(_.WL,{data:function(){return Q().title}},{dynamicTextViewModel:function(iy){return _.X(lLL,{data:iy.data,
className:y})}}),_.X(_.WL,{data:function(){return Q().metadata}},{contentMetadataViewModel:function(iy){return _.X(_.UM,{data:iy.data,
layout:function(){return J()?1:0},
className:Ub,isOverlay:M,useMediumText:t})}}),_.X(_.S,{cond:function(){return Q().description&&!J()},
then:function(){return _.X(_.WL,{data:function(){return Q().description}},{descriptionPreviewViewModel:function(iy){return _.X(Yx,{data:iy.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:M,maxLinesOverride:function(){return J()?void 0:1},
useMediumText:function(){return(P==null?void 0:P())||t()}})}})}}),_.X(_.S,{cond:function(){return Q().attribution&&!n()},
then:function(){return _.X(_.WL,{data:function(){return Q().attribution}},{attributionViewModel:function(iy){return _.X(SuY,{data:iy.data,
className:I9,useMediumText:t})}})}}),_.X(_.S,{cond:function(){return Q().actions&&!n()},
then:function(){return _.X(_.WL,{data:function(){return Q().actions}},{flexibleActionsViewModel:function(iy){return _.X(_.WF,{data:iy.data,
layout:function(){return kCy(l())},
className:Ob})}})}}))),_.X("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.X(_.S,{cond:function(){return Q().description&&J()},
then:function(){return _.X(_.WL,{data:function(){return Q().description}},{descriptionPreviewViewModel:function(iy){return _.X(Yx,{data:iy.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:M,maxLinesOverride:function(){return J()?void 0:1},
useMediumText:function(){return(P==null?void 0:P())||t()}})}})}}),_.X(_.S,{cond:function(){return Q().attribution&&n()},
then:function(){return _.X(_.WL,{data:function(){return Q().attribution}},{attributionViewModel:function(iy){return _.X(SuY,{data:iy.data,
className:I9,useMediumText:t})}})}}),_.X(_.S,{cond:function(){return Q().actions&&n()},
then:function(){return _.X(_.WL,{data:function(){return Q().actions}},{flexibleActionsViewModel:function(iy){return _.X(_.WF,{data:iy.data,
layout:function(){return kCy(l())},
className:Ob})}})}})),_.X("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.X(_.WL,{data:function(){return Q().bottomMetadataFlexibleContainer}},{flexibleContainer:function(iy){return _.X(Mix,{data:iy.data,
isOverlay:M})}})))}}))},"zd");
_.iAL.idomCompat=!0;_.pE(_.aP(function(A){var Q=_.F(_.pz(!1,void 0,"j5qbkc")),b=Q.next().value,f=Q.next().value;return _.X("yt-official-card-view-model",{class:_.O4("ytOfficialCardViewModelHost",A.className),style:_.qM({"background-color":function(){var a,T=CXi((a=A.data())==null?void 0:a.backgroundColor);return T?_.w6(T):void 0}})},_.X(_.WL,{data:function(){return A.data().header}},{pageHeaderViewModel:function(a){return _.X(_.iAL,{data:a.data,
noPadding:!0})}}),_.X(_.WL,{data:function(){return A.data().contents}},{horizontalShelfViewModel:function(a){return _.X(_.y8,{data:a.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.X(_.S,{cond:b,
then:function(){return _.X("div",{class:"ytOfficialCardViewModelExpandedContent"},_.X(_.WL,{data:function(){return A.data().expandedContents}},{horizontalShelfViewModel:function(a){return _.X(_.y8,{data:a.data,
sizing:"MINI"})}}),_.X("div",{class:"ytOfficialCardViewModelCollapseButton"},_.X(_.WL,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
onClick:function(){f(!b())}})}})))},
else:function(){return _.X("div",{class:"ytOfficialCardViewModelExpandButton"},_.X(_.WL,{data:function(){return A.data().expandButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
onClick:function(){f(!b())}})}}))}}))},"Ad"),"yt-official-card-view-model",{props:{data:_.Qf,
className:_.Qf}});var Itf=_.rz({buttonViewModel:_.J9});_.dK(HQb);_.KE(HQb,"ytw-search-friction-view-model",{propNames:["data"]});_.$x=_.aP(function(A){var Q=_.st("markdown-div"),b,f=(b=_.fJ().resolve(_.bu(_.Af)))==null?void 0:b();_.H_(function(){var a=Q.value;var T=new o1p,G=new Map(T.JSC$9243_sanitizerTable.globalAttributePolicies);G.set("style",{policyAction:4});T.JSC$9243_sanitizerTable=new Hk(T.JSC$9243_sanitizerTable.allowedElements,T.JSC$9243_sanitizerTable.elementPolicies,T.JSC$9243_sanitizerTable.allowedGlobalAttributes,G,T.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes);var p=["data-time"];if(p===void 0)G=
new Set(T.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes),G.add("data-"),T.JSC$9243_sanitizerTable=new Hk(T.JSC$9243_sanitizerTable.allowedElements,T.JSC$9243_sanitizerTable.elementPolicies,T.JSC$9243_sanitizerTable.allowedGlobalAttributes,T.JSC$9243_sanitizerTable.globalAttributePolicies,G);else{G=new Set(T.JSC$9243_sanitizerTable.allowedGlobalAttributes);p=_.F(p);for(var P=p.next();!P.done;P=p.next()){P=P.value;if(P.indexOf("data-")!==0)throw Error("ma`"+P);G.add(P)}T.JSC$9243_sanitizerTable=
new Hk(T.JSC$9243_sanitizerTable.allowedElements,T.JSC$9243_sanitizerTable.elementPolicies,G,T.JSC$9243_sanitizerTable.globalAttributePolicies,T.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes)}G=new Set(T.JSC$9243_sanitizerTable.allowedGlobalAttributes);G.add("class");T.JSC$9243_sanitizerTable=new Hk(T.JSC$9243_sanitizerTable.allowedElements,T.JSC$9243_sanitizerTable.elementPolicies,G,T.JSC$9243_sanitizerTable.globalAttributePolicies,T.JSC$9243_sanitizerTable.globallyAllowedAttributePrefixes);
_.Ao(a,_.krM(T.build(),q5U(A.text())));oVC(Q.value)},"nk5Hce");
b={};return _.X("div",null,_.X("markdown-div",{class:_.O4("ytwMarkdownDivHost",(b.ytwMarkdownDivDark=f,b.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var a;return((a=A.isSmallText)==null?void 0:a.call(A))||!1},b.ytwMarkdownDivHostWrapCodeBlocks=function(){var a;
return((a=A.wrapCodeBlocks)==null?void 0:a.call(A))||!1},b.ytwMarkdownDivHostEnableDefaultStyling=function(){var a;
return!((a=A.disableDefaultStyling)==null?0:a.call(A))},b)),
el:Q}))},"Bd");
_.$x.idomCompat=!0;var JpW=_.aP(function(A){var Q=A.imageData;var b=_.Q0(A.isInList,!1),f=function(){return b()?{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 _.X("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.X(_.S,{cond:function(){return Q().image},
then:function(a){return _.X(_.aY,{data:a,alt:function(){return f().alt},
contentMode:function(){return f().contentMode},
targetWidth:function(){return f().targetWidth},
targetHeight:function(){return f().targetHeight},
className:function(){return f().className}})}}),_.X("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.X("div",{class:_.O4("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.Op,{each:function(){var a;
return(a=Q().description)!=null?a:[]}},function(a){return _.X("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.X(ND,{content:a}))})))},"Cd"),Vir=_.aP(function(A){var Q=A.list;
var b=function(){var f;return(f=Q().items)!=null?f:[]};
return _.X("div",{class:"ytwGenAiRichTextViewModelListContent"},_.X(_.S,{cond:function(){return Q().title},
then:function(f){return _.X("div",{class:_.O4("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.X(_.Rb,{text:f}))}}),_.X(_.S,{cond:function(){return Q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.X("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.X(_.Op,{each:b},function(f){return _.X("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.X(ND,{content:f,isInList:!0}))}))}}),_.X(_.S,{cond:function(){return Q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.X("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.X(_.Op,{each:b},function(f){return _.X("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.X(ND,{content:f,isInList:!0}))}))}}),_.X(_.S,{cond:function(){return Q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.X("div",{class:"ytwGenAiRichTextViewModelImageList"},_.X(_.Op,{each:b},function(f){return _.X("div",{class:"ytwGenAiRichTextViewModelListItem"},_.X(ND,{content:f,isInList:!0}))}))}}))},"Dd"),OAp=_.aP(function(A){var Q=A.table;
return _.X("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.X("thead",null,_.X("tr",null,_.X(_.Op,{each:function(){var b,f;return(f=(b=Q().header)==null?void 0:b.cells)!=null?f:[]}},function(b){return _.X("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.X(_.Op,{each:function(){return b.contents}},function(f){return _.X(ND,{content:f})}))}))),_.X("tbody",null,_.X(_.Op,{each:function(){var b;
return(b=Q().rows)!=null?b:[]}},function(b){return _.X("tr",null,_.X(_.Op,{each:function(){return b.cells}},function(f){return _.X("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.X(_.Op,{each:function(){return f.contents}},function(a){return _.X(ND,{content:a})}))}))})))},"Ed"),ND=_.aP(function(A){var Q=A.content;
var b=_.Q0(A.isInList,!1),f=function(){var a,T;return(T=(a=Q().contentBlock)==null?void 0:a.contents)!=null?T:[]};
return _.X("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.X(_.S,{cond:function(){return Q().text},
then:function(a){return _.X(_.Rb,{className:"ytwGenAiRichTextViewModelText",text:a})}}),_.X(_.S,{cond:function(){return Q().image},
then:function(a){return _.X(JpW,{imageData:a,isInList:b})}}),_.X(_.S,{cond:function(){return Q().list},
then:function(a){return _.X(Vir,{list:a})}}),_.X(_.S,{cond:function(){return Q().contentBlock},
then:function(){return _.X("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.X(_.Op,{each:f},function(a){return _.X(ND,{content:a,isInList:!1})}))}}),_.X(_.S,{cond:function(){return Q().table},
then:function(a){return _.X(OAp,{table:a})}}))},"Fd"),nyL=_.aP(function(A){var Q={};
Q=_.nE("ytwGenAiRichTextViewModelHost",(Q.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Br("search_overview_link_style")),Q));return _.X("gen-ai-rich-text-view-model",{class:Q},_.X(ND,{content:function(){return A.data().content}}))},"Gd");_.dK(tSC);_.dK(gL);_.klr=_.aP(function(A){var Q=A.data;var b=function(){var t;return((t=Q().loadingUi)!=null?t:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},f=function(){return Q().isLoading&&(b()==="UNSPECIFIED"||b()==="GHOST_CARD")},a=function(){return!Q().isLoading},T=function(){return!!Q().content&&!Q().contents},G=function(){return!!Q().contents},p=function(){return!!Q().nextQueryButtons},P=function(){return Q().isLoading&&b()==="INVISIBLE"},U=function(){var t,g;
return(g=(t=Q().headerIcon)==null?void 0:t.iconType)!=null?g:""},L=function(){var t;
return(t=Q().content)!=null?t:""},M=function(){return!!Q().sourcesSection},l,J=!((l=_.fJ().resolve(_.bu(_.Af)))==null||!l()),n=_.Lz(function(){var t=[],g=Q().contents;
if(g)for(var e=0;e<g.length;e++){var x=_.V(g&&g[e],chv);x&&t.push(x)}return t},void 0,"ycU97e");
_.tz(function(){Q().isLoading||_.hQ("so_re",void 0,"search_overview_answer")});
return _.X("ytd-overview-answer-view-model",{class:function(){var t={};t=(t.ytdOverviewAnswerViewModelHost=!0,t.ytdOverviewAnswerViewModelDarkBackground=J&&!P(),t.ytdOverviewAnswerViewModelLightBackground=!J&&!P(),t);return _.nE(t)}},_.X(_.S,{cond:function(){return!P()},
then:function(){return _.X(_.bd,null,_.X("h2",null,_.X("div",{class:"ytdOverviewAnswerViewModelHeader"},_.X(_.S,{cond:U,then:function(t){return _.X("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.X(_.oY,{icon:t}))}}),_.X("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.X("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return Q().headerText}),_.X("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.X(_.Rb,{text:function(){return Q().headerSubtext}}))))),_.X(_.S,{cond:f,
then:function(){return tSC()}}),_.X(_.S,{cond:a,
then:function(){return _.X(_.bd,null,_.X(_.S,{cond:T,then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelText"},_.X(_.$x,{text:L,isSmallText:!0}))}}),_.X(_.S,{cond:G,
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelRichText"},_.X(_.Op,{each:n},function(t){return _.X(nyL,{data:t})}))}}),_.X(_.S,{cond:p,
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.X(_.WL,{data:function(){return Q().nextQueryButtons}},{buttonViewModel:function(t){return _.X(_.J9,{data:t.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.y8}))}}),_.X("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.X("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.X(_.S,{cond:function(){return!!_.V(Q().likeButtonViewModel,_.vV)&&!!_.V(Q().dislikeButtonViewModel,_.WV)},
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.X(_.EP,{data:function(){return _.V(Q().likeButtonViewModel,_.vV)},
disableIconAnimation:!0}),_.X(_.vF,{data:function(){return _.V(Q().dislikeButtonViewModel,_.WV)}}))}})),_.X(_.S,{cond:function(){var t;
return(t=Q().sourcesSection)==null?void 0:t.headerText},
then:function(t){return _.X("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.X(_.Rb,{text:t}))}})),_.X(_.S,{cond:M,
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelSources"},_.X(_.WL,{data:function(){var t;return(t=Q().sourcesSection)==null?void 0:t.sourcesShelf}},{buttonViewModel:_.J9,
horizontalShelfViewModel:function(t){return _.X(_.y8,{data:t.data,includeMargin:!0,hasPeek:!0})}}))}}),_.X(_.S,{cond:function(){return Q().disclaimerText},
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.X(_.Rb,{text:function(){return Q().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Hd");var ILx=_.aP(function(A){var Q=A.data;var b=A.active;var f=_.st("transcript-segment-view-model");_.H_(function(){var a,T,G,p=((a=_.fJ().resolve(_.bu(_.Af)))==null?0:a())?(T=Q())==null?void 0:T.darkThemeColorPalette:(G=Q())==null?void 0:G.lightThemeColorPalette;p&&(p.additiveBackground&&f.value.style.setProperty("--timestamp-active-background-color",_.w6(p.additiveBackground)),p.textSecondary&&f.value.style.setProperty("--timestamp-active-color",_.zx(p.textSecondary)))},"KHcbwb");
A={};return _.X("transcript-segment-view-model",{class:_.O4("ytwTranscriptSegmentViewModelHost",(A.ytwTranscriptSegmentViewModelHostActive=b,A.ytwTranscriptSegmentViewModelHostModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),A)),el:f},_.X(_.S,{cond:function(){var a;return(a=Q())==null?void 0:a.timestamp},
then:function(a){var T={};return _.X("div",{class:_.O4("ytwTranscriptSegmentViewModelTimestamp",(T.ytwTranscriptSegmentViewModelTimestampActive=b,T))},a)}}),_.X(_.Rb,{text:function(){var a,T,G;
return(G=(a=Q())==null?void 0:a.attributedText)!=null?G:{content:(T=Q())==null?void 0:T.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Id");var HA$=_.aP(function(A){var Q=A.data;return _.X("div",{class:"yt-video-attributes-section-view-model__header"},_.X("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return Q().headerTitle}),_.X(_.S,{cond:function(){return Q().headerSubtitle},
then:function(){return _.X("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return Q().headerSubtitle})}}))},"Jd"),CPL=_.aP(function(A){function Q(t){return Math.max(Math.min(t,0),U()-p())}
var b=A.data;var f;A=_.st("div",function(t){var g=function(){L(t.clientWidth)};
g();window.ResizeObserver&&(f=new ResizeObserver(g),f.observe(t))});
var a=_.st("div",function(t){P(t.scrollWidth)}),T=_.F(_.pz(0,void 0,"Y8rd0c")),G=T.next().value;
T=T.next().value;var p=G,P=T;T=_.F(_.pz(0,void 0,"kDvR6b"));G=T.next().value;T=T.next().value;var U=G,L=T;G=_.F(_.pz(0,void 0,"Kit3De"));var M=G.next().value,l=G.next().value;_.Cz(function(){var t;(t=f)==null||t.disconnect()});
var J=function(){l(Q(M()+U()))},n=function(){l(Q(M()-U()))};
return _.X("yt-video-attributes-section-view-model",null,_.X("div",{class:"yt-video-attributes-section-view-model"},_.X(_.S,{cond:function(){return b().headerTitle},
then:function(){return _.X(HA$,{data:b})}}),_.X("div",{class:_.O4("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:A},_.X("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.qM({transform:function(){var t=M();_.vG("HTML_DIR")==="rtl"&&(t*=-1);return"translateX("+t+"px)"}}),
el:a},_.X(_.WL,{data:function(){return b().videoAttributeViewModels}},{videoAttributeViewModel:rir}))),_.X(_.WL,{data:function(){return b().footerButton}},{buttonViewModel:function(t){return _.X(_.J9,{data:t.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.X(_.S,{cond:function(){return M()<0&&b().previousButton},
then:function(){return _.X("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.X(_.WL,{data:function(){return b().previousButton}},{buttonViewModel:function(t){return _.X(_.J9,{data:t.data,
onClick:J})}}))}}),_.X(_.S,{cond:function(){return M()>U()-p()&&b().nextButton},
then:function(){return _.X("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.X(_.WL,{data:function(){return b().nextButton}},{buttonViewModel:function(t){return _.X(_.J9,{data:t.data,
onClick:n})}}))}})))},"Kd");
CPL.idomCompat=!0;var qyp=_.aP(function(A){var Q=A.data;var b=A.active;var f={},a={};return _.X("timeline-item-view-model",{class:_.O4("ytwTimelineItemViewModelHost",(f.ytwTimelineItemViewModelHostChapterChild=A.chapterChild,f.ytwTimelineItemViewModelModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),f))},_.X("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.X("div",{class:_.O4("ytwTimelineItemViewModelTimestamp",(a.ytwTimelineItemViewModelTimestampActive=
b,a))},function(){return Q().timestamp})),_.X("div",{class:"ytwTimelineItemViewModelContentItems"},_.X(_.WL,{data:function(){return Q().contentItems}},{transcriptSegmentViewModel:function(T){return _.X(ILx,{data:T.data,
active:b})},
videoAttributesSectionViewModel:CPL})))},"Ld");var oyL=_.aP(function(A){var Q=A.data;A={};return _.X("timeline-chapter-view-model",{class:_.O4("ytwTimelineChapterViewModelHost")},_.X("div",{class:_.O4("ytwTimelineChapterViewModelTitle",(A.ytwTimelineChapterViewModelModern=_.K("enable_timeline_view_modern_transcript")||_.K("enable_timeline_view_modern_transcript_fe"),A))},function(){return Q().title}),_.X(_.WL,{data:function(){return Q().contents}},{timelineItemViewModel:function(b){return _.X(qyp,{data:b.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(b){return _.X(CPL,{data:b.data})}}))},"Md");var tij=_.aP(function(A){var Q=A.data;var b=_.st("macro-markers-panel-item-view-model"),f=_.I$(_.ka4,function(){var T;return(T=Q().markersEngagementPanelSyncEntityKey)!=null?T:""}),a=function(){var T;
return((T=f())==null?void 0:T.activeItemIndex)===Q().index};
A=_.IY(function(T){var G,p,P,U,L;return _.B(function(M){if(M.nextAddress==1)return T.stopPropagation(),_.zG(_.cL(T),b.value,["A".toString(),"BUTTON".toString()])?M.return():(G=_.ue(Q().onTap))?M.yield(_.iJ(),2):M.return();p=M.yieldResult;U=(P=_.V(G,_.sv))==null?void 0:P.startTimeSeconds;U===void 0||(L=p)!=null&&L.seekTo(U,!0);_.Oi(M)})});
return _.X("macro-markers-panel-item-view-model",{class:_.O4("ytwMacroMarkersPanelItemViewModelHost",{"is-active":a}),el:b,"on:click":A,tabindex:0},_.X(_.WL,{data:function(){var T;return(T=Q())==null?void 0:T.item}},{timelineChapterViewModel:function(T){return _.X(oyL,{data:T.data,
active:a})},
timelineItemViewModel:function(T){return _.X(qyp,{data:T.data,active:a})},
videoAttributeViewModel:rir}))},"Nd");
tij.idomCompat=!0;_.pE(tij,"macro-markers-panel-item-view-model",{props:{data:_.Qf}});_.pE(CPL,"yt-video-attributes-section-view-model",{props:{data:_.Qf}});var rp$=_.aP(function(A){var Q=function(){var b,f,a;return(a=(b=A.data().leadingLogoAccessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label)!=null?a:""};
return _.X("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.X(_.S,{cond:function(){return A.data().leadingLogo},
then:function(b){return _.X(_.aY,{className:"ytwFantasySectionHeaderViewModelLogo",data:b,alt:Q})}}),_.X("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.X(_.Rb,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return A.data().title}}),_.X(_.Rb,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return A.data().subtitle}})),_.X(_.WL,{data:function(){return A.data().trailingButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Od");var jeY=_.aP(function(A){var Q={};Q=_.O4("ytwFantasyTeamViewModelHost",(Q.ytwFantasyTeamViewModelCompact=function(){var a;return!((a=A.compact)==null||!a.call(A))},Q.ytwFantasyTeamViewModelUser=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},Q.ytwFantasyTeamViewModelOpponent=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},Q));
var b=function(){var a,T,G;return(G=(a=A.data().teamLogoAccessibility)==null?void 0:(T=a.accessibilityData)==null?void 0:T.label)!=null?G:""},f=_.I$(Hdy,function(){return A.data().teamEntityKey});
return _.X("ytw-fantasy-team-view-model",{class:Q},_.X(_.S,{cond:function(){return A.data().teamLogo},
then:function(a){return _.X(_.aY,{className:"ytwFantasyTeamViewModelLogo",data:a,alt:b})}}),_.X("div",{class:"ytwFantasyTeamViewModelMetadata"},_.X("div",{class:"ytwFantasyTeamViewModelHeader"},_.X(_.Rb,{className:"ytwFantasyTeamViewModelScore",
text:function(){var a;return(a=f())==null?void 0:a.score}}),_.X(_.oY,{icon:function(){var a;
return(a=f())==null?void 0:a.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.X(_.Rb,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var a;return(a=f())==null?void 0:a.projectedScore}})),_.X(_.Rb,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return A.data().primaryText}}),_.X(_.Rb,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return A.data().secondaryText}}),_.X(_.Rb,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return A.data().tertiaryText}})),_.X(_.Rb,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var a;return(a=f())==null?void 0:a.score}}))},"Pd");_.pE(_.aP(function(A){return _.X("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.X("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.X(_.WL,{data:function(){return A.data().summaryHeader}},{fantasySectionHeaderViewModel:rp$})),_.X(_.WL,{data:function(){return A.data().userTeam}},{fantasyTeamViewModel:jeY}),_.X(_.WL,{data:function(){return A.data().opponentTeam}},{fantasyTeamViewModel:jeY}))},"Qd"),"fantasy-league-summary-view-model",{props:{data:_.Qf}});var Rdr=_.aP(function(A){var Q=_.be(A,{shape:{},useCustomTabRenderable:!1}),b=Q.shape;Q=Q.useCustomTabRenderable;var f=A.customTabRenderable,a=function(){return b().disabled},T=function(){return b().selected},G=function(){return b().title},p=function(){return b().icon},P=_.st("yt-tab-shape");
A=_.IY(function(M){var l;if(!a()&&((l=b().aTagConfig)==null?0:l.onclick))b().aTagConfig.onclick(M);return!1});
var U=_.IY(function(M){if(M.key==="Enter"||M.key==="ArrowUp"||M.key==="ArrowDown")M.preventDefault(),P.value.click();return!1}),L={};
return _.X("yt-tab-shape",{class:_.O4("yt-tab-shape-wiz",function(){return b().className},(L["yt-tab-shape-wiz__tab--last-tab"]=function(){return b().isLastTab},L["yt-tab-shape-wiz--host-disabled"]=a,L["yt-tab-shape-wiz--host-clickable"]=!f,L)),
role:f?void 0:"tab","aria-selected":T!=null?T:!1,"aria-disabled":a,tabindex:f?void 0:0,"on:click":A,"on:keydown":U,el:P,"tab-identifier":function(){return b().identifier},
"tab-title":G},_.X(_.S,{cond:Q,then:function(){return f()},
else:function(){var M={},l={};return _.X(_.bd,null,_.X("div",{class:_.O4("yt-tab-shape-wiz__tab",(M["yt-tab-shape-wiz__tab--tab-selected"]=T,M))},_.X(_.S,{cond:p,then:function(J){return _.X(_.oY,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return J().iconType}})}}),G),_.X("div",{class:_.O4("yt-tab-shape-wiz__tab-bar",(l["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=T,l))}))}}))},"Rd");
Rdr.idomCompat={callbacks:{customTabRenderable:!0}};_.edj=_.aP(function(A){var Q=A.shape;A=_.F(_.pz(48,void 0,"r9IBlb"));var b=A.next().value,f=A.next().value;A=_.F(_.pz(0,void 0,"Bd7rmd"));var a=A.next().value,T=A.next().value,G=function(){return Q().tabs},p=_.st("yt-tab-group-shape"),P=function(){var U,L;
return(L=(U=G())==null?void 0:U.findIndex(function(M){return M.selected}))!=null?L:-1};
_.tz(function(){var U=p.value.querySelectorAll("yt-tab-shape"),L=P()>-1?U[P()]:void 0;_.j7.addJob(function(){f((L==null?void 0:L.getBoundingClientRect().width)||0)},8,0)});
_.H_(function(){var U=P(),L=_.j7.addJob(function(){var M,l=((M=p.value)==null?void 0:M.querySelectorAll("yt-tab-shape"))||[],J;f(((J=U>-1?l[U]:void 0)==null?void 0:J.getBoundingClientRect().width)||0);for(J=M=0;J<U;J++)M+=l[J].offsetWidth+24;_.vG("HTML_DIR")==="rtl"&&(M=-M);T(M)},8,0);
_.Cz(function(){_.j7.cancelJob(L)})},"EHixkc");
A={};return _.X("yt-tab-group-shape",{class:_.O4("yt-tab-group-shape-wiz",(A["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return Q().isOverflowHidden},A)),
el:p},_.X(_.S,{cond:G,then:function(U){return _.X(_.bd,null,_.X("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.X(_.Op,{each:U},function(L,M){return _.X(Rdr,{shape:function(){return Object.assign({},L,{isLastTab:M()===U().length-1})},
customTabRenderable:L.customTabRenderable,useCustomTabRenderable:!!L.customTabRenderable})})),_.X(gyK,{width:b,
sliderOffset:a}))}}))},"Sd");
_.edj.idomCompat=!0;var gyK=_.aP(function(A){var Q=_.Q0(A.sliderOffset,0),b=A.width;return _.X("div",{class:"yt-tab-group-shape-wiz__slider",style:_.qM({width:function(){return b()+"px"},
transform:function(){return"translateX("+Q()+"px)"}})})},"Td");var hdK=_.aP(function(A){var Q=function(){var T,G,p;return(p=(T=A.data().playerLogoAccessibility)==null?void 0:(G=T.accessibilityData)==null?void 0:G.label)!=null?p:""},b=_.I$(CbF,function(){return A.data().playerEntityKey}),f={};
f=_.O4("ytwFantasyPlayerViewModelHost",(f.ytwFantasyPlayerViewModelPlaying=function(){var T;return!((T=b())==null||!T.isPlayerPlaying)},f.ytwFantasyPlayerViewModelOnField=function(){var T;
return((T=b())==null?void 0:T.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},f.ytwFantasyPlayerViewModelRedZone=function(){var T;
return((T=b())==null?void 0:T.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},f));
var a=function(){var T,G,p,P=((T=_.fJ().resolve(_.bu(_.Af)))==null?0:T())?(G=A.data().playerLogoBackgroundColor)==null?void 0:G.darkTheme:(p=A.data().playerLogoBackgroundColor)==null?void 0:p.lightTheme;return P===void 0?"":_.w6(P)};
return _.X("ytw-fantasy-player-view-model",{class:f},_.X(_.S,{cond:function(){return A.data().playerLogo},
then:function(T){return _.X("div",{class:"ytwFantasyPlayerViewModelLogo"},_.X("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.X(_.aY,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.qM({"background-color":a}),data:T,alt:Q})),_.X("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.X(_.oY,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.X("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.X("div",{class:"ytwFantasyPlayerViewModelHeader"},_.X(_.Rb,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var T;return(T=A.data())==null?void 0:T.playerNameText}}),_.X(_.Rb,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var T;return(T=A.data())==null?void 0:T.playerDescriptionText}})),_.X("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.X(_.Rb,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var T;return(T=b())==null?void 0:T.gamePeriodText}}),_.X(_.Rb,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var T;return(T=A.data())==null?void 0:T.opponentTeamText}}),_.X(_.Rb,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var T;return(T=b())==null?void 0:T.gameStatusText}}),_.X(_.Rb,{className:_.O4("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var T;return(T=b())==null?void 0:T.playerStatusText}})),_.X("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.X(_.Rb,{text:function(){var T;
return(T=b())==null?void 0:T.playerStatsText}}))),_.X(_.Rb,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var T;return(T=b())==null?void 0:T.fantasyScore}}))},"Ud");var WFj=_.aP(function(A){return _.X("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.X(_.S,{cond:function(){return A.data().players},
then:function(Q){return _.X(_.WL,{data:Q},{fantasyPlayerViewModel:hdK})}}))},"Vd");var vyN=_.aP(function(A){var Q=_.F(_.CE(function(){var a;return(a=A.data().selectedTabIdentifierKey)!=null?a:""})),b=Q.next().value,f=Q.next().value;
_.CH(function(){var a;(a=A.setSelectedTabSignal)==null||a.call(A,b)});
return _.X("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.X("div",{class:"ytTabbedViewModelTabGroup"},_.X(_.edj,{shape:function(){var a=A.data(),T=[],G={tabs:T};if(!a.tabs)return G;a=_.F(a.tabs);for(var p=a.next(),P={};!p.done;P={tabViewModel:void 0},p=a.next())if(P.tabViewModel=_.V(p.value,A9j),P.tabViewModel){var U=p=void 0;T.push({aTagConfig:{onclick:function(L){return function(){var M;f((M=L.tabViewModel.tabIdentifier)!=null?M:"")}}(P)},
identifier:P.tabViewModel.tabIdentifier,selected:b()===P.tabViewModel.tabIdentifier,title:(U=(p=P.tabViewModel.title)==null?void 0:p.content)!=null?U:""})}return G}})),_.X(_.WL,{data:function(){var a,T=_.F((a=A.data().tabs)!=null?a:[]);
for(a=T.next();!a.done;a=T.next())if((a=_.V(a.value,A9j))&&a.tabIdentifier===b())return a.content}},{fantasyRosterViewModel:WFj}))},"Wd");_.pE(_.aP(function(A){var Q=_.F(rw9()),b=Q.next().value,f=Q.next().value;return _.X("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.X(_.Rb,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return A.data().title}}),_.X(_.S,{cond:function(){return A.data().tabbedViewModel},
then:function(a){return _.X(_.WL,{data:a},{tabbedViewModel:function(T){return _.X(vyN,{data:T.data,setSelectedTabSignal:f})}})}}),_.X(_.S,{cond:function(){var a,T=(a=_.V(A.data().tabbedViewModel,Q3K))==null?void 0:a.tabs;
a=_.V(T==null?void 0:T[0],A9j);T=_.V(T==null?void 0:T[1],A9j);var G=a==null?void 0:a.tabIdentifier;if(b()===G){var p,P;if(!((p=_.V(a==null?void 0:a.content,yPp))==null?0:(P=p.players)==null?0:P.length))return A.data().noUserTeamPlayersText}else{var U,L;if(!((U=_.V(T==null?void 0:T.content,yPp))==null?0:(L=U.players)==null?0:L.length))return A.data().noOpponentTeamPlayersText}},
then:function(a){return _.X(_.Rb,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:a})}}))},"Xd"),"ytw-fantasy-matchup-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){return _.X("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.X(_.Rb,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return A.data().title}}),_.X(_.S,{cond:function(){return A.data().matchupTeamPairs},
then:function(Q){return _.X(_.Op,{each:Q,keyBy:"INDEX"},function(b){return _.X("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.X(_.WL,{data:function(){return[b().firstTeam,b().secondTeam]}},{fantasyTeamViewModel:function(f){return _.X(jeY,{data:f.data,
compact:!0})}}))})}}))},"Yd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=function(){var a,T,G;return(G=(a=A.data().userLogoAccessibility)==null?void 0:(T=a.accessibilityData)==null?void 0:T.label)!=null?G:""},b=function(){var a,T,G;
return(G=(a=A.data().opponentLogoAccessibility)==null?void 0:(T=a.accessibilityData)==null?void 0:T.label)!=null?G:""},f=_.I$(IaC,function(){return A.data().entityKey});
return _.X("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.X("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.X(_.S,{cond:function(){return A.data().userLogo},
then:function(a){return _.X(_.aY,{className:"ytwFantasyWinProbabilityViewModelLogo",data:a,alt:Q})}}),_.X("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.X(_.Rb,{text:function(){return A.data().title}})),_.X(_.S,{cond:function(){return A.data().opponentLogo},
then:function(a){return _.X(_.aY,{className:"ytwFantasyWinProbabilityViewModelLogo",data:a,alt:b})}})),_.X("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.X("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.X(_.Rb,{text:function(){var a;
return(a=f())==null?void 0:a.userWinNumberLabel}})),_.X("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.X("div",{class:_.O4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.qM({flex:function(){var a,T;return(T=(a=f())==null?void 0:a.userWinNumber)!=null?T:50}})}),_.X("div",{class:_.O4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.qM({flex:function(){var a,T;return(T=(a=f())==null?void 0:a.opponentWinNumber)!=null?T:50}})})),_.X("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.X(_.Rb,{text:function(){var a;
return(a=f())==null?void 0:a.opponentWinNumberLabel}}))))},"Zd"),"fantasy-win-probability-view-model",{props:{data:_.Qf}});var Ey1={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},xdL=_.aP(function(A){return _.X(_.WL,{data:A.button},{buttonViewModel:function(Q){return _.X(_.J9,{data:Q.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"$d"),cp$=_.aP(function(A){return _.X("ytd-backstage-locked-post-view-model",{class:_.O4("ytdBackstageLockedPostViewModelHost",A.className)},_.X("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.X("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.X(_.WL,
{data:function(){return A.data().authorAvatar}},{decoratedAvatarViewModel:_.E9})),_.X("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.X("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.X(_.Rb,{text:function(){return A.data().authorText}})),_.X("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.X(_.Rb,{text:function(){return A.data().publishedTimeText}}),_.X(_.WL,{data:function(){return A.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(Q){return _.X(Mfx,
{data:Q.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.X("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.X(_.Rb,{text:function(){return A.data().contentText}})),_.X(_.I8,null,_.X(_.nH,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.X("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.X(_.aY,{data:Ey1,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.X(_.Rb,{text:function(){return A.data().lockedText}}))}),_.X(_.nH,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.X("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.X("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.X(_.aY,{data:Ey1,
alt:""})),_.X(_.Rb,{text:function(){return A.data().lockedText}}))})),_.X("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.X(xdL,{button:function(){return A.data().likeButton}}),_.X("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().voteCountA11y}},_.X(_.Rb,{text:function(){return A.data().voteCount}})),_.X(xdL,{button:function(){return A.data().dislikeButton}}),_.X(xdL,{button:function(){return A.data().commentButton}}),_.X("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().commentCountA11y}},_.X(_.Rb,{text:function(){return A.data().commentCount}}))))},"ae");
cp$.idomCompat=!0;_.pE(cp$,"ytd-backstage-locked-post-view-model",{props:{data:_.Qf,className:_.Qf}});_.xo("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var sI=function(){var A=_.q.apply(this,arguments)||this;A.darkerPanels=_.K("web_watch_darker_panels");A.commentsHidePanelButton=!1;A.isWatchGrid=!1;A.continuationShowButton=!1;A.isSearch=!1;A.isConstrainedList=!1;A.isWatch=!1;A.eligibleToSwitchToGrid=!1;A.useBigThumbs=!1;A.notSticky=!1;A.epRestyle=!1;A.isCarouselInFeed=!0;A.topSpacingZero=!1;A.continuationIsInitialLoad=!0;A.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");
A.mastheadHeight=0;A.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};A.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return A};
_.O(sI,_.q);_.d=sI.prototype;_.d.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var Q;(Q=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||Q.forEach(function(b){b.containerType=A})}};
_.d.getItemsPath=function(){return"data.contents"};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.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]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.K("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.K("kevlar_low_priority_continuation")}}};
_.d.created=function(){};
_.d.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.d.handleIntersect=function(A){this.notSticky=A[0].intersectionRatio===1};
_.d.attached=function(){var A=this;document.addEventListener("scroll",_.lN(this,this.updateHeaderState));var Q;this.mastheadHeight=((Q=document.querySelector("ytd-masthead"))==null?void 0:Q.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(b){A.handleIntersect(b)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.d.detached=function(){document.removeEventListener("scroll",_.lN(this,this.updateHeaderState));var A;(A=this.intersectionObserver)==null||A.disconnect();var Q;(Q=this.resizeObserver)==null||Q.disconnect()};
_.d.updated=function(A){A.has("data")&&this.updateHeaderState()};
_.d.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(SMj(!this.notSticky))};
_.d.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var A=_.Bj(this.hostElement).querySelector("ytd-comments-header-renderer");A&&(A.hidePanelButton=this.commentsHidePanelButton)}};
_.d.onRetrieveLocation=function(A,Q){this.containsComments()&&(this.firstCommentsLoaded=Q.hasComments=!0)};
_.d.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.d.onLoadReloadContinuation=function(A,Q){var b=this;A.stopPropagation();this.isReloading=!0;_.Bn(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(f){var a=_.fJ().resolve(_.WY);f=Q(f);a.postData(f).then(function(T){b.onReloadContinuationData(T)})}})};
_.d.onReloadContinuationData=function(A){if(A=this.get("response.continuationContents.itemSectionContinuation",A)||this.get("response.contents.itemSectionRenderer",A)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",A)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",A))this.set("data.contents",A.contents||A.results),A.header&&this.set("data.header",A.header),this.set("data.continuations",
A.continuations||[]);this.isReloading=!1};
_.d.computeContentsClass=function(A){return A?"reloading":""};
_.d.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.d.computeSectionIdentifier=function(A){return A==null?void 0:A.sectionIdentifier};
_.d.computeFitContainer=function(A){return(A==null?void 0:A.sectionIdentifier)==="youchat-item-section"};
_.d.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.K("kevlar_disable_comments_auto_load")};
_.d.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.d.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.d.computeHasDestinationShelfRenderer=function(A){var Q,b;return!!(A==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:b.destinationShelfRenderer)};
_.d.computeHasSectionGroupViewModel=function(A){var Q,b;return!!(A==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:b.sectionGroupViewModel)};
_.d.computeHasQrCodeRenderer=function(A){var Q,b;return!!(A==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:b.qrCodeRenderer)};
_.d.computeStaticCommentsHeader=function(A){return A&&this.containsComments()};
_.d.computeEpRestyle=function(A){return _.K("web_ep_restyling")&&A&&this.containsComments()};
_.d.computeIsContinuationCommentSection=function(A){return(A==null?void 0:A.targetId)==="shorts-engagement-panel-comments-section"||(A==null?void 0:A.targetId)==="comments-section"||(A==null?void 0:A.targetId)==="engagement-panel-comments-section"};
_.d.computeSuppressPaddingDisclaimer=function(){var A,Q,b,f;return!!((A=this.data)==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:(f=b.productListHeaderRenderer)==null?0:f.suppressPaddingDisclaimer)};
_.d.computeHeaderStyle=function(A){switch(A==null?void 0:A.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.d.dataChanged=function(){this.firstCommentsLoaded=!1};
_.d.observeDataContentsLength=function(){var A,Q;((A=this.data)==null?0:(Q=A.contents)==null?0:Q.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.d.onYtDismissibleItemDismissedChange=function(A){this._setItemDismissed(A.type==="yt-dismissible-item-dismissed")};
_.d.triggerContinuations=function(){for(var A=_.Bj(this.hostElement).querySelector("#continuations").children,Q=0;Q<A.length;Q++)A[Q].trigger()};
_.d.triggerInitialContinuations=function(){for(var A=_.Bj(this.hostElement).querySelector("#continuations").children,Q=0;Q<A.length;Q++)A[Q].triggerIfNotPreviouslyTriggered()};
_.d.handleYtItemSectionContinuation=function(A,Q){var b;Q&&((b=this.data)==null?void 0:b.sectionIdentifier)!==Q||(this.set("data.continuations",[A]),this.triggerContinuations())};
_.d.handleYtItemSectionReplace=function(A,Q){var b;Q&&((b=this.data)==null?void 0:b.sectionIdentifier)!==Q||(this.set("data.contents",A),this.set("data.continuations",[]))};
_.d.computeUseHeightHack=function(A){return A&&!_.K("kevlar_disable_height_hack")};
_.d.computeTopSpacingZero=function(A){return A};
_.d.continuationShowButtonChanged=function(){var A=_.Bj(this.hostElement).querySelector("ytd-continuation-item-renderer");A&&(A.showButton=this.continuationShowButton)};
_.d.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("data-changed",this.data))};
_.Qr.Object.defineProperties(sI.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.K("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}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!((A=this.data)==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:b.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f,a,T,G;return!!((A=this.data)==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:(f=b.shelfRenderer)==null?0:(a=f.content)==null?0:(T=a.gridRenderer)==null?0:(G=T.targetId)==null?0:G.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!((A=this.data)==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:b.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!((A=this.data)==null?0:(Q=A.contents)==null?0:(b=Q[0])==null?0:b.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Br("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.K("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.K("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
sI.prototype.dataChangedForBinding=sI.prototype.dataChangedForBinding;sI.prototype.continuationShowButtonChanged=sI.prototype.continuationShowButtonChanged;sI.prototype.onYtDismissibleItemDismissedChange=sI.prototype.onYtDismissibleItemDismissedChange;sI.prototype.observeDataContentsLength=sI.prototype.observeDataContentsLength;sI.prototype.dataChanged=sI.prototype.dataChanged;sI.prototype.onServiceRequestCompleted=sI.prototype.onServiceRequestCompleted;sI.prototype.onLoadReloadContinuation=sI.prototype.onLoadReloadContinuation;
sI.prototype.onRetrieveLocation=sI.prototype.onRetrieveLocation;sI.prototype.commentsHidePanelButtonChanged=sI.prototype.commentsHidePanelButtonChanged;sI.prototype.dispatchChipBarIsSticky=sI.prototype.dispatchChipBarIsSticky;sI.prototype.updateLockupContainerTypes=sI.prototype.updateLockupContainerTypes;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],sI.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],sI.prototype,"ytLazyListBehavior",void 0);_.E([_.I(_.mG.YtNextContinuationBehavior),_.c("design:type",Object)],sI.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.I(_.sM),_.c("design:type",Object)],sI.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],sI.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],sI.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sI.prototype,"darkerPanels",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Boolean)],sI.prototype,"engagementPanel",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"commentsHidePanelButton",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"isWatchGrid",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"continuationShowButton",void 0);_.E([_.C({computed:"computeIsContinuationCommentSection(data)"}),_.c("design:type",Boolean)],sI.prototype,"continuationIsCommentsSection",void 0);
_.E([_.C({value:!0}),_.c("design:type",Boolean)],sI.prototype,"autoFill",void 0);_.E([_.C(),_.c("design:type",Boolean)],sI.prototype,"continuationDisablePrescanVisibility",void 0);_.E([_.C(),_.c("design:type",Boolean)],sI.prototype,"isReloading",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"isSearch",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"isConstrainedList",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"isWatch",void 0);
_.E([_.C(),_.c("design:type",Object)],sI.prototype,"eligibleToSwitchToGrid",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"useBigThumbs",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sI.prototype,"notSticky",void 0);_.E([_.C({selector:_.uc}),_.c("design:type",Object)],sI.prototype,"isGridViewEnabled",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.c("design:type",Object)],sI.prototype,"epRestyle",void 0);_.E([_.H("isWatch"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],sI.prototype,"hideShortsShelfHeader",null);_.E([_.H("isSearch","isWatch"),_.c("design:type",String),_.c("design:paramtypes",[])],sI.prototype,"thumbnailWidth",null);
_.E([_.H("isSearch","containerWidth"),_.c("design:type",Object),_.c("design:paramtypes",[])],sI.prototype,"thumbnailTargetWidth",null);_.E([_.H("isSearch","isWatch"),_.c("design:type",String),_.c("design:paramtypes",[])],sI.prototype,"sizing",null);_.E([_.H("isWatch","isGridViewEnabled","useBigThumbs","data"),_.C({reflectToAttribute:!0}),_.c("design:type",Number),_.c("design:paramtypes",[])],sI.prototype,"lockupContainerType",null);
_.E([_.iN("lockupContainerType","data"),_.c("design:type",Function),_.c("design:paramtypes",[Number]),_.c("design:returntype")],sI.prototype,"updateLockupContainerTypes",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],sI.prototype,"pageSubtype",void 0);_.E([_.C({computed:"computeContainerWidth()"}),_.c("design:type",Number)],sI.prototype,"containerWidth",void 0);_.E([_.C(),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],sI.prototype,"isPlaylist",null);
_.E([_.C(),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],sI.prototype,"isClipList",null);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"isCarouselInFeed",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],sI.prototype,"isPlaylistVideoContainer",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],sI.prototype,"isSearchFrictionPage",null);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.c("design:type",Boolean)],sI.prototype,"useHeightHack",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.c("design:type",Object)],sI.prototype,"topSpacingZero",void 0);_.E([_.C({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.c("design:type",Boolean)],sI.prototype,"showButton",void 0);
_.E([_.C(),_.c("design:type",Boolean)],sI.prototype,"firstCommentsLoaded",void 0);_.E([_.C(),_.c("design:type",Object)],sI.prototype,"continuationIsInitialLoad",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0}),_.c("design:type",Boolean)],sI.prototype,"itemDismissed",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.c("design:type",String)],sI.prototype,"sectionIdentifier",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.c("design:type",String)],sI.prototype,"fitContainer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.c("design:type",Boolean)],sI.prototype,"hasDestinationShelfRenderer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.c("design:type",Boolean)],sI.prototype,"staticCommentsHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sI.prototype,"enableSqueezebackPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sI.prototype,"enableAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.c("design:type",Boolean)],sI.prototype,"hasSectionGroupViewModel",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.c("design:type",Boolean)],sI.prototype,"hasQrCodeRenderer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.c("design:type",Boolean)],sI.prototype,"suppressDisclaimerSeparator",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.c("design:type",String)],sI.prototype,"headerStyle",void 0);
_.E([_.H("isSearch"),_.c("design:type",Object),_.c("design:paramtypes",[])],sI.prototype,"lockupExperiments",null);_.E([_.H("isSearch"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],sI.prototype,"typographyBump",null);_.E([_.V1("#header"),_.c("design:type",HTMLElement)],sI.prototype,"header",void 0);_.E([_.iN("notSticky"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sI.prototype,"dispatchChipBarIsSticky",null);
_.E([_.iN("commentsHidePanelButton"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sI.prototype,"commentsHidePanelButtonChanged",null);_.E([_.Kc("yt-retrieve-location"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],sI.prototype,"onRetrieveLocation",null);
_.E([_.Kc("yt-load-reload-continuation"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Function]),_.c("design:returntype")],sI.prototype,"onLoadReloadContinuation",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sI.prototype,"onServiceRequestCompleted",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sI.prototype,"dataChanged",null);
_.E([_.I_("data.contents.length"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sI.prototype,"observeDataContentsLength",null);_.E([_.Kc("yt-dismissible-item-dismissed"),_.Kc("yt-dismissible-item-undismissed"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],sI.prototype,"onYtDismissibleItemDismissedChange",null);
_.E([_.iN("continuationShowButton"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sI.prototype,"continuationShowButtonChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sI.prototype,"dataChangedForBinding",null);_.E([_.h({is:"ytd-item-section-renderer",disableElementRegistration:!0})],sI);
_.W(sI,"ytd-item-section-renderer",function(){if(FCx!==void 0)return FCx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return FCx=A},{mode:1});var zdW;var gVi=_.sr(_.JQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var wqY={},R1e=(wqY[0]={title:_.T7(_.JQ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.T7(_.JQ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:fO("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},wqY[1]={title:_.T7(_.JQ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:fO("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},wqY);_.xo("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var mA=function(){var A=_.q.apply(this,arguments)||this;A.allVideosCount=0;A.allPlaylistCount=0;A.isOnline=!1;A.shouldRenderDownloadsBanner=!1;A.shouldRenderDownloadsBannerUpsell=!1;A.hasOptedIntoSmartDownloads=!1;A.areAllSmartDownloadsDeleted=!1;A.smartDownloadsCompleted=!1;return A};
_.O(mA,_.q);mA.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
mA.prototype.attached=function(){this.downloadsToRenderChanged()};
mA.prototype.detached=function(){this.set("renderableData",{})};
mA.prototype.downloadsToRenderChanged=function(){var A=_.QK().getState().entities,Q=_.j$(A),b=_.K("kevlar_playlist_dl_page_killswitch")?R5Y(A):_.RX(A),f=_.H2W(A),a=_.t39(A),T=_.HO(Q);A=_.gs(A);this.set("renderableData",h1y(b,Q,f,a,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,T,A))};
mA.prototype.downloadsToRenderChanged=mA.prototype.downloadsToRenderChanged;_.E([_.I(_.cb),_.c("design:type",Object)],mA.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],mA.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],mA.prototype,"renderableData",void 0);_.E([_.C({selector:_.yYU}),_.c("design:type",Object)],mA.prototype,"allVideosCount",void 0);_.E([_.C({selector:kib}),_.c("design:type",Object)],mA.prototype,"allPlaylistCount",void 0);_.E([_.C({selector:_.Er}),_.c("design:type",Object)],mA.prototype,"isOnline",void 0);_.E([_.C({selector:_.AXy}),_.c("design:type",Object)],mA.prototype,"shouldRenderDownloadsBanner",void 0);
_.E([_.C({selector:_.aBJ}),_.c("design:type",Object)],mA.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.C({selector:_.Qay}),_.c("design:type",Object)],mA.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.C({selector:_.bWe}),_.c("design:type",Object)],mA.prototype,"areAllSmartDownloadsDeleted",void 0);_.E([_.C({selector:fBA}),_.c("design:type",Object)],mA.prototype,"smartDownloadsCompleted",void 0);
_.E([_.I_("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mA.prototype,"downloadsToRenderChanged",null);_.E([_.h({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],mA);
_.W(mA,"ytd-offline-item-section-renderer",function(){if(zdW!==void 0)return zdW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return zdW=A},
{mode:1});var uV9;var ZAL;var AA=function(){return _.q.apply(this,arguments)||this};
_.O(AA,_.q);
AA.prototype.onDataChanged=function(){if(this.JSC$16545_lastData){var A=this.getFilterClass(this.JSC$16545_lastData.status);A&&this.hostElement.classList.remove(A)}var Q;(A=this.getFilterClass((Q=this.data)==null?void 0:Q.status))&&this.hostElement.classList.add(A);A==="selected"?_.Bj(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Bj(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");A==="disabled"?_.Bj(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Bj(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16545_lastData=this.data};
AA.prototype.getFilterClass=function(A){switch(A){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
AA.prototype.onDataChanged=AA.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],AA.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],AA.prototype,"onDataChanged",null);_.E([_.h({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],AA);
_.W(AA,"ytd-search-filter-renderer",function(){if(ZAL!==void 0)return ZAL;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ZAL=A},{mode:_.UG("kevlar_poly_si_batch_j075")?1:2});var QG=function(){return _.q.apply(this,arguments)||this};
_.O(QG,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],QG.prototype,"data",void 0);_.E([_.h({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],QG);
_.W(QG,"ytd-search-filter-group-renderer",function(){if(uV9!==void 0)return uV9;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return uV9=A},{mode:_.UG("kevlar_poly_si_batch_j075")?1:2});var ypr;var bR=function(){return _.q.apply(this,arguments)||this};
_.O(bR,_.q);bR.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Kn());this.isCollapsed=!this.isCollapsed};
bR.prototype.navigateToAboutTheseResultsPage=function(){var A=g$("https://www.youtube.com/howyoutubeworks/product-features/search/");A?_.Y8(window,A,"_blank"):_.xQ(Error("Qh"))};
bR.prototype.dataChanged=function(){this.isCollapsed=!0};
bR.prototype.computeShowBottomBorder=function(){var A,Q,b;return!!((A=this.data)==null?0:(Q=A.button)==null?0:Q.toggleButtonRenderer)||!((b=this.data)==null||!b.aboutTheseResultsButton)};
bR.prototype.dataChanged=bR.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bR.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.c("design:type",Boolean)],bR.prototype,"showBottomBorder",void 0);_.E([_.C(),_.c("design:type",Boolean)],bR.prototype,"renderCollapsibleMenu",void 0);
_.E([_.C(),_.c("design:type",Boolean)],bR.prototype,"isCollapsed",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bR.prototype,"dataChanged",null);_.E([_.h({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],bR);
_.W(bR,"ytd-search-sub-menu-renderer",function(){if(ypr!==void 0)return ypr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ypr=A},{mode:1});var Yyx;var Ddj=new _.TS("SECTION_LIST_RENDERER_TOKEN");var $d1;var fX=function(){return _.q.apply(this,arguments)||this};
_.O(fX,_.q);fX.prototype.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fX.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.c("design:type",String)],fX.prototype,"headerStyle",void 0);_.E([_.h({is:"ytd-text-header-renderer",disableElementRegistration:!0})],fX);
_.W(fX,"ytd-text-header-renderer",function(){if($d1!==void 0)return $d1;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $d1=A},{mode:1});var N4L;var af=function(){return _.q.apply(this,arguments)||this};
_.O(af,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],af.prototype,"data",void 0);_.E([_.h({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],af);
_.W(af,"ytd-minor-moment-header-renderer",function(){if(N4L!==void 0)return N4L;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return N4L=A},{mode:1});var seK;var T3=function(){return _.q.apply(this,arguments)||this};
_.O(T3,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],T3.prototype,"data",void 0);_.E([_.h({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],T3);
_.W(T3,"ytd-minor-moment-setting-alert-renderer",function(){if(seK!==void 0)return seK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return seK=A},{mode:1});var mdL;var Agy;var dD=function(){var A=_.q.apply(this,arguments)||this;A.booleanSettingById=!1;A.smartDownloadsEnabledVE=_.K6(128287);A.smartDownloadsDisabledVE=_.K6(128286);A.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return A};
_.O(dD,_.q);_.d=dD.prototype;_.d.attachSmartDownloadsSettingVes=function(){var A;this.activeVeForLogging||((A=this.data)==null?void 0:A.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.l$(_.IP(),this.smartDownloadsEnabledVE),_.l$(_.IP(),this.smartDownloadsDisabledVE))};
_.d.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Bn(this.hostElement,"yt-settings-switch-ready")};
_.d.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.d.onSwitchChange=function(A){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(A=_.Au(A).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.K("kevlar_settings_switch_resolve_command_killswitch")?_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(A)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.d.handleUpdateSettingsSwitch=function(A){(A=_.V(A,Sfp))&&this.data&&this.data.id===A.id&&this.set("data.enabled",!!A.enabled)};
_.d.onToggleSettingsSwitch=function(A,Q){this.data&&this.data.id===A&&this.set("data.enabled",Q!=null?Q:!this.data.enabled)};
_.d.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.dl.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.d.maybeLogSmartDownloadsSettingVisibility=function(){var A=_.WR(),Q;A&&((Q=this.data)==null?void 0:Q.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Y_(A,[this.smartDownloadsEnabledVE]),_.DV(A,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Y_(A,[this.smartDownloadsDisabledVE]),_.DV(A,[this.smartDownloadsEnabledVE])))};
_.d.maybeLogSmartDownloadsSettingClick=function(){var A;((A=this.data)==null?void 0:A.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.i$(_.IP(),this.activeVeForLogging)};
_.d.updateDataEnabledFromBinding=function(A){this.set("data.enabled",A.detail.value)};
_.Qr.Object.defineProperties(dD.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!A&&(A=this.ytRendererBehavior.getSimpleString(this.data.title));return A}}});
dD.prototype.dataChanged=dD.prototype.dataChanged;_.E([_.I(_.cb),_.c("design:type",Object)],dD.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],dD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],dD.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],dD.prototype,"data",void 0);_.E([_.C({selector:function(A,Q){if(Object.keys(A==null?void 0:A.entities).length)switch(Q){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return ggU(A.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.c("design:type",Object)],dD.prototype,"booleanSettingById",void 0);_.E([_.C(),_.c("design:type",eU)],dD.prototype,"activeVeForLogging",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],dD.prototype,"toggleAriaLabel",null);_.E([_.I_("data"),_.I_("booleanSettingById"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],dD.prototype,"dataChanged",null);
_.E([_.h({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],dD);
_.W(dD,"ytd-settings-switch-renderer",function(){if(Agy!==void 0)return Agy;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Agy=A},{mode:1});var FB=function(){return _.q.apply(this,arguments)||this};
_.O(FB,_.q);FB.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}}}}};
_.Qr.Object.defineProperties(FB.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var A=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(A+=" remove-left-margin");this.data.extraBottomSpace&&(A+=" extra-bottom-space");return A}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],FB.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],FB.prototype,"contentsClassName",null);_.E([_.h({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],FB);
_.W(FB,"ytd-minor-moment-setting-section-renderer",function(){if(mdL!==void 0)return mdL;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return mdL=A},{mode:1});var QrL;var G3=function(){return _.q.apply(this,arguments)||this};
_.O(G3,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],G3.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],G3.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],G3);
_.W(G3,"ytd-empty-product-details-renderer",function(){if(QrL!==void 0)return QrL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return QrL=A},{mode:1});var biW;var fT$;var Bf=function(){var A=_.q.apply(this,arguments)||this;A.expanded=!0;return A};
_.O(Bf,_.q);Bf.prototype.getBadgeRowClass=function(A,Q,b){for(var f=_.F(this.hostElement.querySelectorAll("yt-img-shadow")),a=f.next();!a.done;a=f.next())a.value.onShow();A=A.selected;return b?A!==-1?A===Q?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(A!==void 0?A:0)===Q?"badge-line":"badge-hidden"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Bf.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Bf.prototype,"expanded",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Bf);
_.W(Bf,"ytd-sponsorships-loyalty-badges-renderer",function(){if(fT$!==void 0)return fT$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return fT$=A},{mode:1});var aT1;var pX=function(){var A=_.q.apply(this,arguments)||this;A.expanded=!0;return A};
_.O(pX,_.q);pX.prototype.getContainerClasses=function(A,Q){A=A?"expanded":"collapsed";Q&&(A+=" item");return A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pX.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],pX.prototype,"expanded",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],pX);
_.W(pX,"ytd-sponsorships-perk-renderer",function(){if(aT1!==void 0)return aT1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return aT1=A},{mode:1});var Tjy;var Pf=function(){var A=_.q.apply(this,arguments)||this;A.expanded=!0;return A};
_.O(Pf,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Pf.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Pf.prototype,"expanded",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Pf);
_.W(Pf,"ytd-sponsorships-perks-renderer",function(){if(Tjy!==void 0)return Tjy;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Tjy=A},{mode:1});var XB=function(){var A=_.q.apply(this,arguments)||this;A.isCollapsed=!1;return A};
_.O(XB,_.q);XB.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
XB.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
XB.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var A;this.expandCollapseButton=_.V((A=this.data)==null?void 0:A.expandButton,_.wE)}else{var Q;this.expandCollapseButton=_.V((Q=this.data)==null?void 0:Q.collapseButton,_.wE)}};
XB.prototype.updateExpandCollapseButton=XB.prototype.updateExpandCollapseButton;XB.prototype.onDataChanged=XB.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],XB.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],XB.prototype,"isCollapsed",void 0);_.E([_.C(),_.c("design:type",Object)],XB.prototype,"expandCollapseButton",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XB.prototype,"onDataChanged",null);_.E([_.I_("data","isCollapsed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XB.prototype,"updateExpandCollapseButton",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],XB);
_.W(XB,"ytd-sponsorships-expandable-perks-renderer",function(){if(biW!==void 0)return biW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return biW=A},{mode:1});var dKr;var SX=function(){return _.q.apply(this,arguments)||this};
_.O(SX,_.q);SX.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],SX.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],SX.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],SX);
_.W(SX,"ytd-sponsorships-actionable-message-renderer",function(){if(dKr!==void 0)return dKr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return dKr=A},{mode:1});var FVW;var Ua=function(){return _.q.apply(this,arguments)||this};
_.O(Ua,_.q);_.d=Ua.prototype;_.d.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.d.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.d.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.d.computeMessageContainerStyle=function(A){var Q=A.expandableItems?" style-clickable":"";return A.messageContainerStyle?A.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+Q:"style-unspecified"+Q};
_.d.isSinglePerk=function(A){return!!A.messageContainerStyle&&(A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.d.onExpandedChanged=function(){var A=this;if(this.expanded)for(var Q=_.F(this.hostElement.querySelectorAll("yt-img-shadow")),b=Q.next();!b.done;b=Q.next())b.value.onShow();_.mL(this,function(){_.Bn(A.hostElement,"yt-refit")})};
_.d.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Ua.prototype.onDataChanged=Ua.prototype.onDataChanged;Ua.prototype.onExpandedChanged=Ua.prototype.onExpandedChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ua.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ua.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Ua.prototype,"expanded",void 0);
_.E([_.iN("expanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ua.prototype,"onExpandedChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ua.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Ua);
_.W(Ua,"ytd-sponsorships-expandable-message-renderer",function(){if(FVW!==void 0)return FVW;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return FVW=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var G2K;var LX=function(){return _.q.apply(this,arguments)||this};
_.O(LX,_.q);LX.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"}}}}};
LX.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.V(this.data.endButton,_.wE).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
LX.prototype.onDataChanged=LX.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],LX.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LX.prototype,"onDataChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],LX);
_.W(LX,"ytd-sponsorships-heading-renderer",function(){if(G2K!==void 0)return G2K;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return G2K=A},{mode:1});var BjW;var Mm=function(){return _.q.apply(this,arguments)||this};
_.O(Mm,_.q);_.E([_.C(),_.c("design:type",Object)],Mm.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Mm);
_.W(Mm,"ytd-sponsorships-links-renderer",function(){if(BjW!==void 0)return BjW;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return BjW=A},{mode:1});var p6N;var lR=function(){return _.q.apply(this,arguments)||this};
_.O(lR,_.q);_.d=lR.prototype;_.d.onDataChanged=function(){if(this.data&&this.data.expandableItems){var A;(A=_.Bj(this.hostElement).querySelector("tp-yt-paper-button"))==null||A.setAttribute("role","button")}else{var Q;(Q=_.Bj(this.hostElement).querySelector("tp-yt-paper-button"))==null||Q.removeAttribute("role")}};
_.d.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.d.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.d.getTileClasses=function(A){return A?"tile expandable-tile":"tile"};
_.d.getButtonDisabled=function(A){return A?void 0:""};
lR.prototype.onDataChanged=lR.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lR.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],lR.prototype,"expanded",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lR.prototype,"onDataChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],lR);
_.W(lR,"ytd-sponsorships-list-tile-renderer",function(){if(p6N!==void 0)return p6N;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return p6N=A},{mode:1});var PAN;var X6N;var KX=function(){return _.q.apply(this,arguments)||this};
_.O(KX,_.q);KX.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],KX.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],KX);
_.W(KX,"ytd-sponsorships-promotion-renderer",function(){if(X6N!==void 0)return X6N;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return X6N=A},{mode:1});var Sxx;var iR=function(){return _.q.apply(this,arguments)||this};
_.O(iR,_.q);iR.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iR.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],iR);
_.W(iR,"ytd-sponsorships-purchase-option-renderer",function(){if(Sxx!==void 0)return Sxx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Sxx=A},{mode:1});var UKY;var LVL;var MoN=function(){return _.q.apply(this,arguments)||this};
_.O(MoN,_.q);_.E([_.C(),_.c("design:type",Object)],MoN.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],MoN);
_.W(MoN,"ytd-ypc-offer-promo-renderer",function(){if(LVL!==void 0)return LVL;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return LVL=A},{mode:1});var JA=function(){return _.q.apply(this,arguments)||this};
_.O(JA,_.q);_.d=JA.prototype;
_.d.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"}}}}};
_.d.expansionCTA=function(A,Q){return A&&(Q?A.collapseCallToAction:A.expansionCallToAction)};
_.d.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.d.expansionCallToActionTap=function(){var A=this;this.expanded=!this.expanded;_.mL(this,function(){_.Bn(A.hostElement,"yt-refit")})};
_.d.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var A,Q=(A=this.data)==null?void 0:A.onVisible;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.d.computeDisplayTitle=function(A){return!(!A||this.titledisplaystatus!=="show")};
_.d.computeDisplaySeparator=function(){return!1};
_.d.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
JA.prototype.onDataChanged=JA.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],JA.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JA.prototype,"data",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],JA.prototype,"expanded",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],JA.prototype,"purchaseButtonClicked",void 0);_.E([_.C({reflectToAttribute:!0,value:"show"}),_.c("design:type",String)],JA.prototype,"titledisplaystatus",void 0);_.E([_.C({computed:"computeDisplayTitle(data.title)"}),_.c("design:type",Boolean)],JA.prototype,"displayTitle",void 0);
_.E([_.C({computed:"computeDisplaySeparator(data)"}),_.c("design:type",Boolean)],JA.prototype,"displaySeparator",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JA.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],JA);
_.W(JA,"ytd-sponsorships-tier-renderer",function(){if(UKY!==void 0)return UKY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return UKY=A},{mode:2});var VG=function(){return _.q.apply(this,arguments)||this};
_.O(VG,_.q);
VG.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],VG.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],VG);
_.W(VG,"ytd-sponsorships-management-renderer",function(){if(PAN!==void 0)return PAN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return PAN=A},{mode:1});var lTp;var Oa=function(){return _.q.apply(this,arguments)||this};
_.O(Oa,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Oa.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Oa);
_.W(Oa,"ytd-open-in-native-app-view-model",function(){if(lTp!==void 0)return lTp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return lTp=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var KVp;var iiY;var JgL=_.sC(["top-"]),Voj=_.sC(["bottom-"]),OiY=_.sC(["left-"]),n6L=_.sC(["right-"]),k2L={},IT$=function(A,Q,b){A.removeAttribute("top-"+b);A.removeAttribute("bottom-"+b);A.removeAttribute("left-"+b);A.removeAttribute("right-"+b);Q&&(Q.top&&_.Qw([_.TH(JgL)],A,"top-"+b,Q.top),Q.bottom&&_.Qw([_.TH(Voj)],A,"bottom-"+b,Q.bottom),Q.left&&_.Qw([_.TH(OiY)],A,"left-"+b,Q.left),Q.right&&_.Qw([_.TH(n6L)],A,"right-"+b,Q.right))};
k2L.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(A){var Q,b=_.Bj((Q=this.hostElement)!=null?Q:this),f;Q=this.cardItemBoxBehaviorMarginTargetId&&b?b.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(f=this.hostElement)!=null?f:this;IT$(Q,A,"margin")},
cardItemContainerPaddingChanged_:function(A){var Q,b=_.Bj((Q=this.hostElement)!=null?Q:this),f;Q=this.cardItemBoxBehaviorPaddingTargetId&&b?b.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(f=this.hostElement)!=null?f:this;IT$(Q,A,"padding")}}];var nX={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 HiL;var CAr;var ka=function(){return _.q.apply(this,arguments)||this};
_.O(ka,_.q);ka.prototype.textColorChanged_=function(){this.hostElement.style.color=nX[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
ka.prototype.textColorChanged_=ka.prototype.textColorChanged_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.E([_.I(k2L.YtCardItemBoxBehavior),_.c("design:type",Object)],ka.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ka.prototype,"data",void 0);_.E([_.iN("data.textColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ka.prototype,"textColorChanged_",null);
_.E([_.Ec({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],ka);
_.W(ka,"yt-card-item-text-renderer",function(){if(CAr===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;HiL===void 0&&(HiL=document.createElement("template"));var f=HiL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);CAr=A}A=CAr;return A},{mode:2});var qxL;var o6L;var If=function(){return _.q.apply(this,arguments)||this};
_.O(If,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],If.prototype,"data",void 0);_.E([_.Ec({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],If);
_.W(If,"yt-card-item-badge-renderer",function(){if(o6L===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;qxL===void 0&&(qxL=document.createElement("template"));var f=qxL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);o6L=A}A=o6L;return A},{mode:2});var toM;var rgW;var Hf=function(){return _.q.apply(this,arguments)||this};
_.O(Hf,_.q);Hf.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Hf.prototype,"data",void 0);_.E([_.Ec({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Hf);
_.W(Hf,"yt-card-item-text-collection-renderer",function(){if(rgW===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;toM===void 0&&(toM=document.createElement("template"));var f=toM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);rgW=A}A=rgW;return A},{mode:2});var jr1;var Rrv;var CX=function(){return _.q.apply(this,arguments)||this};
_.O(CX,_.q);CX.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],CX.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Number)],CX.prototype,"iconSize",void 0);_.E([_.Ec({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],CX);
_.W(CX,"yt-card-item-text-with-button-renderer",function(){if(Rrv===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;jr1===void 0&&(jr1=document.createElement("template"));var f=jr1;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Rrv=A}A=Rrv;return A},{mode:2});var qm=function(){return _.q.apply(this,arguments)||this};
_.O(qm,_.q);qm.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],qm.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qm.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],qm);
_.W(qm,"ytd-commerce-cart-summary-line-item-renderer",function(){if(iiY!==void 0)return iiY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return iiY=A},{mode:1});_.xo("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var of=function(){var A=_.q.apply(this,arguments)||this;A.hidden=!1;return A};
_.O(of,_.q);_.d=of.prototype;_.d.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"}}}}};
_.d.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.d.updateSummary=function(){var A=this.commerceCartCheckoutButtonEntity,Q;if(((Q=this.data)==null?0:Q.cartButton)&&A.checkoutSummaryText){var b,f=eQ((b=this.data)==null?void 0:b.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",hc(A.checkoutSummaryText));if(A.checkoutDetailText){var a;b=eQ((a=this.data)==null?void 0:a.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",hc(A.checkoutDetailText))}if(A.checkoutAdditionalMetadataText){var T;
a=eQ((T=this.data)==null?void 0:T.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+a+".cardItemTextRenderer.text",hc(A.checkoutAdditionalMetadataText))}}else A.estimatedTotalPrice&&(T=eQ((f=this.data)==null?void 0:f.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+T+".cardItemTextRenderer.text",hc(A.estimatedTotalPrice)))};
_.d.updateIsHidden=function(){var A,Q=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;Q!==void 0&&(this.hidden=Q)};
_.d.updateCheckoutButton=function(){var A,Q=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isDisabled;Q!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",Q);var b;A=(b=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:b.innertubeCommand;A!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",A);var f;b=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.checkoutButtonText;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:b})};
of.prototype.entityChanged=of.prototype.entityChanged;_.E([_.I(_.cb),_.c("design:type",Object)],of.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],of.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],of.prototype,"fullWidth",void 0);_.E([_.C(),_.c("design:type",Object)],of.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],of.prototype,"compact",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],of.prototype,"hidden",void 0);
_.E([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:xGY}),_.c("design:type",Object)],of.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.iN("commerceCartCheckoutButtonEntity","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],of.prototype,"entityChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],of);
_.W(of,"ytd-commerce-cart-checkout-button-renderer",function(){if(KVp!==void 0)return KVp;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return KVp=A},{mode:2});var g6W;_.erK={};
_.erK.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",_.lN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.lN(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(A){!this.tappableItemBehaviorTapEnabled||A.keyCode!==13&&A.keyCode!==32||A.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var A=this.data.onTap;A.ypcGetCartEndpoint?(_.X5(this.hostElement,[A]),this.tappableItemBehaviorTapEnabled=!1):A.ypcOffersEndpoint?_.X5(this.hostElement,[A]):_.ST(this.hostElement,[A],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(A){this.tappableItemBehaviorTapEnabled=!!A},
tappableItemBehaviorOnTapEnabledChanged_:function(){var A=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(A.setAttribute("tabIndex",0),A.setAttribute("role","button")):(A.removeAttribute("tabIndex"),A.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(A){A.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var hr1;var WV9;var tA=function(){return _.q.apply(this,arguments)||this};
_.O(tA,_.q);tA.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.cz("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.cz("sharingToggleButtonAndDefaultButton")}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tA.prototype,"data",void 0);_.E([_.Ec({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],tA);
_.W(tA,"yt-card-item-actions-renderer",function(){if(WV9===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;hr1===void 0&&(hr1=document.createElement("template"));var f=hr1;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);WV9=A}A=WV9;return A},{mode:2});var v6j;var E6v;var xKK;var cgL;var zrL;var w6$;var rD=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return A};
_.O(rD,_.q);rD.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
rD.prototype.handleDarkModeToggledAction_=function(A){this.isDarkTheme_=A};
rD.prototype.computeThemeImage_=function(A,Q){if(!A||!A.imageLight)return!1;this.isCircular_=A.isCircular;A.imageWidth&&(this.hostElement.style.width=A.imageWidth+"px");A.imageHeight&&(this.hostElement.style.height=A.imageHeight+"px");A.borderWidth&&(this.image.style.borderWidth=A.borderWidth+"px",this.image.style.borderStyle="solid");A.borderColor&&(this.image.style.borderColor=_.w6(A.borderColor));return Q&&A.imageDark?A.imageDark:A.imageLight};
rD.prototype.computeThemeIcon_=function(A){var Q,b;if(!(A==null?0:(Q=A.themedIcon)==null?0:(b=Q.icon)==null?0:b.iconType))return!1;this.icon.style.color=nX[A.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(A.imageWidth||18)+"px";this.icon.style.height=(A.imageHeight||18)+"px";return _.K0(A.themedIcon.icon.iconType)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(k2L.YtCardItemBoxBehavior),_.c("design:type",Object)],rD.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],rD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rD.prototype,"data",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],rD.prototype,"fit",void 0);_.E([_.C(),_.c("design:type",Boolean)],rD.prototype,"isDarkTheme_",void 0);_.E([_.C({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.c("design:type",Object)],rD.prototype,"themeImage_",void 0);_.E([_.C({computed:"computeThemeIcon_(data)"}),_.c("design:type",Object)],rD.prototype,"themeIcon_",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Object)],rD.prototype,"isCircular_",void 0);
_.E([_.V1("#image"),_.c("design:type",Object)],rD.prototype,"image",void 0);_.E([_.V1("#icon"),_.c("design:type",Object)],rD.prototype,"icon",void 0);_.E([_.Ec({is:"yt-themed-image-renderer",disableElementRegistration:!0})],rD);
_.W(rD,"yt-themed-image-renderer",function(){if(w6$===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;zrL===void 0&&(zrL=document.createElement("template"));var f=zrL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);w6$=A}A=w6$;return A},{mode:2});var jX=function(){return _.q.apply(this,arguments)||this};
_.O(jX,_.q);jX.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"}}}}};
jX.prototype.computeImagePlacement_=function(A){return A||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jX.prototype,"data",void 0);_.E([_.C({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.c("design:type",String)],jX.prototype,"imagePlacement",void 0);
_.E([_.Ec({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],jX);
_.W(jX,"yt-card-item-text-with-image-renderer",function(){if(cgL===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;xKK===void 0&&(xKK=document.createElement("template"));var f=xKK;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);cgL=A}A=cgL;return A},{mode:2});var Rf=function(){return _.q.apply(this,arguments)||this};
_.O(Rf,_.q);Rf.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Rf.prototype,"data",void 0);_.E([_.Ec({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Rf);
_.W(Rf,"yt-card-item-error-renderer",function(){if(E6v===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;v6j===void 0&&(v6j=document.createElement("template"));var f=v6j;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);E6v=A}A=E6v;return A},{mode:2});var uW9;var ZiY;_.xo("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var gD=function(){return _.q.apply(this,arguments)||this};
_.O(gD,_.q);_.d=gD.prototype;
_.d.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"}}}}};
_.d.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.d.backgroundColorChanged_=function(){var A,Q=(A=this.data)==null?void 0:A.backgroundColor;A=nX[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Bj(this.hostElement).querySelector("#main-content").style.backgroundColor=A};
_.d.headerPromoBackgroundColorChanged_=function(){var A,Q=(A=this.data)==null?void 0:A.headerPromoBackgroundColor;A=nX[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Bj(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=A};
_.d.errorRendererVisibilityChanged_=function(){var A=this.isExpanded_,Q;this.isErrorRendererVisible_=!((Q=this.data)==null||!Q.errorRenderer)&&!A};
_.d.onYtToggleButton_=function(A,Q){this.isExpanded_=Q.toggled};
gD.prototype.onYtToggleButton_=gD.prototype.onYtToggleButton_;gD.prototype.errorRendererVisibilityChanged_=gD.prototype.errorRendererVisibilityChanged_;gD.prototype.headerPromoBackgroundColorChanged_=gD.prototype.headerPromoBackgroundColorChanged_;gD.prototype.backgroundColorChanged_=gD.prototype.backgroundColorChanged_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(k2L.YtCardItemBoxBehavior),_.c("design:type",Object)],gD.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.I(_.erK.YtTappableItemBehavior),_.c("design:type",Object)],gD.prototype,"ytTappableItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gD.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],gD.prototype,"isExpanded_",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],gD.prototype,"isErrorRendererVisible_",void 0);_.E([_.iN("data.backgroundColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gD.prototype,"backgroundColorChanged_",null);_.E([_.iN("data.headerPromoBackgroundColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gD.prototype,"headerPromoBackgroundColorChanged_",null);
_.E([_.iN("data.errorRenderer","isExpanded_"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gD.prototype,"errorRendererVisibilityChanged_",null);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[Event,Object]),_.c("design:returntype")],gD.prototype,"onYtToggleButton_",null);_.E([_.Ec({is:"yt-card-item-renderer",disableElementRegistration:!0})],gD);
_.W(gD,"yt-card-item-renderer",function(){if(ZiY===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;uW9===void 0&&(uW9=document.createElement("template"));var f=uW9;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ZiY=A}A=ZiY;return A},{mode:2});_.xo("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var eX=function(){var A=_.q.apply(this,arguments)||this;A.hidden=!1;return A};
_.O(eX,_.q);_.d=eX.prototype;_.d.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.d.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.d.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,Q=(A=this.commerceCartHeaderEntity)==null?void 0:A.isHidden;Q!==void 0&&(this.hidden=Q)}};
_.d.updateTitle=function(){var A=this.commerceCartHeaderEntity.isDisabled,Q,b,f=(b=_.V((Q=this.data)==null?void 0:Q.item,qnv))==null?void 0:b.headingRenderer;f&&(Q=eQ(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Q+".0.cardItemTextRenderer.textColor",A?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.d.updateSummaryText=function(){var A=this.commerceCartHeaderEntity;if(this.compact){var Q,b,f=(b=_.V((Q=this.data)==null?void 0:Q.item,qnv))==null?void 0:b.headingRenderer;f&&(Q=eQ(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+Q+".1.cardItemTextRenderer.text",A.shortHeaderSummaryText?hc(A.shortHeaderSummaryText):A.headerSummaryText?hc(A.headerSummaryText):""))}else{var a;if(Q=(a=_.V((f=this.data)==null?void 0:f.item,qnv))==null?void 0:a.additionalInfoRenderer)Q=eQ(Q,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Q+".text",A.headerSummaryText?hc(A.headerSummaryText):"")}};
_.d.updateCheckoutButton=function(){var A=this.commerceCartHeaderEntity,Q,b,f=(b=_.V((Q=this.data)==null?void 0:Q.item,qnv))==null?void 0:b.additionalInfoRenderer;Q=eQ(f,"buttonRenderer");var a;b=(a=this.commerceCartHeaderEntity)==null?void 0:a.isButtonDisabled;var T;a=(T=this.commerceCartHeaderEntity)==null?void 0:T.isButtonHidden;b!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Q+".buttonRenderer.isDisabled",b);a!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
a);var G;A=(G=A.checkoutButtonCommand)==null?void 0:G.innertubeCommand;A!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+Q+".buttonRenderer.command",A)};
eX.prototype.entityChanged=eX.prototype.entityChanged;_.E([_.I(_.cb),_.c("design:type",Object)],eX.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],eX.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],eX.prototype,"compact",void 0);_.E([_.C({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(A,Q){return _.Me(A.entities,"commerceCartHeaderEntity",Q)}}),
_.c("design:type",Object)],eX.prototype,"commerceCartHeaderEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],eX.prototype,"hidden",void 0);_.E([_.iN("commerceCartHeaderEntity","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],eX.prototype,"entityChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],eX);
_.W(eX,"ytd-commerce-cart-header-renderer",function(){if(g6W!==void 0)return g6W;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return g6W=A},{mode:1});var ygL;var Yx9=_.IB(function(A,Q){var b;return(b=A.onChangeCallback)==null?void 0:b.call(A,Q)},1E3),DKp=_.aP(function(A){var Q=A.data;
var b=A.iconMinus;A=A.iconPlus;var f=function(){return!!Q().disabled},a=_.F(_.pz(0,void 0,"r56zNb")),T=a.next().value,G=a.next().value;
a={};a=_.O4("yt-spec-quantity-incrementer-shape__icon",(a["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return f()||T()===(Q().onRemoveCommand?0:1)},a));
var p={};p=_.O4("yt-spec-quantity-incrementer-shape__icon",(p["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return T()>=Q().maxValue||f()},p));
var P={};P=_.O4("yt-spec-quantity-incrementer-shape__text",(P["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return T()>Q().maxValue},P["yt-spec-quantity-incrementer-shape__text--text-disabled"]=f,P));
var U=_.IY(function(){if(T()===1){var M,l;(l=(M=Q()).onRemoveCommand)==null||l.call(M)}M=T()>Q().maxValue?Q().maxValue:T()-1;G(M);Yx9(Q(),M);return!1}),L=_.IY(function(){if(T()===Q().maxValue)return!1;
var M=T()+1;G(M);Yx9(Q(),M);return!1});
_.CH(function(){G(Q().value)});
return _.X("quantity-incrementer-shape",null,_.X("div",{class:"yt-spec-quantity-incrementer-shape"},_.X("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return T()===(Q().onRemoveCommand?0:1)||f()},
"aria-label":function(){return T()!==1?Q().minusLabel:Q().minimumReachedLabel},
"on:click":U},_.X(_.jl,{model:{circular:!0}}),_.X("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.X("div",{class:a},b()))),_.X("div",{class:P},T),_.X("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return T()>=Q().maxValue||f()},
"aria-label":function(){return T()!==Q().maxValue?Q().plusLabel:Q().maximumReachedLabel},
"on:click":L},_.X(_.jl,{model:{circular:!0}}),_.X("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.X("div",{class:p},A())))))},"be");_.pE(_.aP(function(A){function Q(){b().onRemoveCommand&&_.D3(b().onRemoveCommand)}
var b=A.data;var f=_.I$(q_C,function(){return b().quantityIncrementerEntityKey});
return _.X("yt-quantity-incrementer-view-model",null,_.X(DKp,{data:function(){var a=b(),T;var G=f()?!((T=f())==null||!T.disabled):!1;var p;T=f()?(p=f())==null?void 0:p.quantity:b().quantity;return EVX(a,G,Q,T)},
iconMinus:function(){return _.X(_.oY,{icon:"BAR_HORIZONTAL",className:_.nE("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.X(_.oY,{icon:"ADD",className:_.nE("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"ce"),"yt-quantity-incrementer-view-model",{props:{data:_.Qf}});var hA=function(){var A=_.q.apply(this,arguments)||this;A.compact=!1;A.hasQuantityIncrementer=!1;return A};
_.O(hA,_.q);hA.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"}}}};
hA.prototype.computeHasQuantityIncrementer=function(){var A;return!!_.V((A=this.data)==null?void 0:A.picker,j39)};
hA.prototype.onLabelClick=function(){var A;(A=this.dropdownEl)==null||A.open()};
_.E([_.V1("ytd-dropdown-renderer"),_.c("design:type",Object)],hA.prototype,"dropdownEl",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],hA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],hA.prototype,"quantityColor",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],hA.prototype,"compact",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.c("design:type",Object)],hA.prototype,"hasQuantityIncrementer",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],hA);
_.W(hA,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(ygL!==void 0)return ygL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ygL=A},{mode:1});var $K1;var Nj$;var Wf=function(){return _.q.apply(this,arguments)||this};
_.O(Wf,_.q);Wf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Wf.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Wf.prototype.updateTitle=function(){var A=this.disabledCartItemEntity;A.disableActionName&&this.set("data.title",hc(A.disableActionName))};
Wf.prototype.updateButton=function(){var A,Q=(A=this.disabledCartItemEntity.undoCommand)==null?void 0:A.innertubeCommand;Q!==void 0&&(this.set("data.actionButton.buttonRenderer.command",Q),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Wf.prototype.entityChanged=Wf.prototype.entityChanged;_.E([_.I(_.cb),_.c("design:type",Object)],Wf.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(A,Q){return _.Me(A.entities,"disabledCartItemEntity",Q)}}),
_.c("design:type",Object)],Wf.prototype,"disabledCartItemEntity",void 0);_.E([_.C(),_.c("design:type",Object)],Wf.prototype,"data",void 0);_.E([_.iN("disabledCartItemEntity","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Wf.prototype,"entityChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Wf);
_.W(Wf,"ytd-disabled-cart-item-renderer",function(){if(Nj$!==void 0)return Nj$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Nj$=A},{mode:1});_.xo("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var vf=function(){var A=_.q.apply(this,arguments)||this;A.compact=!1;A.hidden=!1;A.errorHidden=!1;A.noOnTap=!1;return A};
_.O(vf,_.q);_.d=vf.prototype;
_.d.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"}}}};
_.d.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.d.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var A=this.firstButtonElement;A.alignByText=!0;A.iconAlignByText=!0}};
_.d.computeNoOnTap=function(A){return!A};
_.d.updateQuantityColor=function(){if(this.pickerElement){var A,Q=(A=this.commerceCartItemEntity)==null?void 0:A.quantityColor;this.pickerElement.quantityColor=Q}};
_.d.updateTotalPriceColor=function(){var A,Q=(A=this.commerceCartItemEntity)==null?void 0:A.totalPriceColor;if(Q){var b;A=_.V((b=this.data)==null?void 0:b.quantityPicker,tq$);if(b=_.V(A==null?void 0:A.price,oZL))b.textColor=Q}};
_.d.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,Q=(A=this.commerceCartItemEntity)==null?void 0:A.isHidden;Q!==void 0&&(this.hidden=Q)}};
_.d.updateHideErrorMessage=function(){var A,Q=(A=this.commerceCartItemEntity)==null?void 0:A.hideErrorMessage;Q!==void 0&&(this.errorHidden=Q)};
_.d.updateQuantity=function(){var A=this,Q,b=(Q=this.commerceCartItemEntity)==null?void 0:Q.quantity,f;Q=(f=this.commerceCartItemEntity)==null?void 0:f.totalPrice;if(b){this.updateTotalPriceColor();this.updateQuantityColor();var a;f=_.V((a=this.data)==null?void 0:a.quantityPicker,tq$);if(a=_.V(f==null?void 0:f.price,oZL))a.text=Q?{simpleText:Q.content}:void 0;if(Q=_.V(f==null?void 0:f.picker,j39))Q.quantity=b;var T;if(a=(T=_.V(f==null?void 0:f.picker,ROK))==null?void 0:T.entries){T=!1;Q=void 0;a=
_.F(a);for(f=a.next();!f.done;f=a.next())f=f.value,f.dropdownItemRenderer&&(Q||(Q=f.dropdownItemRenderer),f.dropdownItemRenderer.isSelected=!1,b===f.dropdownItemRenderer.int32Value&&(T=!0,f.dropdownItemRenderer.isSelected=!0));!T&&Q&&(Q.isSelected=!0)}_.mL(this,function(){var G;A.set("data.quantityPicker",_.j2.unsafeClone((G=A.data)==null?void 0:G.quantityPicker))})}};
vf.prototype.onYtRendererstamperFinished=vf.prototype.onYtRendererstamperFinished;vf.prototype.entityChanged=vf.prototype.entityChanged;_.E([_.C(),_.c("design:type",Object)],vf.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vf.prototype,"compact",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],vf.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],vf.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(A,Q){return _.Me(A.entities,"commerceCartItemEntity",Q)}}),
_.c("design:type",Object)],vf.prototype,"commerceCartItemEntity",void 0);_.E([_.C(),_.c("design:type",Object)],vf.prototype,"quantityPicker",void 0);_.E([_.C(),_.c("design:type",Object)],vf.prototype,"compactQuantityPicker",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vf.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vf.prototype,"errorHidden",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.c("design:type",Object)],vf.prototype,"noOnTap",void 0);_.E([_.V1("ytd-commerce-cart-item-quantity-picker-renderer"),_.c("design:type",Object)],vf.prototype,"pickerElement",void 0);_.E([_.V1("yt-button-renderer"),_.c("design:type",Element)],vf.prototype,"firstButtonElement",void 0);
_.E([_.iN("commerceCartItemEntity","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vf.prototype,"entityChanged",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vf.prototype,"onYtRendererstamperFinished",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],vf);
_.W(vf,"ytd-commerce-cart-item-renderer",function(){if($K1!==void 0)return $K1;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $K1=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var sr1;var mKN;var Ea=function(){return _.q.apply(this,arguments)||this};
_.O(Ea,_.q);Ea.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}}}}}};
Ea.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
Ea.prototype.updateCheckoutLineItems=function(){var A,Q=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.checkoutLineItems;Q&&(A=Q.map(function(b){a:{var f=b.price,a=b.description;switch(b.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":b={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:hc(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:hc(f),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:b={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:hc(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:hc(f),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 b}),this.set("data.summaryLineItems",A))};
Ea.prototype.updateIsHidden=function(){var A,Q=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;Q!==void 0&&(this.hostElement.hidden=Q)};
Ea.prototype.entityChanged=Ea.prototype.entityChanged;_.E([_.I(_.cb),_.c("design:type",Object)],Ea.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Ea.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ea.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Ea.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:xGY}),_.c("design:type",Object)],Ea.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.iN("commerceCartCheckoutButtonEntity","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ea.prototype,"entityChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Ea);
_.W(Ea,"ytd-commerce-cart-summary-renderer",function(){if(mKN!==void 0)return mKN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return mKN=A},{mode:1});var AJv={};AJv.InjectBehavior=[bBy.InjectBehavior];var QlL;var bmL;var xa=function(){return _.q.apply(this,arguments)||this};
_.O(xa,_.q);
xa.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:_.cz("menuRenderer")}}};
xa.prototype.onMenuTap=function(A){A.stopPropagation()};
_.Qr.Object.defineProperties(xa.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 A,Q;return!(((A=this.data)==null||!A.sectionHeading)&&((Q=this.data)==null?void 0:Q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!(((A=this.data)==null||!A.image)&&((Q=this.data)==null?void 0:Q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!(((A=this.data)==null||!A.menu)&&((Q=this.data)==null?void 0:Q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.erK.YtTappableItemBehavior),_.c("design:type",Object)],xa.prototype,"ytTappableItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xa.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.accessibilityData"),_.c("design:type",String),_.c("design:paramtypes",[])],xa.prototype,"ariaLabel",null);_.E([_.H("data.sectionHeading","data.layout"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xa.prototype,"sectionHeadingVisible",null);_.E([_.H("data.image","data.layout"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xa.prototype,"imageVisible",null);
_.E([_.H("data.menu","data.layout"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],xa.prototype,"menuVisible",null);_.E([_.Ec({is:"yt-activity-item-renderer",disableElementRegistration:!0})],xa);
_.W(xa,"yt-activity-item-renderer",function(){if(bmL===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;QlL===void 0&&(QlL=document.createElement("template"));var f=QlL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bmL=A}A=bmL;return A},{mode:2});var fjL;var ajN;var T3L;var dVj;var cf=function(){return _.q.apply(this,arguments)||this};
_.O(cf,_.q);
cf.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"}}}}};
cf.prototype.backgroundColorChanged_=function(){var A,Q=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=nX[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
cf.prototype.backgroundColorChanged_=cf.prototype.backgroundColorChanged_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cf.prototype,"data",void 0);
_.E([_.iN("data.backgroundColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cf.prototype,"backgroundColorChanged_",null);_.E([_.Ec({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],cf);
_.W(cf,"yt-offer-item-upsell-renderer",function(){if(dVj===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;T3L===void 0&&(T3L=document.createElement("template"));var f=T3L;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);dVj=A}A=dVj;return A},{mode:2});_.xo("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var z3=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};A.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return A};
_.O(z3,_.q);_.d=z3.prototype;
_.d.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:_.cz("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.d.computeContainerStyle_=function(A){return A};
_.d.computeContainerIsHidden_=function(A){return A&&!!A.isHidden};
_.d.computeShowSpinner_=function(A,Q){return A&&Q==="in-progress"};
_.d.computeShowMoreContentsButton_=function(A,Q,b,f,a){return!(!(f&&f.length||a&&a.length&&b)||!A||Q)};
_.d.onToggleButton_=function(A){var Q=this;A.stopPropagation();this.isExpanded_=A.detail&&A.detail.toggled;var b,f;this.isExpanded_&&!this.data.continuationSection.length&&((b=this.data)==null?0:(f=b.continuation)==null?0:f.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Bn(this.hostElement,"yt-load-next-continuation",function(a){return Q.getContinuationUrl_(Q.data.continuation.onClickContinuationData,a)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.X5(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.d.onShowMoreContentsButtonClicked_=function(A){var Q=this;A.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Bn(this.hostElement,"yt-load-next-continuation",function(b){return Q.getContinuationUrl_(Q.data.continuations[0].nextContinuationData,b)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.X5(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.d.getContinuationUrl_=function(A,Q){var b=A.continuation;A=A.clickTrackingParams;var f=_.WR();A&&f&&_.$_(f,_.t8(A));return _.$Q(Q,{continuation:b})};
_.d.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var A=_.Bj(this.hostElement).querySelector("#continuation-section");A&&(A=A.querySelectorAll("ytmusic-item-section-renderer"))&&A.forEach(function(Q){return Q.classList.add("memberships-and-purchases")})};
_.d.dataChanged_=function(){var A;this.isExpanded_=!((A=this.data)==null||!A.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.d.updateCardOnClickCommand_=function(A){A=_.V(A,J9r);var Q,b;this.data&&((Q=this.data)==null?0:Q.targetId)&&A&&A.targetId===((b=this.data)==null?void 0:b.targetId)&&A.onClickCommand&&(this.data.onClickCommand=A.onClickCommand,this.isOnClickCommand_=!0)};
_.d.backgroundColorChanged_=function(){var A,Q=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=nX[Q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
z3.prototype.backgroundColorChanged_=z3.prototype.backgroundColorChanged_;z3.prototype.dataChanged_=z3.prototype.dataChanged_;z3.prototype.nextContinuationDataUpdated_=z3.prototype.nextContinuationDataUpdated_;z3.prototype.onToggleButton_=z3.prototype.onToggleButton_;_.E([_.I(_.sM),_.c("design:type",Object)],z3.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],z3.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.mG.YtNextContinuationBehavior),_.c("design:type",Object)],z3.prototype,"ytNextContinuationBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.E([_.I(AJv.InjectBehavior),_.c("design:type",Object)],z3.prototype,"injectBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],z3.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],z3.prototype,"compact",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],z3.prototype,"isExpanded_",void 0);_.E([_.C({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.c("design:type",String)],z3.prototype,"containerStyle_",void 0);_.E([_.C({value:"not-started"}),_.c("design:type",String)],z3.prototype,"continuationStatus_",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.c("design:type",Boolean)],z3.prototype,"showSpinner_",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],z3.prototype,"isOnClickCommand_",void 0);_.E([_.C({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.c("design:type",Boolean)],z3.prototype,"showMoreContentsButton_",void 0);
_.E([_.C({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(A,Q){return!Q||A.entities?null:_.Me(A.entities,"cardItemContainerEntity",Q)}}),
_.c("design:type",Object)],z3.prototype,"cardItemContainerEntity_",void 0);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],z3.prototype,"onToggleButton_",null);_.E([_.Kc("yt-next-continuation-data-updated"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z3.prototype,"nextContinuationDataUpdated_",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z3.prototype,"dataChanged_",null);_.E([_.iN("data.backgroundColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z3.prototype,"backgroundColorChanged_",null);_.E([_.Ec({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],z3);
_.W(z3,"yt-card-item-container-renderer",function(){if(ajN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;fjL===void 0&&(fjL=document.createElement("template"));var f=fjL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ajN=A}A=ajN;return A},{mode:2});var wD=function(){return _.q.apply(this,arguments)||this};
_.O(wD,_.q);wD.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"}}}};
wD.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
wD.prototype.computeLoadingHidden=function(){var A;return!((A=this.commerceCartPageStateEntity)==null?0:A.cartActionInProgress)};
wD.prototype.updateNotification=function(){var A,Q=(A=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:A.summaryText;Q&&this.set("data.cartNotification",hc(Q))};
wD.prototype.notificationEntityChanged=wD.prototype.notificationEntityChanged;_.E([_.I(_.cb),_.c("design:type",Object)],wD.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],wD.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],wD.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(A,Q){return _.Me(A.entities,"commerceCartExpandableNotificationEntity",Q)}}),
_.c("design:type",Object)],wD.prototype,"commerceCartExpandableNotificationEntity",void 0);_.E([_.C({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(A,Q){return _.Me(A.entities,"commerceCartPageStateEntity",Q)}}),
_.c("design:type",Object)],wD.prototype,"commerceCartPageStateEntity",void 0);_.E([_.V1("#spinner"),_.c("design:type",HTMLElement)],wD.prototype,"spinner",void 0);_.E([_.iN("commerceCartExpandableNotificationEntity","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],wD.prototype,"notificationEntityChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],wD);
_.W(wD,"ytd-commerce-cart-renderer",function(){if(sr1!==void 0)return sr1;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return sr1=A},{mode:1});var FoY;var uR=function(){var A=_.q.apply(this,arguments)||this;A.bigImage=!1;return A};
_.O(uR,_.q);_.Qr.Object.defineProperties(uR.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.placeholderImageUrl}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uR.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uR.prototype,"bigImage",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],uR.prototype,"placeholderImageUrl",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],uR);
_.W(uR,"ytd-empty-product-shelf-renderer",function(){if(FoY!==void 0)return FoY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return FoY=A},{mode:1});var GE1;var ZA=function(){var A=_.q.apply(this,arguments)||this;A.itemStyle="link-item";A.watchMetadataRefresh=!1;A.skinnyMode=!1;A.metaPanel=!1;A.inStructuredDescription=!1;A.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};A.updateOnResizeDebouncer=null;return A};
_.O(ZA,_.q);_.d=ZA.prototype;_.d.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.d.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"}}}}};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.d.attachVEs=function(A){A.trackingParams&&_.IP().graftServerVe(A.trackingParams)};
_.d.handleUpdateMerchShelfAction=function(A){var Q=this,b=_.V(A.updateMerchandiseShelfAction.merchandiseShelf,_.A7Y);b&&(b.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){Q.attachVEs(b);Q.data=b},Number(b.renderDelayMs))):(this.attachVEs(b),this.data=b))};
_.d.updateOnResize=function(){if(this.JSC$16713_scrollContainer!==void 0&&this.JSC$16713_scrollContainer.clientWidth!==0&&this.items!==void 0){var A=this.JSC$16713_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_();var Q;switch((Q=this.data)==null?void 0:Q.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var b,
f;((b=this.data)==null?void 0:(f=b.items)==null?void 0:f.length)===1?this.itemStyle="cta-item":this.itemStyle=A>=740?"large-item":"small-item"}}};
_.d.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Sb(this.updateOnResizeDebouncer,_.Q5.after(100),this.updateOnResize)};
ZA.prototype.debouncedUpdateOnResize=ZA.prototype.debouncedUpdateOnResize;ZA.prototype.dataChanged=ZA.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.pa.YtdHorizontalListBehavior),_.c("design:type",Object)],ZA.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ZA.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ZA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ZA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ZA.prototype,"itemStyle",void 0);_.E([_.C({value:6}),_.c("design:type",Number)],ZA.prototype,"initialCount",void 0);
_.E([_.C({value:"data.items"}),_.c("design:type",String)],ZA.prototype,"itemsPath",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ZA.prototype,"watchMetadataRefresh",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ZA.prototype,"skinnyMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ZA.prototype,"metaPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ZA.prototype,"inStructuredDescription",void 0);
_.E([_.V1("#items"),_.c("design:type",HTMLDivElement)],ZA.prototype,"items",void 0);_.E([_.V1("#scroll-container"),_.c("design:type",HTMLDivElement)],ZA.prototype,"JSC$16713_scrollContainer",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ZA.prototype,"dataChanged",null);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ZA.prototype,"debouncedUpdateOnResize",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],ZA);
_.W(ZA,"ytd-merch-shelf-renderer",function(){if(GE1!==void 0)return GE1;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return GE1=A},{mode:2});var B3Y;var yG=function(){var A=_.q.apply(this,arguments)||this;A.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 A};
_.O(yG,_.q);_.d=yG.prototype;
_.d.addBackstagePostAction=function(A){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(A=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",A))&&(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:A}):this.set("data.contents",[{backstagePostThreadRenderer:A}]))};
_.d.addBackstageCommentAction=function(A){var Q=this.get("addBackstageCommentAction.parentId",A);A=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",A);if(Q&&A){Q=this.postIdToIndices(Q);for(var b=0;b<Q.length;b++){var f=Q[b];if(f<0)break;f="data.contents."+f+".backstagePostThreadRenderer.comments";this.get(f)&&(this.get(f+".backstageCommentsRenderer.contents")&&this.push(f+".backstageCommentsRenderer.contents",{commentThreadRenderer:A}),this.get(f+".backstageCommentsRenderer.teaserContents")?
this.push(f+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:A}):this.set(f+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:A}]))}}};
_.d.addBackstageReplyAction=function(A){var Q=this.get("addBackstageReplyAction.parentId",A);A=this.get("addBackstageReplyAction.renderer.commentRenderer",A);Q&&A&&this.setCreatorReply(Q,A)};
_.d.banAuthorAction=function(A){var Q=this.get("banAuthorAction.commentId",A);Q&&(A=this.get("banAuthorAction.parentCommentId",A)||this.getParentPostId(Q),this.removeFromStream(Q,A))};
_.d.hideReportedCommentAction=function(A){var Q=this.get("hideReportedCommentAction.commentId",A);Q&&((A=this.get("hideReportedCommentAction.parentCommentId",A))||(A=this.getParentPostId(Q)),this.removeFromStream(Q,A))};
_.d.replaceBackstageCommentAction=function(A){var Q=this.get("replaceBackstageCommentAction.commentId",A),b=this.get("replaceBackstageCommentAction.parentId",A);A=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",A);if(Q&&b&&A){b=this.postIdToIndices(b);for(var f=0;f<b.length;f++){var a=b[f];if(a<0)break;var T=this.commentIdToIndex(Q,a,!1);if(T>=0){var G=this.get("data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+T+".commentThreadRenderer.replies.commentRepliesRenderer");
G&&(A.replies={commentRepliesRenderer:G});this.splice("data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",T,1,{commentThreadRenderer:A})}T=this.commentIdToIndex(Q,a,!0);if(T>=0){if(G=this.get("data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(T+".commentThreadRenderer.replies.commentRepliesRenderer")))A.replies={commentRepliesRenderer:G};this.splice("data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
T,1,{commentThreadRenderer:A})}}}};
_.d.replaceBackstagePostAction=function(A){var Q=this.get("replaceBackstagePostAction.itemId",A);if(Q){Q=this.postIdToIndices(Q);for(var b=0;b<Q.length;b++){var f=Q[b];if(f<0)break;var a=this.getPostRendererType(f),T=this.get("replaceBackstagePostAction.renderer."+a,A);if(!T&&a!=="sharedPostRenderer")break;var G=!1;T||(G=!0,T=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",A));if(!T)break;var p={};G?(_.EG(p,Zwr,T),this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
p)):(_.EG(p,new _.fU(a),T),this.set("data.contents."+f+".backstagePostThreadRenderer.post",p))}}};
_.d.replaceBackstageReplyAction=function(A){var Q=this.get("replaceBackstageReplyAction.replyId",A),b=this.get("replaceBackstageReplyAction.parentId",A);A=this.get("replaceBackstageReplyAction.renderer.commentRenderer",A);Q&&A&&b&&this.setCreatorReply(b,A)};
_.d.removeCommentAction=function(A){var Q=this.get("removeCommentAction.commentId",A);if(Q){var b=this.get("removeCommentAction.parentCommentId",A);b&&this.get("removeCommentAction.isCreatorReply",A)?this.setCreatorReply(b,void 0):(b||(b=this.getParentPostId(Q)),this.removeFromStream(Q,b))}};
_.d.setCreatorReply=function(A,Q){var b=this.getParentPostId(A);if(b){b=this.postIdToIndices(b);for(var f=0;f<b.length;f++){var a=b[f];if(a<0)break;var T=this.commentIdToIndex(A,a,!1);if(T>=0){var G="data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+T;T=G+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";G+=".commentThreadRenderer.replies";Q==void 0?(this.set(G,{}),this.set(T,!1)):(this.set(G,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Q}]}}),
this.set(G+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(T,!0))}T=this.commentIdToIndex(A,a,!0);T>=0&&(T="data.contents."+a+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+T,a=T+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",T+=".commentThreadRenderer.replies",Q==void 0?(this.set(T,{}),this.set(a,!1)):(this.set(T,{commentRepliesRenderer:{teaserContents:[{commentRenderer:Q}]}}),this.set(a,!0)))}}};
_.d.removeFromStream=function(A,Q){if(Q){Q=this.postIdToIndices(Q);for(var b=0;b<Q.length;b++){var f=Q[b];if(f<0)break;var a=this.commentIdToIndex(A,f,!1);a>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",a,1);a=this.commentIdToIndex(A,f,!0);a>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",a,1);f="data.contents."+f+".backstagePostThreadRenderer.post.backstagePostRenderer";
a=f+".backstageAttachment.pollRenderer.votedCommentId";this.get(a)===A&&(this.set(a,null),this.set(f+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(Q=this.postIdToIndices(A).reverse(),b=0;b<Q.length;b++){f=Q[b];if(f<0)break;a=this.getPostRendererType(f);var T=this.get("backstagePostThreadRenderer.post."+a,this.data.contents[f]);T.postId===A?this.splice("data.contents",f,1):a==="sharedPostRenderer"&&this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);T.scheduledPublishTimeSec&&_.pD(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.d.postIdToIndices=function(A){for(var Q=[],b=0;b<this.data.contents.length;b++){var f=this.getPostRendererType(b);this.get("backstagePostThreadRenderer.post."+f+".postId",this.data.contents[b])===A&&Q.push(b);if(f==="sharedPostRenderer"){var a=this.get("backstagePostThreadRenderer.post."+f+".originalPost.backstagePostRenderer.postId",this.data.contents[b]);f=this.get("backstagePostThreadRenderer.post."+f+".originalPost.postRenderer.postId",this.data.contents[b]);a!==A&&f!==A||Q.push(b)}}return Q};
_.d.commentIdToIndex=function(A,Q,b){if(Q<0)return-1;var f,a,T,G,p=_.V((f=this.data)==null?void 0:(a=f.contents)==null?void 0:(T=a[Q])==null?void 0:(G=T.backstagePostThreadRenderer)==null?void 0:G.comments,wk$);return(Q=b?p==null?void 0:p.teaserContents:p==null?void 0:p.contents)&&Q.length?Q.findIndex(function(P){return _.V(P,I71).comment.commentRenderer.commentId===A}):-1};
_.d.getParentPostId=function(A){A=A.split(".");if(A[1])return A[0]};
_.d.getPostRendererType=function(A){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[A])?"sharedPostRenderer":"backstagePostRenderer"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],yG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yG.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-backstage-items"})],yG);
_.W(yG,"ytd-backstage-items",function(){if(B3Y!==void 0)return B3Y;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return B3Y=
A},{mode:1});var p0r;var PS1={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},Ya=function(){var A=_.q.apply(this,arguments)||this;A.disablePrescanVisibility=!0;A.canScheduleJobs=!0;A.engagementPanel=!1;A.hidePanelButton=!1;A.isWatchGrid=!1;A.hasShownSubscribersOnlyDisclaimer=!1;A.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return A};
_.O(Ya,_.q);_.d=Ya.prototype;_.d.created=function(){this.initCommentsCsi_()};
_.d.contentsChanged_=function(){var A;(A=this.data)!=null&&A.contents&&this.tickForCommentsTimer_("cml")};
_.d.headerChanged_=function(){var A;(A=this.data)!=null&&A.header&&this.tickForCommentsTimer_("cmhl")};
_.d.initCommentsCsi_=function(){_.eT("wn_comments");var A=_.WR();A&&_.g2({clientScreenNonce:A},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.d.createCommentAction_=function(A){A=_.j2.unsafeClone(A);var Q,b;if(A=(Q=_.V(A,MVL))==null?void 0:(b=Q.contents)==null?void 0:b.commentThreadRenderer){var f,a,T,G,p,P;!this.isBackstage&&((f=this.data)==null?0:(a=f.header)==null?0:(T=a.commentsHeaderRenderer)==null?0:(G=T.createRenderer)==null?0:(p=G.commentSimpleboxRenderer)==null?0:(P=p.zeroStep)==null?0:P.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var U,
L,M;this.isBackstage&&_.V((U=this.data)==null?void 0:(L=U.header)==null?void 0:(M=L.commentsHeaderRenderer)==null?void 0:M.zeroStateMessage,ydr)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(A)}};
_.d.doReplyInsert_=function(A,Q,b,f){f?this.splice(A,f,0,Q):this.push(A,Q)};
_.d.getRepliesPath_=function(A){return"data.contents."+A+".commentThreadRenderer.replies"};
_.d.getRepliesContentsPath_=function(A,Q){A=this.getRepliesPath_(A);return Q?A+".commentRepliesRenderer.teaserContents":A+".commentRepliesRenderer.contents"};
_.d.showSubscribersOnlyDisclaimer_=function(A){(A=A.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&(_.pD(this.hostElement,"yt-open-popup-action",[A,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.d.createCommentReplyAction_=function(A){A=_.j2.unsafeClone(A);var Q=_.V(A,l79);if(A=Q==null?void 0:Q.contents){var b=this.commentIdToIndex_(Q==null?void 0:Q.parentCommentId);if(!(b<0)){var f=this.getRepliesPath_(b);if(this.get(f)){Q=Q.replyToCommentId;f=this.getRepliesContentsPath_(b,!1);if(this.get(f)){var a=this.get(f).length,T=f+"."+(a-1)+".continuationItemRenderer";this.get(T+".button")?(T=this.replyIdToIndex_(Q,b,!1),this.doReplyInsert_(f,A,T,a-1)):this.get(T)||(a=this.replyIdToIndex_(Q,b,
!1),this.doReplyInsert_(f,A,a,null))}f=this.getRepliesContentsPath_(b,!0);this.get(f)?(b=this.replyIdToIndex_(Q,b,!0),(!Q||b>=0)&&this.doReplyInsert_(f,A,b,null)):this.set(f,[A])}else this.set(f,{commentRepliesRenderer:{teaserContents:[A]}})}}};
_.d.hideReportedCommentAction_=function(A){var Q=_.V(A,WpY);if(A=Q==null?void 0:Q.commentId)Q=this.get("parentCommentId",Q),A=A.replace("#","."),Q||(Q=this.getParentCommentId_(A)),this.remove_(A,Q)};
_.d.getParentCommentId_=function(A){A=A.split(".");if(A[1])return A[0]};
_.d.removeCommentAction_=function(A){var Q=_.V(A,OGY);if(A=Q==null?void 0:Q.commentId)Q=Q==null?void 0:Q.parentCommentId,A=A.replace("#","."),Q||(Q=this.getParentCommentId_(A)),this.remove_(A,Q)};
_.d.pinCommentAction_=function(A){A=_.j2.unsafeClone(A);var Q=_.V(A,VVL);Q!=null&&Q.commentId&&(A=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",A))&&(this.remove_(Q.commentId),this.insert_(A,!0))};
_.d.unpinCommentAction_=function(A){A=_.j2.unsafeClone(A);A=_.V(A,np1);if(A!=null&&A.commentId){var Q,b,f=(Q=A.actionResult)==null?void 0:(b=Q.update)==null?void 0:b.commentThreadRenderer;f&&(this.remove_(A.commentId),this.insert_(f))}};
_.d.banAuthorAction_=function(A){var Q=_.V(A,Lpp);Q!=null&&Q.commentId&&(A=Q.parentCommentId,Q=Q.commentId.replace("#","."),A||(A=this.getParentCommentId_(Q)),this.remove_(Q,A))};
_.d.commentIdToIndex_=function(A){var Q;return A&&(Q=this.data)!=null&&Q.contents?this.data.contents.findIndex(function(b){b=b.commentThreadRenderer;var f;return A===((b==null?void 0:b.commentViewModel)&&((f=_.V(b.commentViewModel,r19))==null?void 0:f.commentId))}):-1};
_.d.insert_=function(A,Q){Q=Q===void 0?!1:Q;var b,f;if((b=this.data)==null?0:(f=b.contents)==null?0:f.some(function(T){return!!T.commentThreadRenderer}))for(b=0,f=this.data.contents.length;b<f;b++){var a=this.data.contents[b].commentThreadRenderer;
if(PS1[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=PS1[a.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){Q&&PS1[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===PS1[a.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",b,1,{commentThreadRenderer:A}):this.splice("data.contents",b,0,{commentThreadRenderer:A});break}}else this.set("data.contents",[{commentThreadRenderer:A}])};
_.d.doReplyRemove_=function(A,Q,b){A=this.replyIdToIndex_(A,Q,b);A<0||(Q=this.getRepliesContentsPath_(Q,b),this.splice(Q,A,1))};
_.d.remove_=function(A,Q){Q=this.commentIdToIndex_(Q);Q<0?(Q=this.commentIdToIndex_(A),Q<0||this.splice("data.contents",Q,1)):(this.doReplyRemove_(A,Q,!1),this.doReplyRemove_(A,Q,!0))};
_.d.replyIdToIndex_=function(A,Q,b){if(Q<0)return-1;Q=this.getRepliesContentsPath_(Q,b);Q=this.get(Q);if(!Q||!Q.length)return-1;b=0;for(var f=Q.length;b<f;b++){var a=void 0,T=void 0;if(((a=Q[b])==null?void 0:(T=a.commentViewModel)==null?void 0:T.commentId)===A)return b}return-1};
_.d.tickForCommentsTimer_=function(A){_.Wn(A,void 0,"wn_comments")};
_.d.reloadComments_=function(A){A=_.V(A,opW);_.V(A==null?void 0:A.command,_.Yo)&&_.X5(this.hostElement,[A==null?void 0:A.command])};
_.Qr.Object.defineProperties(Ya.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!((A=this.data)==null?0:(Q=A.header)==null?0:(b=Q.commentsHeaderRenderer)==null?0:b.isBackstageContent)}}});
_.Qr.Object.defineProperties(Ya,{template:{configurable:!0,enumerable:!0,get:function(){if(p0r===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);p0r=A}A=p0r;return A}}});
Ya.prototype.showSubscribersOnlyDisclaimer_=Ya.prototype.showSubscribersOnlyDisclaimer_;Ya.prototype.headerChanged_=Ya.prototype.headerChanged_;Ya.prototype.contentsChanged_=Ya.prototype.contentsChanged_;_.E([_.I(_.aE),_.c("design:type",Object)],Ya.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.T5Y.YtHostElementBehavior),_.c("design:type",Object)],Ya.prototype,"ytHostElementBehavior",void 0);
_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",Function)],Ya.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Ya.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ya.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.header.commentsHeaderRenderer.isBackstageContent"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Ya.prototype,"isBackstage",null);_.E([_.C(),_.c("design:type",Object)],Ya.prototype,"disablePrescanVisibility",void 0);_.E([_.C(),_.c("design:type",Object)],Ya.prototype,"canScheduleJobs",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ya.prototype,"engagementPanel",void 0);
_.E([_.C(),_.c("design:type",Object)],Ya.prototype,"hidePanelButton",void 0);_.E([_.C(),_.c("design:type",Object)],Ya.prototype,"isWatchGrid",void 0);_.E([_.C(),_.c("design:type",Object)],Ya.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.E([_.iN("data.contents"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ya.prototype,"contentsChanged_",null);
_.E([_.iN("data.header"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ya.prototype,"headerChanged_",null);_.E([_.Kc("yt-show-subscribers-only-disclaimer"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ya.prototype,"showSubscribersOnlyDisclaimer_",null);_.E([_.h({is:"ytd-comments"})],Ya);var DA=function(){return _.nc.apply(this,arguments)||this};
_.O(DA,_.nc);_.d=DA.prototype;_.d.bindIf=function(A,Q,b){return A?Q:b};
_.d.bindIfDefined=function(A,Q){return A!==void 0?A:Q};
_.d.booleanString=function(A){return(!!A).toString()};
_.d.equals=function(){for(var A=_.E$.apply(0,arguments),Q=A[0],b=1;b<A.length;b++)if(Q!=A[b])return!1;return!0};
_.d.isGreaterThan=function(A,Q){return A>Q};
_.d.isLessThan=function(A,Q){return A<Q};
_.d.logicalAND=function(){for(var A=_.E$.apply(0,arguments),Q=!!A[0],b=1;b<A.length;b++)Q=Q&&!!A[b];return Q};
_.d.logicalOR=function(){for(var A=_.E$.apply(0,arguments),Q=!!A[0],b=1;b<A.length;b++)Q=Q||!!A[b];return Q};
_.d.toBool=function(A){return!!A};
DA.prototype.toBool=DA.prototype.toBool;DA.prototype.logicalOR=DA.prototype.logicalOR;DA.prototype.logicalAND=DA.prototype.logicalAND;DA.prototype.isLessThan=DA.prototype.isLessThan;DA.prototype.isGreaterThan=DA.prototype.isGreaterThan;DA.prototype.equals=DA.prototype.equals;DA.prototype.booleanString=DA.prototype.booleanString;DA.prototype.bindIfDefined=DA.prototype.bindIfDefined;DA.prototype.bindIf=DA.prototype.bindIf;_.E([_.kl()],DA);_.X0$=[DA.prototype];var SB1;var UVy;var $a=function(){return _.q.apply(this,arguments)||this};
_.O($a,_.q);$a.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$a.prototype.onBackIconTap_=function(){window.history.back()};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$a.prototype,"data",void 0);_.E([_.Ec({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],$a);
_.W($a,"yt-header-with-back-renderer",function(){if(UVy===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;SB1===void 0&&(SB1=document.createElement("template"));var f=SB1;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);UVy=A}A=UVy;return A},{mode:2});var Loj;var MPL;var Nm=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(Nm,_.q);_.d=Nm.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.d.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A,this.setUrl())};
_.d.dataChanged=function(){var A=this;if(this.data){var Q=this.setUrl();Q&&_.aB({destination:window,iframe:this.iframe,origin:_.gqM(Q.toString()),channelName:"yt-iframe",onMessage:function(b){(b=A.getCommunicationCommand(b.data))&&A.ytComponentBehavior.resolveCommand(b)},
onEstablished:function(){}})}};
_.d.setUrl=function(){if(this.data&&this.data.iframeUrl){var A=_.Rx(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(A)return _.Zi(this.iframe,A),A}};
_.d.getCommunicationCommand=function(A){var Q;if((Q=this.data)!=null&&Q.onCommunicationCommandsMap){Q=this.data.onCommunicationCommandsMap.find(function(a){return a.key===A});
if(Q==null?0:Q.value)return Q==null?void 0:Q.value;try{var b=Pzj(_.$C(A)),f=this.data.onCommunicationCommandsMap.find(function(a){return a.key===(b==null?void 0:b.getMethodName())});
if(f==null?0:f.value)return f==null?void 0:f.value}catch(a){}}};
Nm.prototype.dataChanged=Nm.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Nm.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Nm.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Nm.prototype,"data",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],Nm.prototype,"isDarkTheme",void 0);_.E([_.V1("#iframe"),_.c("design:type",HTMLIFrameElement)],Nm.prototype,"iframe",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Nm.prototype,"dataChanged",null);_.E([_.Ec({is:"yt-iframe-renderer",disableElementRegistration:!0})],Nm);
_.W(Nm,"yt-iframe-renderer",function(){if(MPL===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Loj===void 0&&(Loj=document.createElement("template"));var f=Loj;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);MPL=A}A=MPL;return A},{mode:2});_.sa=function(A){_.k$.call(this);this.callback=A;this.bezier=new I39(0,0,.4,0,.2,1,1,1);this.delay=new _.TL(this.next,window,this);this.JSC$16757_animating=!1;_.SY(this,this.delay)};
_.O(_.sa,_.k$);_.sa.prototype.isAnimating=function(){return this.JSC$16757_animating};
_.sa.prototype.start=function(A,Q,b){this.config={from:A,to:Q,duration:b,startTime:(0,_.f4)()};this.JSC$16757_animating=!0;this.next()};
_.sa.prototype.stop=function(){this.delay.stop();this.JSC$16757_animating=!1;this.config=void 0};
_.sa.prototype.next=function(){if(this.config){var A=this.config,Q=A.from,b=A.to,f=A.duration;A=A.startTime;var a=(0,_.f4)()-A;A=this.bezier;f=CeW(A,a/f);if(f==0)A=A.y0;else if(f==1)A=A.y3;else{a=Cw(A.y0,A.y1,f);var T=Cw(A.y1,A.y2,f);A=Cw(A.y2,A.y3,f);a=Cw(a,T,f);T=Cw(T,A,f);A=Cw(a,T,f)}A=_.vZ(A,0,1);this.callback(Q+(b-Q)*A);A<1?this.delay.start():this.JSC$16757_animating=!1}};_.mh=new _.TS("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var ljL={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},im9=function(A,Q,b,f){_.k$.call(this);this.JSC$16768_miniAppId=A;this.localReleaseId=Q;this.derivedDeviceInterface=b;this.isForeground=f;this.JSC$16768_playNonceResolver=new _.Mj;this.playPingTimerId=NaN;this.playPingIntervalMs=_.GP("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.GP("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.K("enable_displaying_ppn");this.JSC$16768_miniAppClientDataProvider=_.fJ().resolve(_.mh);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;KoW(this);var a=setTimeout(function(){_.Wv(new _.IO("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16768_playNonceResolver.promise.then(function(){clearTimeout(a)})};
_.O(im9,_.k$);var VPW=function(A,Q){A.JSC$16768_playNonceResolver.resolve(Q!=null?Q:gG(8));A.enableDisplayingPpn&&JJK(A).then(function(b){A.JSC$16768_miniAppClientDataProvider.clientData.set("post_play_nonce",b)})},JJK=function(A){return _.B(function(Q){return Q.nextAddress==1?Q.yield(A.JSC$16768_playNonceResolver.promise,2):Q.return(Q.yieldResult)})},KoW=function(A){var Q,b;
_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$16768_playNonceResolver.promise,2);Q=f.yieldResult;b={miniAppInfo:{externalPostId:A.JSC$16768_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:Q,derivedDeviceInterface:A.derivedDeviceInterface}};_.g2(b);_.Oi(f)})},nS9=function(A){A.state!==0?_.Wv(new _.IO("[MiniAppPlayLogger] recordPlayStart failed with state "+ljL[A.state])):(A.state=1,A0(A,"ma_cl"),Ql(A,"PLAY_EVENT_TYPE_PLAY_START"),Om1(A))},kEv=function(A){A.isForeground=!1;
Ql(A,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Ijv=function(A){A.state!==1&&A.state!==2?_.Wv(new _.IO("[MiniAppPlayLogger] recordPlayEnd failed with state "+ljL[A.state])):(A.state=3,window.clearInterval(A.playPingTimerId),A.playPingTimerId=NaN,fOC(),Ql(A,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Hmj=function(A,Q){A.state===2&&A.gameReady&&(A.firstClickRecorded?Date.now()-A.clickRecordedMs<A.playClickIntervalMs||(A.clickRecordedMs=Date.now(),Ql(A,"PLAY_EVENT_TYPE_PLAY_CLICK")):Q&&(A0(A,"ma_fua"),Ql(A,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),A.firstClickRecorded=!0,A.clickRecordedMs=Date.now()))};
im9.prototype.logError=function(A){var Q=this,b;_.B(function(f){if(f.nextAddress==1)return A.metadata.externalPostId=Q.JSC$16768_miniAppId,b=A.metadata,f.yield(Promise.race([Q.JSC$16768_playNonceResolver.promise,new Promise(function(a){setTimeout(function(){a("")},3E4)})]),2);
b.postPlayNonce=f.yieldResult;A.metadata.localReleaseId=Q.localReleaseId;A.loggingError.level="WARNING";_.en(A.loggingError,A.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:A.metadata});_.Oi(f)})};
var CSp=function(A,Q,b,f){var a,T,G,p,P,U;_.B(function(L){if(L.nextAddress==1)return L.yield(A.JSC$16768_playNonceResolver.promise,2);a=L.yieldResult;T={externalPostId:A.JSC$16768_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:a,sdkVersion:b,api:Q};f!==void 0&&(T.networkRequestsMeasurement={networkRequests:_.Tz(f,1),cachedRequests:_.Tz(f,2),transferredBytes:_.Tz(f,3)},(G=f)==null?0:_.ne(G,fY,6))&&(T.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((p=_.dO(f,
fY,6))==null?void 0:hr(p,1))||"0",cacheHits:((P=_.dO(f,fY,6))==null?void 0:hr(P,2))||"0",cachedBytes:((U=_.dO(f,fY,6))==null?void 0:hr(U,3))||"0"});_.R4("miniAppSdkUsage",T);_.Oi(L)})},oSL=function(A,Q,b){var f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x;
_.B(function(D){if(D.nextAddress==1)return D.yield(A.JSC$16768_playNonceResolver.promise,2);f=D.yieldResult;a={externalPostId:A.JSC$16768_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:f,sdkVersion:b,measurementWindow:{startTimestampMs:String(j1(Q,1)),endTimestampMs:String(j1(Q,2))},frameRate:{averageFrameTimeDeltaMs:RI(Q,3),averageFrameIdleTimeMs:RI(Q,4)}};_.ne(Q,aA,5)&&(a.networkRequests={networkRequests:(T=PV(Q))==null?void 0:_.Tz(T,1),cachedRequests:(G=PV(Q))==null?void 0:_.Tz(G,2),transferredBytes:(p=
PV(Q))==null?void 0:_.Tz(p,3),sameOriginStatusCodeToCounts:qBv((P=PV(Q))==null?void 0:COY(P,4)),crossOriginStatusCodeToCounts:qBv((U=PV(Q))==null?void 0:COY(U,5))},(L=PV(Q))==null?0:_.ne(L,fY,6))&&(a.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((M=PV(Q))==null?void 0:(l=_.dO(M,fY,6))==null?void 0:hr(l,1))||"0",cacheHits:((J=PV(Q))==null?void 0:(n=_.dO(J,fY,6))==null?void 0:hr(n,2))||"0",cachedBytes:((t=PV(Q))==null?void 0:(g=_.dO(t,fY,6))==null?void 0:hr(g,3))||"0"});_.ne(Q,
xP1,7)&&(a.gameCapture={averageFrameTimeDeltaMs:(e=_.dO(Q,xP1,7))==null?void 0:RI(e,1),averageFrameIdleTimeMs:(x=_.dO(Q,xP1,7))==null?void 0:RI(x,2)});_.R4("miniAppPerformanceMetrics",a);_.Oi(D)})},tPW=function(A,Q){var b,f;
return _.B(function(a){if(a.nextAddress==1)return a.yield(A.JSC$16768_playNonceResolver.promise,2);b=a.yieldResult;f={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:A.JSC$16768_miniAppId,postPlayNonce:b,miniAppReleaseId:A.localReleaseId},derivedDeviceInterface:A.derivedDeviceInterface,adTriggerType:Q,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.R4("miniAppAdEvent",f);_.Oi(a)})};
im9.prototype.disposeInternal=function(){_.k$.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Ql=function(A,Q,b,f){b=b===void 0?{}:b;f=f===void 0?!1:f;var a,T,G,p;_.B(function(P){if(P.nextAddress==1)return a=A.isForeground,T=A.beforeReady,P.yield(A.JSC$16768_playNonceResolver.promise,2);G=P.yieldResult;p={externalPostId:A.JSC$16768_miniAppId,localReleaseId:A.localReleaseId,derivedDeviceInterface:A.derivedDeviceInterface,postPlayNonce:G,type:Q};b.sequenceGroup=G;p.playState=T?"PLAY_STATE_NOT_READY":a?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.R4("miniAppPlayEvent",p,
b);f&&_.go();_.Oi(P)})},A0=function(A,Q){var b;
_.B(function(f){if(f.nextAddress==1)return b=(0,_.f4)(),f.yield(A.JSC$16768_playNonceResolver.promise,2);_.hQ(Q,b);_.Oi(f)})},Om1=function(A){isNaN(A.playPingTimerId)&&(A.playPingTimerId=_.St(function(){A.state!==1&&A.state!==2?_.Wv(new _.IO("[MiniAppPlayLogger] reportPlayPing failed with state "+ljL[A.state])):Ql(A,"PLAY_EVENT_TYPE_PLAY_PING")},A.playPingIntervalMs))},qBv=function(A){return Array.from(A.entries()).map(function(Q){var b=_.F(Q);
Q=b.next().value;b=b.next().value;return{key:Q,value:b}})};var rJr=function(){},jl$=function(A,Q){A.showMiniAppAdCommand=Q.showMiniAppAdCommand;
A.isEmbeddedInWebview=Q.isEmbeddedInWebview;A.playLogger=Q.playLogger},gSL=function(A,Q){var b;
return _.B(function(f){if(f.nextAddress==1){if(!A.showMiniAppAdCommand||!A.isEmbeddedInWebview)return f.return(R8y(A,Q));A.adResolver=new _.Mj;var a=new hh;b=_.FH(a,3,Q);xB(A.showMiniAppAdCommand,lQL(b));return f.yield(A.adResolver.promise,2)}return f.return(f.yieldResult)})};
rJr.prototype.onAdFinished=function(A){A=K_1(A);var Q;(Q=this.adResolver)==null||Q.resolve(A)};
var R8y=function(A,Q){var b;return _.B(function(f){if(f.nextAddress==1)f=f.yield((b=A.playLogger)==null?void 0:tPW(b,ywJ(Q)),2);else{var a=f.return;var T=new lej;T=_.FH(T,1,2);f=a.call(f,T)}return f})};var e8L=new _.TS("INNERTUBE_MANAGER_TOKEN");var h8N=function(){this.callbacks={}};
h8N.prototype.initialize=function(A){var Q=this;this.callbacks=A;window.youtubewebview?window.youtubewebview.onmessage=function(b){WoL(Q,b)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(b){WoL(Q,b)})};
var WoL=function(A,Q){if(Q.data)try{var b=Pzj(Q.data);if(_.MN(_.O2(b,1))!=null){var f=PIy(_.gA(b,2));switch(b.getMethodName()){case "yt-mini-app-load-audio-state":var a,T;(T=(a=A.callbacks).onAudioStateLoaded)==null||T.call(a,_.rA(f,Ot(f,eu,1)));break;case "yt-mute-mini-app":var G,p;(p=(G=A.callbacks).onMuteMiniApp)==null||p.call(G);break;case "yt-unmute-mini-app":var P,U;(U=(P=A.callbacks).onUnmuteMiniApp)==null||U.call(P);break;case "yt-playable-exit":var L,M;(M=(L=A.callbacks).onExit)==null||M.call(L);
break;case "yt-post-play-nonce":var l,J;(J=(l=A.callbacks).onPostPlayNonceReceived)==null||J.call(l,WD(f,2,eu));break;case "yt-confirm-exit-mini-app":var n,t;(t=(n=A.callbacks).confirmExitMiniApp)==null||t.call(n);break;case "yt-confirm-exit-mini-app-edu":var g,e;(e=(g=A.callbacks).confirmExitMiniAppEdu)==null||e.call(g);break;case "yt-benchmarking-response":var x,D;(D=(x=A.callbacks).onNativeBenchmarkingMessageReceived)==null||D.call(x,WD(f,2,eu));break;case "yt-mini-app-load-3p-consent-state":var w,
u;(u=(w=A.callbacks).multiplayer3pAckStateLoaded)==null||u.call(w,_.rA(f,Ot(f,eu,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,a9;(a9=(y=A.callbacks).exitMiniAppSeenStateLoaded)==null||a9.call(y,_.rA(f,Ot(f,eu,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var pF,Ub;(Ub=(pF=A.callbacks).onNavigateToNewMiniApp)==null||Ub.call(pF);break;case "yt-game-data-available":var Ob,I9;(I9=(Ob=A.callbacks).onGameDataAvailable)==null||I9.call(Ob,WD(f,2,eu));break;case "yt-pause-mini-app":var iy,
wW;(wW=(iy=A.callbacks).onPauseMiniApp)==null||wW.call(iy);break;case "yt-resume-mini-app":var h4,SW;(SW=(h4=A.callbacks).onResumeMiniApp)==null||SW.call(h4);break;case "yt-playable-ad-finished":var r9,PM;(PM=(r9=A.callbacks).onAdFinished)==null||PM.call(r9,WD(f,2,eu))}}else _.Wv(Error("Rh"))}catch(Nf){_.en(Error("Sh"))}else _.Wv(Error("Th"))};var Diy=function(A){this.rpcErrorCode=A};var bl=function(A,Q,b){this.intervalMs=A;this.apiFunc=Q;this.type=b;this.schedulerReady=!0};
bl.prototype.call=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1){if(Q.type!==1&&A===Q.cachedValue)return f.return();Q.pendingApiRequestResolver||(Q.pendingApiRequestResolver=new _.Mj);b=Q.pendingApiRequestResolver.promise;Q.cachedValue=A;return f.yield(vS$(Q),2)}return f.return(b)})};
bl.prototype.flush=function(A){A=A===void 0?!1:A;var Q=this;return _.B(function(b){return Q.cachedValue===void 0?b.return():b.yield(Q.apiFunc(Q.cachedValue,A),0)})};
var vS$=function(A){var Q,b,f;return _.B(function(a){switch(a.nextAddress){case 1:if(!A.schedulerReady||!A.pendingApiRequestResolver)return a.return();A.schedulerReady=!1;Q=A.pendingApiRequestResolver;A.pendingApiRequestResolver=void 0;_.ML(a,2);if(A.cachedValue===void 0){a.jumpTo(4);break}return a.yield(A.apiFunc(A.cachedValue),5);case 5:b=a.yieldResult,Q.resolve(b);case 4:_.Z1(a,3);break;case 2:f=_.Vw(a),Q.reject(f);case 3:setTimeout(function(){return _.B(function(T){A.schedulerReady=!0;return T.yield(vS$(A),
0)})},A.intervalMs),_.Oi(a)}})};var sd4=window.location.origin+"/miniapp_cloudsaves",$iy=[400,401],ESp=_.GP("cloud_save_game_data_rate_limit_ms",3E3),z81=function(A){var Q=this;this.JSC$16812_miniAppId=A;this.loadAttempts=0;this.cloudSaveIntervalMs=ESp;this.initialDownloadDataSucceeded=!1;this.JSC$16812_playNonceResolver=new _.Mj;this.scottyUploadRateLimiter=new bl(this.cloudSaveIntervalMs,function(b,f){return xVv(Q,b,f)},2);
this.downloadDataPromise=cJM(this);this.downloadDataPromise.then(function(){Q.initialDownloadDataSucceeded=!0}).catch(function(){})},w0r=function(A,Q){Q.then(function(b){return A.JSC$16812_playNonceResolver.resolve(b)})},ufN=function(A){return _.B(function(Q){return A.cachedData===void 0?Q.return(A.downloadDataPromise):Q.return(A.cachedData)})},ZmL=function(A,Q){return _.B(function(b){A.cachedData=Q;
if(!A.initialDownloadDataSucceeded)throw Error("Uh");return b.yield(A.scottyUploadRateLimiter.call(Q),0)})},yJj=function(){return new Promise(function(A){setTimeout(A,1E3,"")})},YBx=function(A,Q){var b,f;
return _.B(function(a){if(a.nextAddress==1)return b=A.JSC$16812_miniAppId,a.yield(Promise.race([A.JSC$16812_playNonceResolver.promise,yJj()]),2);f={"X-YouTube-MiniAppId":b,"X-YouTube-PostPlayNonce":a.yieldResult};"DELEGATED_SESSION_ID"in _.gN&&hnA(Q,f);return a.return(f)})},xVv=function(A,Q,b){b=b===void 0?!1:b;
return _.B(function(f){return Y5e()?_.K("enable_cloud_save_error_popup_after_retry")?f.return(new Promise(function(a,T){var G,p,P,U,L;return _.B(function(M){switch(M.nextAddress){case 1:G=0,p=!0,U=P=null;case 2:if(!(p&&G++<2)){M.jumpTo(4);break}_.ML(M,5);return M.yield(DVx(A,Q,b),7);case 7:P=M.yieldResult;p=P.ok?!1:!$iy.includes(P.status);_.Z1(M,2);break;case 5:U=L=_.Vw(M);p=NH9(U);M.jumpTo(2);break;case 4:P?P.ok?(fC(A,ESp),a()):(fC(A,A.cloudSaveIntervalMs*2),T(Error("Vh`"+String(P.status),{cause:{rpcErrorCode:P.status}}))):
(fC(A,A.cloudSaveIntervalMs*2),T(U||Error("Wh"))),_.Oi(M)}})})):f.return(new Promise(function(a,T){var G,p;
return _.B(function(P){if(P.nextAddress==1){if(A.JSC$16812_miniAppId==="")return T(Error("Xh")),P.return();_.ML(P,2);return P.yield(DVx(A,Q,b),4)}if(P.nextAddress!=2)return G=P.yieldResult,G.ok?(fC(A,ESp),a()):(fC(A,A.cloudSaveIntervalMs*2),T(Error("Vh`"+String(G.status),{cause:{rpcErrorCode:G.status}}))),_.Z1(P,0);p=_.Vw(P);fC(A,A.cloudSaveIntervalMs*2);T(p);_.Oi(P)})})):f.return()})},DVx=function(A,Q,b){b=b===void 0?!1:b;
var f,a,T;return _.B(function(G){if(G.nextAddress==1)return f=_.Cs((new TextEncoder).encode(Q)),a=miU(),G.yield(YBx(A,a),2);T=G.yieldResult;return G.return(fetch(a,{method:"POST",body:new Blob([f]),headers:T,keepalive:b}))})},cJM=function(A){var Q,b;
return _.B(function(f){if(f.nextAddress==1){if(!Y5e())return f.return("");if(A.JSC$16812_miniAppId==="")throw Error("Xh");if(A.loadAttempts>2)return f.return(A.downloadDataPromise);_.ML(f,2);return f.yield($VN(A),4)}if(f.nextAddress!=2)return Q=f.yieldResult,f.return(Q);b=_.Vw(f);if(NH9(b)&&++A.loadAttempts<2)return f.return(cJM(A));throw b;})},$VN=function(A){var Q,b,f,a,T;
return _.B(function(G){switch(G.nextAddress){case 1:return _.ML(G,2),Q=miU(),G.yield(YBx(A,Q),4);case 4:return b=G.yieldResult,G.yield(fetch(Q,{method:"GET",headers:b}),5);case 5:return f=G.yieldResult,f.ok?G.yield(f.text(),6):G.return(Promise.reject(Error("Yh`"+String(f.status),{cause:new Diy(f.status)})));case 6:return a=G.yieldResult,G.return((new TextDecoder).decode(_.$C(a)));case 2:return T=_.Vw(G),G.return(Promise.reject(T))}})},fC=function(A,Q){A.cloudSaveIntervalMs=Q;
A.scottyUploadRateLimiter.intervalMs=A.cloudSaveIntervalMs};
z81.prototype.flush=function(){var A=this;return _.B(function(Q){return A.initialDownloadDataSucceeded?Q.yield(A.scottyUploadRateLimiter.flush(!0),0):Q.return()})};var N3y=BV(Gc(1),dE(1)),sl1=BV(Gc(1),dE(3)),aq=function(A){this.callbacks=A};
_.d=aq.prototype;_.d.onAudioToggled=function(A,Q){(Q===void 0||Q)&&_.KW("yt-mini-app-is-audio-enabled",A,2592E3)};
_.d.onPause=function(){this.onAudioToggled(!1,!1)};
_.d.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.d.returnNativeBenchmarkingMessage=function(){};
_.d.sendGameData=function(){};
_.d.sendStartGameFrameCapture=function(){};
var At6=function(A,Q,b){this.callbacks=A;var f=this;this.sdkVersion=new _.Mj;this.channel=new vPY(_.aB({destination:window,iframe:Q,origin:(new URL(b.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var a=TK;var T=Gc(5);var G=new CTL;G=_.E2(G,1,1E4);T=_.Ms(T,4,ejL,G);a(f,T);f.onAudioToggled(f.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){f.sdkVersion.resolve("")},1E4)};
_.O(At6,aq);_.d=At6.prototype;_.d.onAudioToggled=function(A,Q){aq.prototype.onAudioToggled.call(this,A,Q===void 0?!0:Q);Q=TK;var b=Gc(2),f=new IeL;A=_.Bo(f,1,A);A=_.Ms(b,3,ejL,A);Q(this,A)};
_.d.onPause=function(){aq.prototype.onPause.call(this);TK(this,Gc(3))};
_.d.onResume=function(){aq.prototype.onResume.call(this);TK(this,Gc(4))};
_.d.returnNativeBenchmarkingMessage=function(A){var Q=TK,b=Gc(6);var f=dE(_.ne(A,N_,1)?1:2);A=_.ne(A,N_,1)?A:null;f=_.Ms(f,5,Fk,A);Q(this,BV(b,f))};
_.d.sendGameData=function(A){var Q=TK,b=Gc(7);A=_.Ms(b,5,ejL,A);Q(this,A)};
_.d.sendStartGameFrameCapture=function(){TK(this,Gc(9))};
var df=function(A,Q,b){var f,a,T;return _.B(function(G){if(G.nextAddress==1)return f=A.callbacks,a=f.onSdkCalled,T=Q,G.yield(A.sdkVersion.promise,2);a.call(f,T,G.yieldResult,b);_.Oi(G)})};
At6.prototype.onMessage=function(){var A=this;return cLf(Xk,function(Q){var b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y,a9,pF,Ub,Ob,I9,iy,wW,h4,SW,r9,PM,Nf,L$,UL,HM,Ks,Y1,dW,bY,OL,iO,Jv,zr,fN,sL;return _.B(function(FL){switch(FL.nextAddress){case 1:if(!uYY(Q.data))return _.Wv(Error("Zh")),FL.return();b=_.e1(Q.data,1);_.K("enable_iframe_message_get_type_via_fields")&&(f=Q.data,b=a=_.e1(f,1));switch(b){case 8:if(Q.data.hasMetadata()){var Qx=A.sdkVersion,Ls=Qx.resolve;var k1=Q.data.getMetadata();k1=_.gA(k1,
1);Ls.call(Qx,k1);clearTimeout(A.sdkVersionTimeoutId)}break;case 6:return FL.jumpTo(2);case 16:if(!_.kU(Q.data,vUK,14,Su))return FL.return();T=_.vD(Q.data,vUK,14,Su);(p=(G=A.callbacks).onGameFrameReceived)==null||p.call(G,T);return FL.return();case 17:if(!_.kU(Q.data,W_y,15,Su))return FL.return();(U=(P=A.callbacks).onGameAudioReceived)==null||U.call(P,_.vD(Q.data,W_y,15,Su));return FL.return();case 1:if(Qx=_.vD(Q.data,t1W,2,Su))switch(_.e1(Qx,1)){case 1:A.callbacks.onFirstFrameReady();if(_.K("enable_network_request_logging_on_game_events")&&
_.ne(Qx,aA,4)){df(A,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.dO(Qx,aA,4));break}df(A,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(k1=(Ls=A.callbacks).onGameReady)==null||k1.call(Ls);if(_.K("enable_network_request_logging_on_game_events")&&_.ne(Qx,aA,4)){df(A,"MINI_APP_SDK_API_GAME_READY",_.dO(Qx,aA,4));break}df(A,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.kU(Qx,Tc,3,rrM))A.callbacks.onResourceLoaded(_.vD(Qx,Tc,3,rrM))}return FL.return();case 3:return FL.jumpTo(3);case 4:return FL.jumpTo(4);
case 2:return FL.jumpTo(5);case 9:return FL.jumpTo(6);case 10:return A.callbacks.onClick(),FL.return();case 5:return FL.jumpTo(7);case 11:if(!_.kU(Q.data,Qg,9,Su))return FL.return();L=_.vD(Q.data,Qg,9,Su);(l=(M=A.callbacks).onBenchmarkingMessageReceived)==null||l.call(M,L);Qx=Q.reply;Ls=Gc(1);k1=dE(1);var oy=new Qg;var ON=new Uint8Array(B1C(L,Ot(L,JrL,6))|0);oy=lv(oy,5,JrL,_.qx(ON,!1));k1=_.Ms(k1,5,Fk,oy);Qx.call(Q,BV(Ls,k1));return FL.return();case 12:return FL.jumpTo(8);case 13:return FL.jumpTo(9);
case 15:if(!_.K("enable_open_yt_content"))return Q.reply(sl1),FL.return();if(!_.kU(Q.data,hj$,12,Su))return Q.reply(BV(Gc(1),dE(2))),FL.return();Qx=_.vD(Q.data,hj$,12,Su);J=_.gA(Qx,1);A.callbacks.onOpenYTContent(J);Q.reply(N3y);return FL.return();case 14:return FL.jumpTo(10);default:return FL.return()}FL.jumpTo(0);break;case 2:if(!_.kU(Q.data,pY,5,Su))return FL.return();Ls=Q.data;Qx=Ot(Ls,Su,5);Ls=Ls.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;n=jtf(Ls,Ls[_.Tr]|0,pY,Qx)||pY[g1U]||(pY[g1U]=
eNF(pY));Qx=_.fK(n,b3,1,_.aL());t=_.F(Qx);g=t.next();case 12:if(g.done){FL.jumpTo(14);break}e=g.value;x=new _.IO;x.level=_.e1(e,2)===1?"WARNING":"ERROR";D=br6(e.getSource());return FL.yield(A.sdkVersion.promise,15);case 15:w={source:D,sdkVersion:FL.yieldResult};_.Nx(_.O2(e,6))!=null?(x.message=e.getMessage(),x.stack=_.gA(e,5),w.sdkErrorType=fv4(_.e1(e,6)),_.Nx(_.O2(e,7))!=null&&(w.sdkApi=ave(_.e1(e,7)))):x.stack=void 0;y=u=void 0;(y=(u=A.callbacks).onError)==null||y.call(u,{loggingError:x,metadata:w});
g=t.next();FL.jumpTo(12);break;case 14:return FL.return();case 3:return _.ML(FL,16),Qx=FL.yield,Ls=A.callbacks,k1=Ls.onSave,oy=_.vD(Q.data,HeW,4,Su),oy=_.gA(oy,1),Qx.call(FL,k1.call(Ls,oy),18);case 18:Q.reply(N3y);_.Z1(FL,17);break;case 16:return a9=_.Vw(FL),pF=ci,Ub=a9,Ob=A.callbacks,I9="MINI_APP_SDK_API_SAVE_DATA",FL.yield(A.sdkVersion.promise,19);case 19:pF(Ub,Ob,I9,FL.yieldResult),Q.reply(sl1);case 17:return FL.yield(df(A,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return FL.return();case 4:return _.ML(FL,
21),FL.yield(A.callbacks.onLoad(),23);case 23:iy=FL.yieldResult;Qx=Q.reply;Ls=Gc(1);k1=dE(1);oy=new HeW;oy=_.nt(oy,1,iy);k1=_.Ms(k1,3,Fk,oy);Qx.call(Q,BV(Ls,k1));_.Z1(FL,22);break;case 21:return wW=_.Vw(FL),h4=ci,SW=wW,r9=A.callbacks,PM="MINI_APP_SDK_API_LOAD_DATA",FL.yield(A.sdkVersion.promise,24);case 24:h4(SW,r9,PM,FL.yieldResult),Q.reply(sl1);case 22:return FL.yield(df(A,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return FL.return();case 5:_.ML(FL,26);A.callbacks.onSendHighScore(RL(_.vD(Q.data,
zjK,3,Su).getValue()));Q.reply(BV(Gc(1),dE(1)));_.Z1(FL,27);break;case 26:return Nf=_.Vw(FL),L$=ci,UL=Nf,HM=A.callbacks,Ks="MINI_APP_SDK_API_SEND_SCORE",FL.yield(A.sdkVersion.promise,28);case 28:L$(UL,HM,Ks,FL.yieldResult),Q.reply(sl1);case 27:return FL.yield(df(A,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return FL.return();case 6:if(!_.kU(Q.data,wDx,8,Su)){FL.jumpTo(30);break}Qx=FL.yield;Ls=_.vD(Q.data,wDx,8,Su);Ls=_.e1(Ls,1);return Qx.call(FL,df(A,ave(Ls)),30);case 30:return FL.return();case 7:return Qx=
Q.reply,Ls=Gc(1),k1=dE(1),oy=A.callbacks.getLanguage(),k1=lv(k1,4,Fk,SF(oy)),Qx.call(Q,BV(Ls,k1)),FL.yield(df(A,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return FL.return();case 8:if(!_.kU(Q.data,crL,10,Su))return FL.return();Y1=_.vD(Q.data,crL,10,Su);dW=A.callbacks;bY=dW.onSdkPerformanceUpdate;return FL.yield(A.sdkVersion.promise,33);case 33:return bY.call(dW,Y1,FL.yieldResult),FL.return();case 9:Qx=Q.data;Ls=Ot(Qx,Su,11);if(_.MN(_.O2(Qx,Ls))==null)return Q.reply(BV(Gc(1),dE(2))),FL.return();
OL=WD(Q.data,11,Su);A.callbacks.onShareInviteCode(OL);Q.reply(N3y);return FL.yield(df(A,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return FL.return();case 10:if(_.kU(Q.data,k0p,13,Su)){FL.jumpTo(35);break}return FL.yield(A.callbacks.onShowMiniAppAd(2),36);case 36:return iO=FL.yieldResult,Q.reply(BV(Gc(1),RjW(iO))),FL.yield(df(A,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return FL.return();case 35:Qx=_.vD(Q.data,k0p,13,Su);a:switch(_.e1(Qx,1)){case 1:Qx={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Qx={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Qx={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Jv=Qx;zr=Jv.adType;fN=Jv.sdkApi;Qx=FL.yield;Ls=A.callbacks;k1=Ls.onShowMiniAppAd;oy=_.vD(Q.data,k0p,13,Su);oy=_.gA(oy,2);return Qx.call(FL,k1.call(Ls,zr,oy||void 0),38);case 38:return sL=FL.yieldResult,Q.reply(BV(Gc(1),RjW(sL))),FL.yield(df(A,fN),39);case 39:return FL.return()}})})};
var TK=function(A,Q){_.B(function(b){A.channel.send(Q);_.Oi(b)})},zk=function(A,Q,b){this.callbacks=A;
var f=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;A=zxJ(Q,(new URL(b.toString())).origin);this.gameSnacks=new Q9r(A);this.gameSnacks.page.onReady(function(){f.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){f.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var a,T;(T=(a=f.callbacks).onGameReady)==null||T.call(a)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(a,T){try{f.callbacks.onSendHighScore(T)}catch(G){ci(G,f.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(a,T){var G;return _.B(function(p){if(p.nextAddress==1)return _.ML(p,2),p.yield(f.callbacks.onSave(f.decoder.decode(T)),4);if(p.nextAddress!=2)return _.Z1(p,0);G=_.Vw(p);ci(G,f.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return p.return()})});
this.gameSnacks.storage.onLoad(function(){var a,T;return _.B(function(G){if(G.nextAddress==1)return _.ML(G,2),G.yield(f.callbacks.onLoad(),4);if(G.nextAddress!=2)return a=G.yieldResult,G.return(f.encoder.encode(a));T=_.Vw(G);ci(T,f.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return G.return(f.encoder.encode(""))})});
this.gameSnacks.init()};
_.O(zk,aq);zk.prototype.onAudioToggled=function(A,Q){aq.prototype.onAudioToggled.call(this,A,Q===void 0?!0:Q);var b;(b=this.gameSnacks)==null||b.audio.update(A)};
zk.prototype.onPause=function(){aq.prototype.onPause.call(this);var A;(A=this.gameSnacks)==null||A.game.pause()};
zk.prototype.onResume=function(){aq.prototype.onResume.call(this);var A;(A=this.gameSnacks)==null||A.game.resume()};var mVj=TUA,AU1=_.aP(function(A){var Q=A.data;var b=A.loadingProgress;A=_.F(_.pz("",void 0,"LYYTdd"));var f=A.next().value,a=A.next().value;A=_.F(_.pz(!1,void 0,"K0waae"));var T=A.next().value,G=A.next().value,p=[],P=function(){return"transform: scaleX("+(_.o7(b)||0)+")"},U=null,L=function(){return Q()&&U!==null&&U!==void 0?U:U=Q().showAnniversaryAnimation?6:mVj()};
_.H_(function(){var n;if(Q().timeOutMessages&&((n=Q().timeOutMessages)==null?0:n.length)){U=null;n=_.F(p);for(var t=n.next();!t.done;t=n.next())clearTimeout(t.value);p.length=0;d9F(Q().timeOutMessages,p,a,G)}},"BNu9j");
var M=function(){return!!Q().persistentErrorMessageTitle},l=function(){return b!==void 0},J=function(){return Q().title};
return _.X("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.X("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.X("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var n,t=(n=Q().backgroundImage)==null?void 0:n.sources,g;return(t==null?0:t.length)?"background-image: url("+((g=t[0])==null?void 0:g.url)+")":
""}}),_.X("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.X(_.S,{cond:function(){return!M()},
then:function(){var n={};return _.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.X(_.X6,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+L()},
data:function(){var t="loading_animation_"+L();return{animationConfig:{name:t,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+t+".json",loop:!0,autoplay:!0}}}})),_.X("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.X(_.S,{cond:J,
then:function(){return _.X("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},J)}}),_.X("p",{class:_.O4("mini-app-splash-screen-view-model-wiz__timeout-message",(n["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return T()},n)),
"aria-live":"polite"},f),_.X(_.S,{cond:l,then:function(){return _.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:P}))}})))}}),_.X(_.S,{cond:M,
then:function(){return _.X("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.X("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return Q().persistentErrorMessageTitle}),_.X(_.S,{cond:function(){return!!Q().persistentErrorMessageDescription},
then:function(){return _.X("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return Q().persistentErrorMessageDescription})}}))}})))},"de");var QCx=new _.TS("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var bLj=DD;DD=function(A){function Q(b){if(b){var f,a;(f=b.__spec)==null||(a=f.didUnmount)==null||a.call(f);for(f=0;f<b.childNodes.length;f++)Q(b.childNodes[f])}}
bLj==null||bLj(A);eM(function(){for(var b=0;b<A.length;b++)Q(A[b])})};var fSK=_.aP(function(A){var Q=A.data;var b=A.score;var f=A.formattedScore;var a=A.onScoreChanged;var T=A.isEmbeddedInWebview;var G=_.mS("yt-mini-app-score-button-view-model"),p=function(){var J;return _.V(Q==null?void 0:(J=Q())==null?void 0:J.buttonViewModel,_.jJ)},P=function(){var J;
return(b==null?void 0:b())||Number(Q==null?void 0:(J=Q())==null?void 0:J.lastScore)||0},U=function(){var J;
return(f==null?void 0:f())||((J=p())==null?void 0:J.title)||""},L,M=1;
if(A=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))A=Number(A),M=isNaN(A)?1:A/100;_.H_(function(){a==null||a(P());var J;var n=_.ue((J=p())==null?void 0:J.onTap);if(n){J=_.V(n,ngL);var t,g,e;J=_.V(J==null?void 0:(t=J.panelLoadingStrategy)==null?void 0:(g=t.inlineContent)==null?void 0:(e=g.dialogViewModel)==null?void 0:e.customContent,K2W)}else J=void 0;if(t=J)t.score=U()},"KZFi5e");
A=_.IY(function(){var J,n,t=Q==null?void 0:(J=Q())==null?void 0:(n=J.loggingDirectives)==null?void 0:n.trackingParams;t&&_.JY(_.fJ().resolve(_.gu),t);return!1});
_.tz(function(){if(G.value){var J=G.value.querySelector("button"),n=p();J&&n&&FzW(J,n);fk("yt-share-playable-with-high-score",function(){var t=P().toString(),g=Q==null?void 0:Q().onShareHighScoreCommand,e=Q==null?void 0:Q().highScoreShareClientParamIdentifier,x=T==null?void 0:T();g&&(x?(e=new P$y,t=_.nt(e,2,t),xB(g,t.JSC$12256_serializeBinary())):e&&(_.fJ().resolve(QCx).clientParams.set(e,{miniAppClientParams:{highScore:t}}),z1F(g,!1)))})}});
var l=function(){var J=p();J&&(b==null?0:b())&&J.accessibilityText&&(J.accessibilityText=J.accessibilityText.replace(L,U()));L=U();return{numberValue:P(),numberText:U(),heightPx:36,fontSizeMultiplier:M,shouldAnimate:!(b==null||!b())&&!0}};
return _.X("yt-mini-app-score-button-view-model",{class:function(){var J={};return _.nE("mini-app-score-button-view-model-wiz",(J["mini-app-score-button-view-model-wiz--is-visible"]=P()!==0,J))},
el:G,"on:click":A},D4(!1,function(){return _.X("span",{style:"display:none;"},P)}),_.X(_.WL,{data:function(){var J;
return Q==null?void 0:(J=Q())==null?void 0:J.buttonViewModel}},{buttonViewModel:function(J){return _.X(_.J9,{data:J.data,
animatedTextProps:l})}}))},"ee");var G5L=_.aP(function(A){var Q,b=(Q=_.i7("yt-mini-app-is-theater-mode-enabled"))!=null?Q:!1,f=_.K("enable_playable_container_save_button"),a=_.K("enable_play_next_destination_page_in_toolbar");Q={};return _.X("ytm-mini-app-top-bar-view-model",null,_.X("div",{class:_.O4("yt-mini-app-top-bar-view-model",(Q["yt-mini-app-top-bar-view-model--mobile"]=!1,Q["yt-mini-app-top-bar-view-model--desktop"]=!0,Q))},_.X("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.X(_.S,{cond:function(){var T;
return!!A.data().backButtonEdu&&!((T=A.isExitMiniAppSeen)==null?0:T.call(A))},
then:function(){return _.X(_.WL,{data:function(){return A.data().backButtonEdu}},{buttonViewModel:_.J9})},
else:function(){return _.X(_.WL,{data:function(){return A.data().backButton}},{buttonViewModel:_.J9})}}),_.X(_.S,{cond:function(){return A.data().viewAllButton&&!0},
then:function(){return _.X(_.WL,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.J9})}}),_.X(_.S,{cond:function(){return A.data().title&&!0},
then:function(){return _.X("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return A.data().title})}})),_.X("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.X(_.S,{cond:function(){var T;
return(T=A.isDesktopPlayPage)==null?void 0:T.call(A)},
then:function(){return _.X(_.bd,null,_.X(aSN,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview}),_.X(T1M,{enableSaveButton:function(){return _.o7(f)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.X(dpp,{menuButton:function(){return A.data().menuButton}}))},
else:function(){return _.X(_.S,{cond:function(){return!1},
then:function(){return _.X(_.WL,{data:function(){return A.data().playPageButton}},{buttonViewModel:function(T){return _.X(_.J9,{data:T.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.X(aSN,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview})}})}})),_.X("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.X(_.WL,{data:function(){return A.data().muteButton}},{toggleButtonViewModel:function(T){var G=T.data;
return _.X(_.eq,{data:function(){var p,P;return Object.assign({},G(),{isToggled:(P=(p=A.isAudioEnabled)==null?void 0:p.call(A))!=null?P:!0})},
onToggle:A.onAudioToggled,useOutlinedIcon:!0})}}),_.X(_.WL,{data:function(){return A.data().theatreModeButton}},{toggleButtonViewModel:function(T){var G=T.data;
return _.X("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.X(_.eq,{data:function(){return Object.assign({},G(),{isToggled:b})},
useOutlinedIcon:!0}))}}),_.X(FBW,{fullscreenButton:function(){return A.data().fullscreenButton}}),_.X(_.S,{cond:function(){return _.o7(a)&&A.data().viewAllButton&&!1},
then:function(){return _.X(_.WL,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.J9})}}),_.X(_.S,{cond:function(){var T;
return!((T=A.isDesktopPlayPage)==null?0:T.call(A))},
then:function(){return _.X(_.bd,null,_.X(T1M,{enableSaveButton:function(){return _.o7(f)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.X(dpp,{menuButton:function(){return A.data().menuButton}}))}}))))},"fe");
G5L.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var dpp=_.aP(function(A){return _.X(_.WL,{data:A.menuButton},{buttonViewModel:_.J9})},"ge"),T1M=_.aP(function(A){var Q=A.enableSaveButton;
var b=A.saveButton;var f=A.isSaved;var a=A.onSaveToggled;return _.X(_.S,{cond:function(){return Q()&&!(b==null||!b())},
then:function(){return _.X(_.WL,{data:function(){var T=_.V(b==null?void 0:b(),_.R$),G;return{toggleButtonViewModel:Object.assign({},T,{isToggled:(G=f==null?void 0:f())!=null?G:!(T==null||!T.isToggled)})}}},{toggleButtonViewModel:function(T){return _.X(_.eq,{data:T.data,
onToggle:a})}})}})},"he"),aSN=_.aP(function(A){var Q=A.highScoreButton;
var b=A.score;var f=A.formattedScore;var a=A.onScoreChanged;var T=A.isEmbeddedInWebview;return _.X(_.WL,{data:Q},{miniAppScoreButtonViewModel:function(G){return _.X(fSK,{data:G.data,score:b,formattedScore:f,onScoreChanged:a,isEmbeddedInWebview:T})}})},"ie"),FBW=_.aP(function(A){A=A.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.X(_.bd,null):_.X(_.WL,{data:A},{buttonViewModel:_.J9})},"je");_.B11=new _.TS("DESKTOP_CURRENT_PAGE");var LBW=_.aP(function(A){var Q=A.data;var b=_.K("force_active_time_logging_webview"),f=!1,a=new h8N,T=void 0,G=void 0,p=_.fJ().resolve(e8L),P=new rJr,U=void 0,L=void 0,M=[],l=void 0,J=void 0,n=!1,t=!1,g=!1,e=!1,x=new _.Mj,D=_.fJ().resolve(QCx),w=_.fJ().resolve(_.mh),u=_.fJ().resolve(_.bu(na)),y,a9=(y=_.fJ().resolve(_.bu(_.B11)))==null?void 0:y.getCurrentPage(),pF=!1,Ub=0,Ob=function(yY){yY.preventDefault();return yY.returnValue=""},I9;
A=_.F(_.pz(!((I9=_.i7("yt-mini-app-is-audio-enabled"))!=null&&!I9),void 0,"cGaEvf"));var iy=A.next().value,wW=A.next().value,h4;I9=_.F(_.pz(!((h4=_.i7("exit-mini-app-seen-state"))==null||!h4),void 0,"DctXGe"));var SW=I9.next().value,r9=I9.next().value;h4=_.F(_.pz(!1,void 0,"pU1jdd"));var PM=h4.next().value,Nf=h4.next().value;h4=_.F(_.pz(void 0,void 0,"ldLqDf"));var L$=h4.next().value,UL=h4.next().value;h4=_.F(_.pz(void 0,void 0,"mdofE"));var HM=h4.next().value,Ks=h4.next().value;h4=_.F(_.pz(!0,void 0,
"T1gxCf"));var Y1=h4.next().value,dW=h4.next().value;h4=_.F(_.pz(!1,void 0,"gxt7wf"));var bY=h4.next().value,OL=h4.next().value;h4=_.F(_.pz(void 0,void 0,"yqLV6d"));var iO=h4.next().value,Jv=h4.next().value;h4=_.F(_.pz(0,void 0,"l6CrGf"));var zr=h4.next().value,fN=h4.next().value,sL=_.st("mini-app-container-view-model"),FL=function(){return Q().isEmbeddedInWebview},Qx=function(){return Q().hasPlayNextShelf};
fk("yt-page-type-changed",function(yY){if(_.K("enable_is_mini_app_page_active_bugfix"))yY.detail.newPageSubtype==="mini_app"&&yY.detail.newPageType==="ytd-browse"||!Y1()||oy();else if(yY=_.ehf()==="mini_app",yY!==Y1())if(dW(yY),yY){var FK;yY=(FK=Q().playableId)==null?void 0:FK.toString();yY!==void 0&&window.location.href.includes(yY)&&!t&&(e=!0,Ls(),K$.value&&oT(K$.value))}else yY||oy()});
fk("yt-action",function(yY){yY.detail.actionName==="yt-engagement-panel-visible-changed"&&yY.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&yY.detail.args[2]==="PAmini_app_panel"&&oy();_.K("enable_is_mini_app_page_active_bugfix")?yY.detail.actionName==="yt-history-load"&&!Y1()&&(a9==null?0:a9.active)?(dW(!0),Ls(),K$.value&&oT(K$.value)):yY.detail.actionName==="yt-history-load"&&Y1()&&!Q().isEmbeddedInWebview&&k5():Y1()&&yY.detail.actionName==="yt-history-load"&&(e?e=!1:Q().isEmbeddedInWebview||
k5())});
_.Cz(function(){k1()});
_.H_(function(){Ls()},"PiwKsd");
var Ls=function(){var yY=Q().playableId,FK=Q().localReleaseId,yx=Q().derivedDeviceInterface;if(t)_.Wv(new _.IO("[MiniAppContainerViewModel] onEnter was called more than once"));else{t=!0;T=new im9(yY,FK,yx,document.visibilityState==="visible");nS9(T);G=new z81(yY);pH9(p,yY);jl$(P,{showMiniAppAdCommand:Q().showMiniAppAdCommand,isEmbeddedInWebview:Q().isEmbeddedInWebview,playLogger:T});OOF()&&(J=document.body.style.backgroundColor,_.xE(document.body,"background-color","black"));fH();n$();x=new _.Mj;
if(Q().isEmbeddedInWebview){if(yY=(new URLSearchParams(window.location.search)).get("postPlayNonce"))VPW(T,yY),pF=!0;a.initialize({onAudioStateLoaded:function(ml){UN(ml)},
onMuteMiniApp:function(){UN(!1)},
onUnmuteMiniApp:function(){UN(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(ml){pF||(VPW(T,ml),pF=!0)},
confirmExitMiniApp:function(){var ml,Xu,Hl;return _.B(function(Js){if(Js.nextAddress==1)return Q().confirmExitMiniAppCommand?Js.yield(Promise.race([x.promise,Promise.resolve(!1)]),2):Js.return();(ml=Js.yieldResult)?!Q().confirmExitMiniAppCommandEdu||(Hl=(Xu=SW)==null?void 0:Xu())!=null&&Hl?Ik(Q().confirmExitMiniAppCommand):(Ik(Q().confirmExitMiniAppCommandEdu),_.KW("exit-mini-app-seen-state","true",2592E6)):Ik(Q().closeMiniAppCommand);_.Oi(Js)})},
onNativeBenchmarkingMessageReceived:function(ml){ml=Oex(_.zDe(ml));if(_.kU(ml,_.vi,3,iex)){var Xu=_.vD(ml,_.vi,3,iex),Hl=wwJ();var Js=RL(Hl.getSeconds())-RL(Xu.getSeconds());Xu=_.Tz(Hl,2)-_.Tz(Xu,2);Js<0&&Xu>0?(Js+=1,Xu-=1E9):Js>0&&Xu<0&&(--Js,Xu+=1E9);Js=(new N_).setSeconds(Js);Js=_.Dr(Js,2,_.mj(Xu),0);_.Lp(ml,1,Js)}var MJ;(MJ=L)==null||MJ.returnNativeBenchmarkingMessage(ml)},
multiplayer3pAckStateLoaded:function(ml){k5(ml)},
exitMiniAppSeenStateLoaded:function(ml){Q().confirmExitMiniAppCommandEdu&&r9(ml)},
onNavigateToNewMiniApp:function(){Ik(Q().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(ml){ml=new URLSearchParams(ml);var Xu=void 0;ml.has("invite_code")&&(Xu=new oUp,ml=ml.get("invite_code"),Xu=_.nt(Xu,1,ml));if(ml=Xu){var Hl;(Hl=L)==null||Hl.sendGameData(ml)}},
onPauseMiniApp:function(){f=!0;ON()},
onResumeMiniApp:function(){f=!0;Sx()},
onAdFinished:function(ml){P.onAdFinished(ml)}});
Q().showMultiplayer3pConsentDialogCommand||x.resolve(!0);Ik(Q().onContainerReadyCommand)}else VPW(T),x.resolve(!0);w0r(G,JJK(T));JJK(T).then(function(ml){ml={miniAppPlayData:{postPlayNonce:ml}};var Xu,Hl=(Xu=Q().loggingDirectives)==null?void 0:Xu.trackingParams;Hl&&_.IP().stateChanged(Hl,ml)});
yY=Q().showSignInDialogCommand;!Y5e()&&yY&&(_.KW("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Ik(yY));Q().confirmExitMiniAppCommand&&u&&(yY=xi6(Q().confirmExitMiniAppCommand))&&(u.customConfirmationCommand=yY)}},k1=function(){J&&_.xE(document.body,"background-color",J);
n=!1;l&&l.release();G.flush().catch(function(yY){_.Wv(yY)});
p.flush().catch(function(yY){_.Wv(yY)});
Ijv(T);Wh();L=void 0;PQ9(D)},oy=function(){dW(!1);
k1();Nf(!1);Jv(void 0);UL(void 0);Ks(void 0);Ub=0;fN(0);t=!1},ON=function(){var yY;
(yY=L)==null||yY.onPause();l&&l.release();G.flush().catch(function(FK){_.Wv(FK)});
p.flush().catch(function(FK){_.Wv(FK)});
kEv(T)},Sx=function(){var yY;
(yY=L)==null||yY.onResume();n$();yY=T;yY.isForeground=!0;Ql(yY,"PLAY_EVENT_TYPE_PLAY_RESUME")},UN=function(yY){var FK;
(FK=L)==null||FK.onAudioToggled(yY);wW(yY)},k5=function(yY){Q().showMultiplayer3pConsentDialogCommand&&(Q().isEmbeddedInWebview&&yY!==void 0&&x.resolve(yY),!yY&&_.ehf()==="mini_app"&&Ik(Q().showMultiplayer3pConsentDialogCommand))},mE=function(){var yY,FK,yx,ml;
return _.B(function(Xu){if(Xu.nextAddress==1){!Q().isLivestream||Q().disableVideoCapture||(yY=L)!=null&&yY.sendStartGameFrameCapture();FK=(new URL(window.location.href)).searchParams;if(FK.has("invite_code")){var Hl=new oUp,Js=FK.get("invite_code");yx=_.nt(Hl,1,Js);(ml=L)==null||ml.sendGameData(yx)}PM()||(Nf(!0),Hl=T,Hl.state!==1?_.Wv(new _.IO("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+ljL[Hl.state])):(_.pJ("mini_app_ids_without_game_ready").includes(Hl.JSC$16768_miniAppId)&&(Hl.gameReady=
!0),Hl.state=2,Hl.beforeReady=!1,A0(Hl,"ma_ffr"),Ql(Hl,"PLAY_EVENT_TYPE_PLAY_READY")));return Xu.yield(x.promise,2)}Ik(Q().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();Q().isEmbeddedInWebview||k5();_.Oi(Xu)})},w9=function(){var yY=T;
yY.gameReady=!0;A0(yY,"ma_gr")},zn=function(yY){var FK;
return _.B(function(yx){if(yx.nextAddress==1)return _.ML(yx,2),yx.yield(ZmL(G,yY),4);if(yx.nextAddress!=2)return _.Z1(yx,0);FK=_.Vw(yx);Ik(Q().showSavingErrorPopupCommand);throw FK;})},wx=function(){var yY,FK;
return _.B(function(yx){if(yx.nextAddress==1)return _.ML(yx,2),yx.yield(ufN(G),4);if(yx.nextAddress!=2)return yY=yx.yieldResult,yx.return(yY);FK=_.Vw(yx);Ik(Q().showLoadingErrorDialogCommand);throw FK;})},bn=function(yY){T.logError(yY)},o8=function(yY,FK,yx){CSp(T,yY,FK,yx)},Fu=function(yY,FK){oSL(T,yY,FK)},jn=function(){!b&&Q().isEmbeddedInWebview||_.a4();
Hmj(T,!0);n||(window.addEventListener("beforeunload",Ob,{capture:!0}),n=!0)},aO=function(yY){var FK,yx,ml,Xu,Hl,Js,MJ;
return _.B(function(yF){if(yF.nextAddress==1)return p&&(!U||U<yY)&&yY>0?yF.yield(XHL(p,yY),3):yF.jumpTo(0);FK=yF.yieldResult;yx=_.F(FK);ml=yx.next().value;Xu=yx.next().value;Hl=ml;Js=Xu;((MJ=Hl)==null?0:MJ.displayString)&&Js&&(UL(Js),Ks(Hl.displayString));_.Oi(yF)})},$m=function(yY){var FK=Q().onBenchmarkingMessageReceivedCommand;
if(FK){var yx=wwJ();_.Ms(yY,3,iex,yx);xB(FK,nUL(yY))}},ai=function(yY){var FK=Q().onGameFrameReceivedCommand;
if(FK){var yx=new hh;var ml=new S1N;var Xu=j1(yY,1);ml=_.kk(ml,1,Xu);yY=_.gA(yY,2);yY=_.nt(ml,2,yY);yx=_.Lp(yx,2,yY);xB(FK,lQL(yx))}},He=function(yY){var FK=Q().onGameAudioDataReceivedCommand;
if(FK){var yx=new hh;var ml=new L2N;yY=_.gA(yY,1);ml=_.nt(ml,1,yY);yx=_.Lp(yx,4,ml);xB(FK,lQL(yx))}},We=function(){var yY=new URLSearchParams(window.location.search);
if(Q().isEmbeddedInWebview&&yY&&yY.get("override_hl")==="true"&&yY.get("hl"))return yY.get("hl");yY=document.documentElement.lang;return yY!==""?yY:_.ug},uy=function(yY){var FK=Q().onShareInviteCodeCommand;
if(FK)if(Q().isEmbeddedInWebview){var yx=new P$y;yY=_.nt(yx,1,yY);xB(FK,SZL(yY))}else yx=Q().inviteCodeShareClientParamIdentifier,D.clientParams.set(yx,{miniAppClientParams:{inviteCode:yY}}),Ik(FK)},iY=function(yY){var FK,yx,ml;
return _.B(function(Xu){if(Xu.nextAddress==1)return FK=Q().onMiniAppOpenYtContentRequested,p&&_.K("enable_open_yt_content")&&FK?Xu.yield(SeK(p,yY),3):Xu.jumpTo(0);yx=Xu.yieldResult;if(yx==="OK")if(Q().isEmbeddedInWebview){var Hl=new BPj;ml=lv(Hl,2,eu,SF(yY));xB(FK,XBL(ml))}else w.clientData.set("video_id",yY),Ik(FK);_.Oi(Xu)})},XK=function(yY){Ub+=_.Tz(yY,3);
yY=Math.min(Math.log(1+Ub/15E6*9)/Math.log(10),.99);fN(yY);jd(yY)},jd=_.IB(function(yY){var FK=Q().updateLoadingProgressCommand;
if(FK){var yx=new BPj;yY=lv(yx,3,eu,_.cM(yY));xB(FK,XBL(yY))}},100),ns=function(yY){return gSL(P,yY)},n$=function(){var yY,FK;
((yY=_.Jmy())==null?void 0:(FK=yY.wakeLock)==null?void 0:FK.request)!=null&&_.Jmy().wakeLock.request("screen").then(function(yx){l=yx}).catch(function(){})},K$=_.mS("iframe");
_.H_(function(){Q().isSupportedCountry&&(Y5e()||_.K("enable_sign_in_promo")||!Q().showSignInDialogCommand?K$.value&&oT(K$.value):Ik(Q().onMiniAppReadyCommand))},"XK60ib");
var Rt=function(){return _.X("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return PM()?0:-1},
el:K$})},oT=function(yY,FK){FK=FK===void 0?!1:FK;
var yx=lY();yx&&(FK||yx.toString()!==yY.getAttribute("src"))&&(L=Qv4(Q().source,{isAudioEnabled:iy,onFirstFrameReady:mE,onGameReady:w9,onSave:zn,onLoad:wx,onError:bn,onSdkCalled:o8,onSdkPerformanceUpdate:Fu,onClick:jn,onSendHighScore:aO,onBenchmarkingMessageReceived:$m,getLanguage:We,onShareInviteCode:uy,onResourceLoaded:XK,onOpenYTContent:iY,onShowMiniAppAd:ns,onGameFrameReceived:ai,onGameAudioReceived:He},yY,yx),q7(yY,"load",function(){A0(T,"ma_il");q7(yY,"load",function(){oT(yY,!0)})}),_.Zi(yY,
yx))},lY=function(){var yY=Q().url;
if(yY&&(yY=_.Rx(yY),yY!==null)){if(Q().source&&Q().source==="MINI_APP_SOURCE_GAMESNACKS")yY=_.Bl(yY,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.K("enable_origin_query_parameter_bugfix")){var FK=_.jO(_.Ja4(yY.toString()));FK=new URLSearchParams(FK||"");FK.set("origin",window.location.origin);FK=FK.toString();yY=_.IT(yY).toString();yY=_.k8(tWL.exec(yY)[0]+(FK.trim()?"#"+FK:""))}return yY}},yE=function(){var yY={};
yY=_.O4("yt-mini-app-container-view-model__loading-screen",(yY["yt-mini-app-container-view-model__loading-screen--fade-out"]=PM,yY));var FK=function(){return PM()?1:zr()};
return _.X("div",{class:yY},_.X(_.WL,{data:function(){return Q().splashScreen}},{miniAppSplashScreenViewModel:function(yx){return _.X(AU1,{data:yx.data,
loadingProgress:FK})}}))},fH=function(){M=[];
M.push(_.jM(window,"visibilitychange",function(){g||f&&FL()||(document.visibilityState==="visible"?Sx():ON())}));
M.push(_.jM(window,"pagehide",function(){k1()}));
M.push(_.jM(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&sL.value.dispatchEvent(new Event("tap"))},0)}));
M.push(_.jM(sL.value,"pointerdown",function(){Hmj(T,!1)},!0));
M.push(_.jM(sL.value,"pause",function(){g=!0;ON()}));
M.push(_.jM(sL.value,"play",function(){g=!1;Sx()}));
M.push(_.jM(sL.value,"exit",function(){k1()}));
var yY=navigator.keyboard,FK=yY&&yY.lock;M.push(_.jM(window,wYM,function(){OL(ZTW());ZTW()?(Q().hasPlayNextShelf&&p7("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),$T("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),FK&&yY.lock(["Escape"])):(Q().hasPlayNextShelf&&$T("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),p7("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),FK&&yY.unlock())}));
Q().showMultiplayer3pConsentDialogCommand&&M.push(_.jM(window,"yt-playables-ack-3p-data-usage",function(){UpM(p)}));
Q().confirmExitMiniAppCommandEdu&&M.push(_.jM(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.KW("exit-mini-app-seen-state","true",2592E6)}));
Q().onGameAudioDataReceivedCommand&&M.push(_.jM(window,"message",function(yx){yx=yx.event_;var ml,Xu=(ml=K$.value)==null?void 0:ml.src;if(Xu&&yx.origin===(new URL(Xu)).origin&&yx.data&&yx.data.type==="GAME_AUDIO"&&yx.data.audio&&yx.data.audio.length>0)if(_.K("enable_sending_unwrapped_game_audio_as_serialized_metadata"))ZQF(Q().onGameAudioDataReceivedCommand,yx.data.audio);else{var Hl=new FileReader;Hl.onload=function(){var Js=new hh;var MJ=new L2N;MJ=_.nt(MJ,1,Hl.result);Js=_.Lp(Js,4,MJ);xB(Q().onGameAudioDataReceivedCommand,
lQL(Js))};
Hl.readAsDataURL(new Blob([yx.data.audio]))}}))},Wh=function(){M.forEach(function(yY){oP(yY)});
window.removeEventListener("beforeunload",Ob,{capture:!0})},Ik=function(yY){yY&&z1F(yY,Q().isEmbeddedInWebview||!1)},$T=function(yY,FK){yY=_.F(sL.value.getElementsByClassName(yY));
for(var yx=yY.next();!yx.done;yx=yY.next())yx.value.classList.add(FK)},p7=function(yY,FK){yY=_.F(sL.value.getElementsByClassName(yY));
for(var yx=yY.next();!yx.done;yx=yY.next())yx.value.classList.remove(FK)};
return function(){var yY={};yY=_.O4("yt-mini-app-container-view-model",(yY["yt-mini-app-container-view-model--desktop"]=!0,yY["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return Q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},yY["yt-mini-app-container-view-model--ios-web-view"]=OOF(),yY["yt-mini-app-container-view-model--no-top-bar"]=function(){return!Q().topBar},yY["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return Q().hasPlayNextShelf},yY["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return Q().hasPlayNextShelf},yY["yt-mini-app-container-view-model--show-peek-below"]=function(){return!bY()&&Q().hasPlayNextShelf},yY));
var FK={};FK=_.O4("yt-mini-app-container-view-model__content",(FK["yt-mini-app-container-view-model__content--desktop-content"]=!0,FK["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return Q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},FK["yt-mini-app-container-view-model--desktop-play-page"]=function(){return Q().hasPlayNextShelf},FK));
return _.X("mini-app-container-view-model",{el:sL},_.X("div",{class:yY},_.X(_.S,{cond:function(){return Q().topBar&&!bY()},
then:function(){return _.X(_.WL,{data:function(){return Q().topBar}},{miniAppTopBarViewModel:function(yx){return _.X(G5L,{data:yx.data,
isAudioEnabled:iy,onAudioToggled:function(ml){UN(ml)},
score:L$,formattedScore:HM,onScoreChanged:function(ml){U=ml},
isEmbeddedInWebview:FL,isSaved:iO,onSaveToggled:function(ml){Jv(ml)},
isExitMiniAppSeen:SW,isDesktopPlayPage:Qx})}})}}),_.X("div",{class:FK},_.X(_.S,{cond:Y1,
then:function(){return Rt()}}),_.X(_.S,{cond:function(){return!Q().isEmbeddedInWebview},
then:function(){return yE()}}))))}()},"ke");
LBW.idomCompat=!0;_.pE(LBW,"mini-app-container-view-model",{props:{data:_.Qf}});var Msy=_.aP(function(A){var Q=A.data;return _.X("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.X("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.IY(function(){var b=Q().onTap;b&&_.D3(b)})},_.X(_.S,{cond:function(){return Q().icon},
then:function(b){return _.X(_.oY,{icon:function(){return b().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.X("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return Q().title})))},"le");
Msy.idomCompat=!0;var lSv=_.aP(function(A){var Q=_.st("div"),b=_.F(_.pz(void 0,void 0,"kFCJ0c")),f=b.next().value,a=b.next().value;b=_.F(_.pz(void 0,void 0,"PIPgWd"));var T=b.next().value,G=b.next().value;b=_.F(_.pz(void 0,void 0,"rV66ob"));var p=b.next().value,P=b.next().value,U=function(){var e=f();return e!==void 0?Math.abs(e):void 0},L=function(){var e=U();
return e===void 0||e<=3},M=function(){var e=U();
var x=T(),D=p();e=e!==void 0&&x!==void 0&&D!==void 0?x-D-e:void 0;return e===void 0||e<=3},l=function(e){Q.value&&Q.value.scrollBy({top:0,
left:(_.vG("HTML_DIR")==="rtl"?-1:1)*e*Q.value.clientWidth,behavior:"smooth"})},J=function(){var e;
a((e=Q.value)==null?void 0:e.scrollLeft);var x;G((x=Q.value)==null?void 0:x.scrollWidth);var D;P((D=Q.value)==null?void 0:D.clientWidth)},n=function(){l(-.5)},t=function(){l(.5)};
b=_.IY(function(){J()});
_.CH(function(){J();if(Q.value){var e=new ResizeObserver(J);e.observe(Q.value);_.Cz(function(){e.disconnect()})}});
var g={};return _.X("yt-sponsorships-scrollable-shelf",{class:_.O4("ytdSponsorshipsScrollableShelfHost",A.className)},_.X("div",{class:_.O4("ytdSponsorshipsScrollableShelfContent",(g.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return A.data().previousButton&&A.data().nextButton&&!L()&&!M()},g.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return A.data().previousButton&&!L()&&M()},g.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return A.data().nextButton&&
L()&&!M()},g)),
el:Q,"on:scroll":b},A.children),_.X(_.S,{cond:function(){return!L()},
then:function(){return _.X(_.WL,{data:function(){return A.data().previousButton}},{buttonViewModel:function(e){return _.X(_.J9,{data:e.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:n})}})}}),_.X(_.S,{cond:function(){return!M()},
then:function(){return _.X(_.WL,{data:function(){return A.data().nextButton}},{buttonViewModel:function(e){return _.X(_.J9,{data:e.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:t})}})}}))},"me");
lSv.idomCompat=!0;var iLY=_.aP(function(A){var Q=A.data;A={};return _.X("yt-sponsorships-hub",{class:_.O4("ytdSponsorshipsHubHost",(A.ytdSponsorshipsHubHostIndented=function(){return Q().indented},A))},_.X("div",{class:"ytdSponsorshipsHubHeader"},_.X("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.X("div",{class:"ytdSponsorshipsHubAvatar"},_.X(_.WL,{data:function(){return Q().avatar}},{avatarViewModel:_.Wm})),_.X(_.S,{cond:function(){return Q().badgeImage},
then:function(b){return _.X("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.X("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.X("div",{class:"ytdSponsorshipsHubBadge"},_.X(_.aY,{data:b,targetWidth:24,targetHeight:24,alt:""}))))}})),_.X("div",{class:"ytdSponsorshipsHubDetails"},_.X("div",{class:"ytdSponsorshipsHubTierName"},function(){return Q().tierName}),_.X("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return Q().membershipType}),_.X("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return Q().membershipDurationOrExpiry})),_.X("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.X(_.WL,{data:function(){return Q().manageButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.X(_.WL,{data:function(){return Q().actionMenuButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.X("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return Q().perksTitle}),_.X(lSv,{data:function(){return{previousButton:Q().previousPerkButton,
nextButton:Q().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.X("div",{class:"ytdSponsorshipsHubPerkCards"},_.X(_.WL,{data:function(){return Q().perkCards}},{sponsorshipsHubPerkCardViewModel:Msy}),_.X(_.S,{cond:function(){return Q().viewAllPerksButton},
then:function(b){return _.X(KBN,{data:b})}}))))},"ne");
iLY.idomCompat=!0;var KBN=_.aP(function(A){var Q=A.data;return _.X("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.X(_.WL,{data:function(){return Q().button}},{buttonViewModel:_.J9}),_.X("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.X("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return Q().title}),_.X("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return Q().subtitle})))},"oe");
KBN.idomCompat=!0;_.pE(iLY,"yt-sponsorships-hub",{props:{data:_.Qf}});_.JUN=_.aP(function(A){var Q=A.data;return _.X("yt-dual-avatar-view-model",{class:_.O4("ytDualAvatarViewModelHost",A.className),style:_.qM({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var b;return((b=Q().badgeCutoutRadius)!=null?b:14)+"px"}})},_.X("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.X(_.WL,{data:function(){return Q().startAvatar}},{avatarViewModel:_.Wm}),_.X(_.WL,{data:function(){return Q().endAvatar}},{avatarViewModel:_.Wm})),_.X(_.WL,{data:function(){return Q().badge}},
{contentPreviewImageViewModel:function(b){return _.X("div",{class:"ytDualAvatarViewModelBadge"},_.X(_.Sv,{data:b.data}))}}))},"pe");
_.JUN.idomCompat=!0;var OL$=_.aP(function(A){var Q=A.data;var b,f=!((b=_.fJ().resolve(_.bu(_.Af)))==null||!b());A=_.Lz(function(){var L,M,l=f?(L=Q().header)==null?void 0:L.backgroundColorDarkMode:(M=Q().header)==null?void 0:M.backgroundColorLightMode;if(l!==void 0)return _.w6(l)},void 0,"UX2G6c");
b=_.Lz(function(){var L,M;return f?(L=Q().header)==null?void 0:L.backgroundImagePart1Dark:(M=Q().header)==null?void 0:M.backgroundImagePart1Light},void 0,"GPAi1d");
var a=_.Lz(function(){var L,M;return f?(L=Q().header)==null?void 0:L.backgroundImagePart2Dark:(M=Q().header)==null?void 0:M.backgroundImagePart2Light},void 0,"nboJld"),T=_.Lz(function(){return _.vG("HTML_DIR")==="rtl"},void 0,"LGJceb"),G=_.st("yt-sponsorships-perks-list"),p=!1,P=function(){var L=G.value;
if(L&&!p){var M,l=(M=L.parentElement)==null?void 0:M.parentElement;if(l)for(L=L.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),M=0;M<L.length;++M){var J=L[M];if(J instanceof HTMLElement){l.scrollTo({top:J.offsetTop+J.clientHeight/2-l.clientHeight/2,behavior:"smooth"});p=!0;break}}}};
_.tz(function(){var L=G.value;if(L){var M=new ResizeObserver(P);M.observe(L);_.Cz(function(){M.disconnect()})}});
var U={};return _.X("yt-sponsorships-perks-list",{el:G,class:_.O4("ytdSponsorshipsPerksListHost",(U.ytdSponsorshipsPerksListHorizontalPadding=function(){return Q().horizontalPaddingEnabled},U))},_.X("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.X("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.qM({"background-color":A})},_.X("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.X(_.S,{cond:b,then:function(L){var M={};return _.X("div",{class:_.O4((M.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,M.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,M.ytdSponsorshipsPerksListFlipped=T,M))},_.X(_.aY,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.X("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.X(_.S,{cond:a,
then:function(L){var M={};return _.X("div",{class:_.O4((M.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,M.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,M.ytdSponsorshipsPerksListFlipped=T,M))},_.X(_.aY,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.X("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.X(_.WL,{data:function(){var L;
return(L=Q().header)==null?void 0:L.dualAvatar}},{dualAvatarViewModel:_.JUN})))),_.X("div",{class:"ytdSponsorshipsPerksListBody"},_.X("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return Q().title}),_.X(_.S,{cond:function(){return Q().perks},
then:function(L){return _.X(_.Op,{each:L},function(M,l){var J={};return _.X("div",{class:_.O4("ytdSponsorshipsPerksListPerkContainer",(J.ytdSponsorshipsPerksListSelectedPerk=function(){var n=l(),t=Q().selectedPerkIndex;return n===t},J))},_.X(_.S,{cond:function(){return l()>0},
then:function(){return _.X("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.X("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.X(_.S,{cond:function(){return M.icon},
then:function(n){return _.X(_.oY,{icon:function(){return n().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.X("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.X("div",{class:"ytdSponsorshipsPerksListPerkTitle"},M.title),_.X("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.X(_.Rb,{text:M.description})),_.X(_.S,{cond:function(){return M.instructions},
then:function(){var n,t;return _.X("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.X("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(n=M.instructions)==null?void 0:n.title),_.X("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.X(_.Rb,{text:(t=M.instructions)==null?void 0:t.text})))}}))),_.X(_.S,{cond:function(){return M.emoji},
then:function(n){return _.X("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.X(_.Op,{each:function(){return n()}},function(t){return _.X(_.aY,{data:t,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.X(Vsy,{data:M}))})}})))},"qe");
OL$.idomCompat=!0;var Vsy=_.aP(function(A){var Q=A.data;var b=function(G,p){return G===p},f=function(){var G=Q();
G=_.V(G==null?void 0:G.badgesShelf,lX9);return G!==void 0&&G!==null?G:{previousButton:{},nextButton:{}}},a=_.mS("div"),T=function(){var G=a.value;
if(G){var p=G.parentElement;if(p){G=G.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var P=0;P<G.length;++P){var U=G[P];if(U instanceof HTMLElement){p.scrollTo({left:U.offsetLeft+U.clientWidth/2-p.clientWidth/2,behavior:"instant"});break}}}}};
_.tz(function(){var G=a.value;if(G){var p=new ResizeObserver(T);p.observe(G);_.Cz(function(){p.disconnect()})}});
return _.X("div",null,_.X(_.S,{cond:function(){return Q().badges},
then:function(G){return _.X(lSv,{data:f},_.X("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:a},_.X(_.Op,{each:function(){return G()}},function(p,P){var U={},L={},M={};
return _.X("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.X(_.S,{cond:function(){return P()>0},
then:function(){return _.X("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.X("div",{class:_.O4("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(U.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return b(P(),Q().currentBadgeIndex)},U.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!b(P(),Q().currentBadgeIndex)},U))},_.X("div",{class:_.O4("ytdSponsorshipsPerksListLoyaltyBadge",(L.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return b(P(),
Q().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!b(P(),Q().currentBadgeIndex)},L))},_.X(_.S,{cond:function(){return p.image},
then:function(l){var J={};return _.X("div",{class:_.O4((J.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return b(P(),Q().currentBadgeIndex)},J.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!b(P(),Q().currentBadgeIndex)},J))},_.X(_.aY,{data:l,
alt:""}))}})),_.X("div",{class:_.O4("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(M.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return b(P(),Q().currentBadgeIndex)},M))},p.title)))})))}}))},"re");
Vsy.idomCompat=!0;_.pE(OL$,"yt-sponsorships-perks-list",{props:{data:_.Qf}});_.pE(_.aP(function(A){return _.X("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.X(_.S,{cond:function(){return A.data().image},
then:function(Q){return _.X(_.aY,{className:"ytwFantasyEmptyStateViewModelImage",data:Q,ariaHidden:!0,alt:""})}}),_.X(_.Rb,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return A.data().title}}),_.X(_.Rb,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return A.data().subtitle}}),_.X(_.WL,{data:function(){return A.data().primaryButton}},{buttonViewModel:function(Q){return _.X(_.J9,{data:Q.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"se"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Qf}});var nML;var Gg6=_.rz({buttonRenderer:_.QM});_.dK(BUW);var k5M=_.aP(function(A){var Q=A.data;var b=A.uniqueId;var f=A.overrides;A=_.Lz(function(){var a,T=((a=Q().timedAnimationData)==null?void 0:a.animationTiming)||[];return{uniqueId:b(),timings:T,experimentEnabled:T.length>0,enabled:T.length>0}},void 0,"xqyfv");
return _.X("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.X(wL,{settings:A},_.X(_.WL,{data:function(){return Q().buttonRenderer}},{buttonRenderer:function(a){return _.X(_.QM,{data:a.data,
buttonOverrides:f})}})))},"te"),IS1=_.K("web_enable_sink_timed_animation_button_renderer")?k5M:BUW,HLL=_.K("web_enable_sink_timed_animation_button_renderer")?k5M:_.ko(BUW);
k5M.idomCompat=!0;_.K("web_enable_sink_timed_animation_button_renderer")?_.pE(HLL,"timed-animation-button-renderer",{props:{data:_.Qf,uniqueId:_.Qf,overrides:_.Qf}}):_.KE(IS1,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var F$=function(){var A=_.q.apply(this,arguments)||this;A.hideJoinButtonBeforeSubscribed=_.K("hide_join_button_before_subscribed");A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return A};
_.O(F$,_.q);_.d=F$.prototype;_.d.hasShowDialogCommand=function(A){return!!_.V(A,ngL)};
_.d.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"}}}};
_.d.updateJoinButtonOverrides=function(){var A,Q;(A=_.Bj(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(Q=A.polymerController)==null||Q.set("overrides",this.joinButtonOverrides);if(A=_.Bj(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))A.overrides=this.joinButtonOverrides};
_.d.handleButtonRefreshAction=function(A){if(A=_.V(A,tEY))this.set("data.membershipButton",A.membershipButton),this.notifyPath("data.membershipButton")};
_.d.onYtServiceRequestError=function(A){_.bp(this.hostElement,A.detail.error.message)};
_.d.onKeydown=function(A){if(A.key==="Enter"){var Q;(Q=this.data)!=null&&Q.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.d.handleUnsubscribeAction=function(){var A,Q,b;((A=this.data)==null?void 0:(Q=A.membershipButton)==null?void 0:(b=Q.buttonRenderer)==null?void 0:b.style)==="STYLE_PRIMARY"&&_.Bj(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Qr.Object.defineProperties(F$.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.subscriptionStateEntity)==null||!A.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var A,Q=(A=this.data)==null?void 0:A.membershipButton,b;A=(Q==null?void 0:Q.buttonRenderer)||_.V(Q==null?void 0:(b=Q.timedAnimationButtonRenderer)==null?void 0:b.buttonRenderer,_.wE);return(A==null?void 0:A.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(A==null?void 0:A.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(A==null?void 0:A.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return"button"}}});
F$.prototype.onYtServiceRequestError=F$.prototype.onYtServiceRequestError;F$.prototype.updateJoinButtonOverrides=F$.prototype.updateJoinButtonOverrides;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],F$.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],F$.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],F$.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Wp),_.c("design:type",Object)],F$.prototype,"ironButtonState",void 0);_.E([_.C(),_.c("design:type",Object)],F$.prototype,"data",void 0);_.E([_.H("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.c("design:type",Object),_.c("design:paramtypes",[])],F$.prototype,"hideJoin",null);
_.E([_.C(),_.c("design:type",String)],F$.prototype,"subscribeKey",void 0);_.E([_.C({selectorArgs:["subscribeKey"],selector:ePf}),_.c("design:type",Object)],F$.prototype,"subscriptionStateEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],F$.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.E([_.H("subscriptionStateEntity"),_.C({reflectToAttribute:!0}),_.c("design:type",Object),_.c("design:paramtypes",[])],F$.prototype,"subscribed",null);
_.E([_.H("subscribed","data.membershipButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],F$.prototype,"joinButtonOverrides",null);_.E([_.H("data.navigationEndpoint"),_.c("design:type",Object),_.c("design:paramtypes",[])],F$.prototype,"channelNameTabIndex",null);_.E([_.H("data.navigationEndpoint"),_.c("design:type",Object),_.c("design:paramtypes",[])],F$.prototype,"channelNameRole",null);
_.E([_.iN("joinButtonOverrides"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],F$.prototype,"updateJoinButtonOverrides",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],F$.prototype,"onYtServiceRequestError",null);_.E([_.h({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],F$);
var CQy=_.SM()(F$,"ytd-video-owner-renderer",function(){if(nML===void 0){var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" 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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);nML=A}A=nML;return A},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.pE(_.aP(function(A){var Q=A.data;var b;A=_.F(_.pz(!((b=_.i7("yt-mini-app-is-theater-mode-enabled"))==null||!b),void 0,"CtFFDf"));var f=A.next().value,a=A.next().value;b=_.F(_.pz(!1,void 0,"pRgDfb"));var T=b.next().value,G=b.next().value;_.tz(function(){var U=_.jM(window,wYM,function(){G(ZTW())});
_.Cz(function(){oP(U)})});
var p;b=(p=_.fJ().resolve(_.bu(Ddj)))!=null?p:function(){return _.X("div",null)};
_.N3("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){a(!0);_.KW("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.N3("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){a(!1);_.KW("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
p={};A={};var P={};return _.X("mini-app-play-page-renderer",{class:_.O4("miniAppPlayPageRendererHost",(p.miniAppPlayPageRendererHostDetailsView=function(){return!f()},p))},_.X("div",{class:_.O4("miniAppPlayPageRendererGameContainer",(A.miniAppPlayPageRendererGameContainerDetailsView=function(){return!f()},A))},_.X(_.WL,{data:function(){return Q().containerViewModel}},{miniAppContainerViewModel:LBW}),_.X(_.S,{cond:function(){return Q().channel&&Q().subscribeButton},
then:function(){var U={};return _.X("div",{class:_.O4("miniAppPlayPageRendererChannelContainer",(U.miniAppPlayPageRendererHideVisibility=function(){return T()},U))},_.X(_.WL,{data:function(){return Q().channel}},{videoOwnerRenderer:function(L){return _.X(CQy,{data:L.data})}}),_.X(_.WL,{data:function(){return Q().subscribeButton}},{subscribeButtonViewModel:function(L){return _.X(_.e4,{data:L.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.X(_.S,{cond:function(){return!f()&&Q().description},
then:function(){var U={};return _.X("div",{class:_.O4("miniAppPlayPageRendererMiniAppDescriptionWrapper",(U.miniAppPlayPageRendererHideVisibility=function(){return T()},U))},_.X("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return Q().description}))}})),_.X("div",{class:_.O4("miniAppPlayPageRendererPlayNextContainer",(P.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!f()},P.miniAppPlayPageRendererHideVisibility=function(){return T()},P))},_.X(_.WL,{data:function(){return Q().sectionList}},
{sectionListRenderer:b})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.Qf}});var GK=function(){var A=_.q.apply(this,arguments)||this;A.isSearch=!1;A.isConstrainedList=!1;A.hasChipsBar=!1;A.inReplyPanel=!1;A.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"}};A.monitorScroll=!0;A.SCROLL_ANIMATION_DURATION_MS=300;A.nextContinuation={continuationType:"sectionListContinuation"};return A};
_.O(GK,_.q);_.d=GK.prototype;
_.d.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(A){switch(A.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:_.K("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.K("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.d.created=function(){var A=this;this.JSC$16908_scrollAnimation=new _.sa(function(Q){A.hostElement.scrollTop=Q})};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.d.getItemsPath=function(){return"data.contents"};
_.d.replacePrimaryContent=function(A){this.set("data.contents",A)};
_.d.computeHasSortFilter=function(A){return!!A&&!!A.sortFilterSubMenuRenderer};
_.d.computeShouldScrollInPanel=function(A){var Q;return!!(A==null?0:(Q=A.scrollPaneStyle)==null?0:Q.scrollable)};
_.d.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Pj(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.d.scrollToTop=function(){this.hostElement.scrollTop=0};
_.d.scrollToItemSection=function(A){if(A=this.getItemByIdentifier(A))A=this.getScrollPositionForItem(A),this.hostElement.scrollTop!==A&&this.JSC$16908_scrollAnimation.start(this.hostElement.scrollTop,A,this.SCROLL_ANIMATION_DURATION_MS)};
_.d.getItemByIdentifier=function(A){var Q=this.contents.querySelectorAll("ytd-item-section-renderer");if(Q&&Q.length!==0){var b=Array.from(Q).findIndex(function(f){return f.sectionIdentifier===A});
return Q[b===-1?0:b]}};
_.d.getScrollPositionForItem=function(A){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===A)return 0;A=_.Wl(A).y+this.hostElement.scrollTop-_.Wl(this.hostElement).y;return Math.min(A,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Qr.Object.defineProperties(GK.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.targetId)==="browse-feedFEclips"}}});
GK.prototype.onScroll=GK.prototype.onScroll;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],GK.prototype,"ytLazyListBehavior",void 0);_.E([_.I(_.mG.YtNextContinuationBehavior),_.c("design:type",Object)],GK.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.I(_.X0$),_.c("design:type",Object)],GK.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],GK.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],GK.prototype,"data",void 0);_.E([_.C({value:2}),_.c("design:type",Number)],GK.prototype,"initialCount",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],GK.prototype,"autoFill",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.c("design:type",Boolean)],GK.prototype,"hasSortFilter",void 0);_.E([_.C({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.c("design:type",Boolean)],GK.prototype,"hideBottomSeparator",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.c("design:type",Boolean)],GK.prototype,"shouldScrollInPanel",void 0);
_.E([_.C(),_.c("design:type",Object)],GK.prototype,"isSearch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GK.prototype,"isConstrainedList",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],GK.prototype,"responsiveSizing",void 0);_.E([_.C(),_.c("design:type",Object)],GK.prototype,"hasChipsBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],GK.prototype,"pageSubtype",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],GK.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],GK.prototype,"liveChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],GK.prototype,"inReplyPanel",void 0);_.E([_.V1("#action-button"),_.c("design:type",HTMLElement)],GK.prototype,"actionButton",void 0);_.E([_.C(),_.c("design:type",Object)],GK.prototype,"scrollUpButtonData",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],GK.prototype,"engagementPanelDropdown",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],GK.prototype,"engagementPanelDialog",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],GK.prototype,"isClipList",null);_.E([_.V1("#contents"),_.c("design:type",HTMLElement)],GK.prototype,"monitorScrollElement",void 0);_.E([_.V1("#contents"),_.c("design:type",HTMLElement)],GK.prototype,"contents",void 0);
_.E([_.Kc("scroll"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],GK.prototype,"onScroll",null);_.E([_.h({is:"ytd-section-list-renderer",disableElementRegistration:!0})],GK);
var qex=_.SM()(GK,"ytd-section-list-renderer",function(){if(Yyx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);Yyx=A}A=Yyx;return A},{mode:1});var oML;var tsN;var rUY;var jCL;var Bc=function(){return _.q.apply(this,arguments)||this};
_.O(Bc,_.q);Bc.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Bc.prototype.onLikeButtonClick=function(A){A.stopPropagation();A.preventDefault()};
_.Qr.Object.defineProperties(Bc.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Bc.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Bc.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Bc.prototype,"ytRendererStamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Bc.prototype,"data",void 0);
_.E([_.C({selectorArgs:["data.likeStatusEntityKey"],selector:yR}),_.c("design:type",Object)],Bc.prototype,"likeStatusEntity",void 0);_.E([_.H("data","likeStatusEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],Bc.prototype,"likeButtonRenderer",null);_.E([_.h({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Bc);
_.W(Bc,"ytd-slim-metadata-toggle-button-renderer",function(){if(jCL!==void 0)return jCL;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return jCL=A},{mode:1});var pC=function(){var A=_.q.apply(this,arguments)||this;A.minimizePipBreakages=_.K("web_pip_minimize_breakages");A.showEqualizer=_.K("web_enable_playlist_video_lockup_equalizer");A.watchColorUpdate=_.K("kevlar_watch_color_update");A.actionMap={};return A};
_.O(pC,_.q);_.d=pC.prototype;_.d.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"}}}};
_.d.computeEditableClass=function(A){return A&&A.menu?"editable":""};
_.d.computeSelected=function(A){return!(A==null||!A.selected)};
_.d.computeUseColorPalette=function(A){return!!((A==null?0:A.lightColorPalette)&&(A==null?0:A.darkColorPalette))};
_.d.computeLargerPlaylistThumbs=function(A,Q){return _.K("web_enable_playlist_bigger_thumbnails")&&!Q};
_.d.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.d.onYtServiceRequestSent=function(A,Q){Q.endpoint&&this.isHideEnclosingAction(Q.endpoint)&&!this.selected&&Z8K(_.$g(),this.data.videoId)};
_.d.isHideEnclosingAction=function(A){var Q=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",A);A=this.get("likeEndpoint.status",A)==="INDIFFERENT";return Q||A};
_.d.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.d.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Qr.Object.defineProperties(pC.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var A;return!!(this.withinMiniplayer&&((A=this.data)==null?0:A.actionButtons))}}});
pC.prototype.onYtServiceRequestSent=pC.prototype.onYtServiceRequestSent;pC.prototype.canReorderChanged=pC.prototype.canReorderChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],pC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.NC),_.c("design:type",Object)],pC.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pC.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],pC.prototype,"withinMiniplayer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pC.prototype,"minimizePipBreakages",void 0);_.E([_.C({computed:"computeSelected(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],pC.prototype,"selected",void 0);
_.E([_.C({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],pC.prototype,"useColorPalette",void 0);_.E([_.C({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.c("design:type",Boolean)],pC.prototype,"largerPlaylistThumbs",void 0);_.E([_.C(),_.c("design:type",Object)],pC.prototype,"showEqualizer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],pC.prototype,"canReorder",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],pC.prototype,"touchPersistentDragHandle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],pC.prototype,"handleIsHovered",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pC.prototype,"watchColorUpdate",void 0);_.E([_.C(),_.c("design:type",String),_.c("design:paramtypes",[])],pC.prototype,"reorderIcon",null);
_.E([_.H("largerPlaylistThumbs"),_.c("design:type",Number),_.c("design:paramtypes",[])],pC.prototype,"thumbnailWidth",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],pC.prototype,"showActionButtons",null);_.E([_.I_("canReorder"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pC.prototype,"canReorderChanged",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],pC.prototype,"onYtServiceRequestSent",null);_.E([_.h({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],pC);
_.W(pC,"ytd-playlist-panel-video-renderer",function(){if(rUY!==void 0)return rUY;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rUY=A},{mode:2});var Pc=function(){return _.q.apply(this,arguments)||this};
_.O(Pc,_.q);Pc.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Pc.prototype,"data",void 0);_.E([_.h({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Pc);
_.W(Pc,"ytd-playlist-panel-supported-items",function(){if(tsN!==void 0)return tsN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return tsN=
A},{mode:1});usj=!0;FPM("\\P{N}");var p5b;var RHv=_.JQ("END_OF_PLAYLIST",void 0,"End of playlist"),gMY=_.JQ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),X$=function(){var A=_.q.apply(this,arguments)||this;A.minimizePipBreakages=_.K("web_pip_minimize_breakages");A.updatedCoursePanel=_.K("move_three_dot_menu_to_playlist_panel_header_for_courses");A.hideHeaderText=!1;A.useColorPalette=!1;A.collapsed=!1;A.collapsedPreServerOverride="not_tracked";A.isHovered=!1;A.modernPanels=_.K("kevlar_watch_modern_panels");
A.expandLabel=_.JQ("MINIPLAYER_EXPAND_LABEL");A.collapseLabel=_.JQ("MINIPLAYER_COLLAPSE_LABEL");A.isFloating=!1;A.metaPanel=!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};A.currentIndex=void 0;return A};
_.O(X$,_.q);_.d=X$.prototype;
_.d.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"}}}};
_.d.created=function(){this.scrollThrottle=new _.Ac(this.onThrottledScroll,1E3,this)};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
_.d.computeOverflowMenuData=function(A){return A&&A.menu?A.menu:null};
_.d.computeCollapsible=function(A){return!A};
_.d.computeHasPlaylistButtons=function(A){return!(!A||!A.playlistButtons)};
_.d.computeHasSeparateSaveButton=function(A){return!(!A||!A.saveButton)};
_.d.computeHasToolbarButton=function(A,Q){return!(!A||!(Q||A.saveButton||A.menu))};
_.d.computePlaylistType=function(A){if(A&&A.playlistId)return A.playlistId.substring(0,4)};
_.d.computeCanReorder=function(A){return A?A.playlistId&&A.playlistId.startsWith("TLPQ")?!0:!!A.isEditable&&!A.isInfinite:!1};
_.d.attached=function(){var A=this;try{_.fJ().resolve(_.u$).setPlaylistComponent(this.hostElement)}catch(Q){if(_.K("kevlar_park_on_playlist_token_killswitch"))throw Q;_.y2().parkOrScheduleJob(function(){_.fJ().resolve(_.u$).setPlaylistComponent(A.hostElement)},2,"ci")}_.F5(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.d.detached=function(){_.Go(this.hostElement)};
_.d.computeTrailingIcon=function(A,Q,b){return b?Q?"yt-icons:collapse":"yt-icons:close":Q?"yt-icons:expand":_.K("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.d.computeIndexMessage=function(A,Q){return SK9(A+1)+" / "+SK9(Q)};
_.d.onRenderStamperFinished=function(){if(this.scrollForStampDom){var A=!0;this.isHovered&&(A=!1);if(this.collapsed||this.hidden)A=!1;A&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.d.collapseChanged=function(){var A=this;this.collapsed||(_.hy(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.d.hiddenChanged=function(){var A=this;this.hidden||_.hy(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()})};
_.d.setupReordering=function(){var A=_.Bj(this.hostElement).querySelector("#items");n0Y?_.OP1(this.ytReorderableBehavior,A,A,"playlist-drag-handle"):_.OP1(this.ytReorderableBehavior,A,A)};
_.d.scrollToCurrentVideo=function(){var A=this;_.j7.addJob(function(){var Q=_.Bj(A.hostElement).querySelector("#items");if(Q){Q.style.setProperty("padding-bottom","");var b=_.Bj(A.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(b){Q=b.parentElement||_.td(document);var f=Q||_.td(document);var a=_.Wl(b),T=_.Wl(f),G=_.VFj(f);if(f==_.td(document)){var p=a.x-f.scrollLeft;a=a.y-f.scrollTop}else p=a.x-T.x-G.left,a=a.y-T.y-G.top;b=lr1(b);T=f.clientHeight-
b.height;G=f.scrollLeft;var P=f.scrollTop;G+=p-(f.clientWidth-b.width)/2;f=new _.gQ(G,P+(a-T/2));Q.scrollLeft=f.x;Q.scrollTop=f.y}}},8)};
_.d.dataChanged=function(){var A=this;_.VRp(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.mL(this,function(){_.Hv(A.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty();A.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.d.onFullBleedPlayerChanged=function(){_.K("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.d.onFullscreenChanged=function(){_.K("web_watch_imax_theater_mode")||_.K("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.d.updateNowPlayingOverlay=function(){_.K("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.d.onPlaylistLockupNowPlaying=function(A,Q){Q&&(this.activeNowPlayingRenderer=Q);this.updateNowPlayingOverlay()};
_.d.onScroll=function(){this.scrollThrottle.fire()};
_.d.onThrottledScroll=function(){var A=this;_.Hv(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty()})};
_.d.onToggleExpanded=function(A){!this.collapsible||A&&(_.Au(A).tagName==="A"||_.TG(_.mW(A),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.d.setCollapsed=function(A){this.collapsible&&(this.collapsed=A,_.Pn(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.d.handleCollapsedFromData=function(A){if(A){var Q=A.playlistPanelCollapseState;Q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||Q==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),Q=Q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==Q&&this.setCollapsed(Q)):this.currentPlaylistId!==A.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(Q=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==Q&&this.setCollapsed(Q),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=A.playlistId}};
_.d.handleDrop=function(A){var Q=A.currDragItem;A=Q.data.playlistSetVideoId;var b=_.eA(Q.parentNode.childNodes,Q),f=void 0;b>0&&(f=Q.parentNode.childNodes[b-1].data.playlistSetVideoId);Q=_.$g();if(Q.responsePlaylistData&&Q.responsePlaylistData.contents){var a=mb6(A,Q.responsePlaylistData);Q.responsePlaylistData=(0,_.j2.unsafeClone)(Q.responsePlaylistData);tA9(Q.responsePlaylistData.contents,a,b);Q.queueProxy?Vv$(Q.queueProxy,a,b,A,f):Q.playlistProxy&&Vv$(Q.playlistProxy,a,b,A,f);_.Nk(Q,_.sZ(Q,Q.response?
Q.response.autoplayRenderer:void 0))}};
_.d.handleDarkModeChange=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.d.colorPaletteChanged=function(){var A,Q=((A=this.data)==null?void 0:A.contents)||[],b;A=_.F(Q);for(Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var f=void 0;if((f=Q.playlistPanelVideoRenderer)==null?0:f.selected){A=Q.playlistPanelVideoRenderer;f=Q=void 0;(b=this.isDarkTheme?(Q=A)==null?void 0:Q.darkColorPalette:(f=A)==null?void 0:f.lightColorPalette)&&_.vz(this.hostElement,b);break}}this.useColorPalette=!!b};
_.Qr.Object.defineProperties(X$.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.playlistId)&&!((Q=this.data)==null||!Q.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var A=_.fJ().resolve(_.bu(_.u$)),Q;if(((Q=this.data)==null?0:Q.contents)&&(A==null?0:A.hasAutoplayData())){var b;if(((b=this.playlistLoopStateEntity)==null?void 0:b.state)==="PLAYLIST_LOOP_STATE_ONE"){if(A=this.data.currentIndex,A!==void 0){var f,a;var T=(f=this.data.contents[A])==null?void 0:(a=f.playlistPanelVideoRenderer)==null?void 0:a.title}}else{var G,p=(G=_.V(A.getAutoplayEndpoint(),_.sv))==null?void 0:G.videoId,P,U;T=(P=this.data.contents.find(function(L){var M;
return((M=L.playlistPanelVideoRenderer)==null?void 0:M.videoId)===p}))==null?void 0:(U=P.playlistPanelVideoRenderer)==null?void 0:U.title}return T}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.nextVideoLabel?this.nextVideoTitle?_.mO(this.data.nextVideoLabel)+":":RHv:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.K("web_mix_long_byline_from_data"))return _.sr(gMY);var Q;return(Q=this.data)==null?void 0:Q.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.playlistButtons)==null?void 0:(b=Q.menuRenderer)==null?void 0:b.topLevelButtons;if(f)for(A=_.F(f),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.playlistLoopButtonRenderer)return Q.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var A;return!!(this.collapsed&&((A=this.data)==null?0:A.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
X$.prototype.colorPaletteChanged=X$.prototype.colorPaletteChanged;X$.prototype.onPlaylistLockupNowPlaying=X$.prototype.onPlaylistLockupNowPlaying;X$.prototype.updateNowPlayingOverlay=X$.prototype.updateNowPlayingOverlay;X$.prototype.onFullscreenChanged=X$.prototype.onFullscreenChanged;X$.prototype.onFullBleedPlayerChanged=X$.prototype.onFullBleedPlayerChanged;X$.prototype.dataChanged=X$.prototype.dataChanged;X$.prototype.hiddenChanged=X$.prototype.hiddenChanged;X$.prototype.collapseChanged=X$.prototype.collapseChanged;
X$.prototype.onRenderStamperFinished=X$.prototype.onRenderStamperFinished;X$.prototype.onMouseLeave=X$.prototype.onMouseLeave;X$.prototype.onMouseEnter=X$.prototype.onMouseEnter;_.E([_.I(_.eI),_.c("design:type",Object)],X$.prototype,"ironResizableBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(iPj.YtPlaylistPanelBehavior),_.c("design:type",Object)],X$.prototype,"ytPlaylistPanelBehavior",void 0);_.E([_.I(_.du.YtTaskEmitterBehavior),_.c("design:type",Object)],X$.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.I(_.n9L),_.c("design:type",Object)],X$.prototype,"ytReorderableBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],X$.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],X$.prototype,"ytdReduxBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],X$.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],X$.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],X$.prototype,"autoplayData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],X$.prototype,"withinMiniplayer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"minimizePipBreakages",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"updatedCoursePanel",void 0);_.E([_.C({computed:"setMenuData_(data)"}),_.c("design:type",Object)],X$.prototype,"menuRendererData",void 0);_.E([_.C({computed:"computeOverflowMenuData(data)"}),_.c("design:type",Object)],X$.prototype,"overflowMenuDataTopRow",void 0);_.E([_.C({computed:"computeOverflowMenuData(data)"}),_.c("design:type",Object)],X$.prototype,"overflowMenuData",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"hideHeaderText",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"useColorPalette",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.c("design:type",Boolean)],X$.prototype,"collapsible",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"collapsed",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],X$.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.c("design:type",Boolean)],X$.prototype,"hasPlaylistButtons",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.c("design:type",Boolean)],X$.prototype,"hasSeparateSaveButton",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.c("design:type",Boolean)],X$.prototype,"hasToolbar",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.c("design:type",String)],X$.prototype,"playlistType",void 0);_.E([_.C(),_.c("design:type",Object)],X$.prototype,"isHovered",void 0);_.E([_.C({selectorArgs:["playlistLoopStateEntityKey"],selector:_.caF}),_.c("design:type",Object)],X$.prototype,"playlistLoopStateEntity",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"modernPanels",void 0);_.E([_.C({value:56}),_.c("design:type",Number)],X$.prototype,"scrollMargin",void 0);_.E([_.C({computed:"computeCanReorder(data)"}),_.c("design:type",Boolean)],X$.prototype,"canReorder",void 0);_.E([_.C(),_.c("design:type",Object)],X$.prototype,"expandLabel",void 0);_.E([_.C(),_.c("design:type",Object)],X$.prototype,"collapseLabel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"isFloating",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X$.prototype,"metaPanel",void 0);_.E([_.C({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.c("design:type",String)],X$.prototype,"trailingIcon",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],X$.prototype,"isDarkTheme",void 0);
_.E([_.C({selector:_.WO}),_.c("design:type",Boolean)],X$.prototype,"miniplayerIsActive",void 0);_.E([_.C({selector:function(A){return A.watch.playerState}}),
_.c("design:type",Number)],X$.prototype,"playerState",void 0);_.E([_.C({selector:_.w_}),_.c("design:type",Boolean)],X$.prototype,"isFullscreen",void 0);_.E([_.C({selector:_.zZ}),_.c("design:type",Boolean)],X$.prototype,"isTheaterMode",void 0);_.E([_.C(),_.c("design:type",Object)],X$.prototype,"activeNowPlayingRenderer",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],X$.prototype,"moveThreeDotMenuToTopRow",null);
_.E([_.H("data","autoplayData","playlistLoopStateEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],X$.prototype,"nextVideoTitle",null);_.E([_.H("data","nextVideoTitle"),_.c("design:type",String),_.c("design:paramtypes",[])],X$.prototype,"nextVideoLabel",null);_.E([_.H("collapsed"),_.c("design:type",String),_.c("design:paramtypes",[])],X$.prototype,"buttonAriaLabel",null);
_.E([_.H("data","playlistId","longBylineText"),_.c("design:type",Object),_.c("design:paramtypes",[])],X$.prototype,"mixLongByLine",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],X$.prototype,"playlistLoopStateEntityKey",null);_.E([_.Kc("mouseenter"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"onMouseEnter",null);
_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"onMouseLeave",null);_.E([_.C({reflectToAttribute:!0}),_.H("data","collapsed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],X$.prototype,"showNextVideoHeader",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"onRenderStamperFinished",null);
_.E([_.iN("collapsed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"collapseChanged",null);_.E([_.iN("hidden"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"hiddenChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"dataChanged",null);
_.E([_.H("isTheaterMode","isFullscreen"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],X$.prototype,"isFullBleedPlayer",null);_.E([_.iN("isTheaterMode","isFullscreen"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"onFullBleedPlayerChanged",null);_.E([_.iN("isFullscreen"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"onFullscreenChanged",null);
_.E([_.iN("playerState","miniplayerIsActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"updateNowPlayingOverlay",null);_.E([_.Kc("yt-playlist-lockup-now-playing-active"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],X$.prototype,"onPlaylistLockupNowPlaying",null);
_.E([_.iN("data","isDarkTheme"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X$.prototype,"colorPaletteChanged",null);_.E([_.h({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],X$);
_.eHL=_.SM()(X$,"ytd-playlist-panel-renderer",function(){if(oML===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);oML=A}A=oML;return A},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var hHj;var SH=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_button_rework");return A};
_.O(SH,_.q);SH.prototype.computeShouldButtonBeVertical=function(A,Q){return A||Q};
SH.prototype.onYtServiceRequestSent=function(A,Q){(A=_.V(Q.endpoint,_.up))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.HL("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:A.status})):this.handleLikeEndpoint(A))};
SH.prototype.computelikeStatusEntityKey=function(A){return A==null?void 0:A.likeStatusEntityKey};
SH.prototype.handleLikeEndpoint=function(A){A.status==="LIKE"?this.JSC$16933_ytdDislikeToggleButtonRenderer.toggle(!1):A.status==="DISLIKE"?this.JSC$16933_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16933_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16933_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Qr.Object.defineProperties(SH.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var A;return lvb(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(A=this.likeStatusEntity)==null?void 0:A.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var A;if(this.data&&((A=this.data)==null||!A.hideDislikeButton)){var Q;return lvb(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(Q=this.likeStatusEntity)==null?void 0:Q.likeStatus)}}}});
SH.prototype.onYtServiceRequestSent=SH.prototype.onYtServiceRequestSent;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],SH.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],SH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],SH.prototype,"vertical",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],SH.prototype,"textTransform",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],SH.prototype,"useShortsIcon",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],SH.prototype,"underIconLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],SH.prototype,"modern",void 0);_.E([_.C({value:"left"}),_.c("design:type",String)],SH.prototype,"buttonTooltipPosition",void 0);
_.E([_.C(),_.c("design:type",Object)],SH.prototype,"overrides",void 0);_.E([_.V1("#like-button"),_.c("design:type",Object)],SH.prototype,"JSC$16933_ytdLikeToggleButtonRenderer",void 0);_.E([_.V1("#dislike-button"),_.c("design:type",Object)],SH.prototype,"JSC$16933_ytdDislikeToggleButtonRenderer",void 0);_.E([_.H("data","likeStatusEntity.likeStatus","useShortsIcon"),_.c("design:type",Object),_.c("design:paramtypes",[])],SH.prototype,"likeButton",null);
_.E([_.H("data","likeStatusEntity.likeStatus","useShortsIcon"),_.c("design:type",Object),_.c("design:paramtypes",[])],SH.prototype,"dislikeButton",null);_.E([_.C({computed:"computelikeStatusEntityKey(data)"}),_.c("design:type",String)],SH.prototype,"likeStatusEntityKey",void 0);_.E([_.C({selectorArgs:["likeStatusEntityKey"],selector:yR}),_.c("design:type",Object)],SH.prototype,"likeStatusEntity",void 0);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],SH.prototype,"onYtServiceRequestSent",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],SH);
var WBp=_.SM()(SH,"ytd-like-button-renderer",function(){if(hHj===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);hHj=A}A=hHj;return A},{mode:1});_.vMj={};
_.vMj.YtConditionalRendererBehavior=[_.Z.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(A,Q){var b=this,f,a;return _.B(function(T){switch(T.nextAddress){case 1:if(!Q)return b.hidden=!0,b.showSpinner=!1,T.return();if((f=A)==null?0:(a=f.visibilityCondition)==null?0:a.mode)switch(A.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return T.jumpTo(5);default:return T.jumpTo(6)}b.showSpinner=
!1;b.hidden=!0;return T.yield(b.shouldShow_(A),4);case 4:b.hidden=!T.yieldResult;T.jumpTo(0);break;case 5:return T.yield(b.shouldShow_(A),8);case 8:b.showSpinner=T.yieldResult;b.hidden=!1;T.jumpTo(0);break;case 6:return b.showSpinner=!1,T.yield(b.shouldShow_(A),9);case 9:b.hidden=!T.yieldResult,_.Oi(T)}})},
shouldShow_:function(A){return A&&A.supportedDatas&&A.supportedDatas.rendererVisibilityConditionData&&A.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(A.supportedDatas.rendererVisibilityConditionData.showIf):A&&A.visibilityCondition&&A.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(A.visibilityCondition.showIf):A&&A.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(A.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(A){switch(A){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(A){switch(A){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var A=_.pD(this.hostElement,"yt-get-mdx-status");return A.length==1&&A[0].connected},
isLocationPermissionGranted_:function(){var A;return _.B(function(Q){return Q.nextAddress==1?navigator.permissions?Q.yield(navigator.permissions.query({name:"geolocation"}),3):Q.jumpTo(2):Q.nextAddress!=2?(A=Q.yieldResult,Q.return(Promise.resolve(A.state==="granted"))):Q.return(Promise.resolve(!1))})}}];var EMN=function(A,Q){Q=Q===void 0?{}:Q;var b=function(f){var a=document.createElement(A),T;var G=(T=a.polymerController)!=null?T:a;yK9(a,G,f,Q);return a};
b.debugName=A+" (CoW wrapped)";return b}("yt-icon"),xpL=_.K("web_bypass_polymer_yt_icon")&&_.K("kevlar_use_wil_icons")?_.aP(function(A){var Q=A.icon;
var b=A.active;var f=A.className;var a=A.style;var T=A.dataSelected;var G=A.dataDisabled;var p=A.role;var P=A.themeOverride;var U=A.animateIcon;var L=A.ariaHidden;var M=A.ariaExpanded;var l=A.ariaLabel;var J=A.tabindex;var n=A.id;var t=A.iconFilter;var g=function(){var D=Q==null?void 0:Q(),w=null,u=void 0;D&&(D=nap(D),D=Ol6(D),D.length&&(w=D[1],u=D[0]));return{iconName:w,iconSetName:u}},e=function(){return k39(g().iconName,b==null?void 0:b(),void 0,void 0,g().iconSetName,_.fJ().resolve(_.ie))},x=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:t==null?void 0:t()}};
return _.X(_.S,{cond:U,then:function(){return _.X(EMN,{icon:Q,active:b,className:f,style:a,dataSelected:T,dataDisabled:G,role:p,themeOverride:P,ariaHidden:L,ariaExpanded:M,ariaLabel:l,tabindex:J,id:n,iconFilter:t})},
else:function(){return _.X(_.S,{cond:e,then:function(D){return _.X("span",{class:_.O4("ytIconWrapperHost",f),role:p,"aria-label":l,"aria-hidden":L,tabindex:function(){return isNaN(Number(J==null?void 0:J()))?void 0:Number(J==null?void 0:J())},
id:n,style:a},_.X(zY4,{data:D,options:x}))}})}})},"ve"):EMN;var cUr=function(A){var Q=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];w89();_.Al("ytglobal.ytUtilActivityCallback_",function(){_.Pn(A,"yt-user-activity")});
new fu(function(){return Q.JSC$16948_onMouseMove});
document.addEventListener("scroll",function(){return Q.onScroll});
window.addEventListener("resize",function(){return Q.onResize})},zHv=function(A,Q,b){Q in A.eventJobIds||(b=_.Rc().addLowPriorityJob(function(){_.a4();
delete A.eventJobIds[Q]},b),A.eventJobIds[Q]=b)};
cUr.prototype.onScroll=function(A){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):A.target===document&&zHv(this,"scroll",200)};
cUr.prototype.onResize=function(){zHv(this,"resize",200)};
cUr.prototype.JSC$16948_onMouseMove=function(){zHv(this,"mousemove",100)};
_.d8=function(A){A.scrollEventsToIgnore+=1;A.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){A.scrollEventsToIgnore--},500))};var wHy=function(A){this.element=A;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
wHy.prototype.showFeedbackDialog=function(A,Q,b,f){var a=u9W();if(!a)return!1;var T=qKb();T.productId=a;Q&&(T.flow="submit",T.report={description:Q});b&&(u9W()==="59"?T.callback=_.cG(function(){_.R4("userFeedbackEvent",{});b()}):T.callback=_.cG(b));
T.bucket=f||_.vG("GOOGLE_FEEDBACK_BUCKET","Other");ZL9(T);A=yUr(this,"GFEEDBACK",A);try{_.iwj(T,A)}catch(G){return _.xQ(G),!1}return!0};
wHy.prototype.showHelpDialog=function(A,Q,b){var f=this,a=u9W();if(!a)return!1;var T={helpCenterPath:"/youtube",productData:yUr(this,"GUIDED_HELP",b)};ZL9(T);var G=qKb();G.context=A||T.productData.context||"default";G.defaultHelpArticleId=Q;G.enableSendFeedback=!0;(_.zV("gapi.load")||function(p,P){return P()})("client",function(){try{var p=sLr(a,T);
if(_.K("web_always_load_chat_support")&&!f.chatSupportLoaded)try{p.JSC$9917_loadChatSupport(G),f.chatSupportLoaded=!0}catch(P){}p.startHelp(G)}catch(P){_.xQ(P)}})};
var u9W=function(){var A=_.vG("GOOGLE_FEEDBACK_PRODUCT_ID");A||_.xQ(Error("ci"));return A},ZL9=function(A){A&&(A.locale=_.K("kevlar_help_use_locale")?_.vG("INNERTUBE_CONTEXT_HL","en"):_.vG("HTML_LANG","en"))},yUr=function(A,Q,b){var f=A.productData;
delete f.origin;f.device=_.Mf();var a;a:{if(a=document.createElement("canvas")){var T=a.getContext("experimental-webgl",{stencil:!0});if(T){var G=T.getExtension("WEBGL_debug_renderer_info");if(G){a=T.getParameter(G.UNMASKED_RENDERER_WEBGL);break a}}if(T=a.getContext("webgl")){a=T.getParameter(T.RENDERER);break a}}a=null}f.gpu=a;f.isSDC=!!_.vG("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(a=_.vG("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.j2.extend(f,a);_.HrY(Q,f);_.Cx6(f);(A=_.Pn(A.element,"yt-get-autonav-pause-debug-state"))&&
A.length&&(f.autonav_pause_state=A[0]);A=_.J3();f.browser_resolution=A.width+"\u00d7"+A.height+"@"+(window.devicePixelRatio||1)+"x";b&&_.j2.extend(f,b);return f};
wHy.prototype.resetProductData=function(){this.productData={}};var Yev=function(A){this.feedbackManager=new wHy(A)};
Yev.prototype.showFeedbackDialog=function(A,Q,b,f){return this.feedbackManager.showFeedbackDialog(A,Q,b,f)};
Yev.prototype.showHelpDialog=function(A,Q,b){return this.feedbackManager.showHelpDialog(A,Q,b)};var Dpr=function(){this.baseUrl="";this.aTag=document.createElement("a")},HdY=function(A,Q,b){b=b===void 0?{}:b;
b.pbj||(b.pbj=1);b=_.CJ4(Q,b);A.baseUrl&&b&&!_.Nq(b)[1]&&!_.sp(b)&&(Q=A.baseUrl,Fi(Q,"/")&&(Q=Q.slice(0,-1)),_.TX(b,"/")&&(b=b.slice(1)),b=Q+"/"+b);_.ch(A.aTag,g$(b||""));return A.aTag.href};
Dpr.prototype.fetchData=function(A){return _.JtY(A)};
Dpr.prototype.postData=function(A,Q){var b={method:"POST"};if(Q){for(var f=_.F(Object.keys(Q)),a=f.next();!a.done;a=f.next()){a=a.value;var T=Q[a];_.ZU(T)&&(Q[a]=JSON.stringify(T))}b.postParams=Q}return _.JtY(A,b)};
_.Cb$=function(A,Q,b,f,a){A=HdY(A,Q,b);if(!A)throw f=Error("di"),Object.assign(f,{params:Q}),f;return _.JtY(A,a,f)};
Dpr.prototype.requestDataForServiceEndpoint=function(A,Q){if(_.V(A,_.oWC))return this.fetchData("/getAccountSwitcherEndpoint");Q=Q||{};var b=_.V(A,ZYy);b?Q.se=b.base64EncodedServiceEndpoint:Q.sej=JSON.stringify(A);(b=_.WR())&&_.K("enable_service_ajax_csn")&&(Q.csn=b);Q.theme=_.jL();_.V(A,CKA)&&_.vG("DELEGATION_CONTEXT")&&(Q.delegation_context=JSON.stringify(_.vG("DELEGATION_CONTEXT")));b=null;for(var f in A)if(Fi(f,"Endpoint")||Fi(f,"Command")){b=f;break}if(!b){var a=Error("ei");Object.assign(a,{params:A});
_.kGi(a,"WARNING");return new _.M3(function(G,p){p(a)})}f={name:b};
var T;(b=(T=_.V(A,_.li))==null?void 0:T.signal)&&(f.signal=b);(T=_.YQ(window.location.href))&&T.internalcountrycode&&(f.internalcountrycode=T.internalcountrycode);T="/service_ajax";_.K("debug_forward_web_query_parameters")&&(T=_.xBi(T,window.location.search));T=_.$Q(T,f);A.clickTrackingParams&&_.bi(T,{itct:A.clickTrackingParams});return this.postData(T,Q)};_.$pY=new _.TS("GFEEDBACK_TOKEN");var N1r;var sCL;var mpp;var ALy;var UT=function(){var A=_.q.apply(this,arguments)||this;A.compact=!1;return A};
_.O(UT,_.q);UT.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UT.prototype.computeHasIcon_=function(A){return!!A};
UT.prototype.isSignInIcon_=function(A){return A=="yt-icons:prompted_sign_in"};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.vMj.YtConditionalRendererBehavior),_.c("design:type",Object)],UT.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UT.prototype,"data",void 0);
_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",Object)],UT.prototype,"icon_",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.c("design:type",Boolean)],UT.prototype,"hasIcon_",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.c("design:type",Boolean)],UT.prototype,"signInIcon_",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UT.prototype,"compact",void 0);
_.E([_.Ec({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],UT);
_.W(UT,"yt-player-error-message-renderer",function(){if(ALy===void 0){var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;mpp===void 0&&(mpp=document.createElement("template"));var f=mpp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ALy=A}A=ALy;return A},{mode:2});var QVL;var bqW;var LC=function(){return _.q.apply(this,arguments)||this};
_.O(LC,_.q);LC.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
LC.prototype.computeIcon_=function(A){return A?"yt-icons:"+A.iconType.toLowerCase():"error_outline"};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],LC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],LC.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",Object)],LC.prototype,"icon_",void 0);_.E([_.Ec({is:"yt-player-kav-renderer",disableElementRegistration:!0})],LC);
_.W(LC,"yt-player-kav-renderer",function(){if(bqW===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;QVL===void 0&&(QVL=document.createElement("template"));var f=QVL;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bqW=A}A=bqW;return A},{mode:2});var rtA=_.sC(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.pE(_.aP(function(A){var Q=_.st("div"),b=_.F(_.pz(0,void 0,"yt0wE")),f=b.next().value,a=b.next().value;b=_.F(_.pz(null,void 0,"CnFp5"));var T=b.next().value,G=b.next().value;_.tz(function(){jv6(Q.value,a,G);Q.value.scrollIntoView()});
b=RDY.bind(null,A.data,f);fk("resize",function(){var p=T();if(f()===1&&p!==null){var P;(P=window.grecaptcha)==null||P.reset(p)}});
return _.X("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.X("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.X("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var p,P;return(p=A.data().accessibility)==null?void 0:(P=p.accessibilityData)==null?void 0:P.label}),_.X(_.Rb,{text:b,
className:_.O4("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.X("div",{el:Q,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.Bz}});var g2Y=!1;_.fzy=_.aP(function(A){var Q=A.data;return _.X("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.X(_.S,{cond:function(){return Q().icon},
then:function(b){return _.X("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.X(_.aY,{data:b,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.X(_.S,{cond:function(){return Q().title},
then:function(b){return _.X("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.X(_.Rb,{text:b}))}}),_.X(_.S,{cond:function(){return Q().description},
then:function(b){return _.X("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.X(_.Rb,{text:b}))}}),_.X(_.WL,{data:function(){return Q().primaryButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.X(_.WL,{data:function(){return Q().secondaryButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.fzy.idomCompat=!0;var azy=_.aP(function(A){var Q=A.data;_.Dh();return _.X("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.X("div",{class:"player-interstitial-renderer-wiz__scrim"},_.X(_.WL,{data:function(){return Q().content}},{interstitialViewModel:_.fzy})))},"ye");
azy.idomCompat=!0;_.pE(azy,"yt-player-interstitial-renderer",{props:{data:_.Qf}});var MS=function(){var A=_.q.apply(this,arguments)||this;A.noBackground=!1;A.compact=!1;A.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return A};
_.O(MS,_.q);MS.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"}}}};
MS.prototype.onUpdatePlayerErrorMessageCommand_=function(A){if(_.V(A,d8v)){var Q;if(A=(Q=_.V(A,d8v))==null?void 0:Q.newPlayerErrorMessageRenderer)this.data=A}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],MS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],MS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],MS.prototype,"status",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],MS.prototype,"noBackground",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],MS.prototype,"compact",void 0);_.E([_.Ec({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],MS);
var Tcv=_.SM()(MS,"yt-playability-error-supported-renderers",function(){if(sCL===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;N1r===void 0&&(N1r=document.createElement("template"));var f=N1r;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);sCL=A}A=sCL;return A},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var eDX=void 0,WzX=void 0;var x9Y=new h_Y;var dc$=function(A){this.store=A;this.eAK=new _.E$N},LVi=function(A,Q,b){var f,a;
if(!(a=((f=Q.playabilityStatus)==null?void 0:f.status)!=="OK")){A=A.store;var T;a=Q.offlineState&&((T=Q.videoDetails)==null?0:T.videoId)?_.K("enable_pl_r_c_cd")?NEW(A.getState().entities,Q.videoDetails.videoId):!!kmY(A.getState().entities,Q.videoDetails.videoId):!1}if(a)return!0;a=ZrJ(Q);if(a===1){if(_.K("ab_v_vid_sig")){var G,p=(G=Q.videoDetails)==null?void 0:G.videoId;if(!p||!b||p!==b){var P;Q=new _.IO("282054944_vid",{gW8:b,ppZ:(P=Q.videoDetails)==null?void 0:P.videoId});_.en(Q)}}return!0}gXA=
0;var U,L;P=(p=Q.auxiliaryUi)==null?void 0:(U=p.messageRenderers)==null?void 0:(L=U.bkaEnforcementMessageViewModel)==null?void 0:L.displayType;if(a!==3&&(P==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||P==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;P={reason:_.T7(_.JQ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.K("ks_something_wrong_learn_more")?TTW("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.T7(_.JQ("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:_.T7("282054944")};F8W(Q,{playerErrorMessageRenderer:P});return!1},Mo6=function(A,Q){if(sEe(Q)){_.JE(1,!0);
var b=(b=sEe(Q))&&_.hDU()?b:void 0;b?(F8W(Q,{enforcementMessageViewModel:b}),A.eAK.increment("IN_PLAYER"),_.JE(5)):(A.eAK.increment("SKIP_DISPLAY"),_.JE(2))}},F8W=function(A,Q){A.playabilityStatus=Object.assign({},A.playabilityStatus,{status:"ERROR",
errorScreen:Q});A.videoDetails=void 0};
dc$.prototype.handleResponse=function(A,Q){if(A.playabilityStatus){var b,f,a,T=(Q==null?void 0:(b=Q.innerTubeRequest)==null?void 0:b.videoId)||(Q==null?void 0:(f=Q.innerTubeRequest)==null?void 0:(a=f.playerRequest)==null?void 0:a.videoId);LVi(this,A,T)&&Mo6(this,A)}};
dc$[aW]=[BZ];var Sxf=new _.TS("ADBLOCK_DETECTION_SERVICE_TOKEN");var mP=function(A){this.ckH=A};
mP.prototype.bindInnertubeChallengeFetcher=function(A){this.ckH.bicf(A)};
mP.prototype.registerChallengeFetchedCallback=function(A){this.ckH.bcr(A)};
mP.prototype.getLatestChallengeResponse=function(){return this.ckH.blc()};var G61;G61=_.sC(["https://static.doubleclick.net/instream/ad_status.js"]);_.BcK=_.GH(G61);var SHx;_.ll=function(A,Q,b){var f=this;this.network=A;this.options=Q;this.networkStatusManager=b;this.zB=null;if(Q.useBotguardEverywhere){var a=new _.Mj;this.zB=a.promise;_.by.ytAtRC&&_.o$(_.j7,function(){var T,G;return _.B(function(p){if(p.nextAddress==1){if(!_.by.ytAtRC)return p.return();T=p$W(null);return p.yield(f.cE(T),2)}G=p.yieldResult;_.by.ytAtRC&&_.by.ytAtRC(JSON.stringify(G));_.Oi(p)})});
NUA().then(function(T){var G,p,P,U;return _.B(function(L){if(L.nextAddress==1)return T.bindInnertubeChallengeFetcher(function(M){return f.cE(p$W(M))}),L.yield(oQC(),2);
G=L.yieldResult;p=T.getLatestChallengeResponse();P=p.challenge;if(!P)throw Error("fi");U={challenge:P,ik:ss(P),vm:G,bgChallenge:new $B};a.resolve(U);T.registerChallengeFetchedCallback(function(M){M=M.challenge;if(!M)throw Error("gi");M={challenge:M,ik:ss(M),vm:G,bgChallenge:new $B};f.zB=Promise.resolve(M)});
_.Oi(L)})})}else Q.preload&&PqL(this,new Promise(function(T){_.Hv(_.j7,function(){T(X$1(f))},0)}))};
SHx=function(A){var Q={preload:!0,useBotguardEverywhere:!0},b=!1;if(typeof Q==="boolean")var f={preload:Q};else typeof Q==="undefined"?f={preload:!0}:(f=Q,b=!!Q.zNj);Q=b?void 0:new _.uC;_.ll.instance=new _.ll(A,f,Q);return _.ll.instance};
_.ll.prototype.vnW=function(){var A=this;return _.B(function(Q){return Q.nextAddress==1?Q.yield(Promise.race([A.zB,null]),2):Q.return(!!Q.yieldResult)})};
_.ll.prototype.d0S=function(A,Q,b){var f=this,a,T,G;return _.B(function(p){f.zB===null&&PqL(f,X$1(f));a=!1;T={};G=function(){var P,U,L;return _.B(function(M){switch(M.nextAddress){case 1:return M.yield(f.zB,2);case 2:P=M.yieldResult;T.challenge=P.challenge;if(!P.vm){"c1a"in P.ik&&(T.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");M.jumpTo(3);break}U=Object.assign({},{c:P.challenge,e:A},Q);_.ML(M,4);a=!0;return M.yield(P.vm.snapshot({lN:U}),6);case 6:(L=M.yieldResult)?T.webResponse=L:T.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Z1(M,3);break;case 4:_.Vw(M),T.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(A==="ENGAGEMENT_TYPE_PLAYBACK"){var l=P.ik,J={};if(l.c6a){var n=Number(_.vG("DCLKSTAT",0));J.reportingStatus=String(Number(l.c)^(isNaN(n)?0:n))}l.c6b&&(J.broadSpectrumDetectionResult=String(Number(l.c)^Number(_.vG("CATSTAT",0))));T.adblockReporting=J}return M.return(T)}})};
return p.return(Promise.race([G(),Ucv(b,function(){var P=Object.assign({},T);a&&(P.error="ATTESTATION_ERROR_VM_TIMEOUT");return P})]))})};
var p$W=function(A){var Q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};A&&(Q.interpreterHash=A);return Q},X$1=function(A,Q){Q=Q===void 0?0:Q;
var b,f,a,T,G,p,P,U,L,M,l,J;return _.B(function(n){switch(n.nextAddress){case 1:b=p$W(x1W().mCs);if(_.K("att_fet_ks"))return _.ML(n,7),n.yield(A.cE(b),9);_.ML(n,4);return n.yield(L81(A,b),6);case 6:G=n.yieldResult;a=G.jWZ;T=G.pVo;f=G;_.Z1(n,3);break;case 4:return _.Vw(n),_.Wv(Error("hi`"+Q)),M9r(A,864E5),n.return({challenge:"",ik:{},vm:void 0,bgChallenge:void 0});case 9:f=n.yieldResult;if(!f)throw Error("ii");if(!f.challenge)throw Error("ji");a=f.challenge;T=ss(a);if("c1a"in T&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("ki");
_.Z1(n,3);break;case 7:p=_.Vw(n);_.Wv(p);Q++;if(Q>=5)return _.Wv(Error("hi`"+Q)),M9r(A,864E5),n.return({challenge:"",ik:{},vm:void 0,bgChallenge:void 0});P=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return n.return(new Promise(function(t){_.Hv(_.j7,function(){t(X$1(A,Q))},P)}));
case 3:U=$9Y(T);M9r(A,U*1E3);L=void 0;if(!("c1a"in T&&f.bgChallenge)){n.jumpTo(10);break}M=D9b(f.bgChallenge);_.ML(n,11);return n.yield(zKr(x1W(),M),13);case 13:_.Z1(n,12);break;case 11:return l=_.Vw(n),_.Wv(l),n.return({challenge:a,ik:T,vm:L,bgChallenge:M});case 12:return _.ML(n,14),L=new _.W2({challenge:M,c4f:{nj:"aGIf"}}),n.yield(L.auf,16);case 16:_.Z1(n,10);break;case 14:J=_.Vw(n),_.Wv(J),L=void 0;case 10:return n.return({challenge:a,ik:T,vm:L,bgChallenge:M})}})};
_.ll.prototype.cE=function(A){var Q=this,b;return _.B(function(f){b=Q.networkStatusManager;if(!b||b.isNetworkAvailable())return f.return(Q.network.cE(A));_.vn("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(a){b.listenOnce("publicytnetworkstatus-online",function(){Q.network.cE(A).then(a)})}))})};
var lzr=function(A){if(!A)throw Error("ii");if(!A.challenge)throw Error("ji");var Q=A.challenge,b=ss(Q);if("c1a"in b&&(!A.bgChallenge||!A.bgChallenge.program))throw Error("ki");return Object.assign({},A,{jWZ:Q,pVo:b})},L81=function(A,Q){var b,f,a,T,G;
return _.B(function(p){switch(p.nextAddress){case 1:b=void 0,f=0,a={};case 2:if(!(f<5)){p.jumpTo(4);break}if(!(f>0)){p.jumpTo(5);break}a.ezP=1E3*Math.pow(2,f-1)+Math.random()*1E3;return p.yield(new Promise(function(P){return function(U){_.Hv(_.j7,function(){U(void 0)},P.ezP)}}(a)),5);
case 5:return _.ML(p,7),p.yield(A.cE(Q),9);case 9:return T=p.yieldResult,p.return(lzr(T));case 7:b=G=_.Vw(p),G instanceof Error&&_.Wv(G);case 8:f++;a={ezP:void 0};p.jumpTo(2);break;case 4:throw b;}})},PqL=function(A,Q){A.zB=Q},K8L=function(A){var Q,b,f;
return _.B(function(a){if(a.nextAddress==1)return a.yield(Promise.race([A.zB,null]),2);Q=a.yieldResult;var T=X$1(A);A.zB=T;(b=Q)==null||(f=b.vm)==null||f.dispose();_.Oi(a)})},M9r=function(A,Q){var b=Date.now()+Q,f=function(){var a;
return _.B(function(T){a=b-Date.now();return a<1E3?T.yield(K8L(A),0):(_.Hv(_.j7,f,Math.min(a,6E4)),T.jumpTo(0))})};
f()},Ucv=function(A,Q){return new Promise(function(b){_.Hv(_.j7,function(){b(Q())},A)})};var iq$=function(){};
iq$.prototype.processContext=function(A){var Q=_.ll.instance;if(!Q)return _.AY();var b=fIF(A);return b?new mr(Q.d0S(b,AGi(A),500).then(function(f){var a;(A==null?0:(a=A.innerTubeRequest)==null?0:a.context)||(A.innerTubeRequest.context={});a=A.innerTubeRequest.context;a.request||(a.request={});a.request.attestationResponseData=f})):_.AY()};var JLL=function(A){this.innertubeTransportService=A};
JLL.prototype.cE=function(A){_.vn("att_fsr",void 0,"attestation_challenge_fetch");return _.wl(this.innertubeTransportService,A,_.bB(_.FxK)).then(function(Q){_.vn("att_frr",void 0,"attestation_challenge_fetch");return Q})};_.V9v=function(A){this.innertubeTransportService=A};var OqY=new _.TS("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var nPW=function(){},Izr=function(A,Q,b,f,a){var T=_.vG("YPC_MB_URL");
_.EFX(T).then(function(){k6L(T,A,Q,b,f,a)})},k6L=function(A,Q,b,f,a,T){try{var G=payments.business.integration,p=payments.business.integration.Style.create().withMaterialDesignStyle(),P=G.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.K("enable_window_constrained_buy_flow_dialog")&&(P=P.usingPopupStyle("windowConstrained"));T&&(P=P.usingCloseCallback(T));var U=b?b:_.vG("YPC_GB_LANGUAGE"),L=_.vG("SESSION_INDEX");G.bootstrap.fromPaymentsUrl(A);G.bootstrap.asMashupMode(P).usingGaiaIndex(L).usingLocale(U).usingStyle(p).usingDefaultActivityStatusChangeHandler().inStandaloneContext(G.standaloneContextAuthId.forGaia()).purchaseManager(Q,function(M){f&&f(M)}).load(void 0,a)}catch(M){throw a&&a(M),_.en(M),M;
}};var HqL=new _.TS("PURCHASE_MANAGER_TOKEN");var CqL=function(){var A=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return A.videos},
getContinuationsPresent:function(){return A.continuationsPresent},
setVideos:function(Q){A.videos=Q},
getRecommendedVideos:function(){return A.recommendedVideos},
setRecommendedVideos:function(Q){A.recommendedVideos=Q}}};
CqL.prototype.addVideos=function(A){A&&(this.videos=A.filter(function(Q){return!!_.TpX(Q)}).map(function(Q){var b=_.TpX(Q);
a:{var f;if(Q.playlistVideoRenderer&&((f=Q.playlistVideoRenderer)==null?0:f.voteSortTiebreaker))var a=Q.playlistVideoRenderer.voteSortTiebreaker;else{if(_.V(Q,Qa)){var T;if(f=(a=_.V(Q,Qa))==null?void 0:(T=a.playlistItemData)==null?void 0:T.voteSortTiebreaker){a=f;break a}}a=""}}return{itemId:b,videoId:_.GR9(Q),voteCount:_.BpF(Q),voteSortTiebreaker:a}}),this.continuationsPresent=!!_.V(A[A.length-1],_.ac))};
var qHK=function(A,Q){return A.videos.findIndex(function(b){return b.itemId===Q})},oPp=function(A,Q){return A.recommendedVideos.findIndex(function(b){return b.itemId===Q})},t9L=function(A){A={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:A}}}}};_.fJ().resolve(_.de).resolveCommand(A)};var rLL=function(){CqL.apply(this,arguments)};
_.O(rLL,CqL);
var PDx=function(A,Q,b,f){if(!A.parentElem)throw Error("pi");var a=qHK(A,Q);a===-1&&(a=oPp(A,Q),a=a!==-1?a+A.videos.length:-1);if(a===-1)throw Error("qi");var T=a>=A.videos.length?A.recommendedVideos[a-A.videos.length]:A.videos[a];T.voteCount=b;T.voteSortTiebreaker=Date.now().toString();a>=A.videos.length?A.recommendedVideos.splice(a-A.videos.length,1):A.videos.splice(a,1);var G=A.videos;for(var p=0,P=G.length-1;p<=P;){var U=Math.floor((p+P)/2);if(G[U].voteCount<T.voteCount)P=U-1;else if(G[U].voteCount>T.voteCount)p=
U+1;else{a:{var L=T.voteSortTiebreaker;var M=G[U].voteSortTiebreaker;if(L.length!==M.length)L=L.length>M.length;else{for(var l=0;l<L.length;l++){var J=L.charCodeAt(l),n=M.charCodeAt(l);if(J>n){L=!0;break a}if(J<n)break}L=!1}}L?P=U-1:p=U+1}}G=p;if(G===-1)throw Error("ri");A.videos.splice(G,0,T);a!==G&&jVK(A,a,G,Q,b,f)},jVK=function(A,Q,b,f,a,T){var G,p=(G=A.parentElem)==null?void 0:G.children,P=Math.min(Q,b),U=Math.max(Q,b);
if(p)for(G=P;G<=U;G++)p[G].style.viewTransitionName="item-"+String(G);document.startViewTransition(function(){if(A.parentElem){var L=A.parentElem.children;if(!(!L||Q<0||Q>=L.length||b<0||b>=L.length)){var M=L[Q];if(M){M.remove();A.showRefreshPill=b>=A.videos.length-1&&A.continuationsPresent;if(!A.showRefreshPill){L=L[b]||null;var l;(l=A.parentElem)==null||l.insertBefore(M,L)}_.Bn(A.parentElem,"yt-update-video-data-voting-animation",{toIdx:b,itemId:f,newVoteCount:a,voteStatus:T,hideItem:A.showRefreshPill})}}}}).finished.then(function(){if(p)for(var L=
P;L<=U;L++)p[L].style.viewTransitionName="";
if(A.showRefreshPill)t9L(_.JQ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var M;if(M=L=(M=A.parentElem)==null?void 0:M.children[b])M=L.getBoundingClientRect(),L=M.bottom,M=!(M.top>=0&&L<=A.clientHeight);M&&(M=_.VI(Q>b?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(Q-b)),t9L(M))}})};var eAM=function(A,Q){var b=this;A?this.innertubeTransportServicePromise=Promise.resolve(A):Q&&(this.innertubeTransportServicePromise=Q(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new bl(3E3,function(f){return RAj(b,f)},0);
this.validateMiniAppVideoIdRateLimiter=new bl(3E3,function(f){return gPY(b,f)},1)},pH9=function(A,Q){A.JSC$17060_miniAppId=Q;
A.reportMiniAppValueRateLimiter=new bl(3E3,function(b){return RAj(A,b)},0);
A.validateMiniAppVideoIdRateLimiter=new bl(3E3,function(b){return gPY(A,b)},1)},XHL=function(A,Q){var b;
return _.B(function(f){if(f.nextAddress==1)return f.yield(A.reportMiniAppValueRateLimiter.call(Q),2);b=f.yieldResult;return f.return([b,Q])})},RAj=function(A,Q){var b,f,a,T,G,p,P;
return _.B(function(U){switch(U.nextAddress){case 1:return U.yield(A.innertubeTransportServicePromise,2);case 2:return b=U.yieldResult,f=_.bB(SPN),a=Date.now(),T={externalPostId:A.JSC$17060_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(a/1E3),nanos:Math.round(a%1E3*1E6)},intValue:""+Q}},_.ML(U,3),U.yield(_.wl(b,T,f),5);case 5:G=U.yieldResult;_.Z1(U,4);break;case 3:throw p=_.Vw(U),p;case 4:if(G){if("error"in G&&G.error)throw G.error;if(G.errorMetadata)throw Error("si`"+
G.errorMetadata.status);if(P=G.userStatResult)return U.return(P);throw Error("ti");}throw Error("ui");}})},UpM=function(A){var Q,b,f,a,T;
_.B(function(G){switch(G.nextAddress){case 1:return G.yield(A.innertubeTransportServicePromise,2);case 2:return Q=G.yieldResult,b=_.bB(SPN),f={externalPostId:A.JSC$17060_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.ML(G,3),G.yield(_.wl(Q,f,b),5);case 5:a=G.yieldResult;_.Z1(G,4);break;case 3:throw T=_.Vw(G),T;case 4:if(a==null)throw Error("ui");if("error"in a&&a.error)throw a.error;if(a.errorMetadata)throw Error("si`"+a.errorMetadata.status);_.Oi(G)}})};
eAM.prototype.flush=function(){var A=this;return _.B(function(Q){return Q.nextAddress==1?Q.yield(A.reportMiniAppValueRateLimiter.flush(),2):Q.yield(A.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var SeK=function(A,Q){return _.B(function(b){return b.nextAddress==1?b.yield(A.validateMiniAppVideoIdRateLimiter.call(Q),2):b.return(b.yieldResult)})},gPY=function(A,Q){var b,f,a,T,G,p;
return _.B(function(P){switch(P.nextAddress){case 1:return P.yield(A.innertubeTransportServicePromise,2);case 2:return b=P.yieldResult,f=_.bB(T8L),a={videoId:Q},_.ML(P,3),P.yield(_.wl(b,a,f),5);case 5:T=P.yieldResult;_.Z1(P,4);break;case 3:throw G=_.Vw(P),G;case 4:if(T){if("error"in T&&T.error)throw T.error;if(T.errorMetadata)throw Error("si`"+T.errorMetadata.status);if(p=T.playabilityStatus)return P.return(p.status);throw Error("vi");}throw Error("ui");}})};
eAM[aW]=[_.bu(_.vY),_.bu(hFp)];var hAx=function(){this.clientData=new Map};
hAx.prototype.getData=function(A){return this.clientData.get(A)};var W89=function(A){this.store=A};
W89.prototype.handleResponse=function(A){(A=_.V(A.frameworkUpdates,f6))&&_.V4(A,this.store)};
W89[aW]=[_.u7];var vPp=new _.TS("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var EPy={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 xcr=new _.TS("ICON_SET_TOKEN"),cLx=new _.TS("ICON_URL_PROVIDER_TOKEN"),zA1=new _.TS("PREFETCH_ICONS_TOKEN"),w$r=new _.TS("ICON_MAP_FN_TOKEN");var KC={},uO1=(KC.ACCESS_TIME="clock",KC.ACCOUNT_BOX="person_account",KC.ACCOUNT_BOX_CAIRO="person_account_cairo",KC.ACCOUNT_CIRCLE="person_circle",KC.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",KC.ACCOUNT_LINKED="account_link_success",KC.ACCOUNT_UNLINKED="account_link",KC.ADD_FRIEND="people",KC.ADD_MODERATOR="shield_add",KC.ADD_TO_LIBRARY="bookmark",KC.ADD_TO_PLAYLIST="add",KC.ADD_TO_QUEUE_TAIL="list_queue",KC.ADD_TO_REMOTE_QUEUE="list_music",KC.ADD_TO_WATCH_LATER="clock",KC.ADD_VIDEO_LINK="film_strip_add",
KC.ALERT_WARN_RED="alert_triangle",KC.ARROW_BACK="arrow_left",KC.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",KC.ARROW_DROP_DOWN="chevron_down",KC.ARROW_DROP_UP="chevron_up",KC.ARROW_FORWARD="arrow_right",KC.AUDIOTRACK="audio",KC.AUTO_AWESOME="sparkle",KC.AVATAR_ANONYMOUS="person_circle",KC.AVATAR_LOGGED_OUT="person_circle",KC.BACK="arrow_left",KC.BAR_CHART="bar_graph",KC.BLOCK="slash_circle_left",KC.BLOCK_USER="slash_circle_left",KC.BOOKMARK_BORDER="bookmark",KC.BREAKING_NEWS_ALT_1="article_alert",
KC.BROADCAST_CAIRO="podcast_cairo",KC.BUG_REPORT="bug",KC.CAMERA_ALT="camera",KC.CAMPAIGN="megaphone",KC.CANCEL="x_circle",KC.CAPTIONS="closed_caption",KC.CAST_OUTLINE="chromecast",KC.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",KC.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",KC.CHAT="message_bubble_left",KC.CHAT_BUBBLE="message_bubble_empty",KC.CHAT_SPARK="spark_message_bubble_left",KC.CHECK_BOX_OUTLINE_BLANK="box_empty",KC.CHECK_CIRCLE_OUTLINE="check_circle",KC.CHECK_CIRCLE_THICK="check_circle",KC.CLARIFY=
"article_clarify",KC.CLOSED_CAPTION_SELECTED="closed_caption",KC.CLOSE="x_mark",KC.CLOUD_UPLOAD="cloud_arrow_up",KC.COLLAPSE="chevron_up",KC.COLLAPSE_CAIRO="chevron_up_cairo",KC.COLLECTION="layers",KC.COLOR_LENS="palette",KC.COMMENT="message_bubble_right",KC.CONSENT_SHIELD="person_shield",KC.CONTENT_CUT="scissors",KC.CONTENT_CUT_CAIRO="scissors_cairo",KC.COURSE=_.K("web_enable_course_icon_update")?"creator_academy":"lightbulb",KC.COURSE_CAIRO=_.K("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",KC.CREATION_LIVE="radar_live",KC.CREATION_POST="box_pencil",KC.CREATION_UPLOAD="my_videos",KC.CREATION_UPLOAD_RED="upload",KC.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",KC.CREATOR_STUDIO="youtube_studio",KC.DASHBOARD="grid_asymmetrical",KC.DELETE="trash_can",KC.DELETE_SWEEP="trash_can",KC.DESKTOP="laptop",KC.DISLIKE="thumb_down",KC.DISLIKE_SELECTED="thumb_down",KC.DISMISSAL="x_mark",KC.DISMISS_QUEUE="list_remove",KC.DONE_ALL="check_double",KC.DOWN_ARROW="arrow_down",KC.DO_NOT_DISTURB=
"slash_circle_left",KC.DRAFT="paper_corner_folded",KC.DRAG_HANDLE="bars_2",KC.EDIT="pencil",KC.EMOJI="face_very_happy",KC.EMOJI_FLAGS="flag",KC.EMOJI_OBJECTS="lightbulb",KC.EMOJI_PEOPLE="face_very_happy",KC.EMOJI_RECENT="clock",KC.EMPTY_HEART="heart",KC.EMPTY_LIKE="thumb_up",KC.ERROR_BLACK="alert_circle",KC.ERROR_OUTLINE="alert_circle",KC.EXIT_APP="arrow_in",KC.EXIT_TO_APP="arrow_in",KC.EXPAND="chevron_down",KC.EXPAND_ALL="chevron_expand",KC.EXPAND_CAIRO="chevron_down_cairo",KC.EXPAND_LESS="chevron_up",
KC.EXPAND_MORE="chevron_down",KC.EXPLORE="compass",KC.EXPLORE_DESTINATION="compass",KC.EXTERNAL_LINK="open_new",KC.FAB_UPLOAD="upload",KC.FACE_HAPPY_OUTLINE="face_happy",KC.FACT_CHECK="article_check",KC.FASHION_LOGO="fashion",KC.FASHION_LOGO_CAIRO="fashion_cairo",KC.FAVORITE="heart",KC.FEEDBACK="message_bubble_alert",KC.FEEDBACK_CAIRO="message_bubble_alert_cairo",KC.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",KC.FILL_ARROW_SOLID_UP_16="arrow_solid_up",KC.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
KC.FILTER="menu_filter",KC.FIRST_PAGE="chevron_first",KC.FLAG="flag",KC.FULL_HEART="heart",KC.GAME_CONSOLE_DPAD="game_console_dpad",KC.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",KC.GAMING_LOGO="gaming",KC.GAMING_LOGO_CAIRO="gaming_cairo",KC.GO_TO_PAGE="arrow_right",KC.GROUPS="people_group",KC.HAPPY="face_happy",KC.HEALTH_AND_SAFETY="shield_plus",KC.HELP="question_circle",KC.HELP_CAIRO="question_circle_cairo",KC.HELP_OUTLINE="question_circle",KC.HIDE="slash_circle_left",KC.IMAGE="image",
KC.INFINITY_ICON="infinity",KC.INFO="info_circle",KC.INFO_OUTLINE="info_circle",KC.INSERT_CHART="bar_graph_box_vertical",KC.INSERT_CHART_OUTLINED="bar_graph_box_vertical",KC.INSERT_PHOTO="image",KC.KEEP="pin",KC.KEEP_OFF="pin_off",KC.KEYBOARD="keyboard",KC.KEYBOARD_ARROW_DOWN="chevron_down",KC.KEYBOARD_ARROW_UP="chevron_up",KC.KIDS_BLOCK="slash_circle_left",KC.LANGUAGE="globe",KC.LAST_PAGE="chevron_last",KC.LAUNCH="open_new",KC.LEARNING="lightbulb",KC.LEARNING_CAIRO="lightbulb_cairo",KC.LIBRARY_ADD=
SdW("library_add"),KC.LIBRARY_OUTLINE="library",KC.LIBRARY_REMOVE=SdW(),KC.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",KC.LIKES_PLAYLIST="thumb_up",KC.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",KC.LIKE="thumb_up",KC.LIKE_SELECTED="thumb_up",KC.LIVE="radar_live",KC.LIVE_CAIRO="radar_live_cairo",KC.LIVE_UNLISTED="link",KC.LOCATION_ON="location_point",KC.LOCATION_PIN="location_point",KC.LOOP="arrow_repeat",KC.LOOP_ACTIVE="arrow_repeat",KC.LOOP_ONE="arrow_repeat_1",KC.LOOP_ONE_ACTIVE="arrow_repeat_1",KC.MEH=
"face_meh",KC.MEMBERS_ONLY_MODE_OFF="message_bubble_left",KC.MESSAGE="message_bubble_left",KC.MICROPHONE_ON="mic",KC.MIX="youtube_mix",KC.MONETIZATION_ON="dollar_sign_circle",KC.MONEY_FILL="dollar_sign_container",KC.MONEY_FILL_JPY="yen_sign_container",KC.MONEY_HEART="dollar_sign_heart",KC.MORE_HORIZ="overflow_horizontal",KC.MORE_VERT="overflow_vertical",KC.MUSIC="audio",KC.MUSIC_CAIRO="audio_cairo",KC.MUSIC_NOTE_SYMBOL="music",KC.MUSIC_SHUFFLE="arrow_shuffle",KC.MY_CHANNEL="person_circle",KC.MY_LOCATION=
"location_point",KC.NEWS_STORY="news",KC.NEXT="chevron_right",KC.NOTIFICATIONS="bell",KC.NOTIFICATIONS_ACTIVE="bell_on",KC.NOTIFICATIONS_CAIRO="bell_cairo",KC.NOTIFICATIONS_DONE_CHECKMARK="check",KC.NOTIFICATIONS_INBOX="bell",KC.NOTIFICATIONS_NONE="bell",KC.NOTIFICATIONS_OFF="bell_off",KC.NOT_INTERESTED="slash_circle_left",KC.OFFICIAL_ARTIST_BADGE="audio",KC.OFFLINE_CLOUD="cloud_off",KC.OFFLINE_DOWNLOAD="download",KC.OFFLINE_DOWNLOAD_CAIRO="download_cairo",KC.OFFLINE_PAUSE="pause",KC.OPEN_IN_NEW=
"open_new",KC.OUTLINE_ADJUST="adjust",KC.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",KC.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",KC.OUTLINE_BAG="bag",KC.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",KC.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",KC.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",KC.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",KC.PAID="dollar_sign",KC.PAUSE_OUTLINED="pause",KC.PAYMENT="credit_card",KC.PERSON_RADAR_FILLED="person_radar",KC.PHONE_DOWNLOAD="mobile_download",
KC.PLAYABLES_LOGO="tic_tac_toe",KC.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",KC.PLAYLISTS="list_play_arrow",KC.PLAYLISTS_CAIRO="list_play_arrow_cairo",KC.PLAYLIST_ADD=SdW("list_add"),KC.PLAYLIST_ADD_CHECK=SdW("list_check"),KC.PLAYLIST_PLAY="list_play_arrow",KC.PLAY_ALL="play_arrow",KC.PLAY_CIRCLE="play_arrow_circle",KC.PLAY_OUTLINED="play_arrow_circle",KC.PRIVACY_INFO="shield",KC.PRIVACY_PRIVATE="lock",KC.PRIVACY_PUBLIC="earth",KC.PRIVACY_UNLISTED="link",KC.PROMOTE="megaphone",KC.PURCHASES="price_tag",
KC.PURCHASE_SUPER_CHAT="super_chat",KC.PURCHASE_SUPER_STICKER="super_sticker",KC.QUESTION_ANSWER="message_bubble_question",KC.QUEUE_PLAY_LAST="list_queue_last",KC.QUEUE_PLAY_NEXT="list_play_arrow",KC.REMIX_FILLED="youtube_shorts_remix",KC.REMOVE="bar_circle",KC.REMOVE_CIRCLE="bar_circle",KC.REMOVE_CIRCLE_OUTLINE="bar_circle",KC.REMOVE_DONE="check_double_off",KC.REMOVE_FROM_HISTORY="bar_circle",KC.REMOVE_FROM_PLAYLIST="bar_circle",KC.REMOVE_MODERATOR="shield_off",KC.REPLAY="arrow_circle",KC.REPLAY_10=
"skip_back_10",KC.REPORT_PROBLEM="alert_triangle",KC.SAD="face_sad",KC.SAVE_PLAYLIST="bookmark",KC.SCHEDULE="clock",KC.SCHOOL="creator_academy",KC.SCREEN_FULLSCREEN="screen_full",KC.SEARCH_HISTORY="arrow_time",KC.SELL="price_tag",KC.SETTINGS="gear",KC.SETTINGS_CAIRO="gear_cairo",KC.SETTINGS_LIGHT="gear",KC.SETTINGS_MATERIAL="gear",KC.SHARE_ARROW="share",KC.SHIELD_WITH_AVATAR="person_shield",KC.SHOPPING_BAG="bag",KC.SHOPPING_BAG_CAIRO="bag_cairo",KC.SHOPPING_CART="cart",KC.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
KC.SHORTS_DISLIKE="youtube_shorts_thumb_down",KC.SHORTS_LIKE="youtube_shorts_thumb_up",KC.SHORTS_SHARE="youtube_shorts_share",KC.SHUFFLE="arrow_shuffle",KC.SLOW_MODE_OFF="message_bubble_left",KC.SOCIAL="people",KC.SORT="menu_sort",KC.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",KC.SPEED_1X="1x",KC.SPEED_1_POINT_2X="1_point_2x",KC.SPEED_1_POINT_5X="1_point_5x",KC.SPEED_1_POINT_8X="1_point_8x",KC.SPEED_2X="2x",KC.SPEED_POINT_2X="point_2x",KC.SPEED_POINT_8X="point_8x",KC.SPONSORSHIP_STAR=_.K("web_sponsorship_star_icon_killswitch")?
"memberships":"star_circle",KC.STAFF_PICK="spotlight",KC.START_DVR="add",KC.STAR_BORDER="star",KC.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",KC.STICKER_EMOTICON="face_happy",KC.STOP_DVR="stop",KC.SUBSCRIBE="youtube_logo_icon",KC.SUBSCRIBE_PLUS="add_cairo",KC.SUBSCRIPTION_MANAGER="gear",KC.SUPERVISOR_ACCOUNT="people",KC.SUPER_CHAT_FOR_GOOD="hands_heart",KC.SWAP_HORIZ="arrow_swap_horizontal",KC.SWITCH_ACCOUNTS="person_account",KC.TAB_ACCOUNT="person",KC.TAB_ACTIVITY="bell",KC.TAB_BOOKMARK="bookmark",
KC.TAB_EXPLORE="compass",KC.TAB_HOME="home",KC.TAB_HOME_CAIRO="home_cairo",KC.TAB_INBOX="mail",KC.TAB_LIKED="thumb_up",KC.TAB_MUSIC_PREMIUM="youtube_music",KC.TAB_SHORTS="youtube_shorts",KC.TAB_SHORTS_CAIRO="youtube_shorts_cairo",KC.TAB_SUBSCRIPTIONS="subscriptions",KC.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",KC.TAB_TRENDING="fire",KC.TIMER="stopwatch",KC.TRAILER="youtube_originals",KC.TRENDING="fire",KC.TRENDING_CAIRO="fire_cairo",KC.TRENDING_UP="rating_up",KC.TROPHY="trophy",KC.TROPHY_CELEBRATIONS=
"fireworks",KC.TUNE="adjust",KC.UNBLOCK_USER="bar_circle",KC.UNLIMITED="youtube_logo_icon",KC.UNPLUGGED_LIVE_GUIDE="radar_live",KC.UNPLUGGED_SPORTS="eye_off",KC.UPLOADS="library",KC.UP_ARROW="arrow_up",KC.VERTICAL_ALIGN_BOTTOM="download",KC.VERY_HAPPY="face_very_happy",KC.VERY_SAD="face_very_sad",KC.VIDEOGAME_ASSET="gaming",KC.VIDEOS="play_arrow_circle",KC.VIDEO_CALL="video_camera_add",KC.VIDEO_LIBRARY_WHITE="library",KC.VIDEO_YOUTUBE="youtube_logo_icon",KC.VIEW_LIST="list_view",KC.VIEW_LIST_CAIRO=
"list_view_cairo",KC.VISIBILITY="eye",KC.VISIBILITY_OFF="eye_off",KC.VOLUME_MUTE="volume_off",KC.VOLUME_UP="volume_on",KC.WALLPAPER="image",KC.WARNING="alert_triangle",KC.WATCH_HISTORY="arrow_time",KC.WATCH_HISTORY_CAIRO="arrow_time_cairo",KC.WATCH_LATER="clock",KC.WATCH_LATER_CAIRO="clock_cairo",KC.WATCH_RELATED_MIX="youtube_mix",KC.WHAT_TO_WATCH="home",KC.YOUTUBE_MUSIC_MONOCHROME="youtube_music",KC.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",KC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
KC.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",KC.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",KC.YT_OUTLINE_MUSIC_24="music",KC);var il={},Zqj=(il.ACCESS_TIME="clock",il.ACCOUNT_BOX="person_square",il.ACCOUNT_BOX_CAIRO="person_square",il.ACCOUNT_CIRCLE="person_circle",il.ACCOUNT_CIRCLE_CAIRO="person_circle",il.ACCOUNT_LINKED="account_link",il.ACCOUNT_UNLINKED="account_link",il.ADD_CIRCLE="add_circle",il.ADD_CIRCLE_OUTLINE="add_circle",il.ADD_FRIEND="person_child",il.ADD_MODERATOR="shield_add",il.ADD_TO_LIBRARY="bookmark",il.ADD_TO_PLAYLIST="add",il.ADD_TO_QUEUE_TAIL="queue",il.ADD_TO_REMOTE_QUEUE="playlist_audio",il.ADD_TO_WATCH_LATER=
"clock",il.ADD_VIDEO_LINK="film_strip_add",il.ADMIN_PANEL_SETTINGS="person_gear",il.ALERT_WARN_RED="alert_triangle",il.ALIGN_LEFT="text_align_left",il.ARROWS_ALERT="arrow_split_alert",il.ARROW_BACK="arrow_left",il.ARROW_CIRCLE="arrow_counterclockwise",il.ARROW_CIRCLE_PLAY="replay",il.ARROW_CIRCLE_RIGHT="arrow_clockwise",il.ARROW_DIAGONAL="arrow_up_left",il.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",il.ARROW_DROP_DOWN="triangle_down",il.ARROW_DROP_UP="triangle_up",il.ARROW_FORWARD="arrow_right",il.ARROW_PAUSE=
"pause_history",il.ARROW_UNDO="undo",il.ARTICLE="text_page",il.ARTICLE_ALERT="text_page_alert",il.ARTICLE_CHECK="text_page_check",il.ARTICLE_CLARIFY="text_page_info",il.AUDIOTRACK="audio",il.AUDIO_BADGE="audio_badge",il.AUDIO_SURROUND="surround_sound",il.AUTO_AWESOME="sparkles",il.AVATAR_ANONYMOUS="person_circle",il.AVATAR_LOGGED_OUT="person_circle",il.BACK="arrow_left",il.BAR_CHART="chart_bar",il.BAR_CIRCLE="minus_circle",il.BAR_HORIZONTAL="minus",il.BLOCK="circle_slash",il.BLOCK_USER="circle_slash",
il.BOOKMARK_BORDER="bookmark",il.BOX_OPEN_CHECK="quiz",il.BOX_PENCIL="square_pencil",il.BOX_STACK_3="square3_stack",il.BREAKING_NEWS_ALT_1="text_page_alert",il.BROADCAST="podcast",il.BROADCAST_CAIRO="podcast",il.BUG_REPORT="bug",il.CAMERA_ALT="camera",il.CAMPAIGN="megaphone",il.CANCEL="x_circle",il.CAPTIONS="closed_captions",il.CAST_ICON="chromecast",il.CAST_OUTLINE="chromecast",il.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",il.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",il.CHAT="text_bubble",
il.CHAT_BUBBLE="bubble",il.CHECK_BOX="check_square",il.CHECK_BOX_OUTLINE_BLANK="square",il.CHECK_CIRCLE_FILLED="check_circle",il.CHECK_CIRCLE_OUTLINE="check_circle",il.CHECK_CIRCLE_THICK="check_circle",il.CHECK_DOUBLE="check_done",il.CHECK_DOUBLE_OFF="check_done_slash",il.CHEVRON_LEFT="chevron_left",il.CHEVRON_RIGHT="chevron_right",il.CHEVRON_RIGHT_CAIRO="chevron_right",il.CIRCLES_OVERLAP="account_link",il.CLAPPERBOARD_CAIRO="clapperboard",il.CLARIFY="text_page_info",il.CLOCK_ARROWS="clock_split",
il.CLOCK_ARROWS_ALERT="clock_split_alert",il.CLOSED_CAPTION="closed_captions",il.CLOSED_CAPTION_SELECTED="closed_captions",il.CLOSE="x",il.CLOUD_UPLOAD="cloud_arrow_up",il.COLLAPSE="chevron_up",il.COLLAPSE_CAIRO="chevron_up",il.COLLECTION="square3d_stack",il.COLOR_LENS="paint_palette",il.COMMENT="text_bubble",il.CONSENT_SHIELD="person_shield",il.CONTENT_CUT="scissors",il.CONTENT_CUT_CAIRO="scissors",il.COURSE="graduation_cap",il.COURSE_CAIRO="graduation_cap",il.CREATION_LIVE="live",il.CREATION_POST=
"square_pencil",il.CREATION_UPLOAD="video",il.CREATION_UPLOAD_RED="upload",il.CREATOR_ACADEMY="graduation_cap",il.CREATOR_STUDIO="youtube_studio",il.DARK_THEME="theme",il.DELETE="trash_can",il.DELETE_SWEEP="trash_can",il.DESKTOP="laptop",il.DISLIKE="thumb_down",il.DISLIKE_SELECTED="thumb_down",il.DISMISSAL="x",il.DISMISS_QUEUE="playlist_x",il.DOGFOOD="pawprint",il.DOLLAR_SIGN="dollar_sign_circle",il.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",il.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",il.DOWN_ARROW=
"arrow_down",il.DO_NOT_DISTURB="circle_slash",il.DRAFT="document",il.DRAG_HANDLE="equal",il.EARTH="globe",il.EDIT="pencil",il.EMOJI="face_very_happy",il.EMOJI_FLAGS="flag",il.EMOJI_OBJECTS="lightbulb",il.EMOJI_PEOPLE="face_very_happy",il.EMOJI_RECENT="clock",il.EMPTY_HEART="heart",il.EMPTY_LIKE="thumb_up",il.ERROR_BLACK="alert_circle",il.ERROR_OUTLINE="alert_circle",il.ERROR_WHITE="alert_circle",il.EXIT_APP="arrow_in",il.EXIT_TO_APP="arrow_in",il.EXPAND="chevron_down",il.EXPAND_ALL="chevron_expand",
il.EXPAND_CAIRO="chevron_down",il.EXPAND_LESS="chevron_up",il.EXPAND_MORE="chevron_down",il.EXPLORE="compass",il.EXPLORE_DESTINATION="compass",il.EXTERNAL_LINK="arrow_up_right",il.EYE_OFF="eye_slash",il.FAB_UPLOAD="upload",il.FACE_HAPPY_OUTLINE="face_happy",il.FACE_MEH="face_neutral",il.FACT_CHECK="text_page_check",il.FASHION_LOGO="fashion",il.FASHION_LOGO_CAIRO="fashion",il.FAVORITE="thumb_up",il.FEEDBACK="alert_bubble",il.FEEDBACK_CAIRO="alert_bubble",il.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
il.FILL_ARROW_SOLID_UP_16="arrow_solid_up",il.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",il.FLAG_CAIRO="flag",il.FLASH_OFF="flash_slash",il.FLASH_ON="flash",il.FULL_HEART="heart",il.GAMING_LOGO="gaming",il.GAMING_LOGO_CAIRO="gaming",il.GO_TO_PAGE="arrow_right",il.GROUPS="person3",il.HAND_SWIPE_LEFT="gesture_swipe_left",il.HAND_SWIPE_RIGHT="gesture_swipe_right",il.HAPPY="face_happy",il.HEALTH_AND_SAFETY="shield_health",il.HEART_BOX="heart_cube",il.HELP="help_circle",il.HELP_CAIRO="help_circle",
il.HELP_OUTLINE="help_circle",il.HIDE="circle_slash",il.INCOGNITO_CAIRO="incognito",il.INFINITY_ICON="infinity",il.INFO="info_circle",il.INFO_OUTLINE="info_circle",il.INSERT_CHART="chart_bar_square",il.INSERT_CHART_OUTLINED="chart_bar_square",il.INSERT_PHOTO="image",il.KEEP="pin",il.KEEP_OFF="pin_slash",il.KEYBOARD="keyboard",il.KEYBOARD_ARROW_DOWN="chevron_down",il.KEYBOARD_ARROW_UP="chevron_up",il.KIDS_BLOCK="circle_slash",il.LANGUAGE="globe",il.LAUNCH="arrow_up_right",il.LEARNING="lightbulb",il.LEARNING_CAIRO=
"lightbulb",il.LIBRARY_ADD="bookmark",il.LIBRARY_IMAGE="image_stack",il.LIBRARY_MUSIC="audio_square_stack",il.LIBRARY_OUTLINE="play_square_stack",il.LIBRARY_REMOVE="bookmark",il.LIBRARY_SAVED="check_square_stack",il.LIKES_PLAYLIST="thumb_up",il.LIKES_PLAYLIST_CAIRO="thumb_up",il.LIKE="thumb_up",il.LIKE_SELECTED="thumb_up",il.LIST_QUEUE="queue",il.LIVE_CAIRO="live",il.LIVE_UNLISTED="link",il.LOCATION_ON="location_pin",il.LOCATION_PIN="location_pin",il.LOCATION_POINT="location_pin",il.LOOP="repeat",
il.LOOP_ACTIVE="repeat",il.LOOP_ONE="repeat1",il.LOOP_ONE_ACTIVE="repeat1",il.MEET="google_meet",il.MEH="face_neutral",il.MEMBERSHIPS="memberships",il.MEMBERS_ONLY_MODE_OFF="text_bubble",il.MENU_FILTER="filter",il.MESSAGE="text_bubble",il.MESSAGE_BUBBLE_GEAR="bubble_gear",il.MESSAGE_BUBBLE_LEFT="text_bubble",il.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",il.MESSAGE_BUBBLE_OVERLAP="bubble_stack",il.MESSAGE_BUBBLE_QUESTION="help_bubble",il.MICROPHONE_ON="mic",il.MONETIZATION_ON="dollar_sign_circle",
il.MONEY_FILL="dollar_sign_rectangle",il.MONEY_FILL_JPY="yen_sign_rectangle",il.MONEY_HAND="dollar_sign_circle_hand",il.MONEY_HEART="dollar_sign_heart",il.MOON_Z="sleep_timer",il.MORE_HORIZ="overflow_horizontal",il.MORE_VERT="overflow_vertical",il.MUSIC="audio",il.MUSIC_CAIRO="audio",il.MUSIC_EXPLICIT_BADGE="explicit",il.MUSIC_NEW_RELEASE="audio_badge",il.MUSIC_NOTE_SYMBOL="audio",il.MUSIC_SCISSORS="audio_scissors",il.MUSIC_SHUFFLE="shuffle",il.MY_CHANNEL="person_circle",il.MY_LOCATION="location_pin",
il.MY_VIDEOS="video",il.MY_VIDEOS_CAIRO="video",il.NEWS_CAIRO="news",il.NEWS_STORY="news",il.NEXT="chevron_right",il.NOTE_ADD="bubble_pencil",il.NOTIFICATIONS="bell",il.NOTIFICATIONS_ACTIVE="bell_waves",il.NOTIFICATIONS_CAIRO="bell",il.NOTIFICATIONS_DONE_CHECKMARK="check",il.NOTIFICATIONS_INBOX="bell",il.NOTIFICATIONS_NONE="bell",il.NOTIFICATIONS_OFF="bell_slash",il.NOT_INTERESTED="circle_slash",il.OFFICIAL_ARTIST_BADGE="audio",il.OFFLINE_CLOUD="cloud_slash",il.OFFLINE_DOWNLOAD="download",il.OFFLINE_DOWNLOAD_CAIRO=
"download",il.OFFLINE_PAUSE="pause",il.OPEN_IN_NEW="arrow_up_right",il.OUTLINE_ADJUST="adjust",il.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",il.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",il.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",il.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",il.OUTLINE_BAG="bag",il.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",il.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",il.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",il.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",il.PAID=
"dollar_sign_circle",il.PAUSE_OUTLINED="pause",il.PAYMENT="credit_card",il.PEOPLE="person_child",il.PEOPLE_2="person2_rectangle",il.PEOPLE_GROUP="person3",il.PEOPLE_NOTE="bubble_asterisk",il.PERSON_2="person2",il.PERSON_ACCOUNT="person_square_stack",il.PERSON_MINUS="person_x",il.PERSON_MUSIC="person_audio",il.PERSON_RADAR="person_waves",il.PERSON_RADAR_FILLED="person_waves",il.PERSON_SETTING="person_gear",il.PHONE="phone",il.PHONE_DOWNLOAD="mobile_arrow_down",il.PICTURE_IN_PICTURE="picture_in_picture",
il.PLAYABLES_LOGO="playables",il.PLAYABLES_LOGO_CAIRO="playables",il.PLAYLISTS="playlist",il.PLAYLISTS_CAIRO="playlist",il.PLAYLIST_ADD_CHECK="bookmark",il.PLAY_ALL="play",il.PLAY_ARROW="play",il.PLAY_ARROW_CIRCLE="play_circle",il.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",il.PLAY_CIRCLE="play_circle",il.PLAY_OUTLINED="play_circle",il.PODCAST_ADD="podcast_add",il.PODCAST_CHECK="podcast_check",il.PRIVACY_INFO="shield_x",il.PRIVACY_PRIVATE="lock",il.PRIVACY_PUBLIC="globe",il.PRIVACY_UNLISTED=
"link",il.PROMOTE="megaphone",il.PURCHASES="price_tag",il.PURCHASE_SUPER_CHAT="super_chat",il.PURCHASE_SUPER_STICKER="super_sticker",il.QUESTION_ANSWER="help_bubble",il.QUESTION_CIRCLE="help_circle",il.QUEUE_PLAY_LAST="queue_last",il.QUEUE_PLAY_NEXT="playlist",il.QUOTATION_MARK="quote",il.RADAR_LIVE="live",il.REMOVE="minus_circle",il.REMOVE_CIRCLE="minus_circle",il.REMOVE_CIRCLE_OUTLINE="minus_circle",il.REMOVE_FROM_HISTORY="minus_circle",il.REMOVE_FROM_PLAYLIST="minus_circle",il.REMOVE_MODERATOR=
"shield_slash",il.REPLAY="arrow_counterclockwise",il.REPLAY_10="skip10_back",il.REPLAY_ARROW="replay",il.REPORT_PROBLEM="alert_triangle",il.RSS_OFF="rss_slash",il.SAD="face_sad",il.SAVE_PLAYLIST="bookmark",il.SCHEDULE="clock",il.SCHOOL="graduation_cap",il.SCREEN_DEFAULT="player_default",il.SCREEN_FULLSCREEN="player_full_enter",il.SCREEN_LIGHT="ambient_mode",il.SCREEN_ROTATION="rotate_portrait",il.SCREEN_SWITCH="player_switch",il.SCREEN_THEATRE="player_theater",il.SEARCH_CAIRO="search",il.SEARCH_HISTORY=
"history",il.SELL="price_tag",il.SETTINGS="gear",il.SETTINGS_CAIRO="gear",il.SETTINGS_LIGHT="gear",il.SETTINGS_MATERIAL="gear",il.SETTINGS_REMOTE="remote_waves",il.SHARE="share",il.SHARE_ARROW="share",il.SHARE_CAIRO="share",il.SHIELD="shield_x",il.SHIELD_OFF="shield_slash",il.SHIELD_WITH_AVATAR="person_shield",il.SHOPPING_BAG="bag",il.SHOPPING_BAG_CAIRO="bag",il.SHOPPING_CART="cart",il.SHORTS_COMMENT="text_bubble",il.SHORTS_DISLIKE="thumb_down",il.SHORTS_LIKE="thumb_up",il.SHORTS_SHARE="share",il.SKIP_FORWARD_30=
"skip30_forward",il.SLASH_CIRCLE_RIGHT="circle_slash",il.SLOW_MODE="bubble_slow",il.SLOW_MODE_OFF="text_bubble",il.SOCIAL="person_child",il.SPARKLE="sparkles",il.SPARK_IMAGE="image_spark",il.SPARK_RADAR="spark_waves",il.SPARK_VIDEO="video_spark",il.SPEAKER_GROUP="speaker_stack",il.SPEAKER_OFF="speaker_slash",il.SPEED_1X="n1x",il.SPEED_1_POINT_2X="n1point2x",il.SPEED_1_POINT_5X="n1point5x",il.SPEED_1_POINT_8X="n1point8x",il.SPEED_2X="n2x",il.SPONSORSHIP_STAR="memberships",il.SPORTS="basketball",il.SPOTLIGHT=
"spotlight",il.STAFF_PICK="spotlight",il.START_DVR="add",il.STAR_BORDER="star",il.STAR_CIRCLE_RIBBON="memberships_gift",il.STAR_HALF="star_half_filled",il.STAR_SHOOTING="hype",il.STICKER="sticker",il.STICKER_EMOTICON="face_happy",il.STOP_DVR="stop",il.SUBSCRIBE="youtube",il.SUBSCRIBE_PLUS="add",il.SUBSCRIPTION_MANAGER="gear",il.SUPERSTAR="super_star",il.SUPERVISOR_ACCOUNT="person_child",il.SUPER_CHAT_FOR_GOOD="hands_heart",il.SWAP_HORIZ="arrow_swap_horizontal",il.SWITCH_ACCOUNTS="person_square_stack",
il.TAB_ACCOUNT="person",il.TAB_ACTIVITY="bell",il.TAB_BOOKMARK="bookmark",il.TAB_EXPLORE="compass",il.TAB_HOME="home",il.TAB_HOME_CAIRO="home",il.TAB_INBOX="mail",il.TAB_LIKED="thumb_up",il.TAB_MUSIC_PREMIUM="youtube_music",il.TAB_SHORTS="shorts",il.TAB_SHORTS_CAIRO="shorts",il.TAB_SUBSCRIPTIONS="subscriptions",il.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",il.TAB_TRENDING="trending",il.TARGET="target",il.TARGET_ADD="target_add",il.TEMPLATE_ADD="template_add",il.TEXT="font",il.TIMER="stopwatch",il.TRENDING_CAIRO=
"trending",il.TRENDING_UP="arrow_trend_up",il.TROPHY_CAIRO="trophy",il.TROPHY_CELEBRATIONS="fireworks",il.TROPHY_STAR="star_trophy",il.TUNE="adjust",il.TV_OFF="tv_slash",il.UNBLOCK_USER="minus_circle",il.UNFAVORITE="thumb_down",il.UNLIMITED="youtube",il.UNPLUGGED_LIVE_GUIDE="live",il.UNPLUGGED_SPORTS="eye_slash",il.UPLOADS="play_square_stack",il.UP_ARROW="arrow_up",il.VERTICAL_ALIGN_BOTTOM="chevron_down_end",il.VERTICAL_ALIGN_TOP="chevron_up_end",il.VERY_HAPPY="face_very_happy",il.VERY_SAD="face_very_sad",
il.VIDEOS="play_circle",il.VIDEO_CALL="video_camera_add",il.VIDEO_LIBRARY_WHITE="play_square_stack",il.VIDEO_QUALITY_4K="n4k",il.VIDEO_QUALITY_8K="n8k",il.VIDEO_YOUTUBE="youtube",il.VIEW_LIST_CAIRO="view_list",il.VIEW_MODULE="view_column3_row2",il.VISIBILITY="eye",il.VISIBILITY_OFF="eye_slash",il.VOLUME_DOWN="volume_min",il.VOLUME_MUTE="volume_mute",il.VOLUME_OFF="volume_mute",il.VOLUME_STABLE="stable_volume",il.VOLUME_UP="volume_max",il.WALLPAPER="image",il.WARNING="alert_triangle",il.WATCH_HISTORY=
"history",il.WATCH_HISTORY_CAIRO="history",il.WATCH_LATER="clock",il.WATCH_LATER_CAIRO="clock",il.WATCH_RELATED_MIX="mix",il.WHAT_TO_WATCH="home",il.YOUTUBE_LINKED_TV="tv_mobile",il.YOUTUBE_MUSIC_MONOCHROME="youtube_music",il.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",il.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",il.YOUTUBE_SHORTS_ARROW_UP="arrow_up",il.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",il.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",il.YOUTUBE_SHORTS_OUTLINE_24="shorts",
il);var yLK={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,7,24],[1,7,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
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,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
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,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],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,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,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,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,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,13,24],[1,13,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,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,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,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,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,
1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,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:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var YHx={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,7,24],[1,7,24],[1,7,48]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],
alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,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,7,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,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,
48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,
1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,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,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],
cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,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,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],
face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,
24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,
1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,
24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],
hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],
image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,
1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],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,4,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,2,24],[1,
2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],
n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],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,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],pause:[[0,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,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,2,24],[1,2,24],[1,2,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,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,3,24],[0,3,36],[0,3,48],[1,3,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,3,12],[1,3,24],[1,3,48]],playlist_add:[[1,1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,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,1,24],[1,1,24]],repeat1:[[0,1,
24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24],[1,13,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,11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],
skip10_back:[[1,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,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,
2,24],[1,2,24]],subscriptions:[[0,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]],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,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,
5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],
volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,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,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,
24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var DcK={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"},J0=function(A){this.iconUrlProvider=A};
J0.prototype.resolveIcon=function(A,Q){var b=DcK[A.iconName.toUpperCase()];b&&(A.iconName=b);var f=A.iconName;f=f.replace(/-/g,"_");A=Object.assign({},A,{iconName:this.mapIconTypeToStandardName(f,!!b)||f.toLowerCase()});if(_.K("enable_web_delhi_icons")||b){var a;return Poi(YHx,A,((a=this.iconUrlProvider)==null?void 0:a.getYtStandardUrl)||Lsi,Q)}var T;return Poi(yLK,A,((T=this.iconUrlProvider)==null?void 0:T.getYtStandardUrl)||UhY,Q)};
J0.prototype.mapIconTypeToStandardName=function(A,Q){return _.K("enable_web_delhi_icons")||Q?Zqj[A.toUpperCase()]:uO1[A.toUpperCase()]};
J0[aW]=[_.bu(cLx)];var $cY=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),NcN=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),sVM=function(A){this.urlProvider=this.iconUrlProvider=A};
_.O(sVM,J0);
sVM.prototype.resolveIcon=function(A,Q){A.iconName==="youtube_logo"&&(A.iconName="yt-logo-updated");if(A.iconName==="youtube_premium_logo"||A.iconName==="youtube_red_logo")A.iconName="yt-logo-red-updated";var b=Object.assign({},A);A.iconName==="menu"&&(_.K("enable_web_delhi_icons")||(b.iconName="bars_3"),b.iconStyle="youtube_outline");A.iconSetName==="socialNetworksRound"&&(A.iconName==="mail"&&(b.iconName="email"),A.iconName==="embed"&&(b.iconSize=60));A.iconName==="more"&&(b.iconName="overflow_horizontal");
A.iconName==="fullscreen"&&(b.iconName="screen_full");A.iconName==="premium_standalone"&&(b.iconName="premium_standalone_cairo");_.K("enable_connect_icon_update_web")&&A.iconName==="account_linked"&&(b.iconName="circles_overlap_check",b.iconStyle="youtube_fill");_.K("enable_connect_icon_update_web")&&A.iconName==="account_unlinked"&&(b.iconName="circles_overlap",b.iconStyle="youtube_outline");$cY.has(A.iconName)&&(b.iconStyle="youtube_fill");_.K("enable_web_delhi_icons")&&(A.iconName==="playlist_add"&&
(b.iconName="bookmark"),A.iconName==="offline_pin"&&(b.iconName="arrow_down_circle",b.iconStyle="youtube_fill"),NcN.has(A.iconName)&&(b.iconName+="_updated"));A=Object.assign({},b,{iconName:(J0.prototype.mapIconTypeToStandardName.call(this,b.iconName)||b.iconName).toLowerCase()});var f;return(A=Poi(EPy,A,((f=this.urlProvider)==null?void 0:f.getUrl)||MDY,Q))?A:J0.prototype.resolveIcon.call(this,b,Q)};
sVM[aW]=[_.bu(cLx)];_.mc9=1;var Vl=function(A,Q){this.JSC$17091_commandHandler=A;this.innertubeTransportService=Q};
_.O(Vl,Yu);Vl.prototype.resolveCommand=function(A,Q){var b=this,f,a,T;return _.B(function(G){return(f=_.V(A,nEL))?G.return(A4O(b,f,(a=Q)==null?void 0:(T=a.form)==null?void 0:T.element)):G.return()})};
var A4O=function(A,Q,b){Q={profileCardContext:Q.profileCardContext,profileOwnerExternalChannelId:Q.profileOwnerExternalChannelId};var f=_.bB(z0x);return _.wl(A.innertubeTransportService,Q,f).then(function(a){if(!a)throw new _.IO("GetProfileCard failed");if(a=a.popupCommand){A.JSC$17091_commandHandler.resolveCommand(a,{form:{element:b}});_.Mk(_.IP(),66557);a=a==null?void 0:a.clickTrackingParams;var T=_.hx();a&&T&&_.IP().graftServerVe(a,T)}})};
Vl[aW]=[_.de,_.vY];var OT=function(){};
_.O(OT,Yu);OT.prototype.resolveCommand=function(A){var Q,b;return _.B(function(f){Q=_.V(A,rd9);if(!Q)return f.return();b=Number(Q.enableDelayedPacfLoggingTvMs);if(isNaN(b)){var a=J_();UaL(a,Q,0)}else UaL(J_(),Q,b);_.Oi(f)})};_.nC=function(){};
_.O(_.nC,Yu);
_.nC.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U;return _.B(function(L){f=_.V(A,jBv);T=(a=Q.form)==null?void 0:a.element;p=(G=T)==null?void 0:G.closest("ytd-enforcement-message-view-model");if(!f||!p)return L.return();b.allowAdsAction||(P=f.fundingChoiceInstructionPageUrl,b.allowAdsAction=new Q8Y(window,_.Rx(P)));var M=b.allowAdsAction;M.wallElement=p;M.allowAdsPopup.style.setProperty("display","flex","important");var l=M.scrollManager;l.originalBodyOverflow=l.JSC$9941_domHelper.JSC$9268_document_.body.style.overflow;l.JSC$9941_domHelper.JSC$9268_document_.body.style.overflow=
"hidden";M.wallElement.style.setProperty("display","none","important");X_j(M.accessibilityManager,M.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((U=b.allowAdsAction.allowAdsPopup)&&U instanceof HTMLElement)for(M=_.F(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),l=M.next();!l.done;l=M.next()){var J=_.F(l.value);l=J.next().value;J=J.next().value;U.style.setProperty(l,J)}_.Oi(L)})};
_.nC.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var kD=function(){};
_.O(kD,Yu);kD.prototype.resolveCommand=function(A){var Q;return _.B(function(b){Q=_.V(A,QRN);if(!Q)return b.return();_.oaF(A);_.Oi(b)})};var Iq=function(A){this.JSC$17106_commandHandler=A};
_.O(Iq,Yu);
Iq.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U;return _.B(function(L){if(L.nextAddress==1){b=_.V(A,tI$);if((f=b)==null||!f.text||!navigator.clipboard)return L.return();_.ML(L,2);return L.yield(navigator.clipboard.writeText(b.text),4)}if(L.nextAddress!=2){if(!b.successActions||b.successActions.length===0)return L.return();a=_.F(b.successActions);for(T=a.next();!T.done;T=a.next())G=T.value,Q.JSC$17106_commandHandler.resolveCommand(G);return _.Z1(L,0)}_.Vw(L);if(!b.failureActions||b.failureActions.length===
0)return L.return();p=_.F(b.failureActions);for(P=p.next();!P.done;P=p.next())U=P.value,Q.JSC$17106_commandHandler.resolveCommand(U);_.Oi(L)})};
Iq[aW]=[_.de];var Hc=function(A){this.JSC$17110_commandHandler=A};
_.O(Hc,Yu);
Hc.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l;return _.B(function(J){switch(J.nextAddress){case 1:f=_.V(A,Gmp);if(!f)return J.return();_.ML(J,2);if(!f.imageBytes&&!f.imageUrl)throw Error("wi");if(!f.imageUrl){if(f.imageBytes){T=f.imageBytes;G=T.replace(/-/g,"+").replace(/_/g,"/");var n=iyf(G);a=_.vh(n)}J.jumpTo(4);break}return J.yield(fetch(f.imageUrl),5);case 5:return p=J.yieldResult,J.yield(p.blob(),6);case 6:P=J.yieldResult,a=_.vh(P);case 4:M=(U=Q)==null?void 0:(L=U.form)==
null?void 0:L.element;l=document.createElement("a");_.ch(l,a);M.appendChild(l);l.download="";l.click();M.removeChild(l);URL.revokeObjectURL(_.r$(a));f.successCommand&&b.JSC$17110_commandHandler.resolveCommand(f.successCommand);_.Z1(J,0);break;case 2:_.Vw(J),f.errorCommand&&b.JSC$17110_commandHandler.resolveCommand(f.errorCommand),_.Oi(J)}})};
Hc[aW]=[_.de];var CC=function(A){this.store=A};
_.O(CC,Yu);CC.prototype.resolveCommand=function(A){var Q=this,b,f,a;return _.B(function(T){f=(b=_.V(A,_.EHL))==null?void 0:b.entityBatchUpdate;if(!f)return T.jumpTo(0);a=Object.assign({},f,{mutations:[].concat(_.ri(f.mutations||[]))});return T.yield(_.V4(a,Q.store),0)})};var Q9n=function(A){this.JSC$17117_commandHandler=A;this.feedbackDialogMap=new Map};
Q9n.prototype.openDialog=function(A,Q){(A=this.feedbackDialogMap.get(A))&&this.JSC$17117_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:A}},Q)};
Q9n[aW]=[_.de];var qS=new _.TS("FEEDBACK_CONTROLLER_TOKEN");var oq=new _.TS("APP_STORE_TOKEN");var t0=function(A,Q){this.store=A;this.controller=Q};
_.O(t0,Yu);t0.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w;return _.B(function(u){if(u.nextAddress==1){f=_.V(A,_.WZ);if(T=(a=f)==null?void 0:a.contentId)for(p=_.F(((G=f)==null?void 0:G.actions)||[]),P=p.next();!P.done;P=p.next())U=P.value,bFx(b,U,T);l=(L=Q)==null?void 0:(M=L.form)==null?void 0:M.element;return u.yield(_.X5(l,[A,{impression:(J=Q)==null?void 0:J.disableClickTracking}]).catch(function(){}),2)}n=u.yieldResult;
((t=n)==null?0:(g=t.data)==null?0:(e=g.feedbackResponses)==null?0:e.length)&&(D=(x=n.data.feedbackResponses[0])==null?void 0:x.followUpDialog)&&T&&(w=b.controller)!=null&&w.feedbackDialogMap.set(T,D);_.Oi(u)})};
var bFx=function(A,Q,b){var f=_.V(Q,_.LD);if(f){f=_.F(f.commands||[]);for(var a=f.next();!a.done;a=f.next())bFx(A,a.value,b)}_.V(Q,_.q8)&&A.store.dispatch(_.HL("commandEntity",P2F(b),{key:b,command:Q}));_.V(Q,oEv)&&A.store.dispatch(_.HL("commandEntity",P2F(b),{key:b,command:Q}))};
t0[aW]=[oq,qS];var rf=function(A){this.controller=A};
_.O(rf,Yu);rf.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G;return _.B(function(p){f=_.V(A,_.uv);T=(a=f)==null?void 0:a.targetId;if(((G=f)==null?void 0:G.signal)!=="TELL_US_WHY"||!T)return p.return();b.controller.openDialog(T,Q);_.Oi(p)})};
rf[aW]=[qS];var jH=function(A){this.store=A};
_.O(jH,Yu);jH.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U;return _.B(function(L){f=_.V(A,Qef);T=(a=f)==null?void 0:a.contentId;P=(G=Q)==null?void 0:(p=G.form)==null?void 0:p.element;U=_.X5(P,[A]);T&&b.undo(T);return L.yield(U,0)})};
jH.prototype.undo=function(A){this.store.dispatch(_.HL("commandEntity",P2F(A),{key:A,command:void 0}))};
jH[aW]=[oq];var Rq=function(A){this.JSC$17132_commandHandler=A};
_.O(Rq,Yu);Rq.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U;return _.B(function(L){b=_.V(A,bUW);f=b.flowStateKey;a=b.validationFailureCommand;T=b.submitValidFormCommand;G=Tt4(_.b6,[f||""]);p=_.V(G,aQj);((P=p)==null?0:P.isValid)&&T&&Q.JSC$17132_commandHandler.resolveCommand(T);((U=p)==null?0:U.isValid)||!a||Q.JSC$17132_commandHandler.resolveCommand(a);_.Oi(L)})};
Rq[aW]=[_.de];var gf=function(A){this.innertubeTransportService=A};
_.O(gf,Yu);gf.prototype.resolveCommand=function(A,Q){var b=this,f;return _.B(function(a){return a.yield(_.Ay(b.innertubeTransportService,A,(f=Q)==null?void 0:f.form).then(function(T){var G,p;Q==null||(G=Q.commandController)==null||(p=G.onSuccess)==null||p.call(G,A,T)},function(T){var G,p;
Q==null||(G=Q.commandController)==null||(p=G.onServerError)==null||p.call(G,A,T)}),0)})};
gf[aW]=[_.vY];var eH=function(){};
_.O(eH,Yu);eH.prototype.resolveCommand=function(A){var Q,b,f,a;return _.B(function(T){if(Q=_.V(A,_.i3M)){if(b=Q.gtmId)f=_.vG("GL",""),_.eN(b,f);(a=Q.gtmData)&&_.hX(a)}_.Oi(T)})};var h0=function(A,Q){this.innertubeTransportService=A;this.JSC$17143_actionRouter=Q};
_.O(h0,Yu);h0.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){b=_.V(A,A1K);if(!b)return a.return();f=b.command;if(!f)return a.return();Q.JSC$17143_actionRouter.triggerAction("yt-insert-rich-section-action",b);return a.yield(_.Ay(Q.innertubeTransportService,f,{disableCache:!0}),0)})};
h0[aW]=[_.vY,Tm];VD6.bind(null,Dn);var fUn=VD6.bind(null,t8L);nFJ.bind(null,Dn);var aU7=nFJ.bind(null,t8L);IIX.bind(null,Dn);var TWq=IIX.bind(null,t8L);var Wc=function(){};
_.O(Wc,Yu);
Wc.prototype.resolveCommand=function(A){var Q,b,f,a,T,G,p,P,U,L;return _.B(function(M){Q=_.V(A,vpp);if(!Q)return M.return();f=((b=Q.operations)==null?void 0:b.operations)||[];a=_.F(f);for(T=a.next();!T.done;T=a.next())if(G=T.value,G.insertItemSectionContent){var l=G.insertItemSectionContent,J=l.contents||[];l.insertByPositionInSection?fUn(l.insertByPositionInSection.sectionTargetId,J,l.insertByPositionInSection.position):l.insertByRelativePositionInSection&&l.insertByRelativePositionInSection.sectionTargetId&&l.insertByRelativePositionInSection.itemTargetId&&
aU7(l.insertByRelativePositionInSection.sectionTargetId,l.insertByRelativePositionInSection.itemTargetId,J,l.insertByRelativePositionInSection.relativePosition)}else G.replaceSection?(l=G.replaceSection,J={},l.replaceByTargetId?J=l.replaceByTargetId:l.replaceByGroupId&&(J={targetId:l.replaceByGroupId.groupId,newContent:l.replaceByGroupId.newContent,undoKey:""}),J.newContent&&Rcv(J.targetId,{continuationItems:[J.newContent]})):G.removeItem?(l=G.removeItem,l.removeByTargetId&&l.sectionTargetId&&TWq(l.sectionTargetId,
l.removeByTargetId.targetIds||[])):G.removeSection&&(G.removeSection.removeByTargetId?(p=void 0,dfq(((p=G.removeSection)==null?void 0:p.removeByTargetId.targetIds)||[])):G.removeSection.removeByGroupId&&(P=void 0,dfq(((P=G.removeSection)==null?void 0:P.removeByGroupId.groupIds)||[])));L=((U=Q.operations)==null?void 0:U.scrollConfig)||{};FJN(L);_.Oi(M)})};
var dfq=function(A){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())Rcv(Q.value,{continuationItems:[]})},FJN=function(A){if(A.scrollToItem){var Q=A.scrollToItem.item||{},b=Q.itemTargetId;
Q=Q.sectionTargetId;if(b&&Q){var f=document.querySelector("[data-target-id="+Q+"]"),a=f==null?void 0:f.querySelector("[data-target-id="+b+"]");f&&a&&setTimeout(function(){var T=a.offsetTop-f.offsetTop,G;if(((G=A.scrollToItem)==null?void 0:G.scrollPosition)==="SCROLL_POSITION_CENTER")T-=f.offsetHeight/2,T+=a.offsetHeight/2;else{var p;((p=A.scrollToItem)==null?void 0:p.scrollPosition)==="SCROLL_POSITION_END"&&(T-=f.offsetHeight,T+=a.offsetHeight)}f.scroll({top:T,behavior:"smooth"})},100)}}};var vc=new _.TS("CLIENT_NAME_TOKEN");var GXF=new _.TS("DEFAULT_STORE_EXPIRATION_TOKEN");var UKy=new _.TS("CLIENT_LOCATION_SERVICE_TOKEN");var ET=function(A,Q,b){this.clientName=A||_.vG("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=Q||_.eL.getInstance();this.JSC$17171_commandHandler=b||_.J8.instance};
_.O(ET,Yu);ET.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){f=(b=_.V(A,Y1W))==null?void 0:b.onComplete;Q.clientLocationService.clearLocationPlayabilityToken(Q.clientName);f&&Q.JSC$17171_commandHandler.resolveCommand(f);_.Oi(a)})};
ET[aW]=[vc,UKy,_.de];var xD=function(A){this.innertubeTransportService=A};
_.O(xD,Yu);xD.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G;return _.B(function(p){T=(f=Q)==null?void 0:(a=f.form)==null?void 0:a.element;return p.yield(_.Ay(b.innertubeTransportService,A,(G=Q)==null?void 0:G.form).then(function(P){cBf(T,new CustomEvent("yt-service-request-completed"),{data:P},_.vG("openPopupConfig"))}),0)})};
xD[aW]=[_.vY];var cc=function(){};
_.O(cc,Yu);cc.prototype.resolveCommand=function(A){var Q,b;return _.B(function(f){Q=_.V(A,GSL);b=document.querySelector("mini-app-container-view-model");if(!Q||!b)return f.return();Q.isPlaying?b.dispatchEvent(new Event("play")):b.dispatchEvent(new Event("pause"));_.Oi(f)})};var zK=function(){};
_.O(zK,Yu);zK.prototype.resolveCommand=function(A){var Q,b,f,a,T,G,p;return _.B(function(P){Q=_.V(A,Snp);if((b=Q)==null||!b.paramKeys)return P.return();f=Q.paramKeys;a=_.co(window.location.href);T=_.F(f);for(G=T.next();!G.done;G=T.next())p=G.value,a.JSC$9973_queryData_.remove(p);window.history.replaceState(window.history.state,document.title,a.toString());_.Oi(P)})};var BWx=function(){this.dropdownMap=new Map};_.peF=new _.TS("DROPDOWN_CONTROLLER_TOKEN");var wf=function(A){this.controller=A};
_.O(wf,Yu);wf.prototype.resolveCommand=function(A){var Q=this,b,f,a,T;return _.B(function(G){b=_.V(A,yXN);if(!b)return G.return();f=b;a=f.dropdownId;T=f.selectedOptionIndex;if(a===void 0||T===void 0)return G.return();var p=Q.controller.dropdownMap.get(a);p&&p(T);_.Oi(G)})};
wf[aW]=[_.peF];var ul=function(A){this.controller=A};
_.O(ul,Yu);ul.prototype.resolveCommand=function(A){var Q=this,b;return _.B(function(f){return(b=_.V(A,dFp))?f.yield(Q.controller.closeDialog(),0):f.return()})};
ul[aW]=[_.RS];var ZM=function(A){this.controller=A};
_.O(ZM,Yu);ZM.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){b=_.V(A,zkW);if(!b)return a.return();var T,G=b.panelIdentifier||((T=b.identifier)==null?void 0:T.tag);if(!G)throw Error("xi");return(f=G)?a.yield(Q.controller.hidePanel(f),0):a.jumpTo(0)})};
ZM[aW]=[_.r8];var yl=function(A,Q){this.innertubeTransportService=A;this.controller=Q};
_.O(yl,Yu);yl.prototype.resolveCommand=function(A){var Q=this,b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return b=_.V(A,wTY),(f=b)!=null&&f.panelId?G.yield(Q.controller.getReloadContinuation(b.panelId),2):G.return();if(G.nextAddress!=3)return(a=G.yieldResult)?G.yield(_.Ay(Q.innertubeTransportService,A,{continuation:a}),3):G.return();T=G.yieldResult;return G.yield(Q.controller.updatePanel(b.panelId,T.content,!1),0)})};
yl[aW]=[_.vY,_.r8];var YD=function(A,Q,b){this.innertubeTransportService=A;this.JSC$17207_screenManager=Q;this.JSC$17207_commandHandler=b};
_.O(YD,Yu);
YD.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p;return _.B(function(P){if(P.nextAddress==1){b=_.V(A,_.RtL);if(!b)return P.return();if(b.commands)for(f=_.F(b.commands),a=f.next();!a.done;a=f.next())T=a.value,Q.JSC$17207_commandHandler.resolveCommand(T,{disableClickTracking:!0});G=_.t8(A.clickTrackingParams);_.Mk(Q.JSC$17207_screenManager,21760,G,{layer:7,parentLayer:0});return P.yield(_.Ay(Q.innertubeTransportService,A),2)}p=P.yieldResult;if(!p)return P.return();Q.JSC$17207_screenManager.graftServerVe(p.trackingParams,G,
7);_.Oi(P)})};
YD[aW]=[_.vY,_.gu,_.de];var DM=new _.TS("PANEL_LOADING_STRATEGY_TOKEN");var $D=function(A,Q){this.controller=A;this.panelLoadingStrategy=Q};
_.O($D,Yu);
$D.prototype.resolveCommand=function(A,Q){var b=this,f,a,T;return _.B(function(G){f=_.V(A,ngL);if((a=f)==null||!a.panelLoadingStrategy)return G.return();T=function(p){var P,U,L,M,l,J,n,t,g;return _.B(function(e){U=_.V((P=p.dialogViewModel)==null?void 0:P.header,Ykj);L={viewModel:p.dialogViewModel};M={};if(n=_.K("web_enable_dialog_header_label")?(l=U)==null?void 0:(J=l.headline)==null?void 0:J.content:void 0)M.ariaLabel=n;f.dismissOnBackgroundTap===!1&&(M.isModal=!0);return p.dialogViewModel?e.yield(b.controller.openDialog(L,
(t=Q)==null?void 0:(g=t.form)==null?void 0:g.element,M),0):e.return()})};
return G.yield(b.panelLoadingStrategy.execute({command:A,data:f.panelLoadingStrategy,renderFn:T,createScreenConfig:{layer:4}}),0)})};
$D[aW]=[_.RS,DM];var NS=function(A,Q,b){this.innertubeTransportService=A;this.controller=Q;this.JSC$17227_screenManager=b};
_.O(NS,Yu);
NS.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l,J,n;return _.B(function(t){switch(t.nextAddress){case 1:f=_.V(A,_.hb);if(!f)return t.return();var g,e=f.panelIdentifier||((g=f.identifier)==null?void 0:g.tag);if(!e)throw Error("xi");a=e;return t.yield(b.controller.isVisible(a,!0),2);case 2:if((T=t.yieldResult)&&f.blockIfPanelOpen)return t.return();P=(p=(G=b.controller).getPanelContent)==null?void 0:p.call(G,a);if(!(g=P))if(f){var x;g=((x=f.globalConfiguration)==null?void 0:
x.initialState)||f.engagementPanel;if(x=!g)x=!!(f==null?0:(e=f.engagementPanelPresentationConfigs)==null?0:e.engagementPanelPopupPresentationConfig);x&&(g=_.HyA(f.panelIdentifier,f.identifier))}else g=void 0;U=g;L=f.engagementPanelPresentationConfigs;M=f.engagementPanelExtras;return t.yield(b.controller.showPanel(a,U,L,M,(l=Q)==null?void 0:(J=l.form)==null?void 0:J.element),3);case 3:if(!f.globalConfiguration){t.jumpTo(0);break}_.Mk(b.JSC$17227_screenManager,32633);return t.yield(_.Ay(b.innertubeTransportService,
A),5);case 5:return n=t.yieldResult,b.JSC$17227_screenManager.graftServerVe(n.trackingParams),t.yield(b.controller.updatePanel(a,n.content,!0,M,void 0,n.updatePanelContinuationData),0)}})};
NS[aW]=[_.vY,_.r8,_.gu];var sT=function(A,Q){this.controller=A;this.panelLoadingStrategy=Q};
_.O(sT,Yu);sT.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P;return _.B(function(U){f=_.V(A,_.C6);if((a=f)==null||!a.panelLoadingStrategy)return U.return();p=Pyt(b.controller,(T=Q)==null?void 0:(G=T.form)==null?void 0:G.element);P=function(L){return _.B(function(M){return L.sheetViewModel?M.yield(b.controller.openSheet({viewModel:L.sheetViewModel},p),0):M.return()})};
return U.yield(b.panelLoadingStrategy.execute({command:A,data:f.panelLoadingStrategy,renderFn:P,createScreenConfig:{layer:0}}),0)})};
sT[aW]=[_.j4,DM];var mY=function(A,Q){this.controller=A;this.JSC$17235_commandHandler=Q};
_.O(mY,Yu);mY.prototype.resolveCommand=function(A,Q){var b=this,f,a,T;return _.B(function(G){if(G.nextAddress==1){f=_.V(A,Y0W);var p=_.V(f.showCommand,_.hb),P,U,L=(U=p==null?void 0:p.panelIdentifier)!=null?U:p==null?void 0:(P=p.identifier)==null?void 0:P.tag;if(!L)throw Error("yi");a=L;return G.yield(b.controller.isVisible(a),2)}return(T=G.yieldResult)?G.yield(b.controller.hidePanel(a),0):G.yield(b.JSC$17235_commandHandler.resolveCommand(f.showCommand,Q),0)})};
mY[aW]=[_.r8,_.de];var An=function(A,Q,b){this.innertubeTransportService=A;this.controller=Q;this.JSC$17238_screenManager=b};
_.O(An,Yu);
An.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y,a9;return _.B(function(pF){switch(pF.nextAddress){case 1:return f=b=_.V(A,DX1),a=f.targetPanelIdentifier,T=f.contentSourcePanelIdentifier,G=f.globalConfiguration,((p=a)==null?0:p.tag)&&((P=T)==null?0:P.tag)?G?pF.yield(Q.controller.showPanel(a.tag,_.HyA(a.tag,a),void 0,void 0,void 0),5):pF.yield((l=(M=Q.controller).getPanel)==null?void 0:l.call(M,T.tag),4):pF.return();case 4:J=pF.yieldResult;U=(n=J)==null?
void 0:(g=(t=n).getPanelContent)==null?void 0:g.call(t);pF.jumpTo(3);break;case 5:return pF.yield(_.Ay(Q.innertubeTransportService,A),6);case 6:e=pF.yieldResult,((x=e)==null?0:x.trackingParams)&&Q.JSC$17238_screenManager.graftServerVe(e.trackingParams),U=(D=e)==null?void 0:D.content,L=(w=e)==null?void 0:w.updatePanelContinuationData;case 3:if(y=(u=U)==null?void 0:u.engagementPanelSectionListRenderer)return pF.yield(Q.controller.showPanel(a.tag,void 0,void 0,void 0,void 0,{content:y.content,secondaryHeaderContent:(a9=
y.header)!=null?a9:{},targetId:y.targetId},L),0);pF.jumpTo(0)}})};
An[aW]=[_.vY,_.r8,_.gu];var Qj=function(){};
_.O(Qj,Yu);var Xex=function(A){var Q;return _.B(function(b){Q=_.vG("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;A.JSC$17244_mainAppPlayer=new QP(Q);document.addEventListener("yt-page-data-updated",A.JSC$17244_pauseOnNavigation.bind(A));_.Oi(b)})};
Qj.prototype.JSC$17244_pauseOnNavigation=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1)return Q=A.JSC$17244_mainAppPlayer,f.yield(Q.api,2);b=f.yieldResult;b.pauseVideo();_.Oi(f)})};
var Sbr=function(A,Q,b){var f;return _.B(function(a){f=A.JSC$17244_mainAppPlayer;return a.yield(f.loadVideoWithPlayerVars({videoId:Q,audio_only:"1",player_params:b}),0)})};
Qj.prototype.pauseVideo=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1)return Q=A.JSC$17244_mainAppPlayer,f.yield(Q.api,2);b=f.yieldResult;b.pauseVideo();_.Oi(f)})};
Qj.prototype.playVideo=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1)return Q=A.JSC$17244_mainAppPlayer,f.yield(Q.api,2);b=f.yieldResult;b.playVideo();_.Oi(f)})};
var Ufd=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1)return Q=A.JSC$17244_mainAppPlayer,f.yield(Q.api,2);b=f.yieldResult;b.mute();_.Oi(f)})},LJ7=function(A){var Q,b;
return _.B(function(f){if(f.nextAddress==1)return Q=A.JSC$17244_mainAppPlayer,f.yield(Q.api,2);b=f.yieldResult;b.unMute();_.Oi(f)})},MA7=function(A,Q){return _.B(function(b){switch(b.nextAddress){case 1:switch(Q){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return b.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return b.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return b.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return b.jumpTo(5)}b.jumpTo(0);break;case 2:return b.yield(A.playVideo(),7);case 7:b.jumpTo(0);break;case 3:return b.yield(A.pauseVideo(),8);case 8:b.jumpTo(0);break;case 4:return b.yield(Ufd(A),9);case 9:b.jumpTo(0);break;case 5:return b.yield(LJ7(A),10);case 10:b.jumpTo(0)}})};
Qj.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M,l;return _.B(function(J){return J.nextAddress==1?(b=_.V(A,fu1),((f=b)==null?0:f.newPlaybackParams)||((a=b)==null?0:a.controlAction)?Q.JSC$17244_mainAppPlayer?J.jumpTo(2):J.yield(Xex(Q),2):J.return()):((T=b)==null?0:T.newPlaybackParams)?(P=(G=b)==null?void 0:(p=G.newPlaybackParams)==null?void 0:p.externalVideoId,l=(M=(U=b)==null?void 0:(L=U.newPlaybackParams)==null?void 0:L.playerParams)!=null?M:"",P?J.yield(Sbr(Q,P,l),0):J.return()):
J.yield(MA7(Q,b.controlAction),0)})};var bb=function(A){this.JSC$17251_commandHandler=A};
_.O(bb,Yu);
bb.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p;return _.B(function(P){if(P.nextAddress==1)return(b=_.V(A,am9))?P.yield(_.iJ(),2):P.return();f=P.yieldResult;if(!f)return P.return();var U=f,L=(a=b)==null?void 0:a.languageCode,M=(T=b)==null?void 0:T.isAutoTranslated;U.getVideoData&&_.qd9(U).length&&((L=tD6(U,L,M))?U.setOption("captions","track",L):(U.setOption("captions","stickyLoading",{}),U.setOption("captions","track",{})));G=f.isSubtitlesOn()?_.JQ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.JQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");p=_.az(G);Q.JSC$17251_commandHandler.resolveCommand(p);_.Oi(P)})};
bb[aW]=[_.de];var fd=function(A,Q){this.shortsPlayerPromise=A;this.JSC$17255_commandHandler=Q};
_.O(fd,Yu);
fd.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U;return _.B(function(L){if(L.nextAddress==1)return(b=_.V(A,VIp))?L.yield(Q.shortsPlayerPromise,2):L.return();f=L.yieldResult;var M=rGC(f);M!=null&&M.length||(f.loadModule("captions"),M=rGC(f));a=M;if((T=a)==null||!T.length)return G=_.JQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),p=_.az(G),Q.JSC$17255_commandHandler.resolveCommand(p),L.return();f.toggleSubtitles();P=f.isSubtitlesOn()?_.JQ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.JQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");U=_.az(P);Q.JSC$17255_commandHandler.resolveCommand(U);_.Oi(L)})};
fd[aW]=[_.dor,_.de];var aw=function(A){this.JSC$17258_actionRouter=A;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(Q,b){Q.triggerAction("yt-dismiss-shopping-timely-shelf-action",b)}]])};
_.O(aw,Yu);aw.prototype.resolveCommand=function(A){var Q=this,b,f,a;return _.B(function(T){b=_.V(A,Ffy);if((f=b)==null||!f.overlayId)return T.return();a=Q.dismissPlayerOverlayActions.get(b.overlayId);if(!a)throw Error("zi`"+b.overlayId);a(Q.JSC$17258_actionRouter,b);_.Oi(T)})};
aw[aW]=[Tm];var Ta=function(A){this.JSC$17262_playerPromise=A};
_.O(Ta,Yu);Ta.prototype.resolveCommand=function(A){var Q=this,b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return(b=_.V(A,Znx))?G.yield(Q.JSC$17262_playerPromise,2):G.return();f=G.yieldResult;a=f.getVideoData().video_id;b.videoId===a&&(T=Number(b.offsetFromVideoStartMilliseconds),T>=0&&f.seekTo(T/1E3));_.Oi(G)})};
Ta[aW]=[_.Uh];var lUx=_.LO("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),dV=function(A){this.store=A};
_.O(dV,Yu);
var KJO=function(A){var Q,b,f,a;return _.B(function(T){if(T.nextAddress==1)return Q=_.vG("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,b=_.vG("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,f=Q||b,A.JSC$17266_mainAppPlayer=new QP(f),T.yield(A.JSC$17266_mainAppPlayer.api,2);a=T.yieldResult;a.addEventListener("onStateChange",A.JSC$17266_playerStateChangeListener.bind(A));document.addEventListener("yt-page-data-updated",A.JSC$17266_pauseOnNavigation.bind(A));window.addEventListener("state-navigatestart",
A.JSC$17266_pauseOnNavigation.bind(A));_.Oi(T)})};
dV.prototype.JSC$17266_playerStateChangeListener=function(A){switch(A){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"}iFF(this)};
var iFF=function(A){A.store.dispatch(_.HL("sfvAudioItemCurrentlyPlayingEntity",lUx,{key:lUx,externalVideoId:A.externalVideoId,sfvAudioItemPlaybackState:A.playbackState,nowPlayingEntityValue:A.nowPlayingEntityValue}))};
dV.prototype.JSC$17266_pauseOnNavigation=function(){var A=this,Q,b,f,a;return _.B(function(T){if(T.nextAddress==1){if(!A.JSC$17266_mainAppPlayer){var G=new _.IO("Error: mainAppPlayer is unavailable",A.JSC$17266_mainAppPlayer);_.en(G);return T.return()}return T.yield(A.JSC$17266_mainAppPlayer.api,2)}Q=T.yieldResult;f=(b=Q)==null?void 0:b.getPlayerState();f!==1||(a=Q)!=null&&a.pauseVideo();_.Oi(T)})};
dV.prototype.playVideo=function(A,Q,b){var f=this,a,T;return _.B(function(G){if(G.nextAddress==1)return G.yield((a=f.JSC$17266_mainAppPlayer)==null?void 0:a.api,2);T=G.yieldResult;if(!f.JSC$17266_mainAppPlayer||!T){var p=new _.IO("Error: mainAppPlayer is unavailable",f.JSC$17266_mainAppPlayer);_.en(p);return G.return()}return G.yield(f.JSC$17266_mainAppPlayer.loadVideoWithPlayerVars({videoId:f.externalVideoId,audio_only:"1",start:A/1E3,end:A/1E3+Q,player_params:b}),0)})};
dV.prototype.pauseVideo=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1){if(!A.JSC$17266_mainAppPlayer){var a=new _.IO("Error: mainAppPlayer is unavailable",A.JSC$17266_mainAppPlayer);_.en(a);return f.return()}return f.yield(A.JSC$17266_mainAppPlayer.api,2)}Q=f.yieldResult;(b=Q)==null||b.pauseVideo();_.Oi(f)})};
dV.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w;return _.B(function(u){if(u.nextAddress==1)return b=_.V(A,l6y),a=(f=b)==null?void 0:f.nowPlayingEntityValue,G=(T=b)==null?void 0:T.externalVideoId,M=Number((L=(p=b)==null?void 0:(P=p.defaultStartPoints)==null?void 0:(U=P[0])==null?void 0:U.offsetMs)!=null?L:"0"),e=Number((g=(l=b)==null?void 0:(J=l.defaultStartPoints)==null?void 0:(n=J[0])==null?void 0:(t=n.duration)==null?void 0:t.seconds)!=null?g:"15"),w=(D=
(x=b)==null?void 0:x.playerParams)!=null?D:"",a&&G?Q.JSC$17266_mainAppPlayer?u.jumpTo(2):u.yield(KJO(Q),2):u.return();if(u.nextAddress!=6){if(Q.nowPlayingEntityValue&&a===Q.nowPlayingEntityValue)return Q.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?u.yield(Q.pauseVideo(),0):u.yield(Q.playVideo(M,e,w),0);Q.externalVideoId=G;Q.nowPlayingEntityValue=a;Q.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return u.yield(Q.playVideo(M,e,w),6)}iFF(Q);return u.jumpTo(0)})};
dV[aW]=[BZ];var FQ=function(A){this.JSC$17286_commandHandler=A};
_.O(FQ,Yu);FQ.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p;return _.B(function(P){if(P.nextAddress==1)return(f=_.V(A,Tbx))?P.yield(_.iJ(),2):P.return();a=P.yieldResult;if(!a)return P.return();(T=he9(a))?b.JSC$17286_commandHandler.resolveCommand(T,Q):(G=_.JQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),p=_.az(G),b.JSC$17286_commandHandler.resolveCommand(p));_.Oi(P)})};
FQ[aW]=[_.de];var Ga=function(A){this.JSC$17289_playerPromise=A};
_.O(Ga,Yu);Ga.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G;return _.B(function(p){if(p.nextAddress==1){b=_.V(A,y2r);if(!b)return p.return();f=b.overlayRenderer;return f?(a=_.V(f,GWr))?p.yield(Q.JSC$17289_playerPromise,3):p.jumpTo(0):p.return()}T=p.yieldResult;T.renderChapterSeekingAnimation(1,_.mO(a.text),(G=a.icon)==null?void 0:G.iconType);_.Oi(p)})};
Ga[aW]=[_.Uh];var BS=function(A){this.store=A};
_.O(BS,Yu);
BS.prototype.resolveCommand=function(A){var Q=this,b,f,a;return _.B(function(T){if(T.nextAddress==1){b=_.V(A,auW);if(!b)return T.return();f="";(a=Q.store.getState().collabInviteLink)&&b.id===a.playlistId?f=a.inviteLinkURL:b.shortUrl&&(f=b.shortUrl);return f?T.yield(navigator.clipboard.writeText(f),3):T.jumpTo(0)}var G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.JQ("COPY_LINK_SUCCESS_TOAST")}}}}};_.fJ().resolve(_.de).resolveCommand(G);_.Oi(T)})};
BS[aW]=[oq];var pd=function(A,Q){this.innertubeTransportService=A;this.JSC$17299_commandHandler=Q};
_.O(pd,Yu);pd.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l;return _.B(function(J){if(J.nextAddress==1)return(f=_.V(A,_.yg))?J.yield(_.Ay(b.innertubeTransportService,A,(a=Q)==null?void 0:a.form),2):J.return();(T=J.yieldResult)&&T.errorMetadata&&(G=T,p=_.az(G.error.message),b.JSC$17299_commandHandler.resolveCommand(p));P=T;if((U=P)==null?0:U.actions)for(L=_.F(P.actions),M=L.next();!M.done;M=L.next())l=M.value,b.JSC$17299_commandHandler.resolveCommand(l);_.Oi(J)})};
pd[aW]=[_.vY,_.de];var PS=function(){};
_.O(PS,Yu);PS.prototype.resolveCommand=function(A){var Q;return _.B(function(b){Q=_.V(A,Y3y);if(!Q)return b.return();(new FnM(Q)).show();_.Oi(b)})};_.XQ=new _.TS("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Sw=function(A,Q,b,f){this.store=A;this.innertubeTransportService=Q;this.controller=b;this.JSC$17307_commandHandler=f};
_.O(Sw,Yu);
Sw.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y,a9,pF,Ub,Ob,I9,iy;return _.B(function(wW){if(wW.nextAddress==1){f=_.V(A,_.xj);if(!f)return wW.return();if(f.clientActions){a=_.F(f.clientActions);for(T=a.next();!T.done;T=a.next())G=T.value,b.JSC$17307_commandHandler.resolveCommand(G);var h4,SW=Q==null?void 0:(h4=Q.form)==null?void 0:h4.element;SW&&_.Bn(SW,"yt-dismissible-item-action",f.clientActions)}return wW.yield(_.Ay(b.innertubeTransportService,A,(p=
Q)==null?void 0:p.form),2)}if(P=wW.yieldResult)P.errorMetadata?(U=P,L=_.az(U.error.message),b.JSC$17307_commandHandler.resolveCommand(L),"error"in P&&((M=Q)==null?0:(l=M.commandController)==null?0:l.onServerError)&&((J=Q)==null||(n=J.commandController)==null||n.onServerError(A,P))):(t=Q)==null||(g=t.commandController)==null||(x=(e=g).onSuccess)==null||x.call(e,A,P);D=P;((w=D)==null?0:w.collaborationInviteLink)&&f.playlistId&&(_.K("web_enable_invite_collaborators_link")||_.K("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
b.store.dispatch(_.G7({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:f.playlistId,inviteLinkUrl:D.collaborationInviteLink}}));((u=D)==null?0:u.redirectEndpoint)&&b.JSC$17307_commandHandler.resolveCommand(D.redirectEndpoint);((y=D)==null?0:(a9=y.newHeader)==null?0:a9.playlistHeaderRenderer)?J4x(b.controller,D.newHeader.playlistHeaderRenderer):((pF=D)==null?0:(Ub=pF.newHeader)==null?0:Ub.musicEditablePlaylistDetailHeaderRenderer)&&J4x(b.controller,D.newHeader.musicEditablePlaylistDetailHeaderRenderer);
b.controller.playlistVideoListElement&&((Ob=D)==null?0:(I9=Ob.playlistEditResults)==null?0:(iy=I9[0])==null?0:iy.playlistEditVideoAddedResultData)&&((SW=b.controller.playlistVideoListElement)==null||SW.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:D.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Oi(wW)})};
Sw[aW]=[oq,_.vY,_.XQ,_.de];var UW=function(A,Q){this.controller=A;this.JSC$17317_commandHandler=Q};
_.O(UW,Yu);UW.prototype.resolveCommand=function(A,Q){var b=this,f,a,T;return _.B(function(G){f=_.V(A,Tdp);b.controller.showRefreshPill&&((a=f)==null?0:a.command)&&(b.JSC$17317_commandHandler.resolveCommand((T=f)==null?void 0:T.command,Q),b.controller.showRefreshPill=!1);_.Oi(G)})};
UW[aW]=[_.Ll,_.de];var Ld=function(A,Q){this.store=A;this.JSC$17321_commandHandler=Q||_.J8.instance};
_.O(Ld,Yu);Ld.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l;return _.B(function(J){f=_.V(A,KIK);a=b.store.getState().radioButtonGroup;if((T=f)==null?0:T.command)b.JSC$17321_commandHandler.resolveCommand((G=f)==null?void 0:G.command,Q);else if(a&&((p=f)==null?void 0:p.formId)===a.currentFormId)for(P=Object.values(a.commandsMap),U=_.F(P),L=U.next();!L.done;L=U.next())M=L.value,(l=_.ue(M))&&b.JSC$17321_commandHandler.resolveCommand(l,Q);_.Oi(J)})};
Ld[aW]=[_.u7];var MR=new _.TS("USER_PREFS");var lb=function(A){this.JSC$17326_prefCookie=A};
_.O(lb,Yu);lb.prototype.resolveCommand=function(A){var Q=this,b;return _.B(function(f){(b=_.V(A,EpN))&&typeof b.useListView==="boolean"&&(_.k_(0,155,b.useListView),Q.JSC$17326_prefCookie.save());_.Oi(f)})};
lb[aW]=[MR];var Kd=function(A){this.JSC$17330_prefCookie=A};
_.O(Kd,Yu);Kd.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G;return _.B(function(p){b=_.V(A,$Yp);if((f=b)==null||!f.gl)return p.return();a=b.gl;T={persist_gl:"1",gl:a};Q.JSC$17330_prefCookie.set("gl",a);Q.JSC$17330_prefCookie.save();G=cMK(T);_.Yr(G);_.Oi(p)})};
Kd[aW]=[MR];var ib=function(A){this.JSC$17334_prefCookie=A};
_.O(ib,Yu);ib.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){b=_.V(A,FIK);if(!b)return a.return();f=!1;b.flagNum&&typeof b.value==="boolean"?(_.k_(0,b.flagNum,b.value),f=!0):b.key&&typeof b.stringValue==="string"&&(Q.JSC$17334_prefCookie.set(b.key,b.stringValue),f=!0);f&&Q.JSC$17334_prefCookie.save();_.Oi(a)})};
ib[aW]=[MR];var Jn=new _.TS("PREF_STORAGE_PROMISE_TOKEN");var Vj=function(A){this.JSC$17338_prefStoragePromise=A};
_.O(Vj,Yu);Vj.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1)return(b=_.V(A,Bd$))?a.yield(Q.JSC$17338_prefStoragePromise,2):a.return();f=a.yieldResult;return f===void 0||b.key===void 0||b.value===void 0?a.return():a.yield(f.set(b.key,b.value),0)})};
Vj[aW]=[Jn];var VAl=function(A){this.innertubeTransportService=A};
_.O(VAl,Yu);VAl.prototype.resolveCommand=function(A,Q){var b=this,f,a;return _.B(function(T){(f=_.V(A,_.x8p))&&f&&f.isFirstRequest&&(_.eT("search_overview_answer"),_.hQ("so_rq",void 0,"search_overview_answer"));return T.yield(_.Ay(b.innertubeTransportService,A,(a=Q)==null?void 0:a.form),0)})};
VAl[aW]=[_.vY];var OFt=function(){};
_.O(OFt,Yu);
OFt.prototype.resolveCommand=function(A){var Q,b,f,a,T,G,p,P,U;return _.B(function(L){Q=_.V(A,urp);if((b=Q)==null?0:b.sectionIdentifier){if(Q.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(a=(f=document.getElementsByTagName(Q.sectionIdentifier))==null?void 0:f.item(0))a.scrollIntoView({behavior:"smooth"}),(T=eUA(a))&&T.focus({preventScroll:!0});return L.return()}G=document.querySelector("[section-identifier="+Q.sectionIdentifier+"]");p=document.querySelector("[section-identifier="+Q.referenceSectionIdentifier+
"]");if(!G)return L.return();P=Q.verticalScrollOffsetDp?Q.verticalScrollOffsetDp:0;p&&(P-=p.offsetTop);window.scrollTo({top:G.offsetTop+P,behavior:"smooth"});(U=eUA(G))&&U.focus({preventScroll:!0})}_.Oi(L)})};var OW=function(A){this.JSC$17350_commandHandler=A};
_.O(OW,Yu);
OW.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P;return _.B(function(U){if(U.nextAddress==1){b=_.V(A,BlK);if(!b||!b.imageBytes||!navigator.clipboard)return U.return();if(b.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.en(Error("Bi")),U.return();_.ML(U,2);a=(f=b)==null?void 0:f.imageBytes;T=a.replace(/-/g,"+").replace(/_/g,"/");G=iyf(T);p={};P=[new ClipboardItem((p[G.type]=G,p))];return U.yield(navigator.clipboard.write(P),4)}if(U.nextAddress!=2)return b.successCommand&&
Q.JSC$17350_commandHandler.resolveCommand(b.successCommand),_.Z1(U,0);_.Vw(U);b.errorCommand&&Q.JSC$17350_commandHandler.resolveCommand(b.errorCommand);_.Oi(U)})};
OW[aW]=[_.de];var nd=function(A,Q){this.innertubeTransportService=A;this.JSC$17354_commandHandler=Q};
_.O(nd,Yu);nd.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p;return _.B(function(P){if(P.nextAddress==1)return(f=_.V(A,p1x))?P.yield(_.Ay(b.innertubeTransportService,A,(a=Q)==null?void 0:a.form),2):P.return();(T=P.yieldResult)&&T.errorMetadata&&f.onFailureCommand&&b.JSC$17354_commandHandler.resolveCommand(f.onFailureCommand);G=T;((p=G)==null?0:p.shareCommand)&&b.JSC$17354_commandHandler.resolveCommand(G.shareCommand,Q);_.Oi(P)})};
nd[aW]=[_.vY,_.de];var kn=function(){};
_.O(kn,Yu);kn.prototype.resolveCommand=function(A){var Q,b;return _.B(function(f){Q=_.V(A,boL);if(!Q||!navigator.share)return f.return();b={url:Q.url};try{return f.return(navigator.share(b))}catch(a){}_.Oi(f)})};var Iw=function(){};
_.O(Iw,Yu);Iw.prototype.resolveCommand=function(){return _.B(function(A){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Oi(A)})};var HS=function(A){this.JSC$17364_navigationConfirmationService=A};
_.O(HS,Yu);HS.prototype.resolveCommand=function(){var A=this;return _.B(function(Q){A.JSC$17364_navigationConfirmationService.cancelPendingNavigation();_.Oi(Q)})};
HS[aW]=[na];var Cd=function(A){this.JSC$17367_screenManager=A};
_.O(Cd,Yu);Cd.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U;return _.B(function(L){a=(f=Q.form)==null?void 0:f.event;G=(T=Q.form)==null?void 0:T.element;if(!a)throw new _.IO("Event not passed in when resolving command");p=_.F(a.composedPath());for(P=p.next();!P.done;P=p.next())if(U=P.value,U.tagName==="YT-COPY-LINK-RENDERER")return U.copyUrlToClipboard(),G&&_.NM(b.JSC$17367_screenManager,G),L.return();_.Oi(L)})};
Cd[aW]=[_.gu];var qR=function(){this.JSC$17371_miniAppClientDataProvider=_.fJ().resolve(_.mh)};
_.O(qR,Yu);qR.prototype.resolveCommand=function(){var A=this,Q,b;return _.B(function(f){if(A.JSC$17371_miniAppClientDataProvider.clientData.has("video_id")){var a=A.JSC$17371_miniAppClientDataProvider,T=a.clientData.get("video_id");T&&a.clientData.delete("video_id");Q="https://youtube.com/watch?v="+T;b=g$(Q);if(b===void 0)throw Error("Ci`"+Q);_.Y8(window,b)}_.Oi(f)})};var ow=function(){};
_.O(ow,Yu);ow.prototype.resolveCommand=function(){return _.B(function(A){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Oi(A)})};var tn=function(){};
_.O(tn,Yu);tn.prototype.resolveCommand=function(){var A;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(_.Ff9(window.document.documentElement),2);(A=document.querySelector("mini-app-container-view-model iframe"))&&A.focus();_.Oi(Q)})};var rV=function(A){this.JSC$17378_navigationConfirmationService=A};
_.O(rV,Yu);
rV.prototype.resolveCommand=function(){var A=this;return _.B(function(Q){var b=A.JSC$17378_navigationConfirmationService,f=_.fJ().resolve(_.tX),a;if(((a=b.navigateParams)==null?void 0:a.data)!==void 0){var T;_.Mrx(f,b.navigateParams.endpoint,b.navigateParams.data,(T=b.navigateParams.navigationType)!=null?T:1,b.navigateParams.tempData,b.navigateParams.isMiniplayer,void 0,!0);b.navigateParams=void 0;b.customConfirmationCommand=void 0}else b.navigateParams&&(f.navigate(b.navigateParams.endpoint,b.navigateParams.reload,
b.navigateParams.params,b.navigateParams.tempData,b.navigateParams.requestType,b.navigateParams.createScreenConfig,!0),b.navigateParams=void 0,b.customConfirmationCommand=void 0);_.Oi(Q)})};
rV[aW]=[na];var jw=function(){};
_.O(jw,Yu);jw.prototype.resolveCommand=function(){return _.B(function(A){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Oi(A)})};var Rw=function(A){this.JSC$17383_prefStorage=A};
_.O(Rw,Yu);Rw.prototype.resolveCommand=function(){var A=this,Q,b;return _.B(function(f){switch(f.nextAddress){case 1:return f.yield(A.JSC$17383_prefStorage,2);case 2:return(Q=f.yieldResult)?f.yield(Q.set("sfvle",!1),3):f.return();case 3:return f.yield(Q.set("sfvles",!0),4);case 4:b=_.nD(),_.k_(0,203,!1),_.k_(0,204,!0),b.save(),_.Oi(f)}})};
Rw[aW]=[Jn];var gV=function(A){this.JSC$17386_prefStorage=A};
_.O(gV,Yu);gV.prototype.resolveCommand=function(){var A=this,Q,b;return _.B(function(f){switch(f.nextAddress){case 1:return f.yield(A.JSC$17386_prefStorage,2);case 2:return(Q=f.yieldResult)?f.yield(Q.set("sfvle",!0),3):f.return();case 3:return f.yield(Q.set("sfvles",!0),4);case 4:b=_.nD(),_.k_(0,203,!0),_.k_(0,204,!0),b.save(),_.Oi(f)}})};
gV[aW]=[Jn];_.nCN=new _.TS("SNACKBAR_CONTROLLER_TOKEN");_.kXd=new _.TS("SHOULD_SHOW_PIVOT_BAR_TOKEN");var ew=function(A){this.controller=A};
_.O(ew,Yu);ew.prototype.resolveCommand=function(A){var Q=this,b;return _.B(function(f){b=_.V(A,O2$);if(!b)return f.return();var a=Q.controller;a.closeSnackbarFn&&a.closeSnackbarFn();_.Oi(f)})};
ew[aW]=[_.nCN];var hn=function(A,Q){this.controller=A;this.sheetController=Q};
_.O(hn,Yu);hn.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P;return _.B(function(U){f=_.V(A,kmp);if(!f)return U.return();G=Pyt(b.sheetController,(a=Q)==null?void 0:(T=a.form)==null?void 0:T.element);p=_.V(f.content,zGM);if(!p)return U.return();var L=b.controller,M=p,l=(P=f.animationStyle)!=null?P:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(L.showSnackbarFn)L.showSnackbarFn({snackbarViewModel:M,animationStyle:l,durationMs:f.durationSeconds*1E3,target:G});else throw Error("lj");_.Oi(U)})};
hn[aW]=[_.nCN,_.j4];var WS=function(){};
_.O(WS,Yu);WS.prototype.resolveCommand=function(A){var Q;return _.B(function(b){Q=_.V(A,GfW);if(!Q||typeof Q.key!=="string"||typeof Q.value!=="string")return b.return();window.localStorage.setItem(Q.key,Q.value);_.Oi(b)})};var vS=function(A){this.store=A};
_.O(vS,Yu);vS.prototype.resolveCommand=function(A){var Q=this,b;return _.B(function(f){b=_.V(A,ApY);if(!b||!b.stepId||!b.token)return f.return();Q.store.dispatch(GBr({stepId:b.stepId,token:b.token,isSelected:!1}));_.Oi(f)})};
vS[aW]=[oq];var EW=function(A,Q,b){this.innertubeTransportService=A;this.store=Q;this.JSC$17405_screenManager=b};
_.O(EW,Yu);
EW.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u,y,a9,pF;return _.B(function(Ub){b=_.V(A,QHL);if(!b||(f=b.stepIds)==null||!f.length)return Ub.return();a=Q.store.getState().talkToRecs;T=[];G=[];p=_.F(b.stepIds);for(P=p.next();!P.done;P=p.next())for(U=P.value,L=void 0,(M=(L=a.stepStates[U])==null?void 0:L.userQuery)&&G.push({userQuery:M.userQuery,userQueryToken:M.token}),l=void 0,J=(l=a.stepStates[U])==null?void 0:l.selectionStates,n=_.F(Object.entries(J)),t=
n.next();!t.done;t=n.next())g=t.value,e=_.F(g),x=e.next().value,D=e.next().value,w=x,u=D,u.isSelected&&T.push(w);y={selectedChipTokens:T,userQueries:G,submittedStepIds:b.stepIds};a9={browseTalk2recsFormData:y};b.browseEndpoint?(pF=A,_.EG(pF,_.nT,b.browseEndpoint)):b.command&&(pF=b.command);return pF?Ub.yield(_.Ay(Q.innertubeTransportService,pF,{formData:a9,disableCache:!0}).then(function(Ob){(Ob==null?0:Ob.trackingParams)&&Q.JSC$17405_screenManager.graftServerVe(Ob==null?void 0:Ob.trackingParams)}),
0):Ub.return()})};
EW[aW]=[_.vY,oq,_.gu];var xn=function(A){this.store=A};
_.O(xn,Yu);xn.prototype.resolveCommand=function(A){var Q=this,b;return _.B(function(f){b=_.V(A,mZX);if(!b||!b.stepId||!b.token)return f.return();Q.store.dispatch(GBr({stepId:b.stepId,token:b.token,isSelected:!0}));_.Oi(f)})};
xn[aW]=[oq];var cS=function(A){this.store=A};
_.O(cS,Yu);cS.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p;return _.B(function(P){f=_.V(A,bGy);if(!f||!f.stepId||!f.userQueryToken)return P.return();p=(G=(a=Q)==null?void 0:(T=a.form)==null?void 0:T.userQuery)!=null?G:"";b.store.dispatch(_.G7({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:f.stepId,userQueryToken:f.userQueryToken,userQuery:p}}));_.Oi(P)})};
cS[aW]=[oq];_.IUN=new _.TS("TIMELY_ACTIONS_CONTROLLER_TOKEN");var za=function(A){this.controller=A};
_.O(za,Yu);za.prototype.resolveCommand=function(A){var Q=this,b,f,a,T;return _.B(function(G){b=_.V(A,c2W);if(!b)return G.return();f=b;a=f.id;T=f.isVisible;if(a===void 0||T===void 0)return G.return();var p;(p=Q.controller.timelyActionsMap.get(a))==null||p(a,T);_.Oi(G)})};
za[aW]=[_.IUN];var HFd=function(){this.timelyActionsMap=new Map};var wV=function(A){this.JSC$17432_commandHandler=A};
_.O(wV,Yu);wV.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G;return _.B(function(p){b=_.V(A,_.CY);if(!b)return p.return();T=(f=b.item)==null?void 0:(a=f.notificationTextRenderer)==null?void 0:a.successResponseText;if(!T)return p.return();G=_.fT(T);Q.JSC$17432_commandHandler.resolveCommand(G);_.Oi(p)})};
wV[aW]=[_.de];var ub=function(A,Q){this.innertubeTransportService=A;this.JSC$17437_playerApiPromise=Q};
_.O(ub,Yu);
ub.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L;return _.B(function(M){if(M.nextAddress==1)return M.yield(Q.JSC$17437_playerApiPromise,2);b=M.yieldResult;f=b.getOption("captions","track");a=Object.assign({},_.V(A,_.oHM));(G=(T=b.getVideoData())==null?void 0:T.video_id)?a.externalVideoId=G:_.wN(Error("Di"));if((p=f)==null?0:p.languageCode)a.languageCode=f.languageCode;if((P=f)==null?0:P.kind)a.kind=f.kind;if((U=f)==null?0:U.name)a.name=f.name;L=Object.assign({},A,{getTranscriptEndpoint:a});return M.yield(_.Ay(Q.innertubeTransportService,
L),0)})};
ub[aW]=[_.vY,_.Uh];var Za=function(){};
_.O(Za,Yu);Za.prototype.resolveCommand=function(A){var Q,b,f,a,T,G,p,P;return _.B(function(U){Q=_.V(A,luK);if((b=Q)==null||!b.paramKeyValuePairs)return U.return();f=window.location.href;a=_.F(Q.paramKeyValuePairs);for(T=a.next();!T.done;T=a.next())G=T.value,G.key&&G.value&&(p={},f=_.DR(f,(p[G.key]=G.value,p)));P=_.fJ().resolve(_.JC);_.iV(P,f);_.Oi(U)})};var yj=function(A,Q){this.JSC$17444_commandHandler=A;this.innertubeTransportService=Q};
_.O(yj,Yu);
yj.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D;return _.B(function(w){switch(w.nextAddress){case 1:return(T=(f=Q)==null?void 0:(a=f.form)==null?void 0:a.element)&&_.y3(T),G=_.nD().get("hl"),p="",_.ML(w,2),w.yield(xhX(G),4);case 4:p=w.yieldResult;_.Z1(w,3);break;case 2:return _.Vw(w),T&&_.YB(T),_.en(Error("Fi"),"ERROR"),w.return();case 3:P=_.V(A,MqN);if(!P)return T&&_.YB(T),w.return();(M=(U=P.commerceActionConfig)==null?void 0:(L=U.commandLifeCycleConfig)==null?
void 0:L.onStartCommand)&&b.JSC$17444_commandHandler.resolveCommand(M);return w.yield(_.Ay(b.innertubeTransportService,A,{client_data:{paymentsClientToken:{token:p}}}),5);case 5:(l=w.yieldResult)?(T&&_.YB(T),((g=l)==null?0:g.command)&&b.JSC$17444_commandHandler.resolveCommand(l.command),(D=(e=P.commerceActionConfig)==null?void 0:(x=e.commandLifeCycleConfig)==null?void 0:x.onSuccessCommand)&&b.JSC$17444_commandHandler.resolveCommand(D)):(T&&_.YB(T),_.en(Error("Gi")),(t=(J=P.commerceActionConfig)==
null?void 0:(n=J.commandLifeCycleConfig)==null?void 0:n.onFailureCommand)&&b.JSC$17444_commandHandler.resolveCommand(t)),_.Oi(w)}})};
yj[aW]=[_.de,_.vY];var Yn=function(A,Q,b){this.store=A;this.JSC$17460_commandHandler=Q;this.innertubeTransportService=b};
_.O(Yn,Yu);
Yn.prototype.resolveCommand=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M;return _.B(function(l){f=_.V(A,l8$);a=f.googlePaymentPayload;f.onStartCommand&&b.JSC$17460_commandHandler.resolveCommand(f.onStartCommand);T=a.encryptedPurchaseParams;G=a.ypcLogWalletAnalyticDataEndpoint;p=f.serializedTransactionFlowLoggingParams;P=a.serializedPaymentsClientParams;U=f.ypcCujContext;M=ws4(b.innertubeTransportService,(L=Q)==null?void 0:L.form,T,G,p,P,U);return l.return(M.then(function(J){cG6(Q==null?void 0:Q.form,
!1);var n=b.store,t=b.JSC$17460_commandHandler,g=J.integratorData;g==null||g===""||J.error!=null?(String(J.error)==="-1"&&f.onDismissCommand?t.resolveCommand(f.onDismissCommand):String(J.error)!=="-1"&&f.onFailureCommand&&t.resolveCommand(f.onFailureCommand),String(J.error)!=="-1"&&String(J.error)!=="132"&&_.en(Error("Hi"),"ERROR")):(f.googlePaymentEntityKey&&n.dispatch(_.HL("commerceAcquisitionClientPayloadEntity",f.googlePaymentEntityKey,{key:f.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:g,
fundsGuaranteeCallbackClientData:J.integratorClientCallbackData}}})),f.onSuccessCommand&&t.resolveCommand(f.onSuccessCommand));_.Ul()},function(J){cG6(Q==null?void 0:Q.form,!1);
_.en(J,"ERROR");f.onFailureCommand&&b.JSC$17460_commandHandler.resolveCommand(f.onFailureCommand)}))})};
Yn[aW]=[BZ,_.de,_.vY];var Da=function(A,Q){this.JSC$17464_commandHandler=A;this.purchaseManager=Q};
_.O(Da,Yu);
Da.prototype.resolveCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L;return _.B(function(M){b=_.V(A,KDK);((f=b)==null?0:(a=f.commandLifeCycleConfig)==null?0:a.onStartCommand)&&Q.JSC$17464_commandHandler.resolveCommand(b.commandLifeCycleConfig.onStartCommand);if(!((T=b)==null?0:(G=T.googlePaymentPurchaseManagerPayload)==null?0:G.securePayloadBytes))return _.en(Error("Ii"),"ERROR"),M.return();p=KWW(_.$C(b.googlePaymentPurchaseManagerPayload.securePayloadBytes));P=_.nD().get("hl");U=_.Qh();Izr(p.serialize(),
P,function(l){U.resolve(l)},function(l){U.reject(l)},U.resolve);
L=U.promise;return M.return(L.then(function(l){if(l)if(l==null?0:l.errorCode){_.en(Error("Ji`"+l.errorCode),"ERROR");var J,n;((J=b)==null?0:(n=J.commandLifeCycleConfig)==null?0:n.onFailureCommand)&&Q.JSC$17464_commandHandler.resolveCommand(b.commandLifeCycleConfig.onFailureCommand)}else if(l==null?0:l.isCancelled){var t,g;((t=b)==null?0:(g=t.commandLifeCycleConfig)==null?0:g.onCancelCommand)&&Q.JSC$17464_commandHandler.resolveCommand(b.commandLifeCycleConfig.onCancelCommand)}else{var e,x;((e=b)==
null?0:(x=e.commandLifeCycleConfig)==null?0:x.onSuccessCommand)&&Q.JSC$17464_commandHandler.resolveCommand(b.commandLifeCycleConfig.onSuccessCommand)}},function(l){_.en(l,"ERROR");
var J,n;((J=b)==null?0:(n=J.commandLifeCycleConfig)==null?0:n.onFailureCommand)&&Q.JSC$17464_commandHandler.resolveCommand(b.commandLifeCycleConfig.onFailureCommand)}))})};
Da[aW]=[_.de,HqL];var Cyd=function(A,Q){this.JSC$17472_commandHandler=A;this.commandAllowlistOverride=Q;var b;this.commandAllowlist=(b=this.commandAllowlistOverride)!=null?b:bJ};
Cyd.prototype.handleResponse=function(A,Q,b){var f,a=Q==null?void 0:(f=Q.config)==null?void 0:f.command;if(!a||this.commandAllowlist.some(function(T){return!!_.V(a,T)})){Q=void 0;
b!==void 0&&(Q={form:{element:b}});A.onResponseReceivedCommand&&this.JSC$17472_commandHandler.resolveCommand(A.onResponseReceivedCommand,Q);A.onResponseReceivedAction&&this.JSC$17472_commandHandler.resolveCommand(A.onResponseReceivedAction,Q);A.onResponseReceivedEndpoint&&this.JSC$17472_commandHandler.resolveCommand(A.onResponseReceivedEndpoint,Q);A.command&&this.JSC$17472_commandHandler.resolveCommand(A.command,Q);if(A.onResponseReceivedCommands)for(b=_.F(A.onResponseReceivedCommands),f=b.next();!f.done;f=
b.next())this.JSC$17472_commandHandler.resolveCommand(f.value,Q);if(A.onResponseReceivedActions)for(b=_.F(A.onResponseReceivedActions),f=b.next();!f.done;f=b.next())this.JSC$17472_commandHandler.resolveCommand(f.value,Q);if(A.onResponseReceivedEndpoints)for(b=_.F(A.onResponseReceivedEndpoints),f=b.next();!f.done;f=b.next())this.JSC$17472_commandHandler.resolveCommand(f.value,Q);if(A.actions)for(A=_.F(A.actions),b=A.next();!b.done;b=A.next())this.JSC$17472_commandHandler.resolveCommand(b.value,Q)}};
Cyd[aW]=[_.de,_.bu(Ry4)];var qbt=new _.TS("INNERTUBE_TOKEN_SERVICE");var oCq=new _.TS("SCHEDULER_TOKEN");var tAt=function(A){this.scheduler=A;A={};this.tokenMap=(A.app={},A.user={},A)};
tAt.prototype.handleResponse=function(A,Q){if(!Q)throw Error("Ki");var b;if(A=(b=A.responseContext)==null?void 0:b.innertubeTokenJar){if(A.appTokens){var f,a,T;b=(f=Q.innerTubeRequest.context)==null?void 0:(a=f.request)==null?void 0:(T=a.innertubeTokenJar)==null?void 0:T.appTokens;r4q(this,A.appTokens,this.tokenMap.app,b)}if(A.userTokens){var G,p,P;Q=(G=Q.innerTubeRequest.context)==null?void 0:(p=G.request)==null?void 0:(P=p.innertubeTokenJar)==null?void 0:P.userTokens;r4q(this,A.userTokens,this.tokenMap.user,
Q)}}};
tAt.prototype.processContext=function(A){A.request||(A.request={});var Q=Object.keys(this.tokenMap.app).length,b=Object.keys(this.tokenMap.user).length;if(Q||b)A.request.innertubeTokenJar={},Q&&(A.request.innertubeTokenJar.appTokens=[].concat(_.ri(Object.values(this.tokenMap.app).flat()))),b&&(A.request.innertubeTokenJar.userTokens=[].concat(_.ri(Object.values(this.tokenMap.user).flat())))};
var r4q=function(A,Q,b,f){Q=_.F(Q);for(var a=Q.next(),T={};!a.done;T={token$jscomp$138:void 0},a=Q.next()){T.token$jscomp$138=a.value;if(T.token$jscomp$138.type===void 0)throw new _.IO("InnerTube token has no type",T.token$jscomp$138);if(T.token$jscomp$138.clearTokens)b[T.token$jscomp$138.type]=[];else if(T.token$jscomp$138.value!==void 0){b[T.token$jscomp$138.type]||(b[T.token$jscomp$138.type]=[]);if(f!==void 0&&f.length){a=_.F(f);for(var G=a.next(),p={};!G.done;p={requestToken:void 0},G=a.next())p.requestToken=
G.value,G=b[T.token$jscomp$138.type].findIndex(function(P){return function(U){return U===P.requestToken||(0,_.j2.equals)(U,P.requestToken)}}(p)),G>-1&&b[T.token$jscomp$138.type].splice(G,1)}b[T.token$jscomp$138.type].push(T.token$jscomp$138);
T.token$jscomp$138.maxAgeSeconds&&Number(T.token$jscomp$138.maxAgeSeconds)>0&&A.scheduler.addLowPriorityJob(function(P){return function(){var U=b[P.token$jscomp$138.type].indexOf(P.token$jscomp$138);U>-1&&b[P.token$jscomp$138.type].splice(U,1)}}(T),Number(T.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.IO("InnerTube token has no value",T.token$jscomp$138);
}};
tAt[aW]=[oCq];var j9t=new _.TS("LOCAL_INNERTUBE_ROUTER_TOKEN"),R6O=new _.TS("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var $n=function(A){this.serviceMap=A};
$n.prototype.shouldPreferLocalResponse=function(A,Q){return(A=gCM(this,A))?A.shouldPreferLocalResponse(Q):!1};
$n.prototype.localInnertubeResponse=function(A,Q){var b=this,f;return _.B(function(a){return(f=gCM(b,A))?a.return(f.localInnertubeResponse(Q)):a.return(Promise.reject(Error("Li")))})};
$n.prototype.canProvideFallbackResponse=function(A,Q){return(A=gCM(this,A))?A.canProvideFallbackResponse(Q):!1};
$n.prototype.localFallbackInnertubeResponse=function(A,Q){var b=this,f;return _.B(function(a){return(f=gCM(b,A))?a.return(f.localFallbackInnertubeResponse(Q)):a.return(Promise.reject(Error("Li")))})};
var gCM=function(A,Q){Q=_.LJ(Q);return Q?(A=A.serviceMap[Q])?A:null:null};
$n[aW]=[R6O];var qr=function(){};
qr.prototype.shouldPreferLocalResponse=function(){return!1};
qr.prototype.localInnertubeResponse=function(){return _.B(function(A){return A.return(Promise.reject(Error("Mi")))})};
qr.prototype.canProvideFallbackResponse=function(){return!0};
qr.prototype.localFallbackInnertubeResponse=function(){var A,Q,b;return _.B(function(f){A=Ib("CLOSE_POPUP");Q={openPopupAction:ZyJ()};b={actions:[A,Q]};return f.return(b)})};var wIU=function(A,Q){this.JSC$17522_upliftPromise=A;this.store=Q};
_.d=wIU.prototype;_.d.shouldPreferLocalResponse=function(A){var Q=A.videoId,b;if(b=Q)b=NEW(this.store.getState().entities,A.videoId);return b&&sAU(this.store.getState().entities,Q)?Ydb(this.store.getState().entities,A.playlistId):!1};
_.d.localInnertubeResponse=function(A){var Q=this,b;return _.B(function(f){return(b=Q.getPlayerResponse(A))?f.return(Promise.resolve(b)):f.return(Promise.reject(Error("Ni")))})};
_.d.canProvideFallbackResponse=function(A){return!!A.videoId};
_.d.localFallbackInnertubeResponse=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.JSC$17522_upliftPromise,2);b=Q.getPlayerResponse(A);var a;b?a=f.return(Promise.resolve(b)):a=qe(Q.store.getState().entities,A.videoId)?f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.T7(_.JQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:daF()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.T7(_.JQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:TTW()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return a})};
_.d.getPlayerResponse=function(A){return kmY(this.store.getState().entities,A.videoId)};var C7=function(A,Q){this.localPlayerService=A;this.localWatchNextService=Q};
C7.prototype.shouldPreferLocalResponse=function(A){var Q=A.playerRequest;A=A.watchNextRequest;return!!(Q&&this.localPlayerService.shouldPreferLocalResponse(Q)&&A&&this.localWatchNextService.shouldPreferLocalResponse(A))};
C7.prototype.localInnertubeResponse=function(A){var Q=this,b,f,a,T;return _.B(function(G){if(G.nextAddress==1){b=A.playerRequest;f=A.watchNextRequest;if(!b||!f)throw new _.IO("Missing streaming request",A);return G.yield(Q.localPlayerService.localInnertubeResponse(b),2)}if(G.nextAddress!=3)return a=G.yieldResult,G.yield(Q.localWatchNextService.localInnertubeResponse(f),3);T=G.yieldResult;return G.return({playerResponse:a,watchNextResponse:T})})};
C7.prototype.canProvideFallbackResponse=function(A){var Q=A.playerRequest;A=A.watchNextRequest;return!!(Q&&this.localPlayerService.canProvideFallbackResponse(Q)&&A&&this.localWatchNextService.canProvideFallbackResponse(A))};
C7.prototype.localFallbackInnertubeResponse=function(A){var Q=this,b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return b=A.playerRequest,f=A.watchNextRequest,b&&f?G.yield(Q.localPlayerService.localFallbackInnertubeResponse(b),2):G.return(Promise.reject(new _.IO("Missing streaming request",A)));if(G.nextAddress!=3)return a=G.yieldResult,G.yield(Q.localWatchNextService.localFallbackInnertubeResponse(f),3);T=G.yieldResult;return G.return({playerResponse:a,watchNextResponse:T})})};var Va=function(A){this.JSC$17532_persistentStorePromiseAccessor=A};
Va.prototype.shouldPreferLocalResponse=function(){return!1};
Va.prototype.localInnertubeResponse=function(){return _.B(function(A){return A.return(Promise.reject(Error("Oi")))})};
Va.prototype.canProvideFallbackResponse=function(){return!0};
Va.prototype.localFallbackInnertubeResponse=function(){var A=this,Q,b;return _.B(function(f){return f.nextAddress==1?f.yield(A.JSC$17532_persistentStorePromiseAccessor(),2):f.nextAddress!=3?(Q=f.yieldResult)?f.yield(Q.get("service:guide:fallback"),3):f.return(Promise.reject(Error("Pi"))):(b=f.yieldResult)&&_.Fw(b)?f.return(Dhy(_.Fw(b))):f.return(Promise.reject(Error("Qi")))})};var oc=function(){};
oc.prototype.shouldPreferLocalResponse=function(){return!1};
oc.prototype.localInnertubeResponse=function(){return _.B(function(A){return A.return(Promise.reject(Error("Ri")))})};
oc.prototype.canProvideFallbackResponse=function(){return!0};
oc.prototype.localFallbackInnertubeResponse=function(){var A,Q,b;return _.B(function(f){A=Ib("CLOSE_POPUP");Q={openPopupAction:ZyJ()};b={actions:[A,Q]};return f.return(b)})};var Jb=function(){this.urlMap=e6N;this.fallbackCommand=_.IR};
Jb.prototype.shouldPreferLocalResponse=function(A){return(A=A.url)?!!h6O(this,A):!1};
Jb.prototype.localInnertubeResponse=function(A){var Q=this,b;return _.B(function(f){return(b=A.url)?f.return(WJl(A,h6O(Q,b))):f.return(Promise.reject(Error("Si")))})};
Jb.prototype.canProvideFallbackResponse=function(){return!0};
Jb.prototype.localFallbackInnertubeResponse=function(A){var Q=this,b,f,a,T,G,p,P;return _.B(function(U){b=A.url;if(!b)return U.return(WJl(A,Q.fallbackCommand));if(f=h6O(Q,b))return U.return(WJl(A,f));a=void 0;T=_.LJ(b);T==="/watch"&&(G=_.EO(b,"v"))&&(P=(p=_.EO(b,"list"))!=null?p:void 0,a=_.aX(G,P));a||(a=Q.fallbackCommand);return U.return(WJl(A,a))})};
var h6O=function(A,Q){if(Q)return A.urlMap[_.yr(Q)]},WJl=function(A,Q){Q&&A.parentTrackingParams&&(Q.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:A.parentTrackingParams}},Q.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:Q})};var OC=function(A,Q,b){this.JSC$17542_upliftPromise=A;this.store=Q;this.JSC$17542_persistentStorePromiseAccessor=b};
OC.prototype.shouldPreferLocalResponse=function(){return!1};
OC.prototype.localInnertubeResponse=function(){return _.B(function(A){return A.return(Promise.reject(Error("Ti")))})};
OC.prototype.canProvideFallbackResponse=function(){return!0};
OC.prototype.localFallbackInnertubeResponse=function(){var A=this;return _.B(function(Q){return Q.return(vCl(A))})};
var vCl=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(dy(A.JSC$17542_upliftPromise,A.store),2);Q=f.yieldResult;b={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[yG9(Q)]}}}};return f.return(ECO(A,b))})},ECO=function(A,Q){var b,f;
return _.B(function(a){if(a.nextAddress==1)return a.yield(A.JSC$17542_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3)return b=a.yieldResult,a.yield(Gb(b),3);f=a.yieldResult;return a.return({responseContext:{},contents:Q,topbar:f})})};var K7=function(A,Q,b){this.JSC$17549_upliftPromise=A;this.store=Q;this.JSC$17549_persistentStorePromiseAccessor=b};
K7.prototype.shouldPreferLocalResponse=function(A){var Q=A.videoId;return Q&&NEW(this.store.getState().entities,Q)&&sAU(this.store.getState().entities,Q)?Ydb(this.store.getState().entities,A.playlistId):!1};
K7.prototype.localInnertubeResponse=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1)return(b=A.videoId)?a.yield(Q.JSC$17549_upliftPromise,2):a.return(Promise.reject(Error("Ui")));if(a.nextAddress!=3)return a.yield(xfl(Q,A,b),3);f=a.yieldResult;return a.return(c4F(Q,f,b))})};
K7.prototype.canProvideFallbackResponse=function(A){return A.videoId?!0:!1};
K7.prototype.localFallbackInnertubeResponse=function(A){var Q=this,b,f,a,T;return _.B(function(G){switch(G.nextAddress){case 1:return(b=A.videoId)?G.yield(Q.JSC$17549_upliftPromise,2):G.return(Promise.reject(Error("Ui")));case 2:return G.yield(xfl(Q,A,b),3);case 3:f=G.yieldResult;if(qe(Q.store.getState().entities,b)){G.jumpTo(4);break}return G.yield(dy(Q.JSC$17549_upliftPromise,Q.store),5);case 5:return a=G.yieldResult,G.return(z6N(f,a));case 4:return NEW(Q.store.getState().entities,b)&&sAU(Q.store.getState().entities,
b)?G.return(c4F(Q,f,b)):(T={title:_.T7(_.JQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:daF()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},G.return(z6N(f,T)))}})};
var xfl=function(A,Q,b){var f,a,T,G,p;return _.B(function(P){if(P.nextAddress==1)return f=Q.playlistId,a=_.aX(b,f),P.yield(A.JSC$17549_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3)return T=P.yieldResult,P.yield(Gb(T),3);G=P.yieldResult;p={responseContext:{},currentVideoEndpoint:a,topbar:G};return P.return(p)})},c4F=function(A,Q,b){if(A=qe(A.store.getState().entities,b)){var f;
b=A.videoEntity;var a,T={title:ds(b.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Fg((f=b.localizedStrings)==null?void 0:f.viewCount),viewCount:_.Fg((a=b.localizedStrings)==null?void 0:a.viewCount)}}};b.publishedTimestampMillis&&(T.dateText=_.Fg(UO4(new Date(Number(b.publishedTimestampMillis)))));f={videoPrimaryInfoRenderer:T};a=A.videoEntity;A=A.channelEntity;A={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:ds(_.JQ("SHOW_MORE",void 0,"Show more")),
showLessText:ds(_.JQ("SHOW_LESS",void 0,"Show less")),description:a.formattedDescription,owner:{videoOwnerRenderer:{title:ds(A.title),thumbnail:A.avatar}}}};Q.contents={twoColumnWatchNextResults:{results:{results:{contents:[f,A]}}}}}return Q},z6N=function(A,Q){A.contents={singleColumnWatchNextResults:{results:{results:{contents:[yG9(Q)]}}}};
return A};var HZ=function(A,Q,b){this.JSC$17554_upliftPromise=A;this.store=Q;this.JSC$17554_persistentStorePromiseAccessor=b};
HZ.prototype.shouldPreferLocalResponse=function(){return!1};
HZ.prototype.localInnertubeResponse=function(){return _.B(function(A){return A.return(Promise.reject(Error("Vi")))})};
HZ.prototype.canProvideFallbackResponse=function(){return!0};
HZ.prototype.localFallbackInnertubeResponse=function(){var A=this,Q,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:return T.yield(A.JSC$17554_persistentStorePromiseAccessor(),2);case 2:return Q=T.yieldResult,T.yield(Gb(Q),3);case 3:return b=T.yieldResult,f={responseContext:{},topbar:b},T.yield(A.JSC$17554_upliftPromise,4);case 4:return T.yield(dy(A.JSC$17554_upliftPromise,A.store),5);case 5:return a=T.yieldResult,f.watchStatus={backgroundPromoRenderer:a},T.return(f)}})};var weF=new _.TS("ENDPOINT_MAP");var uix=function(){var A=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return A.sequenceMap}}},XSL=function(A,Q,b){var f,a=(f=Q.config)==null?void 0:f.sequenceStrategy;
if(!a)return b();A.sequenceMap.has(a.sequenceKey)||A.sequenceMap.set(a.sequenceKey,[]);A=A.sequenceMap.get(a.sequenceKey);switch(a.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return ZFs(A,Q,b);case "REQUEST_SEQUENCE_TYPE_REPLACE":return y4q(A,Q,b);default:throw new _.IO("Request could not be sequenced",Q);}},ZFs=function(A,Q,b){var f,a,T;
return _.B(function(G){A.length>0?(a=A[A.length-1],f=a.responsePromise.then(function(){return b()})):f=b();
T={request:Q,responsePromise:f};A.push(T);Ybq(A,T);return G.return(T.responsePromise)})},y4q=function(A,Q,b){b=b();
if(A.length>0)for(var f=_.F(A),a=f.next();!a.done;a=f.next())a.value.responsePromise=b;var T={request:Q,responsePromise:b};A.push(T);Ybq(A,T);return Promise.resolve().then(function(){return A.indexOf(T)>0?T.responsePromise.then(function(G){return Object.assign({},G,{sequenceMetaData:{skipProcessing:!0}})}):T.responsePromise})},Ybq=function(A,Q){Q.responsePromise.then(function(){var b=A.indexOf(Q);
b>-1&&A.splice(b,1)})};var Dfl=new _.TS("REQUEST_SEQUENCING");var NR=function(){};
_.O(NR,l7);NR.prototype.getApiPaths=function(){return[]};
NR.prototype.getExtension=function(A){return _.V(A,VE1)};
NR.prototype.JSC$12987_buildRequest=function(A,Q){A.recaptchaToken=Q.recaptchaToken};
NR.prototype.getApiUrl=function(){return"/das_captcha"};var sW=function(){};
_.O(sW,l7);sW.prototype.getApiPaths=function(){return UC$};
sW.prototype.getExtension=function(A){return _.V(A,$_N)};
sW.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.createBackstagePostParams&&(A.createBackstagePostParams=Q.createBackstagePostParams);b.comment_text&&(A.commentText=b.comment_text);if(b.attached_video_id)A.videoAttachment={videoId:b.attached_video_id};else if(b.image_poll_options)A.pollAttachmentData={options:b.image_poll_options};else if(b.poll_options)A.pollAttachment={choices:b.poll_options};else if(b.quiz_options)A.quizAttachmentData={options:b.quiz_options};else if(b.image_blob_id)A.imageAttachment=
{encryptedBlobId:b.image_blob_id},b.source_video_id&&(A.imageAttachment.sourceExternalVideoId=b.source_video_id),b.image_preview_coordinates&&(A.imageAttachment.previewCoordinates=JSON.parse(b.image_preview_coordinates));else if(b.images_data)A.imagesAttachment={imagesData:b.images_data};else if(b.clip_external_video_id!==void 0||b.clip_offset_ms!==void 0||b.clip_duration_ms!==void 0){var f,a,T,G,p;A.clipAttachment={externalVideoId:(T=b.clip_external_video_id)!=null?T:"",offsetMs:(G=(f=b.clip_offset_ms)==
null?void 0:f.toString())!=null?G:"",durationMs:(p=(a=b.clip_duration_ms)==null?void 0:a.toString())!=null?p:""}}else b.shared_post_id&&(A.sharedPostAttachment={postId:b.shared_post_id});b.tagged_video_id&&(A.postCreationData={taggedVideoId:b.tagged_video_id});b.access_restrictions&&(typeof b.access_restrictions==="number"&&(Q=b.access_restrictions,A.accessRestrictions={restriction:Q!==1&&Q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof b.access_restrictions==="string"&&
(A.accessRestrictionsParams=b.access_restrictions));b.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=b.scheduled_publish_time_sec.toString())};var m$=function(){};
_.O(m$,l7);m$.prototype.getApiPaths=function(){return VGL};
m$.prototype.getExtension=function(A){return _.V(A,LrK)};
m$.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.decorateMessageParams&&(A.params=Q.decorateMessageParams);b.text&&(A.text=b.text)};var AB=function(){};
_.O(AB,l7);AB.prototype.getApiPaths=function(){return cFM};
AB.prototype.getExtension=function(A){return _.V(A,NhK)};
AB.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;b.video_id&&(A.videoId=b.video_id)};var QS=function(){};
_.O(QS,l7);QS.prototype.getApiPaths=function(){return yFM};
QS.prototype.getExtension=function(A){return _.V(A,_.li)};
QS.prototype.JSC$12987_buildRequest=function(A,Q,b){b.suggestions_query&&(A.input=b.suggestions_query)};var bk=function(){};
_.O(bk,l7);bk.prototype.getApiPaths=function(){return I_L};
bk.prototype.getExtension=function(A){return _.V(A,sBY)};
bk.prototype.JSC$12987_buildRequest=function(A,Q,b){b.comment_text!==void 0&&(A.commentText=b.comment_text);b.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=b.scheduled_publish_time_sec.toString());A.updateBackstagePostParams=Q.updateBackstagePostParams};var fM=function(){};
_.O(fM,l7);fM.prototype.getApiPaths=function(){return Ab};
fM.prototype.getExtension=function(A){return _.V(A,_.Yo)};
fM.prototype.JSC$12987_buildRequest=function(A,Q,b){b.formData&&(A.formData=b.formData);Q.token?A.continuation=Q.token:Q.continuationTokenKey&&(b=_.QK().getState(),Q=_.Me(b.entities,"continuationTokenEntity",Q.continuationTokenKey))&&(A.continuation=String(Q.continuationToken))};
var $fM=function(){};
_.O($fM,l7);_.d=$fM.prototype;_.d.getApiPaths=function(){return Ab};
_.d.getExtension=function(A){return _.V(A,_.nT)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$12994_getStoreKey=function(A){if((A=this.getExtension(A))&&A.browseId){var Q={browseId:A.browseId};A.browseEndpointContextSupportedConfigs&&(Q.browseEndpointContextSupportedConfigs=JSON.stringify(A.browseEndpointContextSupportedConfigs));A.params&&(Q.params=A.params);A.query&&(Q.query=A.query);return _.NW("browse",Q)}};
_.d.JSC$12987_buildRequest=function(A,Q,b){Q.browseId&&(A.browseId=Q.browseId);Q.params&&(A.params=Q.params);Q.query&&(A.query=Q.query);b.formData?A.formData=b.formData:Q.formData&&(A.formData=Q.formData);Q.browseId==="FEsubscriptions"&&_.nD().getFlag(155)&&(A.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");Q.browseId==="SPaccount_playback"&&(b=_.nD(),A.formData||(A.formData={}),A.formData.accountSettingsFormData={flagCaptionsDefaultOff:b.getFlag(65),flagAutoCaptionsDefaultOn:b.getFlag(66),
flagDisableInlinePreview:b.getFlag(186),flagAudioDescriptionDefaultOn:b.getFlag(198)});if(Q.browseId==="FEwhat_to_watch"){b=_.nD();var f=b.getFlag(196);b.getFlag(197)&&(A.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:f}}})}Q.browseId==="FEwhat_to_watch"&&(Q=_.nD().getFlag(186),A.inlineSettingStatus=Q?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.d.getRequestConfig=function(A,Q){Q=Q===void 0?{}:Q;var b={};if(A=this.JSC$12994_getStoreKey(A,Q))b.storeStrategy={storeKey:A,disableCache:Q.disableCache};_.K("web_log_browse_ticks_ks")||(b.requestTick="br_s",b.responseTick="br_r");return b};var a5=function(){};
_.O(a5,l7);a5.prototype.getApiPaths=function(){return GvW};
a5.prototype.getExtension=function(A){return _.V(A,Hoj)};
a5.prototype.JSC$12987_buildRequest=function(A,Q,b){A.legacyYoutubeChannelUsername=b.legacyYouTubeChannelUsername||"";A.legacyYoutubeChannelPassword=b.legacyYouTubeChannelPassword||""};var T8=function(){};
_.O(T8,l7);T8.prototype.getApiPaths=function(){return LZr};
T8.prototype.getExtension=function(A){return _.V(A,dYN)};
T8.prototype.JSC$12987_buildRequest=function(A,Q,b){b.recaptcha_response_token&&(A.recaptchaResponseToken=b.recaptcha_response_token);b.channel_id&&(A.channelId=b.channel_id)};var dX=function(){};
_.O(dX,l7);dX.prototype.getApiPaths=function(){return HaY};
dX.prototype.getExtension=function(A){return _.V(A,X29)};
dX.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.externalChannelId&&(A.externalChannelId=Q.externalChannelId);b.handle&&(A.handleUpdate={handle:b.handle},Q.handleEditSource&&(A.handleUpdate.handleEditSource=Q.handleEditSource))};var FP=function(){};
_.O(FP,l7);FP.prototype.getApiPaths=function(){return t4N};
FP.prototype.getExtension=function(A){return _.V(A,gpL)};
FP.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.request&&(A.channelId=Q.request.channelId);var f;if(b==null?0:(f=b.uploadDefaults)==null?0:f.emojiReactionSet)A.uploadDefaultsRequest||(A.uploadDefaultsRequest={}),A.uploadDefaultsRequest.emojiReactionSet=b.uploadDefaults.emojiReactionSet};var G8=function(){};
_.O(G8,l7);G8.prototype.getApiPaths=function(){return RR9};
G8.prototype.getExtension=function(A){return _.V(A,FpL)};
G8.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.externalChannelId&&(A.externalChannelId=Q.externalChannelId);Q.channelHandleEntityKey&&(A.channelHandleEntityKey=Q.channelHandleEntityKey);Q.handleEditSource&&(A.handleEditSource=Q.handleEditSource);b.handle?A.handle=b.handle:b.name&&(A.name=b.name)};var BW=function(){};
_.O(BW,l7);BW.prototype.getApiPaths=function(){return PFL};
BW.prototype.getExtension=function(A){return _.V(A,D81)};
BW.prototype.JSC$12987_buildRequest=function(A,Q){Q.actions?A.actions=Q.actions:Q.action&&(A.actions=[Q.action])};var pM=function(){};
_.O(pM,l7);pM.prototype.getApiPaths=function(){return XbL};
pM.prototype.getExtension=function(A){return _.V(A,_.Yo)};
pM.prototype.JSC$12987_buildRequest=function(A,Q){Q.token&&(A.continuation=Q.token)};var PW=function(){};
_.O(PW,l7);PW.prototype.getApiPaths=function(){return EXL};
PW.prototype.getExtension=function(A){return _.V(A,_.Yo)};
PW.prototype.JSC$12987_buildRequest=function(A,Q){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Q.token&&(A.fetchCommentsParams={continuation:Q.token})};var XP=function(){};
_.O(XP,l7);XP.prototype.getApiPaths=function(){return lJ1};
XP.prototype.getExtension=function(A){return _.V(A,Yqp)};
XP.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.createReplyParams&&(A.createReplyParams=Q.createReplyParams);Q.commentText&&(A.commentText=_.mO(Q.commentText));b.comment_text&&(A.commentText=b.comment_text);b.image_blob_id&&(A.imageAttachment={encryptedBlobId:b.image_blob_id});b.botguard_response&&(A.botguardResponse=b.botguard_response)};
_.Qr.Object.defineProperties(XP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SC=function(){};
_.O(SC,l7);SC.prototype.getApiPaths=function(){return KxW};
SC.prototype.getExtension=function(A){return _.V(A,_.yhv)};
SC.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.createCommentParams&&(A.createCommentParams=Q.createCommentParams);Q.commentText&&(A.commentText=_.mO(Q.commentText));Q.videoPositionMention&&(A.videoPositionMention=Q.videoPositionMention);Q.sources&&(A.sources=Q.sources);b.comment_text&&(A.commentText=b.comment_text);b.attached_video_id?A.videoAttachment={videoId:b.attached_video_id}:b.poll_options?A.pollAttachment={choices:b.poll_options}:b.image_blob_id?A.imageAttachment=
{encryptedBlobId:b.image_blob_id}:b.shared_post_id&&(A.sharedPostAttachment={postId:b.shared_post_id});b.access_restrictions&&typeof b.access_restrictions==="number"&&(Q=b.access_restrictions,A.accessRestrictions={restriction:Q!==1&&Q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});b.botguard_response&&(A.botguardResponse=b.botguard_response)};
_.Qr.Object.defineProperties(SC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ug=function(){};
_.O(Ug,l7);Ug.prototype.getApiPaths=function(){return CVM};
Ug.prototype.getExtension=function(A){return _.V(A,NE9)};
Ug.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.commentText&&(A.replyText=_.mO(Q.commentText));b.comment_text&&(A.replyText=b.comment_text);A.updateReplyParams=Q.updateReplyParams};
_.Qr.Object.defineProperties(Ug.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LM=function(){};
_.O(LM,l7);LM.prototype.getApiPaths=function(){return qPx};
LM.prototype.getExtension=function(A){return _.V(A,$8Y)};
LM.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.commentText&&(A.commentText=_.mO(Q.commentText));b.comment_text&&(A.commentText=b.comment_text);A.updateCommentParams=Q.updateCommentParams};
_.Qr.Object.defineProperties(LM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var M4=function(){};
_.O(M4,l7);M4.prototype.getApiPaths=function(){return oJW};
M4.prototype.getExtension=function(A){return _.V(A,tVN)};
M4.prototype.JSC$12987_buildRequest=function(A,Q){Q.settings&&(A.settings=Q.settings)};var lk=function(){};
_.O(lk,l7);lk.prototype.getApiPaths=function(){return jE$};
lk.prototype.getExtension=function(A){return _.V(A,GsW)};
lk.prototype.JSC$12987_buildRequest=function(A,Q){Q.channelCreationToken&&(A.channelCreationToken=Q.channelCreationToken);Q.source&&(A.source=Q.source)};var KM=function(){};
_.O(KM,l7);KM.prototype.getApiPaths=function(){return MGj};
KM.prototype.getExtension=function(A){return _.V(A,P9W)};
KM.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;if(b.name&&(b.given_name||b.family_name))A=new _.IO("channel creation cannot set both GAIA and YouTube names",Q),_.en(A);else{if(Q.zeroStepChannelCreationParams){if(!b.comment_text){A=new _.IO("zero_step_create_comment_params but no zero_step_texts",Q);_.en(A);return}A.zeroStepChannelCreationParams=Q.zeroStepChannelCreationParams;A.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
b.comment_text,b.botguard_response&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=b.botguard_response))}A.channelCreationToken=Q.channelCreationToken;b.given_name&&(A.givenName=b.given_name);b.family_name&&(A.familyName=b.family_name);Q.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(A.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(b.name||b.handle||b.avatar_url||b.encryptedBlobId||b.isNameChanged!==void 0||b.isHandleChanged!==void 0||b.isDefaultProfilePhoto!==
void 0||b.obakeImageSource)A.overrideChannelCreationParams={},b.name&&(A.overrideChannelCreationParams.name=b.name),b.handle&&(A.overrideChannelCreationParams.handle=b.handle),b.avatar_url&&(A.overrideChannelCreationParams.avatarUrl=b.avatar_url),b.encryptedBlobId&&(A.overrideChannelCreationParams.blobEncryptionId=b.encryptedBlobId),b.enableIdentityForAllChannelCreationDialog&&(b.encryptedBlobId?A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
b.isDefaultProfilePhoto!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=b.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),b.isNameChanged!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationNameTag=b.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),b.isHandleChanged!==
void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=b.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),b.obakeImageSource&&(A.overrideChannelCreationParams.obakeImageSourceType=b.obakeImageSource))}};var ik=function(){};
_.O(ik,l7);ik.prototype.getApiPaths=function(A){return(A=this.getExtension(A))&&A.status==="DISLIKE"?IJW:A&&A.status==="INDIFFERENT"?pFv:sEM};
ik.prototype.getExtension=function(A){return _.V(A,_.up)};
ik.prototype.JSC$12987_buildRequest=function(A,Q){Q.target&&(A.target=Q.target);if(Q=this.getParams(Q))A.params=Q};
ik.prototype.getParams=function(A){switch(A==null?void 0:A.status){case "DISLIKE":return A.dislikeParams;case "INDIFFERENT":return A.removeLikeParams;default:return A==null?void 0:A.likeParams}};var JB=function(){};
_.O(JB,l7);JB.prototype.getApiPaths=function(){return JCL};
JB.prototype.getExtension=function(A){return _.V(A,fX1)};
JB.prototype.JSC$12987_buildRequest=function(A,Q){Q.settingItemId&&(A.settingItemId=Q.settingItemId);Q.stringValue!=null&&Q.stringValue!==void 0?A.newValue={stringValue:Q.stringValue}:Q.intValue?A.newValue={intValue:Q.intValue}:Q.boolValue!==null&&Q.boolValue!==void 0?A.newValue={boolValue:Q.boolValue}:(A=new _.IO("Unknown value type for SetSettingEndpoint.",Q),_.en(A))};var VS=function(){};
_.O(VS,l7);VS.prototype.getApiPaths=function(){return Oa$};
VS.prototype.getExtension=function(A){return _.V(A,JYr)||void 0};
VS.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.channelIds&&(A.channelIds=Q.channelIds);Q.siloName&&(A.siloName=Q.siloName);Q.params&&(A.params=Q.params);b.botguardResponse&&(A.botguardResponse=b.botguardResponse);b.feature&&(A.clientFeature=b.feature)};
_.Qr.Object.defineProperties(VS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Og=function(){};
_.O(Og,l7);Og.prototype.getApiPaths=function(){return kTr};
Og.prototype.getExtension=function(A){return _.V(A,aXy)||void 0};
Og.prototype.JSC$12987_buildRequest=function(A,Q){Q.channelIds&&(A.channelIds=Q.channelIds);Q.siloName&&(A.siloName=Q.siloName);Q.params&&(A.params=Q.params)};
_.Qr.Object.defineProperties(Og.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nM=function(A){this.shareClientParamsProvider=A};
_.O(nM,l7);nM.prototype.getApiPaths=function(){return QGe};
nM.prototype.getExtension=function(A){return _.V(A,jJM)||_.V(A,_.RtL)||_.V(A,r7L)};
nM.prototype.JSC$12987_buildRequest=function(A,Q){Q.serializedShareEntity&&(A.serializedSharedEntity=Q.serializedShareEntity);if(Q.clientParamIdentifier){var b;if((b=this.shareClientParamsProvider)==null?0:b.clientParams.has(Q.clientParamIdentifier)){b=this.shareClientParamsProvider;Q=Q.clientParamIdentifier;var f=b.clientParams.get(Q);f&&b.clientParams.delete(Q);A.clientParams=f}}};
nM[aW]=[QCx];var kc=function(){};
_.O(kc,l7);kc.prototype.getApiPaths=function(){return TSL};
kc.prototype.getExtension=function(A){return _.V(A,h91)};
kc.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var I5=function(){};
_.O(I5,l7);I5.prototype.getApiPaths=function(){return HVY};
I5.prototype.getExtension=function(A){return _.V(A,R9$)};
I5.prototype.JSC$12987_buildRequest=function(A,Q){Q.dismissal&&(A.items=[Q.dismissal])};
_.Qr.Object.defineProperties(I5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HW=function(){};
_.O(HW,l7);HW.prototype.getApiPaths=function(){return $Cv};
HW.prototype.getExtension=function(A){return _.V(A,_.WZ)||void 0};
HW.prototype.JSC$12987_buildRequest=function(A,Q,b){A.feedbackTokens=[];Q.feedbackToken&&A.feedbackTokens.push(Q.feedbackToken);if(Q=Q.cpn||b.cpn)A.feedbackContext={cpn:Q};A.isFeedbackTokenUnencrypted=!!b.is_feedback_token_unencrypted;A.shouldMerge=!1;b.extra_feedback_tokens&&(A.shouldMerge=!0,A.feedbackTokens=A.feedbackTokens.concat(b.extra_feedback_tokens))};
_.Qr.Object.defineProperties(HW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CM=function(){};
_.O(CM,l7);CM.prototype.getApiPaths=function(){return $Cv};
CM.prototype.getExtension=function(A){return _.V(A,_.li)};
CM.prototype.JSC$12987_buildRequest=function(A,Q,b){b.feedback_tokens&&(A.feedbackTokens=b.feedback_tokens,A.shouldMerge=!0)};
_.Qr.Object.defineProperties(CM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var q4=function(){};
_.O(q4,l7);q4.prototype.getApiPaths=function(){return $Cv};
q4.prototype.getExtension=function(A){return _.V(A,Qef)};
q4.prototype.JSC$12987_buildRequest=function(A,Q){Q.undoToken&&(A.feedbackTokens=[Q.undoToken]);Q.isUndoTokenUnencrypted&&(A.isFeedbackTokenUnencrypted=Q.isUndoTokenUnencrypted)};
_.Qr.Object.defineProperties(q4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var o5=function(){};
_.O(o5,l7);o5.prototype.getApiPaths=function(){return gJK};
o5.prototype.getExtension=function(A){return _.V(A,tpr)};
o5.prototype.JSC$12987_buildRequest=function(A,Q){Q.nextEndpoint&&_.V(Q.nextEndpoint,_.y_)?A.nextEndpoint={urlEndpoint:_.V(Q.nextEndpoint,_.y_)}:Q.nextEndpoint&&_.V(Q.nextEndpoint,_.sv)&&(A.nextEndpoint={watchEndpoint:_.V(Q.nextEndpoint,_.sv)});Q.setRacy&&(A.setRacy=Q.setRacy);Q.setControvercy&&(A.setControvercy=Q.setControvercy)};var tB=function(A){this.JSC$17735_storeWithEntities=A};
_.O(tB,l7);tB.prototype.getApiPaths=function(){return qEY};
tB.prototype.getExtension=function(A){return _.V(A,QWN)};
tB.prototype.JSC$12987_buildRequest=function(A,Q){Q.flowId&&(A.flowId=Q.flowId);Q.targetId&&(A.targetId=Q.targetId);Q.continuation&&(A.continuation=Q.continuation);var b=Q.flowStateEntityKey;if(Q.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&b&&this.JSC$17735_storeWithEntities){var f;if(Q=(f=this.JSC$17735_storeWithEntities.getState())==null?void 0:f.entities)if(f=_.Xg(b).entityType,f=_.Me(Q,f,b))A.flowState=f,A.flowStateEntityKey=b}};
_.Qr.Object.defineProperties(tB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
tB[aW]=[BZ];var NWK=function(){};
_.O(NWK,l7);_.d=NWK.prototype;_.d.getApiPaths=function(){return DCL};
_.d.JSC$12994_getStoreKey=function(){return _.NW("guide")};
_.d.getRequestConfig=function(){var A=this.JSC$12994_getStoreKey(),Q;A&&(Q={storeStrategy:{storeKey:A}});return Q};
_.d.isNavigationCommand=function(){return!0};
_.d.getExtension=function(A){return _.V(A,_.li)};
_.d.JSC$12987_buildRequest=function(A){A.fetchLiveState=!0};var rX=function(){};
_.O(rX,l7);rX.prototype.getApiPaths=function(){return BSK};
rX.prototype.getExtension=function(A){return _.V(A,wVM)};
rX.prototype.JSC$12987_buildRequest=function(){};var jC=function(){};
_.O(jC,l7);jC.prototype.getApiPaths=function(){return pbN};
jC.prototype.getExtension=function(A){return _.V(A,ukL)};
jC.prototype.JSC$12987_buildRequest=function(){};var R5=function(){};
_.O(R5,l7);R5.prototype.getApiPaths=function(){return aJL};
R5.prototype.getExtension=function(A){return _.V(A,_.Yo)};
R5.prototype.JSC$12987_buildRequest=function(A,Q){Q.token&&(A.continuation=Q.token);var b,f;A==null||(b=A.context)==null||(f=b.user)==null||delete f.onBehalfOfUser};
R5.prototype.getRequestConfig=function(A){var Q={},b;if(((b=this.getExtension(A))==null?void 0:b.sessionIndex)!==void 0){var f;Q={authStrategy:{sessionIndex:(f=this.getExtension(A))==null?void 0:f.sessionIndex}}}return Q};var gX=function(){};
_.O(gX,l7);gX.prototype.JSC$12987_getRequest=function(A){var Q=this.getExtension(A),b=A="";if(Q==null?0:Q.popup)A="true";if(Q==null?0:Q.disableSignout)b="true";Q={};return{input:"/getAccountSwitcherEndpoint",requestShell:$f("/getAccountSwitcherEndpoint","GET",(Q["X-YouTube-Delegation-Context"]=_.vG("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),Q["X-YouTube-Account-Switcher-Popup"]=A,Q["X-YouTube-Account-Switcher-Disable-Signout"]=b,Q)),innerTubeRequest:{}}};
gX.prototype.getApiPaths=function(){return[]};
gX.prototype.getExtension=function(A){return _.V(A,_.oWC)};
gX.prototype.JSC$12987_buildRequest=function(){};var eC=function(){};
_.O(eC,l7);eC.prototype.JSC$12987_getRequest=function(A){var Q="/cross_account_channel_transfer";(A=this.getExtension(A))&&(Q=MTy(Q,{target_session:A.targetSessionIndex,source_rapt:A.sourceRapt,rapt:A.targetRapt}));return{input:Q,requestShell:$f(Q,"GET"),innerTubeRequest:{}}};
eC.prototype.getApiPaths=function(){return[]};
eC.prototype.getExtension=function(A){return _.V(A,CGr)};
eC.prototype.JSC$12987_buildRequest=function(){};var hB=function(){};
_.O(hB,l7);hB.prototype.getApiPaths=function(){return oXL};
hB.prototype.isNavigationCommand=function(){return!0};
hB.prototype.getExtension=function(A){return _.V(A,_.li)};
hB.prototype.JSC$12987_buildRequest=function(A){var Q=_.nD().get("gsml","");Q&&(A.safetyModeLockerObfuscatedGaiaId=Q);A.userInterfaceTheme=_.jL(!0);_.Rz()?A.deviceTheme="DEVICE_THEME_SELECTED":_.l_e()?A.deviceTheme="DEVICE_THEME_SUPPORTED":A.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var WW=function(){};
_.O(WW,l7);WW.prototype.getApiPaths=function(){return aJL};
WW.prototype.getExtension=function(A){return _.V(A,qJ1)};
WW.prototype.JSC$12987_buildRequest=function(A,Q){if(Q&&Q.requestType&&(A.requestType=Q.requestType,Q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||Q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var b=Q.nextUrl;b&&(_.KEi(b)||A$(b))&&(A.nextNavendpoint={urlEndpoint:{url:b}})}Q&&Q.channelSwitcherQuery&&(A.channelSwitcherQuery=Q.channelSwitcherQuery);Q&&Q.triggerChannelCreation&&(A.triggerChannelCreation=Q.triggerChannelCreation);var f;if(Q==null?0:(f=Q.contentOwnerConfig)==
null?0:f.externalContentOwnerId)A.contentOwnerConfig=Q.contentOwnerConfig;A.callCircumstance=Q&&Q.requestType&&Q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var a,T;Q=A==null?void 0:(a=A.context)==null?void 0:(T=a.user)==null?void 0:T.onBehalfOfUser;if(Q!==void 0){A.obfuscatedSelectedGaiaId=Q;var G,p;A==null||(G=A.context)==null||(p=G.user)==null||delete p.onBehalfOfUser}var P,U;if(a=A==null?void 0:(P=A.context)==null?void 0:(U=P.user)==null?
void 0:U.serializedDelegationContext)A.selectedSerializedDelegationContext=a};var vW=function(){};
_.O(vW,l7);vW.prototype.getApiPaths=function(){return dCy};
vW.prototype.getExtension=function(A){return _.V(A,gtp)};
vW.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var Eg=function(){};
_.O(Eg,l7);Eg.prototype.getApiPaths=function(){return Lxx};
Eg.prototype.getExtension=function(A){return _.V(A,_.DFY)};
Eg.prototype.JSC$12987_buildRequest=function(A,Q){if(Q=Q.createBroadcastRequest)A.useMasks=Q.useMasks,A.broadcastType=Q.broadcastType,A.broadcastSource=Q.broadcastSource,A.broadcastMetadata=Q.broadcastMetadata,A.broadcastMetadataMask=Q.broadcastMetadataMask,A.videoMetadata=Q.videoMetadata,A.videoMetadataMask=Q.videoMetadataMask,A.liveChatSettingsUpdate=Q.liveChatSettingsUpdate,A.liveChatSettingsUpdateMask=Q.liveChatSettingsUpdateMask,A.cloneVideoId=Q.cloneVideoId,A.cloneWithOverrides=Q.cloneWithOverrides,
A.targetEntity=Q.targetEntity,A.scheduledRedirectMetadata=Q.scheduledRedirectMetadata};var xc=function(){};
_.O(xc,l7);xc.prototype.getApiPaths=function(){return iV1};
xc.prototype.getExtension=function(A){return _.V(A,z$j)};
xc.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.params&&(A.params=Q.params);b.questionText&&(A.questionText=b.questionText);b.optionText&&b.optionText.length>0&&(A.optionText=b.optionText)};var cW=function(){};
_.O(cW,l7);cW.prototype.getApiPaths=function(){return OVY};
cW.prototype.getExtension=function(A){return _.V(A,x$M)};
cW.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var z8=function(){};
_.O(z8,l7);z8.prototype.getApiPaths=function(){return gXW};
z8.prototype.getExtension=function(A){return _.V(A,h$j)};
z8.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var wX=function(){};
_.O(wX,l7);wX.prototype.getApiPaths=function(){return h0M};
wX.prototype.getExtension=function(A){return _.V(A,W2L)};
wX.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.params&&(A.params=Q.params);Q.continuation&&(A.continuation=Q.continuation);b.currentPlayerState&&b.currentPlayerState.playerOffsetMs&&(A.currentPlayerState={playerOffsetMs:b.currentPlayerState.playerOffsetMs.toString()})};var uk=function(){};
_.O(uk,l7);uk.prototype.getApiPaths=function(){return WxL};
uk.prototype.getExtension=function(A){return _.V(A,e$Y)};
uk.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.params&&(A.params=Q.params);b.continuation&&(A.continuation=b.continuation);"hidden"in b&&(A.webClientInfo={isDocumentHidden:b.hidden});b.isInvalidationTimeoutRequest&&(A.isInvalidationTimeoutRequest=b.isInvalidationTimeoutRequest);b.invalidationPayload&&(Q=g4p(_.$C(Qb(b.invalidationPayload))),A.invalidationPayloadLastPublishAtUsec=hr(Q,2));b.reloadActionPanel&&(A.reloadActionPanel=b.reloadActionPanel);b.fullReload&&(A.fullReload=b.fullReload);
b.currentPlayerState&&(A.currentPlayerState=b.currentPlayerState)};var ZE=function(){};
_.O(ZE,l7);ZE.prototype.getApiPaths=function(){return mCx};
ZE.prototype.getExtension=function(A){return _.V(A,cV9)};
ZE.prototype.JSC$12987_buildRequest=function(A,Q){A.params=Q.params};var yS=function(){};
_.O(yS,l7);yS.prototype.getApiPaths=function(){return e0y};
yS.prototype.getExtension=function(A){return _.V(A,N7j)};
yS.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var Yc=function(){};
_.O(Yc,l7);Yc.prototype.getApiPaths=function(){return vXp};
Yc.prototype.getExtension=function(A){return _.V(A,sJL)};
Yc.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var DE=function(){};
_.O(DE,l7);DE.prototype.getApiPaths=function(){return ACW};
DE.prototype.getExtension=function(A){return _.V(A,wBY)};
DE.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var $c=function(){};
_.O($c,l7);$c.prototype.getApiPaths=function(){return baj};
$c.prototype.getExtension=function(A){return _.V(A,u19)};
$c.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var aU=function(){};
_.O(aU,l7);aU.prototype.getApiPaths=function(){return PVL};
aU.prototype.getExtension=function(A){return _.V(A,W6$)};
aU.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var Tt=function(){};
_.O(Tt,l7);Tt.prototype.getApiPaths=function(){return KZL};
Tt.prototype.getExtension=function(A){return _.V(A,_.ZU9)};
Tt.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.params&&(A.params=Q.params);b.client_message_id&&(A.clientMessageId=b.client_message_id);b.recaptcha_token&&(A.recaptchaToken=b.recaptcha_token);b.rich_message&&b.rich_message.text_segments?(Q=b.rich_message.text_segments.map(function(f){var a={};f.text&&(a.text=f.text);f.emoji_id&&(a.emojiId=f.emoji_id);return a}),A.richMessage={textSegments:Q}):b.message&&(A.message=b.message);
b.currentPlayerState&&(A.currentPlayerState=b.currentPlayerState)};var dZ=function(){};
_.O(dZ,l7);dZ.prototype.getApiPaths=function(){return ia9};
dZ.prototype.getExtension=function(A){return _.V(A,yV$)};
dZ.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var Fy=function(){};
_.O(Fy,l7);Fy.prototype.getApiPaths=function(){return nJv};
Fy.prototype.getExtension=function(A){return _.V(A,D$9)};
Fy.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.isUserInitiated&&(A.isUserInitiated=Q.isUserInitiated);Q.initiationSource&&(A.initiationSource=Q.initiationSource);b.locationInfo&&(A.context.client.locationInfo=b.locationInfo)};var Gt=function(){};
_.O(Gt,l7);Gt.prototype.getApiPaths=function(){return QSY};
Gt.prototype.getExtension=function(A){return _.V(A,$F1)};
Gt.prototype.JSC$12987_buildRequest=function(A,Q,b){Q.metadataUpdateRequest&&(Q=Q.metadataUpdateRequest,A.encryptedVideoId=Q.encryptedVideoId,Q.liveChat&&(Q=Q.liveChat,A.liveChat||(A.liveChat={}),Q.performAsExternalChannelId&&(A.liveChat.performAsExternalChannelId=Q.performAsExternalChannelId),Q.source&&(A.liveChat.source=Q.source)));var f;if(b==null?0:(f=b.liveChat)==null?0:f.liveChatSettings)A.liveChat||(A.liveChat={}),b=b.liveChat.liveChatSettings,A.liveChat.newLiveChatSettings=b,A.liveChat.newLiveChatSettingsMask||
(A.liveChat.newLiveChatSettingsMask={}),b.emojiReactionSet&&(A.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var BP=function(){};
_.O(BP,l7);BP.prototype.getApiPaths=function(){return jSM};
BP.prototype.getExtension=function(A){return _.V(A,_.Tlv)};
BP.prototype.JSC$12987_buildRequest=function(A,Q,b){b.continuation?A.continuation=b.continuation:Q.videoId&&(A.videoId=Q.videoId);b.clientParams&&(A.clientParams=b.clientParams)};var pR=function(){};
_.O(pR,l7);pR.prototype.getApiPaths=function(){return EXL};
pR.prototype.getExtension=function(A){return _.V(A,_.Eq)};
pR.prototype.JSC$12987_buildRequest=function(A,Q){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";A.fetchCommentsParams={};Q.videoId&&(A.fetchCommentsParams.encryptedVideoId=Q.videoId);Q.postId&&(A.fetchCommentsParams.postId=Q.postId);Q.externalChannelId&&(A.fetchCommentsParams.externalChannelId=Q.externalChannelId);Q.linkedCommentId&&(A.fetchCommentsParams.linkedCommentId=Q.linkedCommentId);(0,_.j2.isEmpty)(A.fetchCommentsParams)&&delete A.fetchCommentsParams};var PP=function(){};
_.O(PP,l7);PP.prototype.getApiPaths=function(){return Ab};
PP.prototype.JSC$12987_buildRequest=function(A){A.browseId="FEnotifications_inbox"};
PP.prototype.getExtension=function(A){return _.V(A,_.li)};var Xy=function(){};
_.O(Xy,l7);Xy.prototype.getApiPaths=function(){return EXL};
Xy.prototype.JSC$12987_buildRequest=function(A,Q){Q.signal==="GET_NOTIFICATIONS_MENU"&&(A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");Q.ctoken&&(A.ctoken=Q.ctoken)};
var s9t=function(){};
_.O(s9t,Xy);s9t.prototype.getExtension=function(A){return _.V(A,_.li)};
var mfl=function(){};
_.O(mfl,Xy);mfl.prototype.getExtension=function(A){return _.V(A,C1M)};var Sm=function(){};
_.O(Sm,l7);Sm.prototype.getApiPaths=function(){return ZVv};
Sm.prototype.getExtension=function(A){return _.V(A,_.li)};
Sm.prototype.JSC$12987_buildRequest=function(){};var Um=function(){};
_.O(Um,l7);Um.prototype.getApiPaths=function(){return f_Y};
Um.prototype.getExtension=function(A){return _.V(A,AYY)||void 0};
Um.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params);Q.secondaryParams&&(A.secondaryParams=Q.secondaryParams)};var LR=function(){};
_.O(LR,l7);LR.prototype.getApiPaths=function(){return a_p};
LR.prototype.getExtension=function(A){return _.V(A,et1)};
LR.prototype.JSC$12987_buildRequest=function(A,Q){Q.undo&&(A.undo=Q.undo);Q.serializedOptOut&&(A.serializedOptOut=Q.serializedOptOut);Q.serializedRecordInteractionsRequest&&(A.serializedRecordInteractionsRequest=Q.serializedRecordInteractionsRequest)};var My=function(){};
_.O(My,l7);My.prototype.getApiPaths=function(){return FZK};
My.prototype.getExtension=function(A){return _.V(A,htv)};
My.prototype.JSC$12987_buildRequest=function(A,Q){Q.serializedInteractionsRequest&&(A.serializedRecordNotificationInteractionsRequest=Q.serializedInteractionsRequest)};var lK=function(){};
_.O(lK,l7);lK.prototype.getApiPaths=function(){return bye};
lK.prototype.getExtension=function(A){return _.V(A,Wqy)};
lK.prototype.JSC$12987_buildRequest=function(A,Q,b){Q=Q===void 0?{}:Q;b=b===void 0?{}:b;Q.videoId?A.videoId=Q.videoId:Q.playlistId&&(A.playlistId=Q.playlistId);var f,a=(f=Q.offlineWebClientEligibility)!=null?f:b.offlineWebClientEligibility;a&&(A.offlineWebClientEligibility=a);var T;if(f=(T=Q.preferredFormatType)!=null?T:b.preferredFormatType)A.preferredFormatType=f;var G;if(T=(G=Q.lastOfflineQualitySettingsSavedMs)!=null?G:b.lastOfflineQualitySettingsSavedMs)A.lastOfflineQualitySettingsSavedMs=T;
Q.params&&(A.params=Q.params)};var KR=function(){};
_.O(KR,l7);KR.prototype.getApiPaths=function(){return aR};
KR.prototype.getExtension=function(A){return _.V(A,_.Yo)};
KR.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.token&&(A.continuation=Q.token);b.formData&&(A.formData=b.formData)};var iK=function(){};
_.O(iK,l7);iK.prototype.getApiPaths=function(){return aR};
iK.prototype.getExtension=function(A){return _.V(A,wTY)};
iK.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;A.continuation=b.continuation};var JW=function(){};
_.O(JW,l7);JW.prototype.getApiPaths=function(){return aR};
JW.prototype.getExtension=function(A){return _.V(A,_.hb)};
JW.prototype.JSC$12987_buildRequest=function(A,Q){var b,f=Q.panelIdentifier||((b=Q.identifier)==null?void 0:b.tag);f&&(A.panelId=f);var a;if((a=Q.globalConfiguration)==null?0:a.params){var T;A.params=(T=Q.globalConfiguration)==null?void 0:T.params}};
_.Qr.Object.defineProperties(JW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vc=function(){};
_.O(Vc,l7);Vc.prototype.getApiPaths=function(){return aR};
Vc.prototype.getExtension=function(A){return _.V(A,ngL)};
Vc.prototype.JSC$12987_buildRequest=function(A,Q){Q.panelLoadingStrategy&&mhb(A,Q.panelLoadingStrategy)};var Om=function(){};
_.O(Om,l7);Om.prototype.getApiPaths=function(){return aR};
Om.prototype.getExtension=function(A){return _.V(A,Yzx)};
Om.prototype.JSC$12987_buildRequest=function(A,Q){Q.loadingStrategy&&mhb(A,Q.loadingStrategy)};var nR=function(){};
_.O(nR,l7);nR.prototype.getApiPaths=function(){return aR};
nR.prototype.getExtension=function(A){return _.V(A,_.C6)};
nR.prototype.JSC$12987_buildRequest=function(A,Q){Q.panelLoadingStrategy&&mhb(A,Q.panelLoadingStrategy)};var kW=function(){};
_.O(kW,l7);kW.prototype.getApiPaths=function(){return aR};
kW.prototype.getExtension=function(A){return _.V(A,DX1)};
kW.prototype.JSC$12987_buildRequest=function(A,Q){var b,f=(b=Q.contentSourcePanelIdentifier)==null?void 0:b.tag;f&&(A.panelId=f);var a;if((a=Q.globalConfiguration)==null?0:a.params){var T;A.params=(T=Q.globalConfiguration)==null?void 0:T.params}};var IU=function(){};
_.O(IU,l7);IU.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
IU.prototype.getExtension=function(A){return _.V(A,$XK)};
IU.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var HP=function(){};
_.O(HP,l7);HP.prototype.getApiPaths=function(){return rCj};
HP.prototype.getExtension=function(A){return _.V(A,mXr)};
HP.prototype.JSC$12987_buildRequest=function(A,Q){Q.externalChannelId&&(A.externalChannelId=Q.externalChannelId);Q.superChatAction&&(A.superChatAction=Q.superChatAction);Q.superStickersAction&&(A.superStickersAction=Q.superStickersAction)};var CR=function(){};
_.O(CR,l7);CR.prototype.getApiPaths=function(){return tG$};
CR.prototype.getExtension=function(A){return _.V(A,zOL)||_.V(A,EWe)};
CR.prototype.JSC$12987_buildRequest=function(A,Q){Q.videoIds?A.videoIds=Q.videoIds:Q.videoId&&(A.videoIds=[Q.videoId]);Q.playlistId&&(A.playlistId=Q.playlistId);Q.params&&(A.params=Q.params);A.excludeWatchLater=!1};var qy=function(){};
_.O(qy,l7);qy.prototype.getApiPaths=function(){return JFM};
qy.prototype.getExtension=function(A){return _.V(A,_.yg)};
qy.prototype.JSC$12987_buildRequest=function(A,Q,b){b.create_playlist_title?A.title=b.create_playlist_title:Q.title&&(A.title=Q.title);if(b.create_playlist_privacy_status&&typeof b.create_playlist_privacy_status==="number"){a:{var f=b.create_playlist_privacy_status;if(f!==0){if(f===1){f="PUBLIC";break a}if(f===2){f="UNLISTED";break a}}f="PRIVATE"}A.privacyStatus=f}else Q.privacyStatus&&(A.privacyStatus=Q.privacyStatus);b.create_playlist_description&&(A.description=b.create_playlist_description);Q.videoIds&&
(A.videoIds=Q.videoIds);Q.params&&(A.params=Q.params);Q.sourcePlaylistId&&(A.sourcePlaylistId=Q.sourcePlaylistId)};var oU=function(){};
_.O(oU,l7);oU.prototype.getApiPaths=function(){return nXy};
oU.prototype.getExtension=function(A){return _.V(A,sAK)};
oU.prototype.JSC$12987_buildRequest=function(A,Q){A.playlistId=Q.playlistId};var tW=function(){};
_.O(tW,l7);tW.prototype.getApiPaths=function(){return xCY};
tW.prototype.getExtension=function(A){return _.V(A,ot$)};
tW.prototype.JSC$12987_buildRequest=function(A,Q){Q.playlistId&&(A.playlistId=Q.playlistId);Q.params&&(A.params=Q.params)};var rZ=function(){};
_.O(rZ,l7);rZ.prototype.getApiPaths=function(){return d69};
rZ.prototype.getExtension=function(A){return _.V(A,_.xj)||void 0};
rZ.prototype.JSC$12987_buildRequest=function(A,Q){Q.actions&&(A.actions=Q.actions);Q.params&&(A.params=Q.params);Q.playlistId&&(A.playlistId=Q.playlistId)};var jm=function(){};
_.O(jm,l7);_.d=jm.prototype;_.d.getApiPaths=function(){return GTj};
_.d.getExtension=function(A){return _.V(A,_.CT)};
_.d.JSC$12987_buildRequest=function(A,Q){Q.videoId&&(A.playerRequest={videoId:Q.videoId},Q.playerParams&&(A.playerRequest.params=Q.playerParams),Q.racyCheckOk&&(A.playerRequest.racyCheckOk=!!Q.racyCheckOk),Q.contentCheckOk&&(A.playerRequest.contentCheckOk=!!Q.contentCheckOk));Q.params&&(A.params=Q.params);Q.inputType&&(A.inputType=Q.inputType);A.disablePlayerResponse=!0};
_.d.getRequestConfig=function(A){var Q;(A=this.JSC$12994_getStoreKey(A))&&(Q={storeStrategy:{storeKey:A}});_.K("web_log_reels_ticks")&&(Q=Q||{},Q.requestTick="r_wrs",Q.responseTick="r_wrr");return Q};
_.d.JSC$12994_getStoreKey=function(A){A=this.getExtension(A);if(_.K("shorts_controller_retrieve_seedless_sequence_v2")){if((A==null?void 0:A.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.NW("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.K("web_shorts_prefetch_service_enabled")&&A!=null&&A.videoId){var Q={videoId:A.videoId};A.params&&(Q.params=A.params);return _.NW("reel_item_watch",Q)}};var RU=function(){};
_.O(RU,l7);_.d=RU.prototype;_.d.getApiPaths=function(){return B8x};
_.d.getExtension=function(A){return _.V(A,_.CT)};
_.d.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;A.sequenceParams=Q.sequenceParams;var f;((f=b)==null?0:f.contentPlaybackContext)&&_.K("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:b.contentPlaybackContext})};
_.d.JSC$12994_getStoreKey=function(A){if(_.K("web_enable_delay_shorts_sequence_call")||_.K("shorts_controller_retrieve_seedless_sequence_v2"))if(A=this.getExtension(A),A==null?0:A.sequenceParams)return _.NW("reel_watch_sequence",{sequenceParams:A.sequenceParams})};
_.d.getRequestConfig=function(A){A=this.JSC$12994_getStoreKey(A);var Q;A&&(Q={storeStrategy:{storeKey:A}});_.K("reel_watch_sequence_request_log_ticks")&&(Q=Q||{},Q.requestTick="r_wsrs",Q.responseTick="r_wsrr",Q.processorTick="r_wsrp");return Q};
var gZ=function(){};
_.O(gZ,l7);gZ.prototype.getApiPaths=function(){return B8x};
gZ.prototype.getExtension=function(A){return _.V(A,_.Yo)};
gZ.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.token&&(A.continuation=Q.token);var f;((f=b)==null?0:f.contentPlaybackContext)&&_.K("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:b.contentPlaybackContext})};
gZ.prototype.getRequestConfig=function(A){A=this.JSC$12994_getStoreKey(A);var Q;A&&(Q={storeStrategy:{storeKey:A}});_.K("reel_watch_sequence_request_log_ticks")&&(Q=Q||{},Q.requestTick="r_wsrs",Q.responseTick="r_wsrr",Q.processorTick="r_wsrp");return Q};var em=function(){};
_.O(em,l7);em.prototype.getApiPaths=function(){return CFM};
em.prototype.getExtension=function(A){return _.V(A,_.AVr)};
em.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.flagAction&&(A.action=Q.flagAction);Q.flagRequestType&&(A.flagRequestType=Q.flagRequestType);Q.additionalDetailCheckboxChecked&&(A.additionalDetailCheckboxChecked=Q.additionalDetailCheckboxChecked);Q.legalCheckboxChecked&&(A.legalCheckboxChecked=Q.legalCheckboxChecked);Q={};b.flag_issue_type!==void 0&&(Q.issue=b.flag_issue_type);b.flag_affiliation!==void 0&&(Q.affiliation=b.flag_affiliation);b.flag_full_name&&(Q.fullName=b.flag_full_name);
Object.keys(Q).length&&(A.legalReportDetails=Q);if(b.flag_description||b.text)A.userComments=b.flag_description||b.text;Q={};b.minutes!==void 0&&b.seconds!==void 0&&(Q.minutes=b.minutes,Q.seconds=b.seconds);b.vss_id&&(Q.vssId=b.vss_id);Object.keys(Q).length&&(A.videoReportDetails=Q);Q={};b.video_ids&&(Q.videoIds=b.video_ids);b.impersonated_channel_url&&(Q.impersonatedChannelUrl=b.impersonated_channel_url);Object.keys(Q).length&&(A.channelAbuseReportDetails=Q)};
_.Qr.Object.defineProperties(em.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hW=function(){};
_.O(hW,l7);hW.prototype.getApiPaths=function(){return R0x};
hW.prototype.getExtension=function(A){return _.V(A,IQK)};
hW.prototype.JSC$12987_buildRequest=function(A,Q){Q.blockedForKidsContent&&(A.blockedForKidsContent=Q.blockedForKidsContent)};var WP=function(){};
_.O(WP,l7);WP.prototype.getApiPaths=function(){return XF$};
WP.prototype.getExtension=function(A){return _.V(A,vWU)};
WP.prototype.JSC$12987_buildRequest=function(A,Q,b){A.params=Q.params;b.impersonated_channel_url&&(A.impersonatedChannelUrl=b.impersonated_channel_url)};var vP=function(){};
_.O(vP,l7);vP.prototype.getApiPaths=function(){return NSN};
vP.prototype.getExtension=function(A){return _.V(A,_.HUv)};
vP.prototype.JSC$12987_buildRequest=function(A,Q){Q.items&&(A.items=Q.items);Q.kidGaiaId&&(A.kidGaiaId=Q.kidGaiaId)};var Em=function(){};
_.O(Em,l7);Em.prototype.getApiPaths=function(){return rF$};
Em.prototype.getExtension=function(A){return _.V(A,_.x8p)};
Em.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params);Q.targetId&&(A.targetId=Q.targetId)};var xW=function(){};
_.O(xW,l7);xW.prototype.getApiPaths=function(){return M4j};
xW.prototype.getExtension=function(A){return _.V(A,qfj)};
xW.prototype.JSC$12987_buildRequest=function(A,Q){Q.externalVideoId&&(A.externalVideoId=Q.externalVideoId);Q.query&&(A.query=Q.query);Q.sourceTimelines&&(A.sourceTimelines=Q.sourceTimelines)};var cP=function(){};
_.O(cP,l7);cP.prototype.getApiPaths=function(){return l_M};
cP.prototype.getExtension=function(A){return _.V(A,_.Yo)||void 0};
cP.prototype.JSC$12987_buildRequest=function(A,Q){Q.token&&(A.continuation=Q.token)};
_.Avx=function(){};
_.O(_.Avx,l7);_.d=_.Avx.prototype;_.d.getApiPaths=function(){return l_M};
_.d.getExtension=function(A){return _.V(A,_.kr)||void 0};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$12994_getStoreKey=function(A,Q){Q=Q===void 0?{}:Q;if(!Q.disableCache&&(A=this.getExtension(A))&&A.query)return Q={query:A.query},A.params&&(Q.params=A.params),_.NW("search",Q)};
_.d.JSC$12987_buildRequest=function(A,Q,b){Q.query&&(A.query=Q.query);Q.params&&(A.params=Q.params);if(!_.K("web_forward_suggest_stats_killswitch")){var f=_.V(Q,ObK);f&&(A.suggestStats=f)}var a;!_.K("kevlar_searchbox_stats_killswitch")&&((a=b.tempData)==null?0:a.gs_l)&&!_.V(Q,ObK)&&(A.webSearchboxStatsUrl="/search?oq="+(b.tempData.oq||"")+"&gs_l="+b.tempData.gs_l);var T;if((T=b.tempData)==null?0:T.entityMid)Q=A.suggestionSearchParams||{},Q.entityMid=b.tempData.entityMid,A.suggestionSearchParams=Q;
if(_.K("enable_desktop_vdcbg_components")||_.K("enable_inline_muted_playback_on_web_search"))b=_.nD().getFlag(186),A.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.d.getRequestConfig=function(A,Q){Q=Q===void 0?{}:Q;A=this.JSC$12994_getStoreKey(A,Q);var b;A&&(b={storeStrategy:{storeKey:A}});_.K("web_log_search_ticks_ks")||(b=b||{},b.requestTick="sr_s",b.responseTick="sr_r");return b};var zt=function(){};
_.O(zt,l7);zt.prototype.getApiPaths=function(){return wbj};
zt.prototype.getExtension=function(A){return _.V(A,p1x)};
zt.prototype.JSC$12987_buildRequest=function(A,Q){Q.serializedGetSharingProviderDataParams&&(A.serializedGetSharingProviderDataParams=Q.serializedGetSharingProviderDataParams)};var wZ=function(){};
_.O(wZ,l7);wZ.prototype.getApiPaths=function(){return uJ9};
wZ.prototype.getExtension=function(A){return _.V(A,DAK)};
wZ.prototype.JSC$12987_buildRequest=function(A,Q){Q.endpoint&&(A.endpoint=Q.endpoint);Q.action&&(A.action=Q.action)};var uK=function(){};
_.O(uK,l7);uK.prototype.getApiPaths=function(){return kvN};
uK.prototype.getExtension=function(A){return _.V(A,m8$)};
uK.prototype.JSC$12987_buildRequest=function(A,Q){A.videoId=Q.videoId;Q.scheduledRedirectMetadataSourceVideoId&&(A.scheduledRedirectMetadata={sourceVideoId:Q.scheduledRedirectMetadataSourceVideoId})};var Z2=function(){};
_.O(Z2,l7);Z2.prototype.getApiPaths=function(){return V4x};
Z2.prototype.getExtension=function(A){return _.V(A,_.sav)};
Z2.prototype.JSC$12987_buildRequest=function(A,Q){A.params=Q.params;A.correctionText=Q.correctionText};var yc=function(){};
_.O(yc,l7);yc.prototype.getApiPaths=function(){return m9y};
yc.prototype.getExtension=function(A){return _.V(A,_.oHM)};
yc.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params);A.searchQuery=Q.searchQuery;A.languageCode=Q.languageCode;A.kind=Q.kind;A.name=Q.name;A.externalVideoId=Q.externalVideoId};var YW=function(){};
_.O(YW,l7);YW.prototype.getApiPaths=function(){return hRp};
YW.prototype.getExtension=function(A){return _.V(A,XJv)};
YW.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.params=Q.params)};var D2=function(A){this.JSC$18006_storeWithEntities=A};
_.O(D2,l7);D2.prototype.getApiPaths=function(){return SEL};
D2.prototype.getExtension=function(A){return _.V(A,Ubj)||_.V(A,MqN)};
D2.prototype.JSC$12987_buildRequest=function(A,Q,b){b.client_data&&(A.clientData=b.client_data);if(Q.commerceActionConfig){var f=Q.commerceActionConfig;Q=f.actionId;f=f.commerceActionParams;Q&&(A.actionId=Q);f&&(A.commerceActionParams=f)}else{var a=Q.actionId,T=Q.commerceActionParams;b=Q.entityKeys;a&&(A.actionId=a);T&&(A.commerceActionParams=T);var G;Q=(f=this.JSC$18006_storeWithEntities)==null?void 0:(G=f.getState())==null?void 0:G.entities;if(b&&Q){f=[];G=_.F(b);for(b=G.next();!b.done;b=G.next())if(a=
b.value,b=_.Xg(a).entityType,a=_.Me(Q,b,a))T={},f.push((T[b]=a,T));A.entityMutationPayloads=f}}};
D2.prototype.getRequestConfig=function(A){var Q,b=(Q=_.V(A,Ubj))==null?void 0:Q.requestSequenceType;if(b&&A.clickTrackingParams&&b!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:A.clickTrackingParams,sequenceType:b}}};
D2[aW]=[BZ];var $W=function(){};
_.O($W,l7);$W.prototype.getApiPaths=function(){return WZN};
$W.prototype.getExtension=function(A){return _.V(A,_.gZ9)};
$W.prototype.JSC$12987_buildRequest=function(A,Q){Q.feedbackData&&(A.feedbackData=Q.feedbackData);Q.params&&(A.itemParams=Q.params)};
_.Qr.Object.defineProperties($W.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ny=function(){};
_.O(Ny,l7);Ny.prototype.getApiPaths=function(){return vJy};
Ny.prototype.getExtension=function(A){return _.V(A,eaW)};
Ny.prototype.JSC$12987_buildRequest=function(A,Q,b){b.payments_payload&&(A.paymentsPayload=b.payments_payload);b.offer_params&&(A.offerParams=b.offer_params);Q.transactionParams&&(A.transactionParams=Q.transactionParams)};var sm=function(){};
_.O(sm,l7);sm.prototype.getApiPaths=function(){return EJN};
sm.prototype.getExtension=function(A){return _.V(A,_.haL)};
sm.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.buybucketParams&&(A.buybucketData={params:Q.buybucketParams},Q.stickerParams?A.buybucketData.stickerParams=Q.stickerParams:(b.rich_chat_message?A.buybucketData.richChatMessage=b.rich_chat_message:b.chat_message_text&&(A.buybucketData.chatMessageText=b.chat_message_text),b.purchase_price_micros&&(A.buybucketData.purchasePriceMicros=b.purchase_price_micros.toString())));Q.donationAmountMicros&&(A.tipAmountMicros=Q.donationAmountMicros,
Q.tipParams&&(A.tipParams=Q.tipParams));Q.offerParams&&(A.offerParams=Q.offerParams);Q.productData&&(A.productData=Q.productData);Q.transactionParams&&(A.transactionParams=Q.transactionParams)};var mq=function(){};
_.O(mq,l7);mq.prototype.getApiPaths=function(){return x6L};
mq.prototype.getExtension=function(A){return _.V(A,EZp)};
mq.prototype.JSC$12987_buildRequest=function(A,Q){Q.updateFopParams&&(A.updateFopParams=Q.updateFopParams)};var Aa=function(){};
_.O(Aa,l7);Aa.prototype.getApiPaths=function(){return cCj};
Aa.prototype.getExtension=function(A){return _.V(A,_.Tk)};
Aa.prototype.JSC$12987_buildRequest=function(A,Q){Q.couponCode&&(A.couponCode=Q.couponCode);Q.params&&(A.itemParams=Q.params)};var QC=function(){};
_.O(QC,l7);QC.prototype.getApiPaths=function(){return zR1};
QC.prototype.getExtension=function(A){return _.V(A,_.LDM)};
QC.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;Q.params&&(A.params=Q.params);b.ctk&&(A.clientToken=b.ctk)};var bU=function(A){this.JSC$18041_storeWithEntities=A};
_.O(bU,l7);bU.prototype.getApiPaths=function(){return wFM};
bU.prototype.getExtension=function(A){return _.V(A,_.D6)};
bU.prototype.JSC$12987_buildRequest=function(A,Q,b){b.purchase_price_micros&&(A.productData={pdgData:{purchasePriceMicros:b.purchase_price_micros.toString()}},b.rich_chat_message&&(A.productData.pdgData.richChatMessage=b.rich_chat_message),b.currency_code&&(A.productData.pdgData.currencyCode=b.currency_code));Q.transactionParams&&(A.transactionParams=Q.transactionParams);Q.clientLocationContext&&(A.clientLocationContext=Q.clientLocationContext);b.payments_payload&&(A.paymentsPayload=b.payments_payload);
b.funds_guarantee_callback_client_data&&(A.fundsGuaranteeCallbackClientData=b.funds_guarantee_callback_client_data);var f,a;b=(f=this.JSC$18041_storeWithEntities)==null?void 0:(a=f.getState())==null?void 0:a.entities;if(Q.entityKeys&&b){f=[];Q=_.F(Q.entityKeys);for(a=Q.next();!a.done;a=Q.next()){var T=a.value;a=_.Xg(T).entityType;if(T=_.Me(b,a,T)){var G={};f.push((G[a]=T,G))}}A.entityMutationPayloads=f}};
bU[aW]=[BZ];var fP=function(){};
_.O(fP,l7);fP.prototype.getApiPaths=function(){return uNr};
fP.prototype.getExtension=function(A){return _.V(A,WDy)};
fP.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;b.backend_analytics&&(A.serializedBackendAnalyticsEvent=b.backend_analytics);Q.offerParams&&(A.offerParams=Q.offerParams)};var am=function(){};
_.O(am,l7);am.prototype.getApiPaths=function(){return cCj};
am.prototype.getExtension=function(A){return _.V(A,gei)};
am.prototype.JSC$12987_buildRequest=function(A,Q){Q.params&&(A.itemParams=Q.params)};var Tj=function(){};
_.O(Tj,l7);Tj.prototype.getApiPaths=function(){return Za9};
Tj.prototype.getExtension=function(A){return _.V(A,_.VqN)};
Tj.prototype.JSC$12987_buildRequest=function(A,Q,b){b.resume_time_ms&&(A.resumeTimeMs=b.resume_time_ms);Q.pauseParams&&(A.pauseParams=Q.pauseParams)};var dI=function(){};
_.O(dI,l7);dI.prototype.getApiPaths=function(){return yCL};
dI.prototype.getExtension=function(A){return _.V(A,_.vZN)};
dI.prototype.JSC$12987_buildRequest=function(A,Q,b){b=b===void 0?{}:b;b.c&&(A.redeemCode=b.c);b.rd&&(A.riskData=b.rd);b.ctk&&(A.clientToken=b.ctk)};var F2=function(){};
_.O(F2,l7);F2.prototype.getApiPaths=function(){return YPN};
F2.prototype.getExtension=function(A){return _.V(A,_.O3N)};
F2.prototype.JSC$12987_buildRequest=function(A,Q){Q.resumeParams&&(A.resumeParams=Q.resumeParams)};var Gj=function(A,Q){this.clientName=A;this.defaultExpirationDelayMs=Q};
Gj.prototype.put=function(A,Q){var b=this,f;return _.B(function(a){f=Object.assign({},Q.data);f.key=A;f.clientName=b.clientName;f.expireTimestampMs===void 0&&(f.expireTimestampMs=(Math.round((0,_.f4)())+b.defaultExpirationDelayMs).toString());return a.return(b.putInternal(A,f))})};
Gj[aW]=[vc,GXF];var QyF=function(){Gj.apply(this,arguments);this.JSC$18071_responseStore=new Map};
_.O(QyF,Gj);_.d=QyF.prototype;_.d.get=function(A){var Q=this;return _.B(function(b){return b.return(lV(Q,A))})};
_.d.putInternal=function(A,Q){var b=this,f,a,T;return _.B(function(G){f=b.defaultExpirationDelayMs;Q.expireTimestampMs&&(f=Number(Q.expireTimestampMs)-Math.round((0,_.f4)()),a=_.GP("mweb_override_response_store_expiration_ms"),a>0&&a<f&&(f=a));T=setTimeout(function(){b.remove(A)},f);
b.JSC$18071_responseStore.set(A,{entryData:Q,timer:T});_.Oi(G)})};
_.d.remove=function(A){var Q=this;return _.B(function(b){b$t(Q,A);_.Oi(b)})};
_.d.removeAll=function(){var A=this;return _.B(function(Q){A.JSC$18071_responseStore.forEach(function(b){clearTimeout(b.timer)});
A.JSC$18071_responseStore.clear();_.Oi(Q)})};
_.d.has=function(A){return!!this.JSC$18071_responseStore.get(A)};
_.d.getKeys=function(){return this.JSC$18071_responseStore.keys()};
var lV=function(A,Q){if(A=A.JSC$18071_responseStore.get(Q))return new _.M6(A.entryData)},b$t=function(A,Q){var b=A.JSC$18071_responseStore.get(Q);
b&&(clearTimeout(b.timer),A.JSC$18071_responseStore.delete(Q))};var AmF;var fsb=function(A,Q,b){Gj.call(this,A,Q);this.token=b};
_.O(fsb,Gj);_.d=fsb.prototype;_.d.get=function(A){var Q=this,b,f;return _.B(function(a){return a.nextAddress==1?a.yield(bvY(Q.token),2):a.nextAddress!=3?(b=a.yieldResult,a.yield(b.get("ResponseStore",[A,Q.clientName]),3)):(f=a.yieldResult)?a.return(new _.M6(f)):a.return(void 0)})};
_.d.putInternal=function(A,Q){var b=this,f;return _.B(function(a){if(a.nextAddress==1)return a.yield(bvY(b.token),2);f=a.yieldResult;return a.yield(f.put("ResponseStore",Q),0)})};
_.d.remove=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(bvY(Q.token),2);b=f.yieldResult;return f.return(b.delete("ResponseStore",[A,Q.clientName]))})};
_.d.removeAll=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(bvY(A.token),2);Q=b.yieldResult;return b.yield(ikM(Q,IDBKeyRange.only(A.clientName)),0)})};
_.d.has=function(){throw Error("Wi");};_.Bu=new _.TS("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var fKN=function(A){var Q;this.stateTagsData=(Q=A.responseContext)==null?void 0:Q.stateTags},aKF=function(A){var Q;
return((Q=A.stateTagsData)==null?void 0:Q.stateTagsModified)||[]};var T9N;T9N=function(A){this.JSC$18084_responseStore=A};
_.ya=function(A,Q,b){if(!_.K("state_tags_killswitch")){var f=new fKN(Q);if(aKF(f).length>0){var a=A.JSC$18084_responseStore.getKeys();a=_.F(a);for(var T=a.next();!T.done;T=a.next()){T=T.value;var G=lV(A.JSC$18084_responseStore,T);if(G){var p=_.Fw(G);a:{var P=void 0;G=aKF(f);p=((P=(new fKN(p)).stateTagsData)==null?void 0:P.relevantStateTags)||[];P=_.F(p);for(p=P.next();!p.done;p=P.next())if(p=p.value,p.stateTag!=null&&G.includes(p.stateTag)&&p.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){G=
!0;break a}G=!1}G&&b$t(A.JSC$18084_responseStore,T)}}}}var U;f=(U=Q.responseContext)==null?void 0:U.maxAgeSeconds;b&&f&&Number(f)>0&&(Q=MI(Q,f),A.JSC$18084_responseStore.put(b,new _.M6(Q)))};
T9N.prototype.handleResponse=function(A,Q){if(!Q)throw Error("Xi");var b,f;Q=(b=Q.config)==null?void 0:(f=b.storeStrategy)==null?void 0:f.storeKey;_.ya(this,A,Q)};
T9N[aW]=[_.La];_.p66=new _.TS("STORE_RESPONSE_PROCESSOR_TOKEN");var dxN=function(A){this.JSC$18087_responseStore=A};
dxN.prototype.handleResponse=function(A,Q){if(Q.input.match(_.bB(B8x))){var b;if(A==null?0:(b=A.entries)==null?0:b.length)for(A=_.F(A.entries),Q=A.next();!Q.done;Q=A.next()){b=Q.value.command;var f=void 0;Q=(f=_.V(b,_.CT))==null?void 0:f.unserializedPrefetchData;if(!b||!Q)break;f=(new jm).JSC$12994_getStoreKey(b);var a=_.V(Q,kcL),T=void 0,G=void 0,p=void 0,P=_.GP("web_shorts_prefetch_service_ttl_seconds")>0?_.GP("web_shorts_prefetch_service_ttl_seconds"):Number((p=(T=a)==null?void 0:(G=T.responseContext)==
null?void 0:G.maxAgeSeconds)!=null?p:3600);f&&P>0&&(a=MI(a,P),this.JSC$18087_responseStore.put(f,new _.M6(a)));b=(new Ok).JSC$12994_getStoreKey(b);Q=_.V(Q,Gcy);T=a=f=void 0;G=_.GP("web_shorts_prefetch_service_ttl_seconds")>0?_.GP("web_shorts_prefetch_service_ttl_seconds"):Number((T=(f=Q)==null?void 0:(a=f.responseContext)==null?void 0:a.maxAgeSeconds)!=null?T:3600);b&&G>0&&(Q=MI(Q,G),this.JSC$18087_responseStore.put(b,new _.M6(Q)))}}};
dxN[aW]=[_.La];var Fjx=function(A){this.innertubeTransportService=A};
Fjx[aW]=[_.vY];var Grr=new _.TS("SUBMIT_API_SERVICE_TOKEN");var pP=function(){this.scheduler=_.Rc()},B9n;
pP.prototype.pause=function(){throw Error("Yi");};
pP.prototype.resume=function(){throw Error("Yi");};
pP.prototype.queue=function(A){var Q=this,b=_.Qh(),f=_.Hv(this.scheduler,function(){try{var a;if(_.J8.instance)var T=_.J8.instance;else{var G=new _.IO("Error: Unexpected uninitialized CommandHandler.");_.en(G);T=void 0}(a=T)==null||a.resolveCommand(A.command);b.resolve()}catch(p){b.reject(p)}});
b.promise.thenCatch(function(a){a instanceof _.Zh&&Q.scheduler.cancelJob(f)});
return b.promise};
pP.prototype.queueAll=function(A){var Q=new Map;A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=b.value,Q.set(b.id,this.queue(b));return Q};var PYF=function(A,Q){var b=this;this.taskModel=A;this.onTaskCancelledCallback=Q;this.resolver=_.Qh();A=A.proto.prefetchConfig;if(!A)throw Error("Zi");if(!A.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(f){f instanceof _.Zh&&(pMO(b,b.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),b.onTaskCancelledCallback(b.taskModel.id,b.jobId),b.tick("pcc"));
throw f;});
this.timerName=this.taskModel.id;_.eT(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
PYF.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 pMO=function(A,Q){_.g2({prefetchInfo:{cancellationReason:Q}},A.timerName)};
PYF.prototype.tick=function(A){_.hQ(A,void 0,this.timerName)};var X2=function(){var A=this;this.scheduler=_.Rc();this.maxInflightTasks=_.GP("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.GP("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new c8j;this.onTaskCancelled=function(Q,b){b&&A.scheduler.cancelJob(b);XMM(A,Q);Pu(A,3)}},SLx=function(){X2.instance||(X2.instance=new X2);
return X2.instance};
X2.prototype.pause=function(){this.prefetchCoordinatorState=0};
X2.prototype.resume=function(){Pu(this,0)};
X2.prototype.queue=function(A){A=Uxx(this,A);Pu(this,1);return A};
X2.prototype.queueAll=function(A){var Q=new Map;A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=b.value,Q.set(b.id,Uxx(this,b));Pu(this,1);return Q};
var Uxx=function(A,Q){var b=A.allPrefetchTasks.get(Q.id);if(b)return b.cancellablePromise;try{var f=new PYF(Q,A.onTaskCancelled)}catch(T){return _.gF(T)}b=f;b.tick("pcq");var a={prefetchInfo:{taskId:b.taskModel.id,isPrefetch:!0,fetchAction:b.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:b.taskModel.command.clickTrackingParams}};b.taskModel.csn&&(a.clientScreenNonce=b.taskModel.csn);_.g2(a,b.timerName);A.allPrefetchTasks.set(Q.id,f);A.drainingHeap.insert(-f.getPriority(),f);return f.cancellablePromise},
Pu=function(A,Q){A.prefetchCoordinatorState===Q&&(A.prefetchCoordinatorState=2,LjF(A))},LjF=function(A){for(var Q={};A.prefetchCoordinatorState!==0;Q={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(A.inflightPrefetchTasks.size>=A.maxInflightTasks){A.prefetchCoordinatorState=3;break}Q.prefetchTask$jscomp$1=A.drainingHeap.remove();if(!Q.prefetchTask$jscomp$1){A.prefetchCoordinatorState=1;break}Q.taskId$jscomp$3=Q.prefetchTask$jscomp$1.taskModel.id;if(A.allPrefetchTasks.has(Q.taskId$jscomp$3)){var b=-1;A.coordinatorTimeoutMs>0&&(b=_.Hv(A.scheduler,function(f){return function(){SR(A,f.taskId$jscomp$3,Error("aj"))}}(Q),A.coordinatorTimeoutMs));
A.inflightPrefetchTasks.set(Q.taskId$jscomp$3,b);if(!A.JSC$18105_commandHandler){if(!_.J8.instance){SR(A,Q.taskId$jscomp$3,Error("bj"));continue}A.JSC$18105_commandHandler=_.J8.instance}a:switch(Q.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":b=1;break a;default:b=0}Q.prefetchTask$jscomp$1.jobId=A.scheduler.addJob(function(f){return function(){f.prefetchTask$jscomp$1.tick("pcr");try{A.JSC$18105_commandHandler.resolveCommand(f.prefetchTask$jscomp$1.taskModel.command)||
SR(A,f.taskId$jscomp$3,Error("cj"))}catch(a){SR(A,f.taskId$jscomp$3,a)}}}(Q),b,0)}}},MWN=function(A,Q){(Q=XMM(A,Q))!=null&&(Q.resolver.resolve(),Q.tick("pce"));
Pu(A,3)},SR=function(A,Q,b){(Q=XMM(A,Q,b))!=null&&(Q.resolver.reject(b),Q.tick("pcc"),pMO(Q,"CANCELLATION_REASON_ERROR"),Math.random()<=_.GP("prefetch_coordinator_error_logging_sampling_rate")&&(b=new _.IO("Prefetch Command failed.",Q.taskModel.id,b.message),_.en(b)));
Pu(A,3)},XMM=function(A,Q,b){var f=A.allPrefetchTasks.get(Q);
f?((b=A.inflightPrefetchTasks.get(Q))&&b!==-1&&A.scheduler.cancelJob(b),A.inflightPrefetchTasks.delete(Q),A.allPrefetchTasks.delete(Q)):_.Wv(new _.IO("Unexpected missing prefetch task when deleting task.",Q,b==null?void 0:b.message));return f};var lKx=function(A,Q,b,f,a){this.id=A;this.triggerOn=Q;this.cancelOn=b;this.command=f;this.proto=a};
_.Qr.Object.defineProperties(lKx.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var KjN=function(){this.JSC$18110_prefetchCoordinator=SLx();B9n||(B9n=new pP);this.defaultCoordinator=B9n},i$l;
KjN.getInstance=function(){i$l||(i$l=new KjN);return i$l};
KjN.prototype.get=function(A){switch(A){case 0:return this.JSC$18110_prefetchCoordinator;default:return this.defaultCoordinator}};var U6=function(){this.coordinatorSupplier=KjN.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},O$N=function(A){var Q=_.WR()||void 0,b=Object.keys(Jvd)[0];
if(b){var f=A.taskIdByTriggerId.get(b);if(f!=null){A.taskIdByTriggerId.delete(b);b=[];f=_.F(f);for(var a=f.next();!a.done;a=f.next())if(a=A.tasks.get(a.value))Q!=="UNDEFINED_CSN"&&(a.csn=Q),b.push(a);b=dtU(b);Q=[];b=_.F(b);for(f=b.next();!f.done;f=b.next()){a=_.F(f.value);f=a.next().value;a=a.next().value;f=A.coordinatorSupplier.get(f).queueAll(a);f=_.F(f);var T=f.next();for(a={};!T.done;a={taskId$jscomp$9:void 0},T=f.next()){var G=_.F(T.value);T=G.next().value;G=G.next().value;a.taskId$jscomp$9=
T;T=G;Q.push(a.taskId$jscomp$9);A.queuedPromisesByTask.set(a.taskId$jscomp$9,_.oH(T,function(p){return function(){VWO(A,p.taskId$jscomp$9)}}(a)))}}}}else _.Wv(new _.IO("Unexpected malformed TriggerEvent."))};
U6.prototype.trigger=function(A,Q){var b=this,f=this.tasks.get(A);if(!f||this.queuedPromisesByTask.has(A))return!1;n1d(this,A,f.triggerOn);Q!=="UNDEFINED_CSN"&&(f.csn=Q);Q=this.coordinatorSupplier.get(f.taskType).queue(f);this.queuedPromisesByTask.set(A,_.oH(Q,function(){VWO(b,A)}));
return!0};
U6.prototype.cancel=function(A){var Q=this.queuedPromisesByTask.get(A);if(Q)Q.cancel();else return VWO(this,A)};
var VWO=function(A,Q){A.queuedPromisesByTask.delete(Q);var b=A.tasks.get(Q);if(!b)return!1;A.tasks.delete(Q);n1d(A,Q,b.triggerOn);(b=TBy(b.cancelOn))&&(A=A.taskIdByCancelId.get(b))&&A.delete(Q);return!0},n1d=function(A,Q,b){(b=Object.keys(b)[0])&&(A=A.taskIdByTriggerId.get(b))&&A.delete(Q)};var Jvd={taskRegistered:{}},LP=function(){U6.instance||(U6.instance=new U6);this.JSC$18119_taskManager=U6.instance};
_.O(LP,Yu);
LP.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){b=_.V(A,V3p);if((f=b)==null||!f.tasks){var T=new _.IO("RegisterTasksCommand is missing tasks.");_.en(T);return a.return()}T=Q.JSC$18119_taskManager;for(var G=_.F(b.tasks),p=G.next();!p.done;p=G.next())if(p=p.value,p=p.id&&p.triggerOn&&p.cancelOn&&p.command?new lKx(p.id,p.triggerOn,p.cancelOn,p.command,p):void 0,p){var P=Object.keys(p.triggerOn)[0];if(P){var U=TBy(p.cancelOn);U?(T.tasks.set(p.id,p),T.taskIdByTriggerId.has(P)||T.taskIdByTriggerId.set(P,
new Set),T.taskIdByTriggerId.get(P).add(p.id),T.taskIdByCancelId.has(U)||T.taskIdByCancelId.set(U,new Set),T.taskIdByCancelId.get(U).add(p.id)):_.Wv(new _.IO("Unexpected malformed cancelOn field."))}else _.Wv(new _.IO("Unexpected malformed triggerOn field."))}else _.Wv(new _.IO("Unexpected malformed Task proto."));O$N(Q.JSC$18119_taskManager);_.Oi(a)})};var krd={},IKq=(krd.rendered={priority:0,callback:function(){var A={};A.numCpu=navigator.hardwareConcurrency;var Q={};Q.ramGb=_.by.navigator.deviceMemory;var b={staticContext:{}};Q.ramGb&&FCf(Q.ramGb)&&(b.staticContext.memoryTotalKbytes=(Q.ramGb*1048576).toString());A.numCpu&&FCf(A.numCpu)&&(b.staticContext.cpuCores=A.numCpu);if(_.K("web_enable_adaptive_appl_signal")){A={};Q=_.El("rses_dpj");var f=_.El("rsef_dpj");Q&&Q>0&&f&&f>0&&(Q=Math.ceil(f-Q),Q>0&&(A.loadLatency=Q));A.loadLatency&&FCf(A.loadLatency)&&
(b.appL=A.loadLatency.toString())}_.R4("applicationStarted",b)}},krd);var H$K=new _.TS("WINDOW_ON_ERROR"),CYM=new _.TS("ERROR_WEIGHT_MAPS"),qLN=new _.TS("INIT_ERROR");var o1x={},tWN=(o1x.initialized={priority:10,callback:function(A){A.injector.resolve(qLN)()}},o1x);var rvK=function(){},jyn=function(){var A=_.zV("meta_logger_impl");
A||(A=new rvK,_.Al("meta_logger_impl",A));return A},RNn=function(){jyn().csiSubscriptionKey=Xjy("meta_logging_csi_event",function(A){var Q=A.timerName;
if(A=A.timelineData){_.eT(Q,{startTime:A.startTime},Q);A.infos&&_.g2(A.infos,Q);for(var b=_.F(Object.keys(A.ticks)),f=b.next();!f.done;f=b.next())f=f.value,_.hQ(f,A.ticks[f],Q)}})};
rvK.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&L5J(this.csiSubscriptionKey)};var g1r={},eNs=(g1r.initialized={priority:10,callback:function(){RNn()}},g1r);var hNs=function(A,Q){this.innertubeClientName=A;this.JSC$18135_prefCookie=Q};
hNs.prototype.record=function(){if(_.K("web_li_record_binary_eval_tick")){var A=_.El("rsef_dpj");var Q=_.El("rses_dpj");A=A!==void 0&&Q!==void 0?Math.round(A-Q):void 0;if(A!==void 0&&A>0){Q=_.i7(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var b=this.poolSize;if(!(Q.valuesSeen>=1E9)){if(Q.valuesSample.length<b)Q.valuesSample.push(A);else{var f=Math.floor(Math.random()*(Q.valuesSeen+1));f<b&&(Q.valuesSample[f]=A)}Q.valuesSeen+=1}_.KW(this.storagePrefix+"-"+this.innertubeClientName,
Q,2592E3);A=Q.valuesSample;Q=Gq6(A);A=A.length<this.poolSize?void 0:Q<400?1:Q<1700?2:3;A!==void 0&&(this.JSC$18135_prefCookie.set(this.cookiePrefix+this.innertubeClientName,A),this.JSC$18135_prefCookie.save())}}else _.JX(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18135_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18135_prefCookie.save()};
hNs[aW]=[vc,MR];var Wjd=function(){hNs.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.O(Wjd,hNs);var v1l=new _.TS("PAGE_LOAD_TIME_TOKEN");var E1x=function(A){this.signal=A;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;A.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Hv(_.j7,this.disableLoggingAndSendPayload,1E4)};
E1x.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.j7.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),xxx(this))};
var xxx=function(A){var Q=_.hx();if(Q){var b={webClientComponentsData:{components:Array.from(A.ids,function(f){return{id:f}})}};
A.ids.clear();_.IP().visualElementStateChanged(Q,b)}};var cvK=new _.TS("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var MG=function(A,Q){this.JSC$18164_storeWithEntities=A;this.JSC$18164_commandHandler=Q;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
MG.prototype.start=function(){this.JSC$18164_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
MG.prototype.observeDownloadingEntities=function(){var A=_.ZY9(this.JSC$18164_storeWithEntities.getState().entities).map(function(f){return yh4(f)});
if(A.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var Q={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:F1b()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.T7(_.JQ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18164_commandHandler.resolveCommand(Q)}this.downloadingEntities=A}else if(this.downloadingEntities.length){var b=uki(this.JSC$18164_storeWithEntities.getState().entities).map(function(f){return yh4(f)});
this.downloadingEntities.filter(function(f){return b.includes(f)}).length&&(A={openPopupAction:u3y()},this.JSC$18164_commandHandler.resolveCommand(A));
this.downloadingEntities=[]}};
MG[aW]=[BZ,_.de];var zNn;_.lU=function(A,Q,b,f,a,T,G,p){this.JSC$18167_playerApiPromise=A;this.JSC$18167_commandHandler=Q;this.JSC$18167_screenManager=b;this.offlineWebClientEligibility=f;this.JSC$18167_prefStorage=a;this.JSC$18167_actionRouter=T;this.entityTypeMap=G;this.JSC$18167_persistentStorePromiseAccessor=p;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
zNn=function(){var A=_.fJ().resolve(_.lU),Q;_.B(function(b){if(b.nextAddress==1)return A.downloadFailureListenerBound?b.return():b.yield(A.JSC$18167_playerApiPromise,2);Q=b.yieldResult;Q.addEventListener("onOfflineOperationFailure",function(f){if(f.failureReason&&f.entityKey&&f.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(f.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var a=_.Xg(f.entityKey).entityId;a&&A.JSC$18167_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
a)}else if(_.K("kevlar_woffle")){a=A.JSC$18167_commandHandler;var T=a.resolveCommand;f=f.failureReason;var G=_.JQ("TRANSFER_FAILED",void 0,"Download failed");f==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(G=_.JQ("STORAGE_FULL",void 0,"Storage full"));T.call(a,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.T7(G),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
A.downloadFailureListenerBound=!0;_.Oi(b)})};
_.lU.prototype.deleteVideo=function(A,Q){var b=this,f,a,T;return _.B(function(G){if(G.nextAddress==1)return G.yield(b.JSC$18167_playerApiPromise,2);f=G.yieldResult;T={offlineLoggingData:{offlineDeleteReason:(a=Q)!=null?a:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return G.yield(f.queueOfflineAction(A,b.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",T),0)})};
_.lU.prototype.pauseVideoDownload=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.JSC$18167_playerApiPromise,2);b=f.yieldResult;b.pauseVideoDownload(A);_.Oi(f)})};
_.lU.prototype.resumeVideoDownload=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.JSC$18167_playerApiPromise,2);b=f.yieldResult;return f.yield(b.resumeVideoDownload(A),0)})};
_.lU[aW]=[_.Uh,_.de,_.gu,cvK,Jn,Tm,$0r,Vn];var wMl=new _.TS("DOWNLOAD_STATE_STORE_TOKEN");var uLq=function(A,Q){this.JSC$18187_persistentStorePromiseAccessor=A;this.store=Q;this.upliftCompletionResolver=new _.Mj},YLx=function(){var A=_.fJ().resolve(Z$M),Q;
_.B(function(b){switch(b.nextAddress){case 1:if(A.upliftImplPromise)return b.return(A.upliftImplPromise);_.ML(b,2);A.upliftImplPromise=yvl(A);return b.yield(A.upliftImplPromise,4);case 4:A.upliftCompletionResolver.resolve();_.Z1(b,3);break;case 2:throw Q=_.Vw(b),A.upliftCompletionResolver.reject(Q),Q;case 3:return b.return(A.upliftImplPromise)}})},yvl=function(A){var Q,b,f;
return _.B(function(a){switch(a.nextAddress){case 1:return _.Ep("LOGGED_IN")?a.yield(A.JSC$18187_persistentStorePromiseAccessor(),2):a.return();case 2:Q=a.yieldResult;if(!Q)return _.hQ("vdeur"),a.return();_.hQ("vdeus");_.ML(a,3);return a.yield(Dxl(Q),5);case 5:b=a.yieldResult;A.store.dispatch(tuU(b));Q.observe(function(T){rh6(A.store,T)});
_.Z1(a,4);break;case 3:throw f=_.Vw(a),_.hQ("vdeur"),f;case 4:_.hQ("vdeuc"),_.Oi(a)}})},Dxl=function(A){var Q;
return _.B(function(b){if(b.nextAddress==1)return b.yield(LCb(A),2);Q=b.yieldResult;return b.return(Q.reduce(function(f,a){if(!a.data||!a.key||!a.entityType)return f;f[a.entityType]||(f[a.entityType]={});f[a.entityType][a.key]=a.data;return f},{}))})};
uLq[aW]=[Vn,_.u7];var Z$M;Z$M=new _.TS("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.KP=new _.TS("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var iU=function(A,Q){this.JSC$18190_persistentStorePromiseAccessor=A;this.transportService=Q};
iU.prototype.refresh=function(){var A=this,Q,b,f,a;return _.B(function(T){if(T.nextAddress==1)return _.Ep("LOGGED_IN")?T.yield(A.JSC$18190_persistentStorePromiseAccessor(),2):T.return();if(T.nextAddress!=3)return(Q=T.yieldResult)?T.yield(NpY(Q),3):T.return();if((b=T.yieldResult)&&!(Number(b.data.refreshTimestampMs||0)<(0,_.f4)()))return T.return();f={browseId:"SPaccount_downloads"};a=_.bB(Ab);_.wl(A.transportService,f,a).then(function(G){var p;if(Q&&(G==null?void 0:(p=G.responseContext)==null?void 0:
p.maxAgeSeconds)!==0){var P;p=(G==null?void 0:(P=G.responseContext)==null?void 0:P.maxAgeSeconds)||604800;P=String(Math.floor((0,_.f4)())+p*1E3);Q.put("service:downloads_settings:fallback",new _.M6({innertubeResponse:G,refreshTimestampMs:P}))}});
_.Oi(T)})};
iU[aW]=[_.Bu,_.vY];var Ja=function(A,Q){this.JSC$18194_playerPromise=A;this.store=Q;this.started=!1};
Ja.prototype.start=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return A.started?b.return():b.yield(A.JSC$18194_playerPromise,2);Q=b.yieldResult;Q.addEventListener("onOrchestrationBecameLeader",A.updateIsLeader.bind(A,!0));Q.addEventListener("onOrchestrationLostLeader",A.updateIsLeader.bind(A,!1));if(Q.isOrchestrationLeader)A.updateIsLeader(Q.isOrchestrationLeader());else{var f=new _.IO("Function isOrchestrationLeader is undefined",{"player.isReady":Q.isReady(),"player.playVideo":Q.playVideo?
"defined":"undefined"});_.en(f);A.updateIsLeader(!1)}A.started=!0;_.Oi(b)})};
Ja.prototype.updateIsLeader=function(A){this.store.dispatch(_.G7({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:A}}))};
Ja[aW]=[_.Uh,_.u7];var $xK=function(A,Q){this.networkStatusManager=A;this.JSC$18197_prefStoragePromise=Q;this.redirectsToPreload=["https://youtube.com"]},N9t=function(){var A=_.fJ().resolve($xK),Q,b,f,a,T,G;
_.B(function(p){switch(p.nextAddress){case 1:return p.yield(A.JSC$18197_prefStoragePromise,2);case 2:Q=p.yieldResult;if(!(b=Q)){p.jumpTo(3);break}return p.yield(Q.get("yt-redirect-prefetch-id"),4);case 4:b=p.yieldResult;case 3:if(b||!A.networkStatusManager.isNetworkAvailable())return p.return();f={cache:"reload",redirect:"manual"};a=_.F(A.redirectsToPreload);T=a.next();case 5:if(T.done){if(!Q){p.jumpTo(0);break}return p.yield(Q.set("yt-redirect-prefetch-id",!0,86400),0)}G=T.value;_.ML(p,8);return p.yield(_.by.fetch(G,
f),10);case 10:_.Z1(p,6);break;case 8:_.Vw(p);case 6:T=a.next(),p.jumpTo(5)}})};var VC=function(A){A?(this.container=A,this.containerWasInjected=!0):this.containerWasInjected=!1};
VC.prototype.openDialog=function(A,Q,b){var f=this,a;return _.B(function(T){(a=f.container)==null||a.openDialog(A,Q,b);_.Oi(T)})};
VC.prototype.closeDialog=function(){var A=this,Q;return _.B(function(b){(Q=A.container)==null||Q.closeDialog();_.Oi(b)})};
VC.prototype.isDialogOpen=function(){var A=this,Q,b;return _.B(function(f){return f.return((b=(Q=A.container)==null?void 0:Q.isDialogOpen())!=null?b:!1)})};
VC[aW]=[_.bu(EYK)];_.syx=new _.TS("POPUP_CONTROLLER_TOKEN");var mxx=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
mxx.prototype.registerPanel=function(A,Q){if(A){this.panelMap.set(A,Q);var b=this.pendingPanelResolvers.get(A);b&&(b.resolve(Q),this.pendingPanelResolvers.delete(A))}};
mxx.prototype.getPanel=function(A){var Q=this,b;return _.B(function(f){return(b=Q.panelMap.get(A))?f.return(b):f.return(AMO(Q,A))})};
var AMO=function(A,Q){var b,f;return _.B(function(a){if(b=A.pendingPanelResolvers.get(Q))return a.return(b.promise);f=new _.Mj;A.pendingPanelResolvers.set(Q,f);return a.return(f.promise)})},Qtn=function(A){mxx.call(this);
var Q=this;this.popupController=A;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return Q.panelMap.size}}};
_.O(Qtn,mxx);_.d=Qtn.prototype;_.d.getReloadContinuation=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.getPanel(A),2);b=f.yieldResult;return f.return(b.getReloadContinuation())})};
_.d.showPanel=function(A,Q,b,f,a,T,G){var p=this,P,U,L,M;return _.B(function(l){if(l.nextAddress==1){G&&p.updatePanelContinuationDatas.set(A,G);if((P=b)==null?0:(U=P.engagementPanelPopupPresentationConfig)==null?0:U.popupType){L=b.engagementPanelPopupPresentationConfig.popupType;a===void 0&&(a=document.body);var J=l.return,n=p.popupController,t=n.openPopup;a:switch(L){case "PANEL_POPUP_TYPE_DIALOG":var g="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":g="DROPDOWN";break a;default:throw Error("ej`"+
L);}return J.call(l,t.call(n,A,Q,g,a))}return l.yield(p.getPanel(A),2)}M=l.yieldResult;(Q||T)&&M.updatePanel(Q,!1,f,T);M.showPanel(f);_.Oi(l)})};
_.d.hidePanel=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(Q.getPanel(A),2);b=f.yieldResult;b.hidePanel();Q.popupController.closePopup(A);_.Oi(f)})};
_.d.isVisible=function(A,Q){var b=this,f;return _.B(function(a){if(a.nextAddress==1)return Q&&!b.panelMap.has(A)?a.return(!1):a.yield(b.getPanel(A),2);f=a.yieldResult;return a.return(f.isVisible())})};
_.d.updatePanel=function(A,Q,b,f,a,T){b=b===void 0?!1:b;var G=this,p;return _.B(function(P){if(P.nextAddress==1){if(!Q&&!a)return P.return();T&&G.updatePanelContinuationDatas.set(A,T);return P.yield(G.getPanel(A),2)}p=P.yieldResult;p.updatePanel(Q,b,f,a);_.Oi(P)})};
_.d.registerPanelContent=function(A,Q){A&&this.panelContentMap.set(A,Q)};
_.d.unregisterPanelContent=function(A){this.panelContentMap.delete(A)};
_.d.getPanelContent=function(A){return this.panelContentMap.get(A)};
_.d.getUpdatePanelContinuationData=function(A){return this.updatePanelContinuationDatas.get(A)};
Qtn[aW]=[_.syx];var O6=function(A,Q){this.innertubeTransportService=A;this.JSC$18213_screenManager=Q},bss=function(A){var Q;
return!((Q=A.panelLoadingStrategy)==null||!Q.requestTemplate)};
O6.prototype.makeRequest=function(A){var Q=this,b,f;return _.B(function(a){switch(a.nextAddress){case 1:if(!bss(Q)){a.jumpTo(2);break}_.ML(a,3);return a.yield(_.Ay(Q.innertubeTransportService,A),5);case 5:return b=a.yieldResult,b?a.return(b.content):(_.en(Error("fj")),a.return(void 0));case 3:f=_.Vw(a),_.en(f);case 2:return a.return(void 0)}})};
O6.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
O6.prototype.execute=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M;return _.B(function(l){if(l.nextAddress==1){b=A;f=b.data;a=b.fallbackVe;T=b.parentVe;G=b.createScreenConfig;p=b.renderFn;P=b.command;Q.panelLoadingStrategy=f;var J,n,t=((J=Q.panelLoadingStrategy)==null?0:J.screenVe)?(n=Q.panelLoadingStrategy)==null?void 0:n.screenVe:a;t&&_.Mk(Q.JSC$18213_screenManager,t,T,G);return(U=Q.getContent())?l.yield(p(U),2):l.jumpTo(2)}return l.nextAddress!=4?bss(Q)?l.yield(Q.makeRequest(P),4):l.return():(M=L=
l.yieldResult)?l.yield(p(M),0):l.return()})};
O6[aW]=[_.vY,_.gu];var nP=function(){};
nP.prototype.getContainer=function(){return _.aF()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
nP.prototype.openSheet=function(A,Q){var b=this,f,a,T,G,p,P;return _.B(function(U){switch(U.nextAddress){case 1:return f={stack:[],error:void 0,hasError:!1},_.ML(U,2,3),a=$$,U.yield(b.isSheetOpen(),5);case 5:T=U.yieldResult;YxW(f,nTb(a));if(T){if(Q&&b.currentTarget===Q)return(G=b.getContainer())==null||G.closeSheet(),U.return();b.pendingData={data:A,target:Pyt(b,Q)};return U.return()}A.viewModel&&(A={viewModel:A.viewModel});(p=b.getContainer())==null||p.openSheet(A,Q);b.currentTarget=Q;case 3:_.KN(U);
DKY(f);_.Jo(U,0);break;case 2:P=_.Vw(U),f.error=P,f.hasError=!0,U.jumpTo(3)}})};
nP.prototype.closeSheet=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return b.yield((Q=A.getContainer())==null?void 0:Q.closeSheet(),2);if(b.nextAddress!=4)return A.currentTarget=void 0,A.pendingData?b.yield(A.openSheet(A.pendingData.data,A.pendingData.target),4):b.jumpTo(0);A.pendingData=void 0;_.Oi(b)})};
nP.prototype.isSheetOpen=function(){var A=this,Q,b;return _.B(function(f){return f.return((b=(Q=A.getContainer())==null?void 0:Q.isSheetOpen())!=null?b:!1)})};
var Pyt=function(A,Q){if(!_.K("web_parent_target_for_sheets"))return Q;var b,f;return(f=(b=A.getContainer())==null?void 0:b.getParentTarget(Q))!=null?f:Q};var PZ=window.documentPictureInPicture;var CDW=_.sC(["dark"]),qQY=_.sC(["system-icons"]),ohX=_.sC(["typography"]),tgi=_.sC(["lang"]),rm6=_.sC(["style"]),nhA=_.sC(["dir"]),kq6=_.sC(["rounded-container"]),IsW=_.sC(["style"]),Rl4=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],k9=function(A){this.JSC$18225_clientRoot=A;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
k9.prototype.openWindow=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1)return window.documentPictureInPicture&&_.qf()&&!Q.currentPipWindow?a.yield((b=PZ?PZ:null)==null?void 0:b.requestWindow(A),2):a.return(!1);if(a.nextAddress!=3){f=a.yieldResult;if(!f)return a.return(!1);f.addEventListener("pagehide",function(){frt(Q)});
f.addEventListener("resize",Q.handlePipWindowResize);Q.pipWindowResizeDelay=new _.TL(function(){Q.currentPipWindow&&_.pD(Q.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.iw(Q.currentPipWindow.innerWidth,Q.currentPipWindow.innerHeight)])},f);
j0y(f);elY(f);return a.yield(OvY(f),3)}if(!ivU())return a.return(!1);Q.currentPipWindow=f;Q.JSC$18225_eventForwarder=ghe(f,Q.JSC$18225_clientRoot);Q.pipWindowResizeDelay.start();return a.return(!0)})};
k9.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var frt=function(A){if(A.currentPipWindow){var Q,b;(Q=PZ?PZ:null)==null||(b=Q.window)==null||b.close();A.currentPipWindow.removeEventListener("resize",A.handlePipWindowResize);var f;(f=A.pipWindowResizeDelay)==null||f.dispose();A.pipWindowResizeDelay=void 0;var a;(a=A.JSC$18225_eventForwarder)==null||a.stop();A.JSC$18225_eventForwarder=void 0;Q=_.F(A.onCloseCallbacks);for(b=Q.next();!b.done;b=Q.next())b=b.value,b();A.onCloseCallbacks=[];A.currentPipWindow=null}};
k9.prototype.getWindow=function(){return this.currentPipWindow};
var arO=function(A,Q){var b;(b=A.onCloseCallbacks)==null||b.push(Q)};
k9.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.qf()};
_.Qr.Object.defineProperties(k9.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
k9[aW]=[T0W];var Txs=new _.TS("PICTURE_IN_PICTURE_CONTROLLER");var hl4=function(A,Q){this.lengthY=this.lengthX=0;this.lengthX=Q.x-A.x;this.lengthY=Q.y-A.y};var dNK=function(){},J4x=function(A,Q){var b;
(b=A.headerElement)==null||b.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:Q}))};var FlO=function(){};
FlO.prototype.openPopup=function(A,Q,b,f){var a=this,T;return _.B(function(G){if(!a.container)return G.return();T={openPopupAction:{popup:Q,popupType:b,uniqueId:A}};return G.return(a.container.handleOpenPopupAction(T,f))})};
FlO.prototype.closePopup=function(A){this.container&&this.container.closePopup(A)};var GnN=function(){this.openTunnels=new Map},HPX=function(A,Q,b){if(zlW(b)){var f=_.EO(b,"gclid");
b={handleEvent:function(p){Q&&!Q.closed&&typeof Q.postMessage==="function"&&p&&p.origin&&p.source===Q&&p.data&&p.data.action==="gcl_setup"&&Q.postMessage(Object.assign({},{action:"gcl_transfer"},f&&{gclid:f},{gadSource:2}),p.origin)}};
for(var a=_.F(A.openTunnels),T=a.next();!T.done;T=a.next()){var G=_.F(T.value);T=G.next().value;G=G.next().value;if(T.closed)try{window.removeEventListener("message",G),A.openTunnels.delete(T)}catch(p){_.en(p)}}Q&&A.openTunnels.size<15&&(A.openTunnels.set(Q,b),window.addEventListener("message",b))}};var BxF=function(){this.clientParams=new Map},PQ9=function(A){for(var Q=_.F(A.clientParams.keys()),b=Q.next();!b.done;b=Q.next())b=b.value,b.startsWith("yt-mini-app-share")&&A.clientParams.delete(b)};var pdN=function(A,Q){_.k$.call(this);var b=this;this.shortsController=A;this.storeWithShorts=Q;A=_.H1(this.storeWithShorts,_.d5b,function(f){if(f){var a,T=(a=b.shortsController.getRoot())==null?void 0:a.getPlayer(),G;(a=(G=b.shortsController.alternativePlayerContainerElement)==null?void 0:G.getPlayerContainer())&&(T==null||T.appendTo(a))}else{var p;G=(p=b.shortsController.alternativePlayerContainerElement)==null?void 0:p.getPlayerContainer().querySelector("#player");a=b.shortsController.activeIndex;
(p=(T=b.shortsController.getRoot())==null?void 0:T.querySelector('ytd-reel-video-renderer[id="'+a+'"] #player-container'))&&(G==null||G.appendTo(p,void 0,!0))}});
this.addOnDisposeCallback(A)};
_.O(pdN,_.k$);var Im=function(A,Q,b,f,a){var T=this;this.storeWithShorts=A;this.ephemeralResponseStore=Q;this.store=b;this.innertubeTransportService=f;this.innertubeTransportLoader=a;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Zc(_.Us);this.isShortsPipActive=_.Zc(_.LS);this.nextReelVe=_.K6(56921);this.prevReelVe=_.K6(56922);this.backButtonVe=_.K6(22156);this.TEST_ONLY={getActiveModules:function(){return T.activeModules}}},POs=function(A){A.unsubscribeFromStore=
_.H1(A.storeWithShorts,_.TCW,function(Q){A.initOrDisposeActiveModules(Q);
!Q&&A.storeWithShorts.getState().shorts.isFullscreen&&(_.d2(document.documentElement),A.storeWithShorts.dispatch(_.b8r(!1)))});
A.initOrDisposeActiveModules(_.TCW(A.storeWithShorts.getState()))},fpv,apY,Xdq;
Im.prototype.initOrDisposeActiveModules=function(A){A?this.activeModules.push(new pdN(this,this.storeWithShorts)):(_.QO(this.activeModules),this.activeModules.length=0)};
Im.prototype.registerRootElement=function(A){this.rootElement=A;POs(this)};
Im.prototype.getRoot=function(){return this.rootElement};
Im.prototype.setActiveIndex=function(A){this.activeIndex=A};
_.N5y=function(A,Q){var b,f,a,T,G,p,P;return _.B(function(U){switch(U.nextAddress){case 1:return b=new jm,(f=b.JSC$12994_getStoreKey(Q))&&A.ephemeralResponseStore.has(f)?U.yield(A.ephemeralResponseStore.get(f),7):U.yield(Xdq(A,Q),4);case 4:a=U.yieldResult;if(!f){U.jumpTo(3);break}T=MI(a,3600);return U.yield(A.ephemeralResponseStore.put(f,new _.M6(T)),3);case 7:a=(G=U.yieldResult)==null?void 0:_.Fw(G);case 3:return((p=a)==null?0:p.replacementEndpoint)&&(P=_.V(a.replacementEndpoint,_.CT))&&a.sequenceContinuation&&
(P.sequenceParams=a.sequenceContinuation),U.return(a)}})};
fpv=function(A,Q){Q=(new RU).JSC$12994_getStoreKey(Q);return!!Q&&A.ephemeralResponseStore.has(Q)};
apY=function(A,Q,b){var f,a,T,G,p;_.B(function(P){if(P.nextAddress==1){f=new RU;a=f.JSC$12994_getStoreKey(Q);if(!a)return P.return();if(b.reelWatchSequenceResponse)return T=MI(b.reelWatchSequenceResponse,3600),A.ephemeralResponseStore.put(a,new _.M6(T)),P.jumpTo(0);if(!A.ephemeralResponseStore.has(a))return P.jumpTo(0);p=b;return P.yield(A.ephemeralResponseStore.get(a),4)}p.reelWatchSequenceResponse=(G=P.yieldResult)==null?void 0:_.Fw(G);_.Oi(P)})};
Xdq=function(A,Q){var b=b===void 0?{}:b;var f,a,T;return _.B(function(G){switch(G.nextAddress){case 1:if(A.innertubeTransportService){f=A.innertubeTransportService;G.jumpTo(2);break}if(!A.innertubeTransportLoader){_.xQ(Error("hj"));G.jumpTo(2);break}return G.yield(A.innertubeTransportLoader(),4);case 4:f=G.yieldResult;case 2:return G.yield((a=f)==null?void 0:_.Ay(a,Q,b),5);case 5:return T=G.yieldResult,G.return(T)}})};
_.Qr.Object.defineProperties(Im.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
Im[aW]=[c_M,_.La,BZ,_.bu(_.vY),_.bu(hFp)];_.SNO=new _.TS("STORAGE_MANAGER_TOKEN");var u0F=["touchmove","scroll"];var Dt9={onSpanEnd:function(A){if(A.parent==null){var Q=A.name;_.eT(Q);YQY(A,Q)}}};var UNK=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Llq;
UNK.prototype.enqueue=function(A,Q){Q===1?this.currentPersistentToast=A:this.queue.push(A);this.openToast()};
UNK.prototype.openToast=function(){var A;(A=this.currentToast)!=null&&A.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Hu=new _.TS("TOAST_MANAGER_TOKEN");var MFO=new _.TS("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var lrq=new _.TS("VIEW_TRANSITION_COORDINATOR_TOKEN");var KlM=function(A){this.config=A;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;A=_.F(A.transitionConfigs);for(var Q=A.next();!Q.done;Q=A.next())Q=_.F(Q.value).next().value,this.transitionTasksMap.set(Q,[])};
KlM.prototype.registerElement=function(A,Q,b){b=b===void 0?!1:b;for(var f=_.F(Object.keys(Q)),a=f.next(),T={};!a.done;T={viewTransitionName:void 0},a=f.next()){a=a.value;T.viewTransitionName=Q[a];var G=this.elementTasksMap.get(A),p=void 0;if((p=G)==null?0:p.has(a)){_.hq(new _.IO("Element already registered for transition",A.tagName,a));break}G=G||new Map;G.set(a,{beforeTransition:function(P){return function(){A.style.viewTransitionName=P.viewTransitionName}}(T),
afterTransition:function(){A.style.viewTransitionName&&(A.style.viewTransitionName="")},
runOnce:b});this.elementTasksMap.set(A,G)}};
_.$s=function(A,Q){var b=A.elementTasksMap.get(Q);b&&(b.clear(),b.size===0&&A.elementTasksMap.delete(Q))};
KlM[aW]=[MFO];var isd;_.JMq=_.aP(function(A){return _.X("basic-content-view-model",{class:_.O4("ytBasicContentViewModelHost",_.Q0(A.className))},_.X(_.S,{cond:function(){return A.data().headline},
then:function(Q){return _.X("div",{class:"ytBasicContentViewModelHeadline"},_.X(_.Rb,{text:Q}))}}),_.X(_.Op,{each:function(){return A.data().paragraphs||[]},
keyBy:"INDEX"},function(Q){return _.X("div",{class:"ytBasicContentViewModelParagraph"},_.X(_.S,{cond:function(){var b=Q();return!!(b.header||b.customHeader||b.headline)},
then:function(){return _.X(isd,{paragraph:Q})}}),_.X(_.S,{cond:function(){return Q().asset||Q().text},
then:function(){return _.X("div",{class:"ytBasicContentViewModelParagraphContent"},_.X(_.S,{cond:function(){return Q().asset},
then:function(b){return _.X("div",{class:"ytBasicContentViewModelParagraphAsset"},_.X(_.WL,{data:b},{contentPreviewImageViewModel:_.Sv}))}}),_.X(_.S,{cond:function(){return Q().text},
then:function(b){return _.X("div",{class:"ytBasicContentViewModelParagraphText"},_.X(_.Rb,{text:b}))}}))}}))}))},"ze");
isd=_.aP(function(A){var Q=A.paragraph;return _.X(_.bd,null,_.X(_.S,{cond:function(){return Q().headline},
then:function(b){return _.X(_.Rb,{text:b,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.X(_.WL,{data:function(){return Q().header||Q().customHeader}},{sectionHeaderViewModel:function(b){return _.X(_.is,{data:b.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var OsM=_.aP(function(A){var Q=_.st("yt-expandable-metadata-header-view-model"),b=_.IY(function(f){if(!_.zG(_.cL(f),Q.value,["A".toString(),"BUTTON".toString()])){var a;(a=A.expandedCallback)==null||a.call(A,!1)}});
return _.X("yt-expandable-metadata-header-view-model",{el:Q,class:"ytExpandableMetadataHeaderViewModelHost"},_.X(_.S,{cond:function(){return A.expanded()},
then:function(){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":b},_.X("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.X(_.S,{cond:function(){return A.data().expandedTitleImage},
then:function(f){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.X(_.aY,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:f}))}}),_.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.X(_.Rb,{text:function(){return A.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.X(_.Rb,{text:function(){return A.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.X(_.Rb,{text:function(){return A.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.X("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.X(_.WL,{data:function(){return A.data().infoButton}},{buttonViewModel:_.J9}),_.X(_.WL,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(f){return _.X(_.J9,{data:f.data,
onClick:function(){var a;(a=A.expandedCallback)==null||a.call(A,!1)}})}})))},
else:function(){return _.X(VFl,Object.assign({},A))}}))},"Be"),nq7=_.aP(function(A){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.X(_.S,{cond:function(){return A.data().collapsedLabelImage},
then:function(Q){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.X(_.aY,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Q,alt:""}))}}),_.X(_.Rb,{text:function(){return A.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),VFl=_.aP(function(A){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.IY(function(){var Q;return void((Q=A.expandedCallback)==null?void 0:Q.call(A,!0))})},_.X("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.X(_.S,{cond:function(){return A.data().collapsedImage},
then:function(Q){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.X(_.aY,{width:16,height:16,data:Q,alt:""}))}}),_.X(_.S,{cond:function(){return A.data().showLeadingCollapsedLabel},
then:function(){return _.X(nq7,Object.assign({},A))}}),_.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.X(_.Rb,{text:function(){return A.data().collapsedTitle}}))),_.X("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.X(_.S,{cond:function(){return!A.data().showLeadingCollapsedLabel},
then:function(){return _.X(nq7,Object.assign({},A))}}),_.X(_.WL,{data:function(){return A.data().infoButton}},{buttonViewModel:_.J9}),_.X(_.WL,{data:function(){return A.data().expandButton}},{buttonViewModel:function(Q){return _.X(_.J9,{data:Q.data,
onClick:function(){var b;(b=A.expandedCallback)==null||b.call(A,!0)}})}})))},"De");_.knx=_.aP(function(A){var Q=_.F(_.CE(function(){return A.data().initiallyExpanded})),b=Q.next().value,f=Q.next().value,a,T=(a=_.fJ().resolve(_.bu(_.Af)))==null?void 0:a(),G=function(){var p=A.data().colorData;
if(p)return T?p==null?void 0:p.darkColorPalette:p==null?void 0:p.lightColorPalette};
return _.X("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.qM({"background-color":function(){var p=G();return(p==null?0:p.section2Color)?_.w6(p.section2Color):""}})},_.X(_.WL,{data:function(){return A.data().header}},{expandableMetadataHeaderViewModel:function(p){return _.X(OsM,{data:p.data,
expanded:function(){return!!b()},
expandedCallback:function(P){f(P)}})}}),_.X(_.S,{cond:function(){return b()},
then:function(){return _.X("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.X(_.WL,{data:function(){return A.data().expandedContent}},{horizontalShelfViewModel:function(p){return _.X(_.y8,{data:p.data,
includeMargin:!0,forceNarrowLayout:!0,palette:G})},
videoSummaryContentViewModel:function(p){return _.X(j6Y,{data:p.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(p){return _.X(_.K8,{data:p.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(p){return _.X(_.JMq,{data:p.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.X(_.WL,{data:function(){return A.data().expandedBottomButtons}},{buttonViewModel:function(p){return _.X("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.X(_.J9,{data:p.data}))}}))}}))},"Ee");var Irn=_.aP(function(A){var Q=A.text;var b=A.marqueeSpacing;var f=A.scrollDelay;var a=A.scrollDuration;var T=A.enableMarqueeScroll;A=A.large;var G=_.F(_.pz(!1,void 0,"kfNqfd")),p=G.next().value,P=G.next().value,U=_.F(_.pz(0,void 0,"bYgZbf"));G=U.next().value;var L=U.next().value,M=_.st("marquee-scroll");U=_.st("div");var l=_.st("span"),J=_.fJ().resolve(_.bc);_.H_(function(){if(T()){var g=l.value.getBoundingClientRect().width,e=M.value.getBoundingClientRect().width;if(g>e){var x=(J==="ltr"?-1:1)*
(g+(b?b():16));Promise.resolve().then(function(){P(!0);L(x)})}}},"giRlme");
var n={},t={};return _.X("marquee-scroll",{class:_.O4("ytMarqueeScrollHost",(n.ytMarqueeScrollHostLarge=A,n)),el:M},_.X("div",{id:"marquee-scroll-inner-container",class:_.O4("ytMarqueeScrollInnerContainer",(t.ytMarqueeScrollAnimationEnabled=function(){return p()},t)),
el:U,style:_.qM({gap:b?(0,_.cx)(b):"16px","animation-duration":a?HZL(a):"16s","animation-delay":f?HZL(f):"3s","--marquee-translate":(0,_.cx)(G)})},_.X("span",{el:l,dir:"auto"},_.X(_.Rb,{text:Q,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.X(_.S,{cond:p,then:function(){return _.X("span",{"aria-hidden":"true",dir:"auto"},_.X(_.Rb,{text:Q,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.HsK=_.aP(function(A){var Q=A.data;var b=A.overlayDensity;A=_.IY(function(){Q().onTapCommand&&_.D3(Q().onTapCommand);return!1});
var f=_.Zji(),a=function(){return(b==null?void 0:b())===1?22:16},T={};
return _.X("reel-sound-metadata-view-model",{class:_.O4("ytReelSoundMetadataViewModelHost",(T.ytReelSoundMetadataViewModelHostLarge=function(){return(b==null?void 0:b())===1},T)),
"on:click":A,tabindex:0,role:"button","on:keydown":f},_.X("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.X(_.S,{cond:function(){return Q().musicIcon},
then:function(G){return _.X(_.aY,{data:G,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:a})}}),_.X("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.X(Irn,{text:function(){return Q().soundMetadata},
enableMarqueeScroll:function(){return!!Q().enableMarqueeScroll},
large:function(){return(b==null?void 0:b())===1}}))))},"Ge");var COx,qNd,CP,jtN,gqd,rMr,Wls,h7q;COx=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];qNd=_.GP("wil_icon_max_concurrent_fetches",Infinity);
CP=function(A,Q,b){var f=this;this.iconSet=A;this.appDirection=Q;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.by.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.K("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.K("wil_icon_network_first");this.renderWhenIdle=_.K("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.K("wil_icon_load_immediately");this.isPurging=!1;A=function(){f.cacheStorageAvailable&&(f.cacheStorageAsync=_.by.caches.open("yt-icons").then(function(T){return f.cacheStorageSync=T}).catch(function(){f.cacheStorageAvailable=!1}))};
b=(b==null?void 0:b())||{};b=_.F(Object.entries(b));for(Q=b.next();!Q.done;Q=b.next()){var a=_.F(Q.value);Q=a.next().value;a=a.next().value;a=Mq(a);oqr(a);this.iconCache[Q]=a.cloneNode(!0)}this.isPurging=tFO(this);this.isPurging instanceof Promise?this.isPurging.then(A):A()};
_.xRJ=function(A,Q){var b=A.resolveIcon(Q);return b?A.renderingMode===1?rMr(A,b,A.renderingMode):(Q=A.iconCache[b.url])?(Q=Q.cloneNode(!0),jtN(A,Q),rMr(A,b,A.renderingMode,Q)):_.R7F(A,b).then(function(f){var a=f?0:1;jtN(A,f);return rMr(A,b,a,f)}):(_.hq(new _.IO("Icon not found",{iconShape:Q})),function(){})};
jtN=function(A,Q){if(Q){A.counter+=1;A="_yt"+A.counter;Q=[Q].concat(_.ri(Q.getElementsByTagName("*")));Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())if(b=b.value,b.tagName==="style"&&b.textContent)b.textContent=gqd(b.textContent,A,!0);else for(var f=_.F(b.attributes),a=f.next();!a.done;a=f.next()){a=a.value;a.name==="id"&&(a.value+=A);["mask","fill","clip-path"].includes(a.name)&&(a.value=gqd(a.value,A));if(a.name==="style"){var T=b.style;try{T.cssText=gqd(T.cssText,A,!0)}catch(L){var G=void 0,p=
void 0,P=void 0,U=void 0;qG({error:((G=L)==null?void 0:(P=(p=G).toString)==null?void 0:P.call(p))||"",el:b.outerHTML,style:!!T,cssText:(U=T)==null?void 0:U.cssText})}}a.name==="xlink:href"&&(a.value=a.value.replace(/#(.*)/,"#$1"+A))}}};
gqd=function(A,Q,b){var f=/url\(["']?#(.*?)["']?\)/;(b===void 0?0:b)&&(f=/url\(["']?#(.*?)["']?\)/g);return A.replace(f,"url(#$1"+Q+")")};
rMr=function(A,Q,b,f){return function(a,T){var G=Object.assign({},{iconColor:"currentcolor",iconWidth:Q.size+"px",iconHeight:Q.size+"px",iconDisplay:"block"},T);T=_.KK("DIV");var p=G.iconColor,P=G.iconFilter;G="width: "+G.iconWidth+"; height: "+G.iconHeight+"; display: "+G.iconDisplay+";";P&&(G+=" filter: "+P+";");b===0&&(G+=" fill: "+p+";");b===1&&(P=Q.url,G+=" -webkit-mask: url("+P+") no-repeat center / cover; mask: url("+(P+") no-repeat center / cover; background-color: ")+p);Q.allowMirroring&&
A.appDirection==="rtl"&&(G+=" transform: scale(-1, 1); transform-origin: center center;");T.setAttribute("style",G);b===0&&f&&T.appendChild(f);a.appendChild(T)}};
_.R7F=function(A,Q){var b,f,a;return _.B(function(T){b=function(G){return w$(G)};
f=Q.url;if(!e7n(f))throw Error("jj");a=h7q(A,f);return T.return(a.then(function(G){return G.clone().text()}).then(function(G){var p=b(G);
G=Q.size;var P=_.KK("DIV");_.Ao(P,p);p=_.im(P.firstElementChild!==void 0?P.firstElementChild:_.N9y(P.firstChild,!0));G=oqr(p,G);A.iconCache[f]=G.cloneNode(!0);delete A.responsePromises[f];return G}).catch(function(){}))})};
Wls=function(A){var Q,b=(Q=A.requestAninmationFrameResolver)==null?void 0:Q.promise;b||(A.requestAninmationFrameResolver=new _.Mj,b=A.requestAninmationFrameResolver.promise,_.by.requestAnimationFrame(function(){var f;(f=A.requestAninmationFrameResolver)==null||f.resolve();A.requestAninmationFrameResolver=null}));
return b};
h7q=function(A,Q){var b,f;return _.B(function(a){if(a.nextAddress==1)return A.waitForAnimationFrame?a.yield(Wls(A),2):a.jumpTo(2);b=A.responsePromises[Q];b||(f=function(){var T,G,p;return _.B(function(P){switch(P.nextAddress){case 1:if(!A.cacheStorageAvailable){T=void 0;P.jumpTo(2);break}if(G=A.cacheStorageSync){P.jumpTo(3);break}return P.yield(A.cacheStorageAsync,4);case 4:G=P.yieldResult;case 3:T=G;case 2:return p=T,A.isNetworkFirstStrategy?P.return(A.fetchAndUpdateCache(Q,p).catch(A.getCacheStorageResponse.bind(A,
Q,p))):P.return(A.getCacheStorageResponse(Q,p).catch(A.fetchAndUpdateCache.bind(A,Q,p)))}})},b=A.renderWhenIdle?new Promise(function(T,G){_.Hv(_.j7,function(){f().then(T).catch(G)},10)}):f(),A.responsePromises[Q]=b);
return a.return(b.catch(function(T){delete A.responsePromises[Q];qG({error:(T==null?0:T.toString)?T.toString():"",url:Q});throw T;}))})};
CP.prototype.fetchAndUpdateCache=function(A,Q){var b=this;return _.B(function(f){return f.return(vqs(b,A).then(function(a){EqK(b,A,a,Q);return a}))})};
var vqs=function(A,Q){var b;return _.B(function(f){if(A.numFetches<qNd)return A.numFetches+=1,f.return(xNs(A,Q).finally(function(){--A.numFetches;if(Object.keys(A.queuedResponseResolvers).length){var a=Object.keys(A.queuedResponseResolvers)[0],T=A.queuedResponseResolvers[a];delete A.queuedResponseResolvers[a];T.resolve(vqs(A,a))}}));
b=new _.Mj;A.queuedResponseResolvers[Q]=b;return f.return(b.promise)})},xNs=function(A,Q,b){b=b===void 0?2:b;
var f;return _.B(function(a){f={credentials:"same-origin",priority:"low"};return a.return(_.by.fetch(Q,f).then(function(T){return T.ok?T:Promise.reject(Error("kj`"+T.status+"`"+T.statusText))}).catch(function(T){if(b>0)return xNs(A,Q,b-1);
throw T;}))})},EqK=function(A,Q,b,f){_.B(function(a){return f?a.return(new Promise(function(T){_.Hv(_.j7,function(){var G,p;
return _.B(function(P){switch(P.nextAddress){case 1:if(!A.isNetworkFirstStrategy){G=void 0;P.jumpTo(2);break}return P.yield(f.match(Q).catch(function(){}),3);
case 3:G=P.yieldResult;case 2:if(p=G){P.jumpTo(4);break}return P.yield(f.put(Q,b.clone()).catch(function(U){qG({error:(U==null?0:U.toString)?U.toString():"",url:Q})}),4);
case 4:T(),_.Oi(P)}})},50)})):a.return()})};
CP.prototype.getCacheStorageResponse=function(A,Q){return _.B(function(b){return Q?b.return(Q.match(A).then(function(f){return f&&f.ok?f:Promise.reject()})):b.return(Promise.reject())})};
var oqr=function(A,Q){Q===void 0||A.getAttribute("viewBox")||A.setAttribute("viewBox","0 0 "+Q+" "+Q);A.setAttribute("focusable","false");A.setAttribute("aria-hidden","true");try{A.style.pointerEvents="none",A.style.display="inherit",A.style.width="100%",A.style.height="100%"}catch(a){var b;qG({error:((b=a)==null?0:b.toString)?a.toString():""});try{A.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(T){var f;qG({error:((f=T)==null?0:f.toString)?T.toString():
""})}}return A},e7n=function(A){for(var Q=_.F(COx),b=Q.next();!b.done;b=Q.next())if(A.startsWith(b.value)&&A.endsWith(".svg"))return!0;
return!1};
CP.prototype.resolveIcon=function(A){return this.iconSet.resolveIcon(A)};
var qG=function(A){_.Wv(new _.IO("Error in IconManager",A))},tFO=function(A){if(_.K("wil_icons_cache_purge_killswitch"))return!1;
try{var Q=_.by.localStorage}catch(T){return!1}if(!Q||!A.cacheStorageAvailable)return!1;var b=function(T){try{var G;(G=Q)==null||G.setItem("yt-icons-last-purged",T.toString())}catch(P){var p;qG({error:((p=P)==null?0:p.toString)?P.toString():""})}},f=Number(Q.getItem("yt-icons-last-purged"));
if(!f)return f=new Date,f=f.setDate(f.getDate()-Math.floor(Math.random()*90+1)),b(f),!1;if(function(T,G){T=new Date(T);G=new Date(G);return G.getMonth()-T.getMonth()+12*(G.getFullYear()-T.getFullYear())}(f,Date.now())<3)return!1;
try{return _.by.caches.delete("yt-icons").then(function(T){T&&b(Date.now());return T}).catch(function(){return!1}).finally(function(){A.isPurging=!1})}catch(T){var a;
qG({error:((a=T)==null?0:a.toString)?T.toString():""});return!1}};
CP[aW]=[xcr,_.bc,_.bu(w$r)];_.om=function(A,Q){this.iconManager=A;this.iconsToFetch=Q};
_.om[aW]=[_.ie,_.bu(zA1)];var cMr=function(){};var z7F=function(A,Q,b){this.requestKey=A;this.bnp=Q;this.u6E=b;this.h1y=function(){return new XMLHttpRequest};
this.krK=void 0;this.cem=[]};
z7F.prototype.getLatestChallengeResponse=function(){return this.u6E};
var bKM=function(A,Q,b){var f,a,T,G;return _.B(function(p){if(p.nextAddress==1){_.eT("attestation_challenge_fetch");_.hQ("att_fs",void 0,"attestation_challenge_fetch");if(!A.krK)throw new _.rr(9,"Missing fetcher");return p.yield(A.krK(Q,b),2)}f=p.yieldResult;T=(a=f)==null?void 0:a.bgChallenge;if(!T)throw new _.rr(15,"Missing field");A.u6E=f;A.cem.forEach(function(P){P(f)});
G=D9b(T);_.hQ("att_fc",void 0,"attestation_challenge_fetch");bbe("attestation_challenge_fetch");return p.return(G)})},kzv=function(A,Q){var b,f,a,T,G;
return _.B(function(p){switch(p.nextAddress){case 1:b=new pK(100,3E5,.25,2),f=void 0;case 2:if(!(b.currBackoffCount_<10)){p.jumpTo(4);break}_.ML(p,5);if(!(b.currBackoffCount_>0)){p.jumpTo(7);break}return p.yield(NBi(b.getValue()),7);case 7:return p.yield(wdr(A,Q),9);case 9:return a=p.yieldResult,p.return(a);case 5:T=_.Vw(p);T instanceof _.rr?f=T:(G=T instanceof Error?T.message:"Unknown",f=new _.rr(9,G));Xaj(b);p.jumpTo(2);break;case 4:if(f)throw f;throw new _.rr(9,"Unknown error");}})},wdr=function(A,
Q){Q=uur(ZtM(new wlN,Q),A.requestKey);
var b=new _.Mj,f=A.h1y();f.open("POST",A.bnp);f.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");f.setRequestHeader("Content-Type","application/json+protobuf");f.onload=function(){if(_.jF6(f)){var a=AkN(f.responseText);b.resolve(a)}else b.reject(new _.rr(_.$qA(_.Pr(f)),f.statusText))};
f.onerror=function(){b.reject(new _.rr(_.$qA(_.Pr(f)),f.statusText))};
f.send(Q.serialize());return b.promise};var Zsx=function(A){this.networkStatusManager=A;this.isDownloaded=sG4===void 0?function(){return!1}:sG4;
this.isReady=!1;this.u78=uKM(this)},uKM=function(A){var Q;
return _.B(function(b){if(b.nextAddress==1)return b.yield(oQC(),2);if(b.nextAddress!=3)return Q=b.yieldResult,b.yield(LwM(Q),3);A.fZ=b.yieldResult;mty(A.fZ).then(function(){A.isReady=!0});
return b.return(A.fZ)})},yMl=function(A,Q,b){A.fZ?(A=A.fZ.tfG({lN:b,
fDP:!0,znr:!0}),Q.serviceIntegrityDimensions={poToken:A}):_.en(Error("mj"))};
Zsx.prototype.processContext=function(A){var Q=this;if(!A.input.match(_.bB(T8L)))return _.AY();var b=A.innerTubeRequest,f=b.videoId;return!f||this.isDownloaded(b)||this.networkStatusManager&&!this.fZ&&!this.networkStatusManager.isNetworkAvailable()?_.AY():this.fZ?this.isReady?(yMl(this,b,f),_.AY()):new mr(mty(this.fZ).then(function(){yMl(Q,b,f)})):new mr(this.u78.then(function(a){return _.B(function(T){if(T.nextAddress==1)return T.yield(mty(a),2);
yMl(Q,b,f);_.Oi(T)})}))};var YNd=new _.TS("WEB_PO_CONTEXT_PROCESSOR");var DNr=function(A,Q){var b=this;this.ans=0;var f;this.l4H=(f=Q==null?void 0:Q.l4H)!=null?f:window;this.networkStatusManagerPromise=Q==null?void 0:Q.networkStatusManagerPromise;var a;this.requestKey=(a=Q==null?void 0:Q.requestKey)!=null?a:_.Br("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var T;this.cME=(T=Q==null?void 0:Q.cME)!=null?T:function(P){return new v2(P)};
var G;f=(G=Q==null?void 0:Q.t4o)!=null?G:function(P,U,L){return new z7F(P,U,L)};
this.bgChallenge=D9b(A.bgChallenge);this.ttlSeconds=$9Y(ss(A.challenge||""));this.az=f(this.requestKey,_.K("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.by.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",A);s0W(this.az);var p;this.iye=(p=Q==null?void 0:Q.iye)!=null?p:function(P){_.jM(b.l4H.document,"visibilitychange",function(){b.l4H.document.visibilityState===
"visible"&&P()})}},NxO=function(A){if(!A.vm){var Q={maxAttempts:5,
tF9:A.ttlSeconds*1E3};AI6(A.l4H);A.vm=A.cME({az:A.az,c4f:{disable:_.K("html5_web_po_disable_remote_logging"),nj:"aGIf",fIU:CiX("html5_web_po_experiment_ids"),cSp:_.K("wpo_dis_lfdms")?0:1E3,eof:function(f){var a=fHr.get(f);a||(a=new bBY(f),a=new UO(a),fHr.set(f,a));return a}},
yyA:Q,kOe:A.bgChallenge,pr3:QQ4});A.ans=Date.now();NQv(A.vm,function(){A.ans=Date.now()});
RgA(A.vm,function(){return _.B(function(f){return f.return($Nx(A))})});
var b=A.jvW.bind(A);A.networkStatusManagerPromise&&A.ttlSeconds>0&&A.networkStatusManagerPromise.then(function(f){f.listen("publicytnetworkstatus-online",b)});
A.iye(b)}};
DNr.prototype.jvW=function(){if(Date.now()>this.ans+this.ttlSeconds*1E3){var A;(A=this.vm)==null||$1y(A)}};
var $Nx=function(A){if(A.lcE)return A.lcE;if(!A.vm)throw Error("nj");A.lcE=new zs({vm:A.vm,az:A.az,v2b:!0,onError:QQ4});return A.lcE},f$W=function(A,Q){A=new DNr(A,Q);
NxO(A);$Nx(A)};var ta=function(A,Q){this.store=A;this.queue=[];Q==null||Q.addEventListener("yt-navigate-start",this.reset.bind(this))};
ta.prototype.enqueue=function(A){var Q=A.command,b=A.durationMs,f=A.elementToFocus;var a=A.label;var T=A.elementToFocus;A.command?a=_.JQ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:a,shortcut:_.JQ("SHIFT_PLUS_ENTER")}):T&&(A=a+". "+_.JQ("SHIFT_PLUS_ENTER")+" for more information.",a=_.JQ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:a,shortcut:_.JQ("SHIFT_PLUS_ENTER")},A));b={announcement:a,durationMs:b!=null?b:8E3};Q?b.command=Q:f&&(f.classList.add("ephemeral-action-focusable-element"),b.selector=f.tagName+
".ephemeral-action-focusable-element");this.queue.push(b);stO(this)};
ta.prototype.activate=function(A){var Q=_.XQy(this.store.getState());if(Q){if(Q==null?0:Q.command)_.Z3(Q.command),this.store.dispatch(sZY(null));if(Q==null?0:Q.selector)Q=document.querySelector(Q.selector),_.DQ6(Q);A.preventDefault()}};
var stO=function(A){if(!_.XQy(A.store.getState())&&A.queue.length){var Q=A.queue.shift();Q&&(A.previousAnnouncement===Q.announcement&&(Q.announcement+="\u00a0"),A.store.dispatch(sZY(Q)),A.previousAnnouncement=Q.announcement,A.timeoutId=setTimeout(function(){if(Q.selector){var b;(b=document.querySelector(Q.selector))==null||b.classList.remove("ephemeral-action-focusable-element")}A.store.dispatch(sZY(null));stO(A)},Q.durationMs))}};
ta.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(sZY(null));this.queue.length=0;this.timeoutId=void 0};
ta[aW]=[_.u7,_.bu(_.tX)];_.rI=new _.TS("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var mNx=window.AbortController||LW1;var AsF=new _.TS("AUTH_SERVICE_TOKEN");var dZU=_.sC(["about:blank"]),TRF;var jR=new _.TS("API_IFRAME_TOKEN"),QTK=new _.TS("FETCH_FN_TOKEN"),bp7=new _.TS("PARSE_FN_TOKEN"),fiO=new _.TS("WINDOW_REQUEST_TOKEN"),ai7=new _.TS("TEXT_DECODER_TOKEN");var bz$;bz$=new _.TS("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.T$n=new _.TS("MISC_UI_SHARED_FLAGS_TOKEN");var dsx=function(){};
dsx.prototype.getFlag=function(A){if(A.configType!==2)throw Error("oj");return FwF(A)};
var FwF=function(A){switch(A.flagType){case "bool":return _.K(A.flagName);case "int":return _.g9(_.GP(A.flagName));case "double":return _.GP(A.flagName);case "string":return _.Br(A.flagName);case "int32_list":return CiX(A.flagName);case "int64_list":return CiX(A.flagName).map(function(Q){return _.g9(Q)});
case "string_list":return _.pJ(A.flagName);default:throw Error("pj");}};var Rm=function(A,Q,b){Q=Q===void 0?{}:Q;vB.call(this,b===void 0?"uninitialized":b);this.env=A;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}];Q.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=Q.shouldWaitOnAsyncImmediate)};
_.O(Rm,vB);Rm.prototype.init=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return Q.processPluginOptions.shouldWaitOnAsyncImmediate?f.yield(A(Q.env),2):(A(Q.env),f.jumpTo(2));if(f.nextAddress!=4)return Q.jobSet?f.yield(Q.jobSet.completedResolver.promise,4):f.jumpTo(4);b=_.y2();b.parkOrScheduleJob(function(){Q.transition("rendering")},10,"ci");
_.Oi(f)})};
Rm.prototype.initialRender=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return Q.processPluginOptions.shouldWaitOnAsyncImmediate?f.yield(A(Q.env),2):(A(Q.env),f.jumpTo(2));if(f.nextAddress!=4)return Q.jobSet?f.yield(Q.jobSet.completedResolver.promise,4):f.jumpTo(4);b=_.y2();b.parkOrScheduleJob(function(){Q.transition("rendered")},10,"cr");
_.Oi(f)})};
Rm.prototype.afterRenderImmediate=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return Q.processPluginOptions.shouldWaitOnAsyncImmediate?f.yield(A(Q.env),2):(A(Q.env),f.jumpTo(2));if(f.nextAddress!=4)return Q.jobSet?f.yield(Q.jobSet.completedResolver.promise,4):f.jumpTo(4);b=_.y2();b.parkOrScheduleJob(function(){Q.transition("after-render-deferred")},10,"carml");
_.Oi(f)})};
Rm.prototype.afterRenderDeferred=function(A){var Q=this;return _.B(function(b){A(Q.env);_.Oi(b)})};var GYr;_.e6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});GYr={};_.B$O=(GYr.CSI=SVU(),GYr.ECATCHER=XIe(),GYr);var phs={},Pnr=(phs.rendered={priority:0,callback:function(A){Ewr(A.injector.resolve(Cu))}},phs);var dKX=new _.TS("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),Xhl=new _.TS("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var S$K=function(A){this.callbackFnMap=A;this.configMap={}};
S$K.prototype.handleResponse=function(A){var Q;if(A=(Q=A.responseContext)==null?void 0:Q.serviceTrackingParams)for(Q=_.F(A),A=Q.next();!A.done;A=Q.next()){A=A.value;var b=A.params,f=A.service;if(b&&f){this.configMap[f]||(this.configMap[f]=new t0j);A=this.configMap[f];var a=void 0,T=(a=this.callbackFnMap)==null?void 0:a[f];b=_.F(b);for(f=b.next();!f.done;f=b.next())a=f.value,f=a.key,a=a.value,f&&a&&(A.set(f,a),T&&T(f,a))}}};
S$K[aW]=[_.bu(Xhl)];var Usl=!1,KNF=0,UZ9=null,l$A=null;var Lwd=new _.TS("NETWORK_SLI_TOKEN");var Mdx=function(A,Q,b,f,a){this.networkSli=A;this.fetchFn=Q;this.parseFn=b;this.requestFn=f;this.JSC$18350_textDecoder=a};
Mdx.prototype.fetch=function(A,Q,b){var f=this,a,T,G;return _.B(function(p){a=lid(f,A,Q);G=(T=f.fetchFn)!=null?T:fetch;return p.return(G(a).then(function(P){return f.handleResponse(P,b)}).catch(function(P){_.Wv(P);
if((b==null?0:b.expectJsonStrict)&&P instanceof CW&&P.errorType===1)return Promise.reject(P)}))})};
var PbW=function(A,Q,b,f){var a,T,G,p,P,U,L;return _.B(function(M){switch(M.nextAddress){case 1:return a=lid(A,Q,b),_.ML(M,2),M.yield(fetch(a),4);case 4:T=M.yieldResult;_.Z1(M,3);break;case 2:throw _.Vw(M),new CW(2,"Failed to parse streaming response",a.url);case 3:if(!T.redirected&&!T.ok)throw(G=A.networkSli)==null||G.failure(),new _.IO("Streaming fetch request not ok",a.url);if(!T.body)throw new _.IO("No response body in streaming response",a.url);p={};if(_.K("web_streaming_fast"))return P=T.body.getReader(),
M.return(KwN(A,P,p,f));U=T.body.pipeThrough(new TextDecoderStream).getReader();L=new _.Pp;return M.return(ipx(A,U,L,KqW,p,f))}})},lid=function(A,Q,b){if(A.networkSli){var f=_.LJ(_.fD(Q,"key"))||"/UNKNOWN_PATH";
A.networkSli.start(f)}f=b;_.K("wug_networking_gzip_request")&&(f=El4(b));var a;return new ((a=A.requestFn)!=null?a:window.Request)(Q,f)},KwN=function(A,Q,b,f){var a,T,G,p,P,U,L,M,l,J,n;
return _.B(function(t){switch(t.nextAddress){case 1:a=A.JSC$18350_textDecoder?new A.JSC$18350_textDecoder("utf-8"):new TextDecoder("utf-8"),T="",G=function(g){g=g.trim();g.length!==0&&g!=="]"&&g!=="["?(g.startsWith("[")&&(g=g.substring(1)),g.endsWith("]")&&(g=g.slice(0,-1)),g.endsWith(",")&&(g=g.slice(0,-1)),g=g.trim()):g=void 0;if(g)try{var e=JSON.parse(g);KqW(b,e);f==null||f(b,e)}catch(x){throw new CW(1,"Failed to parse streaming response",g);}},_.ML(t,2,3);
case 5:return t.yield(Q.read(),8);case 8:p=t.yieldResult;P=p.value;if(U=p.done)return T.length>0&&G(T),L=void 0,(L=A.networkSli)==null||L.success(),t.return(b);T+=a.decode(P,{stream:!0});M=T.split("\n");T=M.pop()||"";l=_.F(M);for(J=l.next();!J.done;J=l.next())n=J.value,G(n);t.jumpTo(5);break;case 3:_.KN(t);Q.releaseLock();_.Jo(t,0);break;case 2:throw _.Vw(t),new CW(1,"Failed to parse streaming response");}})},ipx=function(A,Q,b,f,a,T){var G,p,P,U,L,M,l,J,n;
return _.B(function(t){if(t.nextAddress==1)return t.yield(Q.read(),2);G=t.yieldResult;p=G.value;if(P=G.done)return(U=A.networkSli)==null||U.success(),t.return(a);try{L=b.parse(p)}catch(g){throw new CW(1,"Failed to parse streaming response",p);}if(L!=null)for(M=_.F(L),l=M.next();!l.done;l=M.next())J=l.value,f(a,J),n=void 0,(n=T)==null||n(a,J);return t.return(ipx(A,Q,b,f,a,T))})};
Mdx.prototype.handleResponse=function(A,Q){var b,f=(b=this.parseFn)!=null?b:JSON.parse;b=A.text().then(function(a){if((Q==null?0:Q.jspbResponseCtor)&&A.ok)return v8e(Q.jspbResponseCtor,a);a=a.replace(")]}'","");if((Q==null?0:Q.expectJsonStrict)&&a)try{var T=f(a)}catch(p){throw new CW(1,"JSON parsing failed after fetch");}var G;return(G=T)!=null?G:f(a)});
A.redirected||A.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),b=b.then(function(a){_.Wv(new _.IO("Error: API fetch failed",A.status,A.url,a));return Object.assign({},a,{errorMetadata:{status:A.status}})}));
return b};
Mdx[aW]=[_.bu(Lwd),_.bu(QTK),_.bu(bp7),_.bu(fiO),_.bu(ai7)];var Jsx=new _.TS("NETWORK_MANAGER_TOKEN");var Vds=[1,2,4,8,16,30],n8q=function(A){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=A.maxTimeMs;this.maxFrameCount=A.maxFrameCount===void 0?Math.ceil(60*A.maxTimeMs/1E3):A.maxFrameCount;A=_.F(Vds);for(var Q=A.next();!Q.done;Q=A.next())this.brokenFrameSummarizers.push(new OpN(Q.value/60*1E3))},kYx=function(A){var Q=A.frameCountInternal>=A.maxFrameCount;
return A.elapsedTimeMs>=A.maxTimeMs||Q};
n8q.prototype.summarize=function(){for(var A=[],Q=_.F(this.brokenFrameSummarizers),b=Q.next();!b.done;b=Q.next())b=b.value,b=b.brokenFrameCount!==0?{severityMs:Math.round(b.targetFrameTimeMs),eventCount:b.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(b.averageDurationBetweenEventsMs)}:void 0,b&&A.push(b);return{summaries:A,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Qr.Object.defineProperties(n8q.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 OpN=function(A){this.targetFrameTimeMs=A;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Qr.Object.defineProperties(OpN.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var Iin=function(){};
Iin.prototype.start=function(A,Q){var b=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var f=new n8q({maxTimeMs:A});this.monitor=f;this.lastSummaryInternal=void 0;this.metadataToLog=Q;return new Promise(function(a){var T=function(G){if(G===void 0)b.stop(),a(void 0);else if(b.monitor!==f)G=Object.assign({},f.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),a(G);else{var p=b.monitor;if(!kYx(p)){p.frameCountInternal++;if(p.prevTime===
void 0)p.startTime=G;else for(var P=G-p.prevTime,U=_.F(p.brokenFrameSummarizers),L=U.next();!L.done;L=U.next()){L=L.value;var M=L.currTimeMs;L.currTimeMs+=P;P>L.targetFrameTimeMs+2&&(L.brokenFrameCount++,L.timeOfFirstBrokenFrameMs===void 0&&(L.timeOfFirstBrokenFrameMs=M),L.timeOfLastBrokenFrameMs=M)}p.prevTime=G}kYx(b.monitor)?a(b.stop()):_.j7.addJob(T,5,0)}};
_.j7.addJob(T,5,0)})};
Iin.prototype.stop=function(A){if(!this.monitor)return this.lastSummaryInternal;var Q=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(Q.monitoringDurationMs){A=A!=null?A:this.metadataToLog;var b={droppedFramesSummary:Q,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};A&&(b[A.type]=A.data);_.R4("manualSmoothnessMeasurement",b)}this.monitor=void 0;this.lastSummaryInternal=Q;this.metadataToLog=void 0;return Q};_.HpM=new _.TS("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var CnN;CnN=function(A){this.JSC$18373_expiringStorage=new CJ(A)};
_.q$q=function(A){if(_.iZy()&&(A=_.M$e(_.nJ()+"::"+A)))return new CnN(A)};
CnN.prototype.set=function(A,Q,b){b=b!==void 0?Date.now()+b:void 0;this.JSC$18373_expiringStorage.set(A,Q,b)};
CnN.prototype.get=function(A){return this.JSC$18373_expiringStorage.get(A)};
CnN.prototype.remove=function(A){this.JSC$18373_expiringStorage.remove(A)};var o8O=new _.TS("SESSION_STORAGE");_.gI=function(){};
_.gI.getInstance=function(){var A=_.zV("ytglobal.storage_");A||(A=new _.gI,_.Al("ytglobal.storage_",A));return A};
_.gI.prototype.estimate=function(){var A,Q,b;return _.B(function(f){A=navigator;return((Q=A.storage)==null?0:Q.estimate)?f.return(A.storage.estimate()):((b=A.webkitTemporaryStorage)==null?0:b.queryUsageAndQuota)?f.return(JIX()):f.return()})};
_.Al("ytglobal.storageClass_",_.gI);var eEf=!!(T0[1]>>14&1);var CjC=0;var gvb=!1;var tdx=_.sC(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),rsN=_.sC(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var e6N={"/":_.IR,"/?feature=ytca":_.IR,"/feed/downloads":_.fqb};var i6=function(A,Q,b){this.JSC$18389_upliftPromise=A;this.store=Q;this.JSC$18389_persistentStorePromiseAccessor=b};
i6.prototype.shouldPreferLocalResponse=function(A){return A.browseId==="FEdownloads"||A.browseId==="FEsmart_downloads"&&_.K("kevlar_modern_downloads_page")?!0:!1};
i6.prototype.localInnertubeResponse=function(A){var Q=this;return _.B(function(b){return A.browseId==="FEdownloads"?_.K("kevlar_modern_downloads_page")?b.return(jTl(Q)):b.return(Rxx(Q)):A.browseId==="FEsmart_downloads"&&_.K("kevlar_modern_downloads_page")?b.return(g8F(Q)):b.return(Promise.reject(Error("rj")))})};
i6.prototype.canProvideFallbackResponse=function(){return!0};
i6.prototype.localFallbackInnertubeResponse=function(A){var Q=this,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:return T.yield(Q.JSC$18389_persistentStorePromiseAccessor(),2);case 2:b=T.yieldResult;if(A.browseId!=="SPaccount_downloads"||!b){T.jumpTo(3);break}return T.yield(NpY(b),4);case 4:if(f=T.yieldResult)return T.return(_.Fw(f));case 3:return A.browseId==="FEwhat_to_watch"?T.return(exO(Q)):(a=_.K("web_offline_continuation_automatic_retry")||_.K("web_offline_continuation_retry_button"))&&
A.continuation?T.return(hxN(Q)):T.return(Wwr(Q))}})};
var exO=function(A){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(A.JSC$18389_upliftPromise,2);Q=_.ngi(A.store.getState().entities);return Q.length?b.return(v8d(A,Q)):b.return(Wwr(A))})},Rxx=function(A){var Q,b;
return _.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$18389_upliftPromise,2);if(f.nextAddress!=3)return Q=E8n([{offlineItemSectionRenderer:{}}]),f.yield(xsK(A,Q),3);b=f.yieldResult;b.onResponseReceivedActions=[Ib("REFRESH_DOWNLOADS")];return f.return(b)})},jTl=function(A){var Q,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g;
return _.B(function(e){if(e.nextAddress==1)return e.yield(A.JSC$18389_upliftPromise,2);if(e.nextAddress!=3)return Q=A.store.getState(),b=Q.entities,f=_.j$(b),a=_.RX(b),T=_.Qay(Q),G=_.AXy(Q),p=_.bWe(Q),P=_.H2W(b),U=_.HO(f),L=_.gs(b),M=_.t39(b),l=_.aBJ(Q),J=_.Er(Q),n={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.K1A(f,a,P,M,T,G,U,L,p,l,J),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},t="",_.K("kevlar_modern_downloads_skip_downloads_title")||
(t=_.JQ("DOWNLOADS",void 0,"Downloads")),e.yield(csx(A,n,t),3);g=e.yieldResult;g.onResponseReceivedActions=[Ib("REFRESH_DOWNLOADS")];return e.return(g)})},g8F=function(A){var Q,b,f,a,T,G,p,P,U;
return _.B(function(L){if(L.nextAddress==1)return L.yield(A.JSC$18389_upliftPromise,2);if(L.nextAddress!=3)return Q=A.store.getState(),b=Q.entities,f=_.j$(b),a=_.HO(f),T=_.gs(b),G={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.JRU(f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},p=_.JQ("SMART_DOWNLOADS",void 0,"Smart downloads"),P=Mab(a,T),L.yield(csx(A,G,p,P),3);U=L.yieldResult;U.onResponseReceivedActions=
[Ib("REFRESH_DOWNLOADS")];return L.return(U)})},Wwr=function(A){var Q,b;
return _.B(function(f){if(f.nextAddress==1)return f.yield(dy(A.JSC$18389_upliftPromise,A.store),2);Q=f.yieldResult;b=E8n([yG9(Q)]);return f.return(xsK(A,b))})},hxN=function(A){var Q,b,f,a;
return _.B(function(T){if(T.nextAddress==1)return Q={},b=A.store.getState().continuation.continuationCommand,_.EG(Q,_.Yo,b),T.yield(dy(A.JSC$18389_upliftPromise,A.store,Q,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);f=T.yieldResult;a={};_.EG(a,_.eVW,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:f}}}],targetId:"browse-feedFEwhat_to_watch"});return T.return({responseContext:{},onResponseReceivedActions:[a]})})},E8n=function(A){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:A}}}}]}}},v8d=function(A,Q){var b,f;
return _.B(function(a){var T={contents:Hi(Q)};b=T&&T.contents?T:{};_.K("kevlar_modern_downloads_page")&&(b=Object.assign({},_.Vay(Q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));f={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:b}}}]}};return a.return(xsK(A,f))})},xsK=function(A,Q){var b,f;
return _.B(function(a){if(a.nextAddress==1)return a.yield(A.JSC$18389_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3)return b=a.yieldResult,a.yield(Gb(b),3);f=a.yieldResult;return a.return({responseContext:{},contents:Q,topbar:f})})},csx=function(A,Q,b,f){var a,T;
return _.B(function(G){if(G.nextAddress==1)return G.yield(A.JSC$18389_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3)return a=G.yieldResult,G.yield(Gb(a),3);T=G.yieldResult;var p=G.return;var P=b;var U=f;P=P===void 0?"":P;U=U===void 0?"":U;P={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:P}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.JQ("SETTINGS",void 0,"Settings"),accessibilityText:_.JQ("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:fO("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:U}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:P};
return p.call(G,{responseContext:{},contents:Q,topbar:T,header:{pageHeaderRenderer:P}})})};var zxl=function(){this.moduleRegistry={};this.fetchCount=0};
zxl.prototype.isFetching=function(){return this.fetchCount>0};
var wy=function(A,Q){A.moduleRegistry[Q.toString()]={asyncId:Q,isFetching:!1};return A};
zxl.prototype.JSC$18400_loadModules=function(){for(var A=this,Q=new Map,b=[],f=_.F(_.E$.apply(0,arguments)),a=f.next();!a.done;a=f.next()){a=a.value;var T=this.moduleRegistry[a];T?T.resolver?Q.set(a,T.resolver):(T.resolver=new _.Mj,Q.set(a,T.resolver),b.push(T.asyncId),T.isFetching=!0):(T=new _.Mj,Q.set(a,T),T.resolve(void 0))}b.length&&(this.fetchCount+=1,_.oH(_.Uk.getMultipleAsync.apply(_.Uk,_.ri(b)).then(function(G){for(var p=0;p<b.length;p++){var P=G[p],U=A.moduleRegistry[b[p].toString()];U.isFetching=
!1;U.resolver.resolve(P)}}).catch(function(G){for(var p=_.F(b),P=p.next();!P.done;P=p.next()){P=P.value;
var U=A.moduleRegistry[P.toString()];U.resolver=void 0;U.isFetching=!1;Q.get(P.toString()).reject(G)}}),function(){--A.fetchCount}));
return Promise.all([].concat(_.ri(Q.values())).map(function(G){return G.promise}))};_.u6=new _.TS("MODULE_REGISTRY_TOKEN");var whF={},uct=(whF.rendered={priority:0,callback:function(A){a:{var Q=void 0;try{var b;b:{if(_.axY()){var f=_.LOA(_.nJ()+"::pom");if(f){var a=new Ra(f);break b}}a=void 0}var T=(b=a)==null?void 0:b.get("role_text");if(!T)break a;Q={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:T}]}}}}}}catch(P){}Q&&A.injector.resolve(_.de).resolveCommand(Q)}try{var G=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(G){var p=JSON.parse(G);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
p&&A.injector.resolve(_.de).resolveCommand(p)}}catch(P){}}},whF);var Zps,ysO={},Y$t=(ysO.initialized={priority:10,callback:function(){Zps=ry()}},ysO.rendering={callback:function(A){var Q;
return _.B(function(b){if(b.nextAddress==1)return b.yield(Zps,2);Q=b.yieldResult;if(!Q.endpoint)throw Error("tj`"+_.by.location.href);eO(A,Q);_.Oi(b)})}},ysO);var Dsx={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.ri(_.K("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(A){var Q=A.stack;if(Q.includes("chrome://")||Q.includes("chrome-extension://")||A.message.includes("chrome-extension://")||Q.includes("moz-extension://")||Q.includes("local.adguard.org")||Q.includes("auctioneer3.50million.club")||Q.includes("youtubedownloader")||Q.includes("youtube_home_page")||Q.includes("is_youtube_video_no_longer_available")||
Q.includes("switchScreenSizeHack")||Q.includes("yt_main_big_banner.js")||Q.includes("YouTubeCenter.js")||Q.includes("/mytube.js")||Q.includes("JSON.parseWrapper")||Q.includes("/inj_js/common.js")||Q.includes("firebug-lite")||Q.includes(".repl.co/")||Q.includes("linkfix")||Q.includes("playAfterAd")||A.message.includes("Access is denied for this document")&&Q.includes("<anonymous>")||A.fileName==="user-script"||A.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
Q.includes("<anonymous>"))return!0;if(Q.includes("https://www.youtube.com"))return!1;A=Q.split("\n");if(!A.length)return!1;if(A.length<=3&&Q.includes("s.onloadeddata"))return!0;Q=0;for(var b=_.F(A),f=b.next();!f.done;f=b.next())f=f.value,(f.includes("https://")||f.includes("http://"))&&Q++;return Q/A.length>.95},
weight:0},{callback:function(A){return A.message==="Unknown Error"&&A.name.indexOf("NS_")===0},
weight:100},{callback:function(A){if(!_.S1)return!1;var Q=A.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||A.message.includes("available to complete this operation"),b=A.stack.includes("webcomponents")&&A.message==="Object doesn't support this action";A=A.message.includes("object that does not implement interface Element");return Q||b||A},
weight:0},{callback:function(A){return A.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(A){return A.message==="Operation is not supported"&&(A.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(A){return A.stack.includes("eval code (eval (code:1:1)")||A.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(A){return A.message.includes("Permission denied")&&A.stack.includes("this.domHandler")?!0:A.name.includes("TypeError")&&A.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(A){if(!A.stack)return!1;var Q=A.stack.trim().split("\n");Q.length&&Q[0].endsWith("Error: "+A.message)&&Q.shift();Q.length&&Q[Q.length-1].includes("at window.onerror (")&&Q.pop();if(!Q.length)return!0;if(A.message==="Script error.")return Q[0].includes("www.youtube.com")||Q.length>=2&&Q[0].startsWith("at new")&&Q[1].startsWith("at window.onerror");if(A.message==="Unexpected token")return!0;A=_.F(Q);for(Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,!(Q.includes("<anonymous>")||
Q.startsWith("load@")||Q.startsWith("global code@")||Q.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(A){return A.message==="Cannot read property 'experiments'"&&A.stack.includes("/s/player/")},
weight:500},{callback:function(A){return A.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(A){return A.stack.includes("/embed.js")?(A.params&&A.params&&(A.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.K("use_error_suppression"))var A=_.vG("SUPPRESS_CLIENT_ERRORS",!1);else{if(A=_.Ke)A=/Chrome\/(\d+)/.exec(_.Mf()),A=(A?parseFloat(A[1]):NaN)>=66;A=!(A||_.lT&&_.MP(65)||_.vr&&_.MP(12.1)||so&&_.MP(79))}return A},
weight:500}]};var $st={},N$N=($st.initialized={priority:10,callback:function(A){A.injector.addProvider({provide:T0W,useValue:A.root});A.injector.addProvider({provide:H$K,useValue:pLY});A.injector.addProvider({provide:CYM,useValue:Dsx});var Q={};A.injector.addProvider((Q.provide=qLN,Q.useFactory=function(b,f){return function(){PDf(b,f)}},Q[aW]=[H$K,
CYM],Q));A.injector.addProvider({provide:VP,useClass:VP})}},$st);var sTn={},msd=(sTn.initialized={priority:3,callback:function(){var A;if(A=G7A()){A=A.replace("/",".");var Q=_.nD();Q.set("tz",A);Q.save();A=!0}else A=!1;A||(A=_.nD(),A.set("utco",-Math.floor((new Date).getTimezoneOffset())),A.save())}},sTn);var Aos={},QDl=(Aos.initialized={priority:10,callback:function(A){A.injector.resolve(VP).start();A=_.Dk();var Q=_.Ep("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Ep("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Ep("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Ep("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.L7(_.R$9(),{mainAppWeb:Object.assign({},A,{pageType:Q})});_.L7(e$y(),{mainAppWeb:Object.assign({},A,{pageType:Q})});
_.L7(h$J(),{mainAppWeb:A});_.L7(W2b(),{mainAppWeb:A});s4$(function(){_.Mr(h$J(),"FAILURE");_.Mr(W2b(),"FAILURE")});
NRU();sQ6();YP6()}},Aos);var bNF={},fFN=(bNF.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.hQ("dl"),_.y2().processSignal("pcl");else{var A=function(){_.hQ("dl");_.y2().processSignal("pcl");window.removeEventListener("load",A)};
window.addEventListener("load",A)}}},bNF);var aFn={},Tiq=(aFn.rendering={priority:0,callback:function(){var A=_.y2();A.parkOrScheduleJob(function(){A.processSignal("eocs")},10,"eor",5E3)}},aFn);var dLM=function(){};
_.O(dLM,Yu);
dLM.prototype.resolveCommand=function(A,Q){var b,f,a,T,G,p,P,U;return _.B(function(L){a=(b=_.V(A,_.IOL))==null?void 0:(f=b.dialog)==null?void 0:f.commentReplyDialogRenderer;if(!a)throw new _.IO("No dialog in createCommentReplyDialogEndpoint");G=(T=Q.form)==null?void 0:T.event;if(!G)throw new _.IO("Event not passed in when resolving command");p=_.F(G.composedPath());for(P=p.next();!P.done;P=p.next())if(U=P.value,U.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||U.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return U.showReplyDialog(a),L.return();
_.Oi(L)})};var eR=function(A){this.pageRequestService=A;this.JSC$18415_prefetchCoordinator=SLx()};
_.O(eR,Yu);eR.prototype.resolveCommand=function(A){var Q=this,b,f,a,T;return _.B(function(G){if(G.nextAddress==1){b=_.V(A,TE1);if((f=b)==null||!f.taskId)throw Error("uj");a=b.taskId;_.ML(G,2);return G.yield(_.Qgx(Q.pageRequestService,A,{},"").then(function(p){if(!p)throw Error("vj");},function(p){throw Error("wj`"+p);
}),4)}if(G.nextAddress!=2)return MWN(Q.JSC$18415_prefetchCoordinator,a),_.Z1(G,0);
T=_.Vw(G);SR(Q.JSC$18415_prefetchCoordinator,a,T);_.Oi(G)})};
eR[aW]=[tb];var ha=function(A){this.innertubeTransportService=A};
_.O(ha,Yu);ha.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){b=_.V(A,fX1);if(b.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||b.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")f=b.boolValue?2:1,_.dl.getInstance().setState(f,!0,!0);return a.yield(_.Ay(Q.innertubeTransportService,A),0)})};
ha[aW]=[_.vY];var Wu=function(A){this.innertubeTransportService=A};
_.O(Wu,Yu);Wu.prototype.resolveCommand=function(A){var Q=this,b,f;return _.B(function(a){b=_.V(A,CIM);if(!b)return a.return();f=[];b.contentCommand&&f.push(_.Ay(Q.innertubeTransportService,b.contentCommand));b.watchCommand&&f.push(_.Ay(Q.innertubeTransportService,b.watchCommand));return a.yield(Promise.all(f),0)})};
Wu[aW]=[_.vY];var vu={},FyK=(vu.addToPlaylistEndpoint=bg(xD),vu.addToToastAction=bg(wV),vu.adsControlFlowOpportunityReceivedCommand=bg(OT),vu.backgroundAudioPlaybackCommand=bg(Qj),vu.captionLanguageSelectActionCommand=bg(bb),vu.captionPickerEndpoint=bg(fd),vu.changeMiniAppPlayStateCommand=bg(cc),vu.changeTimelyActionVisibilityCommand=bg(za),vu.channelCreationFormEndpoint=bg(gf),vu.clearLocationCommand=bg(ET),vu.clearUrlParamCommand=bg(zK),vu.copyLinkCommand=bg(BS),vu.copyTextEndpoint=bg(Iq),vu.createCommentReplyDialogEndpoint=
vt9(dLM),vu.createPlaylistServiceEndpoint=bg(pd),vu.dismissDialogEndpoint=bg(ul),vu.dismissPlayerOverlayCommand=bg(aw),vu.entityUpdateCommand=bg(CC),vu.feedbackEndpoint=bg(t0),vu.getAnswerCommand=bg(VAl),vu.getPaymentsClientTokenCommand=bg(yj),vu.getTranscriptEndpoint=bg(ub),vu.googlePaymentBillingCommand=bg(Yn),vu.googlePaymentPurchaseManagerCommand=bg(Da),vu.hideEngagementPanelEndpoint=bg(ZM),vu.hideSnackbarCommand=bg(ew),vu.insertRichSectionCommand=bg(h0),vu.learningJourneyCanvasCommand=bg(Wu),
vu.listMutationCommand=bg(Wc),vu.logGtmCommand=bg(eH),vu.notifyDropdownOptionSelectedCommand=bg(wf),vu.openAdAllowlistInstructionCommand=bg(_.nC),vu.openOnePickAddVideoModalCommand=bg(PS),vu.persistSubscriptionsDisplayPreferencesCommand=bg(lb),vu.pingingEndpoint=bg(kD),vu.playlistEditEndpoint=bg(Sw),vu.playlistVotingRefreshPopupCommand=bg(UW),vu.profileCardCommand=bg(Vl),vu.refreshPanelEndpoint=bg(yl),vu.saveImageToDeviceEndpoint=bg(Hc),vu.scrollToSectionEndpoint=vt9(OFt),vu.seekToVideoTimestampCommand=
bg(Ta),vu.selectCountryCommand=bg(Kd),vu.setCookieCommand=bg(ib),vu.setLocalStorageCommand=bg(WS),vu.setPrefStorageEntryCommand=bg(Vj),vu.setSettingEndpoint=bg(ha),vu.sfvAudioItemPlaybackCommand=bg(dV),vu.shareImageCommand=bg(OW),vu.sharingProviderDataCommand=bg(nd),vu.showCaptionLanguageSelectActionCommand=bg(FQ),vu.showDialogCommand=bg($D),vu.showEngagementPanelEndpoint=bg(NS),vu.showSheetCommand=bg(sT),vu.showSnackbarCommand=bg(hn),vu.showTransientPlayerScrimOverlayCommand=bg(Ga),vu.submitFormWithValidationFlowCommand=
bg(Rq),vu.talkToRecsDeselectCommand=bg(vS),vu.talkToRecsNextCommand=bg(EW),vu.talkToRecsSelectCommand=bg(xn),vu.talkToRecsUpdateTextCommand=bg(cS),vu.toggleEngagementPanelCommand=bg(mY),vu.undoFeedbackEndpoint=bg(jH),vu.updateEngagementPanelContentCommand=bg(An),vu.updateUrlParamCommand=bg(Za),vu.verifyCommand=bg(gf),vu.webNativeShareCommand=bg(kn),vu.webSubmitFormCommand=bg(Ld),vu.ACK_PLAYABLES_3P_DATA_CONSENT=bg(Iw),vu.CANCEL_NAVIGATION=bg(HS),vu.COPY_SHARE_URL=bg(Cd),vu.MINI_APP_EXIT_DIALOG_SEEN=
bg(ow),vu.MINI_APP_OPEN_URL=bg(qR),vu.REQUEST_MINI_APP_FULLSCREEN=bg(tn),vu.RESUME_NAVIGATION=bg(rV),vu.SHARE_PLAYABLE_WITH_HIGH_SCORE=bg(jw),vu.TELL_US_WHY=bg(rf),vu);_.K("web_enable_prefetching_videos_on_home")&&(FyK.prefetchWatchCommand=bg(eR),FyK.registerTasksCommand=bg(LP));_.K("enable_share_panel_navigation_logging_fix_on_web")&&(FyK.shareEntityServiceEndpoint=bg(YD));var Bwy=Object.assign({},FyK);var GOn={},Bix=(GOn.initialized={priority:10,callback:fL6},GOn);var pa7={},PMx=(pa7.initialized={callback:function(A){var Q={},b={};XuY().install((Q.document_disposed={callback:function(){_.K("finalize_all_timelines")?fOC():RF();LN9("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.n9b();var f=A.injector.resolve(VP);f.intervalId!==void 0&&(f.intervalId&&_.j7.cancelJob(f.intervalId),f.intervalId=void 0,--f.currentPartitionIndex,f=yap(f),f>0&&$bM({mainAppWeb:_.Dk(),survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));c9N(N8);sq!=null&&
sq.flush();pT&&pT.snapshotAndFlush();f=_.F(fHr.values());for(var a=f.next();!a.done;a=f.next())a.value.snapshotAndFlush()}},Q),(b.flush_logs={callback:function(){_.go()}},b))}},pa7);var Xal={},SiK=(Xal.rendered={priority:0,callback:function(){var A=new g$j;A.increment("STARTED");if(_.vG("LOGGED_IN")&&_.vG("SERVER_VERSION")!=="test"&&_.vG("SERVER_VERSION")!=="dev"&&!SLp()&&!XMv()){A.increment("EXECUTING");var Q=document.createElement("iframe");Q.style.display="none";_.TiC(Q,2,_.hs("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.vG("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(Q);A.increment("DONE")}}},Xal);var ULq={},LyM=(ULq.rendered={callback:function(){SLx().resume()}},ULq);var Mxl={acknowledgeChannelTouStrikeCommand:qj(kc),addToPlaylistServiceEndpoint:qj(CR),addToPlaylistEndpoint:qj(CR),addUpcomingEventReminderEndpoint:qj(vW),browseEndpoint:qj($fM),channelCreationFormEndpoint:qj(lk),channelCreationServiceEndpoint:qj(KM),claimLegacyYoutubeChannelEndpoint:qj(a5),clearSearchHistoryEndpoint:qj(rX),clearWatchHistoryEndpoint:qj(jC),commerceActionCommand:oz(D2),createBackstagePostEndpoint:qj(sW),createBroadcastCommand:qj(Eg),createCommentEndpoint:qj(SC),createCommentReplyEndpoint:qj(XP),
createLiveChatPollEndpoint:qj(xc),createPlaylistServiceEndpoint:qj(qy),crossAccountChannelTransferEndpoint:qj(eC),deleteLiveChatMessageCommand:qj(cW),deletePlaylistEndpoint:qj(oU),deleteVideoEndpoint:qj(uK),dismissalEndpoint:qj(I5),feedbackEndpoint:qj(HW),flagEndpoint:qj(em),getAccountSwitcherEndpoint:qj(gX),verifyCommand:qj(NR),getAccountsListInnertubeEndpoint:qj(WW),getCommentsFromInboxCommand:qj(pR),getDownloadActionCommand:qj(lK),getFlowCommand:oz(tB),getKidsBlocklistPickerCommand:qj(hW),getNotificationMenuEndpoint:qj(mfl),
getPaymentInstrumentsParamsCommand:qj(QC),getPaymentsClientTokenCommand:oz(D2),getPdgBuyFlowCommand:qj(IU),getReportFormEndpoint:qj(WP),getSearchInVideoCommand:qj(xW),getAnswerCommand:qj(Em),getSurveyCommand:qj(wZ),getTranscriptEndpoint:qj(yc),getPostVideoPreviewEndpoint:qj(AB),decorateMessageEndpoint:qj(m$),likeEndpoint:qj(ik),liveChatActionEndpoint:qj(ZE),liveChatEndpoint:qj(uk),liveChatItemContextMenuEndpoint:qj(z8),liveChatPurchaseMessageEndpoint:qj(yS),liveChatReplayEndpoint:qj(wX),manageLiveChatUserEndpoint:qj(DE),
metadataUpdateCommand:qj(Gt),moderateLiveChatEndpoint:qj($c),modifyChannelNotificationPreferenceEndpoint:qj(Um),notificationOptOutEndpoint:qj(LR),openSuperStickerBuyFlowCommand:qj(Yc),performCommentActionEndpoint:qj(BW),playlistEditEndpoint:qj(rZ),playlistEditorEndpoint:qj(tW),recordNotificationInteractionsEndpoint:qj(My),reelWatchEndpoint:qj(jm),refreshPanelEndpoint:qj(iK),removeUpcomingEventReminderEndpoint:qj(aU),resolveLocationCommand:qj(Fy),revealBusinessEmailCommand:qj(T8),searchEndpoint:qj(_.Avx),
sendLiveChatMessageEndpoint:qj(Tt),sendLiveChatVoteEndpoint:qj(dZ),setSettingEndpoint:qj(JB),shareEntityServiceEndpoint:oz(nM),sharingProviderDataCommand:qj(zt),showEngagementPanelEndpoint:qj(JW),showMoreDrawerCommand:qj(Om),showSheetCommand:qj(nR),showDialogCommand:qj(Vc),subscribeEndpoint:qj(VS),transcriptSubmitCaptionCorrectionCommand:qj(Z2),undoFeedbackEndpoint:qj(q4),unsubscribeEndpoint:qj(Og),updateBackstagePostEndpoint:qj(bk),updateCommentEndpoint:qj(LM),updateCommentReplyEndpoint:qj(Ug),updateCommentsSettingsEndpoint:qj(M4),
updateCreatorChannelInnertubeCommand:qj(FP),updateKidsBlacklistEndpoint:qj(vP),updateEngagementPanelContentCommand:qj(kW),updatePdgFeatureEnablementCommand:qj(HP),updatedMetadataEndpoint:qj(BP),validateChannelHandleCommand:qj(G8),updateChannelPageSettingsEndpoint:qj(dX),verifyAgeEndpoint:qj(o5),watchEndpoint:oz(Ok),whitelistEditEndpoint:qj(YW),ypcCancelRecurrenceEndpoint:qj($W),ypcCompleteTransactionEndpoint:qj(Ny),ypcFixInstrumentEndpoint:qj(mq),ypcGetCartEndpoint:qj(sm),ypcGetOffersEndpoint:qj(Aa),
ypcHandleTransactionEndpoint:oz(bU),ypcLogWalletAnalyticDataEndpoint:qj(fP),ypcOffersEndpoint:qj(am),ypcPauseSubscriptionCommand:qj(Tj),ypcRedeemCodeEndpoint:qj(dI),ypcResumeSubscriptionCommand:qj(F2),ypcUpdateFopEndpoint:qj(mq)},E6={},lFx=(E6.GET_ACCOUNT_MENU=qj(hB),E6.GET_NOTIFICATIONS_MENU=qj(s9t),E6.GET_NOTIFICATIONS_INBOX=qj(PP),E6.GET_UNSEEN_NOTIFICATION_COUNT=qj(Sm),E6.GET_USER_MENTION_SUGGESTIONS=qj(QS),E6.LOAD_GUIDE=qj(NWK),E6.SUBMIT_FEEDBACK=qj(CM),E6),x9={},Kyx=(x9.CONTINUATION_REQUEST_TYPE_BROWSE=
qj(fM),x9.CONTINUATION_REQUEST_TYPE_SEARCH=qj(cP),x9.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=qj(k3),x9.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=qj(R5),x9.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=qj(PW),x9.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=qj(pM),x9.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=qj(gZ),x9.CONTINUATION_REQUEST_TYPE_GET_PANEL=qj(KR),x9),iNO={player:oz(Ok),watchNext:qj(nW)},Jor={player:oz(Ok),reelItemWatch:qj(jm),reelWatchSequence:qj(RU)},Vxn={watchEndpoint:oz(Ia)},ONF=
{commandEndpointMap:Mxl,signalEndpointMap:lFx,continuationEndpointMap:Kyx,watchEndpointMap:iNO,reelWatchEndpointMap:Jor,streamingEndpointMap:Vxn};var nmK,kON,IFN;_.HNd=((kON=(nmK=window).matchMedia)==null?void 0:(IFN=kON.call(nmK,"(prefers-reduced-motion: reduce)"))==null?void 0:IFN.matches)||!document.startViewTransition;var CMO={disableAllTransitions:_.HNd,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 qiO=_.sC("\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(",")),om7=function(A){this.viewTransitionCoordinator=A;this.isBrowseTransitionEnabled=_.Br("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.K("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.K("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.K("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){A=_.GP("web_page_transition_exit_ms");var Q=_.GP("web_page_transition_wait_ms"),
b=_.GP("web_page_transition_enter_ms"),f=_.GP("web_page_transition_watch_exit_ms"),a=_.GP("web_page_transition_watch_wait_ms"),T=_.GP("web_page_transition_watch_enter_ms");if(!isNaN(A)||!isNaN(Q)||!isNaN(b))if(A=r3e(qiO,A,Q,b,f,a,T))Q=document.createElement("style"),Q.textContent=pa6(A),document.head.appendChild(Q)}};
om7.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var A={};this.viewTransitionCoordinator.registerElement(document.documentElement,(A.slide="root-slide",A["lockup-to-watch"]="root-lockup-to-watch",A["learning-journey"]="root-learning-journey",A))}};
_.PoL=function(A,Q){A.isLockupToWatchTransitionEnabled&&A.isLockupThumbnailRegistrationEnabled&&(A.registeredLockupThumbnail?A.lockupThumbnailRegisteredFromWatchEndpoint?_.Wv(new _.IO("Lockup thumbnail registration order is incorrect.")):_.Wv(new _.IO("Lockup thumbnail already registered.")):(A.registeredLockupThumbnail=Q,_.txx(A,Q)))};
_.txx=function(A,Q){var b={};A.viewTransitionCoordinator.registerElement(Q,(b["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",b),!0)};
om7[aW]=[lrq];var aLJ={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 ddJ=["videoPrimaryInfoRenderer","title"],FFf=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var rox;rox=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.jDq=_.aP(function(A){A=_.be(A,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var Q=A.data,b=A.playlistData,f=A.expanded,a=A.onExpandClick,T=A.isReadyToResume,G=function(){var L;return!((L=b())==null||!L.contents)},p=function(){var L=b();
return L&&L.totalVideos&&L.currentIndex!==void 0?L.currentIndex+1+" / "+L.totalVideos:""};
A=_.IY(function(){_.cu(_.fJ().resolve(_.zb));return!1});
var P=_.IY(function(){G()&&a&&a()}),U={};
return _.X("ytd-miniplayer-info-bar",{class:_.O4("ytdMiniplayerInfoBarHost",(U.ytdMiniplayerInfoBarHasPlaylistData=G,U)),"on:click":P},_.X("div",{class:"ytdMiniplayerInfoBarContent"},_.X("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":A},_.X(_.Rb,{text:function(){var L=Q();var M=b();if(M==null?0:M.contents){var l;L=(l=_.bVf(M))==null?void 0:l.title}else L=L==null?void 0:L.miniplayerTitle;return B4A(L)},
noEndpoints:!0,ellipsisTruncate:!0})),_.X("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.X(_.S,{cond:T,then:function(){return _.X(aCp,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:rox})}}),_.X("h1",null,_.X(_.Rb,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var L=Q();var M=b();L=T()?{simpleText:_.JQ("CONTINUE_WATCHING",void 0,"Continue watching")}:(M==null?0:M.contents)?M.titleText:L==null?void 0:L.miniplayerSubtitle;return B4A(L)},
noEndpoints:!0,ellipsisTruncate:!0})),_.X(_.S,{cond:function(){return!!p()&&!T()},
then:function(){return _.X("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.X("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.X("span",null,p))}}))),_.X(_.S,{cond:G,
then:function(){return _.X("div",{class:"ytdMiniplayerInfoBarExpand"},_.X(_.K3,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(L){a&&(a(),L.stopPropagation())}}},
iconName:function(){return f()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var RZK;RZK=_.aP(function(A){return _.X("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.X(_.K3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:A.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.gmq=_.aP(function(A){A=_.be(A,{playabilityStatus:void 0,isDisabled:!1});var Q=A.size,b=A.playabilityStatus,f=A.isDisabled,a=_.st("div");A=_.F(_.pz(void 0,void 0,"bJr0Se"));var T=A.next().value,G=A.next().value;A=_.Zc(_.LS);var p=!1,P=function(){return Q().height<=0};
_.H_(function(){var l=Q(),J=P(),n=T();n&&!J&&n.setInternalSize(l.width,l.height)},"OUOyKb");
_.CH(function(){var l,J,n;return _.B(function(t){if(t.nextAddress==1){l=_.fJ().resolve(_.zb);J=l.getPlayerElement();if(!l.isMiniplayerActive()||!J||!a.value)return t.return();J.appendTo(a.value);return t.yield(J.getPlayerPromise(),2)}n=t.yieldResult;n.setSizeStyle(!1,!0);G(n);_.Oi(t)})});
_.Cz(function(){U()});
_.H_(function(){var l=T();if(l)if(f()){var J=l.getPlayerState();(p=J===-1||J===1||J===3)&&l.pauseVideo()}else U()},"KKHe5");
var U=function(){if(p){p=!1;var l;(l=T())==null||l.playVideo()}},L=_.IY(function(){_.cu(_.fJ().resolve(_.zb))}),M={};
return _.X("ytd-miniplayer-player-container",{class:_.O4("ytdMiniplayerPlayerContainerHost",(M.ytdMiniplayerPlayerContainerHidden=P,M.ytdMiniplayerPlayerContainerHostShortsPip=A,M)),style:_.qM({width:function(){return Q().width+"px"},
height:function(){return Q().height+"px"}})},_.X("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:a}),_.X(_.S,{cond:function(){return!!b()&&!_.Eh6(b())},
then:function(){return _.X(Tcv,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var l;return((l=b())==null?void 0:l.errorScreen)||null},
status:function(){var l;return((l=b())==null?void 0:l.status)||null}})}}),_.X(_.S,{cond:f,
then:function(){return _.X("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":L},_.X(RZK,{onTap:function(){_.fJ().resolve(_.zb).close()}}))}}))},"Je");_.eZs=_.aP(function(A){var Q=A.toastData;var b=_.st("ytd-miniplayer-toast");A=_.F(_.CE(function(){return!!Q()}));
var f=A.next().value,a=A.next().value;A=_.F(_.pz(!1,void 0,"xkrBze"));var T=A.next().value,G=A.next().value,p=function(){var L;return _.mO((L=Q())==null?void 0:L.data.title)};
_.tz(function(){_.ur.requestAvailability();Q()&&a(!1)});
var P,U;_.H_(function(){f()&&(_.Bn(b.value,"iron-announce",{text:Q().label+" "+p()}),P&&_.j7.cancelJob(P),P=_.j7.addLowPriorityJob(function(){G(!0)},2500))},"OTdL1e");
_.H_(function(){T()&&(U&&_.j7.cancelJob(U),U=_.j7.addLowPriorityJob(function(){a(!1);G(!1)},300))},"yybqib");
A={};return _.X("ytd-miniplayer-toast",{el:b,class:_.O4("ytdMiniplayerToastHost",(A.ytdMiniplayerToastOpening=function(){return f()},A.ytdMiniplayerToastClosing=function(){return T()},A))},_.X(_.S,{cond:function(){var L;
return(L=Q())==null?void 0:L.data},
then:function(L){return _.X(X4M,{className:"ytdMiniplayerToastThumbnail",data:L,width:78})}}),_.X("div",{class:"ytdMiniplayerToastInfo"},_.X("div",{class:"ytdMiniplayerToastLabel"},function(){var L;
return(L=Q())==null?void 0:L.label}),_.X("div",{class:"ytdMiniplayerToastTitle"},p)))},"Ke");var iAb;var OAY=null;var Wyx=_.aP(function(A){var Q=A.progressState;var b=A.multiMarkersPlayerBarRenderer;var f=A.progressBarWidth;var a=function(){return HAF(b())},T=function(){return oyi(Q())},G=function(){return f()*(Q().playedTime/Q().videoDuration)};
return _.X("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.X(_.Op,{each:a},function(p,P){return _.X(hZx,{modifiedProps:T,chapters:a,index:P,playedProgressWidth:G,backgroundGradientPosition:function(){var U=T(),L=a(),M=P(),l=G();return(U.playedTime-xG(_.V(L[M],EC)))/U.playedTime*l}})}))},"Le"),hZx=_.aP(function(A){var Q=A.modifiedProps;
var b=A.chapters;var f=A.index;var a=A.playedProgressWidth;var T=A.backgroundGradientPosition;A={};A=_.O4("ytChapteredProgressBarChapteredPlayerBarChapter",(A.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return G().isScrubbing},A.ytChapteredProgressBarHoveredMacroMarker=function(){return G().scrubberHovering},A.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return G().videoPosition==="seen"},A));
var G=function(){return tiJ(Q(),b(),f())},p=function(){var P=Q();
var U=b(),L=f();if(tiJ(P,U,L).videoPosition!=="active")P=0;else{var M=xG(_.V(U[L],EC));P=(P.playedTime-M)/((xG(_.V(U[L+1],EC))||P.videoDuration)-M)}return P};
return _.X("div",{class:A,style:_.qM({width:function(){var P=Q(),U=b(),L=f(),M=_.V(U[L],EC);U=_.V(U[L+1],EC);return(U?xG(U)-xG(M):P.videoDuration-xG(M))/P.videoDuration*100+"%"},
"background-color":function(){a:{var P=G();switch(P.videoPosition){case "pending":P=P.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":P=P.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:P=""}}return P},
"background-size":function(){return(rpF(G())?a():"")+"px"},
"background-position-x":function(){return(rpF(G())?T():"")+"px"}})},_.X("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var P=Q(),U=b(),L=f();if(tiJ(P,U,L).videoPosition==="seen")var M=0;else M=xG(_.V(U[L],EC)),U=xG(_.V(U[L+1],EC))||P.videoDuration,P=P.videoDuration*P.percentLoaded,M=U<=P?1:M>=P?0:(P-M)/(U-M);return"width: "+M*100+"%"}}),_.X("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.qM({width:function(){return p()*100+"%"},
"background-size":function(){return(rpF(G(),p())?a():"")+"px"},
"background-position-x":function(){return(rpF(G(),p())?T():"")+"px"}})}))},"Me");var vmM=function(A,Q){Q=Q===void 0?dIY:Q;var b,f=[],a,T=!1;return function(){var G=_.E$.apply(0,arguments);if(T&&b===this&&Q(G,f))return a;a=A.apply(this,G);T=!0;b=this;f=G;return a}}(function(A){var Q=A.heatMarkers,b=A.minHeightDp===void 0?0:A.minHeightDp,f=A.maxHeightDp===void 0?60:A.maxHeightDp;
var a=a===void 0?!1:a;var T=1E3/Q.length;A=[];A.push({x:0,y:100});for(var G=0;G<Q.length;G++){var p=void 0,P=((p=_.V(Q[G],FDr))==null?void 0:p.heatMarkerIntensityScoreNormalized)||0;p=(G+.5)*T;P=100-_.vZ(P*100,b/321*100,f/321*100);G!==0||a||A.push({x:0,y:P});A.push({x:p,y:P});G===Q.length-1&&A.push({x:1E3,y:P})}A.push({x:1E3,y:100});Q="";for(b=0;b<A.length;b++)a=A[b],b===0?a="M "+a.x.toFixed(1)+","+a.y.toFixed(1):(f=WCU(A[b-1],A[b-2],a),T=WCU(a,A[b-1],A[b+1],!0),a=" C "+(f.x.toFixed(1)+","+f.y.toFixed(1)+
" "+T.x.toFixed(1)+","+T.y.toFixed(1)+" "+a.x.toFixed(1)+","+a.y.toFixed(1))),Q+=a;return Q});var EmO=_.aP(function(A){var Q=A.progressBarProps;var b=A.config;var f={};A=_.O4("ytHeatSeekerHost",(f.ytHeatSeekerHighContrast=A.highContrast,f));var a=function(){return Ud9(b().chapterData)};
return _.X("yt-progress-bar-heatseeker",{class:A,style:function(){var T;return"height: 320px; display: "+(Q().isDragging&&((T=a())==null?0:T.heatMarkers)?"block":"none")}},_.X(_.S,{cond:a,
then:function(T){return _.X(_.S,{cond:function(){return T().heatMarkers},
then:function(){return _.X("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.X("path",{d:function(){return vmM(T())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var xLs=_.aP(function(A){var Q=A.progressBarProps;var b=A.config;A={};A=_.O4("ytProgressBarLineProgressBarLine",(A.ytProgressBarLineProgressBarLineRounded=function(){return b().rounded},A.ytProgressBarLineProgressBarLineBottomInset=function(){return b().position===2},A));
return _.X("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.X("div",{class:A},_.X("div",{class:"ytProgressBarLineProgressBarBackground"}),_.X("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+Q().percentLoaded*100+"%"}}),_.X("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var f=Q();return"width: "+(f.videoDuration?_.vZ(f.hoveredTime/f.videoDuration,0,1):0)*100+"%"}}),_.X("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+PPU(Q())*100+"%"}})))},"Oe");
xLs.idomCompat=!0;var cod=_.aP(function(A){var Q=A.progressBarProps;var b=A.playheadData;var f=A.interpolateDotPosition;var a=A.hidePlayhead;A={};var T=_.O4("ytProgressBarPlayheadProgressBarPlayheadDot",(A.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return Q().isDragging},A.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!Q().isDragging&&a()},A));
return _.X("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.qM({"margin-left":function(){return XqC(Q())*100+"%"},
transform:function(){return"translateX(-"+(f()?XqC(Q())*12:6)+"px)"}})},_.X(_.S,{cond:function(){var G;
return(G=_.Q0(b)())==null?void 0:G.playheadImage},
then:function(G){var p={};return _.X("div",{class:_.O4("ytProgressBarPlayheadProgressBarPlayheadCustom",(p.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return Q().isDragging},p.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!Q().isDragging&&a()},p)),
style:_.qM({"transform-origin":function(){return(f()?XqC(Q())*20:10)+"px center"}})},_.X(_.aY,{data:G,
alt:"","aria-hidden":"true"}))},
else:function(){return _.X("div",{class:T,style:_.qM({"transform-origin":function(){return(f()?XqC(Q())*12:6)+"px center"}})})}}))},"Pe");
cod.idomCompat=!0;var zj=function(A,Q,b,f,a,T){this.getProgressBarRect=A;this.updateProgressBarRect=Q;this.getFilmstripYPosition=b;this.setFineScrubbingDraggedTime=f;this.updateFilmStripDraggedYDistance=a;this.resetFilmStripYOffset=T;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Ac(this.onThrottledSeek,100,this)},zZx=function(A,Q,b){return function(f){A.handleClick(f,Q(),b())}},ZNF=function(A,Q){return function(b){wal(A,
b,uTM(b),Q())}},yos=function(A,Q){return function(b){wal(A,b,{x:b.clientX,
y:b.clientY},Q())}},DLn=function(A,Q,b){return function(f){var a=Q(),T=b();
Yix(A,f,uTM(f),a,T,!0);if(T.onTouchMove)T.onTouchMove(a)}},Nil=function(A,Q,b){return function(f){$Lt(A,f,Q(),b())}},sDM=function(A,Q){return function(){A.handleMouseLeave(Q())}},mLq=function(A,Q,b){return function(){var f=Q(),a=b();
wI(A,f,a);if(a.onTouchEnd)a.onTouchEnd(f)}},A3x=function(A,Q,b){return function(){var f=Q(),a=b();
wI(A,f,a);if(a.onTouchEnd)a.onTouchEnd(f)}},Qkn=function(A,Q,b){return function(){wI(A,Q(),b())}},btl=function(A){return function(Q){if(Q.keyCode===39||Q.keyCode===38){var b,f;
(b=A())==null||(f=b.playerApi)==null||f.seekBy(5,void 0,void 0,72)}else if(Q.keyCode===37||Q.keyCode===40){var a,T;(a=A())==null||(T=a.playerApi)==null||T.seekBy(-5,void 0,void 0,71)}}},f07=function(A,Q,b){return function(f){!b().disableScrubbing&&A.startPosition&&$Lt(A,f,Q(),b())}},a0N=function(A,Q,b){return function(){if(!b().disableScrubbing)if(A.startPosition){var f=Q(),a=b();
wI(A,Q(),b());if(a.onTouchEnd)a.onTouchEnd(f)}else Q().setState({isDragging:!1})}},uTM=function(A){A=A.touches[0];
return{x:A.clientX,y:A.clientY}},$Lt=function(A,Q,b,f){if(Q.buttons!==1){if(Q.movementX||Q.movementY)Q.preventDefault(),Q.stopPropagation(),A=TQ7(A,b,Q.clientX),b.setState({isHovering:!0,
hoveredTime:A*b.videoDuration})}else d1q(b),Yix(A,Q,{x:Q.clientX,y:Q.clientY},b,f,!1)};
zj.prototype.handleMouseLeave=function(A){d1q(A)};
var d1q=function(A){A.isHovering&&A.setState({isHovering:!1,hoveredTime:0})},wal=function(A,Q,b,f){A.startPosition||(A.startPosition=b,A.updateProgressBarRect(),A.controlsWereVisibleBeforeDragging=f.controlsVisible,Q.stopPropagation(),_.K("medium_progress_bar_modification")||Q.preventDefault())},Yix=function(A,Q,b,f,a,T){if(A.startPosition)if(T&&a.isInlinePlayback&&A.startPosition&&!A.hasDraggedTheMinimumDistance&&Math.abs(b.y-A.startPosition.y)>Math.abs(b.x-A.startPosition.x))wI(A,f,a);
else if(Q.preventDefault(),Q.stopPropagation(),f.videoDuration&&(A.startPosition&&!A.hasDraggedTheMinimumDistance&&(A.hasDraggedTheMinimumDistance=Math.abs(b.x-A.startPosition.x)>=1),a.enableFineScrubbing&&(A.startPosition&&(A.isDraggedForFineScrubbing=-(b.y-A.startPosition.y)>=60),!A.startPosition||b.y>=A.startPosition.y||(f.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:jey(f.draggedTime,f,a.chapterData)}),A.setFineScrubbingDraggedTime(f.draggedTime),A.updateFilmStripDraggedYDistance(A.startPosition.y,
b.y,f))),A.hasDraggedTheMinimumDistance)){Q=TQ7(A,f,b.x);if(A.isDraggedForFineScrubbing){var G;(G=f.playerApi)==null||G.pauseVideo();f.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:f.draggedTime,filmStripXDistance:jey(Q*f.videoDuration,f,a.chapterData)})}a.enableFineScrubbing&&(!a.enableFineScrubbing||A.getFilmstripYPosition(f)<68)||f.setState({draggedTime:Q*f.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:A.controlsWereVisibleBeforeDragging});var p;(p=
a.cancelAutohideControlsFn)==null||p.call(a)}},wI=function(A,Q,b){var f=b.enableFineScrubbing&&Q.fineScrubbingActiveState!=="off";
if(Q.isDragging||f){f={isDragging:!1,playedTime:Q.draggedTime,controlsVisible:A.controlsWereVisibleBeforeDragging};b.enableFineScrubbing&&Q.fineScrubbingActiveState!=="on"&&(A.resetFilmStripYOffset(),f.fineScrubbingActiveState="off");var a=a===void 0?OAY:a;var T=_.WR(0);if(T&&a){var G=Math.round(Q.playedTime*1E3),p=Math.round(Q.draggedTime*1E3);G>2147483647||p>2147483647||_.NB(T,a,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(G),endMediaTimeMs:String(p),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}Q.setState(f);
A.seekThrottle.fire(Q.draggedTime,Q,7);_.K("mweb_new_progress_bar_play_on_seek")&&A.resumeVideo(Q);b.unmuteOnSeek&&(b=Q.playerApi,Q.volumeMuted&&(b==null||b.unMute()))}else Q.setState({controlsVisible:!Q.controlsVisible}),(T=b.triggerAutohideControlsAfterDelayFn)==null||T.call(b);A.startPosition=null;A.hasDraggedTheMinimumDistance=!1;A.isDraggedForFineScrubbing=!1;A.controlsWereVisibleBeforeDragging=!1};
zj.prototype.handleClick=function(A,Q,b){this.updateProgressBarRect();A.stopPropagation();A=TQ7(this,Q,A.clientX)*Q.videoDuration;Q.setState({playedTime:A});if(Q.playerState!==2){var f;(f=b.triggerAutohideControlsAfterDelayFn)==null||f.call(b)}this.seekThrottle.fire(A,Q,7)};
var TQ7=function(A,Q,b){A=A.getProgressBarRect(Q);return _.vZ(0,(b-A.left)/A.width,1)};
zj.prototype.resumeVideo=function(A){if(A.draggedTime<A.videoDuration){var Q;(Q=A.playerApi)==null||Q.playVideo()}};
zj.prototype.onThrottledSeek=function(A,Q,b){if(Q=Q.playerApi){var f;if((f=Q.getVideoData())==null?0:f.isLive)f=this.getProgressState(Q),A+=(f==null?void 0:f.seekableStart)||0;Q.seekTo(A,void 0,void 0,void 0,b)}};
zj.prototype.getProgressState=function(A){var Q=A==null?void 0:A.getPresentingPlayerType();return A==null?void 0:A.getProgressState(Q)};var BQN,GHs,plN,XlN,FKt,SXN,U1N,LKF,M2l;BQN=_.aP(function(A){var Q=A.progressBarProps;var b=A.config;var f=A.progressBarWidthPx;var a=A.chapterData;var T=WFJ(Q,function(){return b().isShortsPage}),G=function(){return!Q().isHovering&&!b().isShortsPage};
A={};var p=_.O4("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(A.ytPlayerStoryboardHostMwebShorts=function(){return b().isShortsPage&&!1},A));
return _.X("yt-player-storyboard",null,_.X(_.S,{cond:function(){return Q().isDragging||Q().isHovering},
then:function(){return _.X(_.S,{cond:T,then:function(P){return _.X(_.S,{cond:G,then:function(){return _.X("div",{class:p,"aria-hidden":"true"},_.X(FKt,{props:Q,config:b,isBigboard:!0,chapterData:a}))},
else:function(){return _.X(GHs,{props:Q,frame:P,config:b,progressBarWidthPx:f,chapterData:a})}})}})}}))},"Qe");
_.PwO=_.aP(function(A){var Q=A.progressBarProps;var b=WFJ(Q,A.isShortsPage);return _.X("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.X(_.S,{cond:function(){return Q().isDragging||Q().isHovering},
then:function(){return _.X(_.S,{cond:b,then:function(f){return _.X(plN,{frame:f,props:Q,isBigboard:!0})}})}}))},"Re");
GHs=_.aP(function(A){var Q=A.props;var b=A.frame;var f=A.config;var a=A.progressBarWidthPx;A=A.chapterData;var T={};T=_.O4("ytPlayerStoryboardHost",(T.ytPlayerStoryboardHostMwebShorts=function(){return f().isShortsPage&&!1},T.ytPlayerStoryboardHostInlinePlayer=function(){return f().isInlinePlayer},T.ytPlayerStoryboardHostFadeIn=function(){return f().useFadeInAnimation},T));
return _.X("div",{class:T,"aria-hidden":"true",style:function(){var G=Q(),p=RdX(b()),P=a();G=gyU(G)/G.videoDuration;var U=P*G,L=p/2+6;p=P-(p/2+6);return"left: "+(U<=L?L/P*100:U>=p?p/P*100:G*100)+"%"}},_.X(_.S,{cond:function(){var G=Q();
return!(f().isShortsPage&&G.videoDuration<15)},
then:function(){return _.X(plN,{frame:b,props:Q,isBigboard:!1})}}),_.X(FKt,{props:Q,
config:f,isBigboard:!1,chapterData:A}))},"Se");
plN=_.aP(function(A){var Q=A.frame;var b=A.props;var f=A.isBigboard;var a=function(){var p,P;return(P=(p=b().playerApi)==null?void 0:p.getVideoContentRect())!=null?P:{width:0,height:0}},T=function(){return RdX(Q())},G=function(){var p=Q();
return p?p.height/p.rows:0};
A={};A=_.O4((A.ytPlayerStoryboardBigboardImageWrapper=f,A.ytPlayerStoryboardStoryboardImageWrapper=function(){return!f()},A));
return _.X("div",{class:A,style:function(){return"width: "+(f()?a().width:T())+"px; height: "+(f()?a().height:G())+"px;"}},_.X(XlN,{frame:Q,
storyboardWidth:T,storyboardHeight:G,storyboardScale:function(){return(f()?a().width:T())/T()}}))},"Te");
XlN=_.aP(function(A){var Q=A.frame;var b=A.storyboardWidth;var f=A.storyboardHeight;var a=A.storyboardScale;var T=function(){var G=Q().row,p=Q().column,P=b(),U=f(),L=a();return{left:-p*P*L,top:-G*U*L}};
return _.X("img",{src:function(){return Q().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+T().left+"px; top: "+T().top+"px; width: "+Q().width*a()+"px; height: "+Q().height*a()+"px;"}})},"Ue");
FKt=_.aP(function(A){var Q=A.props;var b=A.config;var f=A.isBigboard;var a=A.chapterData;A={};A=_.O4("ytPlayerStoryboardMetadata",(A.ytPlayerStoryboardMetadataBigboard=f,A));return _.X("div",{class:A},_.X(_.S,{cond:f,then:function(){return _.X(_.bd,null,_.X(SXN,{props:Q,config:b}),_.X(_.S,{cond:function(){a:{var T=Q();var G=b(),p=a(),P;if((G==null?0:G.activeChapter)&&((P=_.V(G==null?void 0:G.activeChapter,EC))==null?0:P.title))T=!0;else{G=_.F(LFf(p));for(G=G.next();!G.done;G=G.next()){T=(G=_.V(G.value,
Bup))&&edJ(T,G);break a}T=!1}}return T},
then:function(){return _.X(U1N,{props:Q,config:b,isBigboard:!0,chapterData:a})}}))},
else:function(){return _.X(_.bd,null,_.X(U1N,{props:Q,config:b,isBigboard:!0,chapterData:a}),_.X(SXN,{props:Q,config:b}))}}))},"Ve");
SXN=_.aP(function(A){var Q=A.props;var b=A.config;A={};A=_.O4("ytPlayerStoryboardTimestamp",(A.ytPlayerStoryboardTimestampShorts=function(){return b().isShortsPage},A.ytPlayerStoryboardTimestampIsHovering=function(){return Q().isHovering||b().isShortsPage&&!0},A));
return _.X("div",{class:A},_.X(_.bd,null,function(){return _.hdU(gyU(Q()))}))},"We");
U1N=_.aP(function(A){var Q=A.props;var b=A.config;var f=A.isBigboard;var a=A.chapterData;A={};f=_.O4("ytPlayerStoryboardTitle",(A.ytPlayerStoryboardTitleBigboard=f,A));return _.X("div",{class:f},_.X(_.S,{cond:function(){return!b().isShortsPage},
then:function(){return _.X(LKF,{props:Q,activeChapter:function(){return b().activeChapter},
chapterData:a})}}))},"Xe");
LKF=_.aP(function(A){var Q=A.props;var b=A.activeChapter;var f=A.chapterData;return _.X(_.bd,null,_.X(_.Op,{each:function(){return LFf(f())},
keyBy:"INDEX"},function(a){return _.X(_.bd,null,_.X(_.S,{cond:function(){return _.V(a(),Bup)&&edJ(Q(),_.V(a(),Bup))},
then:function(){return _.X(M2l,{timedMarker:function(){return _.V(a(),Bup)}})}}))}),_.X(_.S,{cond:function(){var a;
return b()&&((a=_.V(b(),EC))==null?void 0:a.title)},
then:function(a){return _.X(_.Rb,{text:a,noPreWrap:!0})}}))},"Ye");
M2l=_.aP(function(A){var Q=A.timedMarker;return _.X(_.bd,null,_.X("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.X(_.oY,{icon:function(){return Q().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.X(_.Rb,{text:function(){return Q().label},
noPreWrap:!0}))},"Ze");_.l0K=_.aP(function(A){var Q=A.progressBarProps;var b=A.playheadData;var f=A.config;A=_.st("yt-progress-bar");var a=_.st("div"),T=_.st("div"),G=_.F(_.pz({width:0,left:0},void 0,"NcXsUb")),p=G.next().value,P=G.next().value,U=function(){T.value&&P(T.value.getBoundingClientRect())},L=function(){p().width<=0&&U();
return p()};
fk("resize",U);var M=new zj(L,function(){},function(){return 0},function(){},function(){},function(){}),l=function(){return Q()};
G=_.F(_.pz(!1,void 0,"ZsF6Xc"));var J=G.next().value,n=G.next().value;G=_.IY(function(){n(!0);f().position===2?setTimeout(function(){U()},100):U()});
var t=_.IY(function(){n(!1);sDM(M,l)()}),g=_.IY(function(h4){f().doSeekOnClick&&zZx(M,l,f)(h4);
return!1}),e=_.IY(function(h4){ZNF(M,l)(h4);
return!1}),x=_.IY(function(h4){yos(M,l)(h4);
return!1}),D=_.IY(function(h4){DLn(M,l,f)(h4);
return!1}),w=_.IY(function(h4){Nil(M,l,f)(h4);
return!1}),u=_.IY(function(){mLq(M,l,f)();
return!1}),y=_.IY(function(){A3x(M,l,f)();
return!1}),a9=_.IY(function(){Qkn(M,l,f)();
return!1}),pF=_.IY(function(h4){btl(l)(h4);
return!1});
fk("mousemove",f07(M,l,f));fk("mouseup",a0N(M,l,f));_.tz(function(){nyb(a.value);n(!1);U();a0N(M,l,f)()});
var Ub={};Ub=_.O4("ytPlayerProgressBarHost",function(){return f().className},(Ub.ytPlayerProgressBarHostReadOnly=function(){return f().disableScrubbing},Ub.ytPlayerProgressBarHostHidden=function(){return f().hideProgressBar&&!J()},Ub.ytPlayerProgressBarHostLowerPlayer=function(){return f().position===0},Ub.ytPlayerProgressBarHostBottomEdge=function(){return f().position===1},Ub.ytPlayerProgressBarHostBottomInset=function(){return f().position===2},Ub.ytPlayerProgressBarHostCustom=function(){return f().position===
3},Ub));
var Ob={},I9=_.O4("ytPlayerProgressBarBackground",(Ob.ytPlayerProgressBarBackgroundHide=function(){return f().position===2&&!J()&&!Q().isDragging},Ob));
Ob={};Ob=_.O4("ytPlayerProgressBarDragContainer",(Ob.ytPlayerProgressBarDragContainerBottomEdge=function(){return f().position===1},Ob));
var iy={};iy=_.O4("ytPlayerProgressBarProgressBar",(iy.ytPlayerProgressBarProgressBarInset=function(){return f().position===2},iy.ytPlayerProgressBarProgressBarInsetMinimized=function(){return f().position===2&&!J()&&!Q().isDragging},iy));
var wW=function(){return Math.floor(PPU(Q())*100)};
return _.X("yt-progress-bar",{el:A,class:Ub},_.X(_.S,{cond:function(){return f().position===2},
then:function(){return _.X("div",{class:I9})}}),_.X("div",{el:a,
"on:click":g,"on:touchstart":e,"on:touchmove":D,"on:mouseenter":G,"on:mousedown":x,"on:mouseleave":t,"on:mousemove":w,"on:mouseup":y,"on:touchend":u,"on:touchcancel":a9,"on:keydown":pF,class:Ob,role:"slider","aria-valuenow":wW,"aria-valuetext":function(){return wW()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return Q().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.JQ("SEEK_SLIDER")},_.X("div",{el:T,class:iy},_.X(EmO,{progressBarProps:Q,config:f,highContrast:function(){return!!f().isInlinePlayback}}),_.X(_.S,{cond:function(){return f().chapterData&&Mif(f().chapterData)},
then:function(){return _.X(Wyx,{progressState:Q,multiMarkersPlayerBarRenderer:function(){return f().chapterData},
progressBarWidth:function(){return p().width}})},
else:function(){return _.X(xLs,{progressBarProps:Q,config:f})}}),_.X(cod,{progressBarProps:Q,
playheadData:b,interpolateDotPosition:function(){return f().position!==2},
hidePlayhead:function(){return f().playheadDotBehavior===1&&!J()}}))),_.X(BQN,{progressBarProps:Q,
config:function(){return{activeChapter:qyY(Q(),f().chapterData),getProgressBarWidthPx:function(){return L().width},
isShortsPage:!!f().isShortsPage,isInlinePlayer:!!f().isInlinePlayback,useFadeInAnimation:!!f().isInlinePlayback}},
progressBarWidthPx:function(){return p().width},
chapterData:function(){return f().chapterData}}))},"$e");
_.l0K.idomCompat=!0;Object.assign({},_.lLi(),{setState:function(){},
domMeasurements:{},appApi:_.pqF(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var KKs;
_.itO=_.aP(function(){var A,Q=(A=_.cZ(vy6().playerApi))!=null?A:void 0;A=_.F(_.pz(!1,void 0,"HLFBmb"));var b=A.next().value,f=A.next().value;A=_.F(_.pz(!1,void 0,"lHH9bc"));var a=A.next().value,T=A.next().value;A=_.F(_.pz(!1,void 0,"zsY7yd"));var G=A.next().value,p=A.next().value;A=_.F(_.pz(!1,void 0,"KeHQgc"));var P=A.next().value,U=A.next().value;A=_.F(_.pz(0,void 0,"gLLCj"));var L=A.next().value,M=A.next().value;A=_.F(_.pz(0,void 0,"s3RYkf"));var l=A.next().value,J=A.next().value;A=_.F(_.pz(!1,void 0,
"Dn608e"));var n=A.next().value,t=A.next().value;A=_.F(_.pz(0,void 0,"AnkH1b"));var g=A.next().value,e=A.next().value;A=_.F(_.pz(0,void 0,"QYNL0b"));var x=A.next().value,D=A.next().value;A=_.F(_.pz("",void 0,"Yzw45d"));var w=A.next().value,u=A.next().value;A=_.F(_.pz(-1,void 0,"iiVI0c"));var y=A.next().value,a9=A.next().value,pF=_.Lz(function(){var Ub={controlsVisible:b(),isOverlayHidden:a(),shouldWaitToHideControls:G(),isDragging:P(),isHovering:n(),videoDuration:g(),playedTime:x(),videoId:w(),draggedTime:l(),
hoveredTime:L(),playerState:y()};return Object.assign({},_.lLi(),Ub,{domMeasurements:{},setState:function(Ob){Ob.controlsVisible!==void 0&&f(Ob.controlsVisible);Ob.isOverlayHidden!==void 0&&T(Ob.isOverlayHidden);Ob.shouldWaitToHideControls!==void 0&&p(Ob.shouldWaitToHideControls);Ob.isDragging!==void 0&&U(Ob.isDragging);Ob.isHovering!==void 0&&t(Ob.isHovering);Ob.draggedTime!==void 0&&J(Ob.draggedTime);Ob.hoveredTime!==void 0&&M(Ob.hoveredTime);Ob.videoDuration!==void 0&&e(Ob.videoDuration);Ob.playedTime!==
void 0&&D(Ob.playedTime);Ob.videoId!==void 0&&u(Ob.videoId);Ob.playerState!==void 0&&a9(Ob.playerState)},
appApi:_.pqF(),playerApi:Q})},void 0,"ZW7y9");
_.CH(function(){Q==null||Q.addEventListener("onVideoProgress",ViX(pF));Q==null||Q.addEventListener("onVideoDataChange",JpA(pF));Q==null||Q.addEventListener("onStateChange",KFW(pF))});
_.Cz(function(){if(Q==null?0:Q.isReady())Q==null||Q.removeEventListener("onVideoProgress",ViX(pF)),Q==null||Q.removeEventListener("onVideoDataChange",JpA(pF)),Q==null||Q.removeEventListener("onStateChange",KFW(pF))});
return _.X("desktop-shorts-player-controls",null,_.X(KKs,{playerControlsProps:pF}))},"af");
KKs=_.aP(function(A){var Q=A.playerControlsProps;return _.X("div",{class:"desktopShortsPlayerControlsWizHost"},_.X(_.l0K,{progressBarProps:Q,config:function(){return{isShortsPage:!0,hideProgressBar:Q().videoDuration<30&&Q().playerState!==2&&!Q().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.J3M=_.aP(function(A){function Q(Ub){Ub!==0||M()?Ub>50&&(M()||!J())?(l(!1),n(!0)):Ub<=50&&(M()||J())&&(l(!1),n(!1)):l(!0)}
function b(Ub,Ob){var I9;return _.B(function(iy){if(iy.nextAddress==1)return iy.yield(_.iJ(),2);I9=iy.yieldResult;Ob&&I9?(I9.unMute(!0),Ub&&(xdi(Ub,I9.getVolume()),g(I9.getVolume()))):I9&&(I9.mute(!0),Ub&&xdi(Ub,0));_.Oi(iy)})}
function f(Ub){var Ob,I9;return _.B(function(iy){if(iy.nextAddress==1)return iy.yield(_.iJ(),2);Ob=iy.yieldResult;I9=50;Ob&&(I9=Ob.getVolume(),Ob.isMuted()?xdi(Ub,0):xdi(Ub,I9));g(I9);_.Oi(iy)})}
var a=A.orientation;A=_.st("desktop-shorts-volume-controls");var T=_.st("button"),G=_.mS("input"),p=_.F(_.pz(!1,void 0,"F6vt0d")),P=p.next().value,U=p.next().value,L=_.F(_.pz(!1,void 0,"S5PCqb"));p=L.next().value;L=L.next().value;var M=p,l=L;L=_.F(_.pz(!0,void 0,"Tgy4e"));p=L.next().value;L=L.next().value;var J=p,n=L;p=_.F(_.pz(50,void 0,"Dq3efd"));var t=p.next().value,g=p.next().value;p=_.Lz(function(){var Ub=M();return _.K("web_shorts_keyboard_enable_mute_shortcut")?Ub?_.JQ("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.JQ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Ub?_.JQ("UNMUTE_VOLUME",void 0,"Unmute"):_.JQ("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
L=_.Lz(function(){var Ub=M(),Ob=J();return{sources:[{clientResource:{imageName:Ub?_.K("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Ob?_.K("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.K("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var e=_.Lz(function(){var Ub=t();return M()?Ub+"% volume muted":Ub+"% volume"},void 0,"kvkmyc"),x=_.Lz(function(){return a()==="vertical_down"},void 0,"zaNsZ");
_.tz(function(){function Ub(){U(!0)}
function Ob(){U(!1)}
G&&G.value&&(G.value.addEventListener("focus",Ub),G.value.addEventListener("focusout",Ob),f(G.value).then(function(){Q(Number(cpF(G.value)))}));
T&&T.value&&(T.value.addEventListener("focus",Ub),T.value.addEventListener("focusout",Ob));_.Cz(function(){var I9;G==null||(I9=G.value)==null||I9.removeEventListener("focus",Ub);var iy;G==null||(iy=G.value)==null||iy.removeEventListener("focusout",Ob);var wW;T==null||(wW=T.value)==null||wW.removeEventListener("focus",Ub);var h4;T==null||(h4=T.value)==null||h4.removeEventListener("focusout",Ob)})});
var D=_.IY(function(){if(G&&G.value){var Ub=Number(cpF(G.value));EyC(Ub);g(Ub);G.value.style.setProperty("--gradient-percent",Ub+"%");Q(Ub)}return!1}),w=_.IY(function(){U(!0)}),u=_.IY(function(){G&&G.value&&(b(G.value,M()),l(!M()));
return!1}),y={},a9={},pF={};
return _.X("desktop-shorts-volume-controls",{"on:pointerleave":_.IY(function(){U(!1)}),
class:_.O4("ytdDesktopShortsVolumeControlsHost",(y.ytdDesktopShortsVolumeControlsHostVertical=x,y.ytdDesktopShortsVolumeControlsHostExpanded=P,y)),el:A},_.X(_.S,{cond:function(){return!x()},
then:function(){var Ub={};return _.X("div",{class:_.O4("ytdDesktopShortsVolumeControlsBackgroundScrim",(Ub.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=P,Ub))})}}),_.X("div",{class:_.O4((a9.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=x,a9))},_.X("button",{"aria-label":p,
title:p,el:T,"on:click":u,"on:pointerenter":w,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},L?_.X(_.aY,{data:L,alt:p,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.X("div",{class:_.O4("ytdDesktopShortsVolumeControlsSliderContainer",(pF.ytdDesktopShortsVolumeControlsSliderContainerExpanded=P,pF.ytdDesktopShortsVolumeControlsSliderContainerVertical=x,pF.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=x,pF.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return P()&&x()},pF))},_.X("input",{"aria-label":_.JQ("VOLUME"),
title:_.JQ("VOLUME"),el:G,"on:input":D,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":t,"aria-valuetext":e,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.V2O=_.aP(function(A){var Q=A.data;return _.X("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.X(_.Db,{command:function(){return Q().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.X(_.S,{cond:function(){return Q().iconName},
then:function(b){return _.X(_.oY,{icon:b})}}),_.X("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return Q().text}),_.X(_.S,{cond:function(){return Q().showEndChevron},
then:function(){return _.X(_.oY,{icon:"CHEVRON_RIGHT"})}})))},"df");var OtN=_.aP(function(A){var Q=A.data;var b=A.overlayDensity;A={};return _.X("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.X(_.WL,{data:function(){return Q().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(f){var a=f.data;
return _.X(_.E9,{data:function(){return(b==null?void 0:b())===1?Object.assign({},a(),{avatar:{avatarViewModel:Object.assign({},_.V(a().avatar,_.yh),{avatarImageSize:"AVATAR_SIZE_48"})}}):a()}})}}),_.X(_.WL,{data:function(){return Q().avatarStackViewModel}},{avatarStackViewModel:function(f){return _.X(_.xK,{data:f.data})}}),_.X(_.Rb,{className:_.O4("ytReelChannelBarViewModelChannelName",(A.ytReelChannelBarViewModelChannelNameLarge=function(){return(b==null?void 0:b())===1},A)),
text:function(){return Q().channelName},
linkInheritColor:!0,userInput:!0}),_.X("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.X(_.WL,{data:function(){return Q().subscribeButtonViewModel}},{subscribeButtonViewModel:function(f){var a=f.data;
return _.X(_.e4,{data:function(){return(b==null?void 0:b())===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:_.J9})),_.X("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.X(_.WL,{data:function(){var f,a;return(a=_.V((f=Q())==null?void 0:f.sponsorButtonViewModel,njK))==null?void 0:a.sponsorButton}},{buttonViewModel:function(f){return _.X(_.J9,{data:f.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var n5x=_.aP(function(A){var Q=function(){var f;return(A==null?void 0:(f=A.overlayDensity)==null?void 0:f.call(A))===1?22:16},b={};
return _.X("yt-reel-multi-format-link-view-model",{class:_.O4("ytReelMultiFormatLinkViewModelHost",(b.ytReelMultiFormatLinkViewModelHostTall=!0,b.ytReelMultiFormatLinkViewModelHostLarge=function(){var f;return((f=A.overlayDensity)==null?void 0:f.call(A))===1},b))},_.X(_.Db,{ariaLabel:function(){return A.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return A.data().command}},_.X("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.X(_.S,{cond:function(){return A.data().icon},
then:function(f){return _.X(_.aY,{data:f,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:Q})}}),_.X(_.Rb,{text:function(){return A.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
n5x.idomCompat=!0;var kHx=_.aP(function(A){var Q=A.data;var b=A.overlayDensity;var f=_.st("yt-shorts-suggested-action-view-model");A=_.F(_.pz(!1,void 0,"xDqzhe"));var a=A.next().value,T=A.next().value;A=_.F(_.pz(!1,void 0,"LI9CFd"));var G=A.next().value,p=A.next().value,P=function(){return Q().isMultiLineSa},U=_.I$(qWA,function(){var w,u;
return(u=(w=Q().toggleableContent)==null?void 0:w.entityKey)!=null?u:""}),L=function(){var w,u,y;
return(y=Q().toggleableContent)!=null&&y.entityKey?(u=(w=U())==null?void 0:w.value)!=null?u:!1:!1},M=function(){var w,u,y,a9,pF,Ub,Ob,I9,iy,wW,h4;
return Q().toggleableContent?L()?(w=Q().toggleableContent)==null?void 0:w.toggledData:(u=Q().toggleableContent)==null?void 0:u.untoggledData:{primaryText:(I9=(y=Q().defaultContent)==null?void 0:y.primaryText)!=null?I9:Q().text,secondaryText:(a9=Q().defaultContent)==null?void 0:a9.secondaryText,onTapCommand:(iy=(pF=Q().defaultContent)==null?void 0:pF.onTapCommand)!=null?iy:Q().onTapCommand,icon:(wW=(Ub=Q().defaultContent)==null?void 0:Ub.icon)!=null?wW:Q().icon,image:(h4=(Ob=Q().defaultContent)==null?
void 0:Ob.image)!=null?h4:Q().image}},l=function(){return P()?Q().trailingTapTarget:void 0},J=function(w,u){return function(){return a()?u:w}},n=function(){return{leadingSection:J("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(b==null?void 0:b())===1?J("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):J("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:J("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:J("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
A={};A=_.O4((A.ytShortsSuggestedActionViewModelStaticHost=function(){return!P()},A.ytShortsSuggestedActionViewModelDynamicHost=P,A.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return P()&&G()},A.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return P()&&!G()},A));
_.tz(function(){if(P()){var w=0,u;if((u=Q().animationParams)==null?0:u.shouldExpand){var y,a9;w=((a9=(y=Q().animationParams)==null?void 0:y.expansionDelaySecs)!=null?a9:0)*1E3}var pF,Ub=((pF=Q().animationParams)==null?0:pF.shouldExpand)?setTimeout(function(){T(!0)},w):void 0,Ob,I9;
w=((Ob=Q().animationParams)==null?0:Ob.visibilityDelaySecs)?((I9=Q().animationParams)==null?NaN:I9.visibilityDelaySecs)*1E3:0;var iy=setTimeout(function(){p(!0)},w);
_.Cz(function(){Ub&&clearTimeout(Ub);clearTimeout(iy)})}});
var t=function(w){_.D3(w,Object.assign({},{form:{element:f.value}}))},g=_.IY(function(){var w,u=(w=M())==null?void 0:w.onTapCommand;
u&&t(u)}),e=_.IY(function(){var w,u;
if(w=(u=l())==null?void 0:u.onTapCommand)return t(w),!1}),x=_.qM({"vertical-align":"bottom",
"border-radius":function(){var w;return P()?((w=Q().defaultContent)==null?0:w.isCircleImage)?"50%":"4px":"0px"},
width:function(){var w,u,y;return P()&&((w=Q().defaultContent)==null?0:w.imageSize)?((y=(u=Q().defaultContent)==null?void 0:u.imageSize)!=null?y:24)+"px":null},
height:function(){var w,u,y;return P()&&((w=Q().defaultContent)==null?0:w.imageSize)?((y=(u=Q().defaultContent)==null?void 0:u.imageSize)!=null?y:24)+"px":null}}),D={};
return _.X("yt-shorts-suggested-action-view-model",{class:A,el:f},_.X("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.X("button",{class:_.O4(function(){return P()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var w;
return(w=Q().useFullRoundedBorder)!=null&&w?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!l()&&P()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":P()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var w;
return(w=Q().disableFixedHeight)!=null&&w?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(D.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(b==null?void 0:b())===1},D)),
"on:click":g},_.X(_.jl,{model:{color:4}}),_.X("div",{class:_.O4(function(){return P()?n().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.X(_.S,{cond:function(){var w;
return(w=M())==null?void 0:w.image},
then:function(w){return _.X(_.aY,{data:w,alt:"",className:function(){return P()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:x})}}),_.X(_.S,{cond:function(){var w,u;
return(w=M())==null?void 0:(u=w.icon)==null?void 0:u.iconType},
then:function(w){return _.X(_.oY,{icon:w,active:L,className:function(){return P()?a()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.X("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.X(_.S,{cond:function(){var w;
return(w=M())==null?void 0:w.primaryText},
then:function(w){return _.X("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.X(_.Rb,{text:w}))}}),_.X(_.S,{cond:function(){var w;
return(w=M())==null?void 0:w.secondaryText},
then:function(w){return _.X("div",{class:function(){return n().secondaryText()}},_.X(_.Rb,{text:w}))}}))),_.X(_.S,{cond:l,
then:function(w){return _.X("div",{class:function(){return n().trailingSection()},
"aria-label":function(){var u;return(u=w().a11yLabel)!=null?u:""},
"on:click":e,role:"button",tabindex:0},_.X(_.jl,{model:{color:4}}),_.X(_.oY,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var I0F=_.aP(function(A){var Q=A.data;var b=A.overlayDensity;var f=_.st("yt-shorts-video-title-view-model");A=_.IY(function(G){if(_.zG(_.cL(G),f.value,["A".toString()]))return!1;(G=Q().truncatedTextOnTapCommand)&&_.D3(G);return!1});
var a={},T={};return _.X("yt-shorts-video-title-view-model",{el:f,class:_.O4("ytShortsVideoTitleViewModelHost",(a.ytShortsVideoTitleViewModelHostClickable=function(){return!!Q().truncatedTextOnTapCommand},a)),
"on:click":A},_.X("h2",{class:_.O4("ytShortsVideoTitleViewModelShortsVideoTitle",(T.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(b==null?void 0:b())===1},T))},_.X(_.Rb,{text:function(){return Q().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.HtF=_.aP(function(A){var Q=A.data;var b=A.overlayDensity;return _.X("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.X(_.WL,{data:function(){return Q().metadataItems}},{badgeViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(_.Xb,{data:f.data}))},
playerDisclosureViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(_.V2O,{data:f.data}))},
shortsSuggestedActionViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(kHx,{data:f.data,overlayDensity:b}))},
reelChannelBarViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(OtN,{data:f.data,overlayDensity:b}))},
reelMultiFormatLinkViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(n5x,{data:f.data,overlayDensity:b}))},
shortsVideoTitleViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(I0F,{data:f.data,overlayDensity:b}))},
reelSoundMetadataViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(_.HsK,{data:f.data,overlayDensity:b}))},
toggleButtonViewModel:function(f){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(_.eq,{data:f.data}))}}))},"jf");var CwF=_.aP(function(A){var Q=_.be(A,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),b=Q.size,f=Q.onTap,a=Q.disabled,T=Q.tooltipText;return _.X("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.X(_.K3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:b(),disabled:a(),tooltipText:T(),onTap:f}},
iconName:A.iconType}))},"kf"),qXl=_.aP(function(A){function Q(L){L.stopPropagation();
L.code==="ArrowUp"?(L.preventDefault(),uVW(p.value)):L.code==="ArrowDown"?(L.preventDefault(),ZAi(p.value)):L.code==="KeyM"?zdA():(L.code==="KeyK"||L.code==="Space")&&wqy(P())}
var b=_.be(A,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});A=b.previousButtonDisabled;var f=b.nextButtonDisabled,a=b.data,T=b.playabilityStatus,G=b.previewThumbnail,p=_.st("ytd-shorts-miniplayer-overlay"),P=_.Zc(_.z5C),U;_.CH(function(){(U=_.h3(p.value))&&U.addEventListener("keydown",Q)});
_.Cz(function(){var L;(L=U)==null||L.removeEventListener("keydown",Q)});
b=function(){var L,M,l;return(L=a())==null?void 0:(M=L.reelPlayerOverlayRenderer)==null?void 0:(l=M.likeButton)==null?void 0:l.likeButtonRenderer};
return _.X("ytd-shorts-miniplayer-overlay",{el:p,class:"ytdShortsMiniplayerOverlayHost"},_.X("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.qM({"background-image":function(){var L=G();return L?'url("'+_.XS(L.thumbnails)+'")':""}})}),_.X("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.X("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.X(CwF,{iconType:function(){var L=P();
return L===2||L===-1||L===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){wqy(P())},
tooltipText:function(){var L=P();return L===1||L===3?_.JQ("PLAYER_LABEL_PAUSE"):_.JQ("PLAYER_LABEL_PLAY")}}),_.X(_.J3M,{orientation:"horizontal_right"})),_.X("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.X(CwF,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:A,onTap:function(){uVW(p.value)},
tooltipText:_.JQ("PREVIOUS_VIDEO_LABEL")}),_.X(CwF,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:f,onTap:function(){ZAi(p.value)},
tooltipText:_.JQ("NEXT_VIDEO_LABEL")}),_.K("web_shorts_pip_like_button")?_.X("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.X(WBp,{buttonTooltipPosition:"left",data:b,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.X("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.X(_.S,{cond:function(){var L,M;return _.V((L=a())==null?void 0:(M=L.reelPlayerOverlayRenderer)==null?void 0:M.metapanel,
_.iYM)},
then:function(L){return _.X("div",{class:_.O4("ytdShortsMiniplayerOverlayInteractive")},_.X(_.HtF,{data:L}))}})),_.X("div",{class:_.O4("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var L;return!((L=a())==null||!L.adsOverlay)||T()&&!vhX(T())}},_.X("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.X(_.itO,null)))),_.X(_.S,{cond:function(){var L=a(),M,l;
L=_.V(L==null?void 0:(M=L.adsOverlay)==null?void 0:(l=M.fulfillmentContent)==null?void 0:l.fulfilledLayout,huL);return _.V(L==null?void 0:L.renderingContent,cdY)},
then:function(L){return _.X("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.X(tay,{data:L}))}}))},"lf");var ypX=_.aP(function(){var A=_.F(_.pz(new _.iw(NaN,NaN),void 0,"HSMFk")),Q=A.next().value,b=A.next().value;A=_.F(_.pz(!1,void 0,"uaAxwf"));var f=A.next().value,a=A.next().value,T=_.F(_.pz(!1,void 0,"nVSwef"));A=T.next().value;var G=T.next().value,p=_.fJ().resolve(_.zb).miniplayerPropSignalMap[0],P=p.data,U=p.shortsData,L=p.nextButtonDisabled,M=p.shortsPreviewThumbnail,l=p.previousButtonDisabled,J=p.externalPlaylistData;T=p.toastData;var n=p.playabilityStatus,t=p.isDisabled,g=p.playerVe,e=p.closeVe;
p=_.Zc(_.LS);_.N3("yt-pip-window-resized",function(u){b(u)});
_.N3("yt-activate-pip-miniplayer",function(){return _.B(function(u){G(!0);_.Oi(u)})});
var x=function(){var u;return!((u=J())==null||!u.contents)&&f()},D=function(){var u=Q(),y=!!P(),a9=x();
u=u.clone();y&&(u.height-=76);a9&&(u.height-=285);return u},w=function(){a(!f())};
_.H_(function(){var u=g(),y=_.WR(11),a9=_.hx(11);y&&a9&&u&&(_.ui(y,a9,u),a9=e())&&(_.ZV(y,u,[a9]),_.Y_(y,[a9]))},"HPkp0c");
return _.X("ytd-pip-container",{class:"ytdPipContainerHost"},_.X(_.S,{cond:A,then:function(){return _.X(_.gmq,{isDisabled:t,playabilityStatus:n,size:D})}}),_.X(_.S,{cond:P,
then:function(){return _.X(_.jDq,{data:P,expanded:f,onExpandClick:w,playlistData:J})}}),_.X(_.S,{cond:x,
then:function(){return _.X("div",{class:"ytdPipContainerPlaylistPanel"},_.X(_.eHL,{data:J,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.X(_.S,{cond:p,
then:function(){return _.X(qXl,{data:U,nextButtonDisabled:L,previousButtonDisabled:l,playabilityStatus:n,previewThumbnail:M})}}),_.X("div",{class:"ytdPipContainerToast"},_.X(_.eZs,{toastData:T})))},"mf");var uU=function(A,Q){var b=this;this.pipController=A;this.JSC$18555_clientRoot=Q;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=T4C();this.watchPipEnabled=_.K("web_watch_pip");this.shortsPipEnabled=_.K("web_shorts_pip");this.JSC$18555_watchWhileEnabled=_.K("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;_.H1(_.QK(),WcW,function(f){b.isSingleOptionSurveyActive=f});
this.JSC$18555_onPlayerPlayVideo=this.JSC$18555_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);_.Dl(_.Yk.getInstance(),this.miniplayerServiceActionMap,this.JSC$18555_clientRoot);A.pictureInPictureSupported()&&_.R4("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},GFy,v5N,g5K,E5F,x1F,SQN;
uU.prototype.handleMediaSessionPipActivation=function(){var A=this,Q;return _.B(function(b){_.kg().mediaSessionPipActivation=!0;Q=_.fJ().resolve(_.F7);return Q.isOnWatch()&&A.watchPipEnabled?(_.kg().watchPipActivation=!0,_.o5N(A,Q.data),b.jumpTo(0)):Q.isOnShorts()&&A.shortsPipEnabled?(_.kg().shortsPipActivation=!0,_.t2K(A),b.jumpTo(0)):A.isMiniplayerActive()&&A.watchPipEnabled&&!A.watchWhileMode?b.yield(r3d(A),0):b.jumpTo(0)})};
var r3d=function(A){var Q,b,f,a;return _.B(function(T){if(T.nextAddress==1)return Q=!A.miniplayerToPipMode,b=A.playerElement,f=A.miniplayerData,a=A.watchResponse,T.yield(A.deactivate(),2);if(T.nextAddress!=3)return Q?(_.kg().mediaSessionPipActivation=!0,_.kg().watchPipActivation=!0):_.kg().miniplayerButtonActivation=!0,T.yield(A.activate(b,f,a),3);A.miniplayerToPipMode=Q;_.Oi(T)})};
uU.prototype.onDownloadedVideoDeleted=function(A){var Q,b=_.V((Q=this.miniplayerData)==null?void 0:Q.watchEndpoint,_.sv),f,a;b&&((f=this.watchResponse)==null?void 0:(a=f.playerResponse)==null?void 0:a.offlineState)!==void 0&&(Q=b.videoId)&&A&&Q===A&&this.close()};
uU.prototype.onShowMiniplayerCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M,l;return _.B(function(J){switch(J.nextAddress){case 1:return b=_.V(A,BbL),a=(f=b)==null?void 0:f.miniplayerCommand,T=_.V(a,_.sv),a&&T&&!Q.active?J.yield(_.RR.getInstance(),2):J.return();case 2:return G=J.yieldResult,J.yield((p=G)==null?void 0:p.get("yt-miniplayer-shown-video-id"),3);case 3:P=J.yieldResult;U=T.videoId;if(!U||P===U)return J.return();L=_.fJ().resolve(_.F7);if(L.isOnWatch())return _.Wv(Error("Fj")),J.return();
M={channelItem:{externalId:btoa(U)}};Q.readyToResumeVe=_.K6(121253,void 0,void 0,M);_.kg().showMiniplayerCommandActivation=!0;return J.yield(_.UtN(Q,a,!0),4);case 4:return Q.active&&(_.ZZ(Q,{readyToResumeVe:Q.readyToResumeVe,isReadyToResume:!0}),Q.isReadyToResume=!0),J.yield((l=G)==null?void 0:l.set("yt-miniplayer-shown-video-id",T.videoId),5);case 5:Q.readyToResumeVe=void 0,_.Oi(J)}})};
uU.prototype.init=function(A){this.miniplayerEl?_.Wv(new _.IO("MiniplayerService already initialized.")):this.miniplayerEl=A};
uU.prototype.isInitialized=function(){var A=!!this.miniplayerEl;A||_.Wv(new _.IO("MiniplayerService used before initialized."));return A};
_.o5N=function(A,Q){if(A.isInitialized()){var b=_.GlF(Q.response,Q.playerResponse),f=_.fJ().resolve(_.F7).getPlayerFromWatch();_.kg().currentEndpoint=b.watchEndpoint||null;A.activate(f,b,Q)}};
_.t2K=function(A){if(A.isInitialized()){var Q=_.fJ().resolve(_.F7).getPlayerFromShorts();A.activate(Q)}};
GFy=function(A,Q){var b;(b=!A.isInitialized())||(b=_.fJ().resolve(_.F7).isOnWatch()&&A.watchPipMode,b=!(A.isMiniplayerActive()&&(_.kg().userActivation||_.kg().lockupActivation||b)));if(b)return!1;jkK(A,Q)?_.cu(A):SQN(A,Q);return A.watchPipMode?!_.fJ().resolve(_.F7).isOnWatch():!0};
uU.prototype.isMiniplayerActive=function(){return this.active};
var jkK=function(A,Q){var b;Q=(b=_.V(Q,_.sv))==null?void 0:b.videoId;var f,a;A=(a=_.V((f=A.miniplayerData)==null?void 0:f.watchEndpoint,_.sv))==null?void 0:a.videoId;return Q!=null&&Q===A};
uU.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Bn(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.pD(this.miniplayerEl,"yt-navigate-home-action"))};
_.UtN=function(A,Q,b,f){b=b===void 0?!1:b;var a,T,G;return _.B(function(p){switch(p.nextAddress){case 1:if(A.active){p.jumpTo(2);break}a=_.fJ().resolve(_.F7);if(G=(T=A.playerElement)!=null?T:a.getPlayerFromWatch()){p.jumpTo(3);break}return p.yield(_.fJ().resolve(_.Uh),4);case 4:G=a.getPlayerFromWatch();case 3:if(!G){_.Wv(Error("Hj"));p.jumpTo(2);break}return p.yield(A.activate(G,f),2);case 2:return A.active?p.yield(SQN(A,Q,b),0):p.return()}})};
uU.prototype.activate=function(A,Q,b){var f=this,a,T,G,p,P,U,L,M,l;return _.B(function(J){switch(J.nextAddress){case 1:if(!f.isInitialized())return J.return();if(!A)return _.Wv(Error("Hj")),J.return();if(_.KtY()||f.isMiniplayerActive())var n=!0;else n=_.kg().watchPipActivation||_.kg().watchWhileActivation,_.fJ().resolve(_.F7).isOnWatch()&&!n?(_.Wv(new _.IO("miniplayer activated on watch page")),n=!0):n=_.kg().watchWhileActivation?f.userDeactivatedWatchWhile||!!document.pictureInPictureElement||ivU():
!1;if(n)return lxp(),J.return();a=_.kg().mediaSessionPipActivation;T=_.kg().shortsPipActivation;G=_.kg().watchPipActivation;P=(p=_.kg().watchWhileActivation)||G;U=G||T;if(!f.pictureInPictureEnabled()||!U){J.jumpTo(2);break}return J.yield(RKN(f,a),3);case 3:if(!J.yieldResult)return _.Wv(Error("Gj")),lxp(),J.return();case 2:return f.setActive(!0),f.watchResponse=b,f.playerElement=A,f.updateMiniplayerData(Q),J.yield(g5K(f,A),4);case 4:if(!f.active)return _.Wv(new _.IO("miniplayer deactivated during activation")),
f.removePlayerListeners(),J.return();n=_.fJ().resolve(_.u$);n.addEventListener("yt-navigate",_.lN(f,f.onPlaylistNavigate));n.addEventListener("yt-playlist-data-updated",_.lN(f,f.JSC$18555_onPlaylistDataUpdated));f.JSC$18555_onPlaylistDataUpdated();lxp();f.JSC$18555_watchWhileEnabled&&_.eK7(f,p);f.pictureInPictureEnabled()&&f.shortsPipEnabled&&(f.shortsPipMode=T,_.QK().dispatch(fnp(f.shortsPipMode)));f.pictureInPictureEnabled()&&f.watchPipEnabled&&(f.watchPipMode=G,_.Vgf(f.handleMediaSessionPipActivation));
f.player&&(L=f.player.getPlayerState(),M=L===1,_.QK().dispatch(PHp(L)),_.Pn(f.miniplayerEl,"yt-miniplayer-play-state-changed",[M]),_.kg().isVideoPlaying=M);_.Pn(f.miniplayerEl,"yt-miniplayer-endpoint-changed");hKx(f);_.WKN(f);if(f.shortsPipMode||f.watchPipMode)J=J.yield(_.pD(f.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{n=J.yield;var t=_.pD(f.miniplayerEl,"yt-activate-miniplayer",[P])[0];J=n.call(J,t,6)}return J;case 6:if(f.watchResponse&&!_.K("miniplayer_copy_screen_on_activation_killswitch")){n=
f.getScreenLayer();t=_.WR(0);var g=iUF(0);t&&g&&(_.Ev(t,g,n),n===0&&lQi(void 0,0))}v5N(f);E5F(f,!0);(l=f.getPlayerElement())==null||l.focusOnPlayer();_.Oi(J)}})};
uU.prototype.updateMiniplayerData=function(A){this.miniplayerData=A;_.ZZ(this,{data:A})};
_.WKN=function(A){var Q,b,f=((Q=A.miniplayerData)==null?void 0:(b=Q.miniplayerRenderer)==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";Q=A.watchWhileMode||A.watchPipMode?f&&!_.fJ().resolve(_.F7).isOnWatch():f;_.ZZ(A,{isDisabled:Q});var a,T;b=_.V((a=A.miniplayerData)==null?void 0:(T=a.miniplayerRenderer)==null?void 0:T.minimizedEndpoint,_.ju);Q&&b&&_.fJ().resolve(_.j4).openSheet({openPopupActionCommand:{openPopupAction:b}},A.miniplayerEl)};
v5N=function(A){if(A.watchResponse&&!x1F(A)){var Q,b=(Q=A.watchResponse.playerResponse)==null?void 0:Q.trackingParams;b&&(_.ZZ(A,{expandVe:_.K6(35989),closeVe:_.K6(34699),readyToResumeCloseVe:_.K6(131070),repositionVe:_.K6(226204),resizeVe:_.K6(226205)}),_.ZZ(A,{playerVe:_.t8(b)}))}};
g5K=function(A,Q){return _.B(function(b){if(b.nextAddress==1)return Q.preparePlayer(),b.yield(Q.getPlayerPromise(),2);A.player=b.yieldResult;A.player&&(A.player.addEventListener("onPlayVideo",A.JSC$18555_onPlayerPlayVideo),A.player.addEventListener("onCloseMiniplayer",A.onPlayerCloseMiniplayer),A.player.addEventListener("onExpandMiniplayer",A.onPlayerExpandMiniplayer),A.player.addEventListener("onStateChange",A.onPlayerStateChange));_.Oi(b)})};
_.d=uU.prototype;_.d.JSC$18555_onPlayerPlayVideo=function(A){var Q=A.sessionData&&"autonav"in A.sessionData,b;A.sessionData&&A.sessionData.itct&&(b=A.sessionData.itct);var f=A.watchEndpoint;Q=f&&Q?_.$yJ(f,b):_.aX(A.videoId,A.listId||void 0,b);A.sessionData&&_.bi(_.V(Q.commandMetadata,_.KD).url,A.sessionData);SQN(this,Q)};
_.d.onPlayerExpandMiniplayer=function(){_.cu(this)};
_.d.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.d.onPlayerStateChange=function(){if(this.player){var A=this.player.getPlayerState(),Q=A===1;_.QK().dispatch(PHp(A));_.QK().dispatch(_.Uox(A));_.Pn(this.miniplayerEl,"yt-miniplayer-play-state-changed",[Q]);_.kg().isVideoPlaying=Q;if(A===0){Q=!_.dl.getInstance().isAutoplaySetExplicitly();var b,f,a,T,G,p,P=(b=this.watchResponse.response)==null?void 0:(f=b.contents)==null?void 0:(a=f.twoColumnWatchNextResults)==null?void 0:(T=a.autoplay)==null?void 0:(G=T.autoplay)==null?void 0:(p=G.autoplayExplicitChoiceDialogRenderer)==
null?void 0:p.confirmDialogRenderer;Q&&P&&this.player.setAutonavState(1)}A===0&&this.watchWhileMode&&this.deactivate()}};
_.d.onPlaylistNavigate=function(A,Q){var b=this,f,a,T,G,p,P,U;return _.B(function(L){if(L.nextAddress==1){if(!_.V(Q.endpoint,_.sv))return L.return();_.kg().currentEndpoint=Q.endpoint;_.Pn(b.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.fJ().resolve(_.F7).isOnWatch()&&(b.watchWhileMode||b.watchPipMode))return L.return();A.stopPropagation();(T=(a=_.V((f=Q.endpoint)==null?void 0:f.commandMetadata,_.KD))==null?void 0:a.url)&&Q.tempData&&!_.j2.isEmpty(Q.tempData)&&_.bi(T,Q.tempData);G={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};p=new M0K(function(){return b.getPlayerElement()},G,{layer:b.getScreenLayer()});
P=function(M){p.processChunk({endpoint:Q.endpoint,data:M})};
c3K(b);b.miniplayerFetchRequest=zKn(b,Q.endpoint,P);_.ML(L,2);return L.yield(b.miniplayerFetchRequest,4)}if(L.nextAddress!=2)return U=L.yieldResult,wl7(b,U),_.Z1(L,0);_.Vw(L);_.Oi(L)})};
_.d.JSC$18555_onPlaylistDataUpdated=function(){var A=_.fJ().resolve(_.u$).getPlaylistData();this.hasPlaylistData=!!A;_.ZZ(this,{externalPlaylistData:A||{}})};
_.d.close=function(A){if(this.isInitialized())if(A){if(!((this.watchWhileMode||this.watchPipMode)&&_.fJ().resolve(_.F7).isOnWatch()||this.shortsPipMode)){var Q;(Q=this.getPlayerElement())==null||Q.stop()}this.deactivate()}else _.$g().closeMiniplayer(this.miniplayerEl)};
_.d.deactivate=function(A){var Q=this,b,f,a,T;return _.B(function(G){if(G.nextAddress==1){if(!Q.isInitialized()||!Q.active)return G.return();Q.setActive(!1);c3K(Q);(b=!!A&&jkK(Q,A))&&Q.isSingleOptionSurveyActive&&_.pD(Q.miniplayerEl,"yt-show-watch-page-survey",[Q.isSingleOptionSurveyActive]);return G.yield(uun(Q),2)}if(G.nextAddress!=3){E5F(Q,!1);Q.isReadyToResume=!1;Q.watchResponse=void 0;Q.updateMiniplayerData(void 0);Q.shortsPipMode&&(Q.shortsPipMode=!1,_.QK().dispatch(fnp(Q.shortsPipMode)),frt(Q.pipController),
(f=Q.player)==null||f.setInternalSize(NaN,NaN));Q.watchPipMode&&(Q.watchPipMode=!1,frt(Q.pipController));(a=Q.watchWhileMode)&&_.eK7(Q,!1);Q.removePlayerListeners();var p=_.fJ().resolve(_.u$);p.removeEventListener("yt-navigate",_.lN(Q,Q.onPlaylistNavigate));p.removeEventListener("yt-playlist-data-updated",_.lN(Q,Q.JSC$18555_onPlaylistDataUpdated));_.kg().currentEndpoint=null;_.Pn(Q.miniplayerEl,"yt-miniplayer-endpoint-changed");Q.playerElement=null;lxp();if(Q.shortsPipMode||Q.watchPipMode)G=G.jumpTo(3);
else{p=G.yield;var P=_.pD(Q.miniplayerEl,"yt-deactivate-miniplayer",[b,a])[0];G=p.call(G,P,3)}return G}(T=Q.player)==null||T.setInternalSize(NaN,NaN);Q.player=null;_.Oi(G)})};
var uun=function(A){var Q;return _.B(function(b){Q=_.fJ().resolve(_.F7);return A.shortsPipMode?b.yield(Q.movePlayerToShorts(A.playerElement),0):b.yield(Q.movePlayerToWatch(A.playerElement),0)})};
uU.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18555_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
uU.prototype.setActive=function(A){this.active=A;this.isSingleOptionSurveyActive?_.pD(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.pD(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.QK().dispatch(_.G7({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.eK7=function(A,Q){A.watchWhileMode=Q;_.ZZ(A,{watchWhile:Q})};
E5F=function(A,Q){if(!x1F(A))if(A.shortsPipMode||A.watchPipMode){var b;(b=A.player)==null||b.setDocumentPictureInPicture(Q)}else{var f;(f=A.player)==null||f.setMinimized(Q)}};
x1F=function(A){return A.watchWhileMode&&_.K("kevlar_watch_while_counterfactual")};
_.cu=function(A){var Q;return _.B(function(b){switch(b.nextAddress){case 1:if(!A.isInitialized())return b.return();_.ML(b,2);return b.yield(A.miniplayerFetchRequest,4);case 4:_.Z1(b,3);break;case 2:_.Vw(b);case 3:A.watchResponse&&A.miniplayerData&&A.miniplayerData.watchEndpoint?(Q={url:A.watchResponse.url,endpoint:A.miniplayerData.watchEndpoint,data:A.watchResponse,miniplayer:!0},_.Bn(A.miniplayerEl,"yt-navigate-cache",Q)):A.miniplayerData&&A.miniplayerData.watchEndpoint&&_.Bn(A.miniplayerEl,"yt-navigate",
{endpoint:A.miniplayerData.watchEndpoint}),_.Oi(b)}})};
SQN=function(A,Q,b){var f,a,T,G;return _.B(function(p){if(p.nextAddress==1){if(jkK(A,Q))return p.return();_.kg().currentEndpoint=Q;_.Pn(A.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Pn(A.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.kg().isVideoPlaying=!1;f={clientParams:{miniplayer:!0,autoSaveToQueue:!b}};a=new M0K(function(){return A.getPlayerElement()},f,{layer:A.getScreenLayer(),
parentLayer:0},void 0,A.readyToResumeVe);T=function(P){var U,L,M=Object.assign({},(U=P.playerResponse)==null?void 0:(L=U.playerConfig)==null?void 0:L.playbackStartConfig,{startPaused:!0}),l;b&&((l=P.playerResponse)==null?0:l.playerConfig)&&(P.playerResponse.playerConfig.playbackStartConfig=M);a.processChunk({endpoint:Q,data:P})};
c3K(A);A.miniplayerFetchRequest=zKn(A,Q,T);_.ML(p,2);return p.yield(A.miniplayerFetchRequest,4)}if(p.nextAddress!=2)return G=p.yieldResult,wl7(A,G),_.Z1(p,0);_.Vw(p);_.Oi(p)})};
uU.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var c3K=function(A){A.miniplayerFetchRequest&&(A.miniplayerFetchRequest.cancel&&A.miniplayerFetchRequest.cancel("Active request obsolete"),A.miniplayerFetchRequest=null)},zKn=function(A,Q,b){var f=_.qO.instance,a,T=(a=_.V(Q.commandMetadata,_.KD))==null?void 0:a.url,G;
a=!T||_.K("disable_miniplayer_tempdata")?{}:(G=Tbf(T))!=null?G:{};return ZN(f,Q,a,window.location.href,"watch",function(p,P){b(P)},function(p){return p!==A.miniplayerFetchRequest})},wl7=function(A,Q){var b;
_.B(function(f){if(!Q)return f.return();A.watchResponse=Q;v5N(A);hKx(A);b=_.GlF(Q.response,Q.playerResponse);if(A.isMiniplayerActive()){Q.response&&(A.playerElement.watchNextData=Q.response);var a=_.j2.getValueByKeys.apply(_.j2,[Q].concat(_.ri(H89)));_.j2.getValueByKeys.apply(_.j2,[Q].concat(_.ri(rZL)))&&a&&_.fJ().resolve(_.u$).setAutoplayRenderer(a);if(a)if(_.K("kevlar_is_pupi_enabled")){var T,G,p,P,U,L=((T=Q.response)==null?0:(G=T.playerOverlays)==null?0:(p=G.playerOverlayRenderer)==null?0:(P=p.autonavToggle)==
null?0:(U=P.autoplaySwitchButtonRenderer)==null?0:U.enabled)?2:1;_.dl.getInstance().setState(L,!1,!1)}else T=Kf6()?2:1,(L=A.player)==null||L.setAutonavState(T);A.updateMiniplayerData(b);_.WKN(A)}_.Oi(f)})},hKx=function(A){var Q,b,f=(Q=A.watchResponse)==null?void 0:(b=Q.playerResponse)==null?void 0:b.playabilityStatus,a;
Q=f==null?void 0:(a=f.miniplayer)==null?void 0:a.miniplayerRenderer;(Q==null?void 0:Q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&Q.minimizedEndpoint&&_.X5(A.miniplayerEl,[Q.minimizedEndpoint]);_.ZZ(A,{playabilityStatus:f})};
uU.prototype.openToast=function(A,Q){_.ZZ(this,{toastData:{data:A,label:Q}})};
_.ZZ=function(A,Q){(0,A.miniplayerPropSignalMap[1])(Q)};
uU.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var A;return this.playerElement?this.playerElement:(A=_.Bj(this.miniplayerEl).querySelector("#player-container"))==null?void 0:A.firstElementChild};
uU.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var RKN=function(A,Q){Q=Q===void 0?!1:Q;var b,f,a,T,G,p,P;return _.B(function(U){if(U.nextAddress==1){b=navigator.userActivation.isActive||Q;if(!b||!A.pictureInPictureSupported())return U.return(!1);f=Ztd(A);a=f.width;T=f.height;return U.yield(A.pipController.openWindow({width:a,height:T}),2)}G=U.yieldResult;p=A.pipController.getWindow();if(!p||!G)return U.return(!1);p.document.body.style.overflow="hidden";P=Yyf(p);arO(A.pipController,function(){y3x(A);P()});
return U.return(!0)})},Ztd=function(A){var Q=_.kg().shortsPipActivation,b,f;
A=Q?.5625:(f=(b=A.player)==null?void 0:b.getVideoAspectRatio())!=null?f:16/9;b=Math.min(window.innerWidth,window.innerHeight)/2;Q=Q?0:76;return A>1?new _.iw(b,Q+b/A):new _.iw(b*A,Q+b)},y3x=function(A){var Q;
_.B(function(b){Q=_.fJ().resolve(_.F7);return Q.isOnWatch()&&A.watchPipMode||Q.isOnShorts()&&A.shortsPipMode?b.yield(A.deactivate(),0):A.miniplayerToPipMode?b.yield(r3d(A),0):A.watchPipMode?b.yield(_.cu(A),0):b.jumpTo(0)})};
uU.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Qr.Object.defineProperties(uU.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
uU[aW]=[Txs,T0W];var YX7="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(" "),
D1s="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(" "),$1t="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
NQM="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var skN=null;var m1F={},ATd=(m1F.initialized={priority:10,callback:function(A){var Q=_.fJ();Q.addProvider({provide:bz$,useClass:dsx});Q.addProvider({provide:_.T$n,useFactory:function(){return new fDL}});
Q.addProvider({provide:vc,useValue:_.vG("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});Q.addProvider({provide:GXF,useValue:5184E6});Q.addProvider({provide:oCq,useValue:_.Rc()});Q.addProvider({provide:v1l,useClass:AAj});Q.addProvider({provide:$u,useClass:$u});Q.addProvider({provide:_.Uh,useFactory:function(){return anx.promise}});
Q.addProvider({provide:_.dor,useFactory:function(){return _.TqM.promise}});
Q.addProvider({provide:yaY,useValue:function(){var P;return((P=_.BL())==null?void 0:P.getPlayer())||null}});
var b={};Q.addProvider((b.provide=_.Bu,b.useFactory=function(P,U){return function(){return ase(P,U)}},b[aW]=[vc,
GXF],b));b={};Q.addProvider((b.provide=_.La,b.useClass=QyF,b[aW]=[vc,GXF],b));b={};Q.addProvider((b.provide=_.p66,b.useClass=T9N,b[aW]=[_.La],b));Q.addProvider({provide:oq,useFactory:_.QK});Q.addProvider({provide:BZ,useFactory:_.QK});Q.addProvider({provide:wMl,useFactory:_.QK});Q.addProvider({provide:c_M,useFactory:_.QK});Q.addProvider({provide:_.u7,useFactory:_.QK});Q.addProvider({provide:Vn,useValue:_.ig});Q.addProvider({provide:AsF,useClass:iTy});Q.addProvider({provide:vPp,useClass:W89});Q.addProvider({provide:D2,
useClass:D2});Q.addProvider({provide:Ok,useClass:Ok});Q.addProvider({provide:nW,useClass:nW});Q.addProvider({provide:Ia,useClass:Ia});Q.addProvider({provide:bU,useClass:bU});Q.addProvider({provide:tB,useClass:tB});Q.addProvider({provide:nM,useClass:nM});Q.addProvider({provide:weF,useValue:ONF});Q.addProvider({provide:_.gu,useFactory:_.IP});Q.addProvider({provide:MR,useFactory:_.nD});b={};Q.addProvider((b.provide=YVJ,b.useFactory=function(P){return function(U){var L=L===void 0?{}:L;var M,l,J=(l=_.V((M=
U.endpoint)==null?void 0:M.commandMetadata,_.KD))==null?void 0:l.rootVe;if(J){var n,t;if(M=U.previousCsn||((t=_.V((n=U.endpoint)==null?void 0:n.commandMetadata,vjL))==null?void 0:t.parentCsn)){var g=g===void 0?{}:g;if(M!==_.WR(g.layer)||J!==iUF(g.layer))kSY(M,g.cttAuthInfo,g.layer||0),lQi(M,g.layer||0),n=g.layer||0,_.e6(K2A(n===void 0?0:n),J);L.parentCsn=M}U.endpoint&&M?b_y(P,U.endpoint,L):_.Mk(P,J,void 0,L);var e;((e=U.response)==null?0:e.trackingParams)&&P.graftServerVe(U.response.trackingParams);
var x;((x=U.playerResponse)==null?0:x.trackingParams)&&P.graftServerVe(U.playerResponse.trackingParams);var D;((D=U.reelWatchSequenceResponse)==null?0:D.trackingParams)&&P.graftServerVe(U.reelWatchSequenceResponse.trackingParams)}}},b[aW]=[_.gu],b));
b={};Q.addProvider((b.provide=Z$M,b.useClass=uLq,b[aW]=[Vn,_.u7],b));b={};Q.addProvider((b.provide=Ja,b.useClass=Ja,b[aW]=[_.Uh,_.u7],b));b={};Q.addProvider((b.provide=MG,b.useClass=MG,b[aW]=[BZ,_.de],b));Q.addProvider({provide:_.syx,useClass:FlO});b={};Q.addProvider((b.provide=_.r8,b.useClass=Qtn,b[aW]=[_.syx],b));Q.addProvider({provide:_.j4,useClass:nP});Q.addProvider({provide:_.nCN,useClass:cMr});Q.addProvider({provide:_.RS,useClass:VC});b={};Q.addProvider((b.provide=_.XQ,b.useClass=dNK,b[aW]=
[_.XQ],b));Q.addProvider({provide:_.Ll,useClass:rLL});Q.addProvider({provide:gf,useClass:gf});Q.addProvider({provide:Qj,useClass:Qj});Q.addProvider({provide:xD,useClass:xD});Q.addProvider({provide:Wu,useClass:Wu});b={};Q.addProvider((b.provide=Vl,b.useClass=Vl,b[aW]=[_.de,_.vY],b));Q.addProvider({provide:DM,useClass:O6});b={};Q.addProvider((b.provide=sT,b.useClass=sT,b[aW]=[_.j4,DM],b));_.K("web_enable_feedback_endpoint_resolver")&&(b={},Q.addProvider((b.provide=t0,b.useClass=t0,b[aW]=[oq,qS],b)),
Q.addProvider({provide:qS,useClass:Q9n}));_.K("web_enable_feedback_endpoint_resolver_batch_2")&&(b={},Q.addProvider((b.provide=jH,b.useClass=jH,b[aW]=[oq],b)),b={},Q.addProvider((b.provide=rf,b.useClass=rf,b[aW]=[qS],b)));b={};Q.addProvider((b.provide=$D,b.useClass=$D,b[aW]=[_.RS,DM],b));b={};Q.addProvider((b.provide=ul,b.useClass=ul,b[aW]=[_.RS],b));b={};Q.addProvider((b.provide=NS,b.useClass=NS,b[aW]=[_.vY,_.r8],b));b={};Q.addProvider((b.provide=YD,b.useClass=YD,b[aW]=[_.vY,_.gu],b));Q.addProvider({provide:OW,
useClass:OW});b={};Q.addProvider((b.provide=Ld,b.useClass=Ld,b[aW]=[oq],b));Q.addProvider({provide:hn,useClass:hn});Q.addProvider({provide:ew,useClass:ew});b={};Q.addProvider((b.provide=vS,b.useClass=vS,b[aW]=[oq],b));b={};Q.addProvider((b.provide=EW,b.useClass=EW,b[aW]=[_.vY,oq],b));b={};Q.addProvider((b.provide=xn,b.useClass=xn,b[aW]=[oq],b));b={};Q.addProvider((b.provide=cS,b.useClass=cS,b[aW]=[oq],b));b={};Q.addProvider((b.provide=ZM,b.useClass=ZM,b[aW]=[_.r8],b));b={};Q.addProvider((b.provide=
Cd,b.useClass=Cd,b[aW]=[_.gu],b));b={};Q.addProvider((b.provide=Rw,b.useClass=Rw,b[aW]=[Jn],b));b={};Q.addProvider((b.provide=gV,b.useClass=gV,b[aW]=[Jn],b));Q.addProvider({provide:tn,useClass:tn});Q.addProvider({provide:rV,useClass:rV});Q.addProvider({provide:HS,useClass:HS});b={};Q.addProvider((b.provide=mY,b.useClass=mY,b[aW]=[_.r8,_.de],b));Q.addProvider({provide:Wc,useClass:Wc});b={};Q.addProvider((b.provide=yl,b.useClass=yl,b[aW]=[_.vY,_.r8],b));Q.addProvider({provide:cc,useClass:cc});b={};
Q.addProvider((b.provide=Sw,b.useClass=Sw,b[aW]=[oq,_.vY,_.XQ],b));b={};Q.addProvider((b.provide=pd,b.useClass=pd,b[aW]=[_.vY,_.de],b));Q.addProvider({provide:y5$,useValue:KsX});Q.addProvider({provide:s2L,useValue:aay});Q.addProvider({provide:PS,useClass:PS});b={};Q.addProvider((b.provide=BS,b.useClass=BS,b[aW]=[oq],b));b={};Q.addProvider((b.provide=UW,b.useClass=UW,b[aW]=[_.Ll,_.de],b));b={};Q.addProvider((b.provide=Rq,b.useClass=Rq,b[aW]=[_.de],b));Q.addProvider({provide:CC,useFactory:function(){return new CC(_.QK())}});
Q.addProvider({provide:UKy,useFactory:_.eL.getInstance});b={};Q.addProvider((b.provide=ET,b.useClass=ET,b[aW]=[vc,UKy,_.de],b));Q.addProvider({provide:eH,useClass:eH});Q.addProvider({provide:OT,useClass:OT});Q.addProvider({provide:kD,useClass:kD});Q.addProvider({provide:_.nC,useClass:_.nC});Q.addProvider({provide:ub,useClass:ub});b={};Q.addProvider((b.provide=dV,b.useClass=dV,b[aW]=[BZ],b));b={};Q.addProvider((b.provide=FQ,b.useClass=FQ,b[aW]=[_.de],b));_.K("web_enable_prefetching_videos_on_home")&&
(Q.addProvider({provide:LP,useClass:LP}),Q.addProvider({provide:eR,useClass:eR}));b={};Q.addProvider((b.provide=wV,b.useClass=wV,b[aW]=[_.de],b));Q.addProvider({provide:Iq,useClass:Iq});b={};Q.addProvider((b.provide=nd,b.useClass=nd,b[aW]=[_.vY,_.de],b));b={};Q.addProvider((b.provide=Hc,b.useClass=Hc,b[aW]=[_.de],b));Q.addProvider({provide:ha,useClass:ha});Q.addProvider({provide:fd,useClass:fd});b={};Q.addProvider((b.provide=bb,b.useClass=bb,b[aW]=[BZ,_.de],b));Q.addProvider({provide:aw,useClass:aw});
b={};Q.addProvider((b.provide=Yn,b.useClass=Yn,b[aW]=[BZ,_.de,_.vY],b));b={};Q.addProvider((b.provide=Da,b.useClass=Da,b[aW]=[_.de],b));b={};Q.addProvider((b.provide=yj,b.useClass=yj,b[aW]=[_.de,_.vY],b));b={};Q.addProvider((b.provide=Ga,b.useClass=Ga,b[aW]=[_.Uh],b));b={};Q.addProvider((b.provide=Ta,b.useClass=Ta,b[aW]=[_.Uh],b));Q.addProvider({provide:ib,useClass:ib});Q.addProvider({provide:Vj,useClass:Vj});Q.addProvider({provide:WS,useClass:WS});Q.addProvider({provide:kn,useClass:kn});Q.addProvider({provide:Kd,
useClass:Kd});Q.addProvider({provide:zK,useClass:zK});Q.addProvider({provide:lb,useClass:lb});_.K("kevlar_enable_mss_lazy_load")&&Q.addProvider({provide:_.u6,useClass:zxl});Q.addProvider({provide:_.H3,useClass:Im});Q.addProvider({provide:Tm,useFactory:function(){return _.Yk.getInstance()}});
Q.addProvider({provide:cvK,useFactory:KCU});Q.addProvider({provide:Jn,useFactory:function(){return _.RR.getInstance()}});
Q.addProvider({provide:$0r,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});b={};Q.addProvider((b.provide=_.lU,b.useClass=_.lU,b[aW]=[_.Uh,_.de,_.gu,cvK,Jn,Tm,$0r,Vn],b));Q.addProvider({provide:_.JC,useClass:zPW});Q.addProvider({provide:_.peF,useClass:BWx});b={};Q.addProvider((b.provide=wf,b.useClass=wf,b[aW]=[_.peF],b));b={};Q.addProvider((b.provide=_.KP,b.useFactory=function(P){return P.upliftCompletionResolver.promise},b[aW]=[Z$M],b));
b=_.Ep("IS_SHELL_LOAD")?"aa":"eocs";var f=_.Ep("IS_SHELL_LOAD")?3:2;_.y2().parkOrScheduleJob(function(){YLx()},f,b);
_.y2().parkOrScheduleJob(function(){_.fJ().resolve(Ja).start()},2,"eocs");
_.y2().parkOrScheduleJob(function(){zNn()},2,"eocs");
_.y2().parkOrScheduleJob(function(){_.fJ().resolve(MG).start()},2,"eocs");
_.K("kevlar_debug_data_app_registration_ks")||Kbb();Q.addProvider({provide:_.Wz,useValue:new cUr(A.root)});Q.addProvider({provide:Zl,useValue:new hQy});Q.addProvider({provide:_.$pY,useValue:new Yev(A.root)});Q.addProvider({provide:_.WY,useValue:new Dpr});Q.addProvider({provide:_.tX,useClass:kJ});Q.addProvider({provide:Txs,useClass:k9});_.K("kevlar_network_sli_killswitch")||Q.addProvider({provide:Lwd,useValue:xnp});Q.addProvider({provide:jR,useFactory:FNy});_.K("web_bind_fetch")&&(b={},Q.addProvider((b.provide=
QTK,b.useFactory=GJf,b[aW]=[_.bu(jR)],b)));_.K("web_bind_parse")&&(b={},Q.addProvider((b.provide=bp7,b.useFactory=BRf,b[aW]=[_.bu(jR)],b)));_.K("web_bind_window_request")&&(b={},Q.addProvider((b.provide=fiO,b.useFactory=pIC,b[aW]=[_.bu(jR)],b)));_.K("web_bind_text_decoder")&&(b={},Q.addProvider((b.provide=ai7,b.useFactory=PjA,b[aW]=[_.bu(jR)],b)));b={};Q.addProvider((b.provide=R6O,b.useFactory=u8X,b[aW]=[_.KP,oq,_.Bu],b));b={};Q.addProvider((b.provide=j9t,b.useClass=$n,b[aW]=[R6O],b));Q.addProvider({provide:Dfl,
useClass:uix});Q.addProvider({provide:qbt,useClass:tAt});b=[].concat(_.ri(bJ));_.K("web_continuation_response_processing")&&b.push(_.Yo);b.push(Ubj);_.K("enable_share_panel_navigation_logging_fix_on_web")&&b.push(_.RtL);Q.addProvider({provide:Ry4,useValue:b});Q.addProvider({provide:lTY,useClass:Cyd});Q.addProvider({provide:Jsx,useClass:Mdx});b={};Q.addProvider((b.provide=Sxf,b.useClass=dc$,b[aW]=[BZ],b));_.j7.addLowPriorityJob(function(){E2A()});
b={};Q.addProvider((b.provide=uoM,b.useFactory=function(P){return function(U){var L,M=(L=_.V(U.commandMetadata,_.KD))==null?void 0:L.url;if(!M)throw new _.IO("No URL for PBJ Command",U);M=MTy(M,{pbj:"1"});L=hnA(M,{})||{};L=Object.assign({},L,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.vG("STS").toString()});U=_.lu({command:JSON.stringify(U),session_token:_.vG("XSRF_TOKEN")});return P.fetch(M,{method:"POST",headers:L,body:U})}},b[aW]=[Jsx],b));
b=[];b.push(Q.resolve(qbt));f={};f=(f.client_location=_.eL.getInstance(),f.consistency=_.V4f(),f.entities=Q.resolve(vPp),f.response_received_commands=Q.resolve(lTY),f.store=Q.resolve(_.p66),f.tokens=Q.resolve(qbt),f);_.K("web_service_params_response_processor")&&(Q.addProvider({provide:Xhl,useFactory:function(){var P={};return P.CSI=SVU(),P.ECATCHER=XIe(),P}}),Q.addProvider({provide:dKX,
useClass:S$K}),f.service_params=Q.resolve(dKX));if(_.K("web_shorts_prefetch_service_enabled")){var a=new dxN(Q.resolve(_.La));f.shorts_prefetch=a}f.adblock_detection=Q.resolve(Sxf);Q.addProvider({provide:_.uC,useClass:_.uC});a=Q.resolve(weF);var T=[];_.K("PremiumClientSharedConfig__enable_att_context_processor")&&(Q.addProvider({provide:OqY,useClass:iq$}),T.push(Q.resolve(OqY)));if(_.K("owl_pl_await")){var G={};Q.addProvider((G.provide=YNd,G.useFactory=function(P){return new Zsx(P)},G[aW]=[_.uC],
G));
T.push(Q.resolve(YNd))}F$Y(a,Q.resolve(Jsx),Q.resolve(AsF),f,Q.resolve(_.La),b,T,Q.resolve(j9t),Q.resolve(Dfl));Q.addProvider({provide:_.vY,useValue:_.s4.instance});_.K("start_client_gcf")&&Q.addProvider({provide:Cu,useValue:h2j()});Q.addProvider({provide:$xK,useFactory:function(){return new $xK(_.fJ().resolve(_.uC),_.RR.getInstance())}});
_.y2().parkOrScheduleJob(function(){N9t()},1,"eocs");
b={};Q.addProvider((b.provide=iU,b.useClass=iU,b[aW]=[_.Bu,_.vY],b));Q.addProvider({provide:_.SNO,useFactory:_.gI.getInstance});_.y2().parkOrScheduleJob(function(){_.fJ().resolve(iU).refresh()},0,"eocs");
ZBp(ONF.watchEndpointMap||{},a.reelWatchEndpointMap||{},A.injector.resolve(_.vY));Q.addProvider({provide:tb,useValue:_.qO.instance});_.K("kevlar_signal_collection_killswitch")||(b={},Q.addProvider((b.provide=Wjd,b.useClass=Wjd,b[aW]=[vc,MR],b)),_.y2().parkOrScheduleJob(function(){_.fJ().resolve(Wjd).record()},1,"eocs"));
_.K("web_debug_handler_registration_killswitch")||_.y2().parkOrScheduleJob(function(){MRF("DOWNLOAD_PES",lsF);_.K("offline_client_state_export_ks")||MRF("OFFLINE_CLIENT_STATE",Ut6)},0,"eocs");
_.K("kevlar_prevent_polymer_dynamic_font_load")&&_.y2().parkOrScheduleJob(function(){var P=[_.GH(tdx),_.GH(rsN)];P=_.F(P);for(var U=P.next();!U.done;U=P.next()){U=U.value;var L=document.createElement("link");_.bM(L,U,"stylesheet");document.head.appendChild(L)}},1,"eocs");
b=A.injector.resolve(_.vY);_.V9v.instance=new _.V9v(b);svC(SHx(new JLL(b)));b={};A.injector.addProvider((b.provide=aN,b.useFactory=function(P){(P=P==null?void 0:P.getCurrentPage())?P=P.visibilityObserver:(skN||(skN=CVe()),P=skN);return P},b[aW]=[_.bu(_.F7)],b.skipCache=!0,b));
Q.addProvider({provide:_.zb,useClass:uU});Q.addProvider({provide:na,useClass:$GK});A.injector.addProvider({provide:Exv,useValue:xpL});Q.addProvider({provide:r5Y,useValue:U9J});Q.addProvider({provide:_.Af,useValue:Ivi});A=Q.addProvider;Llq||(Llq=new UNK);A.call(Q,{provide:_.Hu,useValue:Llq});Q.addProvider({provide:_.bc,useValue:_.vG("HTML_DIR")==="rtl"?"rtl":"ltr"});Q.addProvider({provide:xcr,useClass:sVM});Q.addProvider({provide:_.ie,useClass:CP});_.fJ().addProvider({provide:zA1,useValue:_.K("enable_web_delhi_icons")?
D1s.concat(NQM):YX7.concat($1t)});Q.addProvider({provide:_.om,useClass:_.om});Q.addProvider({provide:_.HpM,useValue:new Iin});Q.addProvider({provide:e8L,useClass:eAM});Q.addProvider({provide:Iw,useClass:Iw});Q.addProvider({provide:qR,useClass:qR});A={};Q.addProvider((A.provide=An,A.useClass=An,A[aW]=[_.vY,_.r8],A));Q.addProvider({provide:Za,useClass:Za});Q.addProvider({provide:QCx,useClass:BxF});Q.addProvider({provide:jw,useClass:jw});Q.addProvider({provide:Cov,useValue:Xsx});Q.addProvider({provide:_.mh,
useClass:hAx});_.K("enable_payments_purchase_manager")&&Q.addProvider({provide:HqL,useClass:nPW});Q.addProvider({provide:o8O,useFactory:function(){return function(P){return _.q$q(P)}}});
Q.addProvider({provide:_.IUN,useClass:HFd});A={};Q.addProvider((A.provide=za,A.useClass=za,A[aW]=[_.IUN],A));Q.addProvider({provide:ow,useClass:ow});Q.addProvider({provide:Ddj,useValue:qex});Q.addProvider({provide:dU9,useValue:_.knx});Q.addProvider({provide:CUC,useClass:GnN});Q.addProvider({provide:MFO,useValue:CMO});A={};Q.addProvider((A.provide=lrq,A.useClass=KlM,A[aW]=[MFO],A));A={};Q.addProvider((A.provide=_.Hg,A.useClass=om7,A[aW]=[lrq],A));A={};Q.addProvider((A.provide=_.rI,A.useClass=ta,A[aW]=
[_.u7,_.tX],A));if(_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover"))A={},Q.addProvider((A.provide=h0,A.useClass=h0,A[aW]=[_.vY,Tm],A));if(_.K("web_enable_renderer_logger")){var p=new mNx;pTi(function(){p.abort()});
Q.addProvider({provide:Oj4,useValue:new E1x(p.signal)})}Q.addProvider({provide:iXj,useValue:jwY});A={};Q.addProvider((A.provide=Grr,A.useClass=Fjx,A[aW]=[_.vY],A))}},m1F);var QLM={},bKd=(QLM.initialized={priority:10,callback:function(){if(!Usl){w89();LN9("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.St(_.Ol(LN9,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.K("log_heartbeat_with_lifecycles")){var A={};aS.instance||(aS.instance=new aS);aS.instance.install((A.document_visible={callback:M5f,priority:10},A.document_hidden={callback:M5f,priority:10},A))}else _.bv(document,"visibilitychange",M5f);Usl=!0}(A=_.WR())&&A!=="UNDEFINED_CSN"&&L26(A)}},QLM);var f4q={},a4x=(f4q.initialized={callback:function(A){var Q=_.K6(232091),b=A.injector.resolve(_.gu);_.l$(b,Q);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?DdJ()&&_.i$(b,Q):(A=A.injector.resolve(o8O)("refresh_detector"))&&(A.get("first_tab_load")?_.i$(b,Q):A.set("first_tab_load","1"))}},f4q);var TvO={},duO=(TvO.initialized={priority:10,callback:fTF},TvO);var FTs={},GzK=(FTs.initialized={priority:0,callback:function(){var A=new R_N,Q="other";_.Ke?Q="chrome":_.lT?Q="firefox":_.vr?Q="safari":so&&(Q="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(b){A.increment(_.Oo(),b,Q)}).catch(function(){A.increment(_.Oo(),!1,Q)}):A.increment(_.Oo(),!1,Q)}},FTs);var Bvs={},poN=(Bvs.rendering={priority:8,callback:aTC},Bvs);var PmF={},Xon=(PmF.rendering={priority:10,callback:iiy},PmF.rendered={callback:KVY},PmF),SOq={},UuK=(SOq.rendering={callback:iiy},SOq.rendered={callback:KVY},SOq);var LTn=!1,MY7={},l4x=(MY7.initialized={priority:10,callback:function(){LTn||(L74({didPatch:function(A){A.el&&HZi(A.el,A.props)},
didUnmount:function(A){kJf(A.el)}}),LTn=!0)}},MY7);var KTN=/^\/shorts\/?$/;_.e6("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.K("kevlar_enable_mss")){_.sO6(new iDj);var iKF=!0,JTO,yC;iKF=iKF===void 0?!1:iKF;JTO=JTO===void 0?!1:JTO;yC=yC===void 0?{}:yC;var VYO=yC.cssRowKey||"",OKs=yC.combinedSignature||"";!VYO&&window&&window._F_cssRowKey&&(VYO=window._F_cssRowKey,!OKs&&window._F_combinedSignature&&(OKs=window._F_combinedSignature));if(VYO&&typeof window._F_installCss!=="function")throw Error("ud");var n$7=yC.loaderClass||_.ZQ,Y9=WkF("base-js"),kzM,I4l=ETY("",Y9);kzM=_.k8(I4l);var DZ=new n$7(kzM,VYO,OKs,iKF,JTO),HKM=
yC.useCors||Y9&&Y9.hasAttribute("crossorigin"),CmN=yC.corsMode||Y9&&Y9.getAttribute("crossorigin");HKM&&(DZ.useCors_=HKM);CmN&&(DZ.corsMode_=CmN);yC.urlMaxLength&&(DZ.urlMaxLength=yC.urlMaxLength);yC.fetchPriority&&(DZ.fetchPriority=yC.fetchPriority);var qON=tT();qON.JSC$9995_loader_=DZ;qON.setBatchModeEnabled(!0)}
(function(){var A=document.querySelector("ytd-app");if(!A)throw Error("Ij");A=new Rm({root:A,injector:_.fJ()});A.install(bKd);var Q={};A.install((Q.initialized={priority:10,callback:Kty},Q));_.K("wp_lat_b")&&(Q={},A.install((Q.initialized={priority:10,callback:function(){a$f()}},Q)));
Q={};A.install((Q.rendered={priority:0,callback:Ltb},Q));Q={};A.install((Q.rendered={priority:0,callback:function(){_.j7.addLowPriorityJob(function(){_.mc9>1&&(G$Y(),S9X())},4E4)}},Q));
A.install(fFN);A.install(a4x);A.install(l4x);Ev9();A.install(PMx);A.install(N$N);A.install(QDl);A.install(tWN);A.install(eNs);A.install(Bix);A.install(ATd);_.K("kevlar_enable_mss_lazy_load")&&A.install(duO);A.install(msd);A.install(GzK);if(!_.Ep("IS_SHELL_LOAD")||_.K("kevlar_fetch_initial_data_promise_client")||_.K("sw_nav_preload_pbj")){var b=_.LJ(window.location.href);Q=b&&b==="/watch";b=b&&b.match(KTN);Q?A.install(UuK):b?A.install(poN):A.install(Xon)}else A.install(Y$t);A.install(Tiq);_.K("web_enable_prefetching_videos_on_home")&&
A.install(LyM);_.K("start_client_gcf")&&A.install(Pnr);A.install(IKq);(new g$j).increment("INSTALLED");A.install(SiK);A.install(uct);A.transition("initialized");$t6()})();
_.UY=[[["bmQjNXp0bzJ0djdzdm5qa2k=","a2xjazJ6bGlpdWExdmFsdWUj"],"Q0VNRU5UX0tJTkRfUEFVU0UjYng0M3lodHp0cm03QURfUExB"]];_.SL=["cHU1MGQ2NHFvZGdsb2JhbENhbGxiYWNrcyNueg==","QWJub3JtYWxpdHlEZXRlY3RlZCNianFiZjh0dWV6dWxvbg==","MzZ5b25BZFNraXAjajh2Zjk3Mml0","Y3NyYXdfcGxheWVyX3Jlc3BvbnNlIzhtamVxYmh6YWs=","NnZud3ZmaHlyZW5kZXJpbmdDb250ZW50IzIzNXk="];_.mc="cHU1MGQ2NHFvZGdsb2JhbENhbGxiYWNrcyNueg== QWJub3JtYWxpdHlEZXRlY3RlZCNianFiZjh0dWV6dWxvbg== MzZ5b25BZFNraXAjajh2Zjk3Mml0 Y3NyYXdfcGxheWVyX3Jlc3BvbnNlIzhtamVxYmh6YWs= c19rcyNzZWxucmFjamcyMGl3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcA== bGpnYWJfc2FfZWYjdGl6dWV2djRw NnZud3ZmaHlyZW5kZXJpbmdDb250ZW50IzIzNXk=".split(" ");
_._ModuleManager_initialize=function(A,Q){if(!_.qu){if(!_.oL)return;_.sO6(_.oL())}_.qu.setAllModuleInfoString(A,Q)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye:e/syf/syg:6/syh/h8y2qb:4,f,g,h,i/syi/JzFVk:d,h,i,k/syj:8/xwEKAe:3,9,g,i,m/syk:e/syl:1,b,e,g,k,m/sym:p/nmfa2d:i,o,q/syn:7,p/syo:h,i,q,s/CF909:o,t/Tm0L3c:t/L3n37:f,h,i,o,s/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syj','syi','syf','syc','syb','sy1','syl','sy7','sy6','syn','sym','syh','syg','syk','sye','syo','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.mb=function(A,Q,b,f,a){var T={};Q&&(T[Q]=b);f?T.errorType=f:a&&(T.errorReason=a);_.R4(A,T);_.go()};
_.AD=function(A){var Q=_.y2();return _.vuN(Q,A,1)};
_.gn({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 A=this.query;A&&(this.full||A[0]==="("||(A="("+A+")"),this._mq=window.matchMedia(A),this._add(),this.queryHandler(this._mq))},
queryHandler:function(A){this._setQueryMatches(A.matches)}});var v$K;var E$7;var xuN=function(){};
_.d=xuN.prototype;_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._focusedChanged=function(){};
_.d._createRipple=function(){};
_.d.registered=function(){};
_.d._invalidChanged=function(){};
_.d.hasValidator=function(){};
_.d.validate=function(){};
_.d._getValidity=function(){};
_.d._requiredChanged=function(){};
_.d._valueChanged=function(){};
_.d._checkedChanged=function(){};
_.d._buttonStateChanged=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
xuN=_.gn({is:"tp-yt-paper-radio-button",_template:function(){if(E$7!==void 0)return E$7;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;v$K===void 0&&(v$K=document.createElement("template"));var f=v$K;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return E$7=A},
behaviors:[_.FUp],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(){_.mL(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var A=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),Q=Math.floor(3*A);Q%2!==A%2&&Q++;this.updateStyles({"--paper-radio-button-ink-size":Q+"px"})}})}});var cTq;var z_s;_.gn({_template:function(){if(z_s!==void 0)return z_s;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;cTq===void 0&&(cTq=document.createElement("template"));var f=cTq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return z_s=A},
is:"tp-yt-paper-radio-group",behaviors:[_.Jyx],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(A){var Q=this._valueToItem(A);if(!Q||!Q.hasAttribute("disabled")){if(this.selected){Q=this._valueToItem(this.selected);if(this.selected==A)if(this.allowEmptySelection)A="";else{Q&&(Q.checked=!0);return}Q&&
(Q.checked=!1)}_.$l.select.apply(this,[A]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(A){this._focusPrevious();A.preventDefault();this._activateFocusedItem()},
_onDownKey:function(A){this._focusNext();A.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(A){_.i6L._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(A){_.i6L._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.$l._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.g7._resetTabindices.apply(this,arguments);this.items.forEach(function(A){A.removeAttribute("aria-selected")},this)}});var wox;_.xo("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var QN=function(){return _.q.apply(this,arguments)||this};
_.O(QN,_.q);_.d=QN.prototype;_.d.computeHasPrimaryIcon=function(A){return!(!A.icon&&!A.thumbnail)};
_.d.computeHasSecondary=function(A){return!(!A.secondaryIcon&&!A.secondaryNotificationText)};
_.d.computeHideSecondaryString=function(A){return!_.K("disable_hide_empty_secondary_string")&&!A.secondaryNotificationText};
_.d.computeCompactLinkStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.d.computeHasFitHeight=function(A){return A==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.d.isActiveEndpoint=function(A){return(A=this.get("commandMetadata.webCommandMetadata.url",A))?_.LJ(window.location.href)!=="/account_transfer_channel"&&_.LJ(window.location.href)!=="/gaia_link"&&_.LJ(window.location.href)!=="/channel_switcher"||A!=="/account"?_.LJ(window.location.href)===A:!0:!1};
_.d.onTap=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.X5(this.hostElement,[this.data.serviceEndpoint])};
QN.prototype.onTap=QN.prototype.onTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],QN.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.c("design:type",Boolean)],QN.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.c("design:type",String)],QN.prototype,"compactLinkStyle",void 0);
_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",Object)],QN.prototype,"icon",void 0);_.E([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.c("design:type",Object)],QN.prototype,"secondaryIcon",void 0);_.E([_.C({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],QN.prototype,"hasSecondary",void 0);_.E([_.C({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],QN.prototype,"hideSecondaryString",void 0);
_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QN.prototype,"onTap",null);_.E([_.h({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],QN);
_.W(QN,"ytd-compact-link-renderer",function(){if(wox!==void 0)return wox;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return wox=A},{mode:1});var ult;_.xo("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var bf=function(){var A=_.q.apply(this,arguments)||this;A.role="link";A.tabindex="0";A.actionMap=_.K("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 A};
_.O(bf,_.q);_.d=bf.prototype;_.d.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.jL()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.d.getCurrentTheme=function(){return _.Rz()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.jL()};
_.d.onThemeSelected=function(A,Q){var b=A||Q?A:_.r6(),f=(b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.KZb(_.LJ(window.location.href));_.k_(0,165,A);_.k_(0,174,Q);this.prefs.save();f&&_.pD(this.hostElement,"yt-dark-mode-toggled-action",[b]);_.pD(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.onTap=function(){this.data.serviceEndpoint&&_.X5(this.hostElement,[this.data.serviceEndpoint])};
_.d.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.d.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.d.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
bf.prototype.onTap=bf.prototype.onTap;bf.prototype.dataChanged=bf.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],bf.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Ah),_.c("design:type",Object)],bf.prototype,"paperItemBehaviors",void 0);_.E([_.C(),_.c("design:type",Object)],bf.prototype,"data",void 0);_.E([_.C({value:function(){return _.nD()}}),
_.c("design:type",_.F1)],bf.prototype,"prefs",void 0);_.E([_.C(),_.c("design:type",Object)],bf.prototype,"label",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bf.prototype,"role",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bf.prototype,"tabindex",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bf.prototype,"dataChanged",null);
_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bf.prototype,"onTap",null);_.E([_.h({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],bf);
_.W(bf,"ytd-toggle-theme-compact-link-renderer",function(){if(ult!==void 0)return ult;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ult=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
var yTq,YOO;_.fI=function(A){return!!A.getOptions("captions")};
_.ZKd=function(A){return(A=A.getOption("captions","track"))?!!A.displayName:!1};
_.ap=function(A,Q){_.rL(Q,A,function(){return yTq[Q]},function(b){yTq[Q]=b;
if(!_.K("mweb_player_ve_show_ks")){var f=_.WR(0);f&&b&&_.yI(f,b)}})};
_.TF=function(A){(A=yTq[A])&&_.i$(_.IP(),A)};
yTq={};var DuK;/*

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
*/
_.gn({_template:function(){if(DuK!==void 0)return DuK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;YOO===void 0&&(YOO=document.createElement("template"));var f=YOO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return DuK=A},
is:"tp-yt-paper-checkbox",behaviors:[_.FUp],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.mL(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var A=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),Q="px",b=A.match(/[A-Za-z]+$/);b!==null&&(Q=b[0]);A=parseFloat(A);b=8/3*A;Q==="px"&&(b=Math.floor(b),b%2!==A%2&&b++);this.updateStyles({"--paper-checkbox-ink-size":b+
Q})}})},
_computeCheckboxClass:function(A,Q){var b="";A&&(b+="checked ");Q&&(b+="invalid");return b},
_computeCheckmarkClass:function(A){return A?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.TyL._createRipple.call(this)}});var $uK=new _.fU("radioButtonSurveyOptionRenderer"),Nvr=new _.fU("checkboxSurveyOptionRenderer");var sLn;var mut;var Ak7=0,d0=function(){var A=_.q.call(this)||this;A.selected=!1;A.isOverlay=!1;A.inputId="toggle-option-"+Ak7;Ak7++;return A};
_.O(d0,_.q);d0.prototype.onTap=function(){_.Bn(this.hostElement,"ytd-toggle-option-clicked")};
_.E([_.C(),_.c("design:type",String)],d0.prototype,"label",void 0);_.E([_.C(),_.c("design:type",String)],d0.prototype,"inputId",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],d0.prototype,"selected",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],d0.prototype,"isOverlay",void 0);_.E([_.h({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.c("design:paramtypes",[])],d0);
_.W(d0,"ytd-toggle-option-renderer",function(){if(mut!==void 0)return mut;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return mut=A},{mode:1});var FD=function(){var A=_.q.apply(this,arguments)||this;A.isToggleOption=!1;A.isOverlay=!1;return A};
_.O(FD,_.q);FD.prototype.onTap=function(A){A.preventDefault();this.data&&(A=!this.data.checked,this.set("data.checked",A),_.Bn(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:A,value:this.data.value}))};
_.Qr.Object.defineProperties(FD.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
FD.prototype.onTap=FD.prototype.onTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],FD.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],FD.prototype,"isToggleOption",void 0);_.E([_.C(),_.c("design:type",Object)],FD.prototype,"isOverlay",void 0);_.E([_.H("data.responseText"),_.c("design:type",String),_.c("design:paramtypes",[])],FD.prototype,"label",null);
_.E([_.Kc("ytd-toggle-option-clicked"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],FD.prototype,"onTap",null);_.E([_.h({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],FD);
_.W(FD,"ytd-checkbox-survey-option-renderer",function(){if(sLn!==void 0)return sLn;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return sLn=A},{mode:1});var Q7q;var bzs;var GF=function(){var A=_.q.apply(this,arguments)||this;A.checked=!1;A.isToggleOption=!1;return A};
_.O(GF,_.q);GF.prototype.onTap=function(){this.data&&(this.checked?_.pD(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.pD(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
GF.prototype.onTap=GF.prototype.onTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],GF.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],GF.prototype,"checked",void 0);_.E([_.C(),_.c("design:type",Object)],GF.prototype,"isToggleOption",void 0);_.E([_.Kc("ytd-toggle-option-clicked"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],GF.prototype,"onTap",null);
_.E([_.h({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],GF);
_.W(GF,"ytd-radio-button-survey-option-renderer",function(){if(bzs!==void 0)return bzs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return bzs=A},{mode:1});var BU=function(){var A=_.q.apply(this,arguments)||this;A.disableAnimation=!1;A.isToggleOption=!0;A.followUpSurveyCommand=null;A.selectedRatingEndpoint=null;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.styleOverrideAttribute=!0;A.isDarkMode=!1;A.isSubmitted=!1;A.roundedContainer=!0;A.improveShortsResponseRate=_.K("web_improve_shorts_response_rate");A.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 A};
_.O(BU,_.q);_.d=BU.prototype;
_.d.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"}}}}};
_.d.attached=function(){var A=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(b){var f;if((f=b[0])!=null&&f.isIntersecting){_.n0().reportShown(A.hostElement);var a;(a=A.intersectionObserver)==null||a.unobserve(A.hostElement)}},{rootMargin:"0px",
threshold:.6});var Q;(Q=this.intersectionObserver)==null||Q.observe(this.hostElement)};
_.d.onDarkModeToggledAction=function(A){this.isDarkMode=A};
_.d.dataChanged=function(){var A;if(((A=this.data)==null?void 0:A.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var Q;((Q=this.data)==null?void 0:Q.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var b,f,a,T;this.darkColorPalette=(b=this.data)==null?void 0:(f=b.inlineContent)==null?void 0:(a=f.compactVideoRenderer)==null?void 0:(T=a.thumbnail)==null?
void 0:T.darkColorPalette;var G,p,P,U;this.lightColorPalette=(G=this.data)==null?void 0:(p=G.inlineContent)==null?void 0:(P=p.compactVideoRenderer)==null?void 0:(U=P.thumbnail)==null?void 0:U.lightColorPalette;var L,M;if(((L=this.data)==null?0:(M=L.inlineContent)==null?0:M.compactVideoRenderer)&&this.isShortsStyle){var l,J,n,t;A=_.XS((l=this.data)==null?void 0:(J=l.inlineContent)==null?void 0:(n=J.compactVideoRenderer)==null?void 0:(t=n.thumbnail)==null?void 0:t.thumbnails);_.Uc(this.hostElement,
{"--yt-background-url":"url("+A+")"})}};
_.d.handleRequestCompletion=function(){this.hostElement.hidden&&_.Bn(this.hostElement,"yt-dismissible-item-dismissed")};
_.d.onPopupClosed=function(A){var Q;((Q=A.detail)==null?void 0:Q.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.pD(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.d.handleInlineSurveyRatingSelect=function(A,Q){var b=this;this.selectedRatingEndpoint=A;this.followUpSurveyCommand=Q;this.expanded=!!A;this.getOptionRenderers().forEach(function(f,a){b.notifyPath("followUpSurveyCommand.followUpOptions."+a+".checkboxSurveyOptionRenderer.checked");b.set("followUpSurveyCommand.followUpOptions."+a+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),A=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.pD(this.hostElement,"yt-reel-non-video-content-dismissal-command",[A]))};
_.d.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.pD(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var A,Q=(A=this.data)==null?void 0:A.dismissalEndpoint;Q&&this.ytComponentBehavior.resolveCommand(Q)}};
_.d.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.pD(this.hostElement,"yt-close-popup-action"))};
_.d.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var A=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{A=this.getOptionRenderers().filter(function(f){return f.checked});
if(A.length===0)return;A=A.map(function(f){return f.responseEndpoint})}var Q=[];
A.forEach(function(f,a){a!==0&&(f=_.V(f,_.WZ))&&f.feedbackToken&&Q.push(f.feedbackToken)});
if(A=A[0]){var b={};Q.length>0&&(b.extra_feedback_tokens=Q);this.ytComponentBehavior.resolveCommand(A,{form:b})}}};
_.d.getOptionRenderers=function(){var A=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(Q){A.isSingleSelect=!!_.V(Q,$uK);return A.isSingleSelect?_.V(Q,$uK):_.V(Q,Nvr)}):[]};
_.d.handleInlineSurveyOptionSelect=function(A){A=this.optionSelector.indexOf(A);A!==-1&&this.optionSelector.selectIndex(A)};
_.d.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.d.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
_.d.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A=A&&this.maybeGetBackgroundColor(A);this.dismissibleEl.style.backgroundColor=!A||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.zx(A)};
_.Qr.Object.defineProperties(BU.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
BU.prototype.colorPaletteChanged=BU.prototype.colorPaletteChanged;BU.prototype.onPopupClosed=BU.prototype.onPopupClosed;BU.prototype.handleRequestCompletion=BU.prototype.handleRequestCompletion;BU.prototype.dataChanged=BU.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],BU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],BU.prototype,"actionHandlerBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],BU.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],BU.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.V1("#follow-up-survey-options"),_.c("design:type",Object)],BU.prototype,"optionSelector",void 0);_.E([_.C(),_.c("design:type",Object)],BU.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],BU.prototype,"disableAnimation",void 0);_.E([_.C(),_.c("design:type",Object)],BU.prototype,"isToggleOption",void 0);_.E([_.C(),_.c("design:type",Object)],BU.prototype,"followUpSurveyCommand",void 0);_.E([_.C(),_.c("design:type",Object)],BU.prototype,"selectedRatingEndpoint",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],BU.prototype,"expanded",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],BU.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],BU.prototype,"isShortsStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],BU.prototype,"styleOverrideAttribute",void 0);_.E([_.C(),_.c("design:type",Boolean)],BU.prototype,"isSingleSelect",void 0);_.E([_.C(),_.c("design:type",Object)],BU.prototype,"isDarkMode",void 0);
_.E([_.C(),_.c("design:type",Object)],BU.prototype,"lightColorPalette",void 0);_.E([_.C(),_.c("design:type",Object)],BU.prototype,"darkColorPalette",void 0);_.E([_.H("selectedRatingEndpoint","isShortsStyle"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],BU.prototype,"isOptionSelected",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],BU.prototype,"roundedContainer",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],BU.prototype,"improveShortsResponseRate",void 0);_.E([_.V1("#dismissible"),_.c("design:type",HTMLElement)],BU.prototype,"dismissibleEl",void 0);_.E([_.V1("#dismiss-button yt-icon-button"),_.c("design:type",HTMLElement)],BU.prototype,"dismissButtonEl",void 0);_.E([_.V1("#inline-survey-header yt-icon-button"),_.c("design:type",HTMLElement)],BU.prototype,"inlineHeaderDismissButtonEl",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],BU.prototype,"dataChanged",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],BU.prototype,"handleRequestCompletion",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],BU.prototype,"onPopupClosed",null);
_.E([_.iN("darkColorPalette","lightColorPalette","isDarkMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],BU.prototype,"colorPaletteChanged",null);_.E([_.h({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],BU);
_.W(BU,"ytd-inline-survey-renderer",function(){if(Q7q!==void 0)return Q7q;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Q7q=A},{mode:1});var fDN=["en-CA","en","es-MX","fr-CA"];_.aDF=_.aP(function(A){var Q=_.be(A,{isOverlay:!1,isModern:!1}),b=Q.captionIconType,f=Q.onClick;A=Q.ariaLabel;var a=Q.ariaPressed,T=Q.isOverlay,G=Q.isModern;Q=_.st("button",function(U){_.ap(U,127299)});
var p=_.IY(function(U){_.TF(127299);f==null||f(U);return!1}),P={};
return _.X("ytm-closed-captioning-button",{class:_.O4("ytmClosedCaptioningButtonHost",(P.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return b()===-1&&T()},P.ytmClosedCaptioningButtonIconDisabled=function(){return b()===-1&&!T()},P))},_.X("button",{el:Q,
class:"ytmClosedCaptioningButtonButton",title:A,"aria-label":A,"aria-pressed":a,"on:click":p},_.X(_.oY,{icon:function(){var U="",L=G();var M=L?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";L=L?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var l=_.nD().get("hl");M=!l||fDN.includes(l)?M:L;L=b();switch(L){case -1:case 0:U=M;break;case 1:U=M+"_FILLED";break;default:_.x1(L)}return U}})))},"nf");
_.aDF.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.lW=function(A){return function(Q,b){var f=A||b.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(Q,b,{get:function(){var a;return this.$?this.$[f]:(a=_.Ju(this))==null?void 0:a.querySelector("#"+f)},
enumerable:!0,configurable:!0})}};_.Kj=function(A){A=A===void 0?!1:A;_.k$.call(this);this.pubSub_=new _.KJ(A);_.SY(this,this.pubSub_)};
_.BD(_.Kj,_.k$);_.Kj.prototype.subscribe=function(A,Q,b){return this.isDisposed()?0:this.pubSub_.subscribe(A,Q,b)};
_.Kj.prototype.unsubscribe=function(A,Q,b){return this.isDisposed()?!1:this.pubSub_.unsubscribe(A,Q,b)};
_.Kj.prototype.unsubscribeByKey=function(A){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(A)};
_.Kj.prototype.publish=function(A,Q){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var fsN=function(){_.mb("ypcRedeemFlowStarted")},S5=function(A){_.mb("ypcRedeemFlowFailed",void 0,void 0,void 0,A)},asd=function(A,Q,b){Q&&b&&(A.videos.forEach(function(f){f.videoId===Q&&(f.itemId=b)}),A.recommendedVideos.forEach(function(f){f.videoId===Q&&(f.itemId=b)}))};var TBO;var dtr;/*

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
*/
_.gn({_template:function(){if(dtr!==void 0)return dtr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;TBO===void 0&&(TBO=document.createElement("template"));var f=TBO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return dtr=A},
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(A,Q){var b=this._resolveSrc(A);b!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",A===""||Q?this._setLoading(!1):(this._resolvedSrc=b,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 A=this.$.sizedImgDiv.style,Q=this.$.placeholder.style;A.backgroundSize=Q.backgroundSize=this.sizing;A.backgroundPosition=Q.backgroundPosition=this.sizing?this.position:"";A.backgroundRepeat=Q.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(A){A=_.Bt(A,this.$.baseURIAnchor.href);A.length>=2&&A[0]==="/"&&A[1]!=="/"&&(A=(location.origin||location.protocol+"//"+location.host)+A);return A}});var FCN;var Gq7;_.gn({_template:function(){if(Gq7!==void 0)return Gq7;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;FCN===void 0&&(FCN=document.createElement("template"));var f=FCN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Gq7=A},
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(A){return A?"false":"true"},
_headingChanged:function(A){var Q=this.getAttribute("heading"),b=this.getAttribute("aria-label");typeof b==="string"&&b!==Q||this.setAttribute("aria-label",A)},
_computeHeadingClass:function(A){return A?" over-image":""},
_computeAnimated:function(A){return A}});var BBs=new _.fU("addRendererToItemSectionAction");var pQx;var UV=function(){return _.q.apply(this,arguments)||this};
_.O(UV,_.q);UV.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],UV.prototype,"rendererBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],UV.prototype,"dismissibleItemBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],UV.prototype,"rendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UV.prototype,"data",void 0);_.E([_.h({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],UV);
_.W(UV,"ytd-comment-history-entry-renderer",function(){if(pQx!==void 0)return pQx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return pQx=A},{mode:1});var PDN;_.xo("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.xo("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var LZ=function(){return _.q.apply(this,arguments)||this};
_.O(LZ,_.q);_.d=LZ.prototype;_.d.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.d.onTap=function(){this.data.recordClickEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var A=this.data.navigationEndpoint;A&&_.V(A,_.Eq)&&_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})};
_.d.readChanged=function(){var A;_.Pj(this.hostElement,"unread",!((A=this.data)==null?0:A.read))};
_.d.dataChanged=function(){this.data&&_.Pj(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.d.computeThumbnailSize=function(){var A;return((A=this.data)==null?0:A.highPriorityNotification)?32:48};
_.d.getEndpointURL=function(A){return A&&!_.V(A,_.Eq)?this.componentBehavior.computeHref_(A):null};
_.d.getEndpointData=function(A){return A&&!_.V(A,_.Eq)?A:null};
LZ.prototype.computeThumbnailSize=LZ.prototype.computeThumbnailSize;LZ.prototype.dataChanged=LZ.prototype.dataChanged;LZ.prototype.readChanged=LZ.prototype.readChanged;LZ.prototype.onKeyUp=LZ.prototype.onKeyUp;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],LZ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],LZ.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],LZ.prototype,"data",void 0);_.E([_.C({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.c("design:type",Number)],LZ.prototype,"thumbnailSize",void 0);_.E([_.Kc("keyup"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent]),_.c("design:returntype")],LZ.prototype,"onKeyUp",null);
_.E([_.iN("data.read"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LZ.prototype,"readChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LZ.prototype,"dataChanged",null);_.E([_.iN("data.highPriorityNotification"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LZ.prototype,"computeThumbnailSize",null);
_.E([_.h({is:"ytd-notification-renderer",disableElementRegistration:!0})],LZ);
_.W(LZ,"ytd-notification-renderer",function(){if(PDN!==void 0)return PDN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return PDN=A},{mode:1});var XQO;var MZ=function(){return _.q.apply(this,arguments)||this};
_.O(MZ,_.q);MZ.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"}}}};
MZ.prototype.computeActionButtonClass=function(A){return!A.actionButtons||A.actionButtons.length<=1?"single-button":A.description?"vertical-buttons":"horizontal-buttons"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],MZ.prototype,"data",void 0);_.E([_.h({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],MZ);
_.W(MZ,"ytd-playlist-show-metadata-renderer",function(){if(XQO!==void 0)return XQO;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return XQO=A},{mode:1});var SQ7;_.xo("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var lj=function(){return _.q.apply(this,arguments)||this};
_.O(lj,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lj.prototype,"data",void 0);_.E([_.h({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],lj);
_.W(lj,"ytd-purchase-item-renderer",function(){if(SQ7!==void 0)return SQ7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return SQ7=A},{mode:1});var Ut7;var LCN={};LCN.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(A){if(A)return A.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(A){if(A==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.xo("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var KZ=function(){return _.q.apply(this,arguments)||this};
_.O(KZ,_.q);KZ.prototype.onYtNavigate=function(A){var Q=this.openPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);Q&&(A.stopPropagation(),this.openPopupBehavior.openPopup(Q))};
KZ.prototype.onYtNavigate=KZ.prototype.onYtNavigate;_.E([_.I(LCN.YtSimpleTextSectionBehavior),_.c("design:type",Object)],KZ.prototype,"ytSimpleTextSectionBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],KZ.prototype,"openPopupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],KZ.prototype,"data",void 0);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],KZ.prototype,"onYtNavigate",null);_.E([_.h({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],KZ);
_.W(KZ,"ytd-simple-text-section-renderer",function(){if(Ut7!==void 0)return Ut7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Ut7=A},{mode:1});var Mg7;_.xo("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var ij=function(){return _.q.apply(this,arguments)||this};
_.O(ij,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ij.prototype,"data",void 0);_.E([_.h({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],ij);
_.W(ij,"ytd-unlimited-page-feature-info-renderer",function(){if(Mg7!==void 0)return Mg7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Mg7=A},{mode:1});var lss;var KCr;var JI=function(){return _.q.apply(this,arguments)||this};
_.O(JI,_.q);JI.prototype.dataChanged=function(){if(this.data){var A=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);A&&(A=_.Pz(A,screen.width),this.hostElement.style.backgroundImage="url("+A+")")}};
JI.prototype.dataChanged=JI.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JI.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JI.prototype,"dataChanged",null);_.E([_.h({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],JI);
_.W(JI,"ytd-post-redemption-section-renderer",function(){if(KCr!==void 0)return KCr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return KCr=A},{mode:1});var ivr;var VQ=function(){return _.q.apply(this,arguments)||this};
_.O(VQ,_.q);VQ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],VQ.prototype,"data",void 0);_.E([_.h({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],VQ);
_.W(VQ,"ytd-ypc-post-redemption-renderer",function(){if(ivr!==void 0)return ivr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ivr=A},{mode:1});_.xo("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var OV=function(){var A=_.q.apply(this,arguments)||this;A.MIN_CODE_LENGTH=12;A.MAX_CODE_LENGTH=24;return A};
_.O(OV,_.q);_.d=OV.prototype;_.d.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.d.created=function(){this.riskService=new _.WsJ;this.loadPaymentThenable=_.EFX(_.vG("YPC_MB_URL"))};
_.d.ready=function(){var A=this;this.code.addEventListener("keypress",function(Q){A.onCodeInputKeypress(Q)})};
_.d.dataChanged=function(){var A=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(Q){Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,b.type==="attributes"&&b.attributeName==="dark"&&A.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.d.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var A=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+A+")")}};
_.d.computeRedeemButton=function(A){(A=this.get("redeemButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.d.onRedeemButtonTap=function(A){A.stopPropagation();fsN();this.redeemCode()};
_.d.redeemCode=function(){var A=this;this.isLoading=!0;var Q=this.riskService.init();_.qY([Q,this.loadPaymentThenable]).then(function(){var b=A.data.redeemButton.buttonRenderer.serviceEndpoint,f=_.vF6(),a=payments.business.integration.ClientTokenFactory.createClientToken(_.V(b,_.vZN).countryCode,f);f={c:A.code.value.trim(),rd:window.btoa(f),ctk:a};b&&_.fJ().resolve(_.de).resolveCommand(b,{form:Object.assign({},f,{element:A.hostElement})})},function(){A.showGenericError();
S5("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.xQ(Error("io"))})};
_.d.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isLoading=!1;var Q,b;this.errorMessage=(Q=A.detail)==null?void 0:(b=Q.data)==null?void 0:b.errorMessage;var f,a;this.postRedemptionRenderer=(f=A.detail)==null?void 0:(a=f.data)==null?void 0:a.renderer;var T,G;if(A=(T=A.detail)==null?void 0:(G=T.data)==null?void 0:G.redirectEndpoint)this.isLoading=!0,_.Bn(this.hostElement,"yt-navigate",{endpoint:A});this.errorMessage?S5("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
A)&&_.mb("ypcRedeemFlowSucceeded")};
_.d.onYtServiceRequestError=function(A){A.stopPropagation();this.isLoading=!1;if(A=this.get("detail.error.message",A))this.errorMessage=_.sr(A);S5("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.d.onInvokeInstrumentManagerActionCompleted=function(A){A.stopPropagation();this.redeemCode()};
_.d.onInvokeInstrumentManagerActionError=function(A){A.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",A)){case "instrumentManagerLoadError":this.showGenericError();S5("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();S5("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.mb("ypcRedeemFlowCancelled")}};
_.d.onInput=function(){var A=this;_.Yl(this,"onInput",function(){var Q=A.code.value.trim();A.redeemButtonDisabled=Q.length<A.MIN_CODE_LENGTH||Q.length>A.MAX_CODE_LENGTH},200)};
_.d.onCodeInputKeypress=function(A){A.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(fsN(),this.redeemCode())};
_.d.computeImageUrl=function(A){return A?_.Pz(A.thumbnails,600):null};
_.d.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
OV.prototype.onInvokeInstrumentManagerActionError=OV.prototype.onInvokeInstrumentManagerActionError;OV.prototype.onInvokeInstrumentManagerActionCompleted=OV.prototype.onInvokeInstrumentManagerActionCompleted;OV.prototype.onYtServiceRequestError=OV.prototype.onYtServiceRequestError;OV.prototype.onYtServiceRequestCompleted=OV.prototype.onYtServiceRequestCompleted;OV.prototype.dataChanged=OV.prototype.dataChanged;
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],OV.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],OV.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Boolean)],OV.prototype,"redeemButtonDisabled",void 0);
_.E([_.C(),_.c("design:type",Object)],OV.prototype,"errorMessage",void 0);_.E([_.C(),_.c("design:type",Object)],OV.prototype,"postRedemptionRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],OV.prototype,"observer",void 0);_.E([_.V1("#code"),_.c("design:type",HTMLInputElement)],OV.prototype,"code",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OV.prototype,"dataChanged",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],OV.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],OV.prototype,"onYtServiceRequestError",null);
_.E([_.Kc("yt-invoke-instrument-manager-action-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],OV.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.E([_.Kc("yt-invoke-instrument-manager-action-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],OV.prototype,"onInvokeInstrumentManagerActionError",null);_.E([_.h({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],OV);
_.W(OV,"ytd-redeem-code-renderer",function(){if(lss!==void 0)return lss;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return lss=A},{mode:1});var JmO;_.xo("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var nZ=function(){var A=_.q.apply(this,arguments)||this;A.businessEmailDisplayState="HIDE_SECTION";return A};
_.O(nZ,_.q);_.d=nZ.prototype;_.d.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}}}}}};
_.d.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"};
_.d.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.d.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.uh(_.eey),this.businessEmailDisplayState="CAPTCHA"))};
_.d.onYtServiceRequestCompleted=function(A){var Q;if((Q=A.detail.data)==null?0:Q.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var b;if((b=A.detail.data)==null?0:b.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.d.computeEmailHref=function(A){return"mailto:"+A};
_.d.computeSafeUrl=function(A){if(A)return _.hs(A)};
_.d.onBusinessEmailCaptchaSubmit=function(){var A;(A=this.data)!=null&&A.onBusinessEmailRevealClickCommand&&(A=this.JSC$21524_captchaTextarea.value)&&(A={recaptcha_response_token:A,channel_id:this.data.channelId},_.fJ().resolve(_.de).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},A,{element:this.hostElement})}))};
_.d.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Qr.Object.defineProperties(nZ.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 A,Q;return!((A=this.data)==null||!A.primaryLinks)&&!((Q=this.data)==null?0:Q.links)&&this.data.primaryLinks.every(function(b){return b.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.primaryLinks)&&!((Q=this.data)==null?0:Q.links)&&!this.shouldShowNewLinks}}});
nZ.prototype.onYtServiceRequestCompleted=nZ.prototype.onYtServiceRequestCompleted;nZ.prototype.dataChanged=nZ.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],nZ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.V1("#g-recaptcha-response"),_.c("design:type",HTMLTextAreaElement)],nZ.prototype,"JSC$21524_captchaTextarea",void 0);_.E([_.C(),_.c("design:type",Object)],nZ.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],nZ.prototype,"businessEmailDisplayState",void 0);_.E([_.C(),_.c("design:type",String)],nZ.prototype,"businessEmail",void 0);_.E([_.C(),_.c("design:type",String)],nZ.prototype,"businessEmailErrorMessage",void 0);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nZ.prototype,"hideDetailsSection",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nZ.prototype,"dataChanged",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nZ.prototype,"shouldShowNewLinks",null);_.E([_.H("data","shouldShowLinks"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nZ.prototype,"shouldShowLegacyLinks",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],nZ.prototype,"onYtServiceRequestCompleted",null);_.E([_.h({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],nZ);
_.W(nZ,"ytd-channel-about-metadata-renderer",function(){if(JmO!==void 0)return JmO;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return JmO=A},{mode:1});var VgN;_.xo("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var kv=function(){return _.q.apply(this,arguments)||this};
_.O(kv,_.q);kv.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]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kv.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],kv.prototype,"lockupContainerType",void 0);_.E([_.C(),_.c("design:type",String)],kv.prototype,"thumbnailFixedWidth",void 0);
_.E([_.h({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],kv);
_.W(kv,"ytd-channel-featured-content-renderer",function(){if(VgN!==void 0)return VgN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return VgN=A},{mode:1});var Ovx;_.xo("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var IQ=function(){var A=_.q.apply(this,arguments)||this;A.roundContainer=!0;A.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return A};
_.O(IQ,_.q);_.d=IQ.prototype;_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d.dataChanged=function(){this.imageWidth=this.imageHeight=24;var A=this.data;A.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!A.style&&A.image&&A.image.thumbnails.length&&(A=A.image.thumbnails[0],this.imageWidth=A.width||0,this.imageHeight=A.height||0)};
_.d.computeSource=function(A){return A.secondarySource?_.mO(A.secondarySource):_.mO(A.source)};
_.d.computeClarifyStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.d.isLargeStyle=function(A){return A==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.d.computeBackgroundStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.d.computeHasActionButton=function(A){return!!A.actionButton};
_.d.computeHasBottomSection=function(A){return!!A.ctaHasBottomSection};
_.d.computeIsSourceMissing=function(A){return A.ctaHasBottomSection===!1?!0:A&&this.computeSource(A)?!1:!0};
_.d.computeSecondaryEndpoint=function(A){return A.secondaryEndpoint||A.endpoint};
IQ.prototype.dataChanged=IQ.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],IQ.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],IQ.prototype,"imageWidth",void 0);_.E([_.C(),_.c("design:type",Number)],IQ.prototype,"imageHeight",void 0);
_.E([_.C({computed:"computeSecondaryEndpoint(data)"}),_.c("design:type",Object)],IQ.prototype,"secondaryEndpoint",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.c("design:type",Boolean)],IQ.prototype,"hasActionButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.c("design:type",Boolean)],IQ.prototype,"hasBottomSection",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.c("design:type",Boolean)],IQ.prototype,"missingSource",void 0);_.E([_.C({computed:"computeIcon_(data.icon)"}),_.c("design:type",String)],IQ.prototype,"icon",void 0);_.E([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.c("design:type",String)],IQ.prototype,"secondaryIcon",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.c("design:type",String)],IQ.prototype,"clarifyStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.c("design:type",String)],IQ.prototype,"backgroundStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],IQ.prototype,"roundContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],IQ.prototype,"amsterdamEnabled",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],IQ.prototype,"dataChanged",null);
_.E([_.h({is:"ytd-clarification-renderer",disableElementRegistration:!0})],IQ);
_.W(IQ,"ytd-clarification-renderer",function(){if(Ovx!==void 0)return Ovx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Ovx=A},{mode:1});var nhF;var kq7;var HI=function(){var A=_.q.apply(this,arguments)||this;A.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return A};
_.O(HI,_.q);_.d=HI.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.d.computeIcon=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.d.computeUseContacts=function(A){return!!A.contacts&&A.contacts.length>0};
_.d.computePhoneContact=function(A){var Q,b;return(Q=A.contacts)==null?void 0:(b=Q.find(function(f){var a;return(f==null?void 0:(a=f.icon)==null?void 0:a.iconType)==="PHONE"}))==null?void 0:b.actionText};
_.d.computeSmsContact=function(A){var Q,b;return(Q=A.contacts)==null?void 0:(b=Q.find(function(f){var a;return(f==null?void 0:(a=f.icon)==null?void 0:a.iconType)==="SMS"}))==null?void 0:b.actionText};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],HI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],HI.prototype,"amsterdamEnabled",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.c("design:type",Boolean)],HI.prototype,"useContacts",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.c("design:type",String)],HI.prototype,"phoneContact",void 0);_.E([_.h({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],HI);
_.W(HI,"ytd-single-action-emergency-support-renderer",function(){if(kq7!==void 0)return kq7;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return kq7=A},{mode:1});_.xo("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var CZ=function(){var A=_.q.apply(this,arguments)||this;A.roundedContainer=!0;A.amsterdamEnabled=_.K("enable_desktop_amsterdam_info_panels");return A};
_.O(CZ,_.q);CZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],CZ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],CZ.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],CZ.prototype,"amsterdamEnabled",void 0);
_.E([_.h({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],CZ);
_.W(CZ,"ytd-emergency-onebox-renderer",function(){if(nhF!==void 0)return nhF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return nhF=A},{mode:1});var Isx;_.xo("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var qZ=function(){return _.q.apply(this,arguments)||this};
_.O(qZ,_.q);qZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qZ.prototype,"data",void 0);_.E([_.h({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],qZ);
_.W(qZ,"ytd-exploratory-results-renderer",function(){if(Isx!==void 0)return Isx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Isx=A},{mode:1});var Hvr;_.xo("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var oQ=function(){var A=_.q.apply(this,arguments)||this;A.messageData=null;return A};
_.O(oQ,_.q);_.d=oQ.prototype;_.d.onServiceRequestCompleted=function(A,Q){A=Q.actions||[];Q=0;for(var b=A.length;Q<b;Q++){var f=A[Q],a=void 0,T=void 0;if((a=_.V(f,_.q8))==null?0:(T=a.item)==null?0:T.messageRenderer)this.messageData=_.V(f,_.q8).item.messageRenderer}};
_.d.dataChanged=function(){var A=this.data;this.hostElement.hidden=!1;_.Pj(this.hostElement,"is-channel",A&&!A.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.d.computeThumbnailWidth=function(A){return A?126:56};
_.d.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.d.onSubmitTap=function(){var A=this.data,Q=this.selectedResponseIndex;A!==void 0&&Q!==void 0&&(A=A.responses[Q],A.responseData&&_.fJ().resolve(_.de).resolveCommand(A.responseData,{form:{element:this.hostElement}}))};
_.d.onDismissTap=function(){this.hostElement.hidden=!0;var A=this.data;A!==void 0&&A.dismissalEndpoint&&_.fJ().resolve(_.de).resolveCommand(A.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
oQ.prototype.onSelectedResponseIndexChange=oQ.prototype.onSelectedResponseIndexChange;oQ.prototype.dataChanged=oQ.prototype.dataChanged;oQ.prototype.onServiceRequestCompleted=oQ.prototype.onServiceRequestCompleted;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],oQ.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],oQ.prototype,"messageData",void 0);
_.E([_.C(),_.c("design:type",Number)],oQ.prototype,"selectedResponseIndex",void 0);_.E([_.V1("#submit-button"),_.c("design:type",HTMLButtonElement)],oQ.prototype,"submitButton",void 0);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],oQ.prototype,"onServiceRequestCompleted",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oQ.prototype,"dataChanged",null);
_.E([_.iN("selectedResponseIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oQ.prototype,"onSelectedResponseIndexChange",null);_.E([_.h({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],oQ);
_.W(oQ,"ytd-feedback-elicitation-single-question-renderer",function(){if(Hvr!==void 0)return Hvr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Hvr=A},{mode:1});var CDx;var tI=function(){return _.q.apply(this,arguments)||this};
_.O(tI,_.q);tI.prototype.computeThumbnailWidth=function(A){return A?602:428};
tI.prototype.updateWideFromBinding=function(A){this.wide=A.detail.value};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tI.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],tI.prototype,"wide",void 0);_.E([_.h({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],tI);
_.W(tI,"ytd-newspaper-hero-video-renderer",function(){if(CDx!==void 0)return CDx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return CDx=A},{mode:1});var qQx;var rR=function(){return _.q.apply(this,arguments)||this};
_.O(rR,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rR.prototype,"rendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rR.prototype,"data",void 0);_.E([_.h({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],rR);
_.W(rR,"ytd-newspaper-mini-video-renderer",function(){if(qQx!==void 0)return qQx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return qQx=A},{mode:1});var ohn;_.xo("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var j5=function(){return _.q.apply(this,arguments)||this};
_.O(j5,_.q);j5.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],j5.prototype,"data",void 0);_.E([_.h({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],j5);
_.W(j5,"ytd-newspaper-renderer",function(){if(ohn!==void 0)return ohn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ohn=A},{mode:1});var tgK;_.xo("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var RQ=function(){var A=_.q.apply(this,arguments)||this;A.isSegment=!1;A.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};A.nextContinuation={continuationType:"playlistVideoListContinuation"};return A};
_.O(RQ,_.q);_.d=RQ.prototype;_.d.attached=function(){_.fJ();var A;(A=_.fJ().resolve(_.bu(_.XQ)))!=null&&(A.playlistVideoListElement=this.hostElement)};
_.d.detached=function(){var A;(A=_.fJ().resolve(_.bu(_.XQ)))!=null&&(A.playlistVideoListElement=void 0);A=_.fJ().resolve(_.bu(_.Ll));_.K("web_enable_voting_animation")&&A&&(A.parentElem=void 0,A.videos=[],A.continuationsPresent=!1,A.showRefreshPill=!1)};
_.d.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"}}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d.dataChanged=function(){var A=_.fJ().resolve(_.bu(_.Ll));if(_.K("web_enable_voting_animation")&&this.data&&A){var Q=_.Bj(this.hostElement).querySelector("#contents");Q&&(A.parentElem=Q);A.addVideos(this.data.contents)}_.VRp(this.ytReorderableBehavior)};
_.d.onRendererstamperFinished=function(){this.canReorder&&_.OP1(this.ytReorderableBehavior,_.Bj(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.d.onPlaylistReloading=function(){this.isReloading=!0};
_.d.onUpdateSetVideoId=function(A){if(A.detail&&this.data&&this.data.contents){var Q=A.detail;A=this.data.contents.findIndex(function(a){var T;return((T=a.playlistVideoRenderer)==null?void 0:T.videoId)===Q.videoId});
if(!(A<0)&&Q.setVideoId&&(this.set("data.contents."+A+".playlistVideoRenderer.setVideoId",Q.setVideoId),_.K("web_enable_voting_animation"))){var b;if(A=_.V((b=this.data.contents[A].playlistVideoRenderer)==null?void 0:b.engagementBar,_.dhe)){var f;(f=A.actions)==null||f.forEach(function(a){if(a=_.V(a,_.Fsi))a.itemId=Q.setVideoId})}(b=_.fJ().resolve(_.bu(_.Ll)))&&asd(b,Q.videoId,Q.setVideoId)}}};
_.d.computeContentsClass=function(A){return A?"reloading":""};
_.d.computeIsSortable=function(A,Q){return A&&Q>0&&!this.isSegment&&!_.K("shorts_in_playlists_web")};
_.d.computeIsEditable=function(A){return A};
_.d.computeCanReorder=function(A){return A};
_.d.handlePlaylistRemoveVideosAction=function(A){if(this.get("playlistRemoveVideosAction.setVideoIds",A)&&this.data&&this.data.contents){A=_.V(A,_.xYr).setVideoIds;for(var Q=this.data.contents.length-1;Q>=0;){var b=this.data.contents[Q].playlistVideoRenderer;b&&b.setVideoId&&A.includes(b.setVideoId)&&this.splice("data.contents",Q,1);Q--}_.pD(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.d.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".playlistVideoRenderer.index",_.sr(String(A+1)))};
_.d.handleDrop=function(A){A=A.currDragItem;var Q=_.eA(A.parentNode.childNodes,A),b=this.data.contents.splice(Number(_.mO(A.data.index))-1,1)[0];this.data.contents.splice(Q,0,b);Q=Q?this.get("contents."+(Q-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();A=this.buildReorderServiceEndpoint(A.data.setVideoId,Q);this.ytComponentBehavior.resolveCommand(A)};
_.d.buildReorderServiceEndpoint=function(A,Q){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",A),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",Q),this.data.onReorderEndpoint):null};
_.d.handleUpdatePlaylistAction=function(A){var Q;(A=_.V((Q=_.V(A,_.c1y))==null?void 0:Q.updatedRenderer,_.pVN))&&this.canReorder!==A.canReorder&&this.set("data.canReorder",A.canReorder);A&&A.contents&&(this.set("data.contents",A.contents),this.isReloading=!1);A&&A.continuations&&this.set("data.continuations",A.continuations)};
_.d.handleAddRendererToItemSectionAction=function(A){var Q,b=(Q=_.V(A,BBs))==null?void 0:Q.renderer,f;b&&((f=_.V(A,BBs))==null?void 0:f.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,b),A=_.fJ().resolve(_.bu(_.Ll)),_.K("web_enable_voting_animation")&&A&&(b&&(Q=_.TpX(b))&&A.recommendedVideos.push({itemId:Q,videoId:_.GR9(b),voteCount:_.BpF(b),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.d.isVotingEnabledOnPlaylist=function(A){if(!A)return!1;A=_.F(A);for(A=A.next();!A.done;A=A.next()){var Q=void 0;return!!_.V((Q=A.value.playlistVideoRenderer)==null?void 0:Q.engagementBar,_.dhe)}return!1};
_.d.onAppendContinuationItemsActionFinished=function(){var A;this.isVotingEnabledOnPlaylist((A=this.data)==null?void 0:A.contents)&&(this.updateIndices(),A=_.fJ().resolve(_.bu(_.Ll)),_.K("web_enable_voting_animation")&&A&&this.data&&A.addVideos(this.data.contents))};
_.d.updateVideoData=function(A){if(A.detail&&this.data&&this.data.contents){var Q=A.detail;A=Q.toIdx;var b=Q.itemId,f=Q.newVoteCount,a=Q.voteStatus;Q=Q.hideItem;var T,G,p=(T=this.data)==null?void 0:(G=T.contents)==null?void 0:G.findIndex(function(M){return _.TpX(M)===b});
if(!(p<0)){T=this.data.contents[p];var P;if((P=T.playlistVideoRenderer)==null?0:P.voteCount)T.playlistVideoRenderer.voteCount=f;var U;if(P=_.V((U=T.playlistVideoRenderer)==null?void 0:U.engagementBar,_.dhe)){var L;(L=P.actions)==null||L.forEach(function(M){(M=_.V(M,_.Fsi))&&M.initialState&&(M.initialState.votes=f,M.initialState.status=a)})}this.data.contents.splice(p,1);
Q||this.data.contents.splice(A,0,T);this.updateIndices()}}};
RQ.prototype.updateVideoData=RQ.prototype.updateVideoData;RQ.prototype.onAppendContinuationItemsActionFinished=RQ.prototype.onAppendContinuationItemsActionFinished;RQ.prototype.onUpdateSetVideoId=RQ.prototype.onUpdateSetVideoId;RQ.prototype.onPlaylistReloading=RQ.prototype.onPlaylistReloading;RQ.prototype.onRendererstamperFinished=RQ.prototype.onRendererstamperFinished;RQ.prototype.dataChanged=RQ.prototype.dataChanged;
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],RQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.mG.YtNextContinuationBehavior),_.c("design:type",Object)],RQ.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.I(_.n9L),_.c("design:type",Object)],RQ.prototype,"ytReorderableBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],RQ.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],RQ.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],RQ.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],RQ.prototype,"isReloading",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],RQ.prototype,"isSegment",void 0);_.E([_.C({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.c("design:type",Boolean)],RQ.prototype,"isSortable",void 0);_.E([_.C({computed:"computeIsEditable(data.isEditable)"}),_.c("design:type",Boolean)],RQ.prototype,"isEditable",void 0);_.E([_.C({computed:"computeCanReorder(data.canReorder)"}),_.c("design:type",Boolean)],RQ.prototype,"canReorder",void 0);
_.E([_.C({value:101}),_.c("design:type",Number)],RQ.prototype,"scrollMargin",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],RQ.prototype,"dataChanged",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],RQ.prototype,"onRendererstamperFinished",null);
_.E([_.Kc("yt-playlist-reloading"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],RQ.prototype,"onPlaylistReloading",null);_.E([_.Kc("yt-update-set-video-id"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RQ.prototype,"onUpdateSetVideoId",null);
_.E([_.Kc("yt-append-continuation-items-action-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],RQ.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.Kc("yt-update-video-data-voting-animation"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RQ.prototype,"updateVideoData",null);_.E([_.h({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],RQ);
_.W(RQ,"ytd-playlist-video-list-renderer",function(){if(tgK!==void 0)return tgK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return tgK=A},{mode:_.UG("kevlar_poly_si_batch_j047")?1:2});var rm7;var gR=function(){return _.q.apply(this,arguments)||this};
_.O(gR,_.q);gR.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"}}}}};
gR.prototype.onTextWrapperTap=function(A){var Q=this.data&&this.data.navigationEndpoint;Q&&!_.TG(_.mW(A),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Bn(this.hostElement,"yt-navigate",{endpoint:Q})};
gR.prototype.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");A&&A.commandMetadata&&_.V(A.commandMetadata,_.RA)&&_.V(A.commandMetadata,_.RA).fireAutomatically&&_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})};
gR.prototype.dataChanged=gR.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.NC),_.c("design:type",Object)],gR.prototype,"ytdLockupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gR.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.c("design:type",Boolean)],gR.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],gR.prototype,"biggerThumbsStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],gR.prototype,"leftAligned",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gR.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-movie-renderer"})],gR);
_.W(gR,"ytd-movie-renderer",function(){if(rm7!==void 0)return rm7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rm7=A},{mode:1});var j0O;var e5=function(){var A=_.q.apply(this,arguments)||this;A.rounded=!0;A.pageAttachedTo=void 0;A.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return A};
_.O(e5,_.q);e5.prototype.attached=function(){this.pageAttachedTo=_.fJ().resolve(_.F7).getCurrentPage();_.Bn(this.hostElement,"yt-player-attached",this.player)};
e5.prototype.detached=function(){var A;if((A=this.pageAttachedTo)==null?0:A.hostElement)_.Bn(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
e5.prototype.dataChanged=function(){var A;if((A=this.data)==null?0:A.videoId)A={video_id:this.data.videoId,autoplay:!0},!_.K("miniplayer_stop_channel_video_autoplay_killswitch")&&_.fJ().resolve(_.zb).isMiniplayerActive()&&(A.pause_at_start=!0,A.autoplay=!1),this.player.loadVideoWithPlayerVars(A)};
e5.prototype.handleSignalActionPausePlayer=function(){_.p6().pause()};
e5.prototype.dataChanged=e5.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],e5.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],e5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],e5.prototype,"rounded",void 0);_.E([_.V1("#player"),_.c("design:type",Object)],e5.prototype,"player",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],e5.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],e5);
_.W(e5,"ytd-channel-video-player-renderer",function(){if(j0O!==void 0)return j0O;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return j0O=A},{mode:1});var RlM;var ghd;var elx;var hI=function(){var A=_.q.apply(this,arguments)||this;A.playing=!1;A.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.YC(A);A.active=!1;return A};
_.O(hI,_.q);_.d=hI.prototype;_.d.detached=function(){this.stop()};
_.d.play=function(){var A=this,Q,b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return A.active=!0,Q=A.get("data.inlinePlaybackEndpoint.watchEndpoint"),b=Q.videoId||A.data.videoId,f=Q.startTimeSeconds||0,a=Q.playerParams||null,_.K("kevlar_player_update_killswitch")?G.yield(A.playerEl.update({args:{video_id:b,startSeconds:f,player_params:a}}),2):(A.playerEl.loadVideoWithPlayerVars({video_id:b,startSeconds:f,player_params:a,autoplay:!0}),G.jumpTo(2));if(G.nextAddress!=4)return G.yield(A.playerEl.getPlayerPromise(),
4);T=G.yieldResult;T.unloadModule("annotations_module");T.addEventListener("onStateChange",function(p){A.onPlayerStateChange(p)});
_.Oi(G)})};
_.d.onPlayerStateChange=function(A){if(this.active)switch(this.playing=A===1,A){case 1:_.Bn(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Bn(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.d.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.d.resize=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(A.playerEl.getPlayerPromise(),2);Q=b.yieldResult;Q.setSize(NaN,NaN);_.Oi(b)})};
_.E([_.C(),_.c("design:type",Object)],hI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],hI.prototype,"playing",void 0);_.E([_.C(),_.c("design:type",Object)],hI.prototype,"playerId",void 0);_.E([_.V1("#player"),_.c("design:type",Object)],hI.prototype,"playerEl",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],hI);
_.W(hI,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(elx!==void 0)return elx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return elx=A},{mode:1});var hlM;var WCr;var WI=function(){var A=_.q.apply(this,arguments)||this;A.width=0;return A};
_.O(WI,_.q);_.d=WI.prototype;_.d.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.lN(this,this.onEnded));this.mp4El.addEventListener("error",_.lN(this,this.onError))};
_.d.detached=function(){this.videoEl.removeEventListener("ended",_.lN(this,this.onEnded));this.mp4El.removeEventListener("error",_.lN(this,this.onError))};
_.d.play=function(){var A=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var Q=this.videoEl.play();Q?Q.then(function(){A.handleVideoStartPlaying()}).catch(function(){_.Bn(A.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Bn(this.hostElement,"yt-video-thumbnail-not-playing")};
_.d.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.d.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.d.dataChanged=function(){var A;if((A=this.data)==null?0:A.thumbnailPlaceholder)A=_.Pz(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+A+")";this.stop();this.autoplay&&this.play()};
_.d.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.d.onEnded=function(){this.stop();_.Bn(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.d.onError=function(){_.Bn(this.hostElement,"yt-video-thumbnail-error")};
_.d.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.d.getVideoThumbnail=function(A){if(A&&A.length)return A[0]};
WI.prototype.dataChanged=WI.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],WI.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],WI.prototype,"animatePlaceholderOnEntrance",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],WI.prototype,"autoplay",void 0);_.E([_.C({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.c("design:type",Object)],WI.prototype,"videoThumbnail",void 0);
_.E([_.C(),_.c("design:type",Boolean)],WI.prototype,"loop",void 0);_.E([_.C(),_.c("design:type",Boolean)],WI.prototype,"isVideoPlaying",void 0);_.E([_.C(),_.c("design:type",Object)],WI.prototype,"width",void 0);_.E([_.V1("#mp4"),_.c("design:type",HTMLElement)],WI.prototype,"mp4El",void 0);_.E([_.V1("#placeholder"),_.c("design:type",HTMLElement)],WI.prototype,"placeholderEl",void 0);_.E([_.V1("#video"),_.c("design:type",HTMLVideoElement)],WI.prototype,"videoEl",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],WI.prototype,"dataChanged",null);_.E([_.Ec({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],WI);
_.W(WI,"yt-video-as-thumbnail-details",function(){if(WCr===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;hlM===void 0&&(hlM=document.createElement("template"));var f=hlM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);WCr=A}A=WCr;return A},{mode:2});var vI=function(){var A=_.q.apply(this,arguments)||this;A.disableGridStateAware=!1;A.animationEnabled=_.K("enable_web_ketchup_hero_animation");A.transitioningOut=!1;A.narrow=!1;A.narrower=!1;A.isCarouselInFeed=!1;A.videoTimeoutJobId=0;A.panelTimeoutJobId=0;A.panelTimeoutJobStartMs=0;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.O(vI,_.q);_.d=vI.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.d.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var A;this.player&&((A=this.data)==null?0:A.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.d.attached=function(){this.onWindowResized()};
_.d.detached=function(){this.clearTimeouts()};
_.d.onWindowResized=function(){this.updateSize()};
_.d.computePanelLayout=function(A){return A&&A.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.d.playVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.play();var Q;this.player&&((Q=this.data)==null?0:Q.inlinePlaybackRenderer)&&this.player.play()};
_.d.stopVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.stop();var Q;this.player&&((Q=this.data)==null?0:Q.inlinePlaybackRenderer)&&this.player.stop()};
_.d.transitionOut=function(){var A=this;this.transitioningOut=!0;return new Promise(function(Q){var b=function(){_.Bj(A.hostElement).querySelector("#action-button").removeEventListener("animationend",b);_.j7.cancelJob(f);Q();A.transitioningOut=!1};
var f=_.Hv(_.j7,b,1E3);_.Bj(A.hostElement).querySelector("#action-button").addEventListener("animationend",b);A.player&&(A.player.playing=!1)})};
_.d.computeMetadataOrder=function(A){return A&&A.metadataOrder&&A.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?A.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.d.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.d.computeAvatarSize=function(A){return A&&A.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.d.onContentClick=function(A){if(!_.TG(_.mW(A),this.hostElement,["A".toString(),"BUTTON".toString()])){var Q;if((Q=this.data)==null?0:Q.navigationEndpoint){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.navigationEndpoint)}}};
_.d.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.d.setBackgroundImage=function(A){if(A=this.getBackgroundImageUrl(A))_.Bj(this.hostElement).querySelector("#hero").style.backgroundImage="url("+A+")"};
_.d.setScrimLayer=function(A){var Q=this.getScrimLayerColorStops(A);A=((A==null?void 0:A.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(A=180);_.vG("HTML_DIR")==="rtl"&&(A=-A);Q&&(_.Bj(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+A+"deg, "+Q+")")};
_.d.isNarrower=function(){return this.hostElement.clientWidth<vI.NARROW_VERSION_SIZE};
_.d.getScrimLayerColorStops=function(){var A,Q=(A=this.data)==null?void 0:A.scrimColorValues;if(!Q)return null;if(Q.length===1)return A=_.w6(Q[0]),A+" 0%, "+A+" 100%";if(Q.length===3){var b=[0,72,98];return Q.map(function(f,a){return _.w6(f)+" "+b[a]+"%"}).join(",")}return null};
_.d.getBackgroundImageUrl=function(A){return A&&A.largeFormFactorBackgroundThumbnail?_.Pz((A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.d.onPlaying=function(){this.startVideoTimeout()};
_.d.onEnded=function(){this.rotate()};
_.d.startPanelTimeout=function(){var A=this;if(!this.panelTimeoutJobId){var Q=this.get("data.minPanelDisplayDurationMs");Q&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Hv(_.j7,function(){A.rotate()},Q))}};
_.d.startVideoTimeout=function(){var A=this;if(!this.videoTimeoutJobId){_.j7.cancelJob(this.panelTimeoutJobId);var Q=Date.now()-this.panelTimeoutJobStartMs;Q=Math.max(0,this.get("data.minPanelDisplayDurationMs")-Q);Q=Math.max(this.get("data.minVideoPlayDurationMs")||0,Q);this.videoTimeoutJobId=_.Hv(_.j7,function(){A.rotate()},Q)}};
_.d.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.j7.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.j7.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.d.rotate=function(){this.clearTimeouts();_.Bn(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Qr.Object.defineProperties(vI.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#video")}}});
_.Qr.Object.defineProperties(vI,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
vI.prototype.onEnded=vI.prototype.onEnded;vI.prototype.onPlaying=vI.prototype.onPlaying;vI.prototype.dataChanged=vI.prototype.dataChanged;_.E([_.I(_.ZJ),_.c("design:type",Object)],vI.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],vI.prototype,"componentBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],vI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.I(_.X0$),_.c("design:type",Object)],vI.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],vI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vI.prototype,"disableGridStateAware",void 0);_.E([_.C(),_.c("design:type",Object)],vI.prototype,"data",void 0);_.E([_.C({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.c("design:type",String)],vI.prototype,"panelLayout",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vI.prototype,"animationEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vI.prototype,"transitioningOut",void 0);
_.E([_.C({computed:"computeMetadataOrder(data)"}),_.c("design:type",Boolean)],vI.prototype,"metadataOrder",void 0);_.E([_.C({computed:"computeByline(data)"}),_.c("design:type",Object)],vI.prototype,"byline",void 0);_.E([_.C({computed:"computeAvatarSize(data)"}),_.c("design:type",Number)],vI.prototype,"avatarSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vI.prototype,"narrow",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vI.prototype,"narrower",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vI.prototype,"layoutStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vI.prototype,"isCarouselInFeed",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vI.prototype,"dataChanged",null);_.E([_.Kc("yt-default-promo-panel-renderer-playing"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vI.prototype,"onPlaying",null);
_.E([_.Kc("yt-default-promo-panel-renderer-ended"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vI.prototype,"onEnded",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],vI);
_.W(vI,"ytd-default-promo-panel-renderer",function(){if(ghd!==void 0)return ghd;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ghd=A},{mode:1});_.xo("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var EV=function(){var A=_.q.apply(this,arguments)||this;A.narrower=!1;A.dotMenuVisible=!1;A.paginationThumbnailsVisible=!1;A.active=!0;A.disableGridStateAware=!1;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.O(EV,_.q);_.d=EV.prototype;_.d.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]]"}}}}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageTypeChange));this.currentPageSubtype=_.VK(location.pathname);this.onWindowResized()};
_.d.detached=function(){this.jobId&&_.j7.cancelJob(this.jobId);this.updateSizeJobId&&_.j7.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageTypeChange))};
_.d.onPageTypeChange=function(A){this.active=A.detail.newPageSubtype===this.currentPageSubtype};
_.d.onWindowResized=function(){this.updateSize()};
_.d.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.d.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.d.setCarouselItem=function(A){A>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.j7.cancelJob(this.jobId);var Q=this.getCurrentPanelElement();Q&&Q.stopVideo();this.currentItemIndex=A%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(Q||(Q=this.getCurrentPanelElement()),Q.playVideo()):this.startRotationJob()};
_.d.scrollThumbnails=function(A){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var Q=this.getCurrentPaginationElement();if(Q){var b=_.Bj(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?b.style.transform="translateX(0)":(Q=Q.offsetWidth+8,b.style.transform="translateX(-"+Q*(A-Math.ceil(Math.floor(this.overlay.offsetWidth/Q)/2)+1)+"px)")}}};
_.d.onDataChanged=function(){var A=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.hy(_.j7,function(){var Q;(Q=A.getCurrentPanelElement())==null||Q.updateSize();A.updateSize()}))};
_.d.getCurrentPanelElement=function(){return _.Bj(_.Bj(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.d.getCurrentPaginationElement=function(){return _.Bj(_.Bj(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.d.getNavigationClass=function(A,Q){return A===Q?"selected":""};
_.d.getNavigationDurationStyle=function(A){return"animation-duration:"+(this.get("data.carouselItems."+A+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.d.onNavigationTap=function(A){var Q=this,b=A.model.index;b!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){Q.setCarouselItem(b)}),this.autorotateActive=!1)};
_.d.onVideoThumbnailEnded=function(){var A=this;if(this.shouldRotate()){var Q=this.getCurrentPaginationElement();Q&&(Q.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){Q.classList.remove("finished");A.setNextCarouselItem()}))}};
_.d.onVideoThumbnailError=function(){this.startRotationJob()};
_.d.onVideoNotPlaying=function(){this.startRotationJob()};
_.d.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.d.startRotationJob=function(){var A=this;_.j7.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.j7.addLowPriorityJob(function(){A.getCurrentPanelElement().transitionOut().then(function(){A.setNextCarouselItem()})},this.rotationTimeout))};
_.d.computeDotMenuVisible=function(A,Q){return!!A&&!!A.carouselItems&&A.carouselItems.length>1&&!A.paginationThumbnails||!!Q};
_.d.computePaginationThumbnailsVisible=function(A,Q){var b,f;return((f=A==null?void 0:(b=A.paginationThumbnails)==null?void 0:b.length)!=null?f:0)>1&&!Q};
_.d.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.d.computePaginatorAlignment=function(A){return(A==null?void 0:A.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.d.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.d.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.d.isNarrower=function(A){return(A!=null?A:0)<vI.NARROW_VERSION_SIZE};
EV.prototype.activeChanged=EV.prototype.activeChanged;EV.prototype.onVideoNotPlaying=EV.prototype.onVideoNotPlaying;EV.prototype.onVideoThumbnailError=EV.prototype.onVideoThumbnailError;EV.prototype.onVideoThumbnailEnded=EV.prototype.onVideoThumbnailEnded;EV.prototype.onDataChanged=EV.prototype.onDataChanged;_.E([_.I(_.ZJ),_.c("design:type",Object)],EV.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],EV.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],EV.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],EV.prototype,"currentItem",void 0);
_.E([_.C(),_.c("design:type",Number)],EV.prototype,"currentItemIndex",void 0);_.E([_.C(),_.c("design:type",Number)],EV.prototype,"rotationTimeout",void 0);_.E([_.C(),_.c("design:type",Number)],EV.prototype,"loopCount",void 0);_.E([_.C({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.c("design:type",String)],EV.prototype,"paginatorAlignment",void 0);_.E([_.C(),_.c("design:type",Number)],EV.prototype,"jobId",void 0);
_.E([_.C(),_.c("design:type",Number)],EV.prototype,"updateSizeJobId",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],EV.prototype,"isCarouselInFeed",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],EV.prototype,"narrower",void 0);_.E([_.C({computed:"computeDotMenuVisible(data, narrower)"}),_.c("design:type",Object)],EV.prototype,"dotMenuVisible",void 0);
_.E([_.C({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.c("design:type",Object)],EV.prototype,"paginationThumbnailsVisible",void 0);_.E([_.C({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.c("design:type",String)],EV.prototype,"layoutType",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.c("design:type",Boolean)],EV.prototype,"autorotateActive",void 0);_.E([_.C(),_.c("design:type",Object)],EV.prototype,"active",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],EV.prototype,"disableGridStateAware",void 0);_.E([_.V1("#overlay"),_.c("design:type",HTMLElement)],EV.prototype,"overlay",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],EV.prototype,"onDataChanged",null);
_.E([_.Kc("yt-video-thumbnail-ended"),_.Kc("yt-default-promo-panel-renderer-rotate"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],EV.prototype,"onVideoThumbnailEnded",null);_.E([_.Kc("yt-video-thumbnail-error"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],EV.prototype,"onVideoThumbnailError",null);
_.E([_.Kc("yt-video-thumbnail-not-playing"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],EV.prototype,"onVideoNotPlaying",null);_.E([_.I_("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],EV.prototype,"activeChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],EV);
_.W(EV,"ytd-carousel-item-renderer",function(){if(RlM!==void 0)return RlM;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return RlM=A},{mode:2});var vhn;var Eh7;var xt7;var cmn;var xv=function(){var A=_.q.apply(this,arguments)||this;A.originalQuery=null;A.originalEndpoint=null;return A};
_.O(xv,_.q);xv.prototype.computeShowOriginalQueryWithoutEndpoint_=function(A,Q){return!(!A||Q)};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xv.prototype,"correctedText",void 0);_.E([_.C(),_.c("design:type",Object)],xv.prototype,"correctedQuery",void 0);_.E([_.C(),_.c("design:type",Object)],xv.prototype,"correctedEndpoint",void 0);_.E([_.C(),_.c("design:type",Object)],xv.prototype,"originalText",void 0);_.E([_.C(),_.c("design:type",Object)],xv.prototype,"originalQuery",void 0);
_.E([_.C(),_.c("design:type",Object)],xv.prototype,"originalEndpoint",void 0);_.E([_.C({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.c("design:type",Boolean)],xv.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.E([_.Ec({is:"yt-search-query-correction",disableElementRegistration:!0})],xv);
_.W(xv,"yt-search-query-correction",function(){if(cmn===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;xt7===void 0&&(xt7=document.createElement("template"));var f=xt7;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);cmn=A}A=cmn;return A},{mode:2});_.xo("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var cI=function(){return _.q.apply(this,arguments)||this};
_.O(cI,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cI.prototype,"data",void 0);_.E([_.Ec({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],cI);
_.W(cI,"yt-did-you-mean-renderer",function(){if(Eh7===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;vhn===void 0&&(vhn=document.createElement("template"));var f=vhn;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Eh7=A}A=Eh7;return A},{mode:2});var zlx;var wQx;_.xo("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var zJ=function(){return _.q.apply(this,arguments)||this};
_.O(zJ,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zJ.prototype,"data",void 0);_.E([_.Ec({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],zJ);
_.W(zJ,"yt-including-results-for-renderer",function(){if(wQx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;zlx===void 0&&(zlx=document.createElement("template"));var f=zlx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);wQx=A}A=wQx;return A},{mode:2});var u0s;var ZvK;_.xo("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var wR=function(){return _.q.apply(this,arguments)||this};
_.O(wR,_.q);wR.prototype.computeExtraClasses_=function(A,Q){var b="";A&&(b+=" "+A.toLowerCase().replace(/_/g,"-"));Q&&(b+=" "+Q.toLowerCase().replace(/_/g,"-"));return b};
wR.prototype.computeUrlImg_=function(){var A=this.data;A.image&&(_.Bj(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Pz(A.image.thumbnails,Number.MAX_VALUE)+")")};
wR.prototype.computeUrlImg_=wR.prototype.computeUrlImg_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],wR.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],wR.prototype,"computeUrlImg_",null);_.E([_.Ec({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],wR);
_.W(wR,"yt-music-pass-feature-info-renderer",function(){if(ZvK===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;u0s===void 0&&(u0s=document.createElement("template"));var f=u0s;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ZvK=A}A=ZvK;return A},{mode:2});var ymN;var YQx;_.xo("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var uj=function(){return _.q.apply(this,arguments)||this};
_.O(uj,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uj.prototype,"data",void 0);_.E([_.Ec({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],uj);
_.W(uj,"yt-no-results-found-showing-results-for-renderer",function(){if(YQx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;ymN===void 0&&(ymN=document.createElement("template"));var f=ymN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);YQx=A}A=YQx;return A},{mode:2});var Dtt;var $t7;_.xo("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Z$=function(){return _.q.apply(this,arguments)||this};
_.O(Z$,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Z$.prototype,"data",void 0);_.E([_.Ec({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Z$);
_.W(Z$,"yt-results-without-quotes-renderer",function(){if($t7===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Dtt===void 0&&(Dtt=document.createElement("template"));var f=Dtt;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);$t7=A}A=$t7;return A},{mode:2});var NBK;var s0x;_.xo("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var yQ=function(){return _.q.apply(this,arguments)||this};
_.O(yQ,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yQ.prototype,"data",void 0);_.E([_.Ec({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],yQ);
_.W(yQ,"yt-search-no-results-renderer",function(){if(s0x===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;NBK===void 0&&(NBK=document.createElement("template"));var f=NBK;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);s0x=A}A=s0x;return A},{mode:2});var mtO;var AI7;_.xo("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Yv=function(){return _.q.apply(this,arguments)||this};
_.O(Yv,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Yv.prototype,"data",void 0);_.E([_.Ec({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Yv);
_.W(Yv,"yt-showing-results-for-renderer",function(){if(AI7===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;mtO===void 0&&(mtO=document.createElement("template"));var f=mtO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);AI7=A}A=AI7;return A},{mode:2});var QQM;var bZN;var f$x;var a$N;var D$=function(){var A=_.q.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.O(D$,_.q);D$.prototype.toggleAnswer_=function(A){var Q=_.Au(A);Q&&Q.classList.contains("yt-simple-endpoint")||(A.preventDefault(),A.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
D$.prototype.toggleAnswer_=D$.prototype.toggleAnswer_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],D$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],D$.prototype,"answerExpanded",void 0);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],D$.prototype,"toggleAnswer_",null);
_.E([_.Ec({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],D$);
_.W(D$,"yt-generic-faq-question-renderer",function(){if(a$N===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;f$x===void 0&&(f$x=document.createElement("template"));var f=f$x;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);a$N=A}A=a$N;return A},{mode:2});_.xo("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var $v=function(){return _.q.apply(this,arguments)||this};
_.O($v,_.q);$v.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$v.prototype,"data",void 0);_.E([_.Ec({is:"yt-faq-section-renderer",disableElementRegistration:!0})],$v);
_.W($v,"yt-faq-section-renderer",function(){if(bZN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;QQM===void 0&&(QQM=document.createElement("template"));var f=QQM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bZN=A}A=bZN;return A},{mode:2});var TRs;var dZr;_.xo("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var NZ=function(){return _.q.apply(this,arguments)||this};
_.O(NZ,_.q);
NZ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],NZ.prototype,"data",void 0);_.E([_.Ec({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],NZ);
_.W(NZ,"yt-offer-item-expanded-renderer",function(){if(dZr===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;TRs===void 0&&(TRs=document.createElement("template"));var f=TRs;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);dZr=A}A=dZr;return A},{mode:2});var FNO;var GJN;_.xo("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var sV=function(){return _.q.apply(this,arguments)||this};
_.O(sV,_.q);
sV.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"}}}}};
sV.prototype.computeFullWidthMode=function(A){return!(!A||!A.fullWidthMode)};
sV.prototype.computeBorderlessMode=function(A){return!(!A||!A.borderlessMode)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sV.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.c("design:type",Boolean)],sV.prototype,"fullWidthMode",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.c("design:type",Boolean)],sV.prototype,"borderlessMode",void 0);_.E([_.Ec({is:"yt-offer-item-renderer",disableElementRegistration:!0})],sV);
_.W(sV,"yt-offer-item-renderer",function(){if(GJN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;FNO===void 0&&(FNO=document.createElement("template"));var f=FNO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);GJN=A}A=GJN;return A},{mode:2});var BRN;var pIq;_.xo("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var mN=function(){return _.q.apply(this,arguments)||this};
_.O(mN,_.q);mN.prototype.computeAriaLevel_=function(A){return this.getLevelID_(A)};
mN.prototype.getLevelID_=function(A){return(A=A.match(/[0-9]+$/))&&A.length==1?A[0]:"1"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mN.prototype,"data",void 0);_.E([_.C({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.c("design:type",String)],mN.prototype,"ariaLevel",void 0);_.E([_.C({value:"heading",reflectToAttribute:!0}),_.c("design:type",String)],mN.prototype,"role",void 0);
_.E([_.C({value:-1,reflectToAttribute:!0}),_.c("design:type",Number)],mN.prototype,"tabindex",void 0);_.E([_.Ec({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],mN);
_.W(mN,"yt-subscription-product-header-renderer",function(){if(pIq===void 0){var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;BRN===void 0&&(BRN=document.createElement("template"));var f=BRN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);pIq=A}A=pIq;return A},{mode:2});var PjF;var XId;_.xo("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Ap=function(){return _.q.apply(this,arguments)||this};
_.O(Ap,_.q);Ap.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:_.cz("menuRenderer"),events:!0}}};
Ap.prototype.onStampFinished_=function(){_.Bj(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Ap.prototype.onStampFinished_=Ap.prototype.onStampFinished_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ap.prototype,"data",void 0);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ap.prototype,"onStampFinished_",null);
_.E([_.Ec({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Ap);
_.W(Ap,"yt-subscription-product-renderer",function(){if(XId===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;PjF===void 0&&(PjF=document.createElement("template"));var f=PjF;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);XId=A}A=XId;return A},{mode:2});var SVr;var UZt;_.xo("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Q9=function(){return _.q.apply(this,arguments)||this};
_.O(Q9,_.q);Q9.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Q9.prototype.imageScrimColorValuesChanged_=function(){var A,Q=(A=this.data)==null?void 0:A.imageScrimColorValues;_.Bj(this.hostElement).querySelector("#scrim").style.backgroundColor=Q?_.w6(Q[0]):"transparent"};
Q9.prototype.imageScrimColorValuesChanged_=Q9.prototype.imageScrimColorValuesChanged_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Q9.prototype,"data",void 0);
_.E([_.iN("data.imageScrimColorValues"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Q9.prototype,"imageScrimColorValuesChanged_",null);_.E([_.Ec({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Q9);
_.W(Q9,"yt-subscription-product-upsell-offer-renderer",function(){if(UZt===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;SVr===void 0&&(SVr=document.createElement("template"));var f=SVr;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);UZt=A}A=UZt;return A},{mode:2});var LNt;var M5N;var l$F;var KNs;var iZO;var JIn;var bP=function(){return _.q.apply(this,arguments)||this};
_.O(bP,_.q);bP.prototype.onYtServiceRequestError_=function(A){_.bp(this.hostElement,A.detail.error.message)};
bP.prototype.onYtServiceRequestError_=bP.prototype.onYtServiceRequestError_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bP.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],bP.prototype,"collapsible",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],bP.prototype,"isManageRed",void 0);
_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],bP.prototype,"onYtServiceRequestError_",null);_.E([_.Ec({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],bP);
_.W(bP,"yt-single-ypc-offer-renderer",function(){if(JIn===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;iZO===void 0&&(iZO=document.createElement("template"));var f=iZO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);JIn=A}A=JIn;return A},{mode:2});var fA=function(){return _.q.apply(this,arguments)||this};
_.O(fA,_.q);fA.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],fA.prototype,"isManageRed",void 0);_.E([_.Ec({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],fA);
_.W(fA,"yt-single-ypc-offer-list-renderer",function(){if(KNs===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;l$F===void 0&&(l$F=document.createElement("template"));var f=l$F;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);KNs=A}A=KNs;return A},{mode:2});var V5K;var OZx;_.xo("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ae=function(){return _.q.apply(this,arguments)||this};
_.O(ae,_.q);ae.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ae.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],ae.prototype,"isManageRed",void 0);_.E([_.Ec({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ae);
_.W(ae,"yt-ypc-offers-list-renderer",function(){if(OZx===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;V5K===void 0&&(V5K=document.createElement("template"));var f=V5K;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);OZx=A}A=OZx;return A},{mode:2});_.xo("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Tl=function(){return _.q.apply(this,arguments)||this};
_.O(Tl,_.q);
Tl.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Tl.prototype,"data",void 0);_.E([_.Ec({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Tl);
_.W(Tl,"yt-unlimited-manage-subscription-page-renderer",function(){if(M5N===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;LNt===void 0&&(LNt=document.createElement("template"));var f=LNt;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);M5N=A}A=M5N;return A},{mode:2});var nvq;var kJN;var d4=function(){return _.q.apply(this,arguments)||this};
_.O(d4,_.q);_.d=d4.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.d.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.onKeypress_=function(A){A.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.d.handleHeaderTap_=function(A){A.preventDefault();A.stopPropagation();this.expandOffers_()};
_.d.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.d.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
d4.prototype.dataChanged_=d4.prototype.dataChanged_;_.E([_.I(_.Hp),_.c("design:type",Object)],d4.prototype,"ironA11yKeysBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],d4.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],d4.prototype,"offersVisible_",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d4.prototype,"dataChanged_",null);_.E([_.Ec({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],d4);
_.W(d4,"yt-collapsible-ypc-offer-renderer",function(){if(kJN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;nvq===void 0&&(nvq=document.createElement("template"));var f=nvq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);kJN=A}A=kJN;return A},{mode:2});var I$N;var HZK;_.xo("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var FV=function(){return _.q.apply(this,arguments)||this};
_.O(FV,_.q);_.d=FV.prototype;_.d.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.d.dataChanged_=function(){if(this.data.backgroundImage){var A=_.Pz(this.data.backgroundImage.thumbnails,screen.width),Q=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=Q?"linear-gradient(180deg, "+Q+"), url("+A+")":"url("+A+")";this.data.gtmId&&_.eN(this.data.gtmId,_.vG("GL",""))}};
_.d.onYtServiceRequestError_=function(A){_.bp(this.hostElement,A.detail.error.message)};
_.d.getScrimLayerColorStops_=function(){var A,Q,b=(A=this.data.unlimitedHeaderV2Data)==null?void 0:(Q=A.unlimitedHeaderV2Data)==null?void 0:Q.scrimLayerColors;if(!b)return null;var f=100/b.length;return b.map(function(a,T){T*=f;return _.w6(a)+" "+T+"%"}).join(",")};
_.d.computeLogoWithPadding=function(A){var Q,b,f;return(A=(Q=A.unlimitedLogoImage)==null?void 0:(b=Q.thumbnails)==null?void 0:(f=b[0])==null?void 0:f.height)&&A%31===0?!0:!1};
FV.prototype.onYtServiceRequestError_=FV.prototype.onYtServiceRequestError_;FV.prototype.dataChanged_=FV.prototype.dataChanged_;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.E([_.C({computed:"computeLogoWithPadding(data)"}),_.c("design:type",Boolean)],FV.prototype,"logoWithPadding",void 0);
_.E([_.C(),_.c("design:type",Object)],FV.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FV.prototype,"dataChanged_",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],FV.prototype,"onYtServiceRequestError_",null);_.E([_.Ec({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],FV);
_.W(FV,"yt-unlimited-page-header-renderer",function(){if(HZK===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;I$N===void 0&&(I$N=document.createElement("template"));var f=I$N;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);HZK=A}A=HZK;return A},{mode:2});var Cjq;var qVd;_.xo("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Gl=function(){return _.q.apply(this,arguments)||this};
_.O(Gl,_.q);Gl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Gl.prototype,"data",void 0);_.E([_.Ec({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Gl);
_.W(Gl,"yt-unlimited-user-notification-renderer",function(){if(qVd===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Cjq===void 0&&(Cjq=document.createElement("template"));var f=Cjq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);qVd=A}A=qVd;return A},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ikd=_.aP(function(A){var Q=_.be(A,{numberOfChips:5}).numberOfChips;return _.X("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.X(_.Op,{each:function(){return Array(Q==null?void 0:Q())}},function(){return _.X("div",{class:"ytGhostChipShelfChip"})}))},"Cg");_.Jjq=_.aP(function(A){var Q=function(){var T;return((T=A.data)==null?void 0:T.call(A).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},b=_.Vh(),f=_.fJ().resolve(_.bc);
_.CH(function(){requestAnimationFrame(function(){var T;(T=b.lottieEl)==null||T.addEventListener("DOMLoaded",function(){var G;(G=A.onLottieLoaded)==null||G.call(A)})})});
var a={};return _.X("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var T;return((T=A.data)==null?void 0:T.call(A).targetId)||""}},_.X(_.X6,{className:_.O4((a.ytChatLoadingViewModelRtl=f==="rtl",a)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:Q()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||Q()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:Q()}}},
animationRef:b}))},"Dg");
}catch(e){_._DumpException(e)}
try{
var gAN,e4N,h4x,WMd,vAx,EAt,xzx,ckx,w_7,s7x,nI,NYq,ykx,$zq,Dzr,Y7N,ZzN,mzn,Azl,Q8O,bHM,kY,fRq,aRl,FRN,CI,TNt,qT,Ip,op,dqs,HU,GVN,BNn,pGr,Pdd,XGF,Spx,LRq,iHM,OHN,nQN,kVK,IRr,HHn,Cdx,qpt,t6t,j8q,gQN,egr,hgl,WRO,EQ7,xqM,czO,zgq,wGr,uFq,ZHn,YpN,s8x,NNN,Dqt,mqq,$qF,A$N,a1F,f1l,QOO,bJx,r0,Ten,dQd,GP7,UQN,L9O,Mtr,l1q,K9x,iJt,J$F,VtN,OJq,nRs,I1M,HJd,CuN,Put;
_.VN=function(A){var Q=new _.IO("Error accessing DB");return _.jSe().then(function(b){return new Promise(function(f,a){try{var T=b.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(A);T.onsuccess=function(){var G=T.result;f(G?G.value:null)};
T.onerror=function(){Q.params={key:A,source:"onerror"};a(Q)}}catch(G){Q.params={key:A,
thrownError:String(G)},a(Q)}})},function(){return null})};
_.R4N=function(A,Q){var b=_.QDJ(Q);b!=="javascript:"&&b!=="data:"&&A.setAttribute("href",Q)};
gAN=function(A,Q){return _.Me(A.entities,"flowStateEntity",Q)};
e4N=function(A,Q){return _.Me(A.entities,"contextNoteUserRatingEntityPayload",Q)};
h4x=function(A){return _.R9(A,function(Q){return Q.languageCode==="en"})};
WMd=function(A){var Q=Oj;if(_.ZKd(A))A.setOption("captions","stickyLoading",{}),A.setOption("captions","track",{});else{var b=_.R9(_.qd9(A),function(f){return f.displayName===Q});
A.setOption("captions","track",b)}};
vAx=function(A){if(!A)return 0;var Q=A.getPresentingPlayerType(),b=A.getVideoData();return b&&b.isLive?(A=A.getProgressState(Q),A.seekableEnd-A.seekableStart):A.getDuration(Q)};
EAt=function(A,Q){for(var b=_.F(Object.keys(A)),f=b.next();!f.done;f=b.next())if(f=f.value,A[f]!==Q[f])return!1;return!0};
xzx=function(){return document.getElementById("player-control-overlay")};
ckx=function(A){A!==-1&&!_.K("player_controls_log_creation_killswitch")&&xzx()&&(_.hQ("pcu_cs",A),_.hQ("pcu_ce"))};
w_7=function(A){return _.X("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(A.subscribeButton?[A.subscribeButton,A.channelAccess]:[A.channelAccess]).map(function(Q){return _.X("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz--button"},z4N(Q)))}))};
_.u_s=function(A){var Q=A.data;var b=A.hideDivider;A=A.isChannelInfoCard;var f={};f=(f["yt-profile-identity-info-view-model-wiz__frame"]=!0,f["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!Q.channelBanner,f);f={class:_.nE(f)};var a,T={imageBannerViewModel:{image:(a=Q.channelBanner)==null?void 0:a.image,style:"IMAGE_BANNER_STYLE_INSET"}};a=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},Q.channelBanner?_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
z4N(T,{imageBannerViewModel:{isPositionRelative:!0}})):null);T=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},z4N(Q.avatar));var G;var p=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},Q.channelDisplayName),Q.verifiedOrOacBadge?_.X("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.X(_.aY,{data:{thumbnails:[{url:(G=Q.verifiedOrOacBadge)==null?void 0:G.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);G=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},p,z4N(Q.threeDotMenu));p=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.X("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},Q.channelHandle),Q.channelPronouns&&Q.channelHandle?_.X("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.X("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},Q.channelPronouns)),_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},Q.leftOfBulletInfo),Q.leftOfBulletInfo&&Q.rightOfBulletInfo?_.X("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},Q.rightOfBulletInfo)));G=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},G,p);return _.X("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.X("div",f,a,_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},T,G),Q.channelDescription?_.X("div",{class:A?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
Q.channelDescription):null,w_7(Q),b?null:_.X("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
s7x=function(A,Q){var b=_.Q0(A,{}),f=ZzN("top",Q),a=ZzN("bottom",Q),T=ZzN("left",Q),G=ZzN("right",Q);return _.qM({top:function(){return nI(b().position,f)},
bottom:function(){return nI(b().position,a)},
left:function(){return nI(b().position,T)},
right:function(){return nI(b().position,G)},
position:function(){return nI(b().positionType,ykx)},
height:function(){return nI(b().height,kY)},
width:function(){return nI(b().width,kY)},
"min-width":function(){return nI(b().minWidth,kY)},
"min-height":function(){return nI(b().minHeight,kY)},
"max-width":function(){return nI(b().maxWidth,kY)},
"max-height":function(){return nI(b().maxHeight,kY)},
"aspect-ratio":function(){return nI(b().aspectRatio,String)},
"margin-top":function(){return nI(b().margin,f)},
"margin-bottom":function(){return nI(b().margin,a)},
"margin-left":function(){return nI(b().margin,T)},
"margin-right":function(){return nI(b().margin,G)},
"padding-top":function(){return nI(b().padding,f)},
"padding-bottom":function(){return nI(b().padding,a)},
"padding-left":function(){return nI(b().padding,T)},
"padding-right":function(){return nI(b().padding,G)},
"flex-direction":function(){return nI(b().flexDirection,Y7N)},
"justify-content":function(){return nI(b().justifyContent,Dzr)},
"align-items":function(){return nI(b().alignItems,$zq)},
"flex-grow":function(){return nI(b().flexGrow,String)},
"flex-shrink":function(){return nI(b().flexShrink,String)},
"flex-basis":function(){return nI(b().flexBasis,kY)},
"align-self":function(){return nI(b().alignSelf,$zq)},
"flex-wrap":function(){return nI(b().flexWrap,NYq)},
"align-content":function(){return nI(b().alignContent,$zq)}})};
nI=function(A,Q){return A!==void 0?Q(A):void 0};
NYq=function(A){switch(A){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
ykx=function(A){switch(A){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
$zq=function(A){switch(A){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"}};
Dzr=function(A){switch(A){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"}};
Y7N=function(A){switch(A){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"}};
ZzN=function(A,Q){var b=Q==="rtl";switch(A){case "top":var f=mzn;break;case "bottom":f=Azl;break;case "left":f=Q8O;break;default:f=bHM}return function(a){return nI(f(a,b),kY)}};
mzn=function(A){var Q=A.top;var b=A.vertical;A=A.all;var f;return(f=Q!=null?Q:b)!=null?f:A};
Azl=function(A){var Q=A.bottom;var b=A.vertical;A=A.all;var f;return(f=Q!=null?Q:b)!=null?f:A};
Q8O=function(A,Q){var b=A.left;var f=A.end;var a=A.start;var T=A.horizontal;A=A.all;var G,p;return(p=(G=b!=null?b:Q?f:a)!=null?G:T)!=null?p:A};
bHM=function(A,Q){var b=A.right;var f=A.end;var a=A.start;var T=A.horizontal;A=A.all;var G,p;return(p=(G=b!=null?b:Q?a:f)!=null?G:T)!=null?p:A};
kY=function(A){var Q=A.value;switch(A.unit){case "YPC_DIMENSION_UNIT_POINT":return Q+"px";case "YPC_DIMENSION_UNIT_FRACTION":return Q+"%";default:return""+Q}};
fRq=function(A){switch(A){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"}};
aRl=function(A){var Q=A!=null?A:{};A=Q.fontRole;var b=Q.fontSize;Q=Q.fontWeight;if(A!==null&&b!==null)switch(A){case "YPC_FONT_ROLE_DISPLAY":switch(b){case "YPC_FONT_SIZE_L":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(b){case "YPC_FONT_SIZE_L":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return Q===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(b){case "YPC_FONT_SIZE_XL":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return Q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
FRN=function(A,Q,b){function f(L){return Object.values(L).map(function(M){var l=M.productId;M=M.pricingOptionIndex;return Ip(a(l).pricingOptions,M).pricingOptionId})}
function a(L){return p().get(L)}
function T(L){L=f(L);b(L)}
var G=HU([A,Q],function(L,M){var l=L==null?void 0:L.selectedPricingOptions;L={};var J=!0;if(l&&M.length)for(var n=_.F(M),t=n.next();!t.done;t=n.next()){t=t.value;var g=TNt(t.pricingOptions,function(D){a:{D=D.pricingOptionId;for(var w=_.F(l),u=w.next();!u.done;u=w.next())if(u.value===D){D=!0;break a}D=!1}return D});
if(g>=0){J=!1;var e=Ip(t.pricingOptions,g),x=void 0;L[t.groupId]={productId:t.productId,pricingOptionIndex:g,pricingGroupAttributes:(x=e)==null?void 0:x.pricingGroupAttributes}}}J&&M.length&&(J=Ip(M[0].pricingOptions,0),L[M[0].groupId]={productId:M[0].productId,pricingOptionIndex:0,pricingGroupAttributes:J==null?void 0:J.pricingGroupAttributes});return L}),p=HU([Q],function(L){return new Map(L.map(function(M){return[M.productId,
M]}))}),P=HU([Q],function(L){var M=new Map;
L=_.F(L);for(var l=L.next();!l.done;l=L.next()){var J=l.value;l=J.groupId;var n=J.productId;J=_.F(CI(J.pricingOptions));for(var t=J.next();!t.done;t=J.next()){var g=_.F(t.value);t=g.next().value;g=g.next().value;M.set(g.pricingOptionId,{groupId:l,productId:n,index:t,pricingOption:g,pricingGroupAttributes:g.pricingGroupAttributes})}}return M}),U=HU([Q],function(L){var M=new Map;
L=_.F(L);for(var l=L.next();!l.done;l=L.next()){var J=l.value;l=J.groupId;var n=J.productId,t=void 0;J=_.F(CI((t=J.pricingGroups)!=null?t:[]));for(t=J.next();!t.done;t=J.next()){var g=_.F(t.value);t=g.next().value;g=g.next().value;M.set(g.pricingGroupId,{groupId:l,productId:n,index:t,pricingGroup:g,pricingGroupAttributes:g.pricingGroupAttributes})}}return M});
return{getProductById:a,isProductSelected:function(L){var M=a(L);if(!M)return!1;var l;return((l=G()[M.groupId])==null?void 0:l.productId)===L},
getSelectedPricingOptions:function(){return Object.values(G()).map(function(L){var M=L.productId;L=L.pricingOptionIndex;return Ip(a(M).pricingOptions,L)})},
getSelectedPricingGroupAttributesByGroupId:function(L){var M;return(L=(M=G()[L])==null?void 0:M.pricingGroupAttributes)?Array.from(L):void 0},
getSelectedProductByGroupId:function(L){var M;return(L=(M=G()[L])==null?void 0:M.productId)?a(L):void 0},
onProductSelected:function(L){var M=a(L);if(M){var l=G(),J;if(((J=l[M.groupId])==null?void 0:J.productId)!==L){var n,t;J=(t=(n=l[M.groupId])==null?void 0:n.pricingOptionIndex)!=null?t:0;qT(M.pricingOptions)<=J&&(J=0);n=Ip(M.pricingOptions,J);var g;t={};T(Object.assign({},l,(t[M.groupId]={productId:L,pricingOptionIndex:J,pricingGroupAttributes:(g=n==null?void 0:n.pricingGroupAttributes)!=null?g:[]},t)))}}},
onPricingOptionSelected:function(L){var M=P().get(L);if(M){L=M.groupId;var l=M.productId;M=M.index;var J=G(),n,t;if(((n=J[L])==null?void 0:n.productId)!==l||((t=J[L])==null?void 0:t.pricingOptionIndex)!==M){var g,e;n={};T(Object.assign({},J,(n[L]={productId:l,pricingOptionIndex:M,pricingGroupAttributes:(e=(g=J[L])==null?void 0:g.pricingGroupAttributes)!=null?e:[]},n)))}}},
onPricingGroupSelected:function(L){var M=U().get(L);if(M){L=M.groupId;var l=M.productId,J=M.pricingGroup.pricingGroupAttributes,n=a(l);if(n){M=G();var t=M[L].pricingGroupAttributes,g;if(((g=M[L])==null?void 0:g.productId)!==l||!op(dqs(t,qT(J)),J)){g=Array.from(J);for(J=qT(J);J<qT(t);J++){var e="",x=!1,D=Array.from(g);D.push(Ip(t,J));for(var w=_.F(n.pricingGroups),u=w.next();!u.done;u=w.next())if(u=u.value,op(u.pricingGroupAttributes,D)){g.push(Ip(t,J));x=!0;break}else e===""&&qT(u.pricingGroupAttributes)===
D.length&&op(dqs(u.pricingGroupAttributes,g.length),g)&&(e=Ip(u.pricingGroupAttributes,J));x||g.push(e)}e=M[L].pricingOptionIndex;J=[];x=new Map;D=0;n=_.F(CI(n.pricingOptions));for(w=n.next();!w.done;w=n.next())u=_.F(w.value),w=u.next().value,u=u.next().value,op(u.pricingGroupAttributes,g)&&J.push(w),op(u.pricingGroupAttributes,t)&&x.set(w,D++);J.length===0?t=0:(t=x.get(e),t=t!==void 0&&t<J.length?J[t]:J[0]);n={};T(Object.assign({},M,(n[L]={productId:l,pricingOptionIndex:t,pricingGroupAttributes:g},
n)))}}}},
onClearGroupSelected:function(L){var M=G();M[L]&&(M=Object.fromEntries(Object.entries(M).filter(function(l){return _.F(l).next().value!==L})),T(M))}}};
CI=function(A){return function b(){var f,a,T,G,p;return _.SO(b,function(P){switch(P.nextAddress){case 1:_.iM(P,2),f=0,a=_.F(A),T=a.next();case 4:if(T.done){P.jumpTo(2);break}G=T.value;p=_.UC;return P.yield([f++,G],7);case 7:p(P.yieldResult);T=a.next();P.jumpTo(4);break;case 2:_.KN(P),_.Jo(P,0)}})}()};
TNt=function(A,Q){A=_.F(CI(A));for(var b=A.next();!b.done;b=A.next()){var f=_.F(b.value);b=f.next().value;f=f.next().value;if(Q(f))return b}return-1};
qT=function(A){var Q=0;for(A=A[Symbol.iterator]();!A.next().done;)++Q;return Q};
Ip=function(A,Q){A=_.F(CI(A));for(var b=A.next();!b.done;b=A.next()){var f=_.F(b.value);b=f.next().value;f=f.next().value;if(b===Q)return f}};
op=function(A,Q){if(!A&&!Q)return!0;if(!A||!Q)return!1;A=Array.from(A);Q=Array.from(Q);if(A.length!==Q.length)return!1;for(var b=0;b<A.length;b++)if(A[b]!==Q[b])return!1;return!0};
dqs=function(A,Q){Q=Q===void 0?Infinity:Q;var b=[];A=_.F(CI(A));for(var f=A.next();!f.done;f=A.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;if(f>=Q)break;f>=0&&b.push(a)}return b};
HU=function(A,Q){var b,f;return function(){for(var a=A.map(function(G){return G()}),T=0;T<a.length;T++)if(!b||a[T]!==b[T]){b=a;
f=Q.apply(null,_.ri(a));break}return f}};
GVN=function(A,Q,b){var f=[];A=_.F(A);for(var a=A.next();!a.done;a=A.next()){a=a.value;var T=void 0;((T=Q)==null?0:T.length)&&!op(a.pricingGroupAttributes,Q)||f.push({pricingOption:a,isSelected:b.includes(a.pricingOptionId)})}return f};
BNn=function(A,Q){return _.Me(A.entities,"pdpStateEntity",Q)};
pGr=function(A){var Q,b;return!!(A.productId&&A.groupId&&((Q=A.pricingOptions)==null?0:Q.length)&&A.pricingOptions.every(function(f){return f.pricingOptionId})&&((b=A.pricingGroups)==null||!b.length||Array.isArray(A.pricingGroups)&&A.pricingGroups.every(function(f){return f.pricingGroupId&&f.pricingGroupAttributes&&f.pricingGroupAttributes.length>0})))};
Pdd=function(A,Q,b){return FRN(A,HU([Q],function(f){return f.filter(pGr)}),b)};
XGF=function(A,Q){return Q.length===0?[A]:[A.slice(0,Q[0]),A.slice(Q[0])].filter(function(b){return b.length>0})};
Spx=function(A){switch(A){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""}};
LRq=function(A,Q,b,f){f=Object.assign({},f);_.EG(f,UqM,{selectedOptionId:A,primaryButtonOverride:b});_.m5().dispatch(_.HL("flowStateEntity",Q,f))};
_.KRt=function(){if(!M6F){var A=_.F(_.pz(new Map,void 0,"Xuivje"));M6F=A.next().value;lRt=A.next().value}return M6F};
iHM=function(A){if(A)return _.KRt()().get(A)};
_.Jzt=function(A,Q){if(A&&Q){var b=_.KRt();b().set(A,Q);A=b();lRt(new Map(A))}};
_.V6x=function(A){return{onSubmit:function(){var Q;(Q=iHM(A()))==null||Q.onSubmit()},
isValid:function(){var Q=iHM(A());return Q?Q.isValid():!0},
isSubmitting:function(){var Q,b;return!!((Q=iHM(A()))==null?0:(b=Q.isSubmitting)==null?0:b.call(Q))}}};
OHN=function(A){switch(A){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"}};
nQN=function(A){switch(A){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"}};
kVK=function(A,Q){return _.Me(A.entities,"contextNoteFeedEntityPayload",Q)};
IRr=function(A,Q){switch(A){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return Q==null?void 0:Q.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return Q==null?void 0:Q.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return Q==null?void 0:Q.ratingNotHelpfulText}};
HHn=function(A,Q){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:A.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:A.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:A.deleteDialogTitle}]},dialogMessages:[{runs:[{text:A.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.deleteActionText}]},command:{performCommentActionEndpoint:{action:Q}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Cdx=function(A){A.style.height="auto";A.style.height=A.scrollHeight+"px"};
qpt=function(A){return[A.syncStep,A.asyncStep].filter(function(Q){return Q!==void 0})};
t6t=function(A){var Q,b,f;if(A=(Q=A.structuredContextNoteFormSchema)==null?void 0:(b=Q.fieldSchemas)==null?void 0:(f=b.noteBody)==null?void 0:f.validationSchema)for(Q=_.F(qpt(A)),b=Q.next();!b.done;b=Q.next()){b=b.value.rules;if(!b)break;b=_.F(b);for(b=b.next();!b.done;b=b.next())return _.V(b.value,_.oQq)}};
j8q=function(A){if(A){A=_.F(qpt(A));for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value.rules;if(!Q)break;Q=_.F(Q);for(Q=Q.next();!Q.done;Q=Q.next())return _.V(Q.value,rzN)}}};
gQN=function(A){if(A){A=_.F(qpt(A));for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value.rules;if(!Q)break;Q=_.F(Q);for(Q=Q.next();!Q.done;Q=Q.next())return _.V(Q.value,RgF)}}};
egr=function(A){A=/^https?:\/\//.test(A)?A:"http://"+A;try{var Q=_.co(A)}catch(b){return!1}if(Q.toString()!==A)return!1;A=Q.JSC$9973_domain_.split(".");return A.length>1&&A.every(function(b){return!!b})};
hgl=function(A,Q,b,f){var a;f=(a=f.structuredContextNoteData)==null?void 0:a.createCommentEndpoint;if(a=_.V(f,_.yhv))return a.commentText=_.sr(A),a.videoPositionMention=Q,a.sources=b,f};
WRO=function(A){return A==null?void 0:A.stringValue};
EQ7=function(A,Q,b){A=A.map(function(f,a){return{listItemViewModel:{title:f.title,subtitle:f.subtitle,leadingImage:f.leadingImage,trailingImage:a===Q?vQt:void 0,rendererContext:{commandContext:{onTap:f.onTap}}}}});
return Object.assign({},b&&{header:{panelHeaderViewModel:{title:b}}},{content:{listViewModel:{listItems:A}}})};
xqM=function(A,Q){if(A&&Q)switch(Q){case "SELECTION_TYPE_BOOL":return A.boolValue;case "SELECTION_TYPE_INT":return A.intValue;case "SELECTION_TYPE_STRING":return A.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return A.privacyStatusValue}};
czO=function(A){var Q;A=(Q=A.options)==null?void 0:Q.findIndex(function(b){return b.isSelected});
return A===void 0?-1:A};
zgq=function(A,Q,b){var f=function(){return A().label},a={},T=_.O4("ytDropdownViewModelLabel",(a.ytDropdownViewModelLabelError=Q,a));
return _.X(_.S,{cond:function(){return A().label&&!(b()===-1&&A().label&&!A().placeholderText)},
then:function(){return _.X("div",{class:T},_.X(_.Rb,{text:f}))}})};
wGr=function(A,Q){var b={};b=_.O4("ytDropdownViewModelTitle",(b.ytDropdownViewModelTitlePlaceholder=function(){return Q()===-1},b));
return _.X("div",{class:b},_.X(_.Rb,{text:function(){var f=A();var a=Q();if(a===-1)f=f.placeholderText?f.placeholderText:f.label;else{var T,G;f=(T=f.options)==null?void 0:(G=T[a])==null?void 0:G.title}return f}}))};
uFq=function(A,Q){var b=function(){return A().hint};
return _.X(_.bd,null,_.X(_.S,{cond:function(){return b()&&!Q()},
then:function(){return _.X("div",{class:_.O4("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.X(_.Rb,{text:b,className:"ytDropdownViewModelSupportText"}))}}),_.X(_.S,{cond:Q,
then:function(){return _.X("div",{id:"dropdown-view-model-error",role:"alert",class:_.O4("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.X(_.oY,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.X(_.Rb,{text:Q,className:"ytDropdownViewModelSupportText"}))}}))};
ZHn=function(A,Q){var b=_.fJ().resolve(_.peF);_.tz(function(){var f=A().id;f&&b!=null&&b.dropdownMap.set(f,Q)})};
YpN=function(A){A=_.V(A.scheduleButton,yzn);A=_.V(A==null?void 0:A.primaryButton,_.jJ);A=_.V(A==null?void 0:A.onTap,_.wF);var Q,b,f=((b=_.V(A,_.LD))==null?void 0:b.commands)||[A];b=_.F(f);for(A=b.next();!A.done&&!(Q=_.V(A.value,_.DFY));A=b.next());var a;Q=(a=Q)==null?void 0:a.createBroadcastRequest;if(!Q)throw Error("Lj");return Q};
s8x=function(A,Q,b){b=b===void 0?{}:b;var f,a;return _.B(function(T){if(f=Dqt(Q))return T.return(f);(a=$qF(A,Q,b))&&NNN(Q,a);return T.return(a)})};
NNN=function(A,Q){var b=mqq(A);b&&Q.then(function(f){_.fJ().resolve(_.La).put(b,new _.M6({innertubeResponse:f}))})};
Dqt=function(A){if(A=mqq(A)){var Q=_.fJ().resolve(_.La);if(Q.has(A))return Q.get(A).then(function(b){return b==null?void 0:_.Fw(b)})}return null};
mqq=function(A){var Q=_.V(A.endpoint,_.sv);if(Q!=null&&Q.videoId)return Q={videoId:Q.videoId},_.K("web_imp_player_mute_params")&&(Q.mutedAtStart=A.startPlaybackInMutedState),_.NW("inline_playback",Q)};
$qF=function(A,Q,b){A=_.Ay(A,Q.endpoint,A$N(Q,b)).then(function(f){return f});
return Promise.resolve(A)};
A$N=function(A,Q){Q=_.K("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!A.startPlaybackInMutedState},Q):Object.assign({},{vis:5,autonav:"1"},Q);var b;Q={contentPlaybackContext:_.tE(Q,(b=_.V(A.endpoint.commandMetadata,_.KD))==null?void 0:b.url,window.location.href)};_.K("web_imp_player_mute_params")&&(Q.overrideMutedAtStart=!A.startPlaybackInMutedState);return Q};
a1F=function(A,Q){var b=window.MutationObserver;b&&(tD=new b(function(f,a){f=_.F(f);for(var T=f.next();!T.done;T=f.next()){T=T.value;var G;if(G=T.type==="childList"&&T.target)a:{G=A;T=QOO(T.target);G=QOO(G);for(var p=null,P=0;P<T.length;P++)if(G.includes(T[P])){if(P===0){G=!1;break a}p=T[P];break}p?(T=bJx(T,p),G=bJx(G,p),G=T<G):G=!1}if(G){Q();a.disconnect();break}}}),(b=f1l())&&tD.observe(b,{childList:!0,
subtree:!0}))};
f1l=function(){var A=document.getElementsByTagName("ytd-rich-grid-renderer");if(A.length>0)return A[0];A=document.getElementsByTagName("ytd-section-list-renderer");return A.length>0?A[0]:null};
QOO=function(A){for(var Q=[];A;)Q.push(A),A=A.parentElement;return Q};
bJx=function(A,Q){var b=Array.from(Q.children);Q=A.indexOf(Q);return Q>0?b.indexOf(A[Q-1]):-1};
r0=function(A,Q,b){b=b===void 0?{}:b;return _.JQ(A,b,Q)};
Ten=function(A){switch(A){case "MUSIC":return!0;default:return!1}};
dQd=function(A){return A==null?void 0:A.filter(function(Q){return Q.premiereTrailerBadgeRenderer})};
GP7=function(A){var Q,b=A==null?void 0:(Q=A.find(function(M){return M.thumbnailOverlayTimeStatusRenderer}))==null?void 0:Q.thumbnailOverlayTimeStatusRenderer,f,a;
if((b==null?0:(f=b.icon)==null?0:f.iconType)&&Ten(b==null?void 0:(a=b.icon)==null?void 0:a.iconType)){var T;return{icon:b==null?void 0:(T=b.icon)==null?void 0:T.iconType}}var G,p;var P=(A=(G=A==null?void 0:(P=A.find(function(M){return M.thumbnailBottomOverlayViewModel}))==null?void 0:P.thumbnailBottomOverlayViewModel)==null?void 0:(p=G.badges)==null?void 0:p.find(function(M){var l,J;
return((l=_.V(M,F9F))==null?void 0:(J=l.inlinePlaybackBadgeData)==null?void 0:J.replicateAsTimestamp)===!0}))?_.V(A,F9F):void 0;
if(P==null?0:P.icon){var U,L;if((P=(U=_.PlX(P==null?void 0:P.icon))==null?void 0:(L=U.clientResource)==null?void 0:L.imageName)&&Ten(P))return{icon:P}}return{}};
UQN=function(A,Q){var b=Bel,f=_.F(_.pz(prF(new Put(function(){},b,Q)),void 0,"PAnyd")),a=f.next().value,T=f.next().value,G=new Put(function(p){T(p)},b,Q);
_.H_(function(){Promise.resolve().then(function(){var p,P=(p=A())!=null?p:{};G.playerControlsData=P;_.K("player_controls_skip_double_signal_old")&&(G.lastSeenPlayerApi=_.cZ(P.playerApi));_.K("player_controls_skip_double_signal_old")||(G.lastSeenPlayerApi=_.cZ(P.playerApi));Xrt(G)});
_.Cz(function(){Sol(G)})},"HikUP");
_.Cz(function(){Sol(G)});
return function(){return a()}};
L9O=function(A){return function(Q){var b=A(),f={playerState:Q};if(Q===1){var a;(a=b.playerApi)==null||a.loadModule("captions")}if(Q===0){var T;(T=b.playerApi)==null||T.unloadModule("captions")}(Q!==-1||_.K("web_imp_controls_set_player_state_killswitch"))&&b.setState(f)}};
Mtr=function(A){return function(Q){A().setState({playbackRate:Q})}};
l1q=function(A){return function(Q){var b=A(),f=b.playerApi,a=f==null?void 0:f.getVideoData(),T=(a==null?void 0:a.isLive)||!1;a=a==null?void 0:a.video_id;T={videoDuration:vAx(f||void 0),isLive:T,videoId:a};T.videoId!==b.videoId&&(T=Object.assign({},_.lLi(f),T));if(Q==null?0:Q.playertype)T.playerType=Q.playertype;if(f){T.captionsAvailable=_.fI(f);Q=T;var G;a=(G=f.getStoryboardLevel(f.getNumberOfStoryboardLevels()-1))==null?void 0:G.intervalMs;Q.storyboardInterval=a?a/1E3:void 0;T.captionsAvailable&&
(T.captionsEnabled=_.ZKd(f))}T.volumeMuted=!(f==null||!f.isMuted());b.setState(T)}};
K9x=function(A){return function(Q){var b=A(),f=b.playerApi;if(f){var a=f.getPresentingPlayerType();Q={playedTime:Q||0,percentLoaded:f.getVideoLoadedFraction(),playerType:a};b.playerState===0&&(Q.playedTime=b.videoDuration);b.isLive&&(a=f.getProgressState(a),Q.playedTime-=a.seekableStart,Q.videoDuration=vAx(f));if(b.playerType===1)f=!1;else{var T;if((T=b.uxConfig)==null?0:T.showCuedOverlay){var G;f=!((G=b.playerApi)==null?0:G.getPlayerStateObject(b.playerType).isDomPaused)}else f=!0}f&&delete Q.playedTime;
b.setState(Q)}}};
iJt=function(A){return function(){var Q=A(),b,f,a,T={volume:(a=(b=Q.playerApi)==null?void 0:b.getVolume())!=null?a:0,volumeMuted:!((f=Q.playerApi)==null||!f.isMuted())};Q.setState(T)}};
J$F=function(A){return function(){var Q=A(),b=Q.playerApi;if(b){var f={captionsAvailable:_.fI(b)};f.captionsAvailable&&(f.captionsEnabled=_.ZKd(b));Q.setState(f)}}};
VtN=function(A){return function(){var Q=A();if(Q.playerApi&&!(Q.volumeMuted||Q.controlsVisible&&Q.isProbablyAScreenreaderUser)){Q.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var b;(b=document.querySelector(".player-control-play-pause-icon"))==null||b.focus()}}};
OJq=function(A){return{appApi:Object.assign({},_.pqF(),{showCaptionsToggleToast:function(Q){var b,f;(f=(b=A()).showCaptionsToggleToast)==null||f.call(b,Q)},
openInMiniplayer:function(){var Q,b;(b=(Q=A()).openInMiniplayer)==null||b.call(Q)}})}};
nRs=function(A,Q){var b,f,a;return!!(A==null?0:(b=A.playerResponse)==null?0:(f=b.playerConfig)==null?0:(a=f.inlinePlaybackConfig)==null?0:a.showScrubbingControls)&&!(Q==null?0:Q.hideScrubbingControls)};
_.kPx=function(A){var Q=!A.miniplayerIsActive;return[5,2,0].includes(A.miniplayerPlaybackState)||Q};
I1M={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};HJd=function(A,Q){var b,f,a,T,G;_.B(function(p){if(!Q.length)return p.return([]);b=[];f=_.F(Q);for(a=f.next();!a.done;a=f.next())T=a.value,(G=A.resolveIcon(T))&&!A.iconCache[G.url]&&b.push(_.R7F(A,G).then(function(){}).catch(function(){}));
return p.return(Promise.all(b))})};
CuN=function(A,Q){var b=[];Q=(new Set(Q)).values();Q=_.F(Q);for(var f=Q.next();!f.done;f=Q.next()){f=f.value;for(var a=_.F(Object.values(I1M)),T=a.next();!T.done;T=a.next())b.push({iconName:f,iconStyle:T.value})}HJd(A.iconManager,b)};
_.qoq=function(A,Q,b){var f=b!=null?b:A.iconsToFetch;f!=null&&f.length?Q!==void 0&&Q>=0?_.Hv(_.j7,function(){CuN(A,f)},Q):CuN(A,f):Promise.resolve()};
Put=function(A,Q,b){var f=this;this.renderFn=A;this.listeners=Q;this.context=b;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var a;this.lastSeenPlayerApi=_.cZ((a=this.playerControlsData)==null?void 0:a.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.lLi(),void 0);_.K("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){prF(f).setState({playerState:-1});f.resetRecentlyNavigatedJobId&&_.j7.cancelJob(f.resetRecentlyNavigatedJobId);
f.recentlyNavigated=!0;f.resetRecentlyNavigatedJobId=_.j7.addJob(function(){f.recentlyNavigated=!1},8,1E4)})};
Put.prototype.setState=function(A){if(!_.K("mweb_player_skip_no_op_state_changes")||!EAt(A,this.state))if(this.state=Object.assign({},this.state,A),!_.K("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)A=-1,_.K("player_controls_log_creation_killswitch")||xzx()||(A=(0,_.f4)()),_.hQ("pcu_s"),_.hQ("pcu_se"),_.hQ("pcu_rs"),this.renderFn(prF(this)),_.hQ("pcu_re"),ckx(A),_.j7.addJob(function(){_.hQ("pcu_ap")},8)};
var prF=function(A){var Q;var b=_.cZ((Q=A.playerControlsData)==null?void 0:Q.playerApi);return Object.assign({},A.state,{setState:A.boundSetState,domMeasurements:{progressBarLineRect:A.progressBarLineRect},playerApi:b,appApi:A.context.appApi,playerContainer:A.context.playerContainer,playerControlContainer:A.context.playerControlContainer,uxConfig:A.context.uxConfig})},Xrt=function(A){A.listeners.forEach(function(Q){A.eventListenerCleanupFunctions.push(Q.register(function(){return prF(A)},function(){return A.getData()}))})},
Sol=function(A){A.eventListenerCleanupFunctions.forEach(function(Q){Q()});
A.eventListenerCleanupFunctions.length=0};
Put.prototype.getData=function(){return this.playerControlsData};var jr=new _.fU("abuseReportFlowState");var oRs=new _.fU("feedbackFormFlowState");var ttN=new _.fU("inputBoxViewModel");var r$O=new _.fU("flowNextStepCommand");var jOM=new _.fU("flowPrevStepCommand");var Rol=new _.fU("updateFlowCommand");_.gRn=new _.fU("flowStepRenderer");_.oQq=new _.fU("lengthValidationRule");var rzN=new _.fU("regexValidationRule");var RgF=new _.fU("selectedValidationRule");var eor=new _.fU("talkToRecsViewModel");var hon=new _.fU("creatorGoalSetUpFlowDropdownItemViewModel");var W9d=new _.fU("creatorGoalSetUpFlowDropdownViewModel");var F9F=new _.fU("thumbnailBadgeViewModel");_.vRN=new _.fU("radioButtonGroupViewModel");var yzn=new _.fU("panelFooterViewModel");var ERl=new _.fU("ypcCancelRecurrenceCommand");var xQN=new _.fU("cancellationFlowState");var UqM=new _.fU("premiumPurchaseFlowState");var c$s=new _.fU("surveyAnswerCardRenderer");var zoF=new _.fU("showMoreButtonRenderer");var wrl;var uet,ZJN=function(){if(uet!==void 0)return uet;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;wrl===void 0&&(wrl=document.createElement("template"));var f=wrl;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return uet=A};var Rp=function(){var A=_.q.apply(this,arguments)||this;A.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";A.goalDescription="";A.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";A.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";A.startButtonId="start-button";A.exampleButtonId="example-button";return A};
_.O(Rp,_.q);_.d=Rp.prototype;_.d.getGoalDropdownItems=function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.purchaseTargetDropdown,W9d))==null?void 0:Q.dropdownItems};
_.d.getTimerDropdownItems=function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.timerDropdown,W9d))==null?void 0:Q.dropdownItems};
_.d.getColorDropdownItems=function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.colorDropdown,W9d))==null?void 0:Q.dropdownItems};
_.d.getDropdownItemText=function(A){var Q;return(Q=_.V(A,hon))==null?void 0:Q.itemLabel};
_.d.getDropdownItemValue=function(A){A=_.V(A,hon);return(A==null?void 0:A.timeLimit)||(A==null?void 0:A.purchaseTarget)||(A==null?void 0:A.eligiblePurchaseType)};
_.d.updateFlowState=function(A){_.pD(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:A}])};
_.d.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.d.updateGoalValue=function(A){this.goal=A.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.d.onTextValueChanged=function(A){this.goalDescription=A.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.d.updateTimerValue=function(A){this.timer=A.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.d.updateTierValue=function(A){this.tier=A.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.d.getButtonViewModel=function(A){A=(A==null?void 0:A.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var Q,b=_.V((Q=this.data)==null?void 0:Q.startGoalButton,_.jJ);return Object.assign({},b,{state:A})};
_.Qr.Object.defineProperties(Rp,{template:{configurable:!0,enumerable:!0,get:function(){return ZJN()}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Rp.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Rp.prototype,"goal",void 0);_.E([_.C(),_.c("design:type",Object)],Rp.prototype,"goalDescription",void 0);_.E([_.C(),_.c("design:type",Object)],Rp.prototype,"timer",void 0);_.E([_.C(),_.c("design:type",Object)],Rp.prototype,"tier",void 0);
_.E([_.C(),_.c("design:type",Object)],Rp.prototype,"startButtonId",void 0);_.E([_.C(),_.c("design:type",Object)],Rp.prototype,"exampleButtonId",void 0);_.E([_.Ec({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Rp);_.W(Rp,"yt-creator-goal-set-up-flow-view-model",function(){return ZJN()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var y$x;var Yot;var DQ7;var $QO=function(){return _.q.apply(this,arguments)||this};
_.O($QO,_.q);_.E([_.C(),_.c("design:type",Object)],$QO.prototype,"data",void 0);_.E([_.Ec({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],$QO);
_.W($QO,"yt-survey-answer-card-renderer",function(){if(DQ7===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Yot===void 0&&(Yot=document.createElement("template"));var f=Yot;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);DQ7=A}A=DQ7;return A},{mode:2});var Neq;var sO7;var g0=function(){return _.q.apply(this,arguments)||this};
_.O(g0,_.q);_.d=g0.prototype;_.d.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.d.selectedItemChanged=function(A){_.pD(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[A.feedbackToken||""]}])};
_.d.surveyAnswerCardRendererClicked=function(A){if(A.target&&_.V(A.model.item,c$s)){var Q=A.target;A=_.V(A.model.item,c$s);A.onTapCommand?_.ST(Q,[A.onTapCommand],Q):this.data.onTapCommand&&_.ST(Q,[this.data.onTapCommand],Q);this.selectedItemChanged(A)}};
_.d.checkIsCancellationStyle=function(A){return A==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.d.updateSelectedItemFromBinding=function(A){this.selectedItem=A.detail.value};
g0.prototype.onSelectedItemChanged=g0.prototype.onSelectedItemChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],g0.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],g0.prototype,"selectedItem",void 0);_.E([_.C({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.c("design:type",Boolean)],g0.prototype,"isCancellationStyle",void 0);
_.E([_.iN("selectedItem"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],g0.prototype,"onSelectedItemChanged",null);_.E([_.Ec({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],g0);
_.W(g0,"yt-survey-flow-step-renderer",function(){if(sO7===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Neq===void 0&&(Neq=document.createElement("template"));var f=Neq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);sO7=A}A=sO7;return A},{mode:2});var er=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return A};
_.O(er,_.q);er.prototype.handleSurveyFlowStepOptionChanged=function(A){this.ytdReduxBehavior.dispatch(_.G7({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:A}));_.pD(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],er.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],er.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],er.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],er);
_.W(er,"ytd-survey-flow-step-renderer",function(){if(y$x!==void 0)return y$x;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return y$x=A},{mode:1});var z4N;z4N=_.rz({avatarViewModel:_.Wm,buttonViewModel:_.J9,subscribeButtonViewModel:_.e4,imageBannerViewModel:_.DP});_.mQl=_.ko(_.u_s);_.dK(_.u_s);var Ald;var hD=function(){return _.q.apply(this,arguments)||this};
_.O(hD,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],hD.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],hD.prototype,"data",void 0);_.E([_.h({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],hD);
_.W(hD,"ytd-channel-history-renderer",function(){if(Ald!==void 0)return Ald;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Ald=A},{mode:1});var Qx7;var b4s=function(){return _.q.apply(this,arguments)||this};
_.O(b4s,_.q);_.E([_.C(),_.c("design:type",Object)],b4s.prototype,"data",void 0);_.E([_.h({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],b4s);
_.W(b4s,"ytd-feature-enablement-info-renderer",function(){if(Qx7!==void 0)return Qx7;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Qx7=A},{mode:1});var fgd;var agq;var WU=function(){var A=_.q.apply(this,arguments)||this;A.textBoxMaxLength=_.K("enable_tvod_campaign_code_integration")?15:12;return A};
_.O(WU,_.q);_.d=WU.prototype;_.d.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.d.onSubmit=function(){var A=this.data.serviceEndpoint,Q=_.V(A,_.Tk);Q&&A&&(Q.couponCode=this.userInput,_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}}))};
_.d.validate=function(){var A=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=A&&!this.data.errorMessage;this.showErrorMessage=A&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.K("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.d.computeStyle=function(A){return A};
_.d.computeShowValidationBelowInput=function(A){return A!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.d.updateUserInputFromBinding=function(A){this.userInput=A.currentTarget.value};
_.d.updateShowErrorMessageFromBinding=function(A){this.showErrorMessage=A.detail.value};
_.Qr.Object.defineProperties(WU.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
WU.prototype.dataChanged=WU.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],WU.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],WU.prototype,"userInput",void 0);_.E([_.C(),_.c("design:type",Boolean)],WU.prototype,"disableApplyButton",void 0);_.E([_.C(),_.c("design:type",Boolean)],WU.prototype,"hideApplyButton",void 0);
_.E([_.C(),_.c("design:type",Boolean)],WU.prototype,"hideErrorMessage",void 0);_.E([_.C(),_.c("design:type",Boolean)],WU.prototype,"showTick",void 0);_.E([_.C(),_.c("design:type",Boolean)],WU.prototype,"showErrorMessage",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.c("design:type",String)],WU.prototype,"couponStyle",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.c("design:type",Boolean)],WU.prototype,"showValidationBelowInput",void 0);_.E([_.C(),_.c("design:type",Object)],WU.prototype,"textBoxMaxLength",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],WU.prototype,"dataChanged",null);
_.E([_.H("showTick","showErrorMessage","userInput"),_.c("design:type",String),_.c("design:paramtypes",[])],WU.prototype,"validationState",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],WU);
_.W(WU,"ytd-ypc-coupon-renderer",function(){if(agq!==void 0)return agq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return agq=A},{mode:1});var vU=function(){return _.q.apply(this,arguments)||this};
_.O(vU,_.q);vU.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"}}}};
vU.prototype.computeStyle=function(A){return A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],vU.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.c("design:type",String)],vU.prototype,"buttonStyle",void 0);_.E([_.h({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],vU);
_.W(vU,"ytd-flow-bottom-bar-renderer",function(){if(fgd!==void 0)return fgd;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return fgd=A},{mode:1});var TON;var dgN;var Fkx;var Ej=function(){return _.q.apply(this,arguments)||this};
_.O(Ej,_.q);Ej.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ej.prototype.focus=function(A){this.title&&_.Dg(this.title,A)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ej.prototype,"data",void 0);_.E([_.V1("#title"),_.c("design:type",HTMLElement)],Ej.prototype,"title",void 0);_.E([_.h({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Ej);
_.W(Ej,"ytd-flow-top-bar-renderer",function(){if(Fkx!==void 0)return Fkx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Fkx=A},{mode:1});var Gpn;var BOx;var pEt;var xY=function(){return _.q.apply(this,arguments)||this};
_.O(xY,_.q);xY.prototype.freeTextValueChanged=function(){_.pD(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
xY.prototype.updateFreeTextValueFromBinding=function(A){this.freeTextValue=A.detail.value};
_.Qr.Object.defineProperties(xY.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(Q=(A=this.data)==null?void 0:A.responseMaxLength)!=null?Q:500,f;return((f=this.freeTextValue)!=null?f:"").length>=b?"maxed-out":""}}});
xY.prototype.freeTextValueChanged=xY.prototype.freeTextValueChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xY.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],xY.prototype,"freeTextValue",void 0);_.E([_.V1("#user-input"),_.c("design:type",HTMLTextAreaElement)],xY.prototype,"input",void 0);
_.E([_.H("freeTextValue"),_.c("design:type",Object),_.c("design:paramtypes",[])],xY.prototype,"characterLimitClass",null);_.E([_.iN("freeTextValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xY.prototype,"freeTextValueChanged",null);_.E([_.Ec({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],xY);
_.W(xY,"yt-free-text-input-flow-step-renderer",function(){if(pEt===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;BOx===void 0&&(BOx=document.createElement("template"));var f=BOx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);pEt=A}A=pEt;return A},{mode:2});var cU=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return A};
_.O(cU,_.q);cU.prototype.handleFreeTextFlowStepInputChanged=function(A){_.pD(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],cU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],cU.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cU.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],cU);
_.W(cU,"ytd-free-text-input-flow-step-renderer",function(){if(Gpn!==void 0)return Gpn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Gpn=A},{mode:1});var PCq;var XEn;var SSK=function(){return _.q.apply(this,arguments)||this};
_.O(SSK,_.q);_.E([_.C(),_.c("design:type",Object)],SSK.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],SSK);
_.W(SSK,"ytd-metadata-line-renderer",function(){if(XEn!==void 0)return XEn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return XEn=A},{mode:1});var zF=function(){return _.q.apply(this,arguments)||this};
_.O(zF,_.q);zF.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zF.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],zF.prototype,"isMasthead",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],zF);
_.W(zF,"ytd-media-product-renderer",function(){if(PCq!==void 0)return PCq;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return PCq=A},{mode:1});var Ugq;var w0=function(){return _.q.apply(this,arguments)||this};
_.O(w0,_.q);w0.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
w0.prototype.onBillboardImageLoaded=function(){_.Bn(this.hostElement,"yt-refit")};
w0.prototype.onBillboardImageLoaded=w0.prototype.onBillboardImageLoaded;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],w0.prototype,"data",void 0);_.E([_.V1("#billboardImage"),_.c("design:type",Object)],w0.prototype,"billboardImage",void 0);_.E([_.Kc("yt-img-shadow-loaded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],w0.prototype,"onBillboardImageLoaded",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],w0);
_.W(w0,"ytd-billboard-masthead-renderer",function(){if(Ugq!==void 0)return Ugq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Ugq=A},{mode:1});var Lkt;var uf=function(){var A=_.q.apply(this,arguments)||this;A.smallSize=!1;return A};
_.O(uf,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],uf.prototype,"ytComponentBehaviorType",void 0);_.E([_.C(),_.c("design:type",Object)],uf.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uf.prototype,"smallSize",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],uf);
_.W(uf,"ytd-bullet-formatted-string",function(){if(Lkt!==void 0)return Lkt;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Lkt=A},{mode:1});var M7s;var Zo=function(){return _.q.apply(this,arguments)||this};
_.O(Zo,_.q);Zo.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zo.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Zo);
_.W(Zo,"ytd-offer-detail-renderer",function(){if(M7s!==void 0)return M7s;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return M7s=A},{mode:1});var lgn;var yN=function(){return _.q.apply(this,arguments)||this};
_.O(yN,_.q);yN.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yN.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],yN);
_.W(yN,"ytd-offer-detail-step-renderer",function(){if(lgn!==void 0)return lgn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return lgn=A},{mode:1});var KkM;var YY=function(){var A=_.q.apply(this,arguments)||this;A.isInOfferModule=!1;return A};
_.O(YY,_.q);_.d=YY.prototype;_.d.computeHasEndpoint=function(){var A;return!((A=this.data)==null||!A.onClickCommand)};
_.d.dataChanged=function(){var A;if((A=this.data)==null?0:A.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")};
_.d.detached=function(){var A;if((A=this.data)==null?0:A.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.d.handleClickEvent=function(){var A;if((A=this.data)==null?0:A.onClickCommand){var Q;this.componentBehavior.resolveCommand((Q=this.data)==null?void 0:Q.onClickCommand)}};
_.d.onContentKeyDown=function(A){A.key==="Enter"?this.handleClickEvent(A):A.key===" "&&A.preventDefault()};
_.d.onContentKeyUp=function(A){A.key===" "&&this.handleClickEvent(A)};
YY.prototype.dataChanged=YY.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],YY.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YY.prototype,"data",void 0);_.E([_.C({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],YY.prototype,"hasEndpoint",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YY.prototype,"isInOfferModule",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YY.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],YY);
_.W(YY,"ytd-channel-masthead-renderer",function(){if(KkM!==void 0)return KkM;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return KkM=A},{mode:1});var i4F;var Do=function(){var A=_.q.apply(this,arguments)||this;A.thumbnailObjectFit="CONTAIN";A.thumbnailObjectPosition="LEFT";A.isExpanded=!1;return A};
_.O(Do,_.q);_.d=Do.prototype;_.d.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.d.dataChanged=function(){this.resetStates()};
_.d.computeisTapOnOfferInfoContainerEnabled=function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.d.onExpandBtnClick=function(){var A,Q=_.V((A=this.data)==null?void 0:A.showMoreButtonRenderer,zoF);Q&&_.JY(_.IP(),Q.trackingParams);this.isExpanded=!this.isExpanded};
_.d.onOfferInfoClick=function(A){this.isTapOnOfferInfoContainerEnabled&&(_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.dz(_.mW(A)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.d.onBottomBarClick=function(){this.executeTapCommand()};
_.d.executeTapCommand=function(){var A,Q=(A=this.data)==null?void 0:A.tapCommand;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.d.resetStates=function(){this.isExpanded=!1};
_.Qr.Object.defineProperties(Do.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var A=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),Q,b,f;return((Q=this.data)==null?void 0:Q.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&A&&!!((b=this.data)==null?0:(f=b.benefits)==null?0:f.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((Q=_.V((A=this.data)==null?void 0:A.showMoreButtonRenderer,zoF))==null?void 0:Q.showMoreButtonTitle)||((b=this.data)==null?void 0:b.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((Q=_.V((A=this.data)==null?void 0:A.showMoreButtonRenderer,zoF))==null?void 0:Q.showLessButtonTitle)||((b=this.data)==null?void 0:b.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var A;return(A=this.showLessButtonTitle)!=null?A:""}var Q;return(Q=this.showMoreButtonTitle)!=null?Q:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((Q=this.data)==null?0:Q.footerTitle)||((b=this.data)==null?0:b.footerSubtitle))}}});
Do.prototype.dataChanged=Do.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",String)],Do.prototype,"thumbnailObjectFit",void 0);
_.E([_.C(),_.c("design:type",String)],Do.prototype,"thumbnailObjectPosition",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.c("design:type",Boolean)],Do.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.E([_.C(),_.c("design:type",Object)],Do.prototype,"isExpanded",void 0);_.E([_.C(),_.c("design:type",Object)],Do.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.footerIcon)"}),_.c("design:type",String)],Do.prototype,"icon",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Do.prototype,"dataChanged",null);_.E([_.H("data.thumbnail"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Do.prototype,"hasThumbnail",null);_.E([_.H("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Do.prototype,"enableExpandButton",null);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Do.prototype,"enableOfferContentIcon",null);_.E([_.H("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.c("design:type",Object),_.c("design:paramtypes",[])],Do.prototype,"showMoreButtonTitle",null);_.E([_.H("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.c("design:type",Object),_.c("design:paramtypes",[])],Do.prototype,"showLessButtonTitle",null);
_.E([_.H("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.c("design:type",String),_.c("design:paramtypes",[])],Do.prototype,"expandedBtnText",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Do.prototype,"enableBottomBar",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Do);
_.W(Do,"ytd-offer-card-renderer",function(){if(i4F!==void 0)return i4F;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return i4F=A},{mode:1});var Jlt;var $Y=function(){return _.q.apply(this,arguments)||this};
_.O($Y,_.q);$Y.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"}}}};
$Y.prototype.onClick=function(A){if(!_.TG(A.composedPath()||[],this.hostElement,["A".toString()])){var Q,b;if((A=(b=_.V((Q=this.data)==null?void 0:Q.actionButton,_.wE))==null?void 0:b.command)&&!this.ytComponentBehavior.resolveCommand(A)){var f;(f=_.IP())==null||f.clickCommand(A);_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})}}};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],$Y.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$Y.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],$Y);
_.W($Y,"ytd-offer-content-renderer",function(){if(Jlt!==void 0)return Jlt;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Jlt=A},{mode:1});var V7l;var NT=function(){return _.q.apply(this,arguments)||this};
_.O(NT,_.q);NT.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Qr.Object.defineProperties(NT.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.title)||!((Q=this.data)==null||!Q.description)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],NT.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],NT.prototype,"hasHeaderData",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],NT);
_.W(NT,"ytd-offer-section-renderer",function(){if(V7l!==void 0)return V7l;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return V7l=A},{mode:1});var O4t;var sj=function(){return _.q.apply(this,arguments)||this};
_.O(sj,_.q);
sj.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sj.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],sj);
_.W(sj,"ytd-offer-selection-step-renderer",function(){if(O4t!==void 0)return O4t;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return O4t=A},{mode:1});var nTN;var mg=function(){return _.q.apply(this,arguments)||this};
_.O(mg,_.q);mg.prototype.computeStyle=function(A){return A};
mg.prototype.computeImageWidth=function(A){return A==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.E([_.C({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.c("design:type",String)],mg.prototype,"containerStyle",void 0);_.E([_.C({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.c("design:type",String)],mg.prototype,"imageWidth",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mg.prototype,"data",void 0);
_.E([_.h({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],mg);
_.W(mg,"ytd-confirmation-masthead-renderer",function(){if(nTN!==void 0)return nTN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return nTN=A},{mode:1});var kpN;var Ae=function(){return _.q.apply(this,arguments)||this};
_.O(Ae,_.q);Ae.prototype.computeStyle=function(A){return A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ae.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.c("design:type",String)],Ae.prototype,"containerStyle",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Ae);
_.W(Ae,"ytd-purchase-complete-detail-renderer",function(){if(kpN!==void 0)return kpN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return kpN=A},{mode:1});var Igr;var Qk=function(){var A=_.q.apply(this,arguments)||this;A.scriptsAppended=!1;return A};
_.O(Qk,_.q);Qk.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"}}}};
Qk.prototype.onDataChanged=function(){var A=this.get("data.gtmId");A&&(_.eN(A,_.vG("GL","")),this.setupConversionTracking())};
Qk.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
Qk.prototype.onDataChanged=Qk.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Qk.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Qk.prototype,"scriptsAppended",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Qk.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Qk);
_.W(Qk,"ytd-purchase-complete-step-renderer",function(){if(Igr!==void 0)return Igr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Igr=A},{mode:1});var H4s;var bW=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(bW,_.q);bW.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bW.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bW.prototype,"darkerDarkTheme",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],bW);
_.W(bW,"ytd-ypc-transaction-error-message-renderer",function(){if(H4s!==void 0)return H4s;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return H4s=A},{mode:1});var CC7;var qSN;var fj=function(){var A=_.q.apply(this,arguments)||this;A.handlePhoneVerificationSuccess=function(Q){if(A.isValidPhoneVerificationCompletionMessageEvent(Q)){var b;((b=A.data)==null?0:b.nextStepCommand)&&A.ytComponentBehavior.resolveCommand(A.data.nextStepCommand)}};
return A};
_.O(fj,_.q);fj.prototype.isValidPhoneVerificationCompletionMessageEvent=function(A){if(A.data!=="yt-phone-verification-complete")return!1;A=_.sp(A.origin);return A!==null&&A.includes("youtube.com")};
fj.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
fj.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],fj.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fj.prototype,"data",void 0);_.E([_.Ec({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],fj);
_.W(fj,"yt-feature-enablement-soft-entry-renderer",function(){if(qSN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;CC7===void 0&&(CC7=document.createElement("template"));var f=CC7;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);qSN=A}A=qSN;return A},{mode:1});var oTx;var t7l;var rlq;var jxl;var RbO=function(){return _.q.apply(this,arguments)||this};
_.O(RbO,_.q);_.E([_.C(),_.c("design:type",Object)],RbO.prototype,"data",void 0);_.E([_.Ec({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],RbO);
_.W(RbO,"yt-benefits-item-renderer",function(){if(jxl===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;rlq===void 0&&(rlq=document.createElement("template"));var f=rlq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);jxl=A}A=jxl;return A},{mode:2});var gTt;var ebx;var aM=function(){return _.q.apply(this,arguments)||this};
_.O(aM,_.q);aM.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
aM.prototype.computeisWithoutPadding=function(){var A;return((A=this.data)==null?void 0:A.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],aM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],aM.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.c("design:type",Boolean)],aM.prototype,"isWithoutPadding",void 0);_.E([_.Ec({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],aM);
_.W(aM,"yt-benefits-section-renderer",function(){if(ebx===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;gTt===void 0&&(gTt=document.createElement("template"));var f=gTt;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ebx=A}A=ebx;return A},{mode:2});var Th=function(){return _.q.apply(this,arguments)||this};
_.O(Th,_.q);Th.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Th.prototype.computeisUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Th.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.c("design:type",Boolean)],Th.prototype,"isUsingLargeWidth",void 0);_.E([_.Ec({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Th);
_.W(Th,"yt-benefits-flow-step-renderer",function(){if(t7l===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;oTx===void 0&&(oTx=document.createElement("template"));var f=oTx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);t7l=A}A=t7l;return A},{mode:2});var hbx;var Wks;var dM=function(){return _.q.apply(this,arguments)||this};
_.O(dM,_.q);dM.prototype.checkIsUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.C(),_.c("design:type",Object)],dM.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.E([_.C({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.c("design:type",Boolean)],dM.prototype,"isUsingLargeWidth",void 0);_.E([_.Ec({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],dM);
_.W(dM,"yt-confirmation-flow-step-renderer",function(){if(Wks===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;hbx===void 0&&(hbx=document.createElement("template"));var f=hbx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Wks=A}A=Wks;return A},{mode:2});var vTd;var ETx;var xgd=function(){return _.q.apply(this,arguments)||this};
_.O(xgd,_.q);_.E([_.C(),_.c("design:type",Object)],xgd.prototype,"data",void 0);_.E([_.Ec({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],xgd);
_.W(xgd,"yt-info-flow-step-renderer",function(){if(ETx===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;vTd===void 0&&(vTd=document.createElement("template"));var f=vTd;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ETx=A}A=ETx;return A},{mode:2});var clx;var zbx;var wE7=function(){return _.q.apply(this,arguments)||this};
_.O(wE7,_.q);_.E([_.C(),_.c("design:type",Object)],wE7.prototype,"data",void 0);_.E([_.Ec({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],wE7);
_.W(wE7,"yt-info-list-flow-step-renderer",function(){if(zbx===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;clx===void 0&&(clx=document.createElement("template"));var f=clx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);zbx=A}A=zbx;return A},{mode:2});var uH7=_.aP(function(A){var Q=A.data;return _.X("styled-text-view-model",{class:_.O4("ytStyledTextViewModelHost",function(){return aRl(Q().fontAttributes)},function(){return fRq(Q().color)})},_.X(_.Rb,{text:function(){return Q().text},
ariaLabel:function(){var b,f,a;return(a=(b=Q().accessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label)!=null?a:""}}))},"of");
uH7.idomCompat=!0;var Z4O=_.aP(function(A){var Q=function(){var a,T,G,p;return(p=(G=(a=A.alt)==null?void 0:a.call(A))!=null?G:(T=A.data().accessibilityData)==null?void 0:T.label)!=null?p:""},b=function(){return A.data().imageWidth},f=function(){return A.data().imageHeight};
return _.X("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.X(_.S,{cond:function(){var a=A.data();if(a){var T,G,p;var P=((T=_.fJ().resolve(_.bu(_.Af)))==null?0:T())?(G=a.imageDark)!=null?G:a.imageLight:(p=a.imageLight)!=null?p:a.imageDark}else P=void 0;return P},
then:function(a){return _.X(_.aY,Object.assign({},A,{data:a,alt:Q,targetWidth:b,targetHeight:f,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
Z4O.idomCompat=!0;var FA=_.aP(function(A){var Q=A.data;A=_.Q0(function(){return Q().slots},[]);
var b=_.Q0(function(){return Q().layoutProperties},{}),f=_.fJ().resolve(_.bc);
return _.X("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:s7x(b,f)},_.X(_.Op,{each:A,keyBy:"INDEX"},function(a){return _.X("div",{class:"ytContainerLayoutViewModelSlot",style:s7x(function(){return a().layoutProperties},f)},_.X(_.WL,{data:function(){return a().contents}},{containerLayoutViewModel:FA,
badgeViewModel:_.Xb,buttonViewModel:_.J9,styledTextViewModel:uH7,contentPreviewImageViewModel:function(T){return _.X(_.Sv,{data:T.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(T){return _.X(Z4O,{data:T.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
FA.idomCompat=!0;var ylM=_.aP(function(A){var Q=A.data;var b=A.stateFns;var f=function(){var U=Q(),L=U.productId;return!(!U.clearGroupId&&!L)},a=function(){var U=Q(),L=U.clearGroupId;
return(U=U.productId)?b().isProductSelected(U):L?b().getSelectedProductByGroupId(L)==null:!1},T=function(){var U=Q(),L=U.clearGroupId;
if(U=U.productId)b().onProductSelected(U);else if(L)b().onClearGroupSelected(L)},G=function(){var U=Q(),L=U.clearGroupId;
if(U=U.productId){var M;return"group:"+(((M=b().getProductById(U))==null?void 0:M.groupId)||"")}return L?"group:"+L:""},p=_.Q0(function(){return Q().header},[]),P=_.Q0(function(){return Q().body},[]);
return _.X("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.X(_.S,{cond:function(){return p().length>0||f()},
then:function(){return _.X("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.X("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.X(_.WL,{data:p},{containerLayoutViewModel:function(U){return _.X("div",{class:"ytPdpCardSectionViewModelContentItem"},_.X(FA,{data:U.data}))},
styledTextViewModel:function(U){return _.X("div",{class:"ytPdpCardSectionViewModelContentItem"},_.X(uH7,{data:U.data}))}})),_.X(_.S,{cond:f,
then:function(){return _.X("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.X(_.wa,{checked:a,name:G,onChange:T}))}}))}}),_.X(_.S,{cond:function(){return P().length>0},
then:function(){return _.X("div",null,_.X(_.WL,{data:P},{containerLayoutViewModel:function(U){return _.X("div",{class:"ytPdpCardSectionViewModelContentItem"},_.X(FA,{data:U.data}))}}))}}))},"rf");
ylM.idomCompat=!0;var YSn=_.aP(function(A){var Q=A.data;var b=A.stateFns;return _.X("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.X(_.S,{cond:function(){return Q().banner},
then:function(f){return _.X("div",{class:"ytPdpCardViewModelBanner"},_.X(_.Rb,{text:f}))}}),_.X(_.WL,{data:function(){return Q().sections}},{pdpCardSectionViewModel:function(f){f=f.data;
var a={};return _.X("div",{class:_.O4("ytPdpCardViewModelSectionContainer",(a.ytPdpCardViewModelShowDividers=function(){return Q().showDividers},a))},_.X(ylM,{data:f,
stateFns:b}))}}))},"sf");
YSn.idomCompat=!0;var Dgt=_.aP(function(A){var Q=A.data;var b=A.isOverlay;A={};return _.X("pdp-masthead-view-model",{class:_.O4("ytPdpMastheadViewModelHost",(A.ytPdpMastheadViewModelIsOverlay=b,A))},_.X(_.WL,{data:function(){return Q().image}},{contentPreviewImageViewModel:_.Sv,
themedImageViewModel:function(f){return _.X(Z4O,{data:f.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.X(_.S,{cond:function(){return Q().title},
then:function(f){return _.X("h1",{class:"ytPdpMastheadViewModelHeading"},_.X(_.Rb,{text:f,isOverlay:b}))}}),_.X(_.Op,{each:function(){var f;
return(f=Q().finePrint)!=null?f:[]}},function(f){return _.X("div",{class:"ytPdpMastheadViewModelFinePrint"},_.X(_.Rb,{text:f,
isOverlay:b}))}))},"tf");
Dgt.idomCompat=!0;var $gt=_.aP(function(A){var Q=A.data;var b=A.stateFns;var f=function(){return"pdp-pricing-group-selector-"+Q().pricingGroupAttributeIds},a=_.Q0(function(){return Q().pricingGroupSelectorSectionHeader});
return _.X("pdp-pricing-group-selector-view-model",null,_.X(_.S,{cond:function(){return!!a()},
then:function(){return _.X(_.WL,{data:a},{sectionHeaderViewModel:function(T){T=T.data;var G={};return _.X("div",{class:_.O4("ytPdpPricingGroupSelectorViewModelSectionHeader",(G.ytPdpPricingGroupSelectorViewModelFullBleed=!0,G.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,G))},_.X(_.is,{data:T}))}})}}),_.X("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.X(_.Op,{each:function(){var T=b().getSelectedProductByGroupId(Q().groupId);
if(!T)return _.hq(Error("Jj`"+Q().groupId)),[];var G,p=(G=Q().pricingGroupAttributeIds)!=null?G:[],P;if((P=T.pricingGroups)==null||!P.length||!p.length)return[];G=T.pricingGroups.filter(function(l){return p.length?l.pricingGroupAttributes.every(function(J){return p.includes(J)}):!1});
T=[];if(p.length>0){G=[].concat(_.ri(G));P=_.F(p);for(var U=P.next(),L={};!U.done;L={targetAttrId:void 0},U=P.next())L.targetAttrId=U.value,U=G.findIndex(function(l){return function(J){return J.pricingGroupAttributes.includes(l.targetAttrId)}}(L)),U!==-1&&(T.push(G[U]),G.splice(U,1))}var M=b().getSelectedPricingGroupAttributesByGroupId(Q().groupId);
return T.map(function(l){var J=!1;M&&l.pricingGroupAttributes&&(J=op(l.pricingGroupAttributes,M));return{pricingGroup:l,isSelected:J}})},
keyBy:function(T){return T.pricingGroup.pricingGroupId}},function(T){return _.X("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.X("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.X(_.WL,{data:function(){return T().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:FA})),_.X("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.X(_.wa,{checked:function(){return T().isSelected},
name:f,onClick:function(){b().onPricingGroupSelected(T().pricingGroup.pricingGroupId)}})))})))},"uf");
$gt.idomCompat=!0;var NOq=_.aP(function(A){var Q=A.data;var b=A.stateFns;var f=function(){var G=b().getSelectedPricingOptions().map(function(U){return U.pricingOptionId}),p=b().getSelectedProductByGroupId(Q().groupId);
if(!p)return _.hq(Error("Kj`"+Q().groupId)),[];var P=b().getSelectedPricingGroupAttributesByGroupId(Q().groupId);return GVN(p.pricingOptions,P,G)},a=_.Q0(function(){return Q().pricingOptionSelectorSectionHeader}),T=function(){return f().length>1};
return _.X("pdp-pricing-option-selector-view-model",null,_.X(_.S,{cond:function(){return!!a()&&T()},
then:function(){return _.X(_.WL,{data:a},{sectionHeaderViewModel:function(G){G=G.data;var p={};return _.X("div",{class:_.O4("ytPdpPricingOptionSelectorViewModelSectionHeader",(p.ytPdpPricingOptionSelectorViewModelFullBleed=!0,p.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,p))},_.X(_.is,{data:G}))}})}}),_.X(_.S,{cond:T,
then:function(){return _.X("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.X(_.Op,{each:f,keyBy:"INDEX"},function(G){return _.X("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.X("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.X(_.WL,{data:function(){return G().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:FA})),_.X("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.X(_.wa,{checked:function(){return G().isSelected},
onClick:function(){b().onPricingOptionSelected(G().pricingOption.pricingOptionId);var p=G().pricingOption.onSelectPricingOption;if(p=_.ue(p)){var P;(P=_.fJ().resolve(_.de))==null||P.resolveCommand(p)}}})))}))}}))},"vf");
NOq.idomCompat=!0;var sxx=_.aP(function(A){var Q=A.data;var b=A.stateFns;return _.X("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.X(_.WL,{data:function(){var f,a;return(a=(f=b().getSelectedPricingOptions()[0])==null?void 0:f.primaryButton)!=null?a:Q().emptyStateButton}},{buttonViewModel:_.J9}))},"wf");
sxx.idomCompat=!0;var mgK=_.aP(function(A){var Q=A.stateFns;return _.X("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.X(_.WL,{data:function(){return Q().getSelectedPricingOptions().flatMap(function(b){return b.summaryLines}).filter(function(b){return!!b})}},{containerLayoutViewModel:function(b){return _.X("div",{class:"ytPdpSummaryViewModelLineItem"},_.X(FA,{data:b.data}))}}))},"xf");
mgK.idomCompat=!0;var Aqr=_.aP(function(A){function Q(g){var e=G();_.A8(_.Wi("pdpStateEntity",e,{key:e,selectedPricingOptions:g}))}
var b=A.data;var f=A.internalScrolling;var a=A.stateFnsForTesting;var T=_.Q0(function(){return b().allProducts},[]),G=_.Q0(function(){return b().pdpStateEntityKey},""),p=_.I$(BNn,G),P=_.Lz(function(){_.o7(!0);
var g;return(g=a==null?void 0:a())!=null?g:Pdd(p,T,Q)},void 0,"pjJzrd"),U=_.Q0(function(){return b().body},[]),L=_.Q0(function(){return b().columnBreakHints},[]),M=function(){return b().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},l=function(){return M()||b().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},J=_.Lz(function(){var g=_.mm(b().background),e;
if(g==null?0:(e=g.sources)==null?0:e.length){var x=x===void 0?!0:x;g=_.USi(void 0,g.sources,void 0,x,x?1E3:void 0,x?void 0:1E3)}else g=null;return g},void 0,"GO4GAe");
A=_.qM({"--pdp-view-model-background":function(){return J()?"url("+J()+")":void 0}});
var n={};f=_.O4("ytPdpViewModelHost",(n.ytPdpViewModelHasBackground=function(){return l()||!!J()},n.ytPdpViewModelHasDarkBackground=l,n.ytPdpViewModelHasScrim=M,n.ytPdpViewModelInternalScrolling=_.Q0(f,!1),n));
var t=function(g){var e={};return _.O4("ytPdpViewModelItem",(e.ytPdpViewModelFullBleed=function(){return _.aCY(g())==="dividerViewModel"||_.aCY(g())==="sectionHeaderViewModel"},e.ytPdpViewModelNoVerticalPadding=function(){return _.aCY(g())==="sectionHeaderViewModel"},e))};
_.tz(function(){var g=b().onStartCommand;if(g&&(g=_.ue(g))){var e;(e=_.fJ().resolve(_.de))==null||e.resolveCommand(g)}});
return _.X("pdp-view-model",{class:f,style:A},_.X("div",{class:"ytPdpViewModelColumnContainer"},_.X(_.Op,{each:function(){return XGF(U(),L())},
keyBy:"INDEX"},function(g){return _.X("div",{class:"ytPdpViewModelColumn"},_.X(_.WL,{data:g},{containerLayoutViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(FA,{data:e}))},
dividerViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(_.kJx,{data:e}))},
pdpCardViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(YSn,{data:e,
stateFns:P}))},
pdpMastheadViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(Dgt,{data:e,
isOverlay:l}))},
pdpPricingGroupSelectorViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X($gt,{data:e,
stateFns:P}))},
pdpPricingOptionSelectorViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(NOq,{data:e,
stateFns:P}))},
pdpPrimaryButtonViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(sxx,{data:e,
stateFns:P}))},
pdpSummaryViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(mgK,{data:e,
stateFns:P}))},
sectionHeaderViewModel:function(e,x){e=e.data;return _.X("div",{class:t(function(){return g()[x()]})},_.X(_.is,{data:e}))}}))})))},"yf");
Aqr.idomCompat=!0;_.pE(Aqr,"pdp-view-model",{props:{data:_.Qf,stateFnsForTesting:_.Bz,internalScrolling:_.Bz}});var Q4x=_.aP(function(A){var Q=A.data;var b=A.className;var f=_.I$(_.b6,function(){return Q().flowStateEntityKey});
return _.X("ytm-premium-purchase-button-renderer",{class:_.O4("yt-premium-purchase-button-renderer",b)},_.X(_.WL,{data:function(){var a;return(a=_.V(f(),UqM))==null?void 0:a.primaryButtonOverride}},{buttonRenderer:function(a){return _.X(_.QM,{data:a.data,
className:b})},
buttonViewModel:function(a){return _.X(_.J9,{data:a.data,className:b})}}))},"zf");
Q4x.idomCompat=!0;var bux=_.aP(function(A){var Q=A.data;A=A.className;var b=function(){return Spx(Q().style)},f=_.O4("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",b),a=_.O4("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",b);
return _.X("yt-flow-bottom-bar-renderer",{class:_.O4("yt-flow-bottom-bar-renderer",A,b)},_.X(_.WL,{data:function(){return Q().secondaryButton}},{buttonRenderer:function(T){return _.X(_.QM,{data:T.data,
className:a})},
buttonViewModel:function(T){return _.X(_.J9,{data:T.data,className:a})},
premiumPurchaseButtonRenderer:function(T){return _.X(Q4x,{data:T.data,className:a})}}),_.X(_.WL,{data:function(){return Q().primaryButton}},{buttonRenderer:function(T){return _.X(_.QM,{data:T.data,
className:f})},
buttonViewModel:function(T){return _.X(_.J9,{data:T.data,className:f})},
premiumPurchaseButtonRenderer:function(T){return _.X(Q4x,{data:T.data,className:f})}}))},"Af");
bux.idomCompat=!0;_.pE(bux,"yt-flow-bottom-bar-renderer",{props:{data:_.Qf,className:_.Qf}});var flx=_.aP(function(A){var Q=_.O4(A.className,"ytOfferSummaryRendererHost");return _.X("yt-offer-summary-renderer",{class:Q},_.X("div",{class:"ytOfferSummaryRendererTextContainer"},_.X("div",{class:"ytOfferSummaryRendererEyebrowText"},_.X(_.Rb,{text:function(){return A.data().eyebrowText}})),_.X("div",{class:"ytOfferSummaryRendererTitle"},_.X(_.Rb,{text:function(){return A.data().title}})),_.X("div",{class:"ytOfferSummaryRendererSubtitle"},_.X(_.Rb,{text:function(){return A.data().subtitle}})),
_.X("div",{class:"ytOfferSummaryRendererFeatureListData"},_.X(_.Op,{each:function(){var b;
return(b=A.data().featureListData)!=null?b:[]}},function(b){var f;
return _.X("div",{class:"ytOfferSummaryRendererFeatureList"},_.X(_.oY,{icon:(f=b.icon)==null?void 0:f.iconType,active:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(b.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"}}}),_.X("div",{class:"ytOfferSummaryRendererFeatureListText"},_.X(_.Rb,{text:b.text,
className:function(){return b.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.X("div",{class:"ytOfferSummaryRendererDescription"},_.X(_.Rb,{text:function(){return A.data().description}}))))},"Bf");_.pE(_.aP(function(A){var Q={};Q=_.O4("ytOfferSummaryFlowStepRendererHost",(Q.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=A.shouldDisableHeaderTopMargin,Q));return _.X("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:Q},_.X("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.X("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.X(_.Rb,{text:function(){return A.data().header}})),_.X("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.X(_.Rb,{text:function(){return A.data().subtitle}}))),_.X("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.X(_.WL,{data:function(){return A.data().offerSummary}},{offerSummaryRenderer:function(b){return _.X(flx,{data:b.data,
className:A.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Bz,
flowClassName:_.Bz,flowStateEntityKey:_.Bz,shouldDisableHeaderTopMargin:_.Bz}});var alO=_.aP(function(A){var Q=A.data;var b=A.className;var f=A.flowStateEntityKey;var a=A.selectionStepStyle;A=_.IY(function(P){var U=Q(),L=f==null?void 0:f();P.target&&(P.stopPropagation(),P=L||"",L=_.b6(_.m5().getState(),P),U=Object.assign({},L,{premiumPurchaseFlowState:{selectedOptionId:U.optionId,primaryButtonOverride:U.primaryButtonOverride}}),_.m5().dispatch(_.HL("flowStateEntity",P,U)));return!1});
var T=function(){return(f==null?void 0:f())||""},G=_.I$(_.b6,T);
_.tz(function(){var P=Q(),U=T(),L=G();P.defaultSelected&&U!==""&&P.primaryButtonOverride&&LRq(P.optionId||"",U,P.primaryButtonOverride,L)});
var p={};return _.X("ytm-option-item-renderer",{"on:click":A,class:_.O4(b,"ytm-option-item-renderer",(p["ytm-option-item-renderer--lp2-style"]=function(){return(a==null?void 0:a())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},p))},_.X("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.X("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var P=Q(),U=T(),L=G();L=_.V(L,UqM);return(L?(L==null?void 0:L.selectedOptionId)||"":P.defaultSelected&&U!==""?(P==null?void 0:P.optionId)||"":"")===Q().optionId},
name:("input"+_.WX(_.EI)).toString()})),_.X("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.X(_.WL,{data:function(){return Q().titleBadge}},{badgeViewModel:function(P){return _.X(_.Xb,{data:P.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.X(_.S,{cond:function(){return Q().eyebrowText},
then:function(){return _.X("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.X(_.Rb,{text:function(){return Q().eyebrowText}}))}}),_.X("div",{class:"ytm-option-item-renderer__option-item-title"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.X(_.Rb,{text:function(){return Q().subtitle}})),_.X(_.S,{cond:function(){return Q().featureListData},
then:function(){return _.X("div",{class:"ytm-option-item-renderer__feature-list-data"},_.X(_.Op,{each:function(){return Q().featureListData||[]}},function(P){var U,L=(U=P.icon)==null?void 0:U.iconType;
a:switch(P.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":U="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":U="ytm-option-item-renderer__feature-list-icon-small";break a;default:U="ytm-option-item-renderer__feature-list-icon-default"}return _.X("div",{class:"ytm-option-item-renderer__feature-list"},_.X(_.oY,{icon:L,className:U,active:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.X("div",{class:"ytm-option-item-renderer__feature-list-text"},_.X(_.Rb,{text:P.text,
className:function(){return P.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.X("div",{class:"ytm-option-item-renderer__option-item-description"},_.X(_.Rb,{text:function(){return Q().description}}))))},"Df");var ToM=_.aP(function(A){var Q=A.data;var b=A.flowClassName;var f=A.flowStateEntityKey;var a=A.selectionStepStyle;return _.X("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.X("div",{class:"yt-option-section-renderer__option-section-header-section"},_.X("div",{class:"yt-option-section-renderer__option-section-header"},_.X(_.Rb,{text:function(){return Q().title}}),_.X(_.WL,{data:function(){return Q().titleBadge}},{badgeViewModel:function(T){return _.X(_.Xb,
{data:T.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(){return _.X("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.X(_.Rb,{text:function(){return Q().subtitle}}))}}),_.X(_.S,{cond:function(){return Q().featureListData},
then:function(T){return _.X("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.X(_.Op,{each:T},function(G){var p;return _.X("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.X(_.oY,{icon:(p=G.icon)==null?void 0:p.iconType,active:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(G.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.X("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.X(_.Rb,{text:G.text,
className:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.X(_.S,{cond:function(){return Q().secondaryTitle},
then:function(){return _.X("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.X(_.Rb,{text:function(){return Q().secondaryTitle}}))}}),_.X(_.Op,{each:function(){return Q().sectionDisclaimers||[]}},function(T){return _.X("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.X(_.Rb,{text:T}))})),_.X(_.WL,{data:function(){return Q().optionItems}},{optionItemRenderer:function(T){return _.X("div",{class:"yt-option-section-renderer__option-item"},_.X(alO,{data:T.data,
className:b,flowStateEntityKey:f,selectionStepStyle:a}))}}),_.X(_.S,{cond:function(){return Q().offerText},
then:function(){return _.X("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.X(_.Rb,{text:function(){return Q().offerText}}))}}))},"Ef");
ToM.idomCompat=!0;var d3x=_.aP(function(A){var Q=A.data;var b=A.flowClassName;var f=A.flowStateEntityKey;A=A.isDesktop;var a=function(){var U;return(U=Q().flowStateEntityKey)!=null?U:f==null?void 0:f()},T=function(){return(a==null?void 0:a())||""},G=function(){return Q().style},p=_.I$(_.b6,T);
_.tz(function(){var U=Q(),L=T(),M=p();!_.V(M,UqM)&&U.noPreselect&&L!==""&&U.defaultButtonOverride&&LRq("default",L,U.defaultButtonOverride,M)});
var P={};return _.X("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.O4("ytm-option-selection-flow-step-renderer",(P["ytm-option-selection-flow-step-renderer--desktop"]=A,P["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return Q().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},P))},_.X("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"},
_.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.X(_.Rb,{text:function(){return Q().header}})),_.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.X(_.Rb,{text:function(){return Q().subtitle}}))),_.X(_.WL,{data:function(){return Q().optionItems||[]}},{optionItemRenderer:function(U){return _.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.X(alO,{data:U.data,
className:b,flowStateEntityKey:a,selectionStepStyle:G}))},
optionSectionRenderer:function(U){return _.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.X(ToM,{data:U.data,flowClassName:b,flowStateEntityKey:a,selectionStepStyle:G}))}}))},"Ff");
d3x.idomCompat=!0;_.pE(d3x,"yt-option-selection-flow-step-renderer",{props:{data:_.Qf,flowClassName:_.Qf,flowStateEntityKey:_.Qf,isDesktop:_.Qf}});var M6F,lRt;_.Gh=_.aP(function(A){var Q=_.be(A,{type:1,disablePadding:!1,disablePrimaryButton:!1}),b=Q.data,f=Q.type;A=Q.disablePadding;var a=Q.disablePrimaryButton,T=Q.onClickPrimaryButton,G=function(){return b().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},p=function(){return{disabled:a(),
state:a()?"disabled":"active"}},P=function(){return b().leadingLabel||b().trailingLabel};
Q={};return _.X("yt-panel-footer-view-model",{class:_.O4("yt-panel-footer-view-model-wiz",(Q["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return b().shouldHideDivider},Q["yt-panel-footer-view-model-wiz--disable-padding"]=A,Q))},_.X(_.S,{cond:P,
then:function(){var U={},L={};return _.X("div",{class:_.O4("yt-panel-footer-view-model-wiz__text-row",(U["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var M=b();return!(!M.leadingLabel&&!M.trailingLabel||!M.primaryButton&&!M.secondaryButton)},U))},_.X(_.Rb,{text:function(){return b().leadingLabel},
className:_.O4((L["yt-panel-footer-view-model-wiz--text-padding"]=P,L))}),_.X(_.Rb,{text:function(){return b().trailingLabel}}))}}),_.X(_.S,{cond:G,
then:function(){var U={};return _.X("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.X("div",{class:_.O4("yt-panel-footer-view-model-wiz__primary-button",(U["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return b().secondaryButton},U))},_.X(_.WL,{data:function(){return b().primaryButton}},{buttonViewModel:function(L){return _.X(_.J9,{data:L.data,
buttonOverrides:p,onClick:T})}})),_.X(_.WL,{data:function(){return b().secondaryButton}},{buttonViewModel:_.J9}))}}),_.X(_.S,{cond:function(){return!G()},
then:function(){var U={},L={},M={};return _.X("div",{class:_.O4("yt-panel-footer-view-model-wiz__button-row",(U["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===f()},U))},_.X("div",{class:_.O4("yt-panel-footer-view-model-wiz__button-row--left-button",(L["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===f()},L["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!b().secondaryButton||0===f()},L["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===f()},L))},_.X(_.WL,{data:function(){return b().secondaryButton}},{buttonViewModel:_.J9})),_.X("div",{class:_.O4("yt-panel-footer-view-model-wiz__primary-button",(M["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===f()||1===f()},M["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===f()},M))},_.X(_.WL,{data:function(){return b().primaryButton}},{buttonViewModel:function(l){return _.X(_.J9,{data:l.data,
buttonOverrides:p,onClick:T})}})))}}))},"Gf");
_.Gh.idomCompat=!0;_.FSq=_.aP(function(A){A=_.be(A,{disablePadding:!1});var Q=A.data,b=A.disablePadding;A=_.V6x(function(){return Q().formId});
var f=A.onSubmit,a=A.isValid,T=A.isSubmitting;return _.X("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.X(_.WL,{data:function(){return Q().panelFooter}},{panelFooterViewModel:function(G){return _.X(_.Gh,{data:G.data,
onClickPrimaryButton:function(){f()},
disablePrimaryButton:function(){return!a()||T()},
disablePadding:b})}}))},"Hf");_.pE(_.FSq,"yt-form-footer-view-model",{props:{data:_.Qf,disablePadding:_.Qf}});_.pE(_.aP(function(A){var Q=_.K("enable_user_rating_web");return _.X("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.X("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.X(_.S,{cond:function(){var b;return(b=A.data())==null?void 0:b.image},
then:function(b){return _.X(_.aY,{data:b,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.X("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.X(_.Rb,{text:function(){var b;
return(b=A.data())==null?void 0:b.title}})),_.X("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.X(_.Rb,{text:function(){var b;
return(b=A.data())==null?void 0:b.subtitle}})),_.X(_.S,{cond:function(){return!Q},
then:function(){return _.X(_.WL,{data:function(){var b;return(b=A.data())==null?void 0:b.viewTipsButton}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.Qf}});var GDn=_.aP(function(A){var Q=function(){var b;return(b=A.data())==null?void 0:b.image};
return _.X("yt-featured-content-item-view-model",{class:_.O4("ytFeaturedContentItemViewModelHost")},_.X("div",{class:_.O4(function(){return Q()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.X("div",{class:function(){return Q()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.X(_.S,{cond:Q,
then:function(){return _.X("div",{class:"ytFeaturedContentItemViewModelImage"},_.X(_.WL,{data:function(){return A.data().image}},{themedImageViewModel:function(b){return _.X(Z4O,{data:b.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.X(_.S,{cond:function(){var b;
return!Q()&&((b=A.data())==null?void 0:b.iconName)},
then:function(){return _.X("div",{class:"ytFeaturedContentItemViewModelIcon"},_.X(_.oY,{icon:function(){return A.data().iconName}}))}}),_.X("div",{class:"ytFeaturedContentItemViewModelContent"},_.X(_.S,{cond:function(){var b;
return(b=A.data())==null?void 0:b.title},
then:function(){return _.X("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.X(_.Rb,{text:function(){return A.data().title}}))}}),_.X(_.S,{cond:function(){var b;
return(b=A.data())==null?void 0:b.body},
then:function(){return _.X("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.X(_.Rb,{text:function(){return A.data().body}}))}})))))},"Jf");var Bos=_.aP(function(A){var Q=function(){var a;return OHN((a=A.data())==null?void 0:a.titleFontSize)},b=function(){var a;
return nQN((a=A.data())==null?void 0:a.descriptionFontSize)},f=function(){var a;
return((a=A.data())==null?void 0:a.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.X("yt-landing-page-view-model",{class:_.O4("ytLandingPageViewModelHost",A.className)},_.X("div",{class:"ytLandingPageViewModelHeader"},_.X(_.S,{cond:function(){var a;return(a=A.data())==null?void 0:a.bannerImage},
then:function(a){return _.X("div",{class:"ytLandingPageViewModelHeaderImage"},_.X(_.WL,{data:function(){return a()}},{imageBannerViewModel:function(T){return _.X(_.DP,{data:T.data,
isPositionRelative:!0})}}))}}),_.X(_.S,{cond:function(){var a;
return(a=A.data())==null?void 0:a.bannerAnimation},
then:function(a){return _.X(_.X6,{data:function(){var T=a();if(T==null?0:T.url){var G;T={path:(G=T==null?void 0:T.url)!=null?G:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(T==null?0:T.payload){var p;T={animationData:JSON.parse((p=T==null?void 0:T.payload)!=null?p:""),autoplay:!0,loop:!0,renderer:"svg"}}else T=void 0;return{animationConfig:T}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.X("div",{class:"ytLandingPageViewModelHeaderTitle"},_.X(_.S,{cond:function(){var a;
return(a=A.data())==null?void 0:a.title},
then:function(a){return _.X("div",{class:_.O4("ytLandingPageViewModelHeaderTitleContent",Q)},_.X(_.Rb,{text:function(){return a()}}))}}),_.X(_.S,{cond:function(){var a;
return(a=A.data())==null?void 0:a.description},
then:function(a){var T={};return _.X(_.Rb,{className:_.O4("ytLandingPageViewModelHeaderTitleDescription",b,(T.ytLandingPageViewModelHeaderTitleDescriptionMargin=f,T)),text:function(){return a()}})}}))),_.X(_.S,{cond:function(){var a,T;
return(a=A.data())==null?void 0:(T=a.featuredContentList)==null?void 0:T.length},
then:function(){return _.X("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.X(_.WL,{data:function(){return A.data().featuredContentList}},{featuredContentItemViewModel:function(a){return _.X(GDn,{data:a.data})}}))}}),_.X(_.S,{cond:function(){var a,T;
return(a=A.data())==null?void 0:(T=a.expandableContentList)==null?void 0:T.length},
then:function(){return _.X("div",{class:"ytLandingPageViewModelFaqSection"},_.X(_.WL,{data:function(){return A.data().expandableContentList}},{faqEntryViewModel:function(a){return _.X("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.X(_.GJx,{data:a.data}))}}))}}),_.X("div",{class:"ytLandingPageViewModelFooter"},_.X(_.S,{cond:function(){var a;
return(a=A.data())==null?void 0:a.legalCopy},
then:function(a){return _.X("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.X(_.Rb,{text:function(){return a()}}))}}),_.X(_.S,{cond:function(){var a;
return(a=A.data())==null?void 0:a.actions},
then:function(a){return _.X("div",null,_.X(_.WL,{data:function(){return a()}},{flexibleActionsViewModel:function(T){return _.X(_.WF,{data:T.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Kf");_.pE(_.aP(function(A){return _.X("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.X("div",{class:"ytLpSectionGroupViewModelContainer"},_.X(_.WL,{data:function(){return A.data().sections}},{landingPageViewModel:function(Q){return _.X(Bos,{data:Q.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Lf"),"yt-lp-section-group-view-model",{props:{data:_.Qf}});var pvN=_.aP(function(A){var Q=_.I$(kVK,_.Q0(function(){var p;return(p=A.data())==null?void 0:p.noteFeedEntityKey},"")),b=_.I$(e4N,_.Q0(function(){var p;
return(p=A.data())==null?void 0:p.userRatingEntityKey},"")),f=_.K("enable_user_rating_web"),a=function(){var p,P,U;
return((p=Q())==null?0:p.contributorNote)?(P=Q())==null?void 0:P.contributorNote:(U=A.data())==null?void 0:U.existingNote},T=function(){var p,P;
return!!b()&&!!IRr((p=b())==null?void 0:p.helpfulnessValue,(P=A.data())==null?void 0:P.noteData)};
if(f){var G={};return _.X("yt-note-view-model",{class:_.O4("ytNoteViewModelHostUserRating",(G.ytNoteViewModelHostUserRatingPublishedNote=function(){var p,P;return(p=A.data())==null?void 0:(P=p.noteData)==null?void 0:P.isPublished},G))},_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.X(_.S,{cond:function(){var p,P;
return(p=A.data())==null?void 0:(P=p.noteData)==null?void 0:P.isPinned},
then:function(){return _.X(_.oY,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.X(_.S,{cond:function(){var p,P;return(p=A.data())==null?void 0:(P=p.noteData)==null?void 0:P.isPublished},
then:function(){return _.X(_.oY,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.X(_.WL,{data:function(){var p;
return(p=A.data())==null?void 0:p.metadata}},{contentMetadataViewModel:_.UM}),_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var p,P;
return(P=_.V((p=A.data())==null?void 0:p.metadata,_.E3$))==null?void 0:P.delimiter}),_.X(_.Rb,{text:function(){var p;
return(p=a())==null?void 0:p.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.X(_.WL,{data:function(){var p,P,U,L,M,l,J,n=!!((p=A.data())==null?0:(P=p.noteData)==null?0:P.isPinned);p=T();P=(U=A.data())==null?void 0:U.noteData;U=(L=Q())==null?void 0:(M=L.contributorNote)==null?void 0:M.deleteAction;L=(l=A.data())==null?void 0:l.overflowButtonNoteWithRatingOnTapOverride;l=(J=A.data())==null?void 0:J.overflowButton;return n?HHn(P,U):p?{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:L}}:l}},{buttonViewModel:function(p){return _.X(_.J9,{data:p.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.X("div",{class:"ytNoteViewModelNoteContent"},_.X(_.Rb,{text:function(){var p;
return(p=a())==null?void 0:p.text}})),_.X(_.S,{cond:function(){var p,P;
return!((p=A.data())==null?0:(P=p.noteData)==null?0:P.isPinned)},
then:function(){return _.X(_.S,{cond:T,then:function(){return _.X("div",{class:"ytNoteViewModelUserRatingContainer"},_.X(_.Rb,{text:function(){var p,P;return IRr((p=b())==null?void 0:p.helpfulnessValue,(P=A.data())==null?void 0:P.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.X(_.WL,{data:function(){var p;return(p=A.data())==null?void 0:p.userRatingButton}},{buttonViewModel:function(p){return _.X(_.J9,{data:p.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.X(_.S,{cond:function(){var p,P;
return!((p=A.data())==null?0:(P=p.noteData)==null?0:P.ignoreDivider)},
then:function(){return _.X("div",{class:"ytNoteViewModelDivider"},_.X(_.WL,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(p){return _.X(_.kJx,{data:p.data})}}))}}))}return _.X("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.X(_.S,{cond:function(){var p,P;return(p=A.data())==null?void 0:(P=p.noteData)==null?void 0:P.isPinned},
then:function(){return _.X(_.oY,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.X(_.S,{cond:function(){var p,P;return(p=A.data())==null?void 0:(P=p.noteData)==null?void 0:P.isPublished},
then:function(){return _.X(_.oY,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.X(_.S,{cond:function(){return f},
then:function(){return _.X(_.WL,{data:function(){var p;return(p=A.data())==null?void 0:p.metadata}},{contentMetadataViewModel:function(p){return _.X(_.UM,{data:p.data})}})}}),_.X(_.Rb,{text:function(){var p,P;
return(p=A.data())==null?void 0:(P=p.noteData)==null?void 0:P.headerText}}),_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.X(_.Rb,{text:function(){var p,P;
return(p=A.data())==null?void 0:(P=p.noteData)==null?void 0:P.delimiter}})),_.X(_.Rb,{text:function(){var p,P;
return(p=Q())==null?void 0:(P=p.contributorNote)==null?void 0:P.publishedTimeText}})),_.X(_.WL,{data:function(){var p,P,U;
return HHn((p=A.data())==null?void 0:p.noteData,(P=Q())==null?void 0:(U=P.contributorNote)==null?void 0:U.deleteAction)}},{buttonViewModel:function(p){return _.X(_.J9,{data:p.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.X("div",{class:"ytNoteViewModelNoteContent"},_.X(_.Rb,{text:function(){var p,P;
return(p=Q())==null?void 0:(P=p.contributorNote)==null?void 0:P.text}})))},"Mf");
pvN.idomCompat=!0;_.pE(pvN,"yt-note-view-model",{props:{data:_.Qf}});var BC=_.aP(function(A){var Q=_.be(A,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),b=Q.label,f=Q.text,a=Q.placeholder,T=Q.hint;A=Q.rows;var G=Q.overflowStyle,p=Q.outline,P=Q.disabled,U=Q.disableNewLines,L=Q.characterLimit,M=Q.validation,l=Q.onInput,J=_.st("textarea");Q=_.F(_.CE(function(){return f()}));
var n=Q.next().value,t=Q.next().value;Q=_.F(_.pz(!1,void 0,"fXvinf"));var g=Q.next().value,e=Q.next().value,x=function(){e(!0)},D=function(){e(!1)};
_.tz(function(){var wW=J.value,h4=G(),SW=n();h4==="expand-vertically"&&SW&&Cdx(wW);J.value.addEventListener("focusin",x);J.value.addEventListener("focusout",D)});
_.Cz(function(){J.value.removeEventListener("focusin",x);J.value.removeEventListener("focusout",D)});
var w=function(){var wW;return(wW=M())==null?void 0:wW.validate(n())},u=function(){return L()&&!w()&&n().length>L().maxChars},y=function(){return!!w()||u()};
Q=_.IY(function(wW){if(!wW.currentTarget)return!1;wW=wW.currentTarget;t(wW.value);G()==="expand-vertically"&&Cdx(wW);l==null||l(wW.value);return!0});
var a9=_.IY(function(wW){U()&&wW.key==="Enter"&&wW.preventDefault();return!1}),pF=_.IY(function(){J.value.focus()}),Ub=function(){return a()||b()},Ob={},I9={},iy={};
return _.X("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.X("div",{class:_.O4("ytStandardsTextareaShapeTextareaContainer",(Ob.ytStandardsTextareaShapeTextareaContainerOutline=p,Ob.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=P,Ob.ytStandardsTextareaShapeTextareaContainerOutlineError=y,Ob)),"on:click":pF},_.X("label",{class:_.O4("ytStandardsTextareaShapeLabel",(I9.ytStandardsTextareaShapeLabelFocused=g,I9.ytStandardsTextareaShapeLabelDisabled=P,I9.ytStandardsTextareaShapeLabelError=
function(){return y()&&!P()},I9.ytStandardsTextareaShapeLabelHidden=function(){return!g()&&!n()&&!!Ub()},I9))},b),_.X("div",{class:_.O4("ytStandardsTextareaShapePlaceholder",(iy.ytStandardsTextareaShapePlaceholderVisible=function(){return!g()&&!n()},iy)),
"aria-hidden":"true"},Ub),_.X("textarea",{el:J,class:"ytStandardsTextareaShapeTextarea",rows:A,disabled:P,placeholder:Ub,"on:input":Q,"on:keydown":a9},n)),_.X(_.S,{cond:function(){return T()&&!y()},
then:function(){var wW={};return _.X("div",{class:_.O4("ytStandardsTextareaShapeHint",(wW.ytStandardsTextareaShapeHintDisabled=P,wW))},_.X("div",{class:"ytStandardsTextareaShapeHintHintMessage"},T))}}),_.X(_.S,{cond:w,
then:function(){return _.X(Pv7,{disabled:P},_.X("div",{class:"ytStandardsTextareaShapeErrorMessage"},w))}}),_.X(_.S,{cond:L,
then:function(wW){return _.X(_.S,{cond:u,then:function(){return _.X(Pv7,{disabled:P},_.X("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return wW().errorMessage}),_.X("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return n().length+"/"+wW().maxChars}))}})}}))},"Nf");
BC.idomCompat={callbacks:{onInput:!0}};var Pv7=_.aP(function(A){var Q={};return _.X("div",{class:_.O4("ytStandardsTextareaShapeError",(Q.ytStandardsTextareaShapeErrorDisabled=A.disabled,Q)),role:"alert"},_.X(_.oY,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),A.children)},"Of");_.Xv7=_.aP(function(A){var Q=A.data;return _.X("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.X(BC,{text:A.text,label:function(){var b;return(b=Q().contentProperties)==null?void 0:b.labelText},
placeholder:function(){var b;return(b=Q().contentProperties)==null?void 0:b.placeholderText},
hint:function(){var b;return(b=Q().contentProperties)==null?void 0:b.hintText},
outline:function(){var b;return!((b=Q().displayProperties)==null?0:b.hideBorder)},
overflowStyle:function(){var b;return((b=Q().displayProperties)==null?0:b.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:A.disabled,disableNewLines:function(){var b;return(b=Q().displayProperties)==null?void 0:b.disableNewLines},
onInput:A.onInput,characterLimit:A.characterLimit,validation:A.validation,rows:function(){var b;return(b=Q().displayProperties)==null?void 0:b.rows}}))},"Pf");_.St7=_.aP(function(A){var Q=A.data;return _.X("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.X(BC,{text:A.text,label:function(){var b;return(b=Q().contentProperties)==null?void 0:b.labelText},
placeholder:function(){var b;return(b=Q().contentProperties)==null?void 0:b.placeholderText},
hint:function(){var b;return(b=Q().contentProperties)==null?void 0:b.hintText},
outline:function(){var b;return!((b=Q().displayProperties)==null?0:b.hideBorder)},
overflowStyle:function(){var b;return((b=Q().displayProperties)==null?0:b.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var b;return(b=Q().displayProperties)==null?void 0:b.disableNewLines},
onInput:A.onInput,characterLimit:A.characterLimit,validation:A.validation,rows:function(){var b;return(b=Q().displayProperties)==null?void 0:b.rows}}))},"Qf");var U3s=_.aP(function(A){var Q=_.F(_.CE(function(){var Ub,Ob;return((Ub=A.data().structuredContextNoteFormSchema)==null?0:(Ob=Ub.initialValues)==null?0:Ob.noteBody)?A.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),b=Q.next().value,f=Q.next().value;
Q=_.F(_.CE(function(){A.data();return!1}));
var a=Q.next().value,T=Q.next().value;Q=_.F(_.CE(function(){A.data();return!1}));
var G=Q.next().value,p=Q.next().value;Q=_.F(_.CE(function(){var Ub,Ob;return((Ub=A.data().structuredContextNoteFormSchema)==null?0:(Ob=Ub.initialValues)==null?0:Ob.timestamp)?A.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var P=Q.next().value,U=Q.next().value;Q=_.F(_.CE(function(){A.data();return!1}));
var L=Q.next().value,M=Q.next().value;Q=_.F(_.CE(function(){var Ub,Ob;return((Ub=A.data().structuredContextNoteFormSchema)==null?0:(Ob=Ub.initialValues)==null?0:Ob.sources)?[A.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var l=Q.next().value,J=Q.next().value;Q=_.F(_.CE(function(){A.data();return!1}));
var n=Q.next().value,t=Q.next().value;Q=_.F(_.CE(function(){return!1}));
var g=Q.next().value,e=Q.next().value;_.tz(function(){var Ub;_.Jzt((Ub=A.data().structuredContextNoteFormSchema)==null?void 0:Ub.id,{isSubmitting:g,onSubmit:function(){e(!0);var Ob=hgl(b(),P(),l(),A.data()),I9=_.fJ().resolve(_.de);Ob&&I9&&I9.resolveCommand(Ob,{commandController:{onSuccess:function(){e(!1)}}})},
isValid:function(){return a()&&!G()&&!L()&&!n()}})});
var x=function(Ub){if(Ub!==void 0&&(f(Ub),!a()&&Ub.length>0&&T(!0),a())){var Ob=t6t(A.data());if(Ob){var I9=Ob.minLength;Ob=Ob.maxLength;I9&&Ub.length<I9?p(!0):Ob&&Ub.length>Ob?p(!0):p(!1)}}},D=function(Ub){if(Ub!==void 0){U(Ub);
if(Ub.length>0){var Ob,I9,iy,wW,h4=j8q((Ob=A.data())==null?void 0:(I9=Ob.structuredContextNoteFormSchema)==null?void 0:(iy=I9.fieldSchemas)==null?void 0:(wW=iy.timestamp)==null?void 0:wW.validationSchema);if(h4&&(Ob=h4.regex)&&!(new RegExp(Ob)).test(Ub)){M(!0);return}}M(!1)}},w=function(Ub){if(Ub!==void 0){var Ob=Ub.split(/[ \n]/).map(function(I9){return I9.trim()});
J(Ob);if(Ub.length>0)for(Ub=_.F(Ob),Ob=Ub.next();!Ob.done;Ob=Ub.next())if(!egr(Ob.value)){t(!0);return}t(!1)}},u=function(){return{validate:function(Ub){if(a()){var Ob=t6t(A.data());
if(Ob){var I9=Ob.minLength;Ob=Ob.translations;if(I9&&Ub.length<I9)return Ob==null?void 0:Ob.minLengthErrorMessage}}}}},y=function(){var Ub=t6t(A.data()),Ob=Ub==null?void 0:Ub.maxLength,I9;
Ub=Ub==null?void 0:(I9=Ub.translations)==null?void 0:I9.maxLengthErrorMessage;if(Ob&&Ub)return{maxChars:Ob,errorMessage:Ub}},a9=function(){return{validate:function(Ub){if(Ub){var Ob,I9,iy,wW,h4=j8q((Ob=A.data())==null?void 0:(I9=Ob.structuredContextNoteFormSchema)==null?void 0:(iy=I9.fieldSchemas)==null?void 0:(wW=iy.timestamp)==null?void 0:wW.validationSchema);
if(h4&&(Ob=h4.regex,h4=h4.translations,Ob&&!(new RegExp(Ob)).test(Ub)))return h4==null?void 0:h4.regexErrorMessage}}}},pF=function(){return{validate:function(Ub){if(Ub){var Ob,I9,iy,wW,h4=gQN((Ob=A.data())==null?void 0:(I9=Ob.structuredContextNoteFormSchema)==null?void 0:(iy=I9.fieldSchemas)==null?void 0:(wW=iy.sources)==null?void 0:wW.validationSchema);
if(h4&&(Ob=h4.translations,Ob==null?0:Ob.selectedErrorMessage))for(Ub=Ub.split(/[ \n]/).map(function(SW){return SW.trim()}),Ub=_.F(Ub),I9=Ub.next();!I9.done;I9=Ub.next())if(!egr(I9.value))return Ub=void 0,(Ub=Ob)==null?void 0:Ub.selectedErrorMessage}}}};
return _.X("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.X("div",{class:"ytStructuredContextNoteViewModelTextField"},_.X(_.WL,{data:function(){var Ub;return(Ub=A.data())==null?void 0:Ub.noteContents}},{textFormFieldViewModel:function(Ub){return _.X(_.St7,{data:Ub.data,
onInput:x,validation:u,characterLimit:y})},
textFieldViewModel:function(Ub){return _.X(_.Xv7,{data:Ub.data,onInput:x,validation:u,characterLimit:y})}})),_.X("div",{class:"ytStructuredContextNoteViewModelTextField"},_.X(_.WL,{data:function(){var Ub;
return(Ub=A.data())==null?void 0:Ub.noteTimestamp}},{textFormFieldViewModel:function(Ub){return _.X(_.St7,{data:Ub.data,
onInput:D,validation:a9})},
textFieldViewModel:function(Ub){return _.X(_.Xv7,{data:Ub.data,onInput:D,validation:a9})}})),_.X("div",{class:"ytStructuredContextNoteViewModelTextField"},_.X(_.WL,{data:function(){var Ub;
return(Ub=A.data())==null?void 0:Ub.noteSources}},{textFormFieldViewModel:function(Ub){return _.X(_.St7,{data:Ub.data,
onInput:w,validation:pF})},
textFieldViewModel:function(Ub){return _.X(_.Xv7,{data:Ub.data,onInput:w,validation:pF})}})))},"Rf");
U3s.idomCompat=!0;_.pE(U3s,"yt-structured-context-note-view-model",{props:{data:_.Qf}});var LSr=_.aP(function(A){var Q=_.F(_.CE(function(){var T;if((T=A.controlled)==null?0:T.call(A))return[];var G;return(((G=A.data())==null?void 0:G.chips)||[]).map(function(p){p=_.V(p,_.Yj);if(p==null?0:p.selected)return WRO(p.chipValue)}).filter(function(p){return p!==void 0})})),b=Q.next().value,f=Q.next().value,a=function(T){var G=WRO(T.chipValue);
if(G!==void 0){var p;if((p=A.controlled)==null?0:p.call(A))return void A.controlled().onTap(G);T=b().includes(G)?[].concat(_.ri(b().filter(function(U){return U!==G}))):[].concat(_.ri(b()),[G]);
f(T);var P;if((P=A.uncontrolled)==null?0:P.call(A))A.uncontrolled().onUpdate(T)}};
return _.X("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.X(_.Op,{each:function(){return A.data().chips||[]}},function(T){return _.X("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.X(_.xx,{data:function(){return _.V(T,_.Yj)},
selected:function(){var G;if(G=_.V(T,_.Yj)){var p=WRO(G.chipValue);if(p!==void 0){var P;G=((P=A.controlled)==null?0:P.call(A))?A.controlled().selectedValues.includes(p):b().includes(p)}else G=void 0}else G=!1;return G},
callback:a}))}))},"Sf");var MnK=_.aP(function(A){var Q=A.data;var b=function(){var p;return((p=Q())==null?void 0:p.flowStateKey)||""},f=_.I$(_.b6,b),a=function(){var p;
return(p=_.V(f(),oRs))==null?void 0:p.chips},T=function(p){if(p!==void 0){var P=a()||[];
P=P.find(function(U){return U===p})?P.filter(function(U){return U!==p}):[].concat(_.ri(P),[p]);
P=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.V(f(),oRs),{chips:P})});_.A8(_.HL("flowStateEntity",b(),P))}},G=function(){var p;
return _.V((p=Q())==null?void 0:p.inputBox,ttN)};
A=_.IB(function(p){var P=G();P=!(P==null?0:P.maxChars)||p.length<=P.maxChars;p=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.V(f(),oRs),{detail:p}),abuseReportFlowState:Object.assign({},_.V(f(),jr),{navigationEnabled:P})});_.A8(_.HL("flowStateEntity",b(),p))},150);
return _.X("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.X("div",{class:"ytFeedbackFormViewModelChips"},_.X(_.WL,{data:function(){var p;return(p=Q())==null?void 0:p.chipSelection}},{chipSelectionFormFieldViewModel:function(p){return _.X(LSr,{data:p.data,
controlled:function(){return{selectedValues:a()||[],onTap:T}}})}})),_.X("div",{class:"ytFeedbackFormViewModelInputBox"},_.X(BC,{text:function(){var p;
return(p=_.V(f(),oRs))==null?void 0:p.detail},
placeholder:function(){var p;return((p=G())==null?void 0:p.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var p=G();if(p&&p.maxChars)return{maxChars:p.maxChars,errorMessage:p.maxCharsExceededErrorMessage||""}},
onInput:A})),_.X("div",{class:"ytFeedbackFormViewModelFooterText"},_.X(_.Rb,{text:function(){return Q().footerText}})))},"Tf");
MnK.idomCompat=!0;_.pE(MnK,"yt-feedback-form-view-model",{props:{data:_.Qf}});var llx=_.aP(function(A){var Q=A.data;var b=function(){return Q().flowStateKey||""},f=_.I$(gAN,b),a=function(){return _.V(f(),jr)},T=function(){if(_.K("enable_gff_accessibility_fix")){var G=!0,p;
if((p=a())==null?0:p.navigationEnabled){var P;_.D3((P=a())==null?void 0:P.navigationCommand);G=!1}p=Object.assign({},f(),{abuseReportFlowState:Object.assign({},a(),{isReportFormDirty:G})});_.A8(_.HL("flowStateEntity",b(),p))}else _.D3((G=a())==null?void 0:G.navigationCommand)};
return _.X("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.X("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.X(_.WL,{data:function(){return Q().cancelButton}},{buttonViewModel:function(G){return _.X(_.J9,{data:G.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:T})}}),_.X(_.WL,{data:function(){var G;
if(Q().navButton){var p=Object;var P=p.assign,U=_.V(Q().navButton,_.jJ),L=((G=a())==null?0:G.navigationEnabled)||_.K("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",M,l;G=_.V((M=a())==null?void 0:M.navigationCommand,_.wF);M=(l=_.V(G,_.y_))==null?void 0:l.url;p={buttonViewModel:P.call(p,{},U,{state:L,iconName:M?"OPEN_IN_NEW":""})}}else p=void 0;return p}},{buttonViewModel:function(G){return _.X(_.J9,{data:G.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:T})}})))},"Uf");
llx.idomCompat=!0;_.pE(llx,"yt-report-form-bottom-bar-view-model",{props:{data:_.Qf}});var KSr=_.aP(function(A){var Q=A.nextStep;return _.X("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.X("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.X(_.oY,{icon:function(){return Q().iconName||""}})),_.X("div",null,_.X(_.Rb,{text:function(){return Q().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Vf"),iun=_.aP(function(A){var Q=A.data;
var b,f=(b=_.fJ().resolve(_.bu(_.Af)))==null?void 0:b(),a=_.I$(_.b6,function(){return Q().flowStateKey||""});
return _.X("yt-report-form-confirmation-page-view-model",{class:function(){var T;return((T=_.V(a(),jr))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.X("div",{class:function(){var T;
return((T=_.V(a(),jr))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.X(_.aY,{data:function(){return f&&Q().imageDark?Q().imageDark:Q().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.X("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.X("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return Q().confirmationHeader}),_.X("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.X(_.Rb,{text:function(){return Q().confirmationText}})),_.X("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.X(_.Rb,{text:function(){return Q().lawEnforcementText}})),
_.X("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return Q().whatToExpectHeader}),_.X(_.S,{cond:function(){return Q().nextSteps},
then:function(T){return _.X("div",null,_.X(_.Op,{each:T},function(G){return _.X(KSr,{nextStep:G})}))}}),_.X(_.S,{cond:function(){return Q().legalReportText},
then:function(T){return _.X("div",null,_.X(_.Rb,{text:T,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Wf");
iun.idomCompat=!0;_.pE(iun,"yt-report-form-confirmation-page-view-model",{props:{data:_.Qf}});var Jqd=_.aP(function(A){var Q=A.data;var b=function(){var T;return((T=_.V(Q().inputBox,ttN))==null?void 0:T.maxChars)||500},f=function(){return Q().flowStateKey||""},a=_.I$(_.b6,f);
A=_.IB(function(T){T=Object.assign({},a(),{flowFormState:{isValid:T.length<=b()},abuseReportFlowState:{userComments:T,navigationEnabled:!(T.length>b()),isReportFormDirty:!0}});_.m5().dispatch(_.Wi("flowStateEntity",f(),T))},150);
_.tz(function(){var T=Object.assign({},a(),{flowFormState:{isValid:!0}});_.m5().dispatch(_.Wi("flowStateEntity",f(),T))});
return _.X("yt-report-form-details-page-view-model",{class:function(){var T;return((T=_.V(a(),jr))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.X("h1",{class:function(){var T;
return((T=_.V(a(),jr))==null?void 0:T.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return Q().detailsPageHeader}),_.X("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.X(_.Rb,{text:function(){return Q().bodyText}})),_.X("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.X(BC,{label:function(){var T;
return((T=_.V(Q().inputBox,ttN))==null?void 0:T.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var T;return{errorMessage:((T=_.V(Q().inputBox,ttN))==null?void 0:T.maxCharsExceededErrorMessage)||"",maxChars:b()}},
onInput:A})))},"Xf");
Jqd.idomCompat=!0;_.pE(Jqd,"yt-report-form-details-page-view-model",{props:{data:_.Qf}});var VnN=_.aP(function(A){var Q=A.data;var b=A.selectedKey;var f=A.onSelected;var a=A.groupName;var T=function(){return Q().text},G=function(){return Q().attributedText},p=function(){return Q().subtext},P=function(){return Q().attributedSubtext},U=_.X("div",{class:"ytRadioButtonItemViewModelLabel"},_.X(_.S,{cond:T,
then:function(){return _.X("div",null,T)}}),_.X(_.S,{cond:G,
then:function(){return _.X(_.Rb,{text:G})}}),_.X(_.S,{cond:p,
then:function(){return _.X("div",{class:"ytRadioButtonItemViewModelSubText"},p)}}),_.X(_.S,{cond:P,
then:function(){return _.X("div",{class:"ytRadioButtonItemViewModelSubText"},_.X(_.Rb,{text:P}))}})),L=function(){if(G()){var l;
return(l=G())==null?void 0:l.content}return T()},M=function(){if(P()){var l;
return(l=P())==null?void 0:l.content}return p()};
A={};return _.X("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.X(_.wa,{name:a,checked:function(){return!(b==null||!b()||Q().key!==(b==null?void 0:b()))},
onChange:function(l){f==null||f(l.target,Q(),a==null?void 0:a())},
labelRenderable:function(){return U},
ariaLabel:function(){return M()?L()+", "+M():L()},
className:_.O4((A.ytRadioButtonItemViewModelSubTitle=function(){return!!Q().subtext},A))}))},"Yf");_.Oux=_.aP(function(A){var Q=A.data;var b=A.onSelected;var f=A.selectedKey;var a=A.groupName;var T=function(){return(a==null?void 0:a())||Q().key};
return _.X("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.X("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.X(_.WL,{data:function(){return Q().radioButtons}},{radioButtonItemViewModel:function(G){return _.X(VnN,{data:G.data,
onSelected:b,selectedKey:f,groupName:T})}})))},"Zf");var nkx=_.aP(function(A){var Q=A.data;var b=_.mS("div"),f=function(){return Q().flowStateKey||""},a=_.I$(_.b6,f),T=function(){return _.V(a(),jr)};
_.H_(function(){var G,p;if(((G=T())==null?0:G.isReportFormDirty)&&((p=T())==null||!p.navigationEnabled)&&_.K("enable_gff_accessibility_fix")){var P;if(((P=T())==null?void 0:P.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var U;(U=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||U.scrollIntoView()}else{var L;(L=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||L.scrollIntoView()}}},"VvP2Ne");
return _.X("yt-report-form-reason-select-page-view-model",{class:function(){var G;return((G=T())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.X("h1",{class:function(){var G;
return((G=T())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return Q().pageHeader}),_.X("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.X(_.Rb,{text:function(){return Q().bodyText}})),_.X("div",{class:function(){var G;
return((G=T())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.X(_.S,{cond:function(){var G,p;
return((G=T())==null?void 0:G.isReportFormDirty)&&!((p=T())==null?0:p.navigationEnabled)&&_.K("enable_gff_accessibility_fix")},
then:function(){return _.X("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:b},_.X(_.oY,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.X("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return Q().emptyReasonSelectErrorMessage}))}}),_.X(_.Oux,{data:function(){return _.V(Q().radioButtonGroup,_.vRN)},
onSelected:function(G,p){G=Object.assign({},a(),{abuseReportFlowState:Object.assign({},T(),{reasonKey:p.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:p.command})});_.A8(_.HL("flowStateEntity",f(),G))},
selectedKey:function(){var G;return(G=T())==null?void 0:G.reasonKey},
groupName:"report-form-reason-select-page"})))},"$f");
nkx.idomCompat=!0;_.pE(nkx,"yt-report-form-reason-select-page-view-model",{props:{data:_.Qf}});var kDN=_.aP(function(A){var Q=A.data;var b,f=(b=_.fJ().resolve(_.bu(_.Af)))==null?void 0:b();return _.X("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.X("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.X(_.aY,{data:function(){return f&&Q().imageDark?Q().imageDark:Q().image},
alt:""})),_.X("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.X("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return Q().header}),_.X(_.Rb,{text:function(){return Q().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"ag");
kDN.idomCompat=!0;_.pE(kDN,"yt-report-form-sign-in-page-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=function(){return Q().titleSuperscript},f=function(){return Q().answersShelf},a=function(){return Q().videoShelf},T=function(){var D;
return(D=Q().textInputPlaceholder)==null?void 0:D.content},G=function(){return Q().showOpenTextInput&&!_.K("web_hide_explore_hub_until_user_navigates_back_to_home")},p=function(){var D;
return(D=Q().textInputValue)==null?void 0:D.content},P=!1,U=_.mS("input");
A=_.F(_.pz(!1,void 0,"dqEOSc"));var L=A.next().value,M=A.next().value,l=function(){return{state:L()?"active":"disabled"}};
_.CH(function(){G()&&p()&&U.value&&(U.value.value=p())});
var J=function(D){D=D.target.value.trim();var w=Q().onUpdateText;w&&_.D3(w,{form:{userQuery:D}});Q().userQuery=D},n=_.IB(function(D){J(D)},150),t=_.IY(function(D){var w;
M(!((w=D.target.value)==null||!w.trim())||P);n(D);return!1}),g=_.IY(function(D){if(D.key==="Enter"&&L()){J(D);
D=void 0;var w=_.V(Q().nextButtonViewModel,_.jJ),u,y;if(w==null?0:(u=w.loggingDirectives)==null?0:(y=u.clientVeSpec)==null?0:y.uiType){var a9,pF;D=_.K6((a9=w.loggingDirectives)==null?void 0:(pF=a9.clientVeSpec)==null?void 0:pF.uiType)}(u=Q().onNextStepCommand)&&_.D3(u,{forceClickLogging:!0,clickedVisualElement:D})}return!1}),e=_.st("yt-talk-to-recs-view-model"),x=function(){P=!0;
M(!0);if(_.K("web_hide_explore_hub_until_user_navigates_back_to_home")){var D,w,u;(u=(w=(D=e.value)==null?void 0:D.closest("ytd-flow-step-renderer"))==null?void 0:w.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||u.click()}};
A={};return _.X("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:e},_.X("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.X(_.WL,{data:function(){return Q().topCornerButton}},{buttonViewModel:_.J9})),_.X("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.X("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.X(_.Rb,{text:function(){return Q().title}}),_.X(_.S,{cond:b,
then:function(){return _.X("sup",{class:"ytwTalkToRecsSuperScript"},_.X(_.Rb,{text:b}))}})),_.X("div",{class:"ytwTalkToRecsSubtitle"},_.X(_.Rb,{text:function(){return Q().subtitle}})),_.X("div",{class:"ytwTalkToRecsResultsShelf"},_.X(_.S,{cond:f,
then:function(){return _.X(_.WL,{data:f},{chipsShelfViewModel:function(D){return _.X("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.X(_.jQr,{data:D.data,callback:x,enableSingleChipSelection:!0}))}})}}),_.X(_.S,{cond:a,
then:function(){return _.X(_.WL,{data:a},{horizontalShelfViewModel:function(D){return _.X("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.X(_.y8,{data:D.data}))}})}})),_.X("div",{class:_.O4("ytwTalkToRecsRefinementContainer",(A.ytwTalkToRecsBottomMargin=function(){return Q().isMultiTurnFlow},A))},_.X(_.S,{cond:G,
then:function(){return _.X("div",{class:"ytwTalkToRecsUserInputBox"},_.X("input",{el:U,type:"text",class:"ytwTalkToRecsTextInput",placeholder:T,value:function(){return Q().userQuery},
"on:input":t,"on:keyup":g,maxlength:200}))}}),_.X(_.WL,{data:function(){return Q().isMultiTurnFlow?Q().nextButtonViewModel:void 0}},{buttonViewModel:function(D){return _.X("div",{class:"ytwTalkToRecsFlowControlButtons"},_.X(_.J9,{data:D.data,
buttonOverrides:l}))}}),_.X(_.WL,{data:function(){return Q().isMultiTurnFlow?Q().resetButtonViewModel:void 0}},{buttonViewModel:function(D){return _.X("div",{class:"ytwTalkToRecsFlowControlButtons"},_.X(_.J9,{data:D.data}))}}))))},"bg"),"yt-talk-to-recs-view-model",{props:{data:_.Qf}});var vQt={sources:[{clientResource:{imageName:"CHECK"}}]};_.Ilx=_.aP(function(A){var Q=_.st("div");A=_.be(A,{error:void 0});var b=A.data,f=A.error,a=A.onSelected;A=_.F(_.CE(function(){return czO(b())}));
var T=A.next().value,G=A.next().value;ZHn(b,function(l){G(l);var J,n,t=xqM((J=b().options)==null?void 0:(n=J[l])==null?void 0:n.value,b().type);a==null||a(t);Q.value.focus()});
A=_.IY(function(){if(!b().disabled){var l=b(),J=T(),n=Q.value;l.options&&(l=EQ7(l.options,J,l.label),_.fJ().resolve(_.j4).openSheet({viewModel:l},n))}});
var p=_.ye4(),P=function(){return!!f()},U=function(){return!!b().disabled},L={},M={};
return _.X("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.X("div",{class:_.O4("ytDropdownViewModelDropdownContainer",(L.ytDropdownViewModelDropdownContainerErrorBorder=P,L.ytDropdownViewModelDropdownContainerDisabled=U,L)),"on:click":A,el:Q,role:"combobox",tabindex:0,"on:keydown":p,"aria-invalid":P,"aria-disabled":U,"aria-describedby":function(){return P()?"dropdown-view-model-error":void 0}},_.X("div",{class:"ytDropdownViewModelText"},zgq(b,P,T),wGr(b,T)),_.X("div",{class:_.O4("ytDropdownViewModelChevronDown",
(M.ytDropdownViewModelChevronDownDisabled=U,M))},_.X(_.oY,{icon:"CHEVRON_DOWN"}))),uFq(b,f))},"cg");_.pE(_.aP(function(A){var Q=A.data;var b=function(a){var T=YpN(Q());T.videoMetadata||(T.videoMetadata={});T.videoMetadata.sponsorshipsMetadata||(T.videoMetadata.sponsorshipsMetadata={});T.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(a)},f=function(a){var T=YpN(Q());
T.scheduledRedirectMetadata||(T.scheduledRedirectMetadata={});T.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(a)};
return _.X("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.X("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.X("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.X(_.Rb,{text:function(){return Q().title}}),_.X(_.oY,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.X(_.Rb,{text:function(){return Q().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.X(_.WL,{data:function(){return Q().tierChoices}},{dropdownViewModel:function(a){return _.X("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.X(_.Ilx,{data:a.data,
onSelected:b}))}}),_.X(_.WL,{data:function(){return Q().startTimeChoices}},{dropdownViewModel:function(a){return _.X("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.X(_.Ilx,{data:a.data,
onSelected:f}))}}),_.X(_.Rb,{text:function(){return Q().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.X("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.X(_.WL,{data:function(){return Q().scheduleButton}},{panelFooterViewModel:_.Gh})))},"dg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;A=A.className===void 0?"":A.className;var b=_.I$(gAN,function(){return Q().flowStateEntityKey||""}),f={};
f=_.O4("ytFlowBottomBarViewModelFlowBottomBarButtons",(f.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},f));
var a={},T=_.O4("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",f,(a.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},a.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},a));
a={};var G=_.O4("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",f,(a.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},a.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},a));
f={};f=_.O4("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return Q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
f));
A=_.O4("ytFlowBottomBarViewModelHost",A);return _.X("yt-flow-bottom-bar-view-model",{class:A},_.X(_.S,{cond:function(){var p;return(p=Q())==null?void 0:p.textSection},
then:function(p){return _.X("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.X(_.Rb,{text:p}))}}),_.X("div",{class:f},_.X(_.WL,{data:function(){return Q().secondaryButton}},{buttonViewModel:function(p){return _.X(_.J9,{data:p.data,
className:G})}}),_.X(_.WL,{data:function(){return Q().primaryButton}},{buttonViewModel:function(p){return _.X(_.J9,{data:p.data,
className:T,buttonOverrides:function(){var P;return{disabled:!((P=b())==null||!P.primaryButtonDisabled)}}})}})))},"eg"),"yt-flow-bottom-bar-view-model",{props:{data:_.Qf,
className:_.Bz}});var Hun="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),pj=function(){var A=_.q.apply(this,arguments)||this;A.enableScrollingFix=!0;A.bottomBar=!1;A.hideBottomBar=!1;A.fitContent=!1;return A};
_.O(pj,_.q);_.d=pj.prototype;_.d.ready=function(){_.K("enable_pdp_icon_prefetch")&&_.qoq(_.fJ().resolve(_.om),0,Hun)};
_.d.focus=function(A){this.topBar?_.Dg(this.topBar,A):this.paperDialog.focus(A)};
_.d.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$18924_scroller&&(this.JSC$18924_scroller.dialogElement=this.paperDialog,this.JSC$18924_scroller.attached&&typeof this.JSC$18924_scroller.attached==="function"&&this.JSC$18924_scroller.attached())};
_.d.onDataChanged=function(){var A;this.fitContent=!((A=this.data)==null||!A.fitContent);var Q;this.bottomBar=!((Q=this.data)==null||!Q.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.d.onProgressChanged=function(){var A,Q,b=((Q=(A=this.data)==null?void 0:A.progress)!=null?Q:0)*100;this.progressElement.style.width=b+"%"};
_.d.isProgressHidden=function(){var A;return!((A=this.data)==null?0:A.progress)};
_.d.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",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",
offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",
sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},
offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(A){return _.K("enable_wiz_next_lp2_msof")&&
A&&!A.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Qr.Object.defineProperties(pj.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var A;return _.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.V((A=this.data)==null?void 0:A.content,eor)}}});
pj.prototype.onProgressChanged=pj.prototype.onProgressChanged;pj.prototype.onDataChanged=pj.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pj.prototype,"enableScrollingFix",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pj.prototype,"bottomBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pj.prototype,"hideBottomBar",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],pj.prototype,"containsExploreHub",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pj.prototype,"fitContent",void 0);_.E([_.V1("#progress"),_.c("design:type",HTMLElement)],pj.prototype,"progressElement",void 0);
_.E([_.V1("#scroller"),_.c("design:type",Object)],pj.prototype,"JSC$18924_scroller",void 0);_.E([_.V1("ytd-flow-top-bar-renderer"),_.c("design:type",HTMLElement)],pj.prototype,"topBar",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pj.prototype,"onDataChanged",null);_.E([_.iN("data.progress"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pj.prototype,"onProgressChanged",null);
_.E([_.h({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],pj);
_.W(pj,"ytd-flow-step-renderer",function(){if(dgN!==void 0)return dgN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return dgN=A},{mode:1});var CvO=function(A){this.resolveCommand=A;this.steps={}},qtn=function(A,Q){Q=_.F(Q||[]);
for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=Object.values(b)[0],a=void 0;if((a=f)==null?0:a.stepId)A.steps[f.stepId]=b}},rqd=function(A,Q){var b,f,a,T,G;
return _.B(function(p){if((b=A.state)==null||!b.currentStepId)return p.return(void 0);f=okq(A);if(!f)return p.return(tnx(A));if(a=_.V(f,_.gRn)){var P;((P=a.screenLoggingData)==null?0:P.screenVeType)&&_.Mk(_.IP(),a.screenLoggingData.screenVeType);((T=a)==null?0:T.onStepStartCommand)&&A.resolveCommand((G=a)==null?void 0:G.onStepStartCommand,{})}if(a&&Q){P=a;var U,L,M,l;((U=Q.flowLoggingData)==null?0:U.eventNamespace)&&((L=P.flowEventData)==null?0:L.eventType)&&((M=P.flowEventData)==null?0:M.eventMetadata)&&
((l=Q.flowLoggingData)==null?0:l.flowType)&&(U=_.lB(Q.flowLoggingData.eventNamespace,P.flowEventData.eventType,P.flowEventData.eventMetadata),_.KT(_.iB(),U,Q.flowLoggingData.flowType));Q.steps&&!Q.steps.includes(f)&&Q.steps.push(f)}return p.return(f)})};
CvO.prototype.back=function(){var A;(A=this.state)!=null&&A.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
CvO.prototype.handleUpdateFlowCommand=function(A){A.steps&&qtn(this,A.steps);A.entityUpdateCommand&&this.resolveCommand(A.entityUpdateCommand,{});A.flowContinuationCommand&&(A=A.flowContinuationCommand)&&(this.getFlowContinuationCommand=A);this.awaitFlowContinuation&&(this.awaitFlowContinuation(okq(this)),this.awaitFlowContinuation=void 0)};
CvO.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var tnx=function(A){return _.B(function(Q){return A.getFlowContinuationCommand?Q.return(new Promise(function(b){A.awaitFlowContinuation=b;A.getFlowContinuationCommand&&A.resolveCommand(A.getFlowContinuationCommand,{flow_state:A.state})})):Q.return(Promise.resolve(void 0))})},okq=function(A){var Q;
if((Q=A.state)!=null&&Q.currentStepId)return A.steps[A.state.currentStepId]};var PC=function(){var A=_.q.apply(this,arguments)||this;A.flowState=new CvO(function(Q,b){b=b===void 0?{}:b;_.J8.instance.resolveCommand(Q,{form:{form:b,element:A.hostElement}})});
A.initialState=!0;A.isLoading=!1;A.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return A};
_.O(PC,_.q);_.d=PC.prototype;_.d.onPopupClosed=function(A){A&&this.hostElement!==A.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.d.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.d.focus=function(A){var Q=this;_.y1(function(){var b=_.Bj(Q.hostElement).querySelector("ytd-flow-step-renderer");(b==null?0:b.topBar)?b.focus(A):Q.topBar&&_.Dg(Q.topBar,A)},1)};
_.d.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.d.computeTopBarHidden=function(A){var Q;return!((Q=_.V(A,_.gRn))==null||!Q.topBarOverride)};
_.d.dataChanged=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1){((Q=A.data)==null?0:Q.steps)&&qtn(A.flowState,A.data.steps);if((b=A.data)==null?0:b.flowContinuationCommand){var a=A.flowState,T=A.data.flowContinuationCommand;T&&(a.getFlowContinuationCommand=T)}return f.yield(rqd(A.flowState,A.data),2)}A.currentFlowStep=f.yieldResult;_.Oi(f)})};
_.d.flowChanged=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1){if(!A.flow)return b.return();A.flowState.state=A.flow;A.isLoading=!0;return b.yield(rqd(A.flowState,A.data),2)}Q=b.yieldResult;if(!Q||A.flow.isLoading)return b.return();A.currentFlowStep=Q;A.initialState=!1;A.isLoading=!1;A.autofocusAndRefit();_.Oi(b)})};
_.d.autofocusAndRefit=function(){var A=this,Q=_.fJ().resolve(_.bu(_.L3)),b=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),f=document.querySelector("yt-report-form-confirmation-page-view-model"),a=document.querySelector("yt-report-form-details-page-view-model"),T=document.querySelector("yt-report-form-reason-select-page-view-model"),G=document.querySelector("yt-contributor-zero-state-view-model"),
p=document.querySelector("yt-structured-context-note-view-model"),P=document.querySelector("yt-note-view-model");(!b&&Q&&Q.isKeyBoardInUse()||f||!b&&a||!b&&T||G||p||P)&&_.Ng(this.hostElement);_.mL(this,function(){_.Bn(A.hostElement,"yt-refit")})};
_.d.handleUpdateFlowCommand=function(A){this.data&&(A=_.V(A,Rol),A.targetId===this.data.targetId&&(A.flowContinuationCommand&&(this.data.flowContinuationCommand=A.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(A),this.autofocusAndRefit()))};
_.d.handleFlowNextStepCommand=function(A){this.data&&this.flow&&this.flow.key&&(A=_.V(A,r$O),A.targetId===this.data.targetId&&(A=A.stepId||"",this.ytdReduxBehavior.dispatch(_.Wi("flowStateEntity",this.flow.key,{currentStepId:A,stepIdStack:(this.flow.stepIdStack||[]).concat(A)}))))};
_.d.handleFlowPrevStepCommand=function(A){if(this.data&&this.flow&&this.flow.key&&(A=_.V(A,jOM),A.targetId===this.data.targetId)){var Q=[].concat(_.ri(this.flow.stepIdStack||[]));Q.length>1?(Q.pop(),this.ytdReduxBehavior.dispatch(_.Wi("flowStateEntity",this.flow.key,{currentStepId:Q[Q.length-1],stepIdStack:Q}))):A.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(A.onFirstStepCommand)}};
_.d.handleYpcCancelRecurrenceCommand=function(A){if(this.data&&this.flow&&this.flow.key&&(A=_.V(A,ERl),A.targetId===this.data.targetId&&A.endpointCommand)){var Q=_.V(this.flow,xQN);Q&&_.V(A.endpointCommand,_.gZ9)&&(_.V(A.endpointCommand,_.gZ9).feedbackData=Q.surveyFeedback);this.ytComponentBehavior.resolveCommand(A.endpointCommand)}};
_.d.handlePartialUpdateFlowStateEntity=function(A){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Wi("flowStateEntity",this.flow.key,A,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
PC.prototype.flowChanged=PC.prototype.flowChanged;PC.prototype.dataChanged=PC.prototype.dataChanged;PC.prototype.onPopupClosed=PC.prototype.onPopupClosed;_.E([_.I(_.cb),_.c("design:type",Object)],PC.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],PC.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],PC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],PC.prototype,"initialState",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],PC.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Object)],PC.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],PC.prototype,"currentFlowStep",void 0);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],PC.prototype,"onPopupClosed",null);_.E([_.C({selectorArgs:["data.flowStateEntityKey"],selector:gAN}),_.c("design:type",Object)],PC.prototype,"flow",void 0);_.E([_.V1("ytd-flow-top-bar-renderer"),_.c("design:type",HTMLElement)],PC.prototype,"topBar",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],PC.prototype,"dataChanged",null);_.E([_.I_("flow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],PC.prototype,"flowChanged",null);_.E([_.h({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],PC);
_.j4d=_.SM()(PC,"ytd-flow-root-renderer",function(){if(TON!==void 0)return TON;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return TON=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var RJt;var tD=null;_.pE(_.aP(function(A){return _.X("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.X("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.X(_.Rb,{text:function(){return A.data().text}}),_.X("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"fg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Qf}});var gk7=_.aP(function(A){var Q=A.playerControlsProps;var b=A.isShortsPage;return _.X("yt-bigboard",null,_.X(_.S,{cond:function(){return Q().isDragging},
then:function(){return _.X("div",{class:"ytBigboardStoryboardHost"},_.X(_.PwO,{progressBarProps:Q,isShortsPage:b}))}}))},"gg");
gk7.idomCompat=!0;_.XA={ACCOUNT_LABEL:r0("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:r0("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:r0("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:r0("AD_BADGE_HINT"),AD_BADGE_TEXT:r0("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:r0("ALL_CHANNELS_LABEL"),AMBIENT_MODE:r0("AMBIENT_MODE"),AMBIENT_MODE_OFF:r0("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:r0("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:r0("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:r0("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:r0("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:r0("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:r0("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:r0("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:r0("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:r0("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:r0("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:r0("AUTO_ZOOM","Auto zoom"),BACK:r0("BACK"),CANCEL:r0("CANCEL"),CHANNEL_SWITCHER_LABEL:r0("CHANNEL_SWITCHER_LABEL"),CLOSE:r0("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:r0("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:r0("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:r0("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:r0("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:r0("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:r0("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:r0("COMMENT_MODAL_CONTENT"),CONFIRM_OK:r0("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:r0("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:r0("COPIED_TO_CLIPBOARD"),COPY:r0("COPY"),COPY_DEBUG_INFO:r0("COPY_DEBUG_INFO"),COPY_EMBED_CODE:r0("COPY_EMBED_CODE"),
COPY_LINK_LABEL:r0("COPY_LINK_LABEL"),COPY_VIDEO_URL:r0("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:r0("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:r0("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:r0("DELETE_FROM_DOWNLOADS"),DIALOG:r0("DIALOG"),DONE:r0("DONE"),DOWNLOAD:r0("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:r0("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:r0("FLAG_CONFIRM"),FLAG_CONTENT:r0("FLAG_CONTENT"),FLAG_LABEL:r0("FLAG_LABEL"),FLAG_TITLE:r0("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:r0("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:r0("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:r0("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:r0("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:r0("HIDE_SEARCH_FILTERS_LABEL"),HOME:r0("HOME","Home"),INVALID_RESPONSE_RECEIVED:r0("INVALID_RESPONSE_RECEIVED"),LIBRARY:r0("LIBRARY","Library"),LISTENING:r0("LISTENING"),LOADING:r0("LOADING"),LONG_PRESS_MIC_TO_SPEAK:r0("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:r0("LOOP"),MENU_DESKTOP:r0("MENU_DESKTOP"),
MENU_EXIT:r0("MENU_EXIT"),MENU_FEEDBACK:r0("MENU_FEEDBACK"),MENU_HELP:r0("MENU_HELP"),MENU_IMPRESSUM:r0("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:r0("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:r0("MENU_SETTINGS"),MENU_SIGN_IN:r0("MENU_SIGN_IN"),MENU_TITLE:r0("MENU_TITLE"),MENU_YOUR_DATA:r0("MENU_YOUR_DATA"),MORE_INFO:r0("MORE_INFO"),MORE_OPTIONS:r0("MORE_OPTIONS"),MUTE_VOLUME:r0("MUTE_VOLUME"),NEW_PLAYLIST:r0("NEW_PLAYLIST"),NEXT_VIDEO:r0("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:r0("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:r0("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:r0("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:r0("NOT_FOUND_TITLE"),NO_DOWNLOADS:r0("NO_DOWNLOADS"),NO_MIC_INPUT:r0("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:r0("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:r0("OOPS_MESSAGE"),OPEN_APP:r0("OPEN_APP"),OPEN_YOUTUBE:r0("OPEN_YOUTUBE"),PAUSE:r0("PAUSE"),PLAY:r0("PLAY"),PLAYER_CAPTION:r0("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:r0("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:r0("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:r0("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:r0("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:r0("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:r0("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:r0("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:r0("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:r0("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:r0("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:r0("PLAYER_MINIMIZE"),PLAYER_NEXT:r0("PLAYER_NEXT"),PLAYER_PAUSE:r0("PLAYER_PAUSE"),PLAYER_PLAY:r0("PLAYER_PLAY"),
PLAYER_PREVIOUS:r0("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:r0("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:r0("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:r0("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:r0("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:r0("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:r0("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:r0("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:r0("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:r0("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:r0("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:r0("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:r0("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:r0("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:r0("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:r0("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:r0("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:r0("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:r0("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:r0("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:r0("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:r0("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:r0("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:r0("PLAY_ALL"),PLEASE_FIX_ERRORS:r0("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:r0("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:r0("PREVIOUS_VIDEO"),PRIVACY_POLICY:r0("PRIVACY_POLICY"),RELOAD:r0("RELOAD"),REQUIRED_LABEL:r0("REQUIRED_LABEL"),SAVE_PLAYLIST:r0("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:r0("SCRUB_SLIDE_USER_EDU"),SEARCH:r0("SEARCH","Search"),
SEARCH_APPEND_LABEL:r0("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:r0("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:r0("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:r0("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:r0("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:r0("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:r0("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:r0("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:r0("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:r0("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:r0("SEEK_SLIDER"),SETTINGS_LABEL:r0("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:r0("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:r0("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:r0("SHOW_LESS"),SHOW_MORE:r0("SHOW_MORE"),SHOW_PLAYER_CONTROLS:r0("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:r0("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:r0("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:r0("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:r0("SIGN_IN_ON_WEB"),STABLE_VOLUME:r0("STABLE_VOLUME"),STABLE_VOLUME_OFF:r0("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:r0("STABLE_VOLUME_ON"),STATS_FOR_NERDS:r0("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:r0("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:r0("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:r0("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:r0("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:r0("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:r0("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:r0("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:r0("TIMESTAMP_SECONDS"),TOGGLE_OFF:r0("TOGGLE_OFF"),TOGGLE_ON:r0("TOGGLE_ON"),TRENDING:r0("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:r0("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:r0("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:r0("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:r0("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:r0("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:r0("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:r0("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:r0("VIDEO_LINK_LABEL")};var eJK=_.aP(function(A){var Q=A.playerApi;A=_.st("button",function(f){_.ap(f,36843)});
var b=r0("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.X("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.X("button",{el:A,class:"ytPlayerControlsJumpForwardButtonButton",title:b,"aria-label":b,"on:click":_.IY(function(){_.TF(36843);Q&&Q().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.X("span",null,_.X(_.oY,{icon:"FAST_FORWARD"}))))},"hg");var hJs=_.aP(function(A){var Q=A.appApi;A=_.st("button",function(f){_.ap(f,62946)});
var b=r0("OPEN_IN_MINIPLAYER");return _.X("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.X("button",{el:A,class:"ytMiniplayerButtonButton",title:b,"aria-label":b,"on:click":_.IY(function(){_.TF(62946);var f,a;(a=(f=Q()).openInMiniplayer)==null||a.call(f);return!1})},_.X(_.oY,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ig");var WSt=_.aP(function(A){var Q=A.playerApi;A=_.st("button",function(T){_.ap(T,142812)});
var b=_.F(_.pz(!1,void 0,"I3VCyb")),f=b.next().value,a=b.next().value;b=function(){return r0("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(f()?1:2)})};
return _.X("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.X("button",{el:A,class:"ytPlaybackSpeedButtonButton",title:b,"aria-label":b,"on:click":_.IY(function(){_.TF(142812);if(Q){var T=Q(),G=f();T.setPlaybackRate(G?1:2);a(!f())}return!1})},_.X("span",null,_.X(_.oY,{icon:function(){return f()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"jg");var vkN=_.aP(function(A){var Q=A.title;var b=A.ariaLabel;var f=A.icon;var a=A.command;var T=A.veType;A=_.st("button",function(G){T&&_.ap(G,T())});
return _.X("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.X("button",{el:A,class:"ytdThumbnailOverlayButtonButton",title:Q,"aria-label":b,"on:click":_.IY(function(){T&&_.TF(T());a&&_.fJ().resolve(_.de).resolveCommand(a())})},_.X(_.oY,{icon:f})))},"kg");var Oj="";var Eks=_.aP(function(A){var Q=A.playerControlsProps,b=A.onClickFn;A=_.Lz(function(){var T=Q(),G=-1;T.captionsAvailable&&(G=T.captionsEnabled?1:0);return G},void 0,"WecR8e");
var f=_.Lz(function(){var T=Q();return T.captionsAvailable?_.JQ(T.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.JQ("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),a=_.Lz(function(){var T=Q();
T=T.captionsAvailable?T.captionsEnabled:void 0;return T},void 0,"Q17ly");
return _.X("yt-closed-captions-toggle-button",null,_.X(_.aDF,{captionIconType:A,ariaLabel:f,ariaPressed:a,onClick:function(T){var G=Q();if(G.captionsAvailable){var p=G.playerApi;if(p){var P=G.playerApi;if(P){var U=Oj;if(U){P=P.getOption("captions","track");var L;Oj=(L=P?P.displayName:null)!=null?L:U}else _.fI(P)?(U=_.qd9(P),Oj=U.length?(L=h4x(U))?L.displayName:U[0].displayName:""):Oj=""}WMd(p);_.K("mweb_disable_set_state_captions_killswitch")&&G.setState({captionsEnabled:!G.captionsEnabled})}}var M,
l;(l=(M=G.appApi).showCaptionsToggleToast)==null||l.call(M,G);b==null||b(T)},
isOverlay:!0}))},"lg");var x3n=_.aP(function(A){var Q=A.data;return _.X("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.X(_.cF,{data:function(){return{type:17,text:_.$5W(Q().label)}}}))},"mg");var cqO=_.aP(function(A){var Q=_.O4("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return A.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return A.size()==="small"?A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.X("animated-seek-arrows",{class:_.O4("ytPlayerControlsAnimatedSeekArrowsHost")},_.X("span",{class:Q}),_.X("span",{class:Q}),_.X("span",{class:Q}))},"ng");
cqO.idomCompat=!0;var zJn=_.aP(function(){var A=_.JQ("PLAYER_SECONDS",{seconds_placeholder:"30"}),Q=_.F(_.pz(!1,void 0,"Yj8msb")),b=Q.next().value,f=Q.next().value,a=_.F(_.pz(!1,void 0,"r9Z50e"));Q=a.next().value;var T=a.next().value;a={};var G=_.O4("jumpForwardOverlayOverlay",(a.jumpForwardOverlayOverlayHidden=Q,a));_.tz(function(){var p=null,P=null,U=function(){p!==null&&_.Rc().cancelJob(p);P!==null&&_.Rc().cancelJob(P);T(!0);f(!0);_.LE(_.Rc(),function(){T(!1)});
p=_.LE(_.Rc(),function(){T(!0);P=_.LE(_.Rc(),function(){f(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",U);_.Cz(function(){window.removeEventListener("jump-forward-clicked",U)})});
return _.X("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.X(_.S,{cond:b,then:function(){return _.X("div",{class:G},_.X(cqO,{direction:1,size:"large"}),_.X("div",null,A))}}))},"og");var wvK=_.XA.MUTE_VOLUME,udd=_.XA.UNMUTE_VOLUME,Zus=_.aP(function(A){var Q=A.muteIconType;var b=A.onClick;var f=A.useOutlineIcon;var a=A.useDelhiIcons;A=_.st("button",function(p){_.ap(p,28662)});
var T=function(){var p=Q(),P=f==null?void 0:f(),U=a==null?void 0:a(),L="",M="";switch(p){case -1:case 0:L=P?"VOLUME_OFF":U?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";M=udd;break;case 1:L=P?"VOLUME_UP_OUTLINE":U?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";M=wvK;break;case 2:L=P?"VOLUME_DOWN_OUTLINE":U?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";M=wvK;break;default:_.x1(p)}return{iconName:L,ariaLabel:M}},G=function(){return T().ariaLabel};
return _.X("ytm-mute-button",{class:"ytmMuteButtonHost"},_.X("button",{el:A,class:"ytmMuteButtonButton",title:G,"aria-label":G,"on:click":_.IY(function(p){_.TF(28662);b==null||b(p);return!1})},_.X("span",null,_.X(_.oY,{icon:function(){return T().iconName}}))))},"pg");var yqr=_.aP(function(A){var Q=A.volumeProps;var b=A.onClickFn;var f=A.useOutlineIcon;var a=A.useDelhiIcons;return _.X("yt-mute-toggle-button",null,_.X(Zus,{muteIconType:function(){var T=Q();return T.volumeMuted||T.volume===0?0:T.volume>50?1:2},
onClick:function(T){var G=Q().playerApi;G&&(G.isMuted()?G.unMute():G.mute(!1));b==null||b(T)},
useOutlineIcon:function(){return!(f==null||!f())},
useDelhiIcons:function(){return!(a==null||!a())}}))},"qg");
yqr.idomCompat=!0;var Ytx=_.aP(function(A){var Q=A.data;var b=_.st("ytm-paid-content-overlay-renderer");return _.X("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:b,"on:animationend":_.IY(function(){b.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.X(_.Db,{command:function(){return Q().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.X(_.S,{cond:function(){var f;return(f=Q().icon)==null?void 0:f.iconType},
then:function(){return _.X("span",null,_.X(_.oY,{icon:function(){var f;return(f=Q().icon)==null?void 0:f.iconType}}))}}),_.X("div",{class:"ytmPaidContentOverlayText"},_.X(_.Rb,{text:function(){return Q().text}})),_.X(_.S,{cond:function(){return Q().navigationEndpoint},
then:function(){return _.X(_.oY,{icon:"CHEVRON_RIGHT"})}})))},"rg");
Ytx.idomCompat=!0;var Bel=[].concat(_.ri([{register:function(A){var Q=iJt(A),b;(b=A().playerApi)==null||b.addEventListener("onVolumeChange",Q);return function(){}}},
{register:function(A){var Q=J$F(A);A=A().playerApi;A==null||A.addEventListener("captionschanged",Q);A==null||A.addEventListener("captionssettingschanged",Q);A==null||A.addEventListener("onCaptionsTrackListChanged",Q);return function(){}}},
{register:function(A){if(!_.K("mweb_screenreader_accessible_player"))return function(){};
var Q=VtN(A),b=document.querySelector("video");b==null||b.addEventListener("touchend",Q);return function(){b==null||b.removeEventListener("touchend",Q)}}},
{register:function(A){if(!_.K("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var Q=VtN(A),b=document.querySelector("video");b==null||b.addEventListener("focus",Q);return function(){b==null||b.removeEventListener("focus",Q)}}}]),[{register:function(A){var Q=L9O(A),b;
(b=A().playerApi)==null||b.addEventListener("onStateChange",Q);return function(){}}},
{register:function(A){var Q=Mtr(A),b;(b=A().playerApi)==null||b.addEventListener("onPlaybackRateChange",Q);return function(){}}},
{register:function(A){var Q=l1q(A),b;(b=A().playerApi)==null||b.addEventListener("onVideoDataChange",Q);return function(){}}},
{register:function(A){var Q=K9x(A),b,f;(b=A())==null||(f=b.playerApi)==null||f.addEventListener("onVideoProgress",Q);return function(){}}}]);var D3r=_.aP(function(A){var Q=A.data;var b=function(){return _.JQ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+Q().playbackRate})};
return _.X(_.S,{cond:function(){return Q().playbackRate&&Q().playbackRate!==1},
then:function(){return _.X("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.X("div",{class:"ytPlaybackRateOverlayOverlay"},_.X(cqO,{direction:1,size:"small"}),_.X("div",{class:"ytPlaybackRateOverlayLabel"},b)))}})},"sg");var $3O=_.aP(function(A){var Q=A.data;return _.X("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.X(_.S,{cond:function(){var b,f=(b=Q())==null?void 0:b.playerResponse,a;return f==null?void 0:(a=f.paidContentOverlay)==null?void 0:a.paidContentOverlayRenderer},
then:function(b){return _.X(Ytx,{data:b})}}))},"ug"),Not=_.aP(function(A){var Q=A.props;
var b=A.data;var f=A.options;var a=function(){var U,L,M,l;return(U=b())==null?void 0:(L=U.playerResponse)==null?void 0:(M=L.playerConfig)==null?void 0:(l=M.inlinePlaybackConfig)==null?void 0:l.showAudioControls},T=function(){var U,L;
if(a()&&((U=f())==null?void 0:(L=U.additionalButton)==null?void 0:L.button)!==void 0){var M,l,J;U=(M=b())==null?void 0:(l=M.playerApi)==null?void 0:(J=l.getSize())==null?void 0:J.height;if(!(U===void 0||U<180)){var n,t;return(n=f())==null?void 0:(t=n.additionalButton)==null?void 0:t.button}}},G=function(){var U,L;
return(U=f())==null?void 0:(L=U.additionalButton)==null?void 0:L.thumbnailOverlayButtonRenderers},p=function(){var U,L;
return(U=f())==null?void 0:(L=U.additionalButton)==null?void 0:L.thumbnailOverlayButtonViewModels},P=function(){var U=[_.X(yqr,{volumeProps:Q}),
_.X(Eks,{playerControlsProps:Q})];T()===1&&U.push(_.X(eJK,{playerApi:function(){return Q().playerApi}}));
T()===2&&U.push(_.X(hJs,{appApi:function(){return Q().appApi}}));
T()===3&&U.push(_.X(WSt,{playerApi:function(){return Q().playerApi}}));
var L=G();if(T()===4&&L){L=_.F(L);for(var M=L.next(),l={};!M.done;l={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$54:void 0,command$jscomp$584:void 0},M=L.next()){M=M.value;l.tooltip$jscomp$2=M.tooltip;var J=void 0,n=void 0;l.ariaLabel$jscomp$20=((J=M.accessibility)==null?void 0:(n=J.accessibilityData)==null?void 0:n.label)||l.tooltip$jscomp$2;J=void 0;l.icon$jscomp$54=(J=M.icon)==null?void 0:J.iconType;l.command$jscomp$584=M.command;l.tooltip$jscomp$2&&l.ariaLabel$jscomp$20&&l.icon$jscomp$54&&
U.push(_.X(vkN,{title:function(t){return function(){return t.tooltip$jscomp$2}}(l),
ariaLabel:function(t){return function(){return t.ariaLabel$jscomp$20}}(l),
icon:function(t){return function(){return t.icon$jscomp$54}}(l),
command:function(t){return function(){return t.command$jscomp$584}}(l)}))}}L=p();
if(T()===4&&L)for(L=_.F(L),M=L.next(),l={};!M.done;l={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$585:void 0},M=L.next())M=M.value,l.tooltip$jscomp$3=M.title,l.ariaLabel$jscomp$21=M.accessibilityText||l.tooltip$jscomp$3,l.icon$jscomp$55=M.iconName,l.command$jscomp$585=_.ue(M.onTap),l.tooltip$jscomp$3&&l.ariaLabel$jscomp$21&&l.icon$jscomp$55&&U.push(_.X(vkN,{title:function(t){return function(){return t.tooltip$jscomp$3}}(l),
ariaLabel:function(t){return function(){return t.ariaLabel$jscomp$21}}(l),
icon:function(t){return function(){return t.icon$jscomp$55}}(l),
command:function(t){return function(){return t.command$jscomp$585}}(l)}));
return U};
return _.X(_.S,{cond:a,then:function(){return _.X("div",{class:"ytInlinePlayerControlsTopRightControls"},_.X(_.Op,{each:P},function(U){return _.X("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.X("div",{class:"ytInlinePlayerControlsButtonIcon"},U))}))}})},"vg"),Aj7=_.aP(function(A){var Q=A.props;
var b=A.data;var f=A.options;A={};A=_.O4("ytInlinePlayerControlsBottomRightControls",(A.ytInlinePlayerControlsBottomRightControlsHidden=function(){var a;return nRs(b(),f())&&((a=f())==null?void 0:a.insetProgressBar)&&(Q().isHovering||Q().isDragging)},A));
return _.X("div",{class:A},_.X(s4s,{data:b}),_.X(_.S,{cond:function(){var a;return!((a=f())==null?0:a.hideTimeDisplay)},
then:function(){return _.X(m3N,{props:Q,data:b})}}))},"wg"),s4s=_.aP(function(A){var Q=A.data;
return _.X(_.WL,{data:function(){var b;return dQd((b=Q())==null?void 0:b.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:x3n})},"xg"),m3N=_.aP(function(A){var Q=A.props;
var b=A.data;return _.X(_.S,{cond:function(){return Q().isLive},
then:function(){return _.X(QNt,null)},
else:function(){return _.X(bkM,{props:Q,data:b})}})},"yg"),bkM=_.aP(function(A){var Q=A.props;
var b=A.data;var f=_.Lz(function(){var a;return GP7((a=b())==null?void 0:a.thumbnailOverlays)},void 0,"kUmuA");
return _.X("div",{class:_.O4("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.XA.PLAYER_TIME_ELAPSED+" "+_.hdU(Q().playedTime)}},_.X(_.cF,{data:function(){var a=_.hdU(Q().videoDuration-Q().playedTime);
return Object.assign({},{type:17,text:a},f())}}))},"zg"),QNt=_.aP(function(){var A=_.O4("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.X("div",{class:A},_.X(_.cF,{data:{type:18,text:_.XA.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ag"),ffF=_.aP(function(A){var Q=A.props;
var b=A.data;var f=A.options;return _.X(_.l0K,{progressBarProps:Q,config:function(){var a,T=_.V((a=b())==null?void 0:a.multiMarkersPlayerBar,_.dbj),G;a=((G=f())==null?0:G.insetProgressBar)?2:1;var p;G=(p=f())==null?void 0:p.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:a,chapterData:T,isInlinePlayback:!0,doSeekOnClick:G,playheadDotBehavior:G?1:0}}})},"Bg");_.pE(_.aP(function(A){var Q=A.data;var b=A.appApi;var f=A.options;var a=UQN(Q,OJq(b));A={};b={};return _.X("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.X("div",{class:_.O4("ytInlinePlayerControlsDarkenedOverlay",(A.ytInlinePlayerControlsDarkenedOverlayShow=function(){return a().isHovering},A))}),_.X(zJn,null),_.X(D3r,{data:a}),_.X($3O,{data:Q}),_.X(gk7,{playerControlsProps:a,
isShortsPage:!1}),_.X("div",{class:_.O4((b.ytInlinePlayerControlsControlsHidden=function(){return a().isDragging},b))},_.X(Not,{props:a,
data:Q,options:f}),_.X(Aj7,{props:a,data:Q,options:f})),_.X(_.S,{cond:function(){return nRs(Q(),f())},
then:function(){return _.X(ffF,{props:a,data:Q,options:f})}}))},"tg"),"yt-inline-player-controls",{props:{data:_.Qf,
appApi:_.Bz,options:_.Qf}});var Sf=function(){var A=_.q.apply(this,arguments)||this;A.opts=null;A.playerControlsData=null;A.playerControlsAppApi={openInMiniplayer:function(){A.openInMiniplayer()}};
A.playerControlsOptions={};A.noAnimation=!1;A.playbackIntentTriggered=!1;A.positionData=null;A.hidden=!0;A.active=!1;A.playing=!1;A.videoPreviewDataIndex=0;A.JSC$18980_playerPromise=null;A.player=null;A.enableAudioControls=!1;A.hasBeenUnmuted=!1;A.captionsHaveBeenTurnedOff=!1;A.JSC$18980_playerEvents=new Map;A.videoPreviewFetchRequest=null;A.scheduledPreviewEndJobId=null;A.JSC$18980_preventProgressSaveTimer=null;A.watchEndpointStartTimeUpdaterInterval=null;A.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};A.windowOnBlurFn=function(){A.deactivate()};
return A};
_.O(Sf,_.q);_.d=Sf.prototype;
_.d.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.K("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.d.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$18980_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$18980_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$18980_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$18980_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.lN(this,this.onScroll))};
_.d.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.lN(this,this.onScroll))};
_.d.onPageTypeChange=function(){this.deactivate()};
_.d.onWindowResized=function(){this.deactivate()};
_.d.onCaptionsChanged=function(A){A=!!A.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!A);this.setCaptionSize()};
_.d.setCaptionSize=function(){var A;if(this.active&&!this.captionsHaveBeenTurnedOff&&((A=this.player)==null?0:A.getCaptionWindowContainerId())){var Q;(Q=this.player)==null||Q.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.d.currentPageAllowed=function(){return!this.isWatchPage};
_.d.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var A=this.positionData,Q=A.initialTopPosition,b=A.initialHorizontalPosition;_.Uc(this.hostElement,{"--ytd-video-preview-translate-left":A.finalHorizontalPosition-b+"px","--ytd-video-preview-translate-top":A.finalTopPosition-Q+"px","--ytd-video-preview-original-top-position":Q+"px","--ytd-video-preview-original-horizontal-position":b+"px",
"--ytd-video-preview-initial-scale":"scale("+A.initialScale+")","--ytd-video-preview-width":A.videoPreviewWidth+"px","--ytd-video-preview-height":A.videoPreviewHeight+"px"});return!0};
_.d.handleOpenVideoPreviewAction=function(A){var Q=this,b;return _.B(function(f){if(!Q.currentPageAllowed())return f.return(0);Q.opts=A;return(b=Q.alignVideoPreviewForAnimation(A.thumbnail))?f.return(Q.activate()):f.return(0)})};
_.d.onMouseLeave=function(A){this.shouldDeactivateOnMouseLeave(A)&&this.deactivate()};
_.d.onScroll=function(){var A,Q;((A=this.opts)==null?0:A.isAutoplay)&&((Q=this.opts)==null?0:Q.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.d.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.j7.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.d.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.d.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Sf.JSC$18979_DEFAULT_CLICK_LOCATION_BEHAVIOR,Sf.JSC$18979_CLICK_LOCATION_ID_MAP)};
_.d.shouldDeactivateOnMouseLeave=function(A){A=A.relatedTarget;if(!A)return!0;var Q;return(Q=this.opts)!=null&&Q.mediaRenderer?!_.pc(this.opts.mediaRenderer).contains(A):!0};
_.d.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.d.onPlaybackStart=function(){var A=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$18980_preventProgressSaveTimer=
_.LE(_.j7,function(){A.resetPreventProgressSaveTimer()},1E4);
var Q;if((Q=this.opts)==null?0:Q.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.LE(_.j7,function(){A.hasMultipleVideoPreviews()?A.startPlaybackForNextVideo():A.deactivate()},this.opts.videoPreviewDurationMs);
var b;this.player.setGlobalCrop(((b=this.opts)==null?0:b.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.d.getRoundedCornersSize=function(){var A;if((A=this.opts)==null?0:A.roundedCornersSize){var Q;return(Q=this.opts)==null?void 0:Q.roundedCornersSize}var b;if((b=this.opts)==null?0:b.enableRounding){var f;if(((f=this.opts)==null?void 0:f.thumbnailSize)==="small")return 1;var a;if(((a=this.opts)==null?void 0:a.thumbnailSize)==="medium")return 2;var T;if(((T=this.opts)==null?void 0:T.thumbnailSize)==="large")return 3}return _.K("web_imp_inset_progress_bar")?3:0};
_.d.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.d.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.d.onMediaContainerClick=function(A){this.isShortcutClick(A)||(this.navigateToWatch(A),A.preventDefault(),A.stopPropagation())};
_.d.activate=function(){var A=this,Q,b,f,a,T,G,p,P,U;return _.B(function(L){switch(L.nextAddress){case 1:if(!A.currentPageAllowed())return L.return(0);b=(Q=A.videoPreviewData)==null?void 0:Q.inlinePlaybackEndpoint;f=_.s4.instance;if(!b||!f)return L.return(0);A.playbackIntentTriggered=!0;((a=A.opts)==null?0:a.mediaRenderer)&&((T=A.opts)==null||!T.isAutoplay)&&a1F(A.opts.mediaRenderer,function(){A.deactivate()});
_.mL(A,function(){A.revealPreviewUi()});
G={};_.K("enable_unknown_lact_fix_on_html5")&&(_.fJ().resolve(_.Wz),G.lact=_.TD());A.videoPreviewFetchRequest=s8x(f,A.getInlinePlaybackRequestData(A.videoPreviewData),G);_.ML(L,2);return L.yield(A.videoPreviewFetchRequest,4);case 4:p=L.yieldResult;if(((P=p)==null?void 0:(U=P.playabilityStatus)==null?void 0:U.status)==="OK")return L.return(A.handlePlayerResponse(p));throw Error("Mj");case 2:_.Vw(L),A.deactivate();case 3:return L.return(1)}})};
_.d.getInlinePlaybackRequestData=function(A){var Q,b=_.K("web_imp_player_mute_params")?((Q=this.opts)==null?void 0:Q.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:A.inlinePlaybackEndpoint,startPlaybackInMutedState:b}};
_.d.handlePlayerResponse=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M;return _.B(function(l){if(l.nextAddress==1){b=Q.getInlinePlaybackVideoId();if(!(((f=A)==null?0:(a=f.videoDetails)==null?0:a.videoId)&&Q.currentPageAllowed()&&Q.playbackIntentTriggered&&Q.opts&&b))return Q.deactivate(),l.return(0);if(A.videoDetails.videoId!==b)return l.return(0);Q.enableAudioControls=!!((T=A.playerConfig)==null?0:(G=T.inlinePlaybackConfig)==null?0:G.showAudioControls);A.trackingParams=Q.getInlinePlaybackTrackingParams();
if(!Q.inlinePlayer)return l.return(0);p={};if(U=_.V((P=Q.videoPreviewData)==null?void 0:P.inlinePlaybackEndpoint,_.sv))p.watch_endpoint=U;if(Q.videoPreviewData){var J,n=(J=_.V(Q.videoPreviewData.inlinePlaybackEndpoint,_.sv))==null?void 0:J.startTimeSeconds;n!==void 0&&(A.playerConfig||(A.playerConfig={}),A.playerConfig.playbackStartConfig||(A.playerConfig.playbackStartConfig={}),A.playerConfig.playbackStartConfig.startPosition||(A.playerConfig.playbackStartConfig.startPosition={}),A.playerConfig.playbackStartConfig.startSeconds=
n,A.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(n*1E3))}Q.inlinePlayer.loadVideoWithPlayerResponse(A,p);if(Q.JSC$18980_playerPromise)return l.jumpTo(2);Q.JSC$18980_playerPromise=Q.inlinePlayer.getPlayerPromise();return l.yield(Q.JSC$18980_playerPromise,3)}l.nextAddress!=2&&(L=l.yieldResult,L.setInlinePreview(!0),L.setSizeStyle(!1,!0),Q.ytPlayerListenerBehavior.listenToPlayerEvents(L,Q.JSC$18980_playerEvents),Q.player=L,_.Bn(Q.hostElement,"player-api-ready"));((M=Q.opts)==
null?0:M.showPlayerControls)&&Q.videoPreviewData&&Q.player&&(Q.playerControlsData={playerResponse:A,isInlinePlayback:!0,thumbnailOverlays:Q.videoPreviewData.thumbnailOverlays,playerApi:Q.player},Q.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!Q.unroundCornersForPlayback,additionalButton:Q.getAdditionalButtonType(Q.videoPreviewData.thumbnailOverlays)});return l.return(2)})};
_.d.revealPreviewUi=function(){var A=this;this.playbackIntentTriggered&&_.q29(this,function(){A.hasThumbnailPositionChangedSinceTriggered()||(A.updateActiveState(!0),A.noAnimation=!1)})};
_.d.hasThumbnailPositionChangedSinceTriggered=function(){var A=this.positionData,Q=this.getThumbnailPositionData();return(A==null?void 0:A.initialTopPosition)!==(Q==null?void 0:Q.initialTopPosition)||(A==null?void 0:A.initialHorizontalPosition)!==(Q==null?void 0:Q.initialHorizontalPosition)};
_.d.getThumbnailPositionData=function(){var A,Q;if((Q=this.opts)==null||!Q.thumbnail)return null;Q=this.opts.thumbnail;var b=((A=this.opts)==null?0:A.cropPlayerToFillThumbnailHorizontally)?!1:!0;var f=Q.getBoundingClientRect();A=f.width;Q=f.height;var a=f.top+window.scrollY;f=f.left+window.scrollX;var T=b?Math.ceil(A):A;b=b?Math.ceil(Q):Q;var G=A/T;A={initialScale:G,initialTopPosition:a-12*G,finalTopPosition:a-12-(b-Q)/2,initialHorizontalPosition:f-(12+(T-A)/2),finalHorizontalPosition:f-12-(T-A)/
2,videoPreviewWidth:T,videoPreviewHeight:b};return A};
_.d.updateActiveState=function(A){this.active=A;this.ytdReduxBehavior.dispatch(_.G7({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:A}))};
_.d.stopPlayer=function(A){A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(A)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.j7.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.d.deactivate=function(A){A=A===void 0?{}:A;A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;tD&&(tD.disconnect(),tD=null);this.stopPlayer({resetWatchEndpointStartTime:A});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.d.isValidThumbnailOverlayButton=function(A,Q){A=A.thumbnailOverlayButtonRenderer;var b;return!!A&&!!A.tooltip&&!((b=A.icon)==null||!b.iconType)&&Q.includes(A.icon.iconType)};
_.d.isValidThumbnailOverlayButtonViewModel=function(A,Q){var b;A=_.V((b=A.thumbnailOverlayButtonViewModel)==null?void 0:b.overlayButton,_.jJ);return!!A&&!!A.title&&!!A.iconName&&Q.includes(A.iconName)};
_.d.getAdditionalButtonType=function(A){var Q=this;if(_.K("web_imp_fastforward_button"))return{button:1};if(_.K("web_imp_miniplayer_button"))return{button:2};if(_.K("web_imp_playback_speed_button"))return{button:3};var b=["BOX_STACK_3"],f=(A||[]).filter(function(T){return Q.isValidThumbnailOverlayButton(T,b)}).map(function(T){return T.thumbnailOverlayButtonRenderer});
if(f.length)return{button:4,thumbnailOverlayButtonRenderers:f};var a=["BOX_STACK_3"];A=(A||[]).filter(function(T){return Q.isValidThumbnailOverlayButtonViewModel(T,a)}).map(function(T){return _.V(T.thumbnailOverlayButtonViewModel.overlayButton,_.jJ)});
if(A.length)return{button:4,thumbnailOverlayButtonViewModels:A}};
_.d.allowCaptions=function(){var A;return!((A=this.opts)==null?0:A.forceCaptionsOff)};
_.d.allowUnmuting=function(){var A;return this.enableAudioControls&&!((A=this.opts)==null?0:A.forceMutedVolume)};
_.d.beginStartTimeUpdater=function(){var A=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.St(function(){A.updateWatchEndpointStartTime()},1E3)};
_.d.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.d.resetPreventProgressSaveTimer=function(){this.JSC$18980_preventProgressSaveTimer!==null&&(_.j7.cancelJob(this.JSC$18980_preventProgressSaveTimer),this.JSC$18980_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.d.updateWatchEndpointStartTime=function(A){var Q=this.videoPreviewData;if(this.player&&Q!=null&&Q.inlinePlaybackEndpoint&&!this.JSC$18980_preventProgressSaveTimer){A=A?0:Math.floor(this.player.getCurrentTime());var b=_.V(Q.navigationEndpoint,_.sv);b&&(b.startTimeSeconds=A);if(Q=_.V(Q.inlinePlaybackEndpoint,_.sv))Q.startTimeSeconds=A}};
_.d.isShortcutClick=function(A){return!!A&&(A.ctrlKey||A.shiftKey||A.metaKey)};
_.d.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.d.openInMiniplayer=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1){b=(Q=A.videoPreviewData)==null?void 0:Q.navigationEndpoint;if(!b)return f.return();_.kg().lockupActivation=!0;return f.yield(_.UtN(_.fJ().resolve(_.zb),b),2)}_.kg().userActivation=!0;_.Oi(f)})};
_.d.navigateToWatch=function(A){var Q,b=(Q=this.videoPreviewData)==null?void 0:Q.navigationEndpoint;if(b){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(b,A,!0);else{var f;_.K("web_thumbnail_to_watch_transition")&&((f=this.opts)==null?0:f.thumbnail)&&_.PoL(_.fJ().resolve(_.Hg),this.opts.thumbnail);_.Bn(this.hostElement,"yt-navigate",{endpoint:b})}this.deactivate()}};
_.d.getInlinePlaybackVideoId=function(){var A,Q;return(Q=_.V((A=this.videoPreviewData)==null?void 0:A.inlinePlaybackEndpoint,_.sv))==null?void 0:Q.videoId};
_.d.getInlinePlaybackTrackingParams=function(){var A,Q;return(A=this.videoPreviewData)==null?void 0:(Q=A.inlinePlaybackEndpoint)==null?void 0:Q.clickTrackingParams};
_.d.hasMultipleVideoPreviews=function(){var A;return!!(((A=this.opts)==null?0:A.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.d.startPlaybackForNextVideo=function(){var A;(A=this.opts)!=null&&A.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())};
_.Qr.Object.defineProperties(Sf.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null?0:A.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null||!A.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 A;if(Array.isArray((A=this.opts)==null?void 0:A.videoPreviewData)){var Q;return(Q=this.opts)==null?void 0:Q.videoPreviewData[this.videoPreviewDataIndex]}var b;return(b=this.opts)==null?void 0:b.videoPreviewData}}});
Sf.prototype.onIsAdsVideoChange=Sf.prototype.onIsAdsVideoChange;Sf.prototype.onInlinePreviewIsEnabledChange=Sf.prototype.onInlinePreviewIsEnabledChange;Sf.prototype.optsChanged=Sf.prototype.optsChanged;Sf.prototype.onMouseLeave=Sf.prototype.onMouseLeave;Sf.JSC$18979_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Sf.JSC$18979_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Sf.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],Sf.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Sf.prototype,"componentBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Sf.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.GT.YtSparklesClickLocationBehavior),_.c("design:type",Object)],Sf.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Sf.prototype,"opts",void 0);_.E([_.C(),_.c("design:type",Object)],Sf.prototype,"playerControlsData",void 0);
_.E([_.C(),_.c("design:type",Object)],Sf.prototype,"playerControlsAppApi",void 0);_.E([_.C(),_.c("design:type",Object)],Sf.prototype,"playerControlsOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Sf.prototype,"noAnimation",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Sf.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Sf.prototype,"active",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Sf.prototype,"playing",void 0);_.E([_.C({selector:_.cYf}),_.c("design:type",Boolean)],Sf.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.C(),_.c("design:type",String)],Sf.prototype,"pagePath",void 0);_.E([_.C({selector:_.vgb}),_.c("design:type",Boolean)],Sf.prototype,"isWatchPage",void 0);_.E([_.H("videoPreviewData"),_.c("design:type",Object),_.c("design:paramtypes",[])],Sf.prototype,"thumbnailData",null);
_.E([_.H("opts","active"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Sf.prototype,"hidePlayerControls",null);_.E([_.H("opts"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Sf.prototype,"isAdsVideo",null);_.E([_.H("opts"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Sf.prototype,"roundedCornersSmall",null);
_.E([_.H("opts"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Sf.prototype,"roundedCornersMedium",null);_.E([_.H("opts"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Sf.prototype,"roundedCornersLarge",null);_.E([_.H("opts"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Sf.prototype,"unroundCornersForPlayback",null);
_.E([_.H("opts","videoPreviewDataIndex"),_.c("design:type",Object),_.c("design:paramtypes",[])],Sf.prototype,"videoPreviewData",null);_.E([_.C(),_.c("design:type",Object)],Sf.prototype,"videoPreviewDataIndex",void 0);_.E([_.V1("#inline-player"),_.c("design:type",Object)],Sf.prototype,"inlinePlayer",void 0);_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[MouseEvent]),_.c("design:returntype")],Sf.prototype,"onMouseLeave",null);
_.E([_.I_("opts"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sf.prototype,"optsChanged",null);_.E([_.I_("inlinePreviewIsEnabled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sf.prototype,"onInlinePreviewIsEnabledChange",null);_.E([_.iN("isAdsVideo"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sf.prototype,"onIsAdsVideoChange",null);
_.E([_.h({is:"ytd-video-preview",disableElementRegistration:!0})],Sf);
_.W(Sf,"ytd-video-preview",function(){if(RJt!==void 0)return RJt;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return RJt=A},{mode:2});
}catch(e){_._DumpException(e)}
try{
var KB7,iLO,JU7;KB7=function(A){return _.K("kevlar_watch_cinematics_invisible")||A.fullscreen&&_.K("kevlar_watch_cinematics_invisible_in_fullscreen")||A.theater&&!A.fullscreen&&_.K("kevlar_watch_cinematics_invisible_in_theater")};
iLO=function(){var A=document.createElement("canvas"),Q=A.getContext("2d");if(!Q)throw Error("mo");_.xE(A,{position:"absolute",width:"100%",height:"100%"});return{element:A,context:Q}};
JU7=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.K("kevlar_watch_cinematics_css_blur")};
_.Vst=function(A,Q,b){return Math.abs(A-Q)<=(b||1E-6)};
_.OLs=function(A,Q){return A==Q?!0:A&&Q?A.width==Q.width&&A.height==Q.height:!1};_.nMN=new _.fU("notificationActionRenderer");var k5d=function(A){var Q=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Mj;this.element.addEventListener("load",function(){Q.loaded=!0;Q.resolver.resolve(Q.element)});
this.element.addEventListener("error",function(){Q.failed=!0});
this.element.src=A};var ISq=function(A,Q){this.image=A;this.frame=Q};
ISq.prototype.drawToCanvas=function(A,Q){var b=this.frame.width/this.frame.columns,f=this.frame.height/this.frame.rows,a=Q.offsetX,T=Q.offsetY;KB7(Q)?(A.fillStyle=Q.fullscreen?"#000":"#0f0f0f",A.fillRect(a,T,(Q==null?void 0:Q.width)||b,(Q==null?void 0:Q.height)||f)):A.drawImage(this.image,this.frame.column*b,this.frame.row*f,b,f,a,T,(Q==null?void 0:Q.width)||b,(Q==null?void 0:Q.height)||f)};
var HLN=function(A){this.color=A};
HLN.prototype.drawToCanvas=function(A,Q){var b=Q.offsetX,f=Q.offsetY,a=Q.width,T=Q.height;A.fillStyle=KB7(Q)?Q.fullscreen?"#000":"#0f0f0f":this.color;A.fillRect(b,f,a,T)};var AJ=function(A,Q){_.Kj.call(this);this.playerApi=Q;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.iw(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();CQt(this,A);qeN(this);this.update()};
_.O(AJ,_.Kj);AJ.prototype.addEventListeners=function(){var A=this,Q=function(){A.update()},b=function(a){A.paused||(a.type==="newdata"&&(A.mosaics.clear(),oMK(A),QB(A)),qeN(A),A.update())},f=function(){A.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",Q);this.playerApi.addEventListener("onVideoDataChange",b);this.playerApi.addEventListener("onStateChange",f);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoProgress",Q);A.playerApi.removeEventListener("onVideoDataChange",b);A.playerApi.removeEventListener("onStateChange",f)})};
var CQt=function(A,Q){A.cinematicContainerRenderer!==Q&&(A.cinematicContainerRenderer=Q,oMK(A),QB(A),A.colorStoreUpdateJobId=_.j7.addLowPriorityJob(function(){var b;if((b=A.cinematicContainerRenderer.colorStore)!=null&&b.sampledColors){b=Infinity;for(var f=_.F(A.cinematicContainerRenderer.colorStore.sampledColors),a=f.next();!a.done;a=f.next()){a=a.value;var T=Number(a.key);T!==0&&T<b&&(b=T);T=_.w6(a.value);A.colorStore.set(a.key,T)}A.colorStoreTimeInterval=b}}))},oMK=function(A){A.colorStoreUpdateJobId&&
(_.j7.cancelJob(A.colorStoreUpdateJobId),A.colorStoreUpdateJobId=void 0);
A.colorStore.clear();A.currentStoryboardColor=void 0},ts7=function(A,Q){var b;
return(b=A.getStoryboardFrame(Q))==null?void 0:b.url};
AJ.prototype.onPlayerStateChange=function(){this.update()};
AJ.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var qeN=function(A){var Q=A.getStoryboardFrame(0);Q&&(Q=new _.iw(Q.width/Q.columns,Q.height/Q.rows),_.OLs(A.currentStoryboardSize,Q)||(A.currentStoryboardSize=Q,A.publish("STORYBOARD_SIZE_CHANGED",A.currentStoryboardSize)))},rUO=function(A,Q){A.currentStoryboardIndex=Q;
A.pendingStoryboardIndex=NaN;Q=A.getStoryboardFrame(A.currentStoryboardIndex);A.currentStoryboard=new ISq(A.mosaics.get(Q.url).element,Q);A.publish("STORYBOARD_CHANGED",A.currentStoryboard);A.lastUpdateTime=(0,_.f4)()};
AJ.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var QB=function(A){A.currentStoryboardIndex=NaN;A.pendingStoryboardIndex=NaN;A.currentStoryboard&&(A.currentStoryboard=void 0,A.publish("STORYBOARD_CHANGED",void 0));A.lastUpdateTime=NaN};
AJ.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)QB(this);else{var A=this.playerApi.getPlayerState(1);if(A===-1||A===5||A===0)QB(this);else if(isNaN(this.lastUpdateTime)||!((0,_.f4)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(A=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){A=""+Math.round(A*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var Q=this.colorStore.get(A);Q?Q!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=Q,this.currentStoryboard=new HLN(Q),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.f4)()):(_.Wv(new _.IO("Could not find color for timestamp: "+A,this.cinematicContainerRenderer)),QB(this))}else QB(this);else jCK(this,A)}};
var jCK=function(A,Q){var b=A.getStoryboardFrameIndex(Q);if(b!==A.currentStoryboardIndex&&b!==A.pendingStoryboardIndex){Q=ts7(A,b);var f=A.mosaics.get(Q);f?f.loaded&&rUO(A,b):(A.pendingStoryboardIndex=b,b=new k5d(Q),A.mosaics.set(Q,b),b.resolver.promise.then(function(){if(!A.isDisposed()&&!A.paused&&!isNaN(A.pendingStoryboardIndex)){var a=ts7(A,A.pendingStoryboardIndex);if(a){var T;(T=A.mosaics.get(a))!=null&&T.loaded&&rUO(A,A.pendingStoryboardIndex)}else QB(A)}}))}};
AJ.prototype.getStoryboardFrameIndex=function(A){var Q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(A,Q)};
AJ.prototype.getStoryboardFrame=function(A){var Q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,b,f;return((f=(b=this.playerApi).getStoryboardFrame)==null?void 0:f.call(b,A,Q))||null};
AJ.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var fm=function(A,Q,b,f){f=f===void 0?!1:f;_.k$.call(this);this.cinematicContainerRenderer=Q;this.playerApi=b;this.theater=this.fullscreen=!1;var a;this.ambientLightThemeEnabled=!f&&!!(Q==null?0:(a=Q.config)==null?0:a.enableInLightTheme);this.ambientFullscreenEnabled=f&&_.K("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=f&&_.K("web_cinematic_theater_mode");this.container=document.createElement("div");A.appendChild(this.container);var T;if(_.K("web_cinematic_theater_mode")||_.K("web_cinematic_fullscreen")||
(Q==null?0:(T=Q.config)==null?0:T.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);RHM(this);A=this.ambientV2Container||this.container;this.backCanvas=iLO();this.frontCanvas=iLO();A.appendChild(this.backCanvas.element);A.appendChild(this.frontCanvas.element);this.storyboardManager=new AJ(Q,this.playerApi);_.SY(this,this.storyboardManager);this.addEventListeners();gMO(this)?eHK(this,100+bS(this)*3*2,100+bS(this)*3*2):hHl(this);
WBx(this,this.storyboardManager.currentStoryboard)};
_.O(fm,_.k$);var RHM=function(A){A.ambientV2Container?vMl(A):(_.xE(A.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+EM7(A)+", "+xpN(A)+")"}),JU7()&&_.xE(A.container,"filter","blur("+_.GP("cinematic_watch_css_filter_blur_strength",40)+"px)"))},vMl=function(A){if(A.ambientV2Container){var Q=A.playerApi.getVideoAspectRatio();
_.xE(A.container,{"aspect-ratio":""+Q,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.xE(A.ambientV2Container,{"aspect-ratio":""+Q,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+EM7(A)+", "+xpN(A)+")"});JU7()&&_.xE(A.ambientV2Container,"filter","blur("+_.GP("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
fm.prototype.setFullscreen=function(A,Q){this.fullscreen=A;this.theater=!!Q;RHM(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),A=this.storyboardManager.currentStoryboard,cUn(this),A&&zHM(this,A)};
fm.prototype.addEventListeners=function(){var A=this,Q=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(a){WBx(A,a)}),b=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){hHl(A)});
this.addOnDisposeCallback(function(){A.storyboardManager.unsubscribeByKey(Q);A.storyboardManager.unsubscribeByKey(b)});
if(this.ambientV2Container){var f=function(){vMl(A)};
this.playerApi.addEventListener("onVideoDataChange",f);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoDataChange",f)})}};
var hHl=function(A){if(!gMO(A)){var Q=A.storyboardManager.currentStoryboardSize;isNaN(Q.width)||isNaN(Q.height)||eHK(A,Number(Q.width)+bS(A)*3*2,Number(Q.height)+bS(A)*3*2)}},eHK=function(A,Q,b){A.backCanvas.element.width=Q;
A.backCanvas.element.height=b;A.frontCanvas.element.width=Q;A.frontCanvas.element.height=b},gMO=function(A){return A.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},WBx=function(A,Q,b){b=b===void 0?!1:b;
var f=A.frontCanvas.element.getAnimations()[0];f?(f.pause(),A.backCanvas.context.globalAlpha=Number(getComputedStyle(A.frontCanvas.element).opacity),A.frontCanvas.element.style.opacity="0",f.finish()):A.backCanvas.context.globalAlpha=1;A.backCanvas.context.drawImage(A.frontCanvas.element,0,0,A.backCanvas.element.width,A.backCanvas.element.height);cUn(A);Q&&zHM(A,Q);Q=Q?A.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.GP("cinematic_watch_fade_out_duration",500);f=_.GP("cinematic_watch_transition_frame_rate")/
1E3;var a={};f&&(a={easing:"steps("+Math.round(Q*f)+")"});(b===void 0?0:b)||A.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:Q,iterations:1},a));A.frontCanvas.element.style.opacity="1"},cUn=function(A){var Q=A.ambientLightThemeEnabled||A.ambientTheaterModeEnabled,b=A.ambientLightThemeEnabled||A.ambientFullscreenEnabled;
A.frontCanvas.context.fillStyle=A.theater&&Q||A.fullscreen&&b?"#000":"#0f0f0f";JU7()||(A.frontCanvas.context.filter="blur(0)");A.frontCanvas.context.fillRect(0,0,A.frontCanvas.element.width,A.frontCanvas.element.height)},zHM=function(A,Q){JU7()||(A.frontCanvas.context.filter="blur("+bS(A)+"px)");
A.frontCanvas.context.globalAlpha=A.fullscreen&&A.ambientFullscreenEnabled||A.theater&&A.ambientTheaterModeEnabled?_.GP("cinematic_watch_effect_letterbox_opacity",.4):_.GP("cinematic_watch_effect_opacity",.4);var b={offsetX:bS(A)*3,offsetY:bS(A)*3,theater:A.theater,fullscreen:A.fullscreen};gMO(A)&&(b.width=100,b.height=100);Q.drawToCanvas(A.frontCanvas.context,b);A.frontCanvas.context.globalAlpha=1},bS=function(A){var Q;
return(Q=A.cinematicContainerRenderer.config.blurStrength)!=null?Q:5},EM7=function(A){var Q,b;
if((A.fullscreen||A.theater)&&((Q=A.cinematicContainerRenderer.config)==null?0:(b=Q.watchFullscreenConfig)==null?0:b.colorSourceWidthMultiplier))return A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var f;return(f=A.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?f:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier},xpN=function(A){var Q,b;
if((A.fullscreen||A.theater)&&((Q=A.cinematicContainerRenderer.config)==null?0:(b=Q.watchFullscreenConfig)==null?0:b.colorSourceHeightMultiplier))return A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var f;return(f=A.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?f:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
fm.prototype.disposeInternal=function(){_.k$.prototype.disposeInternal.call(this);this.container.remove()};
fm.prototype.clear=function(){WBx(this,void 0,!0)};
fm.prototype.pause=function(){this.storyboardManager.pause()};var wHt;wHt=_.kE(function(){var A,Q,b=!((Q=(A=document.createElement("canvas")).getContext)==null||!Q.call(A,"2d")),f;A=!((f=CSS)==null||!f.supports("filter: blur(0)"));f=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var a;return b&&A&&f&&!((a=CSS)==null||!a.supports("aspect-ratio: 1 / 1"))});
_.al=function(A,Q){_.Kj.call(this);this.container=A;this.playerApi=Q;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=u9F(this);this.update()};
_.O(_.al,_.Kj);_.ZLx=function(A){var Q=document.documentElement.hasAttribute("dark");A.isDarkModeEnabled=Q;A.update()};
_.yUn=function(A,Q){A.settingEnabled=Q;A.update()};
_.al.prototype.setFullscreen=function(A,Q){this.fullscreen=A;this.theater=!!Q;this.update()};
_.YeM=function(A,Q){A.cinematicContainerRenderer=Q;A.cinematicContainerRenderer&&(A.cinematicsVe=_.K6(A.isShorts()?227858:159022),_.l$(_.IP(),A.cinematicsVe),A.loggingClientData={watchCinematicContainerData:{presentationStyle:A.cinematicContainerRenderer.presentationStyle}});A.update()};
_.al.prototype.isShorts=function(){var A,Q;return((A=this.cinematicContainerRenderer)==null?void 0:(Q=A.config)==null?void 0:Q.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.al.prototype.isAllowed=function(){var A;if(A=wHt()){var Q,b,f;A=((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((f=this.cinematicContainerRenderer)==null||!f.colorStore)||((Q=this.cinematicContainerRenderer)==null?void 0:Q.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(A)if(_.K("web_cinematics_pausing")){var a,T;A=this.isDarkModeEnabled||!!((a=this.cinematicContainerRenderer)==
null?0:(T=a.config)==null?0:T.enableInLightTheme)}else{var G,p;a=!!((G=this.cinematicContainerRenderer)==null?0:(p=G.config)==null?0:p.enableInLightTheme)&&(_.vG("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);A=this.isDarkModeEnabled||a}if(G=A){var P,U;G=!((U=(P=this.prefersReducedMotionQuery)==null?void 0:P.matches)!=null&&U)}return G};
_.Dpn=function(A){(A=A.currentCinematicEffect)!=null&&(A=A.storyboardManager,A.paused=!1,qeN(A),A.update())};
_.al.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var u9F=function(A){if(!_.K("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var Q=window.matchMedia("(prefers-reduced-motion: reduce)"),b=function(){A.update()};
Q.addListener(b);A.addOnDisposeCallback(function(){Q.removeListener(b)});
return Q}};
_.al.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var A=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new fm(this.container,A,this.playerApi,this.isDarkModeEnabled),_.SY(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var Q=this.currentCinematicEffect;Q.cinematicContainerRenderer!==
A&&(Q.cinematicContainerRenderer=A,CQt(Q.storyboardManager,A),RHM(Q));A=_.nD();_.k_(0,194,!0);A.save();A=_.WR();this.cinematicsVe&&A&&_.Y_(A,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(A=_.WR(),this.cinematicsVe&&A&&_.DV(A,[this.cinematicsVe],!1,this.loggingClientData),_.AT(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Qr.Object.defineProperties(_.al.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var uf7;var ZmK;_.gn({_template:function(){if(ZmK!==void 0)return ZmK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=
A.content,b=Q.insertBefore;uf7===void 0&&(uf7=document.createElement("template"));var f=uf7;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return ZmK=A},
is:"tp-yt-iron-pages",behaviors:[_.eI,_.$l],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Ddl;_.$dq=function(){if(_.K("kevlar_home_skeleton")&&!Ddl){var A=document.querySelector("#home-page-skeleton");A&&(_.hQ("hgcr"),_.im(A),Ddl=!0)}};
Ddl=!1;_.oe=new _.fU("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var t5N,jQn,REM,gvN,eEN,hEl,WNF,vvM,xZx,cIx,zEn,ZZx,YVl,DZt,yIx,wIr,u8n,sQ7;_.ovs=function(A,Q,b){Q=Q===void 0?5:Q;if(Q!==0){var f=typeof A==="function"?A():document.querySelector(A);f?(b==null?0:b.enableSmartFocus)?_.DQ6(f):f.focus():setTimeout(function(){_.ovs(A,Q-1,b)},500)}};
t5N=function(A){return String.raw.apply(String,[{raw:A}].concat(_.ri(_.E$.apply(1,arguments).map(function(Q){return Q instanceof Array?Q.join(""):Q}))))};
jQn=function(A){var Q=_.E$.apply(1,arguments),b=Q.length;if(!Array.isArray(A)||!Array.isArray(A.raw)||A.length!==A.raw.length||!_.LJN&&A===A.raw||!(_.LJN&&!_.MAN||_.Hh(A))||b+1!==A.length)throw new TypeError("$");return new rIr(Object.freeze({strings:Object.freeze(A),args:Object.freeze(Q)}))};
REM=function(A){return _.fxi(_.b_9(A&16777215))<.5};
gvN=function(A,Q,b){var f=b.minimumRowsOfVideosBetweenSections===void 0?1:b.minimumRowsOfVideosBetweenSections;return A<(b.minimumRowsOfVideosAtStart===void 0?2:b.minimumRowsOfVideosAtStart)||Q!==null&&A-Q<=f?!1:!0};
eEN=function(A,Q){var b=0,f=0;A=_.F(A);for(var a=A.next();!a.done;a=A.next()){var T=a.value;if(T.richItemRenderer)T.richItemRenderer.rowIndex=f,T.richItemRenderer.colIndex=b++,b===Q&&(b=0,f++);else if(T.richGroupRenderer&&T.richGroupRenderer.numColumns!==void 0)T.richGroupRenderer.rowIndex=f,T.richGroupRenderer.colIndex=b,b+=T.richGroupRenderer.numColumns,b===Q&&(b=0,f++);else if(T.richSectionRenderer){var G=a=void 0;if(T=_.V((a=T)==null?void 0:(G=a.richSectionRenderer)==null?void 0:G.content,_.Ooy))T.rowIndex=
f++}}};
hEl=function(A,Q){var b=Q.contentElement;Q=Q.rendererToTagNameMap;if(b&&Q&&Q.size!==0){for(var f=new Map,a=_.F(b.children),T=a.next();!T.done;T=a.next()){T=T.value;var G=T.tagName.toLowerCase(),p=f.get(G);p||(p=[],f.set(G,p));p.push(T)}if(f.size!==0)for(a=Math.min(A.length,b.children.length),T=new Map,G=0;G<a;G++){p=Object.keys(A[G])[0];p=Q.get(p);if(!p)break;var P=T.get(p);P===void 0&&(P=0,T.set(p,P));var U=f.get(p);if(!U||P>=U.length)break;T.set(p,P+1);p=U[P];P=b.children[G];P!==p&&(_.YTA=!0,_.DSf.set(p,
!0),b.insertBefore(p,P),_.DSf.delete(p),_.YTA=!1)}}};
WNF=function(A,Q,b,f,a,T,G){f=f===void 0?{}:f;if(!A||!A.length)return{orderedContent:[]};A=A.slice();var p=[],P=[];a=null;for(var U=0,L=function(D){P.sort(function(y,a9){return a9.skippedOnRow-y.skippedOnRow});
for(var w,u=(w=P.shift())==null?void 0:w.content;u;)!u.richSectionRenderer&&D||p.push(u),w=void 0,u=(w=P.shift())==null?void 0:w.content},M=void 0,l=void 0,J=new Set;A.length>0||P.length>0;){for(var n=[],t=Q;t>0;){var g=void 0,e=void 0,x=(e=P[0]&&P[0].skippedOnRow<U?(g=P.shift())==null?void 0:g.content:void 0)!=null?e:A.shift();
if(!x)break;if(x.richItemRenderer)g=x.richItemRenderer.targetId,e=void 0,g&&((e=G)==null?0:e.has(g))&&(e=G.get(g),!M||e&&e.timestamp>M.timestamp)&&(M=e,l&&J.add(l),l=g),n.push(x),t--;else if(x.richGroupRenderer&&x.richGroupRenderer.numColumns!==void 0)x.richGroupRenderer.numColumns<=t?(n.push(x),t-=x.richGroupRenderer.numColumns):t===Q&&x.richGroupRenderer.numColumns>Q?(n.push({richGroupRenderer:Object.assign({},x.richGroupRenderer,{numColumns:Q})}),t=0):P.push({content:x,skippedOnRow:U});else if(x.richSectionRenderer)if(gvN(U,
a,f)&&t===Q){p.push(x);a=U;U++;continue}else P.push({content:x,skippedOnRow:U});else if(x.continuationItemRenderer){L(!0);p.push(x);t=0;break}if(t===0)p.push.apply(p,_.ri(n));else if(!b&&A.length===0){L(!1);p.push.apply(p,_.ri(n));t=0;break}}U++;M&&(p.push(M.content),U++);l=M=void 0}eEN(p,Q);T&&hEl(p,T);return{orderedContent:p,pinnedContentNotShownTargetIds:J}};
vvM=function(){return _.E$.apply(0,arguments).flat().filter(function(A){return A}).join(";")};
xZx=function(){return jQn(Evt,vvM.apply(null,_.ri(_.E$.apply(0,arguments))))};
cIx=function(A){switch(A){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
zEn=function(A){return A.talkToRecs};
ZZx=function(A,Q){if(Q){var b=_.QK().getState().entities.flowStateEntity,f=wIr(A),a=[Q];f&&f!==Q&&a.push(f);var T=!0,G;if(b&&A.flowStateEntityKey&&((G=b[A.flowStateEntityKey])==null?void 0:G.primaryButtonDisabled)!==void 0){var p;T=!((p=b[A.flowStateEntityKey])==null||!p.primaryButtonDisabled)}u8n(A,f!=null?f:Q,a,T)}};
YVl=function(A){return _.H1(_.QK(),function(Q){return Q.entities.flowStateEntity},function(Q,b){if(A.flowStateEntityKey){var f,a=Q==null?void 0:(f=Q[A.flowStateEntityKey])==null?void 0:f.currentStepId,T;
b=b==null?void 0:(T=b[A.flowStateEntityKey])==null?void 0:T.currentStepId;T=_.QK().getState().talkToRecs;if(a&&a!==b){var G;Q=(Q==null?void 0:(G=Q[A.flowStateEntityKey])==null?void 0:G.stepIdStack)||Object.keys(T.stepStates);G=!yIx(T==null?void 0:T.stepStates[a]);u8n(A,a,Q,G)}}})};
DZt=function(A){return _.H1(_.QK(),zEn,function(Q){var b=wIr(A);if(b){var f=Object.keys(Q.stepStates);Q=!yIx(Q==null?void 0:Q.stepStates[b]);u8n(A,b,f,Q)}})};
yIx=function(A){var Q=Object.keys((A==null?void 0:A.selectionStates)||{}).reduce(function(T,G){return T||(A==null?void 0:A.selectionStates[G].isSelected)},!1),b,f,a=!!(A==null?0:(b=A.userQuery)==null?0:(f=b.userQuery)==null?0:f.trim());
return Q||a};
wIr=function(A){if(A.flowStateEntityKey){var Q,b,f=(Q=_.QK().getState().entities.flowStateEntity)==null?void 0:(b=Q[A.flowStateEntityKey])==null?void 0:b.currentStepId;if(f)return f}};
u8n=function(A,Q,b,f){_.QK().dispatch(_.HL("flowStateEntity",A.flowStateEntityKey,{currentStepId:Q,stepIdStack:b,key:A.flowStateEntityKey,primaryButtonDisabled:f}))};
_.$Z7=function(A,Q){return _.Me(A.entities,"youchatPendingResponseEntity",Q)};
_.NRr=function(A){return function(Q){_.A8(_.HL("youchatPendingResponseEntity",A,{entityKey:A,isPendingResponse:Q}))}};
sQ7=function(A){A==null||A.addEventListener("DOMLoaded",function(){A.goToAndPlay(A.totalFrames-48,!0)})};
_.mM=function(A){this.__isSoyCss=!0;this.css=t5N.apply(null,[A.strings].concat(_.ri(A.args)))};
_.mM.prototype.toString=function(){return this.css};
var rIr=function(){_.mM.apply(this,arguments)};
_.O(rIr,_.mM);var Evt=_.sC(["",""]);var mZn;var Apx;_.gn({_template:function(){if(Apx!==void 0)return Apx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
var Q=A.content,b=Q.insertBefore;mZn===void 0&&(mZn=document.createElement("template"));var f=mZn;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Apx=A},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var QeN=new _.fU("talkToRecsFlowRenderer");var bAt=new _.fU("flowRootRenderer");var fL7=new _.fU("learningJourneyQuizViewModel");var aLl=new _.fU("chipsShelfViewModel");var T4q=new _.fU("responsiveContainerConfiguration");var ddl=new _.fU("horizontalShelfViewModel");_.FFN=new _.fU("engagementPanelSectionListRenderer");var Gls=new _.fU("conversationResourceViewModel");var B4F=function(){this.horizontal=!1},pqs=function(A,Q){A.horizontal=Q};
B4F.prototype.position=function(A,Q,b,f){f=f===void 0?1:f;A=this.delta(A)*f+Q;f=Math.max(Q,b);return A>=Math.min(Q,b)&&A<=f?A:b};
B4F.prototype.axis=function(A){A=this.direction(A);return A==="up"||A==="down"?"Y":"X"};var Bq=function(A,Q,b){Q=Q===void 0?_.jN():Q;this.target=A;this.manager=Q;this.touchAction=b;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Bq.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(_.ri(this.events)));for(var A=_.F(this.events),Q=A.next();!Q.done;Q=A.next())this.listen(Q.value)}};
Bq.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.ri(this.events)));for(var A=_.F(this.events),Q=A.next();!Q.done;Q=A.next())this.unlisten(Q.value)}};
Bq.prototype.listen=function(A){this.eventMap[A]&&this.target.addEventListener(A,this.eventMap[A])};
Bq.prototype.unlisten=function(A){this.eventMap[A]&&this.target.removeEventListener(A,this.eventMap[A])};var pA=function(){B4F.apply(this,arguments)};
_.O(pA,B4F);pA.prototype.direction=function(A){var Q=A.detail;A=Q.deltaY;Q=Q.deltaX;return A&&!this.horizontal?A>0?"down":"up":Q&&this.horizontal?Q>0?"right":"left":"none"};
pA.prototype.distance=function(A){return Math.abs(this.delta(A))};
pA.prototype.delta=function(A){var Q=this.direction(A),b=A.detail;A=b.deltaX;b=b.deltaY;return Q==="up"||Q==="down"?b||0:A||0};
pA.prototype.velocity=function(A){var Q=this.direction(A),b=A.detail;A=b.velocityX;b=b.velocityY;return Math.abs(Q==="up"||Q==="down"?b||0:A||0)};_.Pq=function(A,Q,b,f,a,T){a=a===void 0?new pA:a;T=T===void 0?_.jN():T;Bq.call(this,Q,T,f);var G=this;this.element=A;this.target=Q;this.config=b;this.input=a;this.manager=T;this.events=["panstart","panmove","panend"];this.onPanStart=function(){G.config.draggingClass&&G.element.classList.add(G.config.draggingClass);G.config.startAction&&G.config.startAction()};
this.onPanMove=function(p){var P=PPr(G,p);if(P){G.move(p,P);P.fade&&G.fade(p,P);var U=G.input.direction(p);P.moveAction&&P.moveAction(Xqq(G,p,P),U)}};
this.onPanEnd=function(p){var P,U,L,M,l,J;return _.B(function(n){if(n.nextAddress==1){G.animationRequestId&&cancelAnimationFrame(G.animationRequestId);G.animationRequestId=void 0;P=PPr(G,p);if(!P)return n.return();U=P;L=U.triggerAction;M=U.fade;l=U.disableFinish;J=U.translateBack;var t=G.input.velocity(p),g=G.input.distance(p),e=G.threshold(P);return t>.3&&g>10||g>e?l?n.jumpTo(6):M?n.yield(Syx(G,p),6):n.yield(Udt(G,p,P),6):J?n.yield(G.translateBack(p),3):n.jumpTo(3)}n.nextAddress!=3&&L&&L();G.config.draggingClass&&
G.element.classList.remove(G.config.draggingClass);G.reset();_.Oi(n)})};
A=Object.keys(b.triggers);this.directions=new Set(A);pqs(this.input,this.directions.has("right")||this.directions.has("left"))};
_.O(_.Pq,Bq);_.Pq.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var PPr=function(A,Q){Q=A.input.direction(Q);return A.config.triggers[Q]};
_.Pq.prototype.move=function(A,Q){var b=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var f=b.input.axis(A),a=b.input.position(A,b.config.startPosition,Q.endPosition,Q.moveRatio||1);b.element.style.transform="translate"+f+"("+a+"px)";b.animationRequestId=void 0}))};
var Xqq=function(A,Q,b){var f=b.moveRatio||1;b=Math.abs(A.config.startPosition-b.endPosition);return Math.min(A.input.distance(Q)*f,b)/b};
_.Pq.prototype.fade=function(A,Q){var b=Q.endOpacity;A=Xqq(this,A,Q);A>0&&(this.element.style.opacity=""+(((b||0)-1)*A+1))};
_.Pq.prototype.threshold=function(A){return A.threshold?A.threshold:Math.abs(A.endPosition-this.config.startPosition)/3};
var Udt=function(A,Q,b){var f,a,T,G,p,P,U;return _.B(function(L){if(L.nextAddress==1)return f=A.input.delta(Q)+A.config.startPosition,a=A.input.axis(Q),T=b,G=T.endPosition,p=T.transitionEndPosition,U=(P=p)!=null?P:G,L.yield(A.element.animate([{transform:"translate"+a+"("+f+"px)"},{transform:"translate"+a+"("+U+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+a+"("+U+"px)";_.Oi(L)})};
_.Pq.prototype.translateBack=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1){if(!Q.element.style.transform)return a.return();b=Q.input.axis(A);f=Q.config.startPosition;return a.yield(Q.element.animate([{transform:Q.element.style.transform},{transform:"translate"+b+"("+f+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}Q.element.style.transform="translate"+b+"("+f+"px)";_.Oi(a)})};
var Syx=function(A,Q){var b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return b=A.input.delta(Q)+A.config.startPosition,f=A.input.axis(Q),a=b+70,T=A.element.style.opacity===""?1:A.element.style.opacity,G.yield(A.element.animate([{transform:"translate"+f+"("+b+"px)",opacity:T},{transform:"translate"+f+"("+a+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+f+"("+a+"px)";A.element.style.opacity="0";_.Oi(G)})};var XV=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;A.scrollRate=3;A.autoScrollAnimationStart=0;A.autoScrollPaused=!1;A.autoScrollRafId=0;return A};
_.O(XV,_.nc);_.d=XV.prototype;_.d.created=function(){var A=this;this.boundAutoScrollHandler=function(Q){A.autoScroll(Q)}};
_.d.detached=function(){this.hostElement.removeEventListener("mouseout",_.lN(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.lN(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.lN(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.d.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.lN(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.lN(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.lN(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.lN(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.lN(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.lN(this,this.endAutoScroll)),this.endAutoScroll())};
_.d.autoScroll=function(A){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=A);var Q;if(Q=!this.autoScrollPaused&&this.scrollTarget)Q=this.scrollTarget,Q=Q.scrollHeight-Q.scrollTop!==Q.clientHeight;Q&&(Q=1E3/this.scrollRate,A-=this.autoScrollAnimationStart,A>Q&&(this.scrollTarget.scrollTop+=Math.ceil(A/Q),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.d.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.d.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
XV.prototype.autoScrollEnabledChanged=XV.prototype.autoScrollEnabledChanged;_.E([_.C(),_.c("design:type",Object)],XV.prototype,"scrollRate",void 0);_.E([_.C(),_.c("design:type",Object)],XV.prototype,"scrollTarget",void 0);_.E([_.C(),_.c("design:type",Boolean)],XV.prototype,"autoScrollEnabled",void 0);_.E([_.iN("autoScrollEnabled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XV.prototype,"autoScrollEnabledChanged",null);_.E([_.kl()],XV);_.LFN=[XV.prototype];var MiN;var Si=function(){var A=_.q.apply(this,arguments)||this;A.buttonUpdate=_.K("web_button_rework");A.dismissButtonOverrides=_.K("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;A.forceDarkTheme=!1;A.forceLightTheme=!1;A.dynamicTextHeight=94;A.hasOverflowButton=!1;A.isInfeedModernization=!1;return A};
_.O(Si,_.q);_.d=Si.prototype;_.d.computeUrlImg=function(A){if(A)return _.XS(A.thumbnails)};
_.d.getLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.d.getLogoClassName=function(A){return this.logoWithPadding(A)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.d.logoWithPadding=function(A){var Q,b;return(A=(Q=A.thumbnails)==null?void 0:(b=Q[0])==null?void 0:b.height)&&A%31===0?!0:!1};
_.d.sendImpressionEndpoints=function(A){A.impressionEndpoints&&_.X5(this.hostElement,A.impressionEndpoints)};
_.d.observeBasicPalette=function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.colorData)==null?void 0:Q.basicColorPaletteData;b?_.vz(this.hostElement,b):_.vz(this.hostElement,{})};
_.d.observeDataChanged=function(){var A;this.dynamicTextHeight=((A=this.data)==null?0:A.supplementalText)?74:94;var Q;this.hasSupplementalText=!((Q=this.data)==null||!Q.supplementalText);if(_.K("web_button_rework")){var b,f,a,T;A=(b=this.data)==null?void 0:(f=b.actionButton)==null?void 0:(a=f.buttonRenderer)==null?void 0:(T=a.colorData)==null?void 0:T.basicColorPaletteData;var G,p,P;if(!((G=this.data)==null?0:(p=G.actionButton)==null?0:(P=p.buttonRenderer)==null?0:P.style)&&A){this.computeIsInfeedModernization(this.data)||
(A.borderColor=A.foregroundTitleColor);var U,L;this.set("data.actionButton.buttonRenderer",_.j2.unsafeClone((U=this.data)==null?void 0:(L=U.actionButton)==null?void 0:L.buttonRenderer))}}};
_.d.observeDataForCounterfactual=function(){if(_.K("kevlar_banner_cf_extra_logging")){var A;((A=this.data)==null?0:A.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.d.computeSupplementalStyle=function(){var A;if((A=this.data)!=null&&A.supplementalText){var Q,b,f;if((Q=this.data)==null?0:(b=Q.colorData)==null?0:(f=b.basicColorPaletteData)==null?0:f.foregroundActivatedColor)return A=_.zx(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+A+"; --yt-endpoint-hover-color:"+A+"; --yt-endpoint-visited-color:"+A+"; --yt-formatted-string-bold-font-weight:700;"}};
_.d.computeForcedDarkTheme=function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.actionButton)==null?void 0:(b=Q.buttonRenderer)==null?void 0:b.style,a,T,G;A=REM(((a=this.data)==null?void 0:(T=a.colorData)==null?void 0:(G=T.basicColorPaletteData)==null?void 0:G.backgroundColor)||0);return f&&A};
_.d.computeForcedLightTheme=function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.actionButton)==null?void 0:(b=Q.buttonRenderer)==null?void 0:b.style,a,T,G;A=!REM(((a=this.data)==null?void 0:(T=a.colorData)==null?void 0:(G=T.basicColorPaletteData)==null?void 0:G.backgroundColor)||0);return f&&A};
_.d.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.d.computeHasTitle=function(A){return!!A.title};
_.d.computeTitleMaxFontSize=function(A){return this.computeHasOverflowButton(A)?28:64};
_.d.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.d.computeIsInfeedModernization=function(){var A,Q,b,f,a=(A=this.data)==null?void 0:(Q=A.actionButton)==null?void 0:(b=Q.buttonRenderer)==null?void 0:(f=b.colorData)==null?void 0:f.basicColorPaletteData;return(a==null?void 0:a.backgroundColor)===452984831||(a==null?void 0:a.backgroundColor)===218103808};
Si.prototype.observeDataForCounterfactual=Si.prototype.observeDataForCounterfactual;Si.prototype.observeDataChanged=Si.prototype.observeDataChanged;Si.prototype.observeBasicPalette=Si.prototype.observeBasicPalette;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],Si.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],Si.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Si.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Si.prototype,"buttonUpdate",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],Si.prototype,"hasSupplementalText",void 0);_.E([_.C(),_.c("design:type",Object)],Si.prototype,"dismissButtonOverrides",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.c("design:type",Boolean)],Si.prototype,"hasTitle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.c("design:type",Object)],Si.prototype,"forceDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.c("design:type",Object)],Si.prototype,"forceLightTheme",void 0);_.E([_.C(),_.c("design:type",Object)],Si.prototype,"dynamicTextHeight",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.c("design:type",Object)],Si.prototype,"hasOverflowButton",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.c("design:type",Object)],Si.prototype,"isInfeedModernization",void 0);_.E([_.iN("data.colorData.basicColorPaletteData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Si.prototype,"observeBasicPalette",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Si.prototype,"observeDataChanged",null);_.E([_.iN("data.isVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Si.prototype,"observeDataForCounterfactual",null);_.E([_.h({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Si);
_.W(Si,"ytd-banner-promo-renderer",function(){if(MiN!==void 0)return MiN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return MiN=A},{mode:1});var lLK;var KFx;var iAN;var Uy=function(){return _.q.apply(this,arguments)||this};
_.O(Uy,_.q);_.E([_.C(),_.c("design:type",Object)],Uy.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.E([_.h({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Uy);
_.W(Uy,"ytd-hashtag-grid-tile-renderer",function(){if(iAN!==void 0)return iAN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return iAN=A},{mode:1});var LA=function(){return _.q.apply(this,arguments)||this};
_.O(LA,_.q);LA.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
LA.prototype.updateRichGridTrendingHashtagsVisibility=function(){var A,Q;if(((A=this.data)==null||!A.isExpanded)&&(Q=this.data)!=null&&Q.tiles){A=this.data.tiles.length;Q=A>this.richGridItemsPerRow?this.richGridItemsPerRow+1:A;var b=Math.ceil(A/Q);this.fullyVisibleRows=A%Q===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}};
LA.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
LA.prototype.updateRichGridTrendingHashtagsVisibility=LA.prototype.updateRichGridTrendingHashtagsVisibility;_.E([_.C(),_.c("design:type",Object)],LA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Number)],LA.prototype,"fullyVisibleRows",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],LA.prototype,"isShowMoreVisible",void 0);_.E([_.C({selector:_.hH,value:0}),_.c("design:type",Number)],LA.prototype,"richGridItemsPerRow",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],LA.prototype,"ytdReduxBehavior",void 0);_.E([_.iN("data","richGridItemsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],LA.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.E([_.h({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],LA);
_.W(LA,"ytd-hashtag-grid-shelf-renderer",function(){if(KFx!==void 0)return KFx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return KFx=A},{mode:1});var JpF;var Vin;var Md=function(){var A=_.q.apply(this,arguments)||this;A.visibleVideos=[];A.hiddenVideos=[];A.modern=_.K("web_modern_buttons");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(Md,_.q);_.d=Md.prototype;_.d.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.d.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"}}}};
_.d.dataChanged=function(){var A=this;this.requestElementsPerRow();var Q,b;this.currentColorPalette=this.isDarkTheme?(Q=this.data)==null?void 0:Q.darkColorData:(b=this.data)==null?void 0:b.lightColorData;var f;if((f=this.currentColorPalette)==null?0:f.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.mL(this,function(){A.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.d.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.d.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.d.computeIsFirstFeedItem=function(A){return A};
_.d.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.d.getCurrentLogo=function(A,Q){if(A)return Q?A.darkLogoImage:A.lightLogoImage};
_.d.computeTitleStyle=function(A){var Q;if((Q=this.data)!=null&&Q.title&&A&&A.textPrimary!==void 0)return"color:"+_.zx(A.textPrimary)+";"};
_.d.computeSubtitleStyle=function(A){var Q;if((Q=this.data)!=null&&Q.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.zx(A.textSecondary)+";"};
_.d.computeDismissIconStyle=function(A){if(this.data&&this.data.dismissButton&&A&&A.textPrimary!==void 0)return"--yt-button-color:"+_.zx(A.textPrimary)+";"};
_.d.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.zx(A.textPrimary)+";--yt-spec-icon-active-other:"+_.zx(A.textPrimary)+";"};
_.d.computeBackgroundStyle=function(A){if(A&&this.data){var Q="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var b=_.XS((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);b&&(Q+='background-image:url("'+b+'");')}A.backgroundColor!==void 0&&(Q+="background-color:"+_.w6(A.backgroundColor)+";");return Q}};
_.d.computeButton=function(){var A,Q=Object.assign({},_.V((A=this.data)==null?void 0:A.showMoreButton,_.wE));if(this.modern&&Q){Q.style="STYLE_MONO_OUTLINE";var b;if(A=(b=this.currentColorPalette)==null?void 0:b.textPrimary)Q.colorData={basicColorPaletteData:{foregroundTitleColor:A,borderColor:A}}}return Q};
_.d.shouldShowBottomButton=function(A,Q){return!(A==null?0:A.header)&&!(A==null||!A.primaryButton)&&Q<3};
_.d.checkExpanded=function(A){this.isExpanded=A&&A.content?this.hiddenVideos.length===0:!0};
_.d.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.d.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.d.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.d.computeHasSectionHeader=function(A){return!!A.header};
_.d.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var A;if((A=this.data.primaryButton)==null?0:A.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 Q;((Q=this.data.dismissButton)==null?0:Q.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var b,f;((b=this.data)==null?0:(f=b.primaryButton)==null?0:f.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.d.setVisibleVideos=function(A){if(this.data&&this.data.content)if(this.data.content.length){var Q=this.data.content.length;this.data.header?A?(this.visibleVideos=this.data.content.slice(0,Math.min(Q,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.slimItemsPerRow),Q)):(this.visibleVideos=this.data.content.slice(0,Math.min(Q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.elementsPerRow),Q)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(Q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.elementsPerRow),Q)):(this.visibleVideos=this.data.content.slice(0,Math.min(Q,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(Q,this.elementsPerRow-1),Q))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.d.setHasMovieRenderer=function(){var A;if((A=this.data)!=null&&A.content){var Q;this.hasMovieRenderer=!!_.V((Q=this.data)==null?void 0:Q.content[0],_.bbM)}else this.hasMovieRenderer=!1};
_.d.requestElementsPerRow=function(){_.Bn(this.hostElement,"yt-request-elements-per-row")};
_.d.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var A=_.F(this.hiddenMediaRenderers),Q=A.next();!Q.done;Q=A.next())Q.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(A=_.Bj(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&A.focus()}};
_.d.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.d.logoWithPadding=function(A){var Q,b,f;return(A=(Q=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(b=Q.thumbnails)==null?void 0:(f=b[0])==null?void 0:f.height)&&A%31===0?!0:!1};
_.d.onUpdateElementsPerRowAction=function(A,Q,b){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A);b&&this.slimItemsPerRow!==b&&(this.slimItemsPerRow=b)};
Md.prototype.slimItemsPerRowChanged=Md.prototype.slimItemsPerRowChanged;Md.prototype.elementsPerRowChanged=Md.prototype.elementsPerRowChanged;Md.prototype.dataChanged=Md.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],Md.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Md.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Md.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Md.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Md.prototype,"currentColorPalette",void 0);_.E([_.C(),_.c("design:type",Array)],Md.prototype,"visibleVideos",void 0);_.E([_.C(),_.c("design:type",Array)],Md.prototype,"hiddenVideos",void 0);
_.E([_.C(),_.c("design:type",Object)],Md.prototype,"primaryButton",void 0);_.E([_.C({reflectToAttribute:!0,value:3}),_.c("design:type",Number)],Md.prototype,"elementsPerRow",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],Md.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],Md.prototype,"isExpanded",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],Md.prototype,"largeTitle",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],Md.prototype,"hasMovieRenderer",void 0);_.E([_.C(),_.c("design:type",Number)],Md.prototype,"slimItemsPerRow",void 0);_.E([_.C(),_.c("design:type",Boolean)],Md.prototype,"showLightVideoMetadata",void 0);_.E([_.C(),_.c("design:type",Boolean)],Md.prototype,"showDarkVideoMetadata",void 0);_.E([_.C(),_.c("design:type",Number)],Md.prototype,"videoMetadataColor",void 0);
_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],Md.prototype,"miniMode",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.c("design:type",Boolean)],Md.prototype,"isFirstFeedItem",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.c("design:type",Boolean)],Md.prototype,"hasSectionHeader",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],Md.prototype,"roundedContainer",void 0);_.E([_.Oc("#visible-video-container ytd-rich-grid-media"),_.c("design:type",Array)],Md.prototype,"visibleMediaRenderers",void 0);_.E([_.Oc("#hidden-video-container ytd-rich-grid-media"),_.c("design:type",Array)],Md.prototype,"hiddenMediaRenderers",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Md.prototype,"modern",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Md.prototype,"dataChanged",null);_.E([_.iN("elementsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Md.prototype,"elementsPerRowChanged",null);_.E([_.iN("slimItemsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Md.prototype,"slimItemsPerRowChanged",null);
_.E([_.h({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Md);
_.W(Md,"ytd-brand-video-shelf-renderer",function(){if(Vin!==void 0)return Vin;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Vin=A},{mode:1});var OAx;var lP=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(lP,_.q);_.d=lP.prototype;_.d.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.d.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"}}}};
_.d.dataChanged=function(){this.requestElementsPerRow();var A,Q;this.currentColorPalette=this.isDarkTheme?(A=this.data)==null?void 0:A.darkColorData:(Q=this.data)==null?void 0:Q.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.d.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.d.computeIsFirstFeedItem=function(A){return A};
_.d.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(A),this.updateButtonPalette())};
_.d.shouldShowThumbnailInMetadata=function(A){return A<=1};
_.d.computeVideoMetadataColor=function(){if(this.data){var A;if((A=this.currentColorPalette)==null?0:A.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.d.computeTitleStyle=function(A){var Q;if((Q=this.data)!=null&&Q.title&&A&&A.textPrimary!==void 0)return"color:"+_.zx(A.textPrimary)+";"};
_.d.computeSubtitleStyle=function(A){var Q;if((Q=this.data)!=null&&Q.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.zx(A.textSecondary)+";"};
_.d.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.zx(A.textPrimary)+";--yt-spec-icon-active-other:"+_.zx(A.textPrimary)+";"};
_.d.computeBackgroundStyle=function(A){if(A&&this.data){var Q="";A.backgroundColor!==void 0&&(Q+="background-color:"+_.w6(A.backgroundColor)+";");return Q}};
_.d.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.d.updateButtonPalette=function(){if(this.data){var A;if((A=this.data.primaryButton)==null?0:A.buttonRenderer){var Q;if((Q=this.currentColorPalette)==null?0:Q.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var b;((b=this.currentColorPalette)==null?0:b.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)})}}};
_.d.requestElementsPerRow=function(){_.Bn(this.hostElement,"yt-request-elements-per-row")};
_.d.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.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")};
_.d.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
lP.prototype.elementsPerRowChanged=lP.prototype.elementsPerRowChanged;lP.prototype.dataChanged=lP.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],lP.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],lP.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],lP.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lP.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],lP.prototype,"currentColorPalette",void 0);_.E([_.C(),_.c("design:type",Object)],lP.prototype,"primaryButton",void 0);
_.E([_.C({reflectToAttribute:!0,value:3}),_.c("design:type",Number)],lP.prototype,"elementsPerRow",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],lP.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],lP.prototype,"titleSize",void 0);_.E([_.C(),_.c("design:type",Number)],lP.prototype,"videoMetadataColor",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],lP.prototype,"miniMode",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.c("design:type",Boolean)],lP.prototype,"isFirstFeedItem",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],lP.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.c("design:type",Boolean)],lP.prototype,"hasOverflowButton",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lP.prototype,"dataChanged",null);_.E([_.iN("elementsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lP.prototype,"elementsPerRowChanged",null);_.E([_.h({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],lP);
_.W(lP,"ytd-brand-video-singleton-renderer",function(){if(OAx!==void 0)return OAx;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return OAx=A},{mode:_.UG("kevlar_poly_si_batch_j070")?1:2});var nyN;var kln=_.aP(function(A){var Q=A.data;return _.X(_.aY,{data:function(){return Q().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(Q().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var b=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":b=88;break a;default:b=88}return b},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return Q().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ej"),HAs=_.aP(function(A){var Q=A.metadataRow;
var b=A.delimiter;return _.X(_.Op,{each:function(){return Q().textParts||[]},
keyBy:"INDEX"},function(f,a){return _.X(_.bd,null,_.X(_.Rb,{text:f,noWrap:!0,userInput:!0}),_.X(ILN,{delimiter:b,max:function(){return Q().textParts.length},
index:a}))})},"fj"),ILN=_.aP(function(A){var Q=A.delimiter;
var b=A.max;var f=A.index;return _.X(_.S,{cond:function(){return(Q==null?void 0:Q())&&b()-1>f()},
then:function(){return _.X("span",null,Q)}})},"gj"),CPN=_.aP(function(A){var Q=A.data;
A={};return _.X("yt-profile-page-header-information-view-model",{class:_.O4("profile-page-header-information-view-model-wiz",(A["profile-page-header-information-view-model-wiz--mobile"]=!1,A))},_.X(_.S,{cond:function(){return Q().onTap},
then:function(){return _.X(_.Db,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.ue(Q().onTap)}},_.X(_.WL,{data:function(){return Q().thumbnail}},{profilePageHeaderThumbnailViewModel:kln}))},
else:function(){return _.X("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.X(_.WL,{data:function(){return Q().thumbnail}},{profilePageHeaderThumbnailViewModel:kln}))}}),_.X("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.X(_.S,{cond:function(){return Q().onTap},
then:function(){return _.X(_.WL,{data:function(){return Q().title}},{profilePageHeaderTitleViewModel:function(b){var f=b.data;
return _.X(_.Db,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.ue(f().onTap)}},_.X(_.Rb,{text:function(){return f().title}}))}})},
else:function(){return _.X(_.WL,{data:function(){return Q().title}},{profilePageHeaderTitleViewModel:function(b){var f=b.data;
return _.X(_.Rb,{text:function(){return f().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.X(_.WL,{data:function(){return Q().metadata}},{profilePageHeaderMetadataViewModel:function(b){var f=b.data;
return _.X(_.S,{cond:function(){return f().metadataRows},
then:function(a){return _.X("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.X(_.Op,{each:a,keyBy:"INDEX"},function(T,G){return _.X(_.bd,null,_.X(HAs,{metadataRow:T,delimiter:" \u2022 "}),_.X(ILN,{delimiter:" \u2022 ",max:function(){return a().length},
index:G}))}))}})}})))},"hj");
CPN.idomCompat=!0;_.pE(CPN,"yt-profile-page-header-information-view-model",{props:{data:_.Qf}});var KA=function(){return _.q.apply(this,arguments)||this};
_.O(KA,_.q);KA.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],KA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],KA.prototype,"data",void 0);_.E([_.h({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],KA);
_.W(KA,"ytd-effect-pivot-header-view-model",function(){if(nyN!==void 0)return nyN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return nyN=
A},{mode:1});var qyx;var iP=function(){return _.q.apply(this,arguments)||this};
_.O(iP,_.q);iP.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iP.prototype,"data",void 0);_.E([_.h({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],iP);
_.W(iP,"ytd-source-pivot-header-renderer",function(){if(qyx!==void 0)return qyx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return qyx=A},{mode:1});_.oyK=_.aP(function(A){var Q=A.data;var b=function(){var f;return _.uJ((f=Q())==null?void 0:f.rendererContext)};
A={};return _.X("content-list-item-view-model",{el:_.d_(_.Zb(function(){return Q().rendererContext})),
class:_.O4("ytContentListItemViewModelHost",(A.ytContentListItemViewModelTappable=b,A)),role:function(){return b()?"listitem":void 0},
tabindex:function(){return b()?0:void 0}},_.X("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.X("div",{class:"ytContentListItemViewModelImageContainer"},_.X(_.S,{cond:function(){return Q().image},
then:function(f){return _.X(_.aY,{data:f,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.X(_.WL,{data:function(){var f;
return(f=Q())==null?void 0:f.avatar}},{avatarViewModel:_.Wm})),_.X("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.X("div",{class:_.O4("ytContentListItemViewModelTitle",function(){a:{switch(Q().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var f="ytContentListItemViewModelProminentTitle";
break a}f=void 0}return f})},_.X(_.Rb,{text:function(){return Q().title}})),_.X("div",{class:"ytContentListItemViewModelMetadata"},_.X(_.WL,{data:function(){return Q().metadata}},{contentMetadataViewModel:function(f){return _.X(_.UM,{data:f.data,
layout:1})}})))),_.X("div",{class:"ytContentListItemViewModelActionButton"},_.X(_.WL,{data:function(){var f;
return(f=Q())==null?void 0:f.actionButton}},{buttonViewModel:_.J9,
toggleButtonViewModel:_.eq})))},"ij");_.pE(_.aP(function(A){var Q=function(){return A.data().background},b=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},f=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.X("yt-card-view-model",{class:_.O4("ytCardViewModelHost",A.className)},_.X(_.L8,{contentId:function(){return A.data().contentId}},function(){return _.X("div",{class:_.O4("ytCardViewModelCardViewModelInner",function(){return cIx(A.data().cardStyle)})},_.X(_.WL,{data:Q},{cinematicContainerViewModel:function(a){return _.X(_.PPK,{data:a.data})}}),_.X("div",{class:"ytCardViewModelContentWrapper"},_.X(_.S,{cond:function(){return!b()},
then:function(){var a={};return _.X("div",{class:"ytCardViewModelTopContent"},_.X(_.WL,{data:function(){return A.data().topContent}},{contentListItemViewModel:function(T){return _.X(_.oyK,{data:T.data})}}),_.X("div",{class:_.O4("ytCardViewModelInlineTrailingAction",(a.ytCardViewModelInlineCenterTrailingAction=f,a))},_.X(_.WL,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(T){return _.X(_.J9,{data:T.data})}})))}}),_.X("div",{class:"ytCardViewModelBodyContent"},_.X(_.WL,
{data:function(){return A.data().bodyContent}},{contentListItemViewModel:function(a){return _.X(_.oyK,{data:a.data})}}))),_.X(_.S,{cond:function(){return b()},
then:function(){return _.X("div",{class:"ytCardViewModelOverlayTrailingAction"},_.X(_.WL,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data})}}))}}))}))},"jj"),"yt-card-view-model",{props:{data:_.Qf,
className:_.Qf}});_.pE(_.aP(function(A){var Q=function(){return _.V(A.data().flowRoot,bAt)};
_.tz(function(){var b=Q(),f=function(){},a=function(){};
if(b){var T,G,p,P=((p=_.V((T=Q())==null?void 0:(G=T.steps)==null?void 0:G[0],_.gRn))==null?void 0:p.stepId)||"";ZZx(b,P);f=YVl(b);a=DZt(b)}_.Cz(function(){var U=Q();U&&_.QK().dispatch(_.HL("flowStateEntity",U.flowStateEntityKey));f();f=function(){};
a();a=function(){}})});
return _.X("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.X(_.L8,{contentId:function(){return A.data().contentId}},function(){return _.X("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.X(_.S,{cond:Q,
then:function(b){return _.X(_.j4d,{data:b})}}))}))},"kj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Qf}});_.pE(_.aP(function(){return _.X("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.X("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.X("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.X(_.ikd,null)),_.X(_.kQL,{data:{rows:1},isExploreHub:!0}))},"lj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.pE(_.aP(function(A){var Q=A.data;var b=A.standardUnitMinWidth;A=_.F((0,_.qUY)(Q));var f=A.next().value,a=A.next().value,T=function(){var p,P=(p=f())==null?void 0:p.contents;return P==null||P.length===0},G=function(){a(Object.assign({},f(),{contents:[]}))};
return _.X("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.d_(_.T9({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var p=_.V(Q().chipsShelf,aLl);if(p!=null&&p!=null&&p.autoselectChipOnVisible){var P,U,L=_.V(p==null?void 0:(P=p.contents)==null?void 0:P[(U=p.autoselectedChipIndex)!=null?U:0],_.Yj);L&&L.tapCommand&&_.D3(L.tapCommand)}}}))},_.X(_.L8,{contentId:function(){return Q().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.X("div",null,_.X("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.X(_.WL,{data:function(){return Q().header}},{sectionHeaderViewModel:function(p){return _.X(_.is,{data:p.data,
disableHorizontalPadding:!0})}})),_.X("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.X(_.WL,{data:function(){return Q().chipsShelf}},{chipsShelfViewModel:function(p){return _.X(_.jQr,{data:p.data,
callback:G,enableSingleChipSelection:!0})}})),_.X("div",null,_.X(_.S,{cond:T,
then:function(){return _.X("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.X(_.kQL,{data:{rows:1},isExploreHub:!0}))}}),_.X(_.WL,{data:function(){var p;
return(p=f())==null?void 0:p.contents}},{richShelfRenderer:function(p){return _.X(_.tDN,{data:p.data,
isInnerShelf:!0,standardUnitMinWidth:b})}})))}))},"mj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Qf,
standardUnitMinWidth:_.Qf}});var Jp=function(){return _.q.apply(this,arguments)||this};
_.O(Jp,_.q);
Jp.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}}};
Jp.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.E([_.I(_.cb),_.c("design:type",Object)],Jp.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],Jp.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Jp.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Number)],Jp.prototype,"standardUnitMinWidth",void 0);_.E([_.h({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Jp);
_.W(Jp,"ytd-rich-section-renderer",function(){if(JpF!==void 0)return JpF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return JpF=A},{mode:_.UG("kevlar_poly_si_batch_j029")?
1:2});_.pE(_.mQl,"yt-profile-identity-info-view-model",{props:{data:_.Qf,hideDivider:_.Qf,isChannelInfoCard:_.Qf}});_.pE(_.iAL,"yt-page-header-view-model",{props:{data:_.Qf,noPadding:_.Qf,enableBanner:_.Qf,cinematicContainerTopbarOffset:_.Qf,allowCinematicContainerOverflow:_.Qf,displayAsSidebar:_.Qf,displayAsPanel:_.Qf,alwaysUseMediumTextDescription:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=function(){var a;return(a=Q().numColumns)!=null?a:2},f=function(){return b()>1?3:2};
A={};return _.X("ytd-rich-grid-group",{class:_.O4("ytdRichGridGroupHost",(A.ytdRichGridGroupHostFirstColumn=function(){return Q().colIndex===0},A)),
style:_.qM({"--ytd-rich-grid-group-num-columns":b,"--ytd-rich-grid-items-per-group":f})},_.X("div",{class:"ytdRichGridGroupContents"},_.X(_.WL,{data:function(){var a;return(a=Q().contents)==null?void 0:a.slice(0,f())}},{richItemRenderer:function(a){return _.X(_.qdy,{data:a.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"nj"),"ytd-rich-grid-group",{props:{data:_.Qf}});var V9=function(){var A=_.q.apply(this,arguments)||this;A.resizeOnObserverInit=!1;A.isInlinePreviewDisabled=_.K("web_disable_inline_preview");A.disableStickyFilterBar=!1;A.transparentBackgroundChipsBar=!1;A.hideChipsBar=!1;A.isWatchDefaultLayout=!0;A.continuationShowButton=!1;A.rowReducedHorizontalMargin=!1;A.useCompactList=!1;A.manualDownloadsPresent=!1;A.smartDownloadsPresent=!1;A.isOnline=!1;A.shouldRenderDownloadsBanner=!1;A.shouldRenderDownloadsBannerUpsell=!1;A.hasOptedIntoSmartDownloads=!1;
A.elementsPerRow=4;A.typographyBump=!1;A.showGnomeContents=!1;A.showExploreHubContents=!1;A.slimItemsPerRow=1;A.pageLoadingFromNavigation=!1;A.loggingRefactor=_.K("kevlar_rich_grid_logging_fix");A.resizeObserver=null;A.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"};
A.rendererToTagNameMap=new Map(Object.entries(A.contentMapping()).map(function(Q){var b=_.F(Q);Q=b.next().value;b=b.next().value;return[Q,b.component]}));
A.insertedContent=new Map;return A};
_.O(V9,_.q);_.d=V9.prototype;_.d.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var A=_.F(_.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Q=A.next();!Q.done;Q=A.next())Q.value.useCompactList=this.useCompactList};
_.d.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var A=_.F(_.Bj(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.sizing=this.sizing,Q.typographyBump=this.typographyBump};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.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]]"}}}};
_.d.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}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.lN(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21715_throttledOnResize=new _.Ac(this.resizeObserved,_.GP("rich_grid_resize_delay_ms",50),this)};
_.d.detached=function(){var A;(A=this.resizeObserver)==null||A.disconnect();document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageChange))};
_.d.insertRichSection=function(A){var Q=A.richItemTargetId;A=A.richSectionRendererToInsert;Q&&A&&(this.insertedContent.set(Q,{content:A,timestamp:Date.now()}),this.reflowContent())};
_.d.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.d.computeIsInlinePreviewEnabled=function(A,Q,b){return _.K("web_disable_inline_preview")?!1:!b&&_.kPx({miniplayerIsActive:A,miniplayerPlaybackState:Q})};
_.d.computeSizing=function(){var A=_.YFA(this.data);if(A||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return A?this.useCompactList?"COMPACT":A:this.miniMode?"COMPACT":_.K("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.d.updateItemMinAndMaxWidth=function(){var A=_.GP("rich_grid_max_item_width",500);A>0&&_.Uc(this.hostElement,{"--ytd-rich-grid-item-max-width":A+"px"});var Q;A=this.getRichItemMinWidth((Q=this.hostElement)==null?void 0:Q.clientWidth);A>0&&_.Uc(this.hostElement,{"--ytd-rich-grid-item-min-width":A+"px"})};
_.d.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.d.resizeObserved=function(){_.Pn(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.d.navigateBackToHome=function(){_.K("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var A=_.fJ().resolve(_.F7).isOnWatch(),Q,b=((Q=_.VK(location.pathname))==null?void 0:Q.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(b)||A)&&this.gnomeContents&&_.K("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);A&&this.exploreHubContents&&_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.QK().dispatch(_.G7({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.d.onPageChange=function(){var A=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.K("disable_chip_select_on_nav")||_.Pn(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.j7.addJob(function(){A.pageLoadingFromNavigation=!1;_.K("disable_chip_select_on_nav")&&_.K("h5_reset_cache_and_filter_before_update_masthead")&&A.resetCacheAndIsFilteredFeed();A.setMasthead();A.maybeSetBigYoodle();A.forceRefreshAndLog();A.terminateVideoPreview();_.K("web_hide_gnome_until_user_navigates_back_to_home")&&
(A.dataChanged(),_.mL(A,function(){if(A.showGnomeContents){var Q=Array.from(_.Bj(A.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){f=_.Bj(f).querySelector("ytd-rich-shelf-renderer");return!!f&&f.isGnomeShelf()});
if(Q){Q=Q.offsetTop-A.contentsElement.offsetTop;var b=_.fJ().resolve(_.F7).getCurrentPage();b&&b.getPageScrollingElement().scrollTo({top:Q,behavior:"smooth"})}}}));
_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&(A.dataChanged(),_.mL(A,function(){if(A.showExploreHubContents&&!_.K("web_explore_hub_no_scroll")){var Q=Array.from(_.Bj(A.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){return!!f.querySelector("ytd-talk-to-recs-flow-renderer")});
if(Q){Q=Q.offsetTop-A.contentsElement.offsetTop;var b=_.fJ().resolve(_.F7).getCurrentPage();b&&b.getPageScrollingElement().scrollTo({top:Q,behavior:"smooth"})}}}))},8)):((_.K("web_hide_gnome_until_user_navigates_back_to_home")||_.K("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.d.dataChanged=function(){var A=this;_.Pn(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.mL(this,function(){A.updateRichItemGridPositions();A.contentsElement&&_.Uc(A.hostElement,{"--ytd-rich-grid-content-offset-top":A.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.d.initResizeObserver=function(){var A=this;if(window.ResizeObserver){var Q;(Q=this.resizeObserver)==null||Q.disconnect();var b=!1;this.resizeObserver=new ResizeObserver(function(){if(b){var f;(f=A.resizeObserver)==null||f.disconnect();var a;(a=A.JSC$21715_throttledOnResize)==null||a.fire();requestAnimationFrame(function(){var G;(G=A.JSC$21715_throttledOnResize)==null||G.fire();A.initResizeObserver()})}else if(b=!0,A.resizeOnObserverInit){var T;
(T=A.JSC$21715_throttledOnResize)==null||T.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.d.contentLengthChanged=function(){if(_.K("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Pn(this.hostElement,"ytd-rich-item-index-update-action")};
_.d.updateElementsPerRow=function(){_.Pn(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.G7({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.G7({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.d.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.d.onRichShelfRendererCollapse=function(A){if(this.shownItems){var Q=A.detail;A=this.shownItems.findIndex(function(f){var a,T;return((T=_.V(f==null?void 0:(a=f.richSectionRenderer)==null?void 0:a.content,_.Ooy))==null?void 0:T.trackingParams)===Q});
var b=A+1;A<0||b>=this.contentsElement.children.length||!this.shownItems[b].richItemRenderer||this.contentsElement.children[b].scrollIntoView({behavior:"smooth",block:"start"})}};
_.d.onSoftReloadPage=function(){this.scrollUpToTop()};
_.d.handleRerenderDownloadsData=function(){_.K("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.d.handlePlaylistRemoveVideosAction=function(A){var Q;if(((Q=_.V(A,_.xYr))==null?0:Q.setVideoIds)&&this.data&&this.data.contents){A=_.V(A,_.xYr).setVideoIds;for(Q=this.data.contents.length-1;Q>=0;){var b=_.V(this.data.contents[Q],_.gE);(b=b&&_.V(b.content,_.zc))&&b.setVideoId&&A.includes(b.setVideoId)&&this.splice("data.contents",Q,1);Q--}this.updateIndices()}};
_.d.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".richItemRenderer.index",_.sr(String(A+1)))};
_.d.hasTopRowInlinePlayableVideoWithEndorsement=function(A){var Q;return!((Q=A.slice(0,this.getItemsPerRow()))==null||!Q.some(function(b){var f;b=_.V(b==null?void 0:(f=b.richItemRenderer)==null?void 0:f.content,_.Z6);var a;return(b==null?void 0:b.inlinePlaybackEndpoint)&&(b==null?void 0:(a=b.thumbnailOverlays)==null?void 0:a.some(function(T){return T.thumbnailOverlayEndorsementRenderer}))}))};
_.d.refreshGridLayoutNew=function(A,Q,b,f){var a=f.postsPerRow;var T=f.slimItemsPerRow;var G=f.gameCardsPerRow;f=f.miniGameCardsPerRow;var p;if((p=this.data)==null||!p.contents||!this.containerWidth)return!1;var P;if((P=this.data.responsiveContainerConfiguration)==null?0:P.responsiveSize){var U=_.IqY(this.data.responsiveContainerConfiguration,this.containerWidth),L;p=_.sh(Object.assign({},U,{standardUnitMinWidth:(L=this.data)==null?void 0:L.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&U.isCompactList)}else p=_.sh({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(U=this.data)==null?void 0:U.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=p.typographyBump;L=!1;if(A||this.elementsPerRow!==p.numItems||this.postsPerRow!==a||this.slimItemsPerRow!==T||this.gameCardsPerRow!==
G||this.miniGameCardsPerRow!==f||this.gutter!==p.gutter)L=this.elementsPerRow!==p.numItems,this.elementsPerRow=p.numItems,this.postsPerRow=a,this.slimItemsPerRow=T,this.gameCardsPerRow=G,this.miniGameCardsPerRow=f,this.gutter=p.gutter,this.itemWidth=p.itemWidth,this.reflowContent(Q),_.Uc(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":p.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(b);this.ytdReduxBehavior.dispatch(_.G7({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:p.maxContainerWidth}));return L};
_.d.refreshGridLayout=function(A,Q){var b,f=(b=this.hostElement)==null?void 0:b.clientWidth;this.containerWidth=this.adjustRichGridWidth(f,!0);var a;if((a=this.data)==null||!a.contents||!this.containerWidth)return A&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.K("rg_pending_reflow_ks")&&(A=!0,this.pendingForceReflow=!1);b=this.getRichItemMinWidth(f);var T=this.isShortsPanel?146:194,G=this.getMiniGameCardMinWidth(),p=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
f=b=this.calcElementsPerRow(b,p);(a=b<=3&&this.miniModeAllowed())&&(b=this.calcElementsPerRow(240,4));var P=this.calcMaxSlimElementsPerRow(b,p,this.isDefaultGrid);p=this.calcElementsPerRow(T,P);var U=this.calcElementsPerRow(this.isCompactGrid?T:154,P);T=this.calcElementsPerRow(this.isCompactGrid?T:G,P);G=!1;if(this.sizing)return this.refreshGridLayoutNew(A,Q,a,{postsPerRow:f,slimItemsPerRow:p,gameCardsPerRow:U,miniGameCardsPerRow:T});if(A||this.elementsPerRow!==b||this.postsPerRow!==f||this.slimItemsPerRow!==
p||this.gameCardsPerRow!==U||this.miniGameCardsPerRow!==T)G=this.elementsPerRow!==b,this.elementsPerRow=b,this.postsPerRow=f,this.slimItemsPerRow=p,this.gameCardsPerRow=U,this.miniGameCardsPerRow=T,this.reflowContent(Q),this.updateElementsPerRow(),_.Uc(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)&&_.Uc(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(a);_.Pn(this.hostElement,"yt-rich-grid-layout-refreshed");return G};
_.d.getRichItemMinWidth=function(A){var Q=_.GP("rich_grid_min_item_width",310);if(!_.K("kevlar_disable_min_width_override")){var b,f;Q=(f=(b=this.data)==null?void 0:b.minItemWidth)!=null?f:Q}return Q+_.xwC(A)};
_.d.calcMaxSlimElementsPerRow=function(A,Q,b){return(b===void 0?0:b)?A===1?2:A%2===0?_.K("web_shorts_2_by_3_reduce_items_per_row")&&A>=4?A/2*3-1:A/2*3:_.K("web_shorts_2_by_3_reduce_items_per_row")&&A>=3?A+1:A+2:Q*2};
_.d.adjustRichGridWidth=function(A,Q){var b=_.K("disable_rich_grid_guide_compensation");if(!this.isWatch&&!b){b=_.fJ().resolve(_.bu(_.yU));var f=b==null?void 0:b.guideElement;if(!(!b||b.getData()||f!=null&&f.opened||b.getMiniGuideVisible()))if(b.canFitPersistentGuide(A)&&b.getGuideExpandsAutomatically()){var a,T,G=Number((a=window.getComputedStyle(this.hostElement))==null?void 0:(T=a.getPropertyValue("--app-drawer-width"))==null?void 0:T.replace("px",""));A-=G||0}else if(b.canFitMiniGuide(A)){var p;
a=Number((G=window.getComputedStyle(this.hostElement))==null?void 0:(p=G.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:p.replace("px",""));A-=a||0}}A>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(A-=Q?32:48));return A};
_.d.calcElementsPerRow=function(A,Q){var b=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),f=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((b+f)/(A+f))||1,Q)};
_.d.reflowContent=function(A){var Q=this;if(!this.isReflowing){this.isReflowing=!0;var b,f,a=!!((b=this.data)==null?0:(f=b.contents)==null?0:f.some(function(J){return _.V(J,_.ac)}));
b=this.getItemsPerRow();var T;f=(T=this.data)==null?void 0:T.reflowOptions;A&&(_.hQ("rgr_s"),_.mL(this,function(){_.hQ("rgr_nrf")}));
A={};(T=_.Bj(this.hostElement).querySelector("#contents"))&&(A={contentElement:T,rendererToTagNameMap:this.rendererToTagNameMap});T=(T=this.data.contents)?T.slice():[];var G=(_.K("web_hide_gnome_behind_feed_filter_chip")||_.K("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,p=_.K("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,P=-1,U=-1;if(this.isHomePage&&p){for(p=0;p<T.length;p++){var L=void 0,M=void 0;_.V((L=T[p])==null?void 0:
(M=L.richSectionRenderer)==null?void 0:M.content,QeN)&&(U=p)}U>-1&&(this.exploreHubContents=T.splice(U,1))}if(this.isHomePage&&G){for(U=0;U<T.length;U++)M=L=void 0,(p=_.V((L=T[U])==null?void 0:(M=L.richSectionRenderer)==null?void 0:M.content,_.Ooy))&&G&&(M=L=void 0,p=_.V((L=p)==null?void 0:(M=L.contents)==null?void 0:M[0],_.gE),L=void 0,_.V((L=p)==null?void 0:L.content,_.OUL)&&(P=U));P>-1&&(this.gnomeContents=T.splice(P,1))}a=WNF(T,b,a,f,this.getRichGridStyle(),A,this.insertedContent);var l=a.orderedContent;
if(a=a.pinnedContentNotShownTargetIds)for(a=_.F(a),b=a.next();!b.done;b=a.next())this.insertedContent.delete(b.value);a=function(){Q.shownItems=l;Q.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(l),_.mL(this,a)):a()}};
_.d.getFirstRowItems=function(A){for(var Q=[],b=0;b<A.length;b++){var f=void 0,a=void 0,T=void 0,G=void 0,p=void 0,P=void 0;if(((f=A[b])==null?void 0:(a=f.richItemRenderer)==null?void 0:a.rowIndex)===0||((T=A[b])==null?void 0:(G=T.richGroupRenderer)==null?void 0:G.rowIndex)===0||((p=A[b])==null?void 0:(P=p.richSectionRenderer)==null?void 0:P.rowIndex)===0)Q.push(A[b]);else break}return Q};
_.d.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.d.resetInsertedContentIfNeeded=function(){(_.K("web_explore_hub_on_hover")||_.K("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.d.handleChipCloudChipSelectAction=function(A,Q){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.K("web_hide_gnome_behind_feed_filter_chip")&&(Q?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.d.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.K("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.d.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.K("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.d.terminateVideoPreview=function(){_.Pn(this.hostElement,"yt-terminate-video-preview-action")};
_.d.updateRichItemGridPositions=function(){var A={gridData:{gridColumnCount:this.elementsPerRow}},Q;if((Q=this.data)==null?0:Q.trackingParams)this.loggingRefactor?_.IP().stateChanged(this.data.trackingParams,A):(Q=_.WR())&&_.sl(Q,_.t8(this.data.trackingParams),A);_.Pn(this.hostElement,"ytd-rich-item-index-update-action")};
_.d.miniModeAllowed=function(){return _.K("disable_channels_mini_mode")?!1:this.isChannelPage};
_.d.getMiniGameCardMinWidth=function(){return 154};
_.d.updateMiniMode=function(A){this.miniMode=this.miniModeAllowed()&&A;this.ytdReduxBehavior.dispatch(_.G7({type:"SET_RICH_GRID_MINI_MODE",payload:A}))};
_.d.isCurrentPage=function(){return location.pathname===this.pagePath};
_.d.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var A=_.fJ().resolve(_.F7).getCurrentPage();A&&A.setScrollTop(0)}};
_.d.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.d.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.d.maybeSetBigYoodle=function(){var A,Q=(A=this.data)==null?void 0:A.bigYoodle;this.bigYoodleData!==Q&&(this.bigYoodleData=Q)};
_.d.setMasthead=function(){var A;((A=this.data)==null?0:A.masthead)?this.mastheadData=this.data.masthead:_.K("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.d.getRichGridStyle=function(){var A,Q;return(Q=(A=this.data)==null?void 0:A.style)!=null?Q:"RICH_GRID_STYLE_UNKNOWN"};
_.d.onIsShortsGridChange=function(){var A=this.ytdReduxBehavior,Q=A.dispatch,b=this.getRichGridStyle();Q.call(A,_.G7({type:"SET_RICH_GRID_STYLE",payload:b}))};
_.Qr.Object.defineProperties(V9.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var A=_.fJ().resolve(_.F7).getCurrentPage(),Q,b,f;return(((Q=this.data)==null?void 0:Q.targetId)==="browse-feedFEsfv_audio_pivot"||_.K("web_enable_channel_pivot_panel")&&((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_channel_pivot"||_.K("web_enable_effect_pivot_panel")&&((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_effect_pivot")&&(A==null?void 0:A.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.K("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 A;return!((A=this.data)==null?0:A.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.fJ().resolve(_.F7).getCurrentPage())==null?void 0:A.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.fJ().resolve(_.F7).getCurrentPage())==null?void 0:A.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var A;return this.hideChipsBar||(((A=this.data)==null?void 0:A.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.K("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"&&!_.K("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?0:A.enableContentSpecificAspectRatio)||((Q=this.data)==null?0:(b=Q.responsiveContainerConfiguration)==null?0:b.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.GP("web_continuation_handler_margin",0):0}}});
V9.prototype.onIsShortsGridChange=V9.prototype.onIsShortsGridChange;V9.prototype.onReloadContinuationFinish=V9.prototype.onReloadContinuationFinish;V9.prototype.reflowContent=V9.prototype.reflowContent;V9.prototype.handleRerenderDownloadsData=V9.prototype.handleRerenderDownloadsData;V9.prototype.onRichShelfRendererCollapse=V9.prototype.onRichShelfRendererCollapse;V9.prototype.onRequestElementsPerRow=V9.prototype.onRequestElementsPerRow;V9.prototype.contentLengthChanged=V9.prototype.contentLengthChanged;
V9.prototype.dataChanged=V9.prototype.dataChanged;V9.prototype.onSizingChange=V9.prototype.onSizingChange;V9.prototype.onUseCompactListChange=V9.prototype.onUseCompactListChange;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.eI),_.c("design:type",Object)],V9.prototype,"ironResizableBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],V9.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],V9.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],V9.prototype,"componentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],V9.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],V9.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],V9.prototype,"miniMode",void 0);_.E([_.C({value:[]}),_.c("design:type",Array)],V9.prototype,"shownItems",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],V9.prototype,"isReflowing",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],V9.prototype,"isFilteredFeed",void 0);_.E([_.C({selector:_.h5Y}),_.c("design:type",Boolean)],V9.prototype,"guideIsExpanded",void 0);
_.E([_.C({selectorArgs:["entitySelectorType"],selector:function(A,Q){if(_.K("kevlar_modern_downloads_page")&&Q&&Q!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(Q){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":Q=A.entities;var b=_.j$(Q),f=_.RX(Q),a=_.Qay(A),T=_.AXy(A),G=_.bWe(A),p=_.H2W(Q),P=_.HO(b),U=_.gs(Q);return _.K1A(b,f,p,_.t39(Q),a,T,P,U,G,_.aBJ(A),_.Er(A));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return A=_.j$(A.entities),_.JRU(A);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return A=
_.ngi(A.entities),_.Vay(A);default:_.Wv(new _.IO("Error: entitySelectorType defined but not matched in selector.",A,Q))}}}),
_.c("design:type",Object)],V9.prototype,"entityDrivenRichGridData",void 0);_.E([_.C(),_.c("design:type",Object)],V9.prototype,"resizeOnObserverInit",void 0);_.E([_.C(),_.c("design:type",Object)],V9.prototype,"bigYoodleData",void 0);_.E([_.C(),_.c("design:type",Object)],V9.prototype,"mastheadData",void 0);_.E([_.C(),_.c("design:type",Boolean)],V9.prototype,"isInlinePreviewDisabled",void 0);_.E([_.C(),_.c("design:type",Object)],V9.prototype,"disableStickyFilterBar",void 0);
_.E([_.C(),_.c("design:type",Object)],V9.prototype,"transparentBackgroundChipsBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],V9.prototype,"hideChipsBar",void 0);_.E([_.C(),_.c("design:type",Object)],V9.prototype,"isWatchDefaultLayout",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],V9.prototype,"continuationShowButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],V9.prototype,"rowReducedHorizontalMargin",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],V9.prototype,"useCompactList",void 0);_.E([_.C({selector:function(A){return _.RX(A.entities).length>0}}),
_.c("design:type",Object)],V9.prototype,"manualDownloadsPresent",void 0);_.E([_.C({selector:function(A){return _.j$(A.entities).length>0}}),
_.c("design:type",Object)],V9.prototype,"smartDownloadsPresent",void 0);_.E([_.C({selector:_.Er}),_.c("design:type",Object)],V9.prototype,"isOnline",void 0);_.E([_.C({selector:_.AXy}),_.c("design:type",Object)],V9.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.C({selector:_.aBJ}),_.c("design:type",Object)],V9.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.E([_.C({selector:_.Qay}),_.c("design:type",Object)],V9.prototype,"hasOptedIntoSmartDownloads",void 0);
_.E([_.iN("useCompactList"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"onUseCompactListChange",null);_.E([_.iN("sizing","typographyBump"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"onSizingChange",null);_.E([_.C({selector:_.z5C}),_.c("design:type",Number)],V9.prototype,"miniplayerPlaybackState",void 0);_.E([_.C({selector:_.WO}),_.c("design:type",Boolean)],V9.prototype,"miniplayerIsActive",void 0);
_.E([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.c("design:type",Boolean)],V9.prototype,"isInlinePreviewEnabled",void 0);_.E([_.C({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.c("design:type",String)],V9.prototype,"sizing",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],V9.prototype,"elementsPerRow",void 0);
_.E([_.C(),_.c("design:type",Object)],V9.prototype,"typographyBump",void 0);_.E([_.C(),_.c("design:type",Number)],V9.prototype,"itemWidth",void 0);_.E([_.V1("#header"),_.c("design:type",HTMLElement)],V9.prototype,"headerElement",void 0);_.E([_.V1("#contents"),_.c("design:type",HTMLElement)],V9.prototype,"contentsElement",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"dataChanged",null);
_.E([_.I_("data.contents.length"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"contentLengthChanged",null);_.E([_.Kc("yt-request-elements-per-row"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"onRequestElementsPerRow",null);
_.E([_.Kc("yt-rich-shelf-renderer-collapse"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],V9.prototype,"onRichShelfRendererCollapse",null);_.E([_.I_("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"handleRerenderDownloadsData",null);
_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],V9.prototype,"entitySelectorType",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.targetId"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isSub",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.targetId"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isWatch",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data.targetId"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isShortsPanel",null);_.E([_.C({reflectToAttribute:!0}),_.H("isWatch"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"reducedTopMargin",null);_.E([_.C({reflectToAttribute:!0}),_.H("data","isWatch","isWatchDefaultLayout"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"noTopMargin",null);
_.E([_.C({reflectToAttribute:!0}),_.H("isInlinePreviewEnabled","shownItems"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"topRowEndorsement",null);_.E([_.H("data.header"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"hideHeader",null);_.E([_.Kc("yt-rich-grid-reflow"),_.c("design:type",Function),_.c("design:paramtypes",[Boolean]),_.c("design:returntype")],V9.prototype,"reflowContent",null);
_.E([_.Kc("yt-reload-continuation-finish"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"onReloadContinuationFinish",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isSlimGrid",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isShortsGrid",null);
_.E([_.H("data","isSlimGrid","isShortsGrid"),_.C(),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"noRichItemGutterMargins",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isShortsGridSlim",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isCompactGrid",null);
_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"isDefaultGrid",null);_.E([_.H("data.targetId"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"hideChipsBarOnHome",null);_.E([_.H("data.targetId"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"hideChipsBarOnWatch",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V9.prototype,"onIsShortsGridChange",null);_.E([_.H("data.enableContentSpecificAspectRatio"),_.C(),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V9.prototype,"force16By9ThumbnailAspectRatio",null);_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],V9.prototype,"continuationTriggerOffset",null);_.E([_.h({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],V9);
_.W(V9,"ytd-rich-grid-renderer",function(){if(lLK!==void 0)return lLK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return lLK=A},{mode:2});var til=_.aP(function(A){var Q=A.thumbsUp,b=A.thumbsDown,f=A.rightAlignThumbs;A=_.F(_.pz(!1,void 0,"FjNDrf"));var a=A.next().value,T=A.next().value;A=_.F(_.pz(!1,void 0,"Tphjfb"));var G=A.next().value,p=A.next().value;A={};return _.X("div",{class:_.O4("ytwThumbsUpDownThumbs",(A.ytwThumbsUpDownRightAlign=function(){return f==null?void 0:f()},A))},_.X(_.eq,{data:Q,
onToggle:function(P){T(P);G()&&p(!1)},
buttonShapeOverrides:function(){return{toggled:a()}}}),_.X(_.eq,{data:b,
onToggle:function(P){p(P);a()&&T(!1)},
buttonShapeOverrides:function(){return{toggled:G()}}}))},"oj");
til.idomCompat=!0;var jeO=_.aP(function(A){var Q=function(){return A.data().pendingStateEntityKey||""},b=_.I$(_.$Z7,Q),f=function(){var p;
if(!(p=A.disabled())){var P;p=!((P=b())==null||!P.isPendingResponse)}return p},a=_.F(_.pz(xZx(""),void 0,"aC8eBe")),T=a.next().value,G=a.next().value;
_.CH(function(){requestAnimationFrame(function(){var p=A.data().onShowAnimationMs||0;p=p>0?xZx("--chip-animation-duration: "+p+"ms;"):xZx("");G(p)})});
return _.X("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:T},_.X(_.Op,{each:function(){return A.data().chipData||[]},
keyBy:"REFERENCE"},function(p){return _.X(rps,{data:p,disabled:f,pendingStateKey:Q,onError:A.onError})}))},"pj"),rps=_.aP(function(A){var Q=_.mS("button"),b=_.F(_.pz(!0,void 0,"NaMiCd")),f=b.next().value,a=b.next().value,T=function(){return A.data().text.content},G=_.IY(function(p){var P,U,L,M,l,J,n,t;
return _.B(function(g){switch(g.nextAddress){case 1:p.stopPropagation();if(A.disabled())return g.return();U=String(Math.floor(((P=_.Jy())==null?void 0:P.getCurrentTime())||0)*1E3);L="youchat-"+Date.now();M=function(){_.Z3(A.data().onClick||{});var e={continuationCommand:{token:A.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},x={inputComposerFormData:{clientMessageId:L,playerOffsetMs:U}};return new Promise(function(D,w){_.Z3(e,{form:{formData:x},commandController:{onSuccess:function(u,
y){D(y)},
onServerError:function(u,y){w(y.error)}}})})};
l=_.NRr(A.pendingStateKey());l(!0);_.ovs("#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);_.ML(g,2);return g.yield(M(),4);case 4:_.Z1(g,3);break;case 2:J=_.Vw(g),(t=(n=A).onError)==null||t.call(n,J);case 3:l(!1),_.Oi(g)}})});
return _.X(_.S,{cond:f,then:function(){return _.X("div",{class:"ytwYouChatChipsDataChipWrapper"},_.X("button",{el:Q,class:"ytwYouChatChipsDataChip","data-disabled":A.disabled,"on:click":G,tabindex:0},T))}})},"qj");var Rdn=_.aP(function(A){var Q=A.data;var b=A.initiallyExpanded;var f=function(){var U;return(U=Q().conversationResourceData)==null?void 0:U.learningGuideData};
A=_.F(_.CE(function(){var U;return(U=b==null?void 0:b())!=null?U:!1}));
var a=A.next().value,T=A.next().value,G=function(){T(!0)},p=_.Lz(function(){var U,L;
return(L=(U=f())==null?void 0:U.sections)!=null?L:[]},void 0,"xl8NRc"),P=_.Lz(function(){return p().length>4},void 0,"oAM7of");
A=_.Lz(function(){var U;return!a()&&P()&&(U=f())!=null&&U.expandButton?p().slice(0,4):p()},void 0,"uzQ9rc");
return _.X("yt-conversation-resource-view-model",{class:_.O4("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.X(_.WL,{data:A},{expandableMetadataViewModel:_.knx}),_.X(_.S,{cond:function(){return P()&&!a()},
then:function(){return _.X("div",{id:"showMoreButton"},_.X(_.WL,{data:function(){var U;return(U=f())==null?void 0:U.expandButton}},{buttonViewModel:function(U){return _.X(_.J9,{data:U.data,
onClick:G})}}))}}))},"rj");var gyr=_.aP(function(A){var Q=function(){var y;return(y=A.data().text)==null?void 0:y.content},b=function(){var y,a9;
return(y=A.data().webData)==null?void 0:(a9=y.textResult)==null?void 0:a9.content},f=_.fJ().resolve(_.bc),a=_.Vh(),T=function(){return A.data().chatResponseStyle},G=function(){return!A.data().transparentBackground},p=function(){return A.data().rightAlignThumbs},P=function(){return A.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||A.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},U=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:P()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:A.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},L=function(){var y;
return A.data().webData||((y=A.data().text)==null?void 0:y.content)||A.data().videoResultsData||A.data().conversationResourceViewModel||A.data().quiz},M=function(){return!!A.data().sectionHeader||L()},l=function(){var y;
return(y=A.data().videoResultsData)==null?void 0:y.videoShelf},J=function(){var y;
return _.V(((y=A.data().videoResultsData)==null?void 0:y.videoShelf)||{},ddl)},n=function(){var y;
return(y=A.data().webData)==null?void 0:y.sourcesShelf},t=function(){var y;
return _.V(((y=A.data().webData)==null?void 0:y.sourcesShelf)||{},ddl)},g=function(){return _.V(A.data().conversationResourceViewModel||{},Gls)},e=function(){return _.V(A.data().quiz||{},fL7)},x=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||T()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:A.data().thumbsDownViewModel&&A.data().thumbsUpViewModel},D=function(){return _.V(A.data().thumbsUpViewModel,_.R$)},w=function(){return _.V(A.data().thumbsDownViewModel,_.R$)};
_.CH(function(){requestAnimationFrame(function(){var y;(y=A.shouldAnimateIcon)!=null&&y.call(A)&&sQ7(a.lottieEl)})});
var u={};return _.X("you-chat-item-view-model",{class:_.O4("ytwYouChatItemViewModelYouChatItemViewModel",(u.ytwYouChatItemViewModelColumnLayout=function(){return P()},u)),
"data-target-id":function(){return A.data().id||""}},_.X(_.S,{cond:function(){return A.data().removeIcon?!1:M()},
then:function(){var y={};return _.X("div",{"aria-hidden":"true"},_.X(_.X6,{className:_.O4("ytwYouChatItemViewModelIcon",(y.ytwYouChatItemViewModelRtl=f==="rtl",y.ytwYouChatItemViewModelHidden=function(){return!(A.data().hideIcon||T()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||T()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:M())},y)),
animationName:"YOUCHAT_ICON",data:U,animationRef:a}))}}),_.X(_.S,{cond:M,
then:function(){var y={};return _.X("div",{class:_.O4("ytwYouChatItemViewModelHost",(y.ytwYouChatItemViewModelHostNoPadding=function(){return!!A.data().sectionHeader&&!L()},y.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},y.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return T()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
y.ytwYouChatItemViewModelGradientBackground=G,y)),
role:"alert"},_.X(_.S,{cond:Q,then:function(a9){return _.X(_.$x,{text:a9,wrapCodeBlocks:!0})}}),_.X(_.WL,{data:function(){return A.data().sectionHeader}},{sectionHeaderViewModel:function(a9){var pF={};
return _.X(_.is,{data:a9.data,className:_.O4("ytwYouChatItemViewModelSectionHeader",(pF.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!A.data().sectionHeader&&!L()},pF))})}}),_.X(_.S,{cond:b,
then:function(a9){return _.X(_.$x,{text:a9,wrapCodeBlocks:!0})}}),_.X(_.S,{cond:l,
then:function(){return _.X("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.X(_.y8,{data:J,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.X(_.S,{cond:n,
then:function(){return _.X("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.X(_.y8,{data:t,hasPeek:!0,disableArrows:!1}))}}),_.X(_.S,{cond:g,
then:function(){return _.X(Rdn,{data:g})}}),_.X(_.S,{cond:e,
then:function(){return _.X(_.Qex,{data:e})}}),_.X(_.S,{cond:x,
then:function(){return _.X(til,{thumbsUp:D,thumbsDown:w,rightAlignThumbs:p})}}))}}),_.X(_.S,{cond:function(){return A.data().chipsData},
then:function(y){return _.X(jeO,{data:y,disabled:A.pending,onError:A.onError})}}))},"sj");
gyr.idomCompat={callbacks:{onError:!0,onSend:!0}};var edl=_.aP(function(A){var Q=function(){return A.data().choiceSelectedText},b=function(){return A.data().hasGradientBackground},f={};
return _.X("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.X(_.S,{cond:Q,then:function(){return _.X("div",{class:"ytYouChatUserTurnChoiceSelected"},_.X(_.Rb,{text:Q}))}}),_.X("div",{class:_.O4("ytYouChatUserTurnUserMessage",(f.ytYouChatUserTurnGradientContainer=b,f.ytYouChatUserTurnDefaultContainer=function(){return!b()},f))},function(){return A.data().text}))},"tj");var hdr=_.aP(function(A){var Q=_.F((0,_.rNY)(A.data)).next().value;return _.X("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return A.data().targetId||""}},_.X(_.WL,{data:function(){return A.data().header}},{chipBarViewModel:_.nv1}),_.X(_.WL,{data:function(){return Q().contents}},{accordionViewModel:_.T41,
alertBannerViewModel:_.t5x,chatLoadingViewModel:_.Jjq,chatUserTurnViewModel:edl,learningJourneyLoaderViewModel:_.App,lockupViewModel:function(b){return _.X(_.K8,{data:b.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:A.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(b){return _.X(gyr,{data:b.data,pending:!1})}}))},"uj");_.pE(_.aP(function(A){var Q=_.F((0,_.rNY)(A.data)).next().value,b=_.st("yt-section-list-renderer"),f=_.F(_.pz(void 0,void 0,"rQpPgc")),a=f.next().value,T=f.next().value,G=function(){var p;return _.V((p=A.data().sectionListLayoutConfiguration)==null?void 0:p.layoutConfiguration,T4q)};
_.tz(function(){var p,P=(p=b.value)==null?void 0:p.clientWidth;if(G()){p=G();var U=p.responsiveSize;P=P<528?"CONTAINER_SIZE_NARROW":P<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var L=_.F(p.responsiveMap||[]);for(var M=L.next();!M.done;M=L.next())if(M=M.value,M.containerSize===P){L=M.containerType;break b}L=void 0}if(L&&U){b:{if(L==="CONTAINER_TYPE_VERTICAL_LIST")if(U==="RESPONSIVE_SIZE_STANDARD"){if(P!=="CONTAINER_SIZE_NARROW"){M="50%";break b}}else{M=P==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}M=void 0}p={responsiveSize:U,containerSize:P,containerType:L,force16By9ThumbnailAspectRatio:!p.enableContentSpecificAspectRatio,contentPreviewWidth:M,fullbleed:(L==="CONTAINER_TYPE_VERTICAL_LIST"||L==="CONTAINER_TYPE_GRID")&&P==="CONTAINER_SIZE_NARROW"&&!1}}else p=void 0}else p=void 0;T(p)});
return _.X("yt-section-list-renderer",{class:_.O4("ytSectionListRendererHost",A.className),el:b,"data-target-id":function(){return A.data().targetId||""}},_.X(_.WL,{data:function(){return Q().contents}},{itemSectionRenderer:function(p){return _.X(hdr,{data:p.data,
containerLayoutConfig:a})}}))},"vj"),"yt-section-list-renderer",{props:{data:_.Qf,
className:_.Bz}});var WFl;var vy7;var Eyq=function(){return _.q.apply(this,arguments)||this};
_.O(Eyq,_.q);_.E([_.C(),_.c("design:type",Object)],Eyq.prototype,"data",void 0);_.E([_.Ec({is:"yt-alert-renderer",disableElementRegistration:!0})],Eyq);
_.W(Eyq,"yt-alert-renderer",function(){if(vy7===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;WFl===void 0&&(WFl=document.createElement("template"));var f=WFl;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);vy7=A}A=vy7;return A},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.R_7=function(A,Q){var b,f;Q=Q===void 0?{}:Q;var a,T,G,p,P,U,L,M,l,J,n,t;return _.B(function(g){switch(g.nextAddress){case 1:a=Q;T=a.shouldWrap===void 0?!0:a.shouldWrap;G=a.skipTransitionTimeoutMs===void 0?300:a.skipTransitionTimeoutMs;p=a.beforeTransition;P=a.afterTransition;if(!T||!document.startViewTransition||document.visibilityState==="hidden")return g.return(A());b=window.innerWidth;f=window.innerHeight;U=!1;(L=p)==null||L();_.ML(g,2);M=document.startViewTransition(A);l=setTimeout(function(){M.skipTransition();
U=!0},G);
return g.yield(M.ready,4);case 4:return clearTimeout(l),g.yield(M.finished,5);case 5:clearTimeout(l);(J=P)==null||J();_.Z1(g,0);break;case 2:n=_.Vw(g),(t=P)==null||t(),n&&!U&&document.visibilityState!=="hidden"&&b===window.innerWidth&&f===window.innerHeight&&_.en(n),_.Oi(g)}})};
_.$9=function(){for(var A=Array(36),Q=0,b,f=0;f<36;f++)f==8||f==13||f==18||f==23?A[f]="-":f==14?A[f]="4":(Q<=2&&(Q=33554432+Math.random()*16777216|0),b=Q&15,Q>>=4,A[f]=_.qhj[f==19?b&3|8:b]);return A.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 g$l=_.sC(['<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>']),
e_N=_.Uep(g$l);e_N.setAttribute("style","display: none;");document.head.appendChild(e_N.content);_.NG=_.lgX(function(A){var Q=_.KK("DIV");A&&(Q.className=A);Q.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";A=_.KK("DIV");_.UNL(A,"200px","200px");Q.appendChild(A);document.body.appendChild(Q);A=Q.offsetWidth-Q.clientWidth;_.im(Q);return A});var h_O;var WTK;var s6=function(){var A=_.q.apply(this,arguments)||this;A.icon=null;return A};
_.O(s6,_.q);s6.prototype.dismiss=function(){_.Bn(this.hostElement,"yt-live-chat-error-message-dismiss")};
s6.prototype.computeIcon=function(A){return A&&A.iconType?"yt-icons:"+A.iconType.toLowerCase():"yt-icons:close"};
_.E([_.C(),_.c("design:type",Object)],s6.prototype,"data",void 0);_.E([_.C({computed:"computeIcon(data.icon)"}),_.c("design:type",Object)],s6.prototype,"icon",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],s6);
_.W(s6,"yt-live-chat-error-message-renderer",function(){if(WTK===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;h_O===void 0&&(h_O=document.createElement("template"));var f=h_O;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);WTK=A}A=WTK;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Nc7,sVd,mcx,A4n,aUx,FJ$,GXd,BWV,H0,ped,PyT,Cm,XeV,Sbi,Ufh,LJx,MAx,lU$,KJn,iFd,J4$,VAw,OFT,nC$,kXh,IU$,HFh,Cyh,qbT,oC8,tAT,qV,r48,j9T,R6n,h6n,WJw,vCw,ECn,xfw,c4d,gCs,e6s,wed,uiV,ZFp,y48,Yb8,z6$,$fs;Nc7=function(A,Q){return _.Me(A.entities,"timedMarkersListSyncEntity",Q)};
sVd=function(A,Q){return _.Me(A.entities,"liveReactionsDataEntity",Q)};
mcx=function(A,Q){A=_.Me(A.entities,"booleanEntity",Q);return!(!A||!A.value)};
A4n=function(A,Q){var b=_.WR();b&&A&&_.ui(b,_.t8(A),Q)};
_.Q9Y=function(A){return A.watch.isWatchActive};
_.bFV=function(A){return _.zZ(A)||_.w_(A)||_.pPY(A)};
_.fUY=function(A){return!_.bFV(A)};
_.Il=function(A){return A.watch.watchScrollTop};
aUx=function(A){return A.watch.isLiveChatCollapsed};
_.TW8=function(){_.K("web_watch_log_theater_mode")&&_.RqC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.df8=function(A,Q,b){if(!A.includes("START_TIME_PLACEHOLDER")||!A.includes("END_TIME_PLACEHOLDER"))return A;var f=new Date(0),a=new Date(0);f.setUTCMilliseconds(Q);a.setUTCMilliseconds(b);return A.replace("START_TIME_PLACEHOLDER",_.YL(f,7)).replace("END_TIME_PLACEHOLDER",_.YL(a,7))};
FJ$=function(A,Q){return _.Me(A.entities,"booleanEntity",Q)};
GXd=function(){return function(A){_.A8(_.HL("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:A}))}};
BWV=function(A){switch(A){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}};
H0=function(A,Q,b){var f=_.ue(b);A&&Q&&f&&A.getPlayerPromise().then(function(a){_.g94(f)&&_.go();(new _.gq(a)).executeCommand(f,Q);_.K("continue_playback_on_desktop_companion_click")||a.pauseVideo()})};
ped=function(A){var Q=_.BL(),b;if(b=_.zV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;b=(f=b())==null?void 0:f.layoutId}else b=null;H0(Q,b,A)};
PyT=function(A){var Q=_.BL(),b;if(b=_.zV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;b=(f=b())==null?void 0:f.layoutId}else b=null;H0(Q,b,A)};
Cm=function(A,Q){var b=A<0?"-":"";A=Math.abs(A);var f=Math.floor(A/3600),a=Math.floor(A)%3600,T=Math.floor(a/60);a=Math.floor(a)%60;var G="";(Q===void 0?0:Q)&&(G="."+Math.round((A-Math.floor(A))*10));return f>0?b+f+":"+(T<10?"0"+T:""+T)+":"+(a<10?"0"+a:""+a)+G:b+T+":"+(a<10?"0"+a:""+a)+G};
XeV=function(A){var Q=A.match(/[^0-9:\.]/g);if(Q&&Q.length>0)return null;A=A.split(":");if(A.length===0||A.length>3)return null;Q=1;for(var b=0;A.length>0;){var f=A.pop();if(f===void 0)break;var a=Number(f);if(f===""||isNaN(a))return null;b+=a*Q;Q*=60}return b};
Sbi=function(A,Q,b,f){A=Math.max(b,A);Q=Math.min(Q,f-b);A+Q>f?(b=f,A=b-Q):b=A+Q;return{start:A,end:b}};
Ufh=function(A,Q,b,f,a,T){A<b?A=b:A+a>f&&(A=f-a);Q>f&&(Q=f);Q=Math.min(A+T,Math.max(A+a,Q));return{start:A,end:Q}};
LJx=function(A,Q,b,f,a,T){Q>f?Q=f:Q-a<b&&(Q=b+a);A<b&&(A=b);A=Math.min(Q-a,Math.max(Q-T,A));return{start:A,end:Q}};
MAx=function(A){return _.K("web_transcript_cue_id_killswitch")?String(A):"ytd-transcript-renderer_"+A};
lU$=function(A){return _.K("web_transcript_cue_id_killswitch")?!0:A.startsWith("ytd-transcript-renderer")};
KJn=function(A){var Q=_.BL(),b;if(b=_.zV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;b=(f=b())==null?void 0:f.layoutId}else b=null;H0(Q,b,A)};
iFd=function(A){A.style.height="auto";A.style.height=Math.min(A.scrollHeight||20,80)+"px"};
J4$=function(A,Q,b){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:Q,hasGradientBackground:b}}],insertByPositionInSection:{sectionTargetId:A,position:"INSERTION_POSITION_LAST"}}}]}}}};
VAw=function(A){var Q=_.BL(),b;b=(b=_.zV("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.layoutId:null;H0(Q,b,A)};
OFT=function(A){var Q=_.BL(),b;b=(b=_.zV("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.layoutId:null;H0(Q,b,A)};
nC$=function(A,Q){Q=Q===void 0?!1:Q;if(A.simpleText)A=[{text:A.simpleText}];else{var b;A=((b=A.runs)!=null?b:[]).map(function(f){return Object.assign({},f)})}if(Q)for(Q=_.F(A),b=Q.next();!b.done;b=Q.next())b.value.bold=!0;
return A};
kXh=function(A){var Q=A.startEndTimeTemplate,b=A.startTimeUtcMillis;A=A.endTimeUtcMillis;if(Q&&b&&A)return _.sr(_.df8(_.mO(Q),Number(b),Number(A)))};
IU$=function(A,Q){var b,f,a=A==null?void 0:(b=A.viewCount)==null?void 0:(f=b.videoViewCountRenderer)==null?void 0:f.shortViewCount;if(!Q&&a)return a;var T,G;return A==null?void 0:(T=A.viewCount)==null?void 0:(G=T.videoViewCountRenderer)==null?void 0:G.viewCount};
HFh=function(A,Q){var b=A==null?void 0:A.relativeDateText;return!Q&&b?[b,!0]:[A==null?void 0:A.dateText,!1]};
Cyh=function(A,Q,b,f,a){f=f===void 0?!0:f;a=a===void 0?"":a;var T=IU$(A,Q),G=_.F(HFh(A,Q)),p=G.next().value;G=G.next().value;Q=Q?A==null?void 0:A.sponsorsOnlyFirstTimeLongText:A==null?void 0:A.sponsorsOnlyFirstTimeShortText;var P=[];b&&T&&P.push(T);!b&&G||!p||P.push(p);A=[].concat(_.ri(P),[Q,A==null?void 0:A.stationName,A==null?void 0:A.rating,A?kXh(A):void 0,A==null?void 0:A.upNextProgramText,A==null?void 0:A.superTitleLink]).filter(function(U){return!!U});
b={runs:[]};for(T=0;T<A.length;T++)b.runs.push.apply(b.runs,_.ri(nC$(A[T],f))),T<A.length-1&&b.runs.push({text:" "+a+" ",bold:f});return b};
qbT=function(A){if(A)return{runs:[{text:A,bold:!0}]}};
oC8=function(A){var Q,b,f,a;if(A=A==null?void 0:(Q=A.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(f=b.results)==null?void 0:(a=f.results)==null?void 0:a.contents){var T,G;return(G=(T=A.find(function(p){return!!p.videoPrimaryInfoRenderer}))==null?void 0:T.videoPrimaryInfoRenderer)==null?void 0:G.updatedMetadataEndpoint}};
tAT=function(A,Q){var b;return(b=A.sourceConfigs)==null?void 0:b.find(function(f){return f.videoId===Q})};
qV=function(A){return A==="End of video"||A==="End of playlist"};
r48=function(A){var Q,b,f,a;return(Q=A.getWatchNextResponse())==null?void 0:(b=Q.contents)==null?void 0:(f=b.twoColumnWatchNextResults)==null?void 0:(a=f.playlist)==null?void 0:a.playlist};
j9T=function(A){var Q,b,f,a,T,G;return(Q=r48(A))==null?void 0:(b=Q.playlistButtons)==null?void 0:(f=b.menuRenderer)==null?void 0:(a=f.topLevelButtons)==null?void 0:(T=a[0])==null?void 0:(G=T.playlistLoopButtonRenderer)==null?void 0:G.playlistLoopStateEntityKey};
R6n=function(A){var Q=_.fJ().resolve(_.u$),b;return(Q=(b=_.V(Q.getAutoplayEndpoint(),_.sv))==null?void 0:b.playlistId)&&Q===A};
h6n=function(A,Q,b,f,a){function T(){_.j7.cancelJob(ol);var G=gCs(Q,b/A.getPlaybackRate()),p=G.hours,P=G.minutes;G=(G.seconds*1E3||6E4)/A.getPlaybackRate();A.setVideoTimeLeft(e6s(p,P));f&&A.getPlayerState()!==0&&A.setSleepTimerTimeLeft(e6s(p,P,!0));(p>0||P>0)&&!a&&(ol=_.o$(_.j7,T,G))}
_.j7.cancelJob(ol);ol=_.o$(_.j7,T)};
WJw=function(A,Q,b){function f(){_.j7.cancelJob(tJ);var a=gCs(Q,b),T=a.hours;a=a.minutes;var G=6E4/A.getPlaybackRate();if(T>0||a>0)A.setSleepTimerTimeLeft(e6s(T,a,!0)),tJ=_.o$(_.j7,f,G)}
_.j7.cancelJob(tJ);tJ=_.o$(_.j7,f)};
vCw=function(A,Q){var b=A.getVolume()/(Q/500),f=function(a){_.j7.cancelJob(r3);var T=Math.floor(a-b);A.setVolume(T,!1);T>0&&(r3=_.o$(_.j7,function(){f(T)},500))};
_.j7.cancelJob(r3);r3=_.o$(_.j7,function(){f(A.getVolume())})};
ECn=function(A,Q){_.j7.cancelJob(r3);Q&&A.syncVolume()};
xfw=function(){var A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.JQ("SLEEP_TIMER_DISRUPTED")}}}}};_.fJ().resolve(_.de).resolveCommand(A)};
c4d=function(A){return(A.getDuration()-A.getProgressState().current)*1E3};
gCs=function(A,Q){A=A+Q-(0,_.f4)();if(A<=0)return{hours:0,minutes:0,seconds:0};var b=new z6$(0,0,0,0,0,0,A);A=b.getHours();Q=b.getMinutes();b=b.getSeconds();b!==0&&Q++;Q!==0&&Q%60===0&&(A++,Q=0);return{hours:A,minutes:Q,seconds:b}};
e6s=function(A,Q,b){return A>0&&Q>0?b?_.JQ("TIME_LEFT_HOURS_MINUTES",{hours:A.toString(),minutes:Q.toString()}):_.JQ("TIME_HOURS_MINUTES",{hours:A.toString(),minutes:Q.toString()}):A>0?b?_.VI("TIME_LEFT_HOURS",A):_.VI("TIME_HOURS",A):b?_.JQ("TIME_LEFT_MINUTES",{minutes:Q.toString()}):_.JQ("TIME_MINUTES",{minutes:Q.toString()})};
wed=function(A,Q){if(A.timelyActions)return A.timelyActions.find(function(b){var f;return((f=_.V(b,jP))==null?void 0:f.cueRangeId)===Q})};
uiV=function(A){var Q=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Sp(A);A.keyMap_.forEach(function(b,f){_.ve(Q,f)||this.remove(f)},A)};
ZFp=function(A,Q){A.reloadContinuationItemsCommandMatcher=Q};
_.Rl=function(A,Q){A.insertBefore(Q,A.childNodes[0]||null)};
y48=function(A){if(A>=48&&A<=57||A>=96&&A<=106||A>=65&&A<=90||_.Le&&A==0)return!0;switch(A){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 _.U2;default:return!1}};
Yb8=function(A){if(A.altKey&&!A.ctrlKey||A.metaKey||A.keyCode>=112&&A.keyCode<=123)return!1;if(y48(A.keyCode))return!0;switch(A.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!_.U2;default:return A.keyCode<166||A.keyCode>183}};
z6$=function(A,Q,b,f,a,T,G){this.date=typeof A==="number"?new Date(A,Q||0,b||1,f||0,a||0,T||0,G||0):new Date(A&&A.getTime?A.getTime():_.G0())};
_.BD(z6$,_.o1);_.d=z6$.prototype;_.d.getHours=function(){return this.date.getHours()};
_.d.getMinutes=function(){return this.date.getMinutes()};
_.d.getSeconds=function(){return this.date.getSeconds()};
_.d.getMilliseconds=function(){return this.date.getMilliseconds()};
_.d.getUTCDay=function(){return this.date.getUTCDay()};
_.d.getUTCHours=function(){return this.date.getUTCHours()};
_.d.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.d.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.d.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.d.setHours=function(A){this.date.setHours(A)};
_.d.setMinutes=function(A){this.date.setMinutes(A)};
_.d.setSeconds=function(A){this.date.setSeconds(A)};
_.d.setMilliseconds=function(A){this.date.setMilliseconds(A)};
_.d.setUTCHours=function(A){this.date.setUTCHours(A)};
_.d.setUTCMinutes=function(A){this.date.setUTCMinutes(A)};
_.d.setUTCSeconds=function(A){this.date.setUTCSeconds(A)};
_.d.setUTCMilliseconds=function(A){this.date.setUTCMilliseconds(A)};
_.d.add=function(A){_.o1.prototype.add.call(this,A);A.hours&&this.setUTCHours(this.date.getUTCHours()+A.hours);A.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+A.minutes);A.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+A.seconds)};
_.d.JSC$11216_toIsoString=function(A){var Q=_.o1.prototype.JSC$11216_toIsoString.call(this,A);return A?Q+"T"+_.FC(this.getHours(),2)+":"+_.FC(this.getMinutes(),2)+":"+_.FC(this.getSeconds(),2):Q+"T"+_.FC(this.getHours(),2)+_.FC(this.getMinutes(),2)+_.FC(this.getSeconds(),2)};
_.d.equals=function(A){return this.getTime()==A.getTime()};
_.d.toString=function(){return this.JSC$11216_toIsoString()};
_.d.clone=function(){var A=new z6$(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
_.Dfw=function(A){return _.G7({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:A}})};
$fs=new _.fU("imageTileRenderer");var NWc=new _.fU("adGridCardCollectionViewModel");var s9T=new _.fU("carouselTitleViewModel");var mfw=new _.fU("ctaCarouselItemViewModel");var AvV=new _.fU("textFieldViewModel");_.Qyd=new _.fU("engagementPanelHeaderShowNavigationButtonCommand");var b$T=new _.fU("hideEngagementPanelScrimAction");var fKs=new _.fU("setActivePanelItemAction");var aKd=new _.fU("showEngagementPanelScrimAction");var T9$=new _.fU("updateEngagementPanelAction");var dxs=new _.fU("updateSearchInVideoResultsAction");var FjV=new _.fU("transcriptCueGroupRenderer");var Gri=new _.fU("transcriptCueRenderer");var B9Y=new _.fU("transcriptFooterRenderer");var pMn=new _.fU("engagementPanelAdSubtitleRenderer");var PYd=new _.fU("videoDescriptionFantasySectionViewModel");var XMs=new _.fU("deleteClipEngagementPanelCommand");var SLV=new _.fU("loopCommand");var UxV=new _.fU("changeCreatorEndscreenVisibilityCommand");var Ljd=new _.fU("liveChatCallForQuestionsRenderer");var MW$=new _.fU("updateTimedMarkersSyncObserverCommand");var jP=new _.fU("timelyActionViewModel");var lK$=new _.fU("timelyActionsOverlayViewModel");var Kjs=new _.fU("repeatChapterCommand");var i$w=new _.fU("watchPlayerOverflowMenuCommand");var Jvh=new _.fU("compositeVideoOverlayRenderer");var VWn=new _.fU("sortFilterSubMenuRenderer");var O$s=new _.fU("switchListItemViewModel");var n1h=new _.fU("inputComposerViewModel");var krh=new _.fU("transcriptEditSegmentCommand");var IK8=new _.fU("transcriptUpdateSegmentTextCommand");var H$c=new _.fU("transcriptSearchBoxRenderer");var CYs=new _.fU("transcriptSegmentListRenderer");var qL$=new _.fU("transcriptSegmentRenderer");_.o1V=new _.fU("updateDateTextAction");var tW$=new _.fU("updateTitleAction");var rvc=new _.fU("updateViewershipAction");var jyY=new _.fU("carouselLockupRenderer");var g3=new _.fU("expandableVideoDescriptionBodyRenderer");var RNY=new _.fU("videoDescriptionHeaderRenderer");var g1i=new _.fU("videoDescriptionYouchatSectionViewModel");_.eP=_.GP("kevlar_watch_page_horizontal_margin",24);_.eNp=_.GP("kevlar_watch_page_columns_top_padding",24);_.hNp=426+_.eP*2;_.hJ=_.GP("kevlar_watch_two_column_width_threshold",1E3);_.Wjh=_.eP*2;_.v1w=_.GP("kevlar_watch_secondary_width",402);_.E1V=_.GP("kevlar_watch_max_player_width",1280);_.xxV=_.GP("kevlar_watch_flexy_metadata_height",136);_.cvc=_.Wjh+310+_.eP;_.zNY=_.Wjh+360+_.eP;var wMw={PAUSE_CHAT:18};var uL8;var Z$s;var W0=function(){return _.q.apply(this,arguments)||this};
_.O(W0,_.q);W0.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
W0.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var A=_.V(this.data.button,_.jJ);A&&(A.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Qr.Object.defineProperties(W0,{template:{configurable:!0,enumerable:!0,get:function(){if(Z$s===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;uL8===void 0&&(uL8=document.createElement("template"));var f=uL8;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Z$s=A}A=Z$s;return A}}});
_.E([_.I(_.ZB),_.c("design:type",Object)],W0.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({selectorArgs:["data.enabledEntityKey"],selector:mcx,observer:"onEnabledChange"}),_.c("design:type",Boolean)],W0.prototype,"enabled",void 0);_.E([_.C(),_.c("design:type",Object)],W0.prototype,"data",void 0);_.E([_.Ec({is:"yt-disableable-button-view-model",noInjection:!0})],W0);var yvw;var YLV;var Dxw=["transVert01","transVert02","transVert03"],$xc="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),v0=function(){var A=_.q.apply(this,arguments)||this;A.emojiManager=_.YZ;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};A.reactionBuckets=[];A.noEmojiIdentifier="NO_EMOJI";return A};
_.O(v0,_.q);_.d=v0.prototype;_.d.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.d.desktopFountainEmojiSizePxChanged=function(){_.Uc(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.d.createUserReactionAnimation=function(A){this.createEmojiAnimation(A,!0)};
_.d.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var A;((A=this.data)==null?0:A.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.HL("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.ri(this.emojiContainer.children)).forEach(function(Q){Q.remove()})};
_.d.detached=function(){this.cleanupFountain()};
_.d.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var A;this.reactionBuckets=_.j2.unsafeClone((A=this.emojiFountainData)==null?void 0:A.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.d.processEmojiBucket=function(A){var Q=this;if(this.reactionBuckets&&!(A>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var b=this.reactionBuckets[A];this.generateEmojiAnimations(b);if(A<this.reactionBuckets.length-1){var f;if(b==null?0:(f=b.duration)==null?0:f.seconds)this.emojiBucketTimerId=setTimeout(function(){Q.processEmojiBucket(A+1)},Number(b.duration.seconds)*1E3)}}};
_.d.generateEmojiAnimations=function(A){var Q=this,b=this.getRandomEmojiIdFromBucketWithOverride(A);if(b&&b!==this.noEmojiIdentifier){var f=0;A.targetEps?(f=this.linearInterpolateBounded(1,20,100,12,A.emojiSizeIndex||0),this.createEmojiAnimation(b,!1,A.emojiAnimationMs,f),f=this.getEmojiDelayMsFromTargetEps(A.targetEps)):(this.createEmojiAnimation(b),f=this.getEmojiDelayMsFromDistribution(A.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){Q.generateEmojiAnimations(A)},f)}};
_.d.getRandomEmojiIdFromBucketWithOverride=function(A){if(!(A&&A.reactionsData&&A.reactionsData.length&&A.totalReactions))return this.noEmojiIdentifier;for(var Q=A.totalReactions,b=1,f=_.F(A.reactionsData),a=f.next();!a.done;a=f.next())a=a.value,(a.reactionWeightOverride||a.reactionWeightOverride===0)&&a.reactionCount&&(Q-=a.reactionCount,b-=a.reactionWeightOverride);f=!0;b<0&&(f=!1,Q=A.totalReactions,b=1);if(f&&b>0&&Q===0)if(b===1){a=0;for(var T=_.F(A.reactionsData),G=T.next();!G.done;G=T.next())G=
G.value,G.reactionCount&&G.reactionCount>0&&a++;a=1/a;T=_.F(A.reactionsData);for(G=T.next();!G.done;G=T.next())G.value.reactionWeightOverride=a}else for(a=1/(1-b),T=_.F(A.reactionsData),G=T.next();!G.done;G=T.next())G=G.value,G.reactionWeightOverride&&(G.reactionWeightOverride*=a);a=Math.random();T=0;G=_.F(A.reactionsData);for(var p=G.next();!p.done;p=G.next())if(p=p.value,p.reactionCount&&(T=(p.reactionWeightOverride||p.reactionWeightOverride===0)&&f?T+p.reactionWeightOverride:T+b*p.reactionCount/
Q,T>a&&(p.reactionCount--,A.totalReactions--,p=this.reactionItemToEmojiString(p),p!==this.noEmojiIdentifier)))return p;return this.noEmojiIdentifier};
_.d.reactionItemToEmojiString=function(A){if(A.unicodeEmojiId)return A.unicodeEmojiId;if(A.emoteId)return A.emoteId;if(A.videoReactionType)switch(A.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.d.createEmojiAnimation=function(A,Q,b,f){Q=Q===void 0?!1:Q;this.lastEmojiRequestedForTesting=A;var a=A.startsWith("yt-icons:"),T=_.Z8(this.emojiManager,A);if(T||a){var G=document.createElement("emoji");G.classList.add("yt-emoji-fountain-view-model");G.classList.add(Dxw[Math.floor(Math.random()*Dxw.length)]);var p=document.createElement("div");p.classList.add("yt-emoji-fountain-view-model");p.classList.add("horizontal-container");p.classList.add($xc[Math.floor(Math.random()*$xc.length)]);Q?(b=document.createElement("div"),
b.classList.add("user-reaction-bubble"),b.classList.add("yt-emoji-fountain-view-model"),p.appendChild(b)):(b&&(G.style.animationDuration=b+"ms",p.style.animationDuration=b+"ms"),f&&(G.style.width=f+"px",G.style.height=f+"px"));a?(a=document.createElement("yt-icon"),a.polymerController.icon=A,f&&(a.style.width=f+"px",a.style.height=f+"px"),A=a):A=this.emojiManager.createEmoji(T,!1);A.classList.add("yt-emoji-fountain-view-model");p.appendChild(A);G.appendChild(p);this.emojiContainer.appendChild(G);
G.addEventListener("animationend",function(){G.remove()});
var P,U;if((P=this.data)==null?0:(U=P.loggingDirectives)==null?0:U.trackingParams)Q=Q?_.K6(183501):_.K6(183500),A4n(this.data.loggingDirectives.trackingParams,Q),_.WvW(Q);setTimeout(function(){G&&G.remove()},2E3)}};
_.d.getEmojiDelayMsFromDistribution=function(A){return Math.random()*(A||1)*1E3};
_.d.getEmojiDelayMsFromTargetEps=function(A){return Math.random()*2*(1/A)*1E3};
_.d.linearInterpolateBounded=function(A,Q,b,f,a){a=Math.min(Math.max(a,A),b);return(Q*(b-a)+f*(a-A))/(b-A)};
v0.prototype.onEmojiFountainDataEntityUpdate=v0.prototype.onEmojiFountainDataEntityUpdate;v0.prototype.desktopFountainEmojiSizePxChanged=v0.prototype.desktopFountainEmojiSizePxChanged;v0.prototype.isActiveChanged=v0.prototype.isActiveChanged;_.E([_.C(),_.c("design:type",_.uz)],v0.prototype,"emojiManager",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],v0.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],v0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],v0.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(A,Q){return _.Me(A.entities,"emojiFountainDataEntity",Q)}}),
_.c("design:type",Object)],v0.prototype,"emojiFountainData",void 0);_.E([_.C(),_.c("design:type",Boolean)],v0.prototype,"isActive",void 0);_.E([_.iN("isActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],v0.prototype,"isActiveChanged",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],v0.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",String)],v0.prototype,"lastEmojiRequestedForTesting",void 0);
_.E([_.C({value:function(){return _.GP("desktop_fountain_emoji_size_px",20)}}),
_.c("design:type",Number)],v0.prototype,"desktopFountainEmojiSizePx",void 0);_.E([_.iN("desktopFountainEmojiSizePx"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],v0.prototype,"desktopFountainEmojiSizePxChanged",null);_.E([_.V1("#emoji-container"),_.c("design:type",HTMLElement)],v0.prototype,"emojiContainer",void 0);
_.E([_.iN("emojiFountainData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],v0.prototype,"onEmojiFountainDataEntityUpdate",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],v0);
_.W(v0,"yt-emoji-fountain-view-model",function(){if(YLV===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;yvw===void 0&&(yvw=document.createElement("template"));var f=yvw;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);YLV=A}A=YLV;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var N9T;var sy$;var EB=function(){return _.q.apply(this,arguments)||this};
_.O(EB,_.q);EB.prototype.onChoiceChanged=function(){this.data&&_.Uc(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
EB.prototype.onChoiceChanged=EB.prototype.onChoiceChanged;_.E([_.C(),_.c("design:type",Object)],EB.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],EB.prototype,"onChoiceChanged",null);_.E([_.h({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],EB);
_.W(EB,"yt-live-chat-banner-poll-choice",function(){if(sy$===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;N9T===void 0&&(N9T=document.createElement("template"));var f=N9T;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);sy$=A}A=sy$;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var mxV;var AMn;var xS=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_button_rework_with_live");A.small=!1;return A};
_.O(xS,_.q);xS.prototype.computeIsSmall=function(){var A;return((A=this.buttonOverrides)==null?void 0:A.size)==="S"};
xS.prototype.computeId=function(){return this.data&&this.data.targetId};
_.E([_.I(_.yn.YtLiveChatTooltipTargetingBehavior),_.c("design:type",Object)],xS.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.c("design:type",String)],xS.prototype,"id",void 0);_.E([_.C(),_.c("design:type",Object)],xS.prototype,"buttonOverrides",void 0);_.E([_.C(),_.c("design:type",Object)],xS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xS.prototype,"modern",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.c("design:type",Object)],xS.prototype,"small",void 0);_.E([_.h({disableElementRegistration:!0,is:"yt-live-chat-button"})],xS);
_.W(xS,"yt-live-chat-button",function(){if(AMn===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;mxV===void 0&&(mxV=document.createElement("template"));var f=mxV;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);AMn=A}A=AMn;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var QtY;var bsp;var c0=function(){var A=_.q.apply(this,arguments)||this;A.inCollapsedBanner=!1;A.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};A.questionButtonOverrides={style:"mono",type:"filled"};return A};
_.O(c0,_.q);_.d=c0.prototype;_.d.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]]"}}}}}};
_.d.onContextMenuButtonClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
_.d.onYtRendererstamperFinished=function(){this.menuButton=_.Bj(this.hostElement).querySelector("#menu-button")};
_.d.dataChanged=function(){var A,Q;if((Q=_.V((A=this.data)==null?void 0:A.overflowMenuButton,_.wE))==null?0:Q.command)this.data.contextMenuEndpoint=_.V(this.data.overflowMenuButton,_.wE).command};
_.d.onButtonClick=function(){var A,Q=_.V((A=this.data)==null?void 0:A.askQuestionButton,_.wE);if(Q){if(Q.trackingParams&&(A=_.t8(Q.trackingParams))){var b=_.WR();b&&_.$_(b,A)}_.Bn(this.hostElement,"innertube-command",Q.command)}};
c0.prototype.onYtRendererstamperFinished=c0.prototype.onYtRendererstamperFinished;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],c0.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],c0.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.C({observer:"dataChanged"}),_.c("design:type",Object)],c0.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],c0.prototype,"inCollapsedBanner",void 0);_.E([_.C(),_.c("design:type",Object)],c0.prototype,"buttonOverrides",void 0);_.E([_.C(),_.c("design:type",Object)],c0.prototype,"questionButtonOverrides",void 0);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],c0.prototype,"onYtRendererstamperFinished",null);
_.E([_.h({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],c0);
_.W(c0,"yt-live-chat-call-for-questions-renderer",function(){if(bsp===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;QtY===void 0&&(QtY=document.createElement("template"));var f=QtY;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bsp=A}A=bsp;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var frT={};frT.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 A=this;window.requestAnimationFrame(function(){A.restoreFocusNode_||(A.restoreFocusNode_=document.activeElement);var Q=_.EBy(A.hostElement);Q.length&&Q[Q.length-1].focus()})},
isAttachedChanged_:function(A,Q){A?this.focusChild_():Q&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(A){this.hidden||_.mW(A).indexOf(this.hostElement)!==-1||(A.stopPropagation(),this.focusChild_())}};var arn;var Txp;var zE=function(){return _.q.apply(this,arguments)||this};
_.O(zE,_.q);zE.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zE.prototype.onClick=function(A){A.target!==this.confirmButton&&A.target!==this.cancelButton&&(this.hidden=!0)};
_.E([_.V1("#confirm_button"),_.c("design:type",Object)],zE.prototype,"confirmButton",void 0);_.E([_.V1("#cancel_button"),_.c("design:type",Object)],zE.prototype,"cancelButton",void 0);_.E([_.C(),_.c("design:type",dNc)],zE.prototype,"data",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.c("design:type",Boolean)],zE.prototype,"hidden",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(frT.YtLiveChatDialogBehavior),_.c("design:type",Object)],zE.prototype,"ytLiveChatDialogBehavior",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],zE);
var dNc=_.W(zE,"yt-live-chat-dialog-renderer",function(){if(Txp===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;arn===void 0&&(arn=document.createElement("template"));var f=arn;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Txp=A}A=Txp;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Fln;var Gn$,Bxd=function(){if(Gn$!==void 0)return Gn$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Fln===void 0&&(Fln=document.createElement("template"));var f=Fln;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Gn$=A};var pd$;var POp;var w3=function(){var A=_.q.apply(this,arguments)||this;A.tooltip=null;A.data=null;A.id="";A.active=!1;A.icon="";A.disabled=!1;A.showTooltip=!1;A.useToggledActiveState=!0;A.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return A};
_.O(w3,_.q);_.d=w3.prototype;
_.d.dataChanged=function(){var A;((A=this.data)==null?0:A.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,_.SK)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var Q;if((Q=this.data)==null?0:Q.disabled)this.disabled=!0};
_.d.computeId=function(A){return A};
_.d.computeIcon=function(A,Q){if(!A)return"";if(this.useToggledActiveState)return"yt-icons:"+A.toLowerCase();var b,f;return Q&&((b=this.data)==null?0:(f=b.toggledIcon)==null?0:f.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+A.toLowerCase()};
_.d.logPDGEntryPoint=function(){_.QSy(_.lB("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")};
_.d.immediatelyShowTooltip=function(){var A=_.Bj(this.hostElement).querySelector("#tooltip");A.animationDelay=0;A.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};A.show()};
_.d.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.d.onClick=function(A){var Q;((Q=this.data)==null?0:Q.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(),A.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Bn(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.d.computeShowTooltip=function(A,Q){return!!(A&&A.tooltip&&Q)};
_.d.maybeUpdateTooltipText=function(){var A=this,Q;if((Q=this.data)==null?0:Q.tooltip){var b=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.SK)(A.tooltip).textContent=b},250)}};
_.d.handleLiveChatActions=function(A){var Q=this;A.length&&(this.id!=="creator"&&this.id!=="product-picker"||A.forEach(function(b){(b=Q.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",b))&&b.durationSec===b.fullDurationSec&&Q.startBubble(Q.colorFromDecimal(b.startBackgroundColor))}))};
_.d.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.d.startBubble=function(A){_.Uc(this.hostElement,{"--yt-live-chat-monetization-button-glow":A});this.hostElement.setAttribute("bubble","")};
_.d.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.d.colorFromDecimal=function(A){typeof A==="string"&&(A=Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
w3.prototype.onAnimationEnd=w3.prototype.onAnimationEnd;w3.prototype.disabledChanged=w3.prototype.disabledChanged;w3.prototype.dataChanged=w3.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],w3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.yn.YtLiveChatTooltipTargetingBehavior),_.c("design:type",Object)],w3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],w3.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.c("design:type",Object)],w3.prototype,"id",void 0);_.E([_.C({notify:!0,reflectToAttribute:!0}),_.c("design:type",Object)],w3.prototype,"active",void 0);
_.E([_.C({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.c("design:type",Object)],w3.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],w3.prototype,"disabled",void 0);_.E([_.C({computed:"computeShowTooltip(data, disabled)"}),_.c("design:type",Object)],w3.prototype,"showTooltip",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],w3.prototype,"useToggledActiveState",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],w3.prototype,"dataChanged",null);_.E([_.iN("disabled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],w3.prototype,"disabledChanged",null);_.E([_.Kc("animationend"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],w3.prototype,"onAnimationEnd",null);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],w3);
_.W(w3,"yt-live-chat-icon-toggle-button-renderer",function(){if(POp===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;pd$===void 0&&(pd$=document.createElement("template"));var f=pd$;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);POp=A}A=POp;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Xd8;var SNn;var uS=function(){return _.q.apply(this,arguments)||this};
_.O(uS,_.q);uS.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.C(),_.c("design:type",Object)],uS.prototype,"data",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],uS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.h({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],uS);
_.W(uS,"yt-live-chat-message-input-prompt-header-renderer",function(){if(SNn===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Xd8===void 0&&(Xd8=document.createElement("template"));var f=Xd8;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);SNn=A}A=SNn;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var UNc;var Ll8;var MFn;var lr8;var Kls;var ish;var JM8=function(){return _.q.apply(this,arguments)||this};
_.O(JM8,_.q);_.E([_.C(),_.c("design:type",Object)],JM8.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],JM8);
_.W(JM8,"yt-live-chat-message-subtext-renderer",function(){if(ish===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Kls===void 0&&(Kls=document.createElement("template"));var f=Kls;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ish=A}A=ish;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Zj=function(){var A=_.q.apply(this,arguments)||this;A.subtextOnBottom=!1;A.buttonOverrides={style:"mono",type:"tonal"};return A};
_.O(Zj,_.q);Zj.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zj.prototype,"subtextOnBottom",void 0);_.E([_.C(),_.c("design:type",Object)],Zj.prototype,"buttonOverrides",void 0);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Zj);
_.W(Zj,"yt-live-chat-message-renderer",function(){if(lr8===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;MFn===void 0&&(MFn=document.createElement("template"));var f=MFn;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);lr8=A}A=lr8;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var VFw;var Oss;var yB=function(){var A=_.q.apply(this,arguments)||this;A.isRemovable=!1;A.hasPrefilledText=!1;A.isInputDirty=!1;A.overCharacterLimit=!1;A.underCharacterLimit=!1;A.showErrorMessage=!1;return A};
_.O(yB,_.q);_.d=yB.prototype;_.d.computeId=function(){return this.data.id};
_.d.computeInputData=function(){return this.data.inputData};
_.d.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.d.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.d.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.d.getLiveChatRichMessageInput=function(){return _.Bj(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.d.clearInput=function(){_.Bj(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.d.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.d.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.d.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.d.handleTextInputCharCountChanged=function(A){A=A.detail&&A.detail.characterCount;A!==void 0&&(this.characterCount=A,A!==0&&(this.isInputDirty=!0))};
_.d.onInputFocusOut=function(){this.isInputDirty=!0};
_.d.onClickCloseButton=function(){_.Bn(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
yB.prototype.handleTextInputCharCountChanged=yB.prototype.handleTextInputCharCountChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yB.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.id)"}),_.c("design:type",String)],yB.prototype,"id",void 0);_.E([_.C({computed:"computeInputData(data.inputData)"}),_.c("design:type",Object)],yB.prototype,"inputData",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.c("design:type",Object)],yB.prototype,"isRemovable",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.c("design:type",Object)],yB.prototype,"hasPrefilledText",void 0);_.E([_.C({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.c("design:type",Number)],yB.prototype,"charactersRemaining",void 0);
_.E([_.C(),_.c("design:type",Number)],yB.prototype,"characterCount",void 0);_.E([_.C(),_.c("design:type",Object)],yB.prototype,"isInputDirty",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.c("design:type",Object)],yB.prototype,"overCharacterLimit",void 0);_.E([_.C({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.c("design:type",Object)],yB.prototype,"underCharacterLimit",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.c("design:type",Object)],yB.prototype,"showErrorMessage",void 0);_.E([_.Kc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],yB.prototype,"handleTextInputCharCountChanged",null);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],yB);
_.W(yB,"yt-live-chat-poll-editor-input",function(){if(Oss===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;VFw===void 0&&(VFw=document.createElement("template"));var f=VFw;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Oss=A}A=Oss;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var nqx;var kn$;var IrY={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},YS=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_button_rework_with_live");A.closeButtonOverrides={iconPosition:"icon-only"};A.startButtonOverrides={style:"mono",type:"filled"};A.addOptionButtonOverrides={style:"mono",type:"text"};return A};
_.O(YS,_.q);_.d=YS.prototype;
_.d.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"}}}}};
_.d.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var A;_.V((A=this.data)==null?void 0:A.startButton,_.wE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.d.computeId=function(){return this.data&&this.data.id||""};
_.d.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.d.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.d.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.d.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.d.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var A=0;A<this.pollEditorInfoWithDefaults.minPollOptions;A++)this.addPollOptionData()};
_.d.getIsValidPoll=function(){var A=this;if(!this.pollEditorInfoWithDefaults)return!1;var Q=this.pollEditorInfoWithDefaults,b=Q.minPollOptionChars,f=Q.maxPollOptionChars,a=Q.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>Q.maxPollQuestionChars)return!1;Q=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(Q).every(function(T,G){T=T.characterCount;!T&&a[G]&&(T=A.ytRendererBehavior.getSimpleString(a[G]).length);return T!==void 0&&T>=b&&T<=f})};
_.d.isValidPollChanged=function(){var A;_.V((A=this.data)==null?void 0:A.startButton,_.wE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.d.addPollOptionData=function(){var A=this.pollEditorInfoWithDefaults,Q=A.maxPollOptionChars,b=A.optionPlaceholderText,f=A.customOptionPlaceholderText,a=A.pollOptionData;this.currentNumPollOptions>=A.maxPollOptions||(A={liveChatPollOptionInput:{inputData:{placeholder:f[this.currentNumPollOptions]||b,maxCharacterLimit:Q},maxCharacterLimit:Q,minCharacterLimit:A.minPollOptionChars,hasPrefilledText:!!f[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=A.minPollOptions}},a.charCountErrorText&&
(A.liveChatPollOptionInput.charCountErrorText=a.charCountErrorText),a.charsRemainingAltLabel&&(A.liveChatPollOptionInput.charsRemainingAltLabel=a.charsRemainingAltLabel),a.removeOptionAltText&&(A.liveChatPollOptionInput.removeOptionAltText=a.removeOptionAltText),this.push("pollOptionsData",A),a=Array.from(_.Bj(_.Bj(this.hostElement).querySelector("#poll-options")).children),a.forEach(function(T,G){T.polymerController.set("data.id",G)}),_.Bj(a[a.length-1]).querySelector("#input").focus())};
_.d.getPollOptionInputValues=function(){var A=this,Q=[],b=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),f=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(b).forEach(function(a,T){var G=null;a=a.getLiveChatRichMessageInput();var p;(a==null?0:(p=a.textSegments)==null?0:p.length)?G=_.Dc(a):f[T]&&(G=A.formattedStringToLiveChatRichMessageInput(f[T]));Q.push(G)});
return Q};
_.d.requestCreateAndStartPoll=function(A){var Q=this.getPollOptionInputValues();if(!Q.some(function(f){return!f})){Q={optionText:Q};
var b=_.Bj(_.Bj(this.hostElement).querySelector("#poll-question")).firstChild;b&&b.liveChatRichMessageInput&&(Q.questionText=_.Dc(b.liveChatRichMessageInput));_.X5(this.hostElement,[A,Q])}};
_.d.selectedChanged=function(){if(this.selected){var A=_.Bj(_.Bj(this.hostElement).querySelector("#start-button")).firstElementChild;if(A){var Q;(Q=_.Bj(A).querySelector("#button")||_.pc(A).querySelector("button"))==null||Q.focus()}}};
_.d.handleTextInputChanged=function(A){var Q;((Q=A.target)==null?void 0:Q.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=A.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.d.handleStartButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),(A=A.detail.args[1])&&this.requestCreateAndStartPoll(A))};
_.d.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.d.handleServiceRequestCompleted=function(A){this.createPollRequestInFlight=!1;(A=A.detail&&A.detail.data)&&A.success&&(_.Bn(this.hostElement,"picker-cancelled"),_.pD(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.d.onCloseClick=function(){_.Bn(this.hostElement,"picker-cancelled");_.pD(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.d.handlePollEditorInputClosed=function(A){var Q=this.pollOptionsData.findIndex(function(b){return b.liveChatPollOptionInput.id===A.detail.id});
this.splice("pollOptionsData",Q,1);this.isValidPoll=this.getIsValidPoll()};
_.d.onPickerCancelled=function(){this.reset()};
_.d.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var A=_.Bj(_.Bj(this.hostElement).querySelector("#poll-question")).firstChild;A&&A.setLiveChatRichMessageInput(null);if(A=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){A=_.F(Array.from(A));for(var Q=A.next();!Q.done;Q=A.next())Q.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.d.formattedStringToLiveChatRichMessageInput=function(A){return A.simpleText?{text_segments:[A.simpleText]}:{text_segments:A.runs}};
_.Qr.Object.defineProperties(YS.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(IrY,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
YS.prototype.onPickerCancelled=YS.prototype.onPickerCancelled;YS.prototype.handlePollEditorInputClosed=YS.prototype.handlePollEditorInputClosed;YS.prototype.handleServiceRequestCompleted=YS.prototype.handleServiceRequestCompleted;YS.prototype.handleServiceRequestSent=YS.prototype.handleServiceRequestSent;YS.prototype.handleTextInputChanged=YS.prototype.handleTextInputChanged;YS.prototype.selectedChanged=YS.prototype.selectedChanged;YS.prototype.isValidPollChanged=YS.prototype.isValidPollChanged;
YS.prototype.shouldInitializePollChanged=YS.prototype.shouldInitializePollChanged;YS.prototype.dataChanged=YS.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YS.prototype,"modern",void 0);
_.E([_.C(),_.c("design:type",Object)],YS.prototype,"closeButtonOverrides",void 0);_.E([_.C(),_.c("design:type",Object)],YS.prototype,"startButtonOverrides",void 0);_.E([_.C(),_.c("design:type",Object)],YS.prototype,"addOptionButtonOverrides",void 0);_.E([_.C({computed:"computeId(data.id)",reflectToAttribute:!0}),_.c("design:type",String)],YS.prototype,"id",void 0);_.E([_.C({value:function(){return[]}}),
_.c("design:type",Array)],YS.prototype,"pollOptionsData",void 0);_.E([_.H("pollEditorInfoWithDefaults"),_.c("design:type",Object),_.c("design:paramtypes",[])],YS.prototype,"pollQuestionData",null);_.E([_.C({value:0}),_.c("design:type",Number)],YS.prototype,"pollQuestionCharacterCount",void 0);_.E([_.H("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.c("design:type",Object),_.c("design:paramtypes",[])],YS.prototype,"pollQuestionCharactersRemaining",null);
_.E([_.C({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.c("design:type",Boolean)],YS.prototype,"overQuestionCharacterLimit",void 0);_.E([_.H("data.pollEditorInfo"),_.c("design:type",Object),_.c("design:paramtypes",[])],YS.prototype,"pollEditorInfoWithDefaults",null);_.E([_.C({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.c("design:type",Number)],YS.prototype,"currentNumPollOptions",void 0);
_.E([_.C({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.c("design:type",Boolean)],YS.prototype,"hasMaxNumPollOptions",void 0);_.E([_.H("pollEditorInfoWithDefaults","pollOptionsData"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],YS.prototype,"shouldInitializePoll",null);_.E([_.C(),_.c("design:type",Object)],YS.prototype,"isValidPoll",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],YS.prototype,"createPollRequestInFlight",void 0);_.E([_.C(),_.c("design:type",Object)],YS.prototype,"selected",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.c("design:type",Boolean)],YS.prototype,"showQuestionErrorMessage",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YS.prototype,"dataChanged",null);_.E([_.iN("shouldInitializePoll"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YS.prototype,"shouldInitializePollChanged",null);_.E([_.iN("isValidPoll"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YS.prototype,"isValidPollChanged",null);
_.E([_.iN("selected"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YS.prototype,"selectedChanged",null);_.E([_.Kc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],YS.prototype,"handleTextInputChanged",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YS.prototype,"handleServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],YS.prototype,"handleServiceRequestCompleted",null);
_.E([_.Kc("yt-live-chat-poll-editor-input-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],YS.prototype,"handlePollEditorInputClosed",null);_.E([_.Kc("picker-cancelled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YS.prototype,"onPickerCancelled",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],YS);
_.W(YS,"yt-live-chat-poll-editor-panel-renderer",function(){if(kn$===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;nqx===void 0&&(nqx=document.createElement("template"));var f=nqx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);kn$=A}A=kn$;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Hsc;var COV;var Dj=function(){return _.q.apply(this,arguments)||this};
_.O(Dj,_.q);Dj.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Dj.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Qr.Object.defineProperties(Dj.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(A=this.data)==null?void 0:(Q=A.title)==null?void 0:Q.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.ue((A=this.data)==null?void 0:A.onTapCommand)}}});
_.E([_.I(_.kZ.YtEndpointBehavior),_.c("design:type",Object)],Dj.prototype,"ytEndpointBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Dj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Dj.prototype,"itemId",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Dj.prototype,"hasPromotion",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Dj.prototype,"innertubeCommand",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Dj);
_.W(Dj,"yt-live-chat-product-picker-panel-item-view-model",function(){if(COV===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Hsc===void 0&&(Hsc=document.createElement("template"));var f=Hsc;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);COV=A}A=COV;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var qNh;var oqi;var $S=function(){var A=_.q.apply(this,arguments)||this;A.id="product-picker";A.selected=!1;A.closeButtonId="close-button";A.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return A};
_.O($S,_.q);_.d=$S.prototype;_.d.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.d.observeSelected=function(){this.selected&&this.hostElement.focus();var A=_.Bj(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");A.length&&A[0].focus()};
_.d.onCloseBuyFlow=function(){_.Bn(this.hostElement,"picker-cancelled")};
_.d.onCloseClick=function(){_.Bn(this.hostElement,"picker-cancelled");var A;((A=this.data)==null?0:A.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.V(this.data.closeButton,_.jJ))};
_.d.onCloseEngageWithAudienceEditorPanels=function(){_.Bn(this.hostElement,"picker-cancelled")};
$S.prototype.observeSelected=$S.prototype.observeSelected;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],$S.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$S.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],$S.prototype,"id",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],$S.prototype,"selected",void 0);_.E([_.C(),_.c("design:type",Object)],$S.prototype,"closeButtonId",void 0);_.E([_.iN("selected"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$S.prototype,"observeSelected",null);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],$S);
_.W($S,"yt-live-chat-product-picker-panel-view-model",function(){if(oqi===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;qNh===void 0&&(qNh=document.createElement("template"));var f=qNh;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);oqi=A}A=oqi;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var tFn;var rMi;var NV=function(){var A=_.q.apply(this,arguments)||this;A.iconId="";A.icon="";A.disabled=!1;A.systemIcons=_.K("kevlar_system_icons");return A};
_.O(NV,_.q);_.d=NV.prototype;_.d.computeIconId=function(A){return A&&A.icon&&A.icon.iconType?A.icon.iconType.toLowerCase():""};
_.d.computeIcon=function(A){return A&&A.icon&&A.icon.iconType?(A=A.icon.iconType.toLowerCase(),(A.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+A):""};
_.d.computeDisabled=function(A){return!!A};
_.d.computeCommand=function(A,Q){return Q?void 0:A};
_.d.computeTooltip=function(A,Q){return Q&&A?A:""};
_.d.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Qr.Object.defineProperties(NV.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A="",Q,b,f;if((Q=this.data)==null?0:(b=Q.text)==null?0:(f=b.runs)==null?0:f.length)A=this.data.text.runs[0].text||"";else{var a,T;if((a=this.data)==null?0:(T=a.text)==null?0:T.simpleText)A=this.data.text.simpleText}var G,p,P;if((G=this.data)==null?0:(p=G.subtext)==null?0:(P=p.runs)==null?0:P.length)A&&(A+=". "),A+=this.data.subtext.runs[0].text||"";else{var U,L;if((U=this.data)==null?0:(L=U.subtext)==
null?0:L.simpleText)A&&(A+=". "),A+=this.data.subtext.simpleText}return A}}});
_.E([_.I(_.kZ.YtEndpointBehavior),_.c("design:type",Object)],NV.prototype,"ytEndpointBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],NV.prototype,"data",void 0);_.E([_.C({computed:"computeIconId(data)",reflectToAttribute:!0}),_.c("design:type",Object)],NV.prototype,"iconId",void 0);
_.E([_.C({computed:"computeIcon(data)",reflectToAttribute:!0}),_.c("design:type",Object)],NV.prototype,"icon",void 0);_.E([_.C({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.c("design:type",Object)],NV.prototype,"disabled",void 0);_.E([_.C({computed:"computeCommand(data.command, disabled)"}),_.c("design:type",Object)],NV.prototype,"command",void 0);_.E([_.C({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.c("design:type",String)],NV.prototype,"tooltip",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],NV.prototype,"systemIcons",void 0);_.E([_.H("data.text","data.subtext"),_.C(),_.c("design:type",String),_.c("design:paramtypes",[])],NV.prototype,"ariaLabel",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],NV);
_.W(NV,"yt-live-chat-product-button-renderer",function(){if(rMi===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;tFn===void 0&&(tFn=document.createElement("template"));var f=tFn;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);rMi=A}A=rMi;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var jts;var R7d;var sB=function(){var A=_.q.apply(this,arguments)||this;A.selected=!1;A.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 A};
_.O(sB,_.q);_.d=sB.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.computeId=function(A){return A.id||""};
_.d.onCloseClick=function(){_.Bn(this.hostElement,"picker-cancelled")};
_.d.observeSelected=function(){this.selected&&this.hostElement.focus();var A=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");A.length&&A[0].focus()};
_.d.onCloseBuyFlow=function(){_.Bn(this.hostElement,"picker-cancelled")};
_.d.onCloseEngageWithAudienceEditorPanels=function(){_.Bn(this.hostElement,"picker-cancelled")};
sB.prototype.observeSelected=sB.prototype.observeSelected;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],sB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sB.prototype,"data",void 0);
_.E([_.C({computed:"computeId(data)",reflectToAttribute:!0}),_.c("design:type",String)],sB.prototype,"id",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sB.prototype,"selected",void 0);_.E([_.iN("selected"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sB.prototype,"observeSelected",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],sB);
_.W(sB,"yt-live-chat-product-picker-renderer",function(){if(R7d===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;jts===void 0&&(jts=document.createElement("template"));var f=jts;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);R7d=A}A=R7d;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var gqh;var e7Y;var h78;var Wlp;var mo=function(){return _.q.apply(this,arguments)||this};
_.O(mo,_.q);mo.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()};
mo.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
mo.prototype.created=function(){this.ids={background:_.$9(),maskOne:_.$9(),maskTwo:_.$9(),gradient:_.$9(),largeBackground:_.$9(),largeGradientOne:_.$9(),largeGradientTwo:_.$9(),largeGradientPath:_.$9()}};
mo.prototype.maybeLoadAnimationBackground=mo.prototype.maybeLoadAnimationBackground;_.E([_.C({value:!1}),_.c("design:type",Boolean)],mo.prototype,"useLargeBackground",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],mo.prototype,"useAnimationBackground",void 0);_.E([_.C({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.c("design:type",Boolean)],mo.prototype,"useRegularBackground",void 0);
_.E([_.C(),_.c("design:type",Object)],mo.prototype,"ids",void 0);_.E([_.C(),_.c("design:type",Object)],mo.prototype,"lottieAnimation",void 0);_.E([_.V1("#animation-background"),_.c("design:type",HTMLDivElement)],mo.prototype,"animationBackground",void 0);_.E([_.iN("useAnimationBackground"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mo.prototype,"maybeLoadAnimationBackground",null);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],mo);
_.W(mo,"yt-live-interactivity-component-background",function(){if(Wlp===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;h78===void 0&&(h78=document.createElement("template"));var f=h78;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Wlp=A}A=Wlp;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var AU=function(){var A=_.q.apply(this,arguments)||this;A.characterCount=0;A.showInputErrorMessage=!1;A.startQnaRequestInFlight=!1;A.modern=_.K("web_button_rework_with_live");A.buttonOverrides={style:"mono",type:"filled"};A.closeButtonOverrides={iconPosition:"icon-only"};A.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return A};
_.O(AU,_.q);_.d=AU.prototype;
_.d.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]]"}}}}}};
_.d.onCharacterCountChanged=function(A){var Q,b,f,a,T=(b=_.V(this==null?void 0:(Q=this.data)==null?void 0:Q.creatorCallForQuestions,Ljd))==null?void 0:(f=b.inputField)==null?void 0:(a=f.liveChatTextInputFieldRenderer)==null?void 0:a.maxCharacterLimit,G,p;T!=null&&(A==null?void 0:(G=A.detail)==null?void 0:G.characterCount)!=null&&_.V(this==null?void 0:(p=this.data)==null?void 0:p.startButton,_.wE)&&(Q=A.detail.characterCount>T,this.set("data.startButton.buttonRenderer.isDisabled",A.detail.characterCount===
0||Q),this.showInputErrorMessage=Q)};
_.d.onCloseClick=function(){_.Bn(this.hostElement,"picker-cancelled");_.pD(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.onPickerCancelled=function(){var A=_.Bj(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.setLiveChatRichMessageInput(null)};
_.d.handleOpenQnaStartPanel=function(){var A=_.Bj(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.focus()};
_.d.handleStartButtonAction=function(A){var Q=this;if(A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),A=A.detail.args[1])){var b=_.Bj(this.hostElement).querySelector("#qna-creator-text-input-field"),f;(b==null?0:(f=b.liveChatRichMessageInput)==null?0:f.textSegments)&&b.liveChatRichMessageInput.textSegments.length!==0&&(f={rich_message:_.Dc(b.liveChatRichMessageInput)},_.X5(this.hostElement,[A,f]).then(function(){_.Bn(Q.hostElement,"picker-cancelled")}))}};
_.d.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.d.handleServiceRequestCompleted=function(A){var Q;A=A==null?void 0:(Q=A.detail)==null?void 0:Q.data;(A==null?0:A.actions)&&A.actions.length>0?this.startQnaRequestInFlight=!1:_.pD(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
AU.prototype.handleServiceRequestError=AU.prototype.handleServiceRequestError;AU.prototype.handleServiceRequestCompleted=AU.prototype.handleServiceRequestCompleted;AU.prototype.handleServiceRequestSent=AU.prototype.handleServiceRequestSent;AU.prototype.onPickerCancelled=AU.prototype.onPickerCancelled;AU.prototype.onCharacterCountChanged=AU.prototype.onCharacterCountChanged;_.E([_.C(),_.c("design:type",Object)],AU.prototype,"characterCount",void 0);
_.E([_.C(),_.c("design:type",Object)],AU.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],AU.prototype,"showInputErrorMessage",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],AU.prototype,"startQnaRequestInFlight",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],AU.prototype,"modern",void 0);_.E([_.C(),_.c("design:type",Object)],AU.prototype,"buttonOverrides",void 0);
_.E([_.C(),_.c("design:type",Object)],AU.prototype,"closeButtonOverrides",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],AU.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.I(_.D8.YtLiveChatItemBehavior),_.c("design:type",_.$Z)],AU.prototype,"ytLiveChatItemBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],AU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.Kc("yt-live-chat-text-input-field-renderer-character-count-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],AU.prototype,"onCharacterCountChanged",null);_.E([_.Kc("picker-cancelled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],AU.prototype,"onPickerCancelled",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],AU.prototype,"handleServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],AU.prototype,"handleServiceRequestCompleted",null);
_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],AU.prototype,"handleServiceRequestError",null);_.E([_.h({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],AU);
_.W(AU,"yt-live-chat-qna-start-panel-renderer",function(){if(e7Y===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;gqh===void 0&&(gqh=document.createElement("template"));var f=gqh;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);e7Y=A}A=e7Y;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var vqp;var Eqc;var Qz=function(){return _.q.apply(this,arguments)||this};
_.O(Qz,_.q);Qz.prototype.dismiss=function(){_.Bn(this.hostElement,"yt-live-chat-error-message-dismiss")};
Qz.prototype.edit=function(){_.Bn(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.E([_.C(),_.c("design:type",Object)],Qz.prototype,"data",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Qz);
_.W(Qz,"yt-live-chat-text-actions-error-message-renderer",function(){if(Eqc===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;vqp===void 0&&(vqp=document.createElement("template"));var f=vqp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Eqc=A}A=Eqc;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var xNp;var cMi;var z7d;var wdi;var bQ=function(){var A=_.q.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.O(bQ,_.q);bQ.prototype.sendReaction=function(){var A,Q,b=((A=this.data)==null?void 0:A.emojiId)||((Q=this.data)==null?void 0:Q.emoteId),f;b&&((f=this.data)==null?0:f.shouldTriggerAnimation)&&_.pD(this.hostElement,"yt-create-user-reaction-animation",[b]);var a;(A=_.ue((a=this.data)==null?void 0:a.onTap))&&_.V0(A,this.hostElement);this.showNewnessDot&&_.pD(this.hostElement,"yt-hide-newness-dot")};
bQ.prototype.onClick=function(A){(!A||A.clientX||A.clientY)&&this.sendReaction()};
bQ.prototype.onKeyDown=function(A){A.key!=="Enter"&&A.key!==" "||A.repeat||this.sendReaction()};
_.Qr.Object.defineProperties(bQ.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!!(((A=this.data)==null?0:A.emojiId)||((Q=this.data)==null?0:Q.emoteId))}}});
_.E([_.C(),_.c("design:type",Object)],bQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bQ.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],bQ.prototype,"newnessDotEligible",void 0);_.E([_.H("data.maybeShowNewnessDot"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bQ.prototype,"showNewnessDot",null);_.E([_.H("data.emojiId","data.emoteId"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bQ.prototype,"useYtImage",null);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],bQ);
_.W(bQ,"yt-reaction-control-panel-button-view-model",function(){if(wdi===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;z7d===void 0&&(z7d=document.createElement("template"));var f=z7d;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);wdi=A}A=wdi;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var uKs;var Zs$;var fL=function(){var A=_.q.apply(this,arguments)||this;A.reactionControlPanelExpanded=!1;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.O(fL,_.q);_.d=fL.prototype;_.d.expandedButtonsChanged=function(){var A,Q;_.Uc(this.hostElement,{"--expanded-buttons-height":((Q=(A=this.expandedButtonsData)==null?void 0:A.length)!=null?Q:0)*36+"px"})};
_.d.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}}};
_.d.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.d.onMouseLeave=function(){var A=this;this.collapseTimer=setTimeout(function(){A.reactionControlPanelExpanded=!1},500)};
_.d.onFocusIn=function(){this.onMouseEnter()};
_.d.onFocusOut=function(){this.onMouseLeave()};
_.d.onCollapsedButtonFocusIn=function(){var A=this;setTimeout(function(){var Q;(Q=A.expandedButtons.querySelector("button"))==null||Q.focus()},100)};
_.d.onCollapsedButtonFocusOut=function(A){A.stopPropagation()};
_.Qr.Object.defineProperties(fL.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var A,Q;return _.j2.unsafeClone((A=this.liveReactionsData)==null?void 0:A.emojiButtonData)||((Q=this.data)==null?void 0:Q.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((A=this.data)==null||!A.maybeShowNewnessDot)}}});
fL.prototype.expandedButtonsChanged=fL.prototype.expandedButtonsChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],fL.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fL.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],fL.prototype,"reactionControlPanelExpanded",void 0);_.E([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:sVd}),_.c("design:type",Object)],fL.prototype,"liveReactionsData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],fL.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],fL.prototype,"newnessDotEligible",void 0);
_.E([_.H("liveReactionsData","data.expandedButtons"),_.c("design:type",Object),_.c("design:paramtypes",[])],fL.prototype,"expandedButtonsData",null);_.E([_.H("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.C({reflectToAttribute:!0}),_.c("design:type",Object),_.c("design:paramtypes",[])],fL.prototype,"showNewnessDot",null);_.E([_.V1("#expanded-buttons"),_.c("design:type",HTMLElement)],fL.prototype,"expandedButtons",void 0);
_.E([_.iN("expandedButtonsData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],fL.prototype,"expandedButtonsChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],fL);
_.W(fL,"yt-reaction-control-panel-view-model",function(){if(Zs$===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;uKs===void 0&&(uKs=document.createElement("template"));var f=uKs;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Zs$=A}A=Zs$;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var aC=new _.WE("yt-live-chat"),yMw=Date.parse("2024-7-24"),T5=function(){var A=_.q.apply(this,arguments)||this;A.emojiManager=_.YZ;A.newnessDotEligible=!1;A.newnessDotImpressionCounted=!1;A.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return A};
_.O(T5,_.q);_.d=T5.prototype;_.d.emojiCustomizationEnabledChanged=function(){var A;((A=this.data)==null?0:A.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((A=aC.getCreationTime("emoji-customization-count"))&&A<yMw&&aC.set("emoji-customization-count","0"),A=Number(aC.get("emoji-customization-count"))||0,A<3&&(this.newnessDotEligible=!0,aC.set("emoji-customization-count",(A+1).toString())),this.newnessDotImpressionCounted=!0)};
_.d.hideNewnessDot=function(){this.newnessDotEligible=!1;aC.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.d.handleReactionsMute=function(A){var Q=_.WR(),b=_.K6(206221),f={checkboxData:{state:A?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};Q&&_.$_(Q,b,f);this.reactionsMuted=A};
_.d.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.d.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}}};
_.Qr.Object.defineProperties(T5.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return(!((A=this.liveReactionsData)==null||!A.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
T5.prototype.liveReactionsSettingChanged=T5.prototype.liveReactionsSettingChanged;T5.prototype.emojiCustomizationEnabledChanged=T5.prototype.emojiCustomizationEnabledChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.ZB),_.c("design:type",Object)],T5.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],T5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],T5.prototype,"data",void 0);_.E([_.C(),_.c("design:type",_.uz)],T5.prototype,"emojiManager",void 0);_.E([_.C(),_.c("design:type",Object)],T5.prototype,"newnessDotEligible",void 0);_.E([_.C(),_.c("design:type",Object)],T5.prototype,"newnessDotImpressionCounted",void 0);
_.E([_.C({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:mcx}),_.c("design:type",Boolean)],T5.prototype,"liveReactionsSetting",void 0);_.E([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:sVd}),_.c("design:type",Object)],T5.prototype,"liveReactionsData",void 0);_.E([_.C({value:function(){var A=_.K("enable_lwe_web_mute"),Q=aC.get("allow-reactions");return Q===void 0?!1:!Q&&A}}),
_.c("design:type",Boolean)],T5.prototype,"reactionsMuted",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],T5.prototype,"liveReactionsEnabled",null);_.E([_.iN("data.emojiCustomizationEnabled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],T5.prototype,"emojiCustomizationEnabledChanged",null);
_.E([_.iN("liveReactionsEnabled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],T5.prototype,"liveReactionsSettingChanged",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],T5);
_.W(T5,"yt-reaction-control-panel-overlay-view-model",function(){if(cMi===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;xNp===void 0&&(xNp=document.createElement("template"));var f=xNp;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);cMi=A}A=cMi;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var YNh={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(A){var Q=this.$.pickers.selected;if(Q){_.Bj(this.hostElement).removeAttribute(Q+"-open");var b="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(b="#picker-buttons",Q==="emoji"&&_.Bj(this.hostElement).querySelector("#emoji-picker-button")&&(b="#emoji-picker-button"));if(b=_.Bj(this.hostElement).querySelector(b).querySelector("#"+Q))b.active=!1}b=A;Q==A&&(b=null);Q!=
A&&_.Bj(this.hostElement).setAttribute(A+"-open","");this.$.pickers.selected=b;_.pD(this.hostElement,"yt-live-chat-picker-changed",[b])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var d1=function(){var A=_.q.apply(this,arguments)||this;A.numSentMessages=0;A.timeoutDurationMs=0;A.timeoutMs=0;A.lastTimeoutTimeMs=0;A.pendingMessageId="";A.hasFiredInitialFocusActions=!1;A.isBeforeFocusEnabled=!0;A.id="";A.characterCount=0;A.maxCharacterLimit=0;A.remainingCharacterCount=0;A.inputExpanded=!1;A.buttonOverrides={iconPosition:"icon-only"};A.inReplyPanel=!1;A.countdownRatio=0;A.isTooltipVisible=!1;A.tooltipTimeout=1E4;A.systemIcons=_.K("kevlar_system_icons");A.tallerEmojiPicker=_.K("live_chat_taller_emoji_picker");
A.sendReplyMessageInFlight=!1;A.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"};A.onResize=function(){A.maybeToggleCharacterCount()};
return A};
_.O(d1,_.q);_.d=d1.prototype;
_.d.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"}}}};
_.d.attached=function(){window.addEventListener("resize",this.onResize)};
_.d.detached=function(){window.removeEventListener("resize",this.onResize)};
_.d.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.d.sendMessage=function(){var A=this,Q,b,f,a;return _.B(function(T){if(A.sendDisabled)return T.return();A.isTooltipVisible&&_.pD(A.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(A.data.sendButton&&A.data.sendButton.buttonRenderer){A.input.completeEmojis();Q=A.data.sendButton.buttonRenderer.serviceEndpoint;if(!Q)return T.return();f=((b=_.V(Q,_.ZU9))==null?void 0:b.clientIdPrefix)||"";a={client_message_id:f+String(A.numSentMessages++),rich_message:_.Dc(A.input.liveChatRichMessageInput)};
A.pendingMessageId=a.client_message_id;A.inReplyPanel&&(A.sendReplyMessageInFlight=!0);_.X5(A.hostElement,[Q,a]);A.input.setLiveChatRichMessageInput(null)}_.Oi(T)})};
_.d.handleSendButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),this.sendMessage())};
_.d.onSendCompleted=function(A,Q){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(A=this.get("timeoutDurationUsec",Q.data))&&this.handleTimeout(Number(A)/1E3);this.errorMessage=this.get("errorMessage",Q.data);this.pendingMessageId=""};
_.d.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.pD(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.d.handlePickerButtonToggle=function(A){A=A.detail.targetId;this.ytPickerBehavior.togglePicker_(A);if(A==="emoji")this.input.focus();else if(A==="qna-start-panel"){var Q,b;(Q=_.Bj(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(b=Q.querySelector("#qna-creator-text-input-field"))==null||b.focus()}};
_.d.onComponentReplaced=function(A){var Q,b;A.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((Q=A.replacement.liveChatMessageInputRenderer)==null?0:(b=Q.headerRenderer)==null?0:b.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.d.onEmojiSelect=function(A){this.input.focus();this.input.insertEmoji(A.detail)};
_.d.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.d.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.pD(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.pD(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.d.onOpenPopupAction=function(A,Q){var b=this;Q===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.pD(b.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.d.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.d.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.d.focusChanged=function(){this.maybeToggleCharacterCount()};
_.d.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var A=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",A>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.d.computeId=function(){return this.data&&this.data.targetId||""};
_.d.computeSendDisabled=function(A,Q,b,f){A=!!(!A||Q&&A>Q||f);(Q=_.Bj(this.hostElement).querySelector("#send-button"))&&Q.children.length&&(Q.children[0].disabled=A);return A};
_.d.handleTimeout=function(A){this.timeoutDurationMs=this.timeoutMs=A;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.d.updateTimeout=function(A){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(A-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=A,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.d.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.d.onErrorMessageEdit=function(A){this.input.setLiveChatRichMessageInput(A.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.d.errorMessageChanged=function(){var A=this;_.y1(function(){_.pD(A.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.d.computeAuthorNameColor=function(A){var Q;if(_.K("live_chat_author_name_color_usernames")&&(A==null?0:(Q=A.authorName)==null?0:Q.simpleText))return _.J6W(_.VZ4(A.authorName.simpleText));if(_.K("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.J6W(_.M7(A.authorSeedColorArgb));if(_.K("live_chat_colored_usernames"))return"#cc0000";var b;return _.K("live_chat_simple_color_usernames")&&(A==null?0:(b=A.authorName)==null?0:b.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.M7(A.authorUsernameColorDark):_.M7(A.authorUsernameColorLight):""};
_.d.onIsTooltipVisibleChanged=function(){var A=_.Bj(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){A.hidden=!1;A.setAttribute("role","alert")},0):(A.hidden=!0,A.removeAttribute("role"))};
_.d.onFocusedChanged=function(A){this.inputFocused=A.detail.value};
_.Qr.Object.defineProperties(d1.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 A;return!((A=this.data)==null||!A.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.pickers)==null?void 0:Q.find(function(b){return b.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return A?this.ytRendererBehavior.getSimpleString(A):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
d1.prototype.onIsTooltipVisibleChanged=d1.prototype.onIsTooltipVisibleChanged;d1.prototype.errorMessageChanged=d1.prototype.errorMessageChanged;d1.prototype.onErrorMessageEdit=d1.prototype.onErrorMessageEdit;d1.prototype.onErrorMessageDismiss=d1.prototype.onErrorMessageDismiss;d1.prototype.focusChanged=d1.prototype.focusChanged;d1.prototype.characterCountChanged=d1.prototype.characterCountChanged;d1.prototype.onEmojiSelect=d1.prototype.onEmojiSelect;d1.prototype.handlePickerButtonToggle=d1.prototype.handlePickerButtonToggle;
d1.prototype.onSendError=d1.prototype.onSendError;d1.prototype.onSendCompleted=d1.prototype.onSendCompleted;d1.prototype.sendMessage=d1.prototype.sendMessage;d1.prototype.dataChanged=d1.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],d1.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(YNh.YtPickerBehavior),_.c("design:type",Object)],d1.prototype,"ytPickerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.yn.YtLiveChatTooltipTargetingBehavior),_.c("design:type",Object)],d1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"hasFiredInitialFocusActions",void 0);
_.E([_.C(),_.c("design:type",Object)],d1.prototype,"isBeforeFocusEnabled",void 0);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"data",void 0);_.E([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.c("design:type",Object)],d1.prototype,"id",void 0);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"characterCount",void 0);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"maxCharacterLimit",void 0);
_.E([_.C(),_.c("design:type",Object)],d1.prototype,"remainingCharacterCount",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],d1.prototype,"inputExpanded",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],d1.prototype,"inputFocused",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],d1.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.E([_.C(),_.c("design:type",_.mD)],d1.prototype,"participantsManager",void 0);
_.E([_.C(),_.c("design:type",Object)],d1.prototype,"buttonOverrides",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],d1.prototype,"inReplyPanel",void 0);_.E([_.H("characterCount, maxCharacterLimit, countdownActive"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],d1.prototype,"sendDisabled",null);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"countdownRatio",void 0);
_.E([_.H("countdownRatio"),_.c("design:type",Number),_.c("design:paramtypes",[])],d1.prototype,"countdownStrokeDashOffset",null);_.E([_.H("countdownRatio"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],d1.prototype,"countdownActive",null);_.E([_.H("data.interactionMessage"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],d1.prototype,"hasInteractionMessage",null);
_.E([_.H("data.emojiPickerButton"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],d1.prototype,"hasEmojiPickerButton",null);_.E([_.H("data, characterCount"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],d1.prototype,"showAvatar",null);_.E([_.H("data.pickers"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],d1.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.C(),_.c("design:type",Object)],d1.prototype,"errorMessage",void 0);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"genericErrorMessage",void 0);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"isTooltipVisible",void 0);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"tooltipTimeout",void 0);_.E([_.H("data.onInitialFocusCommand"),_.c("design:type",String),_.c("design:paramtypes",[])],d1.prototype,"tooltipMessage",null);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],d1.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],d1.prototype,"tallerEmojiPicker",void 0);_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],d1.prototype,"authorNameColor",null);_.E([_.C(),_.c("design:type",Object)],d1.prototype,"sendReplyMessageInFlight",void 0);_.E([_.V1("#input"),_.c("design:type",_.hYM)],d1.prototype,"input",void 0);
_.E([_.V1("#count"),_.c("design:type",HTMLElement)],d1.prototype,"count",void 0);_.E([_.V1("#input-container"),_.c("design:type",HTMLElement)],d1.prototype,"inputContainer",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d1.prototype,"dataChanged",null);_.E([_.Kc("yt-live-chat-send-message"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],d1.prototype,"sendMessage",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[Event,_.a$]),_.c("design:returntype")],d1.prototype,"onSendCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d1.prototype,"onSendError",null);
_.E([_.Kc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],d1.prototype,"handlePickerButtonToggle",null);_.E([_.Kc("yt-emoji-select"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],d1.prototype,"onEmojiSelect",null);
_.E([_.iN("characterCount"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d1.prototype,"characterCountChanged",null);_.E([_.iN("inputFocused"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d1.prototype,"focusChanged",null);_.E([_.Kc("yt-live-chat-error-message-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d1.prototype,"onErrorMessageDismiss",null);
_.E([_.Kc("yt-live-chat-error-message-edit"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],d1.prototype,"onErrorMessageEdit",null);_.E([_.iN("errorMessage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d1.prototype,"errorMessageChanged",null);_.E([_.iN("isTooltipVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],d1.prototype,"onIsTooltipVisibleChanged",null);
_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],d1);
_.W(d1,"yt-live-chat-message-input-renderer",function(){if(Ll8===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;UNc===void 0&&(UNc=document.createElement("template"));var f=UNc;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Ll8=A}A=Ll8;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var DNi;var $NV;var F9=function(){var A=_.q.apply(this,arguments)||this;A.systemIcons=_.K("kevlar_system_icons");A.firedOnClickCommand=!1;A.inReplyPanel=!1;return A};
_.O(F9,_.q);
F9.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"}}}};
F9.prototype.onButtonToggle=function(A){A.target.disabled||this.ytPickerBehavior.togglePicker_(A.detail.targetId)};
F9.prototype.onClick=function(){var A=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.pD(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return A.firedOnClickCommand=!1},5E3))};
_.Qr.Object.defineProperties(F9.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.panels)==null?void 0:Q.find(function(b){return b.liveChatProductPickerPanelViewModel}))!==void 0}}});
F9.prototype.onButtonToggle=F9.prototype.onButtonToggle;_.E([_.I(YNh.YtPickerBehavior),_.c("design:type",Object)],F9.prototype,"ytPickerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],F9.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],F9.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!1}),_.c("design:type",Object)],F9.prototype,"firedOnClickCommand",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],F9.prototype,"inReplyPanel",void 0);_.E([_.H("data.pickers"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],F9.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.Kc("yt-live-chat-icon-toggle-button-renderer-toggle"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],F9.prototype,"onButtonToggle",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],F9);
_.W(F9,"yt-live-chat-restricted-participation-renderer",function(){if($NV===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;DNi===void 0&&(DNi=document.createElement("template"));var f=DNi;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);$NV=A}A=$NV;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var G5=function(){var A=_.q.apply(this,arguments)||this;A.genericErrorMessage=_.sr("Error, try again.");A.inReplyPanel=!1;A.hideBorder=!1;return A};
_.O(G5,_.q);G5.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}}}}}};
_.Qr.Object.defineProperties(G5,{template:{configurable:!0,enumerable:!0,get:function(){return Bxd()}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],G5.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],G5.prototype,"genericErrorMessage",void 0);_.E([_.C(),_.c("design:type",Object)],G5.prototype,"inReplyPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],G5.prototype,"hideBorder",void 0);
_.E([_.Ec({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],G5);_.W(G5,"yt-live-chat-engagement-panel-input-renderer",function(){return Bxd()},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var Nxn,stn;Nxn=_.K6(115994);stn=_.K6(115993);_.BH=function(A,Q,b){var f=this;var a=b.dragDownAction;this.layer=0;this.JSC$22364_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$22364_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var T=_.IP();_.K2(T,Nxn,this.layer);_.K2(T,stn,this.layer);this.dragDownAction=function(){a();_.NM(T,{visualElement:f.fullscreen?Nxn:stn})};
this.gesture=new _.Pq(A,Q,this.JSC$22364_watchConfig,"pandown");this.attach()};
_.BH.prototype.attach=function(){this.gesture.attach()};
_.BH.prototype.detach=function(){this.gesture.detach()};
_.BH.prototype.update=function(A){this.fullscreen=A;this.gesture.config=A?this.JSC$22364_watchFullScreenConfig:this.JSC$22364_watchConfig};var mN$={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(A){if(A&&A.length==1&&Array.isArray(A[0].loggingUrls)){A=_.j2.unsafeClone(A[0]);var Q=this.macros||{},b=this.getAdModuleClient_();if(!b)return _.Ul();A.loggingUrls.forEach(function(f){if(f.baseUrl){var a=f.baseUrl;var T=Q;T=T===void 0?{}:T;a=b.getOptions().includes("replaceUrlMacros")?_.$UN(b,"replaceUrlMacros",{url:a,additionalMapping:T}):a;f.baseUrl=a}},this);
A=[A]}return _.X5(this.hostElement,A)},
getAdModuleClient_:function(){var A=_.BL(this);return A?(A=A.getPlayer())?new _.gq(A):null:null}}]};var Asd;var pL=function(){var A=_.q.apply(this,arguments)||this;A.isCollapsed=!1;A.modernPanels=_.K("kevlar_watch_modern_panels");A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return A};
_.O(pL,_.q);_.d=pL.prototype;_.d.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.onDonateTap=function(){var A=this.get("data.donateButton.buttonRenderer.command");if(A){var Q=_.WR(),b=this.get("data.donateButton.buttonRenderer.trackingParams");Q&&b&&_.$_(Q,_.t8(b));this.ytOpenPopupBehavior.openPopup(A)}};
_.d.onShowMore=function(){this.isCollapsed=!1;var A=_.WR(),Q=this.get("data.expandButton.buttonRenderer.trackingParams");A&&Q&&_.$_(A,_.t8(Q))};
_.d.onShowLess=function(){this.isCollapsed=!0};
_.d.dataChanged=function(){_.Uc(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.d.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.handleUpdate=function(A){if(A=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",A))this.set("data.startLabel",A.startLabel),this.set("data.endLabel",A.endLabel),this.set("data.progress",A.progress),this.set("data.amountRaisedLabel",A.amountRaisedLabel),this.dataChanged()};
_.d.handleOpenPopupAction=function(A){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",A)&&_.pD(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.d.computeHeaderBackgroundUrl=function(A,Q){if(A)return Q?A.headerBackgroundDarkUrl:A.headerBackgroundUrl};
_.d.isProgressBarVisible=function(A){return!(!A||A.progress===void 0)};
_.d.headerBackgroundClass=function(){return _.vG("HTML_DIR")==="rtl"?"flip":""};
pL.prototype.dataChanged=pL.prototype.dataChanged;_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],pL.prototype,"ytOpenPopupBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],pL.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],pL.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],pL.prototype,"isCollapsed",void 0);_.E([_.C({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.c("design:type",String)],pL.prototype,"headerBackgroundUrl",void 0);_.E([_.C(),_.c("design:type",Boolean)],pL.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pL.prototype,"modernPanels",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pL.prototype,"dataChanged",null);_.E([_.h({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],pL);
_.W(pL,"ytd-donation-shelf-renderer",function(){if(Asd!==void 0)return Asd;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Asd=A},{mode:1});var QTc;var bpx=function(){return _.q.apply(this,arguments)||this};
_.O(bpx,_.q);_.E([_.C(),_.c("design:type",Object)],bpx.prototype,"data",void 0);_.E([_.h({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],bpx);
_.W(bpx,"ytd-donation-unavailable-renderer",function(){if(QTc!==void 0)return QTc;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return QTc=A},{mode:1});var fin;var PH=function(){return _.q.apply(this,arguments)||this};
_.O(PH,_.q);PH.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],PH.prototype,"data",void 0);_.E([_.h({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],PH);
_.W(PH,"ytd-limited-state-message-renderer",function(){if(fin!==void 0)return fin;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return fin=A},{mode:1});var aix;var X9=function(){return _.q.apply(this,arguments)||this};
_.O(X9,_.q);X9.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
X9.prototype.onTap=function(A){var Q=this.data&&this.data.endpoint;Q&&!_.TG(_.mW(A),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Bn(this.hostElement,"yt-navigate",{endpoint:Q})};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],X9.prototype,"data",void 0);_.E([_.h({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],X9);
_.W(X9,"ytd-autotagging-metadata-renderer",function(){if(aix!==void 0)return aix;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return aix=A},{mode:1});var T$Y;var Ss=function(){return _.q.apply(this,arguments)||this};
_.O(Ss,_.q);Ss.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ss.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ss.prototype,"data",void 0);_.E([_.h({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Ss);
_.W(Ss,"ytd-autotagging-metadata-row-renderer",function(){if(T$Y!==void 0)return T$Y;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return T$Y=A},{mode:1});var dsV;var Fwd;var Ue=function(){var A=_.q.apply(this,arguments)||this;A.engagementPanelContent=!1;return A};
_.O(Ue,_.q);Ue.prototype.computeHasDividerLine=function(A,Q){return A&&!Q};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ue.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.c("design:type",Boolean)],Ue.prototype,"hasDividerLine",void 0);_.E([_.C(),_.c("design:type",Object)],Ue.prototype,"engagementPanelContent",void 0);
_.E([_.h({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Ue);
_.W(Ue,"ytd-metadata-row-header-renderer",function(){if(Fwd!==void 0)return Fwd;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Fwd=A},{mode:1});var GYi;var LL=function(){return _.q.apply(this,arguments)||this};
_.O(LL,_.q);LL.prototype.computeHasDividerLine=function(A){return A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],LL.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.c("design:type",Boolean)],LL.prototype,"hasDividerLine",void 0);_.E([_.h({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],LL);
_.W(LL,"ytd-metadata-row-renderer",function(){if(GYi!==void 0)return GYi;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return GYi=A},{mode:1});var B$n;var Mp=function(){return _.q.apply(this,arguments)||this};
_.O(Mp,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Mp.prototype,"data",void 0);_.E([_.h({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Mp);
_.W(Mp,"ytd-metadata-with-image-row-renderer",function(){if(B$n!==void 0)return B$n;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return B$n=A},{mode:1});var php;var lQ=function(){var A=_.q.apply(this,arguments)||this;A.rounded=!0;A.fixie=!1;A.fullWidth=!1;return A};
_.O(lQ,_.q);_.d=lQ.prototype;_.d.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.onDataChanged=function(){var A=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(Q){A.onEndpointLinkKeyPress(Q)}))};
_.d.onEndpointLinkKeyPress=function(A){A.target===this.endpointLink&&A.keyCode===13&&_.Bn(this.hostElement,"click")};
_.d.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var A;if((A=this.data)==null?0:A.endpoint)_.ST(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.d.onYtNavigate=function(A){this.endpointHref||(A.stopPropagation(),A.preventDefault())};
_.d.onInformationButtonContainerClick=function(A){A.target.id!=="information-button-container"&&(A.stopPropagation(),A.preventDefault())};
_.d.computeStyle=function(A){return A};
_.d.computeIsThumbnailStyle=function(A){return A==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.d.computeThumbnailWidth=function(A){switch(A){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}};
_.d.computeThumbnailObjectFit=function(A){switch(A){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Qr.Object.defineProperties(lQ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
lQ.prototype.onYtNavigate=lQ.prototype.onYtNavigate;lQ.prototype.onClick=lQ.prototype.onClick;lQ.prototype.onDataChanged=lQ.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],lQ.prototype,"componentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],lQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.c("design:type",String)],lQ.prototype,"componentStyle",void 0);_.E([_.C({computed:"computeIsThumbnailStyle(data.style)"}),_.c("design:type",Boolean)],lQ.prototype,"isThumbnailStyle",void 0);_.E([_.C({computed:"computeThumbnailObjectFit(data.style)"}),_.c("design:type",String)],lQ.prototype,"thumbnailObjectFit",void 0);
_.E([_.C({computed:"computeThumbnailWidth(data.style)"}),_.c("design:type",Number)],lQ.prototype,"thumbnailWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],lQ.prototype,"rounded",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],lQ.prototype,"fixie",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],lQ.prototype,"fullWidth",void 0);_.E([_.V1("#endpoint-link"),_.c("design:type",HTMLAnchorElement)],lQ.prototype,"endpointLink",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lQ.prototype,"onDataChanged",null);_.E([_.H("data.endpoint"),_.c("design:type",Object),_.c("design:paramtypes",[])],lQ.prototype,"endpointHref",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],lQ.prototype,"onClick",null);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],lQ.prototype,"onYtNavigate",null);_.E([_.h({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],lQ);
_.W(lQ,"ytd-rich-metadata-renderer",function(){if(php!==void 0)return php;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return php=A},{mode:_.UG("kevlar_poly_si_batch_j075")?1:2});var Pni;var KL=function(){var A=_.q.apply(this,arguments)||this;A.fixie=!1;A.fullWidth=!1;return A};
_.O(KL,_.q);KL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
KL.prototype.computeHasDividerLine=function(A){return A};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],KL.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.c("design:type",Boolean)],KL.prototype,"hasDividerLine",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],KL.prototype,"fixie",void 0);_.E([_.C(),_.c("design:type",Object)],KL.prototype,"fullWidth",void 0);
_.E([_.h({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],KL);
_.W(KL,"ytd-rich-metadata-row-renderer",function(){if(Pni!==void 0)return Pni;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Pni=A},{mode:1});var iQ=function(){var A=_.q.apply(this,arguments)||this;A.engagementPanelContent=!1;A.fixie=!1;A.fullWidth=!1;return A};
_.O(iQ,_.q);
iQ.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"}}}};
iQ.prototype.computeCollapsibleItems=function(A,Q,b){return A===void 0||Q===void 0||b===void 0||b?[]:A.slice(Q)};
iQ.prototype.computeAlwaysShownItems=function(A,Q){return A&&A.length?A.slice(0,Q):[]};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iQ.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],iQ.prototype,"collapsed",void 0);
_.E([_.C({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.c("design:type",Array)],iQ.prototype,"alwaysShownItems",void 0);_.E([_.C({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.c("design:type",Array)],iQ.prototype,"collapsibleItems",void 0);_.E([_.C(),_.c("design:type",Object)],iQ.prototype,"engagementPanelContent",void 0);_.E([_.C(),_.c("design:type",Object)],iQ.prototype,"fixie",void 0);
_.E([_.C(),_.c("design:type",Object)],iQ.prototype,"fullWidth",void 0);_.E([_.h({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],iQ);
_.W(iQ,"ytd-metadata-row-container-renderer",function(){if(dsV!==void 0)return dsV;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return dsV=A},{mode:1});var Xhw;var JU=function(){var A=_.q.apply(this,arguments)||this;A.currentPageUrl="";A.baseUrl="";A.isHiddenByUser=null;A.hidden=!1;A.showAboveScrim=!1;A.watchNextGrid=_.K("kevlar_watch_grid");A.modernButtons=_.K("web_modern_buttons");A.roundedContainer=!0;A.noBorder=!1;A.roundBackground=!_.K("live_chat_round_background_killswitch");A.overflowHideChat=_.K("live_chat_overflow_hide_chat");A.forceDarkTheme=!1;A.theaterWatchWhile=!1;A.isListeningForPlayerProgress=!1;A.JSC$22400_playerEvents=new Map;A.isFrameReady=
!1;A.player=null;A.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 A};
_.O(JU,_.q);_.d=JU.prototype;_.d.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Pn(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.d.created=function(){var A=this;this.handleIframeEventListener=function(Q){A.handleIframeEvent(Q)};
this.handleKeyboardEventListener=function(Q){A.handleKeyboardEvent(Q)};
this.JSC$22400_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22400_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22400_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22400_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22400_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.d.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()};
_.d.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};
_.d.computeBaseUrl=function(A){var Q="/live_chat";this.isChatReplay()&&(Q="/live_chat_replay");return _.Gf(_.Fh(_.dd(_.co(A),Q),null),"").toString()};
_.d.dataChanged=function(){_.K("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.d.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var A=this.url;if(this.isChatReplay()&&this.player){var Q=Math.floor(this.player.getProgressState().current*1E3);A=_.wv(_.co(A),"playerOffsetMs",Q.toString()).toString()}Q=this.chatframe;try{var b=A==="about:blank"?_.lU9:_.hs(A),f=Q.contentDocument.location,a=_.x8(b);a!==void 0&&f.replace(a)}catch(T){Q.src=A}}};
_.d.collapsedChanged=function(){_.Bn(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.d.handleIframeEvent=function(A){if(A&&this.baseUrl.startsWith(A.origin)&&A.source===this.chatframe.contentWindow&&_.ZU(A.data))if(A.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(A);else if(A.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(A.data["yt-show-feedback-dialog"]){var Q=_.fJ().resolve(_.bu(_.$pY));if(Q){var b=A.ports,f;b&&b.length&&(f=function(){b[0].postMessage({})});
A=A.data["yt-show-feedback-dialog"];Q.showFeedbackDialog(A.customProductData,A.feedbackContent,f,A.bucket)}}else if(A.data["yt-show-survey"])_.Bn(this.hostElement,"yt-show-survey",A.data["yt-show-survey"]);else if(A.data["yt-purchase-membership"])_.fJ().resolve(_.de).resolveCommand(A.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(A.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(A.data["yt-tunnel-out-live-service-request"]);else if(A.data["yt-user-activity"])_.a4();
else if(A.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(A.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(A.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(A.data["yt-open-popup"]);else if(A.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(A.data["yt-log-flow-logging-event-command"]);else if(A.data["yt-hide-live-chat"])this.onShowHideChat();else A.data["yt-report-moderation-state-log"]&&
this.player&&(Q={cpn:this.player.getVideoData().cpn},_.R4("liveChatBeingModerated",Q))};
_.d.attachLiveChatResponseVeTrackingParams=function(A){A=_.t8(A);var Q=_.WR(),b=_.zV("liveChatRenderer.trackingParams",this.data);Q&&b&&_.ui(Q,_.t8(b),A)};
_.d.handleBuyflowMessages=function(A){var Q=A.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,b=A.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,f=A.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.zey(_.Tb(_.sY),Q.replace(/-/g,"+").replace(/_/g,"/"),function(a){A.ports[0].postMessage({success:!0,buyFlowResponse:a})},void 0,function(a){A.ports[0].postMessage({success:!1,
error:a&&a.message||"Buyflow rejected without error."})},_.nD().get("hl"),void 0,function(){A.ports[0].postMessage({closed:!0})},b,f)};
_.d.setupPlayerProgressRelay=function(){var A=this;if(!this.isListeningForPlayerProgress){var Q=_.p6();Q!=null&&Q.getPlayerPromise&&(Q.getPlayerPromise().then(function(b){A.playerApiReady(b)}),this.isListeningForPlayerProgress=!0)}};
_.d.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.d.playerApiReady=function(A){this.setPlayer(A)};
_.d.playerProgressHandler=function(){if(this.player){var A=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":A.current})}};
_.d.playerAdStartHandler=function(A){this.postToContentWindow({"yt-player-ad-start":A})};
_.d.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.d.playerStateChangeHandler=function(A){this.postToContentWindow({"yt-player-state-change":A})};
_.d.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22400_playerEvents);A&&(this.player=A,this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$22400_playerEvents),_.Bn(this.hostElement,"player-api-ready"))};
_.d.liveChatPageUrl=function(A,Q,b,f){return!b||Q?"about:blank":b.liveChatRenderer?(Q=_.co(this.currentPageUrl).JSC$9973_queryData_,uiV(Q),A=_.co(A),Q.add("continuation",b.liveChatRenderer.continuations[0].reloadContinuationData.continuation),b=_.jL()==="USER_INTERFACE_THEME_DARK",(f||b)&&Q.add("dark_theme","true"),_.Fh(A,Q),f=_.co(A.toString()),b=f.JSC$9973_queryData_,"SESSION_INDEX"in _.gN&&(b.add("authuser",_.vG("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.gN&&b.add("pageId",_.vG("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.gN&&b.add("sdc",_.vG("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),f.toString()):""};
_.d.isCollapsed=function(A,Q){return Q!==null?Q:this.isChatReplay()||A&&A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!0:A?A.liveChatRenderer?A.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.K("live_chat_hide_premiere_replay_message")||A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.d.isHidden=function(A,Q,b){var f=Q&&Q.conversationBarRenderer&&Q.conversationBarRenderer.availabilityMessage,a=Q&&Q.liveChatRenderer&&Q.liveChatRenderer.showHideButton,T=Q&&Q.liveChatRenderer&&Q.liveChatRenderer.showButton;return b&&A&&!f&&!T||!b&&A&&!f&&!a?!0:Q&&Q.liveChatRenderer&&Q.liveChatRenderer.initialDisplayState?Q.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.d.computeButtonOverride=function(A,Q){if(A&&Q)return{type:"outline"}};
_.d.setCollapsedState=function(A){_.V(A,_.rVL)&&(this.isHiddenByUser=!!_.V(A,_.rVL).collapsed,!this.isHiddenByUser&&_.K("enable_teaser_framework_web_client")&&_.pD(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.d.forwardReduxActionToIframe=function(A){this.postToContentWindow({"yt-live-chat-forward-redux-action":A})};
_.d.onLoopRangeChange=function(A){this.showAboveScrim=!(A==null||!A.postId)};
_.d.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.d.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.d.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.d.sendDarkThemePostMessage=function(A){this.postToContentWindow({"yt-live-chat-set-dark-theme":A})};
_.d.onLiveChatBuyFlowCallback=function(A){this.postToContentWindow({"yt-live-chat-buy-flow-callback":A})};
_.d.handleKeyboardEvent=function(A){(0,_.j2.containsValue)(wMw,A.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:A.type,keyCode:A.keyCode}})};
_.d.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.d.postToContentWindow=function(A){if(this.isFrameReady)try{var Q=window.location.protocol+"//"+window.location.host,b;(b=this.chatframe)!=null&&b.contentWindow?this.chatframe.contentWindow.postMessage(A,Q):_.Wv(new _.IO("Tried posting a message to an iframe with no content window",A))}catch(f){_.en(f)}};
_.d.shouldHideChatFrame=function(A){return A&&_.K("hide_live_chat_button_when_collapsed")};
_.Qr.Object.defineProperties(JU.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.K("live_chat_overflow_hide_chat")||_.K("web_watch_chat_hide_button_killswitch"))return _.K("live_chat_overflow_hide_chat");var A,Q,b,f;return!!((A=this.data)==null?0:(Q=A.liveChatRenderer)==null?0:(b=Q.header)==null?0:(f=b.liveChatHeaderRenderer)==null?0:f.collapseButton)}}});
JU.prototype.collapsedChanged=JU.prototype.collapsedChanged;JU.prototype.urlChanged=JU.prototype.urlChanged;JU.prototype.dataChanged=JU.prototype.dataChanged;JU.prototype.onShowHideChat=JU.prototype.onShowHideChat;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],JU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],JU.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],JU.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],JU.prototype,"ytOpenPopupBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JU.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],JU.prototype,"currentPageUrl",void 0);
_.E([_.C({computed:"computeBaseUrl(currentPageUrl,data)"}),_.c("design:type",Object)],JU.prototype,"baseUrl",void 0);_.E([_.C({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.c("design:type",String)],JU.prototype,"url",void 0);_.E([_.C(),_.c("design:type",Object)],JU.prototype,"isHiddenByUser",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.c("design:type",Object)],JU.prototype,"hidden",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.c("design:type",Boolean)],JU.prototype,"collapsed",void 0);_.E([_.C({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.c("design:type",Boolean)],JU.prototype,"hideChatFrame",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JU.prototype,"showAboveScrim",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JU.prototype,"watchNextGrid",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],JU.prototype,"modernButtons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JU.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JU.prototype,"noBorder",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],JU.prototype,"roundBackground",void 0);
_.E([_.C({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.c("design:type",Object)],JU.prototype,"toggleButtonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],JU.prototype,"overflowHideChat",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JU.prototype,"forceDarkTheme",void 0);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],JU.prototype,"enableShowWithoutHideChatButton",null);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],JU.prototype,"theaterWatchWhile",void 0);_.E([_.V1("#chatframe"),_.c("design:type",HTMLIFrameElement)],JU.prototype,"chatframe",void 0);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JU.prototype,"onShowHideChat",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JU.prototype,"dataChanged",null);
_.E([_.iN("url"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JU.prototype,"urlChanged",null);_.E([_.iN("collapsed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JU.prototype,"collapsedChanged",null);_.E([_.h({is:"ytd-live-chat-frame",disableElementRegistration:!0})],JU);
_.W(JU,"ytd-live-chat-frame",function(){if(Xhw!==void 0)return Xhw;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Xhw=A},{mode:1});var S$c;var Vz=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};return A};
_.O(Vz,_.q);Vz.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=_.zx(this.data.backgroundColor)))};
Vz.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var A=this.getFormattedStringLoggingDirectives(this.data.headline);A&&this.rendererBehavior.logExplicitClick(A)}};
Vz.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var A=this.getFormattedStringLoggingDirectives(this.data.description);A&&this.rendererBehavior.logExplicitClick(A)}};
Vz.prototype.getFormattedStringLoggingDirectives=function(A){return A&&A.runs&&A.runs.length>0&&A.runs[0]&&A.runs[0].loggingDirectives?A.runs[0].loggingDirectives:null};
Vz.prototype.dataChanged=Vz.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Vz.prototype,"rendererBehavior",void 0);_.E([_.I(mN$.YtMacroReplacementBehavior),_.c("design:type",Object)],Vz.prototype,"macroReplacementBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Vz.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Vz.prototype,"navigationEndpoint",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Vz.prototype,"enableColors",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Vz.prototype,"modern",void 0);_.E([_.C(),_.c("design:type",Object)],Vz.prototype,"buttonOverrides",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vz.prototype,"dataChanged",null);_.E([_.h({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Vz);
_.W(Vz,"ytd-action-basic-immersive-content-renderer",function(){if(S$c!==void 0)return S$c;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return S$c=A},{mode:1});var Usw;var Lwh;var Oe=function(){return _.q.apply(this,arguments)||this};
_.O(Oe,_.q);Oe.prototype.dataChanged=function(){var A;((A=this.data)==null?void 0:A.backgroundColor)!==void 0&&_.Uc(this.hostElement,{"--bgu-color":_.zx(this.data.backgroundColor)})};
Oe.prototype.onImageTileClick=function(){var A;((A=this.data)==null?0:A.navigationEndpoint)&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var Q;((Q=this.data)==null?0:Q.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Qr.Object.defineProperties(Oe.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?void 0:A.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 A;return((A=this.data)==null?void 0:A.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;if(((A=this.data)==null?void 0:(Q=A.detailsLine)==null?void 0:Q.texts)!=null&&((b=this.data)==null?void 0:b.detailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.detailsLine.texts.map(function(a){return a.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;if(((A=this.data)==null?void 0:(Q=A.optionalDetailsLine)==null?void 0:Q.texts)!=null&&((b=this.data)==null?void 0:b.optionalDetailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.optionalDetailsLine.texts.map(function(a){return a.text}).join("")}return null}}});
Oe.prototype.dataChanged=Oe.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Oe.prototype,"rendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Oe.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Oe.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.backgroundColor"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Oe.prototype,"hasBackgroundColor",null);
_.E([_.H("data.objectFit"),_.c("design:type",Object),_.c("design:paramtypes",[])],Oe.prototype,"getObjectFit",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.tileRenderingStyle"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Oe.prototype,"hasTileMetadata",null);_.E([_.H("data.detailsLine"),_.c("design:type",Object),_.c("design:paramtypes",[])],Oe.prototype,"getSecondaryDetails",null);
_.E([_.H("data.optionalDetailsLine"),_.c("design:type",Object),_.c("design:paramtypes",[])],Oe.prototype,"getOptionalDetails",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Oe.prototype,"dataChanged",null);_.E([_.h({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Oe);
_.W(Oe,"ytd-image-tile-renderer",function(){if(Lwh!==void 0)return Lwh;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Lwh=A},{mode:1});var MdV;var nL=function(){return _.q.apply(this,arguments)||this};
_.O(nL,_.q);nL.prototype.getOpenLinkIcon=function(){return _.K("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
nL.prototype.onSitelinkTap=function(){_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.K("kevlar_command_handler_migration_killswitch"))_.ST(this.hostElement,this.data.clickCommands,this.hostElement);else for(var A=_.F(this.data.clickCommands),Q=A.next();!Q.done;Q=A.next())this.ytComponentBehavior.resolveCommand(Q.value)};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],nL.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nL.prototype,"rendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],nL.prototype,"data",void 0);_.E([_.h({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],nL);
_.W(nL,"ytd-sitelink-renderer",function(){if(MdV!==void 0)return MdV;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return MdV=A},{mode:1});var kM=function(){var A=_.q.apply(this,arguments)||this;A.paddingFix=_.K("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.O(kM,_.q);kM.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"}}}};
kM.prototype.dataChanged=function(){var A=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;A.ytMacroReplacementBehavior.sendServiceRequestAction([Q])})};
kM.prototype.shouldHideFooter=function(A){return!(A&&_.K("use_ads_engagement_panel_desktop_footer_cta"))};
_.Qr.Object.defineProperties(kM.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((Q=this.data)==null?void 0:Q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(b){var f;return(f=_.V(b,$fs))==null?void 0:f.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((Q=this.data)==null?void 0:Q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(b){var f;return((f=_.V(b,$fs))==null?void 0:f.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
kM.prototype.dataChanged=kM.prototype.dataChanged;_.E([_.I(mN$.YtMacroReplacementBehavior),_.c("design:type",Object)],kM.prototype,"ytMacroReplacementBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kM.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],kM.prototype,"paddingFix",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.imageTileRenderers"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],kM.prototype,"removeBorderFromImageTiles",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.imageTileRenderers"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],kM.prototype,"useFooteredMetadataRenderingStyle",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kM.prototype,"dataChanged",null);_.E([_.h({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],kM);
_.W(kM,"ytd-action-engagement-panel-content-renderer",function(){if(Usw!==void 0)return Usw;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Usw=A},{mode:1});var lih;var Kw$=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;return _.X("ad-grid-card-image-full-metadata-view-model",{class:function(){var f;return((f=Q().interaction)==null?0:f.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},b)),
"aria-label":function(){var f,a;return(f=Q().interaction)==null?void 0:(a=f.accessibility)==null?void 0:a.label}},_.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.X(_.WL,{data:function(){return Q().adImage}},{adImageViewModel:function(f){return _.X(_.nB,{data:f.data,
customCommandResolver:b})}})),_.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.X(_.S,{cond:function(){return Q().headline},
then:function(f){return _.X(_.Rb,{text:f,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.X(_.S,{cond:function(){return Q().detailsLine},
then:function(f){return _.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.X(_.WL,{data:f},{adDetailsLineViewModel:function(a){return _.X(_.lH,{data:a.data,customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.X(_.S,{cond:function(){return Q().secondaryDetailsLine},
then:function(f){return _.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.X(_.WL,{data:f},{adDetailsLineViewModel:function(a){return _.X(_.lH,{data:a.data,customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Fj");var ip$=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;return _.X("ad-grid-card-image-view-model",{class:function(){var f;return((f=Q().interaction)==null?0:f.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},b)),
"aria-label":function(){var f,a;return(f=Q().interaction)==null?void 0:(a=f.accessibility)==null?void 0:a.label}},_.X(_.WL,{data:function(){return Q().adImage}},{adImageViewModel:function(f){return _.X(_.nB,{data:f.data,
customCommandResolver:b})}}),_.X("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.X(_.WL,{data:function(){return Q().adCardBadge}},{adCardBadgeViewModel:_.ihy})))},"Gj");var JsV=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;return _.X("ad-grid-card-text-view-model",{class:function(){var f;return((f=Q().interaction)==null?0:f.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},b)),
"aria-label":function(){var f,a;return(f=Q().interaction)==null?void 0:(a=f.accessibility)==null?void 0:a.label}},_.X("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.X(_.S,{cond:function(){return Q().title},
then:function(f){return _.X(_.Rb,{text:f,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.X("div",{class:function(){return _.K("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.X(_.Op,{each:function(){var f;
return((f=Q())==null?void 0:f.descriptions)||[]},
keyBy:"INDEX"},function(f){return _.X(_.Rb,{text:f,className:function(){return _.K("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.X("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.X(_.WL,{data:function(){return Q().moreInfoButton}},{adButtonViewModel:function(f){return _.X(_.BK,{data:f.data,
customCommandResolver:b})}})))},"Hj");var Vdp=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;var f=A.adGridCardCollectionStyle;return _.X("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(a){var T,G=(T=Q().interaction)==null?void 0:T.onFirstVisible;a&&G&&_.D3(G)},
showOption:_.Fb})),style:function(){return"grid-template-columns: repeat("+BWV(f?f():Q().style)+", minmax(0, 1fr));"}},_.X(_.WL,{data:function(){var a;
return(a=Q())==null?void 0:a.gridCards}},{adGridCardImageViewModel:function(a){return _.X(ip$,{data:a.data,
customCommandResolver:b})},
adGridCardImageFullMetadataViewModel:function(a){return _.X(Kw$,{data:a.data,customCommandResolver:b})},
adGridCardTextViewModel:function(a){return _.X(JsV,{data:a.data,customCommandResolver:b})}}))},"Ij");_.pE(_.aP(function(A){var Q=A.data;return _.X("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.d_(_.T9({visibilityCallback:function(b){var f,a=(f=Q().interaction)==null?void 0:f.onFirstVisible;b&&a&&_.D3(a)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},ped))},_.X("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.X(_.S,{cond:_.Jwf("(min-width: "+((0,_.NG)()+_.hJ)+"px)"),
then:function(){return _.X(_.WL,{data:function(){return Q().adGridCardCollection}},{adGridCardCollectionViewModel:function(b){return _.X(Vdp,{data:b.data,
customCommandResolver:ped})}})},
else:function(){return _.X(_.WL,{data:function(){return Q().adGridCardCollection}},{adGridCardCollectionViewModel:function(b){return _.X(Vdp,{data:b.data,
customCommandResolver:ped,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.X("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.X(_.WL,{data:function(){return Q().adButton}},{adButtonViewModel:function(b){return _.X(_.BK,{data:b.data,
customCommandResolver:ped})}})))},"Jj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;return _.X("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.d_(_.T9({visibilityCallback:function(b){var f,a=(f=Q().interaction)==null?void 0:f.onFirstVisible;b&&a&&_.D3(a)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},PyT))},_.X("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.X(_.WL,{data:function(){if(_.Jwf("(min-width: "+((0,_.NG)()+_.hJ)+"px)")())var b=Q().adGridCardCollection;
else{b=Object.assign({},_.V(Q().adGridCardCollection,NWc));var f;b.gridCards!==void 0&&((f=b.gridCards)==null?void 0:f.length)>1?b.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":b.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";b={adGridCardCollectionViewModel:b}}return b}},{adGridCardCollectionViewModel:function(b){return _.X(Vdp,{data:b.data,
customCommandResolver:PyT})}})),_.X("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.X(_.WL,{data:function(){return Q().adButton}},{adButtonViewModel:function(b){return _.X(_.BK,{data:b.data,
customCommandResolver:PyT})}})))},"Kj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Qf}});var IC=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return A};
_.O(IC,_.q);_.d=IC.prototype;_.d.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"}}}};
_.d.attached=function(){this.getDataFromPlayerAndRender()};
_.d.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.d.getDataFromPlayerAndRender=function(){var A=this,Q=_.BL(this.hostElement);Q&&Q.getPlayerPromise().then(function(b){A.getCachedDataAndListen(b)})};
_.d.getCachedDataAndListen=function(A){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=A)};
_.d.resolveCachedActions=function(){var A=_.zV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(A=A&&A())&&!_.j2.isEmpty(A)&&this.sendUpdateEngagementPanelAction(A);(A=(A=_.zV("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&A())&&!_.j2.isEmpty(A)&&this.sendChangeEngagementPanelVisibilityAction(A);(A=(A=_.zV("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&A())&&!_.j2.isEmpty(A)&&this.sendScrollToEngagementPanelCommand(A)};
_.d.sendUpdateEngagementPanelAction=function(A){var Q;_.pD(this.hostElement,"yt-update-engagement-panel-action",[(Q=_.j2.get(A,"action"))!=null?Q:A])};
_.d.sendChangeEngagementPanelVisibilityAction=function(A){_.pD(this.hostElement,"yt-change-engagement-panel-visibility-action",[A])};
_.d.sendScrollToEngagementPanelCommand=function(A){_.pD(this.hostElement,"yt-scroll-to-engagement-panel-command",[A])};
_.d.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.K("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Wv(Error("wo"))};
IC.prototype.dataChanged=IC.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],IC.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],IC.prototype,"componentBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],IC.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],IC.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],IC.prototype,"player",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],IC.prototype,"dataChanged",null);_.E([_.h({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],IC);
_.W(IC,"ytd-ads-engagement-panel-content-renderer",function(){if(lih!==void 0)return lih;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return lih=A},{mode:1});var Ops;var HH=function(){var A=_.q.apply(this,arguments)||this;A.player=null;A.JSC$22437_playerEvents=new Map;A.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return A};
_.O(HH,_.q);_.d=HH.prototype;_.d.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]]"}}}}}};
_.d.created=function(){this.player=null;this.JSC$22437_playerEvents=new Map;this.JSC$22437_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22437_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22437_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22437_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.d.attached=function(){var A=this,Q=_.BL();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));Q&&Q.getPlayerPromise().then(function(b){A.setPlayer(b);A.set("isPageLoad",!1)})};
_.d.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22437_playerEvents);this.set("player",A);A&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$22437_playerEvents),A.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.d.onLoopRangeChange=function(A){var Q=_.fJ().resolve(_.bu(_.F7));if((!Q||Q.isOnWatch())&&this.hostElement.clientHeight){var b;!A&&((b=this.data)==null?0:b.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.d.onVideoProgress=function(A){var Q,b,f=((Q=this.player)==null?void 0:(b=Q.getPresentingPlayerType)==null?void 0:b.call(Q))===2;this.isAdPlaying!==f&&this.set("isAdPlaying",f);var a;if(!f&&(a=this.player)!=null&&a.getLoopRange()){b=this.player.getLoopRange();Q=b.startTimeMs;b=b.endTimeMs;f=this.player.getProgressState(1).seekableStart;var T;Q<f*1E3&&((T=this.data)==null?0:T.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
A=b<A*1E3;var G;((G=this.player)==null?0:G.getLoopRange())&&A&&this.player.seekTo(Q/1E3)}};
_.d.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.d.onYtDeleteClipEngagementPanelCommand=function(A){_.V(A,XMs).command&&this.ytComponentBehavior.resolveCommand(_.V(A,XMs).command)};
_.Qr.Object.defineProperties(HH.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.sr("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],HH.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],HH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],HH.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],HH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],HH.prototype,"isAdPlaying",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],HH.prototype,"isPageLoad",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],HH.prototype,"isDarkTheme",void 0);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],HH.prototype,"voteCount",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],HH.prototype,"channelEndpoint",null);_.E([_.H("channelEndpoint"),_.c("design:type",Object),_.c("design:paramtypes",[])],HH.prototype,"channelHref",null);_.E([_.h({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],HH);
_.W(HH,"ytd-clip-attribution-renderer",function(){if(Ops!==void 0)return Ops;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Ops=A},{mode:1});var n88;var CL=function(){var A=_.q.apply(this,arguments)||this;A.player=null;A.JSC$22442_playerEvents=new Map;return A};
_.O(CL,_.q);_.d=CL.prototype;_.d.created=function(){this.player=null;this.JSC$22442_playerEvents=new Map;this.JSC$22442_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22442_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22442_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.d.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.d.attached=function(){var A=this,Q=_.BL();Q&&Q.getPlayerPromise().then(function(b){A.setPlayer(b);A.set("isPageLoad",!1)})};
_.d.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22442_playerEvents);this.set("player",A);if(A){this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$22442_playerEvents);var Q;(A==null?void 0:(Q=A.getPresentingPlayerType)==null?void 0:Q.call(A))===2&&this.playerAdStartHandler()}};
_.d.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.d.onVideoProgress=function(){var A,Q,b=((A=this.player)==null?void 0:(Q=A.getPresentingPlayerType)==null?void 0:Q.call(A))===2;this.isAdPlaying!==b&&this.set("isAdPlaying",b)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],CL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],CL.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],CL.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],CL.prototype,"isAdPlaying",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],CL.prototype,"isPageLoad",void 0);_.E([_.h({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],CL);
_.W(CL,"ytd-clip-section-footer-renderer",function(){if(n88!==void 0)return n88;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return n88=A},{mode:1});var kYV;var IiY;var qp=function(){return _.q.apply(this,arguments)||this};
_.O(qp,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qp.prototype,"data",void 0);_.E([_.h({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],qp);
_.W(qp,"ytd-clip-ad-state-renderer",function(){if(IiY!==void 0)return IiY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return IiY=A},{mode:1});var Hps;var oC=function(){var A=_.q.apply(this,arguments)||this;A.value="";A.valid=!1;A.userChangedValue=!1;A.disabled=!1;A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return A};
_.O(oC,_.q);_.d=oC.prototype;_.d.detached=function(){this.userChangedValue=!1};
_.d.handleKeyDown=function(A){if(_.U2)var Q=13;else _.nSW&&_.Le?Q=13:Q=13;A.keyCode===Q&&A.preventDefault()};
_.d.handleInput=function(){var A=_.Bj(this.hostElement).querySelector("#title");if(A){var Q=(A.value||"").replace(/\r|\n/g," ");this.set("value",Q);A.value=Q;this.valid=A.validate();this.userChangedValue=!0}};
_.d.handleBlur=function(){this.valid=_.Bj(this.hostElement).querySelector("#title").validate()};
_.d.onValueChanged=function(){_.Bn(this.hostElement,"title-changed",{title:this.value})};
_.d.onValidChanged=function(){_.Bn(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.d.setInput=function(A,Q){var b=_.Bj(this.hostElement).querySelector("#title");b&&(b.value=A,this.handleInput(),Q&&(b.invalid=!1,this.valid=!0))};
_.d.onClipCreationDisable=function(){this.set("disabled",!0)};
_.d.onClipCreationEnable=function(){this.set("disabled",!1)};
_.d.onClipCreationVisibilityChange=function(A){var Q=this;A.visible?requestAnimationFrame(function(){var b;((b=_.Bj(Q.hostElement).querySelector("#title"))==null?void 0:b.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
oC.prototype.onValidChanged=oC.prototype.onValidChanged;oC.prototype.onValueChanged=oC.prototype.onValueChanged;oC.prototype.handleBlur=oC.prototype.handleBlur;oC.prototype.handleInput=oC.prototype.handleInput;oC.prototype.handleKeyDown=oC.prototype.handleKeyDown;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],oC.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],oC.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],oC.prototype,"value",void 0);_.E([_.C(),_.c("design:type",Object)],oC.prototype,"valid",void 0);_.E([_.C(),_.c("design:type",Object)],oC.prototype,"userChangedValue",void 0);_.E([_.C(),_.c("design:type",Object)],oC.prototype,"disabled",void 0);_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent]),_.c("design:returntype")],oC.prototype,"handleKeyDown",null);
_.E([_.Kc("input"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oC.prototype,"handleInput",null);_.E([_.Kc("blur"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oC.prototype,"handleBlur",null);_.E([_.iN("value"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oC.prototype,"onValueChanged",null);
_.E([_.iN("valid"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oC.prototype,"onValidChanged",null);_.E([_.h({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],oC);
_.W(oC,"ytd-clip-creation-text-input-renderer",function(){if(Hps!==void 0)return Hps;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Hps=A},{mode:1});var Cns;var q$8;var o8n;var tdV;var rs$;var tU=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};A.pendingStoryboardImages_={};A.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];A.tickLabelInterval=30;A.mediumTickInterval=5;A.largeTickInterval=15;A.aboveRulerHeight=32;A.rulerHeight=50;A.smallTickHeight=4;A.mediumTickHeight=8;A.largeTickHeight=16;A.mediaListeners_=
{};return A};
_.O(tU,_.q);_.d=tU.prototype;_.d.attached=function(){var A=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(Q){Q=_.F(["screen and (min-resolution: "+Q+")","screen and (max-resolution: "+Q+")"]);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=window.matchMedia(b);f&&(A.mediaListeners_[b]=A.updatePixelRatio_.bind(A),f.addEventListener?f.addEventListener("change",A.mediaListeners_[b]):f.addListener?f.addListener(A.mediaListeners_[b]):delete A.mediaListeners_[b])}})};
_.d.detached=function(){this.setPlayer(null);for(var A=_.F(Object.keys(this.mediaListeners_)),Q=A.next();!Q.done;Q=A.next()){var b=Q.value;Q=this.mediaListeners_[b];(b=window.matchMedia(b))&&(b.removeEventListener?b.removeEventListener("change",Q):b.removeListener&&b.removeListener(Q))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.d.onVisibilityChangedAction_=function(A){var Q=this;A.visible&&!this.player_&&(A=_.BL())&&A.getPlayerPromise().then(function(b){Q.setPlayer(b)})};
_.d.setPlayer=function(A){A&&this.set("player_",A)};
_.d.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.d.setUpCanvas_=function(){var A=this.rulerWidth,Q=this.devicePixelRatio_,b=this.visible;this.set("canvasReady_",!1);if(b&&Q!==0){b=this.aboveRulerHeight+this.rulerHeight;var f=_.Bj(this.hostElement).querySelector("#ticks");f.width=A*Q;f.height=b*Q;f.style.width=A+"px";f.style.height=b+"px";f.getContext("2d").scale(Q,Q);this.set("canvasReady_",!0)}};
_.d.drawRuler_=function(A,Q,b,f,a,T,G,p,P,U,L,M){A&&b&&Q&&(A=_.Bj(this.hostElement).querySelector("#ticks"),Q=A.getContext("2d"),Q.clearRect(0,0,A.width,A.height),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.lineWidth=2,Q.beginPath(),Q.moveTo(0,this.aboveRulerHeight),Q.lineTo(A.width,this.aboveRulerHeight),Q.moveTo(0,A.height),Q.lineTo(A.width,A.height),Q.stroke(),this.drawRulerTicks_(A,T,a,f),this.drawStoryboardImages_(A,b,T,a,f),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
Q.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(G-T,f,!1),this.rulerHeight),b=this.timeToPixels_(p-T,f,!1),Q.fillRect(b,this.aboveRulerHeight,A.width-b,this.rulerHeight),this.drawSpeedLines_(A,T,M))};
_.d.drawRulerTicks_=function(A,Q,b,f){var a=A.getContext("2d");a.save();a.lineWidth=1;for(var T=Math.floor(Math.max(0,Q-this.tickLabelInterval));T<Q+b;T++){a.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var G=(T-Q)*f;a.beginPath();a.moveTo(G,A.height);var p=this.smallTickHeight;T%this.largeTickInterval===0?p=this.largeTickHeight:T%this.mediumTickInterval===0&&(p=this.mediumTickHeight);a.lineTo(G,A.height-p);a.stroke();T%this.tickLabelInterval===0&&(a.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),a.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),a.fillText(Cm(T),G+4,12),a.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),a.moveTo(G,0),a.lineTo(G,this.aboveRulerHeight),a.stroke())}a.restore()};
_.d.percentToHex_=function(A){A=Math.round(A*255).toString(16);A.length<2&&(A="0"+A);return A};
_.d.drawSpeedLines_=function(A,Q,b){var f=A.getContext("2d");f.save();var a=Math.min(25,Math.abs(b)-15)/25,T=A.width*.3*a,G=A.width*-.3,p=A.width*1.3,P=this.aboveRulerHeight;A=A.height;var U=Math.round(4*a),L=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");L.length<7&&(L="#"+L.substring(1,4).repeat(2));var M=this.percentToHex_(.5+a/2);M=L+M;L+="00";if(a>0)for(a=0;a<U;a++){var l=G+Math.random()*(p-G),J=P+Math.random()*(A-P),n=T+Q%T,t=f.createLinearGradient(l,J,l+n,J);
b<0?(t.addColorStop(0,M),t.addColorStop(.4,M),t.addColorStop(.9,L)):(t.addColorStop(.1,L),t.addColorStop(.6,M),t.addColorStop(1,M));f.strokeStyle=t;f.lineWidth=1;f.beginPath();f.moveTo(l,J);f.lineTo(l+n,J);f.stroke()}f.restore()};
_.d.getStoryboardForTime_=function(A,Q,b){b===void 0&&(b=Q.getNumberOfStoryboardLevels()-1);A=Q.getStoryboardFrameIndex(A,b);return Q.getStoryboardFrame(A,b)};
_.d.drawStoryboardImages_=function(A,Q,b,f,a){if(!this.disabled){A=A.getContext("2d");var T=this.getStoryboardForTime_(0,Q);if(T){var G=T.width/T.columns;T=T.height/T.rows;var p=G/T,P=this.rulerHeight*p;P=this.tickLabelInterval*(p<this.tickLabelInterval*a/this.rulerHeight?1/Math.floor(this.tickLabelInterval*a/P):Math.round(P/(this.tickLabelInterval*a)));var U=P*a,L=this.rulerHeight,M=U/this.rulerHeight,l=Math.floor(Math.max(0,b-P));for(l-=l%P;l<b+f;l+=P){var J=this.getStoryboardForTime_(l,Q),n=this.getPreloadedStoryboard_(J.url);
if(n){var t=(l-b)*a,g=this.aboveRulerHeight,e=J.column*G,x=J.row*T;if(p<M){var D=L/(U/p);J=G;D*=T;x+=(T-D)/2}else J=U/(L*p)*G,D=T,e+=(G-J)/2;A.drawImage(n,e,x,J,D,t,g,U,L)}else this.fetchStoryboardImage_(J)}}}};
_.d.getPreloadedStoryboard_=function(A){return this.storyboardImages_.find(function(Q){if(Q.src==A)return!0;var b=Q.src.indexOf(A);return b!=-1&&b==Q.src.length-A.length})};
_.d.fetchStoryboardImage_=function(A){var Q=this,b=this.getPreloadedStoryboard_(A.url),f=this.pendingStoryboardImages_[A.url];b||f!==void 0||(b=new Promise(function(a){var T=new Image(A.width,A.height);T.src=A.url;T.onload=function(){a(T)};
T.onerror=function(){a(null)}}),this.pendingStoryboardImages_[A.url]=b,b.then(function(a){a&&Q.push("storyboardImages_",a);
return a}).finally(function(){delete Q.pendingStoryboardImages_[A.url]}))};
_.d.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.d.timeToPixels_=function(A,Q,b){A*=Q;return b===void 0||b?A+"px":A};
_.d.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
tU.prototype.drawRuler_=tU.prototype.drawRuler_;tU.prototype.setUpCanvas_=tU.prototype.setUpCanvas_;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],tU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],tU.prototype,"start",void 0);_.E([_.C({value:30}),_.c("design:type",Number)],tU.prototype,"end",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],tU.prototype,"visible",void 0);_.E([_.C(),_.c("design:type",Object)],tU.prototype,"player_",void 0);_.E([_.C(),_.c("design:type",Number)],tU.prototype,"tickSpacing",void 0);_.E([_.C(),_.c("design:type",Number)],tU.prototype,"windowSizeSec",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],tU.prototype,"rulerWidth",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],tU.prototype,"rulerShift",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],tU.prototype,"canvasReady_",void 0);_.E([_.C({value:function(){return[]}}),
_.c("design:type",Array)],tU.prototype,"storyboardImages_",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],tU.prototype,"disabled",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],tU.prototype,"forceRender_",void 0);_.E([_.C({value:1}),_.c("design:type",Number)],tU.prototype,"devicePixelRatio_",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],tU.prototype,"windowSpeed",void 0);
_.E([_.iN("visible","devicePixelRatio_","rulerWidth"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],tU.prototype,"setUpCanvas_",null);
_.E([_.iN("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.c("design:type",Function),_.c("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.c("design:returntype")],tU.prototype,"drawRuler_",null);_.E([_.Ec({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],tU);
_.W(tU,"yt-clip-creation-scrubber-canvas",function(){if(rs$===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);rs$=A}A=rs$;return A},
{mode:2});var jTw;var RxV;var r1=function(){var A=_.q.apply(this,arguments)||this;A.start=0;A.end=30;A.visible=!1;A.draggingLeft_=!1;A.draggingRight_=!1;A.draggingRuler_=!1;A.draggingWindow_=!1;A.seekableStart=0;A.seekableEnd=0;A.rulerWidth_=0;A.rulerShift_=0;A.windowSlideSpeed=0;A.disabled=!1;A.initialized=!1;A.durationAccessibilityLabel="";A.activeLoopRange_=!1;A.rulerDragMouseStart_=0;A.rulerDragRulerStart_=0;A.rulerDragStartTime_=0;A.rulerDragEndTime_=0;A.dragMouseLastX_=0;A.scrollInterval_=null;A.scrubberVe_=null;A.boundHandlers_=
{};A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.O(r1,_.q);_.d=r1.prototype;
_.d.created=function(){var A=this;this.JSC$22455_playerEvents=new Map;this.JSC$22455_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22455_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22455_playerEvents.set("onStateChange",this.onStateChange_);var Q={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(Q).forEach(function(b){A.boundHandlers_[b]=Q[b].bind(A)})};
_.d.attached=function(){this.activeLoopRange_=!1;_.Bj(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Bj(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.K6(156731)};
_.d.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Bj(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Bj(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.d.onVisibilityChangedAction_=function(A){var Q=this;A.visible&&!this.player_&&(A=_.BL())&&A.getPlayerPromise().then(function(b){Q.setPlayer(b)})};
_.d.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22455_playerEvents);A&&(this.set("player_",A),this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$22455_playerEvents))};
_.d.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.d.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.d.beginHandleDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=A.clientX,A.target===_.Bj(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():A.target===_.Bj(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.d.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.d.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.d.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.d.beginRulerDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=A.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.d.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.d.beginWindowScroll_=function(){var A=this;this.scrollInterval_=setInterval(function(){var Q=A.windowSlideSpeed;if(Q=_.Vst(A.start,A.boundedRulerStartLimit_())?Q-.1:_.Vst(A.end,A.boundedRulerEndLimit_())?Q+.1:0){var b=A.capRulerOffset_(A.rulerShift_+Q);b==A.rulerShift_?Q=0:(A.set("rulerShift_",b),_.Bn(A.hostElement,"set-fixed-length-range",{start:A.start+Q,duration:A.end-A.start}))}A.set("windowSlideSpeed",Q)},33)};
_.d.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.d.endDrag_=function(){this.logClick();var A=void 0;this.draggingRight_?A=this.end-1:this.draggingLeft_&&(A=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,A);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))};
_.d.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.d.updateRulerSize_=function(){this.set("rulerWidth_",_.Bj(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.d.handleMouseDrag_=function(A){A.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(A):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(A):this.draggingWindow_&&this.handleWindowDrag_(A))};
_.d.handleRulerDrag_=function(A){A=this.pixelsToTime_(A.clientX-this.rulerDragMouseStart_);A=this.capRulerOffset_(this.rulerDragRulerStart_-A);this.set("rulerShift_",A);var Q=this.rulerDragStartTime_-(this.rulerDragRulerStart_-A);_.Bn(this.hostElement,"set-fixed-length-range",{start:Q,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-A)-Q})};
_.d.handleWindowDrag_=function(A){var Q=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(Q);_.Bn(this.hostElement,"set-fixed-length-range",{start:this.start+A,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.d.capRulerOffset_=function(A){var Q=this.seekableStart-this.pixelsToTime_(16),b=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(Q,A),b)};
_.d.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.d.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.d.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.d.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.d.handleWindowHandleDrag_=function(A){var Q=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(Q);if(this.draggingLeft_){var b=this.start+A;var f=this.end}else this.draggingRight_&&(b=this.start,f=this.end+A);_.Bn(this.hostElement,"set-range",{start:b,end:f,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.d.onVideoProgress_=function(A){this.disabled||(A=this.timeToPixels_(A-this.rulerShift_,this.tickSpacing_),_.Bj(this.hostElement).querySelector("#playhead").style.transform="translateX("+A+")")};
_.d.onClipCreationDisable_=function(){this.endDrag_()};
_.d.timeToPixels_=function(A,Q,b){A*=Q;return b===void 0||b?A+"px":A};
_.d.pixelsToTime_=function(A){return A/this.tickSpacing_};
_.d.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.d.centerRuler_=function(A,Q,b){this.set("rulerShift_",this.capRulerOffset_(A+(Q-A)/2-b/2))};
_.d.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.d.updateLoopRange_=function(A,Q,b,f,a,T,G){A&&(Q&&f&&!b?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(A.pauseVideo(),A.seekTo(a,!1,void 0,void 0,50)):this.draggingRight_?(A.pauseVideo(),A.seekTo(T-.1,!1,void 0,void 0,50)):(G!==void 0?A.seekTo(G,!0,void 0,void 0,50):(Q=A.getCurrentTime(),Q<a||Q>T?A.seekTo(a,!0,void 0,void 0,50):A.seekTo(Q,!0,void 0,void 0,50)),A.playVideo()),A.setLoopRange({startTimeMs:a*1E3,endTimeMs:T*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(A.getCurrentTime())):
this.activeLoopRange_&&(A.setLoopRange(null),this.activeLoopRange_=!1))};
_.d.updateHandles_=function(){_.Bj(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Bj(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.d.updateRuler_=function(){var A=this.end,Q=this.start,b=this.draggableStartLimit_(),f=this.draggableEndLimit_();(Q<b-.001||A>f+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.d.computeDurationLabel_=function(A,Q){return A?A.replace("$clip_length",parseFloat(Q).toFixed(1)):""};
_.d.computeDuration_=function(A,Q){return this.isValidTime_(A)&&this.isValidTime_(Q)&&A<Q?Q-A:0};
_.d.isValidTime_=function(A){return isNaN(parseFloat(A))||A<0?!1:this.player_?A>=this.seekableStart&&A<=this.seekableEnd:!0};
_.d.computeWindowSizeSec_=function(A,Q,b){return Math.min((A||12E4)/1E3,b-Q)};
_.d.computeTickSpacing_=function(A,Q){return Q?Q/A:1};
_.d.onDragStateChanged_=function(){_.Bn(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.d.centerRangeOnTime_=function(A){var Q=this.duration;A=Sbi(A-Q/2,Q,this.seekableStart,this.seekableEnd);_.Bn(this.hostElement,"set-fixed-length-range",{start:A.start,duration:A.end-A.start})};
_.d.nearlyLessThan_=function(A,Q,b){return A+(b===void 0?1E-6:b)<Q};
_.d.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var A=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(A,this.start)||this.nearlyLessThan_(this.end,A))&&this.centerRangeOnTime_(A)}};
_.d.onStateChange_=function(A){this.visible&&!this.disabled&&A==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.d.computeDragState_=function(A,Q,b,f){return A?"left":Q?"right":b?"ruler":f?"window":"none"};
_.d.logClick=function(){var A=_.WR(),Q=_.hx();A&&Q&&this.scrubberVe_&&(_.K("combine_ve_grafts")?_.l$(_.IP(),this.scrubberVe_,Q):_.ui(A,Q,this.scrubberVe_),_.$_(A,this.scrubberVe_))};
r1.prototype.onDragStateChanged_=r1.prototype.onDragStateChanged_;r1.prototype.updateRuler_=r1.prototype.updateRuler_;r1.prototype.updateHandles_=r1.prototype.updateHandles_;r1.prototype.onUpdateLoopRange=r1.prototype.onUpdateLoopRange;r1.prototype.onInitializedChanged_=r1.prototype.onInitializedChanged_;r1.prototype.onVisibleChanged_=r1.prototype.onVisibleChanged_;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],r1.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",Object)],r1.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"start",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"end",void 0);_.E([_.C({computed:"computeDuration_(start, end)"}),_.c("design:type",Number)],r1.prototype,"duration",void 0);
_.E([_.C(),_.c("design:type",String)],r1.prototype,"lengthTemplate",void 0);_.E([_.C({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.c("design:type",String)],r1.prototype,"durationLabel",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"visible",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"player_",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"draggingLeft_",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"draggingRight_",void 0);
_.E([_.C(),_.c("design:type",Object)],r1.prototype,"draggingRuler_",void 0);_.E([_.C({value:!1}),_.c("design:type",Object)],r1.prototype,"draggingWindow_",void 0);_.E([_.C({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.c("design:type",Number)],r1.prototype,"tickSpacing_",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"seekableStart",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"seekableEnd",void 0);
_.E([_.C(),_.c("design:type",Number)],r1.prototype,"windowSizeMs",void 0);_.E([_.C({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.c("design:type",Number)],r1.prototype,"windowSizeSec_",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"rulerWidth_",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"rulerShift_",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"windowSlideSpeed",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],r1.prototype,"disabled",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"initialized",void 0);_.E([_.C(),_.c("design:type",Object)],r1.prototype,"durationAccessibilityLabel",void 0);_.E([_.C({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.c("design:type",String)],r1.prototype,"dragState",void 0);
_.E([_.iN("visible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],r1.prototype,"onVisibleChanged_",null);_.E([_.iN("initialized"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],r1.prototype,"onInitializedChanged_",null);_.E([_.iN("player_","visible","disabled","initialized","start","end"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],r1.prototype,"onUpdateLoopRange",null);
_.E([_.iN("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],r1.prototype,"updateHandles_",null);_.E([_.iN("start","end"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],r1.prototype,"updateRuler_",null);
_.E([_.iN("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],r1.prototype,"onDragStateChanged_",null);_.E([_.Ec({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],r1);
_.W(r1,"yt-clip-creation-scrubber-view",function(){if(RxV===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;jTw===void 0&&(jTw=document.createElement("template"));var f=jTw;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);RxV=A}A=RxV;return A},{mode:2});var js=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};A.startHighlightTimeout=0;A.endHighlightTimeout=0;return A};
_.O(js,_.q);_.d=js.prototype;_.d.attached=function(){var A=this;this.startInput.addEventListener("input",function(Q){return A.handleStartInput_(Q)});
this.endInput.addEventListener("input",function(Q){return A.handleEndInput_(Q)});
this.startInput.addEventListener("focusout",function(Q){return A.handleStartBlur_(Q)});
this.endInput.addEventListener("focusout",function(Q){return A.handleEndBlur_(Q)})};
_.d.setPlayer=function(A){this.set("player_",A)};
_.d.onSetFixedLengthRange_=function(A){var Q=A.detail;A=Q.start;var b=Q.duration,f=Q.startLimit;Q=Q.endLimit;f||(f=this.seekableStart_);Q||(Q=this.seekableEnd_);A=Sbi(A,b,f,Q);this.start=A.start;this.end=A.end};
_.d.onSetRange_=function(A){var Q=A.detail;A=Q.start;var b=Q.end,f=Q.startLimit;Q=Q.endLimit;f||(f=this.seekableStart_);Q||(Q=this.seekableEnd_);if(A=Ufh(A,b,f,Q,this.minLengthSec,this.maxLengthSec))this.start=A.start,this.end=A.end};
_.d.updateInputs_=function(){var A=this.end,Q=this.start;this.startInput.focused||(this.startInput.value=Cm(Q,!0));this.endInput.focused||(this.endInput.value=Cm(A,!0))};
_.d.handleStartInput_=function(A){A=XeV(A.target.value);if(A===null)this.set("startValid",!1);else{var Q=this.end,b=Ufh(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);b?(this.set("endWillUpdate",b.end!==Q),this.set("startValid",b.start===A)):this.set("startValid",!1)}};
_.d.handleEndInput_=function(A){A=XeV(A.target.value);if(A===null)this.set("endValid",!1);else{var Q=this.start,b=LJx(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);b?(this.set("startWillUpdate",b.start!==Q),this.set("endValid",b.end===A)):this.set("endValid",!1)}};
_.d.handleStartBlur_=function(A){A=XeV(A.target.value);A===null?this.startInput.value=Cm(this.start,!0):this.forceUpdateInputs_(Ufh(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.d.handleEndBlur_=function(A){A=XeV(A.target.value);A===null?this.endInput.value=Cm(this.end,!0):this.forceUpdateInputs_(LJx(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.d.forceUpdateInputs_=function(A){A&&(this.start=A.start,this.end=A.end);this.startInput.value=Cm(this.start,!0);this.endInput.value=Cm(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.d.initializeClipRange_=function(){var A=this.seekableEnd_,Q=this.seekableStart_,b=this.visible_,f=this.player_;if(!f||!b||Q===null||!A)this.set("initialized",!1);else if(!this.initialized){var a=f.getCurrentTime(),T=this.getDefaultLengthSec_();b=f.getVideoData();var G=f.getPlayerState()==1,p=b.isLive;T=Math.min(T,A-Q);a=Math.max(0,a);A=p?LJx(a-T,a,Q,A,this.minLengthSec,this.maxLengthSec):G?Sbi(a-T/2,T,Q,A):Sbi(a,T,Q,A);this.start=A.start;this.end=A.end;this.set("initialized",!0);b.isLive&&f.seekTo(A.start);
this.startInput.value=Cm(this.start,!0);this.endInput.value=Cm(this.end,!0)}};
_.d.onStartChanged_=function(){var A=this;_.Bn(this.hostElement,"start-changed",{start:this.start});var Q;isNaN((Q=this.oldStart)!=null?Q:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){A.set("highlightStart",!1);A.startHighlightTimeout=0;A.oldStart=A.start},3E3))};
_.d.onEndChanged_=function(){var A=this;_.Bn(this.hostElement,"end-changed",{end:this.end});var Q;isNaN((Q=this.oldEnd)!=null?Q:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){A.set("highlightEnd",!1);A.endHighlightTimeout=0;A.oldEnd=A.end},3E3))};
_.d.onVisibilityChangedAction_=function(A){var Q=this;this.set("visible_",A.visible);this.visible_&&!this.player_&&(A=_.BL())&&A.getPlayerPromise().then(function(b){Q.setPlayer(b)})};
_.d.computeMinLengthSec_=function(A){return A/1E3||5};
_.d.computeMaxLengthSec_=function(A){return A/1E3||60};
_.d.computeDefaultLengthSec_=function(A){return A/1E3};
_.d.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.d.computeSeekableStart_=function(A,Q){return A&&Q?A.getProgressState(1).seekableStart:0};
_.d.computeSeekableEnd_=function(A,Q){return A&&Q?A.getProgressState(1).seekableEnd:0};
_.d.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.d.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.d.onDragState_=function(A){this.set("highlightStart",A.detail.startChanging);this.set("highlightEnd",A.detail.endChanging)};
js.prototype.onDragState_=js.prototype.onDragState_;js.prototype.onEndChanged_=js.prototype.onEndChanged_;js.prototype.onStartChanged_=js.prototype.onStartChanged_;js.prototype.initializeClipRange_=js.prototype.initializeClipRange_;js.prototype.updateInputs_=js.prototype.updateInputs_;js.prototype.onSetRange_=js.prototype.onSetRange_;js.prototype.onSetFixedLengthRange_=js.prototype.onSetFixedLengthRange_;
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],js.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],js.prototype,"data",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],js.prototype,"start",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],js.prototype,"startValid",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],js.prototype,"startWillUpdate",void 0);_.E([_.C({value:30}),_.c("design:type",Number)],js.prototype,"end",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],js.prototype,"endValid",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],js.prototype,"endWillUpdate",void 0);_.E([_.C({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.c("design:type",Number)],js.prototype,"minLengthSec",void 0);
_.E([_.C({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.c("design:type",Number)],js.prototype,"maxLengthSec",void 0);_.E([_.C({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.c("design:type",Number)],js.prototype,"defaultLengthSec",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],js.prototype,"visible_",void 0);_.E([_.C(),_.c("design:type",Object)],js.prototype,"player_",void 0);
_.E([_.C({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.c("design:type",Number)],js.prototype,"seekableStart_",void 0);_.E([_.C({computed:"computeSeekableEnd_(player_, visible_)"}),_.c("design:type",Number)],js.prototype,"seekableEnd_",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],js.prototype,"initialized",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],js.prototype,"disabled",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],js.prototype,"highlightStart",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],js.prototype,"highlightEnd",void 0);_.E([_.V1("#start"),_.c("design:type",HTMLInputElement)],js.prototype,"startInput",void 0);_.E([_.V1("#end"),_.c("design:type",HTMLInputElement)],js.prototype,"endInput",void 0);
_.E([_.Kc("set-fixed-length-range"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],js.prototype,"onSetFixedLengthRange_",null);_.E([_.Kc("set-range"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],js.prototype,"onSetRange_",null);_.E([_.iN("start","end"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],js.prototype,"updateInputs_",null);
_.E([_.iN("player_","visible_","seekableStart_","seekableEnd_"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],js.prototype,"initializeClipRange_",null);_.E([_.iN("start"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],js.prototype,"onStartChanged_",null);_.E([_.iN("end"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],js.prototype,"onEndChanged_",null);
_.E([_.Kc("clips-drag-state"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],js.prototype,"onDragState_",null);_.E([_.Ec({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],js);
_.W(js,"yt-clip-creation-scrubber-renderer",function(){if(tdV===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;o8n===void 0&&(o8n=document.createElement("template"));var f=o8n;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);tdV=A}A=tdV;return A},{mode:2});var RC=function(){var A=_.q.apply(this,arguments)||this;A.player_=null;A.JSC$22469_playerEvents=new Map;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.O(RC,_.q);_.d=RC.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$22469_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22469_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22469_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22469_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.d.detached=function(){this.setPlayer(null)};
_.d.onVisibilityChangedAction_=function(A){var Q=this,b;if((b=this.data)==null?0:b.externalVideoId){var f;this.videoId=(f=this.data)==null?void 0:f.externalVideoId}this.getPlayer().then(function(a){if(A.visible)Q.returnTime=a.getCurrentTime(),Q.isAtLiveHead=a.getProgressState().isAtLiveHead;else{var T=Q.returnTime;Q.isAtLiveHead&&(T=Number.POSITIVE_INFINITY);a.seekTo(T,void 0,void 0,void 0,51)}})};
_.d.getPlayer=function(){var A=this;if(!this.player_){var Q=_.BL();if(Q)return Q.getPlayerPromise().then(function(b){A.setPlayer(b);return b})}return Promise.resolve(this.player_)};
_.d.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22469_playerEvents);if(A){this.player_=A;var Q;((Q=this.data)==null?0:Q.externalVideoId)||this.set("videoId",A.getVideoData().video_id||"");var b;(A==null?void 0:(b=A.getPresentingPlayerType)==null?void 0:b.call(A))===2&&(this.set("isAdPlaying",!0),_.pD(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$22469_playerEvents)}};
_.d.ready=function(){_.Bj(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.d.onTitleChanged_=function(A){this.set("titleValue",A.detail.title)};
_.d.onStartChanged_=function(A){this.set("start",A.detail.start)};
_.d.onEndChanged_=function(A){this.set("end",A.detail.end)};
_.d.onTitleValidChanged_=function(A){this.set("titleValid",A.detail.valid)};
_.d.onStartValidChanged_=function(A){this.set("startValid",A.detail.valid)};
_.d.onEndValidChanged_=function(A){this.set("endValid",A.detail.valid)};
_.d.onVideoDataChange_=function(){var A;if((A=this.data)==null||!A.externalVideoId){var Q;this.set("videoId",((Q=this.player_)==null?void 0:Q.getVideoData().video_id)||"")}};
_.d.computeFormValid_=function(A,Q,b,f){return!!(A&&Q&&b&&f)};
_.d.computeCancelButton_=function(A,Q,b){return A&&_.V(A,_.wE)?{buttonRenderer:Object.assign({},_.V(A,_.wE),{isDisabled:Q||b})}:null};
_.d.computeSubmitButton_=function(A,Q,b){return A&&_.V(A,_.wE)?{buttonRenderer:Object.assign({},_.V(A,_.wE),{command:void 0,isDisabled:!this.formValid||Q||b})}:null};
_.d.computeSubmitCommand_=function(A){return A||null};
_.d.onSubmit_=function(A){var Q=this;A.stopPropagation();A.preventDefault();this.submitCommand_&&(A={},A.comment_text=this.titleValue,A.clip_external_video_id=this.videoId,A.clip_offset_ms=parseInt(this.start*1E3,10),A.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.X5(this.hostElement,[this.submitCommand_,A]).then(function(){Q.set("isLoading_",!1)},function(){Q.set("isLoading_",!1)}))};
_.d.playerAdStartHandler_=function(){_.pD(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler_=function(){_.pD(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.d.onVideoProgress_=function(){var A=this;this.getPlayer().then(function(Q){var b,f=(Q==null?void 0:(b=Q.getPresentingPlayerType)==null?void 0:b.call(Q))===2;A.isAdPlaying!==f&&(f?A.playerAdStartHandler_():A.playerAdEndHandler_())})};
RC.prototype.onEndValidChanged_=RC.prototype.onEndValidChanged_;RC.prototype.onStartValidChanged_=RC.prototype.onStartValidChanged_;RC.prototype.onTitleValidChanged_=RC.prototype.onTitleValidChanged_;RC.prototype.onEndChanged_=RC.prototype.onEndChanged_;RC.prototype.onStartChanged_=RC.prototype.onStartChanged_;RC.prototype.onTitleChanged_=RC.prototype.onTitleChanged_;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],RC.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",Object)],RC.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],RC.prototype,"data",void 0);_.E([_.C({value:""}),_.c("design:type",String)],RC.prototype,"titleValue",void 0);
_.E([_.C({value:!1}),_.c("design:type",Boolean)],RC.prototype,"titleValid",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],RC.prototype,"start",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],RC.prototype,"startValid",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],RC.prototype,"end",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],RC.prototype,"endValid",void 0);_.E([_.C({value:""}),_.c("design:type",String)],RC.prototype,"videoId",void 0);
_.E([_.C({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.c("design:type",Boolean)],RC.prototype,"formValid",void 0);_.E([_.C({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.c("design:type",Object)],RC.prototype,"submitButton_",void 0);_.E([_.C({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.c("design:type",Object)],RC.prototype,"submitCommand_",void 0);
_.E([_.C({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.c("design:type",Object)],RC.prototype,"cancelButton_",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],RC.prototype,"isLoading_",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],RC.prototype,"isAdPlaying",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],RC.prototype,"returnTime",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],RC.prototype,"isAtLiveHead",void 0);
_.E([_.Kc("title-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RC.prototype,"onTitleChanged_",null);_.E([_.Kc("start-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RC.prototype,"onStartChanged_",null);_.E([_.Kc("end-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RC.prototype,"onEndChanged_",null);
_.E([_.Kc("title-valid-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RC.prototype,"onTitleValidChanged_",null);_.E([_.Kc("start-valid-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RC.prototype,"onStartValidChanged_",null);_.E([_.Kc("end-valid-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],RC.prototype,"onEndValidChanged_",null);
_.E([_.Ec({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],RC);
_.W(RC,"yt-clip-creation-renderer",function(){if(q$8===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Cns===void 0&&(Cns=document.createElement("template"));var f=Cns;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);q$8=A}A=q$8;return A},{mode:2});var g1=function(){return _.q.apply(this,arguments)||this};
_.O(g1,_.q);g1.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"}}}};
g1.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(A){return A.hasOwnProperty("clipCreationRenderer")})&&_.pD(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
g1.prototype.onPanelContentVisibleChanged=g1.prototype.onPanelContentVisibleChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.NO.YtVisibilityBehavior),_.c("design:type",Object)],g1.prototype,"ytVisibilityBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],g1.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],g1.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],g1.prototype,"panelContentVisible",void 0);_.E([_.iN("panelContentVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],g1.prototype,"onPanelContentVisibleChanged",null);_.E([_.h({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],g1);
_.W(g1,"ytd-clip-section-renderer",function(){if(kYV!==void 0)return kYV;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return kYV=A},{mode:1});var g8d;var es=function(){return _.q.apply(this,arguments)||this};
_.O(es,_.q);_.d=es.prototype;
_.d.onKeyDown=function(A){if(this.snippetElements.length!==0&&(A=A.keyCode,A===38||A===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);A===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.vZ(this.highlightedIndex,-1,this.snippetElements.length);A=this.snippetElements.length;var Q=this.highlightedIndex%A;this.highlightedIndex=Q*A<0?Q+A:Q;A=this.snippetElements[this.highlightedIndex];this.highlightSnippet(A);this.ensureVisible(A)}};
_.d.onKeyUp=function(A){var Q=this;Yb8(A)&&(A.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.j7.cancelJob(this.inputTimerId),this.inputTimerId=_.j7.addLowPriorityJob(function(){Q.typedValue&&(Q.fetchSnippets(Q.typedValue),Q.logInputGesture(Q.data))},1E3))};
_.d.onClick=function(A){(A=_.pdL(A.target,null,"snippet-item"))&&this.selectSnippet(A)};
_.d.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.d.ready=function(){var A=this;this.inputElement.addEventListener("focus",function(){A.snippetsWrapper.style.removeProperty("display")})};
_.d.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.d.getSourceTimelines=function(){if(!this.data)return[];var A=[];if(this.data.searchInVideoSources)for(var Q=_.F(this.data.searchInVideoSources),b=Q.next();!b.done;b=Q.next())b=b.value,b==="SEARCH_IN_VIDEO_SOURCE_ASR"?A.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):b==="SEARCH_IN_VIDEO_SOURCE_OCR"&&A.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return A};
_.d.fetchSnippets=function(A){var Q=_.pD(this.hostElement,"yt-get-current-video-id-action")[0],b=this.getSourceTimelines();A={getSearchInVideoCommand:{externalVideoId:Q,query:A!=null?A:"",sourceTimelines:b},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})};
_.d.filterSnippets=function(A,Q){var b=this;if(Q){this.filteredSnippets=(0,_.j2.unsafeClone)(A);var f=RegExp(_.hV9(Q),"i");this.filteredSnippets=this.filteredSnippets.filter(function(G){return f.test(b.ytRendererBehavior.getSimpleString(G.snippet))});
A=_.F(this.filteredSnippets);for(var a=A.next();!a.done;a=A.next()){a=a.value;var T=this.ytRendererBehavior.getSimpleString(a.snippet);a.snippet={runs:[{text:T.substring(0,T.toLowerCase().indexOf(Q))},{text:T.substring(T.toLowerCase().indexOf(Q),T.toLowerCase().indexOf(Q)+Q.length),bold:!0},{text:T.substring(T.toLowerCase().indexOf(Q)+Q.length,T.length)}]}}}else this.filteredSnippets=A};
_.d.onUpdateSearchInVideoResults=function(A){if(!(this.snippets.length>0)){var Q,b,f;if((f=(Q=_.V(A,dxs))==null?void 0:(b=Q.results)==null?void 0:b.length)!=null&&f){var a;this.filteredSnippets=this.snippets=((a=_.V(A,dxs))==null?void 0:a.results).map(function(T){var G,p,P;return{startMs:T==null?void 0:(G=T.searchInVideoResultRenderer)==null?void 0:G.startMs,startTimeText:T==null?void 0:(p=T.searchInVideoResultRenderer)==null?void 0:p.startTimeText,snippet:T==null?void 0:(P=T.searchInVideoResultRenderer)==
null?void 0:P.snippet}})}}};
_.d.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};
_.d.highlightSnippet=function(A){A.classList.add("highlighted")};
_.d.removeSnippetHighlight=function(A){A.classList.remove("highlighted")};
_.d.selectSnippet=function(A){this.typedValue=String(A.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(A);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.d.ensureVisible=function(A){var Q=this.snippetsWrapper.scrollTop,b=Q+this.snippetsWrapper.clientHeight,f=A.offsetTop-this.snippetsWrapper.offsetTop;A=f+A.clientHeight;f<Q?this.snippetsWrapper.scrollTop-=Q-f:A>b&&(this.snippetsWrapper.scrollTop+=A-b)};
_.d.seekPlayer=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1){if(!A)return f.jumpTo(0);Q=Number(A.dataset.startOffset);return f.yield(_.p6().getPlayerPromise(),3)}b=f.yieldResult;b.seekTo(Q/1E3,!0);b.wakeUpControls();_.Oi(f)})};
_.d.logInputGesture=function(A){var Q=_.WR();Q&&(A==null?0:A.trackingParams)&&_.NB(Q,_.t8(A.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.d.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("typed-value-changed",this.typedValue))};
_.d.updateTypedValueFromBinding=function(A){this.typedValue=A.currentTarget.value};
es.prototype.typedValueChangedForBinding=es.prototype.typedValueChangedForBinding;es.prototype.dataChanged=es.prototype.dataChanged;es.prototype.panelContentVisibleChanged=es.prototype.panelContentVisibleChanged;es.prototype.onClick=es.prototype.onClick;es.prototype.onKeyUp=es.prototype.onKeyUp;es.prototype.onKeyDown=es.prototype.onKeyDown;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],es.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],es.prototype,"data",void 0);_.E([_.C({value:[]}),_.c("design:type",Array)],es.prototype,"snippets",void 0);_.E([_.C({value:[]}),_.c("design:type",Array)],es.prototype,"filteredSnippets",void 0);_.E([_.C({value:[]}),_.c("design:type",Array)],es.prototype,"snippetElements",void 0);
_.E([_.V1("#siv-input"),_.c("design:type",HTMLElement)],es.prototype,"inputElement",void 0);_.E([_.V1("#siv-snippets-wrapper"),_.c("design:type",HTMLElement)],es.prototype,"snippetsWrapper",void 0);_.E([_.C(),_.c("design:type",String)],es.prototype,"typedValue",void 0);_.E([_.C({value:-1}),_.c("design:type",Number)],es.prototype,"highlightedIndex",void 0);_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[_.Vt]),_.c("design:returntype")],es.prototype,"onKeyDown",null);
_.E([_.Kc("keyup"),_.c("design:type",Function),_.c("design:paramtypes",[_.Vt]),_.c("design:returntype")],es.prototype,"onKeyUp",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],es.prototype,"onClick",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],es.prototype,"panelContentVisible",void 0);
_.E([_.iN("panelContentVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],es.prototype,"panelContentVisibleChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],es.prototype,"dataChanged",null);_.E([_.iN("typedValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],es.prototype,"typedValueChangedForBinding",null);
_.E([_.h({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],es);
_.W(es,"ytd-search-in-video-renderer",function(){if(g8d!==void 0)return g8d;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return g8d=A},{mode:1});var exn;var hU=function(){return _.q.apply(this,arguments)||this};
_.O(hU,_.q);hU.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
hU.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]]"}}}}}};
hU.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,Q,b,f,a=(Q=_.V((A=this.data)==null?void 0:A.onClickCommand,_.CY))==null?void 0:(b=Q.item)==null?void 0:(f=b.notificationTextRenderer)==null?void 0:f.successResponseText;a&&_.quY(this.hostElement,a)}};
_.Qr.Object.defineProperties(hU.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;return this.isProductPlaceholder&&((A=this.data)==null?void 0:(Q=A.hiddenProductOptions)==null?void 0:Q.showDropCountdown)&&!!((b=this.data)==null?0:(f=b.hiddenProductOptions)==null?0:f.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isProductPlaceholder&&!((A=this.data)==null?0:A.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null?0:A.priceReplacementText)&&!((Q=this.data)==null||!Q.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],hU.prototype,"componentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],hU.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("isProductPlaceholder"),_.c("design:type",Object),_.c("design:paramtypes",[])],hU.prototype,"useCenterLayoutContainer",null);_.E([_.C({computed:"computeButtonOverride(data)"}),_.c("design:type",Object)],hU.prototype,"buttonOverride",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hU.prototype,"isProductPlaceholder",null);
_.E([_.H("isProductPlaceholder"),_.c("design:type",Object),_.c("design:paramtypes",[])],hU.prototype,"showDropCountdown",null);_.E([_.H("isProductPlaceholder","data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hU.prototype,"showBrandName",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hU.prototype,"showPriceReplacementText",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],hU.prototype,"showPrice",null);
_.E([_.H("isProductPlaceholder"),_.c("design:type",Object),_.c("design:paramtypes",[])],hU.prototype,"showMetadata",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],hU);
_.W(hU,"ytd-product-list-item-renderer",function(){if(exn!==void 0)return exn;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return exn=A},{mode:1});var hx$;var WH=function(){return _.q.apply(this,arguments)||this};
_.O(WH,_.q);WH.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
WH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
WH.prototype.panelContentVisibleChanged=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return A.playerApi?b.jumpTo(2):b.yield(_.p6().getPlayerPromise(),3);b.nextAddress!=2&&(A.playerApi=b.yieldResult);(Q=A.playerApi)==null||Q.productsInVideoVisibilityUpdated(!!A.panelContentVisible);_.Oi(b)})};
WH.prototype.panelContentVisibleChanged=WH.prototype.panelContentVisibleChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],WH.prototype,"panelContentVisible",void 0);_.E([_.C(),_.c("design:type",Object)],WH.prototype,"data",void 0);
_.E([_.iN("panelContentVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],WH.prototype,"panelContentVisibleChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],WH);
_.W(WH,"ytd-product-list-renderer",function(){if(hx$!==void 0)return hx$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return hx$=A},{mode:1});var Wwi;var vH=function(){var A=_.q.apply(this,arguments)||this;A.hideTimestamps=!!_.i7("hide-transcript-timestamps");A.currentCueIndex=-1;A.flatCues=[];A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};A.TEST_ONLY={getFlatCues:function(){return A.flatCues}};
return A};
_.O(vH,_.q);_.d=vH.prototype;_.d.hideTimestampsChanged=function(){_.KW("hide-transcript-timestamps",this.hideTimestamps)};
_.d.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.d.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.d.dataChanged=function(){var A;if((A=this.data)!=null&&A.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;A=_.F(this.data.cueGroups);for(var Q=A.next();!Q.done;Q=A.next()){Q=_.F(_.V(Q.value,FjV).cues);for(var b=Q.next();!b.done;b=Q.next())this.flatCues.push(Number(_.V(b.value,Gri).startOffsetMs))}}};
_.d.onYtPlayerTimeChanged=function(A){if(!(A<0)){for(var Q=this.currentCueIndex,b=Q;;){var f=b>=0?this.flatCues[b]/1E3:-1;if(A+.5<f)--b;else if(f=b+1<this.flatCues.length?this.flatCues[b+1]/1E3:Infinity,A+.5>f)b+=1;else break}b!==Q&&(Q>=0&&((A=this.getCueElement(Q))&&A.classList.remove("active"),(Q=this.getCueGroupElement(Q))&&Q.classList.remove("active")),(Q=this.getCueElement(b))&&Q.classList.add("active"),(Q=this.getCueGroupElement(b))&&Q.classList.add("active"),this.currentCueIndex=b,this.isHovered||
this.scrollElementToTop(b))}};
_.d.scrollElementToTop=function(A){A=this.getCueElement(A>=3?A-3:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.d.getCueElement=function(A){return _.Bj(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[A]+'"]')};
_.d.getCueGroupElement=function(A){return(A=this.getCueElement(A))&&A.parentElement?A.parentElement.parentElement:null};
_.d.onTap=function(A){var Q=_.Au(A);A.target.classList.contains("cue")&&this.seekCueElement(Q)};
_.d.onKeyPress=function(A){A.keyCode==13&&(A=_.pdL(A.target,null,"cue"))&&this.seekCueElement(A)};
_.d.seekCueElement=function(A){A=Number(A.getAttribute("start-offset"));_.pD(this.hostElement,"yt-transcript-player-seek",[A/1E3])};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
vH.prototype.onMouseLeave=vH.prototype.onMouseLeave;vH.prototype.onMouseEnter=vH.prototype.onMouseEnter;vH.prototype.onKeyPress=vH.prototype.onKeyPress;vH.prototype.onTap=vH.prototype.onTap;vH.prototype.dataChanged=vH.prototype.dataChanged;vH.prototype.hideTimestampsChanged=vH.prototype.hideTimestampsChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],vH.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],vH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vH.prototype,"hideTimestamps",void 0);_.E([_.C(),_.c("design:type",Boolean)],vH.prototype,"isHovered",void 0);_.E([_.iN("hideTimestamps"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vH.prototype,"hideTimestampsChanged",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vH.prototype,"dataChanged",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],vH.prototype,"onTap",null);_.E([_.Kc("keypress"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],vH.prototype,"onKeyPress",null);
_.E([_.Kc("mouseenter"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vH.prototype,"onMouseEnter",null);_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vH.prototype,"onMouseLeave",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],vH);
_.W(vH,"ytd-transcript-body-renderer",function(){if(Wwi!==void 0)return Wwi;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Wwi=A},{mode:1});var v8h;var Ee=function(){var A=_.q.apply(this,arguments)||this;A.darkerPanels=_.K("web_watch_darker_panels");return A};
_.O(Ee,_.q);Ee.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ee.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ee.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ee.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ee.prototype,"darkerPanels",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Ee);
_.W(Ee,"ytd-transcript-footer-renderer",function(){if(v8h!==void 0)return v8h;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return v8h=A},{mode:1});var E8Y;var xsc;var xM=function(){var A=_.q.apply(this,arguments)||this;A.systemIcons=_.K("kevlar_system_icons");A.showClearButton=!1;return A};
_.O(xM,_.q);_.d=xM.prototype;_.d.handleInput=function(A){var Q=this;A.target.value.length?_.Yl(this,"ytdTranscriptSearchBoxSearch",function(){Q.emitSearchEvent(A)},500):(_.Hfy(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=A.target.value.length>0};
_.d.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.d.handleClick=function(){var A,Q=(A=this.data)==null?void 0:A.trackingParams;Q&&_.JY(_.IP(),Q)};
_.d.handleClear=function(){_.Hfy(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var A,Q,b=(Q=_.V((A=this.data)==null?void 0:A.clearButton,_.wE))==null?void 0:Q.trackingParams;b&&_.JY(_.IP(),b);this.clear()};
_.d.emitSearchEvent=function(A){_.Bn(this.hostElement,"yt-transcript-search-box-search",{query:A.target.value});var Q,b;(A=(b=_.V((Q=this.data)==null?void 0:Q.searchButton,_.wE))==null?void 0:b.trackingParams)&&_.JY(_.IP(),A)};
_.d.emitClearEvent=function(){_.Bn(this.hostElement,"yt-transcript-search-box-clear")};
_.Qr.Object.defineProperties(xM.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xM.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],xM.prototype,"systemIcons",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],xM);
_.W(xM,"ytd-transcript-search-box-renderer",function(){if(xsc!==void 0)return xsc;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xsc=A},{mode:1});var cs$;var zxw;var cH=function(){return _.q.apply(this,arguments)||this};
_.O(cH,_.q);cH.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var A,Q;this.sectionHeaderAriaLabel=(A=this.data)==null?void 0:(Q=A.accessibility)==null?void 0:Q.accessibilityData.label}};
cH.prototype.fireSelectedEvent=function(A){_.Bn(this.hostElement,"ytd-transcript-section-header",{startMs:A})};
cH.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
cH.prototype.handleKeyPress=function(A){this.data&&A.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Qr.Object.defineProperties(cH.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=(A=this.data)==null?void 0:A.enableTappableTranscriptHeader)!=null?Q:!1}}});
cH.prototype.dataChanged=cH.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],cH.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],cH.prototype,"sectionHeaderAriaLabel",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],cH.prototype,"enableTappableTranscriptHeader",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cH.prototype,"dataChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],cH);
_.W(cH,"ytd-transcript-section-header-renderer",function(){if(zxw!==void 0)return zxw;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zxw=A},{mode:1});var whd;var ucT;var z5=function(){var A=_.q.apply(this,arguments)||this;A.isEditMode=!1;A.touchCaptionsEnabled=!1;A.deleteCaptionCorrectionPopupCommand=null;A.voteCaptionCorrectionPopupCommand=null;A.roundedContainer=!0;A.mouseOver=!1;A.textChanged=!1;A.messages={suggest_correction:_.JQ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.JQ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.JQ("submit_correction",void 0,"Submit for review"),cancel_correction:_.JQ("cancel_correction",
void 0,"Cancel"),replay_segment:_.JQ("replay_segment",void 0,"Re-play segment"),delete_correction:_.JQ("delete_correction",void 0,"Delete correction")};A.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return A};
_.O(z5,_.q);_.d=z5.prototype;_.d.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)};
_.d.handleDelete=function(A){if(this.deleteCaptionCorrectionPopupCommand){var Q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);Q&&this.ytdOpenPopupBehavior.openPopup(Q);A.stopPropagation()}};
_.d.handleSubmit=function(A){if(this.data&&this.data.submitCaptionCorrectionCommand&&(A.stopPropagation(),this.textChanged)){var Q;A=(Q=_.V(this.data.submitCaptionCorrectionCommand,_.sav))==null?void 0:Q.params;Q=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:A,correctionText:String(this.ironTextAreaElement.value),originalText:_.mO(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(Q);this.isEditMode=!1}};
_.d.handleUpdateSegmentText=function(A){(A=_.V(A,IK8))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&(A.userCorrection&&(this.editedText=A.userCorrection),A.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.mO(this.data.snippet)),A.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=A.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=A.voteCaptionCorrectionPopupCommand?
A.voteCaptionCorrectionPopupCommand:null,A.accessibility&&(this.segmentAriaLabel=A.accessibility.accessibilityData.label))};
_.d.handleCancel=function(A){this.isEditMode=!1;A.stopPropagation();this.logClientVe(159409)};
_.d.handleEditSegmentCommand=function(A){(A=_.V(A,krh))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&this.handleEdit()};
_.d.handleEditButtonClick=function(A){this.data&&(this.handleEdit(),A.stopPropagation())};
_.d.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var A;(A=this.ironTextAreaElement.textarea)==null||A.focus();this.logClientVe(159407)}};
_.d.handleMouseEnter=function(){this.mouseOver=!0};
_.d.handleMouseLeave=function(){this.mouseOver=!1};
_.d.handleReplay=function(A){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),A.stopPropagation(),this.logClientVe(159408))};
_.d.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()))};
_.d.handleKeypress=function(A){this.data&&(this.isEditMode?A.stopPropagation():this.isEnterPress(A)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(A)&&this.logClientVe(138758))};
_.d.handleTextboxClick=function(A){A.stopPropagation()};
_.d.handleTextboxKeydown=function(A){this.isControlEnterPress(A)?this.handleSubmit(A):A.key==="Escape"&&this.handleCancel(A)};
_.d.handleTextboxKeyup=function(){this.textChanged=_.mO(this.latestText)!==String(this.ironTextAreaElement.value)};
_.d.fireSelectedEvent=function(A){_.Bn(this.hostElement,"yt-transcript-segment-selected",{startMs:A})};
_.d.fireReplayEvent=function(A,Q){_.Bn(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(A-100,0),endMs:Q})};
_.d.fireEditEvent=function(A,Q){_.Bn(this.hostElement,"yt-transcript-segment-edit",{startMs:A,endMs:Q})};
_.d.isEnterPress=function(A){return A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13?!0:!1};
_.d.isControlEnterPress=function(A){var Q=A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13;return(A.ctrlKey||A.metaKey)&&Q};
_.d.isCopyPress=function(A){var Q=A.ctrlKey;return A.key==="c"&&Q};
_.d.logClick=function(){var A,Q=(A=this.data)==null?void 0:A.trackingParams;Q&&_.JY(_.IP(),Q)};
_.d.logClientVe=function(A){_.i$(_.IP(),_.K6(A))};
_.Qr.Object.defineProperties(z5.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}}});
z5.prototype.handleMouseLeave=z5.prototype.handleMouseLeave;z5.prototype.handleMouseEnter=z5.prototype.handleMouseEnter;z5.prototype.dataChanged=z5.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],z5.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],z5.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],z5.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],z5.prototype,"isEditMode",void 0);_.E([_.C(),_.c("design:type",Object)],z5.prototype,"touchCaptionsEnabled",void 0);_.E([_.C(),_.c("design:type",Object)],z5.prototype,"editedText",void 0);_.E([_.C(),_.c("design:type",Object)],z5.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.E([_.C(),_.c("design:type",Object)],z5.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.E([_.C(),_.c("design:type",String)],z5.prototype,"segmentAriaLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],z5.prototype,"roundedContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],z5.prototype,"mouseOver",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],z5.prototype,"textChanged",void 0);_.E([_.C(),_.c("design:type",Object)],z5.prototype,"messages",void 0);
_.E([_.V1("#suggestion"),_.c("design:type",Object)],z5.prototype,"ironTextAreaElement",void 0);_.E([_.H("data","editedText"),_.c("design:type",Object),_.c("design:paramtypes",[])],z5.prototype,"latestText",null);_.E([_.H("touchCaptionsEnabled","isEditMode"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],z5.prototype,"enableEditButton",null);
_.E([_.H("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],z5.prototype,"enableUndoButton",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z5.prototype,"dataChanged",null);_.E([_.Kc("mouseenter"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z5.prototype,"handleMouseEnter",null);
_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z5.prototype,"handleMouseLeave",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],z5);
_.W(z5,"ytd-transcript-segment-renderer",function(){if(ucT!==void 0)return ucT;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ucT=A},{mode:1});var w1=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};A.isError=!1;A.darkerPanels=_.K("web_watch_darker_panels");A.useParentMaxHeight=_.K("web_watch_transscript_use_parent_max_height");A.segmentOffsets=[];A.segmentIndex=-1;return A};
_.O(w1,_.q);_.d=w1.prototype;_.d.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"}}}}};
_.d.segmentsChanged=function(){this.updateOffsets()};
_.d.onYtPlayerTimeChanged=function(A){for(var Q=this.segmentIndex,b=Q;;){if(b>=0){var f=this.segmentOffsets[b].start;var a=this.segmentOffsets[b].isAutoScrollable}else f=-1,a=!0;var T=A+.5;if(!a){f=b+1<this.segmentOffsets.length?this.segmentOffsets[b+1].start:Infinity;if(T>=f){b+=1;continue}b=-1;break}if(T<f)f=b-1>=0&&this.segmentOffsets[b-1].isAutoScrollable,a=b===0||f?1:2,b-=a;else if(a=b+1<this.segmentOffsets.length&&this.segmentOffsets[b+1].isAutoScrollable?1:2,f=b+a<this.segmentOffsets.length?
this.segmentOffsets[b+a].start:Infinity,T>f)b+=a;else{if(b<0)break;b<this.segmentOffsets.length&&T>this.segmentOffsets[b].end&&(b=-1);break}}if(Q!==b){if(Q>=0){var G;(G=this.getSegmentElement(Q))==null||G.classList.remove("active")}this.segmentIndex=b;if(!(b<0)){var p;(p=this.getSegmentElement(b))==null||p.classList.add("active");this.isHovered||this.scrollElementToTop(b)}}};
_.d.handleSegmentEdit=function(A){A.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=A.target,_.pD(this.hostElement,"yt-transcript-player-edit",[A.detail.startMs/1E3,A.detail.endMs/1E3]))};
_.d.handleSegmentSelected=function(A){_.pD(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.d.handleSegmentReplay=function(A){_.pD(this.hostElement,"yt-transcript-player-replay",[A.detail.startMs/1E3,A.detail.endMs/1E3])};
_.d.handleSectionHeaderSelected=function(A){_.pD(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
_.d.onRetryButtonClick=function(){_.Bn(this.hostElement,"transcript-retry-button-click")};
_.d.getSegmentElement=function(A){return _.Bj(this.hostElement).querySelector(":nth-child("+(A+1)+")")};
_.d.scrollElementToTop=function(A){A=this.getSegmentElement(A>=2?A-2:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.d.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(A){var Q,b=(Q=A.transcriptSegmentRenderer)!=null?Q:A.transcriptSectionHeaderRenderer;return{start:Number(b.startMs)/1E3,end:Number(b.endMs)/1E3,isAutoScrollable:A.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.d.clearHighlightedSegments=function(){var A=_.Bj(this.hostElement);A=_.F(A.querySelectorAll("ytd-transcript-segment-renderer"));for(var Q=A.next();!Q.done;Q=A.next())Q.value.classList.remove("active")};
_.Qr.Object.defineProperties(w1.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:A.searchResultSegments)||((Q=this.data)==null?void 0:Q.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
w1.prototype.onMouseLeave=w1.prototype.onMouseLeave;w1.prototype.onMouseEnter=w1.prototype.onMouseEnter;w1.prototype.handleSectionHeaderSelected=w1.prototype.handleSectionHeaderSelected;w1.prototype.handleSegmentReplay=w1.prototype.handleSegmentReplay;w1.prototype.handleSegmentSelected=w1.prototype.handleSegmentSelected;w1.prototype.handleSegmentEdit=w1.prototype.handleSegmentEdit;w1.prototype.segmentsChanged=w1.prototype.segmentsChanged;
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],w1.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],w1.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],w1.prototype,"isError",void 0);
_.E([_.C(),_.c("design:type",Object)],w1.prototype,"noResultLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],w1.prototype,"darkerPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],w1.prototype,"useParentMaxHeight",void 0);_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],w1.prototype,"segments",null);
_.E([_.H("segments","noResultLabel"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w1.prototype,"displayNoResults",null);_.E([_.iN("segments"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],w1.prototype,"segmentsChanged",null);_.E([_.Kc("yt-transcript-segment-edit"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],w1.prototype,"handleSegmentEdit",null);
_.E([_.Kc("yt-transcript-segment-selected"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],w1.prototype,"handleSegmentSelected",null);_.E([_.Kc("yt-transcript-segment-replay"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],w1.prototype,"handleSegmentReplay",null);
_.E([_.Kc("ytd-transcript-section-header"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],w1.prototype,"handleSectionHeaderSelected",null);_.E([_.Kc("mouseenter"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],w1.prototype,"onMouseEnter",null);_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],w1.prototype,"onMouseLeave",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],w1);
_.W(w1,"ytd-transcript-segment-list-renderer",function(){if(whd!==void 0)return whd;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return whd=A},{mode:1});var uQ=function(){var A=_.q.apply(this,arguments)||this;A.hideTimestamps=!!_.i7("hide-transcript-timestamps");A.isLoadingTranscripts=!1;A.darkerPanels=_.K("web_watch_darker_panels");A.isError=!1;A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return A};
_.O(uQ,_.q);_.d=uQ.prototype;_.d.headerChanged=function(){var A,Q;this.baseGetTranscriptsCommand=(Q=_.V((A=this.data)==null?void 0:A.header,H$c))==null?void 0:Q.onTextChangeCommand};
_.d.bodyChanged=function(){var A=this.getBodyRenderer();A&&(A.initialSegments&&(this.initialTranscriptsRenderer=A),A.noResultLabel&&(this.noResultLabel=A.noResultLabel),A.retryLabel&&(this.retryLabel=A.retryLabel))};
_.d.detached=function(){this.clearSearchBoxText()};
_.d.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.d.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"}}}};
_.d.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.d.fireSearch=function(A){var Q=this;if(A){var b=A.detail.query;if(this.baseGetTranscriptsCommand){var f;A=(f=_.V(this.baseGetTranscriptsCommand,_.oHM))==null?void 0:f.params;var a;f=_.V((a=this.data)==null?void 0:a.footer,B9Y);var T;if((a=(T=_.V(f==null?void 0:f.languageMenu,VWn))==null?void 0:T.subMenuItems)&&a.length>0&&(T=a.find(function(P){return P.selected}))){var G,p;
A=(G=T.continuation)==null?void 0:(p=G.reloadContinuationData)==null?void 0:p.continuation}G=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:A,searchQuery:b}});this.ytComponentBehavior.resolveCommand(G,{commandController:{onServerError:function(){Q.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});ZFp(this.ytContinuationHandlerBehavior,function(){return b===Q.getCurrentSearchBoxText()})}}};
_.d.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.d.onRetryButtonClick=function(){this.isError=!1;var A={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:A}))};
_.d.hideTimestampsChanged=function(){_.KW("hide-transcript-timestamps",this.hideTimestamps)};
_.d.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.d.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.d.handleSignalActionCopyTranscript=function(){var A=this,Q=this.getBodyRenderer();Q&&(Q=((Q==null?void 0:Q.searchResultSegments)||(Q==null?void 0:Q.initialSegments)||[]).map(function(b){return _.V(b,qL$)}).filter(function(b){return!!b}).map(function(b){return{snippet:b.snippet||{runs:[{text:""}]},
startTimeText:b.startTimeText||{simpleText:""}}}).map(function(b){var f=(b.snippet.runs||[]).reduce(function(a,T){return a+T.text},"");
return A.hideTimestamps?f:b.startTimeText.simpleText+" "+f}).join("\n"),this.copyToClipboard(Q))};
_.d.copyToClipboard=function(A){navigator.clipboard&&navigator.clipboard.writeText(A)};
_.d.getCurrentSearchBoxText=function(){var A;return(A=this.searchBox)==null?void 0:A.value};
_.d.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.d.getBodyRenderer=function(){var A;return _.V((A=this.data)==null?void 0:A.body,CYs)};
_.d.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Qr.Object.defineProperties(uQ.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
uQ.prototype.hideTimestampsChanged=uQ.prototype.hideTimestampsChanged;uQ.prototype.searchCleared=uQ.prototype.searchCleared;uQ.prototype.fireSearch=uQ.prototype.fireSearch;uQ.prototype.onReloadContinuationFinish=uQ.prototype.onReloadContinuationFinish;uQ.prototype.bodyChanged=uQ.prototype.bodyChanged;uQ.prototype.headerChanged=uQ.prototype.headerChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],uQ.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uQ.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uQ.prototype,"hideTimestamps",void 0);
_.E([_.C(),_.c("design:type",Object)],uQ.prototype,"isLoadingTranscripts",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],uQ.prototype,"darkerPanels",void 0);_.E([_.C(),_.c("design:type",Object)],uQ.prototype,"isError",void 0);_.E([_.iN("data.header"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uQ.prototype,"headerChanged",null);
_.E([_.I_("data.body"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uQ.prototype,"bodyChanged",null);_.E([_.Kc("yt-reload-continuation-finish"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uQ.prototype,"onReloadContinuationFinish",null);_.E([_.Kc("yt-transcript-search-box-search"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],uQ.prototype,"fireSearch",null);
_.E([_.Kc("yt-transcript-search-box-clear"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uQ.prototype,"searchCleared",null);_.E([_.iN("hideTimestamps"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],uQ.prototype,"hideTimestampsChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],uQ);
_.W(uQ,"ytd-transcript-search-panel-renderer",function(){if(cs$!==void 0)return cs$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return cs$=A},{mode:1});var ZS=function(){var A=_.q.apply(this,arguments)||this;A.player=null;A.playerPollJobId=0;return A};
_.O(ZS,_.q);_.d=ZS.prototype;_.d.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.d.onLoadReloadContinuation=function(A){_.K("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:A.target.data.continuation}}):(A={clickTrackingParams:A.target.data.clickTrackingParams,getTranscriptEndpoint:{params:A.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}}))};
_.d.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"}}}};
_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.d.attached=function(){this.updatePlayerListening()};
_.d.detached=function(){this.updatePlayerListening()};
_.d.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.d.startPlayerListening=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return(Q=_.BL())?b.yield(Q.getPlayerPromise(),2):b.return();A.player=b.yieldResult;A.playerPollJobId=_.j7.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3);
A.player.addEventListener("onCueRangeEnter",function(f){A.onCueRangeEnter(f)});
A.player.addEventListener("onCueRangeExit",function(f){A.onCueRangeExit(f)});
A.player.addEventListener("onStateChange",function(f){A.onPlayerStateChange(f)});
A.player.addEventListener("SEEK_TO",function(f){A.onPlayerSeek(f)});
_.Oi(b)})};
_.d.getPlayerVideoProgress=function(){var A=this;_.j7.cancelJob(this.playerPollJobId);if(this.player){var Q=this.player.getCurrentTime();_.pD(this.hostElement,"yt-player-time-changed",[Q])}this.playerPollJobId=_.j7.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3)};
_.d.stopPlayerListening=function(){this.player=null;_.j7.cancelJob(this.playerPollJobId)};
_.d.onPlayerStateChange=function(A){A===2&&this.removePendingCue()};
_.d.onPlayerSeek=function(A){var Q;if(Q=this.pendingReplayCueId)Q=this.pendingReplayCueId,Q=A===(_.K("web_transcript_cue_id_killswitch")?Number(Q):Number(Q.split("_")[1]));Q||this.removePendingCue()};
_.d.onCueRangeEnter=function(A){lU$(A)&&(this.pendingReplayCueId=A)};
_.d.onCueRangeExit=function(A){lU$(A)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.d.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.d.onYtTranscriptPlayerSeek=function(A){this.player&&this.player.seekTo(A,!0)};
_.d.onYtTranscriptPlayerReplay=function(A,Q){this.player&&(this.player.addCueRange(MAx(A),A,Q),this.player.seekTo(A,!0),this.player.playVideo())};
_.d.onYtTranscriptPlayerEdit=function(A,Q){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(MAx(A),A,Q),this.player.seekTo(A,!0))};
ZS.prototype.onLoadReloadContinuation=ZS.prototype.onLoadReloadContinuation;ZS.prototype.panelContentVisibleChanged=ZS.prototype.panelContentVisibleChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ZS.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ZS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ZS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],ZS.prototype,"panelContentVisible",void 0);_.E([_.iN("panelContentVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ZS.prototype,"panelContentVisibleChanged",null);
_.E([_.Kc("yt-load-reload-continuation"),_.c("design:type",Function),_.c("design:paramtypes",[Object]),_.c("design:returntype")],ZS.prototype,"onLoadReloadContinuation",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ZS);
_.W(ZS,"ytd-transcript-renderer",function(){if(E8Y!==void 0)return E8Y;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return E8Y=A},{mode:1});var Zpp;var ysn;var yz=function(){return _.q.apply(this,arguments)||this};
_.O(yz,_.q);yz.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.ST(this.hostElement,[this.data.clickCommand],this.hostElement))};
yz.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.NG)()+_.hJ)+"px)"};
yz.prototype.updateShouldHideFromBinding=function(A){this.shouldHide=A.detail.value};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yz.prototype,"rendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yz.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],yz.prototype,"shouldHide",void 0);_.E([_.h({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],yz);
_.W(yz,"ytd-ad-engagement-panel-banner-renderer",function(){if(ysn!==void 0)return ysn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ysn=A},{mode:_.UG("kevlar_poly_si_batch_j070")?1:2});var Y$T;var YM=function(){var A=_.q.apply(this,arguments)||this;A.modernPanels=_.K("kevlar_watch_modern_panels");A.buttonUpdate=_.K("web_modern_buttons");A.adsSemanticText=_.K("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.O(YM,_.q);YM.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.E([_.C(),_.c("design:type",Object)],YM.prototype,"data",void 0);_.E([_.C({computed:"computeHideDefaultAdBadge(data)"}),_.c("design:type",Boolean)],YM.prototype,"hideDefaultAdBadge",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YM.prototype,"modernPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YM.prototype,"buttonUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YM.prototype,"adsSemanticText",void 0);
_.E([_.h({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],YM);
_.W(YM,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Y$T!==void 0)return Y$T;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Y$T=A},{mode:1});var DsV;var DS=function(){var A=_.q.apply(this,arguments)||this;A.darkerPanels=_.K("web_watch_darker_panels");A.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");A.modernPanels=_.K("kevlar_watch_modern_panels");A.headerClickListener=function(Q){A.onHeaderClick(Q)};
A.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return A};
_.O(DS,_.q);_.d=DS.prototype;_.d.computeAdsInfoButton=function(){if(_.K("web_modern_buttons")){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.subtitleComplex,pMn))==null?void 0:Q.adInfoRenderer}};
_.d.updateHeaderClickListener=function(){var A,Q,b;((A=this.data)==null?0:A.navigationEndpoint)||((Q=this.data)==null?0:Q.onClickCommand)||_.V((b=this.data)==null?void 0:b.visibilityButton,_.u3)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.d.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}}}}}};
_.d.collapsedChanged=function(){var A;(A=this.data)!=null&&A.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.K("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.d.focus=function(A){var Q=this;this.titleElement&&_.j7.addJob(function(){_.Dg(Q.titleElement,A)},0,500)};
_.d.computeTitleAriaLabel=function(A){var Q=[];if(A.title){var b,f;Q.push(this.ytRendererBehavior.getSimpleString(A.title)||((b=A.title.accessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label))}A.contextualInfo&&Q.push(this.ytRendererBehavior.getSimpleString(A.contextualInfo));return Q.join(" ")};
_.d.onHeaderClick=function(A){this.shouldTriggerHeaderClick(A)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.ST(this.hostElement,[this.data.onClickCommand],this.hostElement)):(A=this.getVisibilityToggleButton())&&A.click())};
_.d.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var A=_.V(this.data.visibilityButton,_.wE)||_.V(this.data.visibilityButton,_.u3);A&&this.ytRendererBehavior.logExplicitClick(A)}};
_.d.getVisibilityToggleButton=function(){var A=_.Bj(this.hostElement).querySelector("#visibility-button").firstElementChild;return(A==null?void 0:A.is)==="ytd-toggle-button-renderer"?A:null};
_.d.shouldTriggerHeaderClick=function(A){return!_.TG(_.mW(A),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.d.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(A){A=_.V(A,_.Qyd);this.targetId&&(A==null?void 0:A.targetId)===this.targetId&&(A=A.navigationButton)&&this.set("data.navigationButton",A)};
_.Qr.Object.defineProperties(DS.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!!(((A=this.entity)==null?0:A.isActionButtonHidden)||this.hideActionButton)}}});
DS.prototype.collapsedChanged=DS.prototype.collapsedChanged;DS.prototype.updateHeaderClickListener=DS.prototype.updateHeaderClickListener;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],DS.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],DS.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],DS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],DS.prototype,"targetId",void 0);_.E([_.C(),_.c("design:type",Boolean)],DS.prototype,"collapsed",void 0);_.E([_.C(),_.c("design:type",Boolean)],DS.prototype,"hideActionButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],DS.prototype,"shortsPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],DS.prototype,"liveChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],DS.prototype,"learningChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],DS.prototype,"darkerPanels",void 0);_.E([_.V1("#title"),_.c("design:type",HTMLElement)],DS.prototype,"titleElement",void 0);_.E([_.V1("#header"),_.c("design:type",HTMLElement)],DS.prototype,"headerElement",void 0);
_.E([_.C({computed:"computeAdsInfoButton(data)"}),_.c("design:type",Object)],DS.prototype,"adsInfoButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],DS.prototype,"enableSqueezebackPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],DS.prototype,"enableAnchoredPanel",void 0);_.E([_.C({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(A,Q){return _.Me(A.entities,"engagementPanelTitleHeaderEntity",Q)}}),
_.c("design:type",Object)],DS.prototype,"entity",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],DS.prototype,"modernPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("targetId"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],DS.prototype,"adsSemanticText",null);_.E([_.iN("data","data.navigationEndpoint","data.onClickCommand"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],DS.prototype,"updateHeaderClickListener",null);
_.E([_.I_("collapsed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],DS.prototype,"collapsedChanged",null);_.E([_.H("entity","hideActionButton"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],DS.prototype,"isActionButtonHidden",null);_.E([_.h({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],DS);
_.W(DS,"ytd-engagement-panel-title-header-renderer",function(){if(DsV!==void 0)return DsV;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return DsV=A},{mode:1});var $sT;var $M=function(){return _.q.apply(this,arguments)||this};
_.O($M,_.q);$M.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$M.prototype,"data",void 0);_.E([_.h({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],$M);
_.W($M,"ytd-macro-markers-info-item-renderer",function(){if($sT!==void 0)return $sT;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $sT=A},{mode:1});var N$$;var Aop=function(A,Q,b,f,a,T){_.k$.call(this);var G=this;this.JSC$22571_containerElement=A;this.hostElement=Q;this.supportedSyncItems=b;this.syncEntityKey=f;this.options=a;this.renderLazyListItems=T;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;sTY(this);msh(this);this.JSC$22571_scrollAnimation=new _.sa(function(p){A.scrollTop=p});
_.SY(this,this.JSC$22571_scrollAnimation);this.addOnDisposeCallback(function(){G.exitBrowsingMode(!1);G.activeItem&&G.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.O(Aop,_.k$);var sTY=function(A){var Q=_.H1(_.fJ().resolve(_.u7),function(b){return b.entities.markersEngagementPanelSyncEntity||{}},function(b,f){var a;
b[A.syncEntityKey]!==f[A.syncEntityKey]&&((a=b[A.syncEntityKey])==null?void 0:a.activeItemIndex)!==void 0&&A.updatePanelActiveItem(b[A.syncEntityKey].activeItemIndex)});
A.unsubscribeFromTimedMarkersListSyncEntity=Q;A.addOnDisposeCallback(Q);QDw(A)},QDw=function(A){var Q=_.fJ().resolve(_.u7);
Q=_.ka4(Q.getState(),A.syncEntityKey);(Q==null?void 0:Q.activeItemIndex)!==void 0&&(Q=A.getItemByIndex(Q.activeItemIndex))&&A.setActiveItem(Q)},msh=function(A){var Q=new _.Ac(A.onScroll,50,A);
_.SY(A,Q);var b=function(){Q.fire()};
A.JSC$22571_containerElement.addEventListener("scroll",b);A.addOnDisposeCallback(function(){A.JSC$22571_containerElement.removeEventListener("scroll",b)})};
_.d=Aop.prototype;
_.d.updatePanelActiveItem=function(A){var Q=this.getItemByIndex(A);if(Q){if(this.setActiveItem(Q),this.contentVisible)if(this.browsingMode){var b;((b=this.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(A=bNd(this),Q.offsetTop<this.JSC$22571_containerElement.clientHeight+this.JSC$22571_containerElement.scrollTop&&A&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));fFs(this)}else this.scrollToItem(Q)}else _.Wv(new _.IO("Could not find "+this.supportedSyncItems+
" sync child to set active.",A,this.JSC$22571_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.d.getItemByIndex=function(A){var Q;(Q=this.renderLazyListItems)==null||Q.call(this,A);Q=this.JSC$22571_containerElement.querySelectorAll(this.supportedSyncItems);if(Q.length>A)return Q[A]};
_.d.setActiveItem=function(A){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));A.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=A};
_.d.scrollToItem=function(A){A=this.getScrollPositionForItem(A);this.JSC$22571_containerElement.scrollTop!==A&&this.JSC$22571_scrollAnimation.start(this.JSC$22571_containerElement.scrollTop,A,300)};
_.d.getScrollPositionForItem=function(A){if(this.JSC$22571_containerElement.querySelectorAll(this.supportedSyncItems)[0]===A)return 0;var Q,b=((Q=this.options)==null?0:Q.percentOffset)?this.JSC$22571_containerElement.clientHeight*this.options.percentOffset:0;A=_.Wl(A).y+this.JSC$22571_containerElement.scrollTop-(_.Wl(this.JSC$22571_containerElement).y+b);return Math.max(0,Math.min(A,this.JSC$22571_containerElement.scrollHeight-this.JSC$22571_containerElement.offsetHeight))};
_.d.onScroll=function(){this.activeItemBelowSyncPosition=bNd(this);if(this.activeItem&&!this.JSC$22571_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22571_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var A;switch((A=this.options)==null?void 0:A.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!aFY(this));fFs(this);break;default:this.enterBrowsingMode(!0)}}};
_.d.enterBrowsingMode=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1){if(Q.browsingMode)return a.return();Q.browsingMode=!0;A&&Q.hostElement.classList.add("browsing-mode");Q.playerExitBrowsingModeListener=function(){Q.exitBrowsingMode(!1)};
return a.yield(_.iJ(),2)}b=a.yieldResult;(f=b)==null||f.addEventListener("SEEK_TO",Q.playerExitBrowsingModeListener);_.Oi(a)})};
_.d.exitBrowsingMode=function(A){A=A===void 0?!0:A;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),A&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.d.removePlayerSeekListener=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1)return A.playerExitBrowsingModeListener?f.yield(_.iJ(),3):f.jumpTo(0);Q=f.yieldResult;(b=Q)==null||b.removeEventListener("SEEK_TO",A.playerExitBrowsingModeListener);A.playerExitBrowsingModeListener=void 0;_.Oi(f)})};
var fFs=function(A){var Q;((Q=A.options)==null?void 0:Q.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(aFY(A)?A.hostElement.classList.remove("browsing-mode"):A.activeItem&&A.hostElement.classList.add("browsing-mode"))},bNd=function(A){if(!A.activeItem)return!1;
var Q,b=((Q=A.options)==null?0:Q.percentOffset)?A.JSC$22571_containerElement.clientHeight*A.options.percentOffset:0;return A.activeItem.offsetTop>=A.JSC$22571_containerElement.scrollTop+b},aFY=function(A){if(!A.activeItem)return!1;
var Q=A.activeItem.offsetTop+14<=A.JSC$22571_containerElement.scrollTop+A.JSC$22571_containerElement.clientHeight;return A.activeItem.offsetTop+A.activeItem.clientHeight-14>=A.JSC$22571_containerElement.scrollTop&&Q};
Aop.prototype.panelContentVisibleChanged=function(A){(this.contentVisible=A)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Ti8=function(A,Q){A.syncEntityKey=Q;var b;(b=A.unsubscribeFromTimedMarkersListSyncEntity)==null||b.call(A);sTY(A)},dLs=function(A,Q){A.options=Q};var Np=function(){var A=_.q.apply(this,arguments)||this;A.browsingMode=!1;A.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return A};
_.O(Np,_.q);_.d=Np.prototype;_.d.activeItemChanged=function(){if(!_.K("synced_panel_scrolling_controller")){var A;((A=this.syncEntity)==null?void 0:A.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.d.created=function(){var A=this;_.K("synced_panel_scrolling_controller")||(this.JSC$22575_scrollAnimation=new _.sa(function(Q){A.contents.scrollTop=Q}),this.boundExitBrowsingMode=function(){A.exitBrowsingMode(!1)})};
_.d.detached=function(){if(_.K("synced_panel_scrolling_controller")){var A;(A=this.scrollController)==null||A.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.d.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"}}}};
_.d.dataChanged=function(){var A=this;_.K("synced_panel_scrolling_controller")?_.mL(this,function(){if(A.scrollController){var Q;(Q=A.scrollController)==null||Q.exitBrowsingMode(!1);var b,f,a;(f=A.scrollController)==null||Ti8(f,(a=(b=A.data)==null?void 0:b.syncModelEntityKey)!=null?a:"default-macro-markers-list-renderer-entity-key");var T,G,p;(p=A.scrollController)==null||dLs(p,{percentOffset:(T=A.data)==null?void 0:T.selectedItemAlignmentPercentOffset,floatingPillType:(G=A.data)==null?void 0:G.floatingPillType})}else{var P,
U,L,M;A.scrollController=new Aop(A.contents,A.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(M=(P=A.data)==null?void 0:P.syncModelEntityKey)!=null?M:"default-macro-markers-list-renderer-entity-key",{percentOffset:(U=A.data)==null?void 0:U.selectedItemAlignmentPercentOffset,floatingPillType:(L=A.data)==null?void 0:L.floatingPillType},function(l){A.renderLazyListItems(l)})}A.scrollController.panelContentVisibleChanged(!!A.panelContentVisible)}):this.exitBrowsingMode()};
_.d.computeButtonShape=function(){var A=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){A.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.d.computeSyncEnabled=function(A){return!(A==null||!A.syncButtonLabel)};
_.d.renderLazyListItems=function(A){for(var Q=this.contents.children,b=0,f=0;f<Q.length;f++){var a=void 0;(a=Q[f].ytLazyListBehavior)==null||a.fillRemainingListItems();var T=void 0,G=void 0;a=_.V((T=this.data)==null?void 0:(G=T.contents)==null?void 0:G[f],_.eO9);G=T=void 0;if((T=a)==null?0:(G=T.contents)==null?0:G.length)b+=a.contents.length;if(b>=A)break}};
_.d.getItemByIndex=function(A){this.renderLazyListItems(A);var Q=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(Q.length>A)return Q[A]};
_.d.setActiveItem=function(A){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);A.active!==void 0&&(A.active=!0);this.currentActiveItem=A};
_.d.handleSetActivePanelItemAction=function(A){if((A=_.V(A,fKs))&&this.panelTargetId===A.panelTargetId){A=A.itemIndex;if(_.K("synced_panel_scrolling_controller")){var Q,b;var f=(b=(Q=this.data)==null?void 0:Q.syncModelEntityKey)!=null?b:"default-macro-markers-list-renderer-entity-key"}else{var a;f=(a=this.data)==null?void 0:a.syncModelEntityKey}if(f){var T;((T=this.syncEntity)==null?void 0:T.activeItemIndex)!==A&&this.ytdReduxBehavior.dispatch(_.HL("markersEngagementPanelSyncEntity",f,{key:f,activeItemIndex:A}))}else this.updatePanelActiveItem(A)}};
_.d.updatePanelActiveItem=function(A){var Q=this.getItemByIndex(A);Q?(this.setActiveItem(Q),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(Q)):_.Wv(new _.IO("Could not find ytd-macro-markers-list-renderer sync child to set active.",A,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.d.scrollToItem=function(A){A=this.getScrollPositionForItem(A);this.contents.scrollTop!==A&&this.JSC$22575_scrollAnimation.start(this.contents.scrollTop,A,300)};
_.d.getScrollPositionForItem=function(A){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===A)return 0;A=_.Wl(A).y+this.contents.scrollTop-_.Wl(this.contents).y-this.getStickyHeaderHeight(A);return Math.min(A,this.contents.scrollHeight-this.contents.offsetHeight)};
_.d.getStickyHeaderHeight=function(A){if(A.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var Q,b,f;return(f=(Q=A.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(b=Q.header)==null?void 0:b.offsetHeight)!=null?f:0}return 0};
_.d.onScroll=function(){_.K("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22575_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.d.enterBrowsingMode=function(){var A=this;return _.B(function(Q){if(Q.nextAddress==1){if(A.browsingMode)return Q.return();A.browsingMode=!0;return Q.yield(_.p6().getPlayerPromise(),2)}A.player=Q.yieldResult;A.player.addEventListener("SEEK_TO",A.boundExitBrowsingMode);_.Oi(Q)})};
_.d.exitBrowsingMode=function(A){this.browsingMode&&(this.browsingMode=!1,(A===void 0||A)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.d.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.d.onSyncClick=function(){if(_.K("synced_panel_scrolling_controller")){var A;(A=this.scrollController)==null||A.exitBrowsingMode()}else this.exitBrowsingMode()};
_.d.panelContentVisibleChanged=function(){if(_.K("synced_panel_scrolling_controller")){var A;(A=this.scrollController)==null||A.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Np.prototype.panelContentVisibleChanged=Np.prototype.panelContentVisibleChanged;Np.prototype.dataChanged=Np.prototype.dataChanged;Np.prototype.activeItemChanged=Np.prototype.activeItemChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Np.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Np.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Np.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],Np.prototype,"useCustomColors",void 0);_.E([_.C({computed:"computeSyncEnabled(data)"}),_.c("design:type",Boolean)],Np.prototype,"syncEnabled",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],Np.prototype,"panelTargetId",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Np.prototype,"panelContentVisible",void 0);_.E([_.V1("#contents"),_.c("design:type",HTMLElement)],Np.prototype,"contents",void 0);_.E([_.V1("#sync-container"),_.c("design:type",HTMLElement)],Np.prototype,"syncContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Np.prototype,"browsingMode",void 0);
_.E([_.C({selectorArgs:["data.syncModelEntityKey"],selector:_.ka4}),_.c("design:type",Object)],Np.prototype,"syncEntity",void 0);_.E([_.iN("syncEntity.activeItemIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Np.prototype,"activeItemChanged",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Np.prototype,"dataChanged",null);
_.E([_.iN("panelContentVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Np.prototype,"panelContentVisibleChanged",null);_.E([_.h({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Np);
_.W(Np,"ytd-macro-markers-list-renderer",function(){if(N$$!==void 0)return N$$;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return N$$=A},{mode:1});var Fyc;var se=function(){return _.q.apply(this,arguments)||this};
_.O(se,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],se.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],se.prototype,"data",void 0);_.E([_.h({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],se);
_.W(se,"ytd-error-corrections-section-item-renderer",function(){if(Fyc!==void 0)return Fyc;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Fyc=A},{mode:1});var GOY;var mB=function(){return _.q.apply(this,arguments)||this};
_.O(mB,_.q);mB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],mB.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mB.prototype,"data",void 0);_.E([_.h({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],mB);
_.W(mB,"ytd-error-corrections-section-renderer",function(){if(GOY!==void 0)return GOY;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return GOY=A},{mode:1});var Bi$;var AL=function(){return _.q.apply(this,arguments)||this};
_.O(AL,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],AL.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],AL.prototype,"data",void 0);_.E([_.h({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],AL);
_.W(AL,"ytd-topic-link-renderer",function(){if(Bi$!==void 0)return Bi$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Bi$=A},{mode:1});var pax;var Q$=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("kevlar_modern_sd_v2");A.modernLockupV2=_.K("modernize_structured_description_playlist_lockups_v2");A.modernTypography=_.K("web_modern_typography");return A};
_.O(Q$,_.q);Q$.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Q$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Q$.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Q$.prototype,"modernLockupV2",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Q$.prototype,"modernTypography",void 0);_.E([_.h({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Q$);
_.W(Q$,"ytd-video-description-course-section-renderer",function(){if(pax!==void 0)return pax;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return pax=A},{mode:1});var PMV;var bq=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("kevlar_modern_sd_v2");A.modernTypography=_.K("web_modern_typography");return A};
_.O(bq,_.q);bq.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bq.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bq.prototype,"modernTypography",void 0);
_.E([_.h({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],bq);
_.W(bq,"ytd-video-description-files-section-renderer",function(){if(PMV!==void 0)return PMV;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return PMV=A},{mode:1});var Xaw;var fq=function(){return _.q.apply(this,arguments)||this};
_.O(fq,_.q);fq.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fq.prototype,"data",void 0);_.E([_.h({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],fq);
_.W(fq,"ytd-video-description-gaming-section-renderer",function(){if(Xaw!==void 0)return Xaw;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Xaw=A},{mode:1});var Sic;var aV=function(){var A=_.q.apply(this,arguments)||this;A.isExpanded=!1;return A};
_.O(aV,_.q);aV.prototype.computeHasDefaultMetadataEndpoint=function(A){var Q;A=A==null?void 0:(Q=A.defaultMetadata)==null?void 0:Q.runs;return!(!A||A.length!==1||!A[0].navigationEndpoint)};
aV.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Qr.Object.defineProperties(aV.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],aV.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],aV.prototype,"isExpanded",void 0);_.E([_.C({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],aV.prototype,"hasDefaultMetadataEndpoint",void 0);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],aV.prototype,"isExpandable",null);_.E([_.H("data","isExpandable","isExpanded"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],aV.prototype,"showExpandedMetadata",null);_.E([_.h({is:"ytd-info-row-renderer",disableElementRegistration:!0})],aV);
_.W(aV,"ytd-info-row-renderer",function(){if(Sic!==void 0)return Sic;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Sic=A},{mode:1});var UL8;var T6=function(){var A=_.q.apply(this,arguments)||this;A.currentIndex=0;A.supportComponentResize=!0;A.modern=_.K("kevlar_modern_sd_v2");A.JSC$22601_lastScrollContainerWidth=NaN;return A};
_.O(T6,_.q);_.d=T6.prototype;
_.d.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"}}}};
_.d.getItemsPath=function(){return"videoLockups"};
_.d.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.d.onIronResize=function(){this.updateVideoLockupStyles()};
_.d.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.d.updateVideoLockupStyles=function(){var A;this.JSC$22601_scrollContainer!==void 0&&(A=this.videoLockups)!=null&&A.length&&(A=this.JSC$22601_scrollContainer.clientWidth,A!==this.JSC$22601_lastScrollContainerWidth&&(this.JSC$22601_lastScrollContainerWidth=A,_.Uc(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(A*.8,415)+"px"}),_.Bn(this.hostElement,"iron-resize")))};
_.Qr.Object.defineProperties(T6.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var A=[],Q;if((Q=this.data)==null||!Q.carouselLockups)return A;Q=_.F(this.data.carouselLockups);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0;((f=_.V(b,jyY))==null?0:f.videoLockup)&&A.push(_.V(b,jyY).videoLockup)}return A}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoLockups)==null||!A.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var A=[],Q;if((Q=this.data)==null||!Q.carouselLockups)return A;var b;return(b=_.V(this.data.carouselLockups[this.scrollCount],jyY))==null?void 0:b.infoRows}}});
T6.prototype.dataChanged=T6.prototype.dataChanged;T6.prototype.onIronResize=T6.prototype.onIronResize;T6.prototype.hiddenChanged=T6.prototype.hiddenChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],T6.prototype,"componentBehavior",void 0);_.E([_.I(_.pa.YtdHorizontalListBehavior),_.c("design:type",Object)],T6.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],T6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],T6.prototype,"inlineStructuredDescription",void 0);_.E([_.C({value:2}),_.c("design:type",Number)],T6.prototype,"initialCount",void 0);_.E([_.C(),_.c("design:type",Object)],T6.prototype,"currentIndex",void 0);
_.E([_.C(),_.c("design:type",Number)],T6.prototype,"scrollCount",void 0);_.E([_.C(),_.c("design:type",Object)],T6.prototype,"supportComponentResize",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],T6.prototype,"contentHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],T6.prototype,"modern",void 0);_.E([_.V1("#scroll-container"),_.c("design:type",HTMLDivElement)],T6.prototype,"JSC$22601_scrollContainer",void 0);
_.E([_.iN("contentHidden"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],T6.prototype,"hiddenChanged",null);_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],T6.prototype,"videoLockups",null);_.E([_.H("videoLockups"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],T6.prototype,"hasVideoLockups",null);
_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],T6.prototype,"onIronResize",null);_.E([_.H("data","scrollCount"),_.c("design:type",Object),_.c("design:paramtypes",[])],T6.prototype,"infoRows",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],T6.prototype,"dataChanged",null);_.E([_.h({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],T6);
_.W(T6,"ytd-video-description-music-section-renderer",function(){if(UL8!==void 0)return UL8;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return UL8=A},{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var Lys;var dc=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("kevlar_modern_sd_v2");A.modernTypography=_.K("web_modern_typography");return A};
_.O(dc,_.q);dc.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.E([_.C({}),_.c("design:type",Object)],dc.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],dc.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],dc.prototype,"modernTypography",void 0);
_.E([_.h({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],dc);
_.W(dc,"ytd-video-description-transcript-section-renderer",function(){if(Lys!==void 0)return Lys;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Lys=A},{mode:1});var Mxw;_.pE(_.aP(function(A){var Q=_.I$(_.ICi,function(){return A.data().firstProviderLinkStatusEntityKey}),b=_.I$(_.ICi,function(){return A.data().secondProviderLinkStatusEntityKey}),f=function(){var a,T;
return((a=Q())==null?void 0:a.linked)||((T=b())==null?void 0:T.linked)};
return _.X("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.X(_.Rb,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return A.data().sectionTitle}}),_.X(_.Rb,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return f()?A.data().connectedMessage:A.data().notConnectedMessage}}),_.X(_.S,{cond:f,
then:function(){return _.X(_.WL,{data:function(){return A.data().connectedButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.X(_.S,{cond:function(){return!f()},
then:function(){return _.X(_.WL,{data:function(){return A.data().notConnectedButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Lj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;return _.X("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.X("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.X(_.Rb,{text:function(){return Q().sectionTitle}})),_.X("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.X(_.Rb,{text:function(){return Q().bodyHeader}})),_.X("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.X(_.Rb,{text:function(){return Q().bodyText}})),_.X(_.S,
{cond:function(){return Q().attributionText},
then:function(){return _.X("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.X(_.Rb,{text:function(){return Q().attributionText}}))}}))},"Mj"),"how-this-was-made-section-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){return _.X("yt-video-description-youchat-section-view-model",{class:_.O4("ytVideoDescriptionYouchatSectionViewModelHost")},_.X("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.X(_.Rb,{text:function(){return A.data().sectionTitle}})),_.X("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.X(_.Rb,{text:function(){return A.data().subHeaderText}})),_.X("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.X(_.J9,{data:function(){return _.V(A.data().primaryButton,
_.jJ)}})))},"Nj"),"yt-video-description-youchat-section-view-model",{props:{data:_.Qf}});var FO=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return A};
_.O(FO,_.q);_.d=FO.prototype;
_.d.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}}}}}};
_.d.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.d.dataChanged=function(){var A,Q;this.hasDescriptionOnly=!(((A=this.data)==null?void 0:(Q=A.items)==null?void 0:Q.length)!==1||!_.V(this.data.items[0],g3))};
_.d.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.d.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.d.autoFocusDescription=function(){var A;((A=_.fJ().resolve(_.bu(_.L3)))==null?0:A.isKeyBoardInUse())&&this.description&&_.Ng(this.description)};
_.d.resize=function(){if(_.K("kevlar_disable_sd_resize"))this.JSC$22609_cardList&&_.Bn(this.JSC$22609_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Bn(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Bn(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.d.scrollToSection=function(A){if(A=this.getSectionElement(A))_.pD(this.hostElement,"yt-scroll-to-watch-element",[A]),A.focus()};
_.d.getSectionElement=function(A){switch(A){case "infocards-item-section":var Q;return(Q=this.infocardsSection)!=null?Q:null;case "transcript-item-section":var b;return(b=this.transcriptSection)!=null?b:null;case "how-this-was-made-section-item-section":var f;return(f=this.howThisWasMadeSection)!=null?f:null;case "files-item-section":var a;return(a=this.filesSection)!=null?a:null;default:return null}};
_.d.handleSetActiveItemAction=function(A){var Q=_.V(A,fKs),b=Q&&(Q==null?void 0:Q.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22609_cardList;if(Q&&b){A=this.currentActiveChapter;var f=this.currentActiveProblem;Q=b==null?void 0:b.getItemByIndex(Q.itemIndex);var a=b=!0;Q&&(Q.active=!0,Q.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(b=A!==Q,a=!1,this.currentActiveChapter=Q):(Q==null?void 0:Q.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(b=!1,a=f!==Q,this.currentActiveProblem=Q));A&&b&&(A.active=!1);f&&a&&(f.active=!1)}};
_.Qr.Object.defineProperties(FO.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.K("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
FO.prototype.onYtExpanderMoreTapped=FO.prototype.onYtExpanderMoreTapped;FO.prototype.onHiddenChanged=FO.prototype.onHiddenChanged;FO.prototype.dataChanged=FO.prototype.dataChanged;FO.prototype.panelContentVisibleChanged=FO.prototype.panelContentVisibleChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],FO.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.eI),_.c("design:type",Object)],FO.prototype,"ironResizableBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],FO.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],FO.prototype,"panelContentVisible",void 0);_.E([_.C(),_.c("design:type",Boolean)],FO.prototype,"hasDescriptionOnly",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],FO.prototype,"inlineStructuredDescription",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],FO.prototype,"hidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],FO.prototype,"shortsPanel",void 0);_.E([_.C(),_.c("design:type",Object)],FO.prototype,"videoSummary",void 0);_.E([_.C(),_.c("design:type",Object)],FO.prototype,"merchShelf",void 0);
_.E([_.H("videoSummary"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],FO.prototype,"showVideoSummary",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],FO.prototype,"engagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],FO.prototype,"watchWhileSdp",void 0);_.E([_.V1("ytd-expandable-video-description-body-renderer"),_.c("design:type",Object)],FO.prototype,"description",void 0);
_.E([_.V1("ytd-horizontal-card-list-renderer"),_.c("design:type",Object)],FO.prototype,"JSC$22609_cardList",void 0);_.E([_.V1("ytd-horizontal-card-list-renderer[center-items]"),_.c("design:type",Object)],FO.prototype,"problemWalkthroughCardList",void 0);_.E([_.V1("ytd-shelf-renderer"),_.c("design:type",Object)],FO.prototype,"shelfSection",void 0);_.E([_.V1("ytd-video-description-music-section-renderer"),_.c("design:type",Object)],FO.prototype,"musicMetadataSection",void 0);
_.E([_.V1("ytd-video-description-infocards-section-renderer"),_.c("design:type",Object)],FO.prototype,"infocardsSection",void 0);_.E([_.V1("ytd-video-description-transcript-section-renderer"),_.c("design:type",Object)],FO.prototype,"transcriptSection",void 0);_.E([_.V1("how-this-was-made-section-view-model"),_.c("design:type",Object)],FO.prototype,"howThisWasMadeSection",void 0);_.E([_.V1("ytd-video-description-files-section-renderer"),_.c("design:type",Object)],FO.prototype,"filesSection",void 0);
_.E([_.iN("panelContentVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FO.prototype,"panelContentVisibleChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FO.prototype,"dataChanged",null);_.E([_.iN("hidden"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FO.prototype,"onHiddenChanged",null);
_.E([_.Kc("yt-expander-more-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FO.prototype,"onYtExpanderMoreTapped",null);_.E([_.h({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],FO);
_.W(FO,"ytd-structured-description-content-renderer",function(){if(Mxw!==void 0)return Mxw;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Mxw=A},{mode:2});var lFV;var Ky$;var G6=function(){return _.q.apply(this,arguments)||this};
_.O(G6,_.q);G6.prototype.computeAriaLabel=function(A){var Q,b;return(A==null?void 0:(Q=A.accessibility)==null?void 0:(b=Q.accessibilityData)==null?void 0:b.label)||_.JQ("LOADING",void 0,"Loading")};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],G6.prototype,"data",void 0);_.E([_.C({computed:"computeAriaLabel(data)"}),_.c("design:type",String)],G6.prototype,"ariaLabel",void 0);_.E([_.Ec({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],G6);
_.W(G6,"yt-content-loading-renderer",function(){if(Ky$===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;lFV===void 0&&(lFV=document.createElement("template"));var f=lFV;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Ky$=A}A=Ky$;return A},{mode:_.UG("kevlar_poly_si_batch_j043")?1:2});_.pE(_.aP(function(A){var Q=_.F(_.pz(!1,void 0,"QkPiwb")),b=Q.next().value,f=Q.next().value;Q=_.F(_.pz(!1,void 0,"AFECB"));var a=Q.next().value,T=Q.next().value;_.tz(function(){var P=_.V(A.data().collaboratePlaylistCollaborationSetting,O$s);P&&f(P.switchedOnByDefault);var U=_.V(A.data().allowNewCollaboratorsPlaylistCollaborationSetting,O$s);U&&T(U.switchedOnByDefault);if(!P&&!U||!P&&A.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")f(!0),T(!0)});
var G=function(P){f(P);T(P);var U=A.data().playlistCollaborationEntityKey||"";var L=_.m5().getState();(L=_.Me(L.entities,"playlistCollaborationEntity",U))&&(L==null?void 0:L.isCollaborative)===P||_.m5().dispatch(_.HL("playlistCollaborationEntity",U,Object.assign({},L,{isCollaborative:P})))},p=function(P){T(P)};
return _.X("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.X("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.X(_.WL,{data:function(){return A.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(P){return _.X(_.xZp,{data:P.data,
onSwitch:G})}})),_.X(_.S,{cond:b,
then:function(){return _.X(_.bd,null,_.X("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.X(_.WL,{data:function(){return A.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(P){return _.X(_.xZp,{data:P.data,
onSwitch:p,overrideDisabled:!1})}})),_.X(_.S,{cond:a,
then:function(){return _.X("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.X(_.WL,{data:function(){return A.data().copyLinkButton}},{buttonViewModel:_.J9}))}}),_.X("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.X(_.WL,{data:function(){return A.data().playlistCollaborators}},{contentListItemViewModel:_.oyK})))}}))},"Oj"),"playlist-collaboration-view-model",{props:{data:_.Qf}});var iNn=_.aP(function(A){var Q=A.data;var b=A.customCommandResolver;return _.X(_.bd,null,_.X("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.X(_.WL,{data:function(){return Q().adAvatar}},{adAvatarViewModel:function(f){return _.X(_.Og1,{data:f.data,
customCommandResolver:b})}})),_.X("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.X(_.S,{cond:function(){return Q().headline},
then:function(f){return _.X(_.Rb,{text:f,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.X("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.X(_.WL,{data:function(){return Q().adBadge}},{adBadgeViewModel:function(f){return _.X(_.Mo,{data:f.data,
hasDot:function(){return Q().primaryDetailsLine!==void 0},
customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.X(_.WL,{data:function(){return Q().primaryDetailsLine}},{adDetailsLineViewModel:function(f){return _.X(_.lH,{data:f.data,
customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Pj"),Joi=_.aP(function(A){var Q=A.data;
var b=A.customCommandResolver;return _.X("ad-avatar-lockup-view-model",{class:function(){var f;return((f=Q().interaction)==null?0:f.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.d_(_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb}),_.NI(function(){return Q().interaction},b)),
"aria-label":function(){var f,a;return(f=Q().interaction)==null?void 0:(a=f.accessibility)==null?void 0:a.label}},_.X(_.I8,null,_.X(_.nH,{when:function(){return Q().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.X(iNn,{data:Q,
customCommandResolver:b})}),_.X(_.kQ,null,function(){return null})))},"Qj");_.pE(_.aP(function(A){var Q=A.data;var b=A.panelContentVisibility;A=_.T9({visibilityCallback:function(T){var G,p=(G=Q().interaction)==null?void 0:G.onFirstVisible;T&&p&&_.D3(p)},
showOption:_.Fb});var f=_.NI(function(){return Q().interaction},KJn);
_.tk(function(){var T,G;if(G=_.zV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var p;G=(p=G())==null?void 0:p.onLayoutVisibleCallback}else G=null;(T=G)==null||T()});
var a=function(){return b()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.X("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.d_(A,f)},_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.X(_.S,{cond:_.Jwf("(min-width: "+((0,_.NG)()+_.hJ)+"px) or (max-width: 600px)"),then:function(){return _.X(_.WL,{data:function(){return Q().adImage}},{adImageViewModel:function(T){return _.X(_.nB,{data:T.data,
targetHeight:80,customCommandResolver:KJn})}})}})),_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.X(_.WL,{data:function(){return Q().adAvatarLockup}},{adAvatarLockupViewModel:function(T){return _.X(Joi,{data:T.data,
customCommandResolver:KJn})}})),_.X(_.S,{cond:a,
then:function(){return _.X(_.WL,{data:function(){return Q().adButton}},{adButtonViewModel:function(T){return _.X(_.BK,{data:T.data,
customCommandResolver:KJn})}})},
else:function(){return _.X(_.WL,{data:function(){return Q().menu}},{buttonViewModel:_.J9})}}),_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.X(_.WL,{data:function(){var T=_.V(Q().toggleButton,_.R$);
return{toggleButtonViewModel:Object.assign({},T,{isTogglingDisabled:!0,isToggled:a()})}}},{toggleButtonViewModel:_.eq})))))},"Rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Qf,
panelContentVisibility:_.Qf}});_.pE(_.aP(function(A){var Q=function(){return _.V(A.data().inputComposerViewModel,n1h)},b=function(){var n;
return((n=Q())==null?void 0:n.youchatPendingResponseEntityKey)||""},f=_.I$(_.$Z7,b),a=function(){var n;
return!((n=f())==null||!n.isPendingResponse)},T=_.F(_.pz(!0,void 0,"DR0q1d")),G=T.next().value,p=T.next().value,P=function(){return Q().sectionTargetId||"youchat_messages_section"};
T=_.mS("yt-chat-input-view-model");var U=_.st("textarea"),L=_.I$(FJ$,"chat_input_view_model_state"),M=GXd(),l=function(){var n;return!((n=L())==null||!n.value)};
_.tz(function(){var n;if(!l()&&((n=Q())==null?0:n.welcomeFeatureContinuation)){var t;((t=Q())==null?0:t.setPendingResponseOnWelcome)&&_.NRr(b())(!0);n={continuationCommand:{token:Q().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var g;t=String(Math.floor(((g=_.Jy())==null?void 0:g.getCurrentTime())||0)*1E3);g={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:t}};_.Z3(n,{form:{formData:g}});M(!0)}var e=P(),x;(x=_.fJ().resolve(_.bu(_.tX)))==null||
x.addEventListener("yt-navigate-start",function(){_.gz.remove(e);M(!1)},{once:!0})});
var J=function(){var n=U.value.value;U.value.value="";iFd(U.value);var t,g=((t=Q())==null?void 0:t.enableGradientColorBg)||!1;t=J4$(P(),n,g);_.Z3(t);var e=_.NRr(b()),x;_.D3(((x=Q())==null?void 0:x.onSubmitCommand)||{});e(!0);var D;x=String(Math.floor(((D=_.Jy())==null?void 0:D.getCurrentTime())||0)*1E3);var w;D={continuationCommand:{token:(w=Q())==null?void 0:w.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};n={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:n,
playerOffsetMs:x}};_.Z3(D,{form:{formData:n},commandController:{onSuccess:function(){e(!1)},
onServerError:function(){var u=P();_.Z3({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:u}}]}}});e(!1)}}})};
return _.X("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:T},_.X("div",{class:"chatInputViewModelChatInputWrapper"},_.X("form",{class:"chatInputViewModelChatInputForm"},_.X("textarea",{class:"chatInputViewModelChatInput",el:U,"on:keydown":_.IY(function(n){var t=a()||!1;iFd(U.value);t||n.key!=="Enter"||n.shiftKey||(n.preventDefault(),J());return!1}),
"on:keyup":_.IY(function(){p(U.value.value.length===0);return!1}),
placeholder:function(){var n,t;var g=_.V((t=Q())==null?void 0:t.inputFormField,AvV);return g==null?void 0:(n=g.contentProperties)==null?void 0:n.placeholderText},
rows:1}),_.X(_.J9,{data:function(){return _.V(A.data().sendButton,_.jJ)},
onClick:function(n){n.preventDefault();J();p(U.value.value.length===0)},
buttonOverrides:function(){return{disabled:G()||a()}}})),_.X(_.Rb,{className:"chatInputViewModelChatDisclaimer",
text:function(){var n;return(n=_.V(A.data().disclaimer,_.hO$))==null?void 0:n.text}})))},"Sj"),"yt-chat-input-view-model",{props:{data:_.Qf}});var VxY=["engagement-panel-clip-create","engagement-panel-clip-view"],ONd=0,B$=function(){var A=_.q.apply(this,arguments)||this;var Q;A.headerData=(Q=A.data)==null?void 0:Q.header;A.darkerPanels=_.K("web_watch_darker_panels");A.matchContentTheme=_.K("web_watch_panel_content_match_theme");A.disableAutoFill=!1;A.isFullscreen=!1;A.isTheaterMode=!1;A.modernPanels=_.K("kevlar_watch_modern_panels");A.liveChatReplyPanel=!1;A.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");A.disableBackdropFilter=
_.K("web_disable_backdrop_filter");A.trackEngagementPanelVisibility=_.K("web_watch_track_engagement_panel_visibility");A.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 A};
_.O(B$,_.q);_.d=B$.prototype;
_.d.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(A){var Q;return(A==null?void 0:(Q=A.webComponentHint)==null?void 0:Q.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"}}}};
_.d.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var A;if((A=this.hostElement.parentElement)==null?0:A.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.d.detached=function(){this.updateTheaterDisablement()};
_.d.showPanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.j7.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.d.maybeScrollToItemSection=function(A){var Q=this,b,f=A==null?void 0:(b=A.sectionListEngagementPanelExtras)==null?void 0:b.scrollToItemSectionIdentifier;f&&_.j7.addJob(function(){var a;(a=Q.sectionListRendererElement)==null||a.scrollToItemSection(f)},8)};
_.d.hidePanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.j7.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.d.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.d.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.d.updatePanel=function(A,Q,b,f){var a=this;if((A=A==null?void 0:A.engagementPanelSectionListRenderer)||f){if(A){f=A.header;var T=A.content,G=A.footer;(A=A.targetId)&&this.set("data.targetId",A);f&&this.set("data.header",f);T&&this.set("data.content",T);G&&this.set("data.footer",G)}else f&&(A=f.content,T=f.secondaryHeaderContent,(f=f.targetId)&&this.set("data.targetId",f),A&&this.set("data.content",A),T&&(this.secondaryHeaderData=T));this.updateChildVisibilityProperties();if(Q){var p;_.K("kevlar_update_panel_focus_scroll_killswitch")||
(p={preventScroll:!0});this.focus(p)}_.mL(this,function(){_.Bn(a.hostElement,"yt-refit");a.maybeScrollToItemSection(b)})}};
_.d.computeHeaderData=function(){var A,Q=(0,_.j2.unsafeClone)((A=this.data)==null?void 0:A.header);if(Q){A=new _.fU(Object.keys(Q)[0]);var b=_.V(Q,A),f=_.V(this.secondaryHeaderData,A);f&&_.EG(Q,A,Object.assign({},f,b))}return Q};
_.d.getReloadContinuation=function(){var A,Q,b,f=_.F(((A=this.data)==null?void 0:(Q=A.content)==null?void 0:(b=Q.sectionListRenderer)==null?void 0:b.continuations)||[]);for(A=f.next();!A.done;A=f.next())if(A=A.value,A.reloadContinuationData)return A.reloadContinuationData.continuation};
_.d.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var A;((A=this.data)==null?0:A.targetId)&&(A=this.contentElement.firstElementChild)&&A.setAttribute("panel-target-id",this.data.targetId)};
_.d.forwardPopupClosedToFlowRootRenderer=function(){var A=_.Bj(this.hostElement).querySelector("ytd-flow-root-renderer");if(A)A.onPopupClosed()};
_.d.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var A;if(!VxY.includes((A=this.theaterDisablementPanelIdentifier)!=null?A:""))if(A=_.K("web_watch_imax_theater_mode")&&this.isTheaterMode,A=_.K("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A,_.K("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||A){var Q;this.visibility=(Q=this.data)==null?void 0:Q.visibility;var b;this.trackEngagementPanelVisibility&&((b=this.data)==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var f,a,T,G;this.contentEmpty=!!(((f=this.data)==null?0:(a=f.content)==null?0:a.structuredDescriptionContentRenderer)&&Object.keys((T=this.data)==null?void 0:(G=T.content)==null?void 0:
G.structuredDescriptionContentRenderer).length===0);(Q=_.fJ().resolve(_.r8))&&Q.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.d.isTheaterModeChanged=function(){_.K("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.d.isFullscreenChanged=function(){_.K("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.d.focus=function(A){if(this.header)this.header.focus(A);else{var Q;(Q=_.Bj(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||Q.focus(A)}};
_.d.visibilityChanged=function(){if(!_.K("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var A=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",a=f||!this.lastVisibility,T,G,p,P=((T=this.data)==null?void 0:(G=T.identifier)==null?void 0:
G.tag)||((p=this.data)==null?void 0:p.panelIdentifier);if(A&&a){var U;((U=this.data)==null?0:U.onShowCommands)&&_.ST(this.hostElement,this.data.onShowCommands,this.hostElement);P&&_.QK().dispatch(_.G7({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:P}}))}else if(Q&&b){var L;((L=this.data)==null?0:L.onHideCommands)&&_.ST(this.hostElement,this.data.onHideCommands,this.hostElement);P&&_.QK().dispatch(_.G7({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:P}}))}A&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*ONd++));_.K("kevlar_watch_focus_on_engagement_panels")&&A&&f&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.d.notifyVisibilityChanged=function(A){var Q;_.Pn(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,A,(Q=this.data)==null?void 0:Q.targetId])};
_.d.updateTheaterDisablement=function(){if(!_.K("kevlar_watch_theater_disablement_killswitch")){var A=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&VxY.includes(A)&&!_.K("watch_next_grid_ignore_disallowed_panels")){var Q=_.zZ(_.QK().getState()),b=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";A!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():b?(this.originalTheaterState===void 0&&(this.originalTheaterState=Q,this.theaterDisablementPanelIdentifier=
A),Q&&_.pD(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.d.clearTheaterDisablement=function(){_.pD(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.d.updateChildVisibilityProperties=function(){this.hostElement||_.K("kevlar_panel_property_init_killswitch")||this._enableProperties();var A=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=A);var Q,b=(Q=this.headerElement)==null?void 0:Q.firstElementChild;if(b&&!this.adHeaderImageLockupViewModel){Q=A==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";b.collapsed=Q;b=_.Bj(b).querySelector("#visibility-button");if(!b)return;(b=b.firstElementChild)&&
b.polymerController.is==="ytd-toggle-button-renderer"&&b.polymerController.data.isToggled!==Q&&b.polymerController.set("data.isToggled",Q)}var f;if(Q=(f=this.contentElement)==null?void 0:f.firstElementChild)if(A&&A!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")Q.removeAttribute("panel-content-visible");else{Q.setAttribute("panel-content-visible","");var a;(a=Q.markDirty)==null||a.call(Q)}};
_.d.onYtChangeEngagementPanelVisibilityAction=function(A){var Q=this,b,f=(b=this.data)==null?void 0:b.targetId,a,T,G;b=((a=this.data)==null?void 0:(T=a.identifier)==null?void 0:T.tag)||((G=this.data)==null?void 0:G.panelIdentifier);var p=_.V(A,_.hVy),P;A=f&&(p==null?void 0:p.targetId)===f||b&&(p==null?void 0:(P=p.panelIdentifier)==null?void 0:P.tag)===b;this.dialog&&A&&(p==null?void 0:p.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(f==="engagement-panel-comments-section"?_.pD(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.pD(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",b]));!_.K("kevlar_use_engagement_panel_management_component")&&A&&(f=p.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!f?_.j7.addJob(function(){Q.visibility=p.visibility},2,this.hideDelayMs):this.visibility=p.visibility,p.visibility&&this.notifyVisibilityChanged(p.visibility))};
_.d.onYtScrollToEngagementPanelCommand=function(A){var Q,b=(Q=this.data)==null?void 0:Q.targetId,f,a,T;Q=((f=this.data)==null?void 0:(a=f.identifier)==null?void 0:a.tag)||((T=this.data)==null?void 0:T.panelIdentifier);A=_.V(A,_.DY9);var G;(b&&(A==null?void 0:A.targetId)===b||Q&&(A==null?void 0:(G=A.panelIdentifier)==null?void 0:G.tag)===Q)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.pD(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.d.attachVEs=function(A){var Q,b;(A==null?0:(Q=A.content)==null?0:(b=Q.productListRenderer)==null?0:b.trackingParams)&&_.IP().graftServerVe(A.content.productListRenderer.trackingParams);var f,a;(A==null?0:(f=A.content)==null?0:(a=f.transcriptRenderer)==null?0:a.trackingParams)&&_.IP().graftServerVe(A.content.transcriptRenderer.trackingParams)};
_.d.onYtUpdateEngagementPanelAction=function(A){var Q,b=(Q=this.data)==null?void 0:Q.targetId;A=_.V(A,T9$);b&&(A==null?void 0:A.targetId)===b&&(this.updatePanel({engagementPanelSectionListRenderer:{header:A==null?void 0:A.header,content:A==null?void 0:A.content}},!1),this.attachVEs(A))};
_.d.onYtShowEngagementPanelScrimAction=function(A){var Q,b=(Q=this.data)==null?void 0:Q.targetId;A=_.V(A,aKd);b&&(A==null?void 0:A.engagementPanelTargetId)===b&&(this.scrimmed=!0)};
_.d.onYtHideEngagementPanelScrimAction=function(A){var Q,b=(Q=this.data)==null?void 0:Q.targetId;A=_.V(A,b$T);b&&(A==null?void 0:A.engagementPanelTargetId)===b&&(this.scrimmed=!1)};
_.d.getIdentifier=function(){var A,Q,b;return((A=this.data)==null?void 0:A.panelIdentifier)||((Q=this.data)==null?void 0:(b=Q.identifier)==null?void 0:b.tag)};
_.d.getSurface=function(){var A,Q;return(A=this.data)==null?void 0:(Q=A.identifier)==null?void 0:Q.surface};
_.Qr.Object.defineProperties(B$.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var A=this.getIdentifier();return A==="engagement-panel-youchat"||A==="PAyouchat"}}});
B$.prototype.visibilityChanged=B$.prototype.visibilityChanged;B$.prototype.isFullscreenChanged=B$.prototype.isFullscreenChanged;B$.prototype.isTheaterModeChanged=B$.prototype.isTheaterModeChanged;B$.prototype.dataChanged=B$.prototype.dataChanged;B$.prototype.forwardPopupClosedToFlowRootRenderer=B$.prototype.forwardPopupClosedToFlowRootRenderer;B$.prototype.onYtRendererstamperFinished=B$.prototype.onYtRendererstamperFinished;
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],B$.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],B$.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],B$.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],B$.prototype,"data",void 0);
_.E([_.C({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.c("design:type",Object)],B$.prototype,"headerData",void 0);_.E([_.C(),_.c("design:type",Object)],B$.prototype,"secondaryHeaderData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"visibility",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"contentEmpty",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"scrimmed",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"dialog",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"dropdown",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"darkerPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"matchContentTheme",void 0);_.E([_.C(),_.c("design:type",Object)],B$.prototype,"disableAutoFill",void 0);
_.E([_.C({reflectToAttribute:!0,value:_.K("optimal_reading_width_comments_ep")}),_.c("design:type",Boolean)],B$.prototype,"optimalReadingWidthComments",void 0);_.E([_.C(),_.c("design:type",Number)],B$.prototype,"hideDelayMs",void 0);_.E([_.C({selector:_.w_,reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"isFullscreen",void 0);_.E([_.C({selector:_.zZ,reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"isTheaterMode",void 0);
_.E([_.C(),_.c("design:type",Number)],B$.prototype,"showDelayMs",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.targetId"),_.c("design:type",Object),_.c("design:paramtypes",[])],B$.prototype,"targetId",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],B$.prototype,"webSize",null);_.E([_.C(),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],B$.prototype,"hideFooterBorder",null);
_.E([_.C(),_.c("design:type",Object)],B$.prototype,"isWatch",void 0);_.E([_.C(),_.c("design:type",Object)],B$.prototype,"originalTheaterState",void 0);_.E([_.C(),_.c("design:type",Object)],B$.prototype,"theaterDisablementPanelIdentifier",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"modernPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"isWatchWhilePanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"shortsPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"liveChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],B$.prototype,"learningChatEngagementPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"liveChatReplyPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"enableAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B$.prototype,"disableBackdropFilter",void 0);_.E([_.C(),_.c("design:type",Object)],B$.prototype,"trackEngagementPanelVisibility",void 0);_.E([_.V1("#header"),_.c("design:type",HTMLElement)],B$.prototype,"headerElement",void 0);_.E([_.V1("#header > *"),_.c("design:type",HTMLElement)],B$.prototype,"header",void 0);
_.E([_.V1("ytd-section-list-renderer"),_.c("design:type",Object)],B$.prototype,"sectionListRendererElement",void 0);_.E([_.V1("panel-ad-header-image-lockup-view-model"),_.c("design:type",HTMLElement)],B$.prototype,"adHeaderImageLockupViewModel",void 0);_.E([_.V1("#content"),_.c("design:type",HTMLElement)],B$.prototype,"contentElement",void 0);
_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B$.prototype,"onYtRendererstamperFinished",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B$.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.E([_.I_("data","isFullscreen","isTheaterMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B$.prototype,"dataChanged",null);
_.E([_.iN("isTheaterMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B$.prototype,"isTheaterModeChanged",null);_.E([_.iN("isFullscreen"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B$.prototype,"isFullscreenChanged",null);_.E([_.iN("visibility"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B$.prototype,"visibilityChanged",null);
_.E([_.h({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],B$);
_.W(B$,"ytd-engagement-panel-section-list-renderer",function(){if(Zpp!==void 0)return Zpp;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Zpp=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var nmc;var pq=function(){var A=_.q.apply(this,arguments)||this;A.lastRenderedPanelIds=new Set;A.visiblePanels=[];A.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.O(pq,_.q);_.d=pq.prototype;_.d.dataChanged=function(){if(this.data){for(var A=[],Q=_.F(this.data),b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0,a=void 0,T=(f=b)==null?void 0:(a=f.engagementPanelSectionListRenderer)==null?void 0:a.visibility;a=f=void 0;((f=b)==null?0:(a=f.engagementPanelSectionListRenderer)==null?0:a.targetId)&&T!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.push(b)}this.visiblePanels=A}else this.visiblePanels=[]};
_.d.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}}};
_.d.withoutVisiblePanelById=function(A){return this.visiblePanels.filter(function(Q){var b;return((b=Q.engagementPanelSectionListRenderer)==null?void 0:b.targetId)!==A})};
_.d.onYtChangeEngagementPanelVisibilityAction=function(A){var Q=this,b=_.V(A,_.hVy);if(this.data&&(b==null?0:b.targetId)&&(b==null?0:b.visibility)){var f,a=(f=this.data.find(function(G){var p;return((p=G.engagementPanelSectionListRenderer)==null?void 0:p.targetId)===b.targetId}))==null?void 0:f.engagementPanelSectionListRenderer;
if(a){var T=this.withoutVisiblePanelById(b.targetId);b.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(A=this.data.find(function(G){var p;return((p=G.engagementPanelSectionListRenderer)==null?void 0:p.targetId)===b.targetId}))&&(T=[A].concat(_.ri(T)));
this.hideDelayMs&&b.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&T.length===0?_.j7.addJob(function(){a.visibility=b.visibility;Q.visiblePanels=T},10,this.hideDelayMs):(a.visibility=b.visibility,this.visiblePanels=T);
_.Pn(this.hostElement,"yt-engagement-panels-visible-changed",[T])}}};
_.d.onRendererstamperFinished=function(){var A=new Set(this.visiblePanels.map(function(Q){var b;return(b=Q.engagementPanelSectionListRenderer)==null?void 0:b.targetId}));
this.handlePanelVisibilityChange(A,this.lastRenderedPanelIds);this.lastRenderedPanelIds=A};
_.d.handlePanelVisibilityChange=function(A,Q){A=A===void 0?new Set:A;Q=Q===void 0?new Set:Q;if(this.data)for(var b=_.F(this.data),f=b.next();!f.done;f=b.next()){f=f.value;var a=void 0,T=void 0,G=(a=f)==null?void 0:(T=a.engagementPanelSectionListRenderer)==null?void 0:T.targetId;if(G&&(a=Q.has(G),T=A.has(G),G=void 0,!a&&T?(T=a=void 0,G=(a=f)==null?void 0:(T=a.engagementPanelSectionListRenderer)==null?void 0:T.onShowCommands):a&&!T&&(T=a=void 0,G=(a=f)==null?void 0:(T=a.engagementPanelSectionListRenderer)==
null?void 0:T.onHideCommands),G))for(f=_.F(G),G=f.next();!G.done;G=f.next())this.ytComponentBehavior.resolveCommand(G.value)}};
pq.prototype.onRendererstamperFinished=pq.prototype.onRendererstamperFinished;pq.prototype.dataChanged=pq.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],pq.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],pq.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pq.prototype,"lastRenderedPanelIds",void 0);_.E([_.C(),_.c("design:type",Number)],pq.prototype,"hideDelayMs",void 0);_.E([_.C(),_.c("design:type",Array)],pq.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Array)],pq.prototype,"visiblePanels",void 0);_.E([_.C(),_.c("design:type",Boolean)],pq.prototype,"isWatchWhilePanel",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pq.prototype,"dataChanged",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pq.prototype,"onRendererstamperFinished",null);_.E([_.h({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],pq);
_.W(pq,"ytd-watch-engagement-panels",function(){if(nmc!==void 0)return nmc;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return nmc=A},{mode:1});var kOs;var P$=function(){return _.q.apply(this,arguments)||this};
_.O(P$,_.q);P$.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Ao(_.Bj(this.hostElement).querySelector("#text"),_.krM(_.CYv,this.data.companionLegalText))};
P$.prototype.computeAutoScrollEnabled=function(A,Q){return A&&!Q};
P$.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
P$.prototype.onToggleTap=function(){this.expanded=!this.expanded};
P$.prototype.expandedChanged=P$.prototype.expandedChanged;P$.prototype.dataChanged=P$.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.LFN),_.c("design:type",Object)],P$.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],P$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],P$.prototype,"expanded",void 0);
_.E([_.C({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.c("design:type",Boolean)],P$.prototype,"autoScrollEnabled",void 0);_.E([_.C(),_.c("design:type",String)],P$.prototype,"expanderIcon",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],P$.prototype,"dataChanged",null);
_.E([_.iN("expanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],P$.prototype,"expandedChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],P$);
_.W(P$,"ytd-companion-legal-text-renderer",function(){if(kOs!==void 0)return kOs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return kOs=A},{mode:1});var IF$;var XO=function(){var A=_.q.apply(this,arguments)||this;A.buttonUpdate=_.K("web_modern_buttons");A.kevlarWatchGrid=_.K("kevlar_watch_grid");A.centerAlignDescription=_.K("action_companion_center_align_description");A.truncateDomain=_.K("action_companion_truncate_domain");return A};
_.O(XO,_.q);_.d=XO.prototype;_.d.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.d.getOnLayoutVisibleCallback=function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.d.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",XO.JSC$22655_DEFAULT_AD_BADGE_RENDERER);var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.d.getButtonRenderer=function(A){return A.actionButton&&_.V(A.actionButton,_.wE)?(delete _.V(A.actionButton,_.wE).navigationEndpoint,_.V(A.actionButton,_.wE)):{}};
_.d.onClick=function(A){var Q=this;if((!_.K("web_modern_buttons")||!_.TG(_.mW(A),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){A=_.BL();var b=this.getLayoutId();A&&b&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(f){(new _.gq(f)).executeCommand(Q.data.navigationEndpoint,b)}):_.K("kevlar_companion_resolve_command_killswitch")?_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.pD(this.hostElement,"yt-companion-ad-clicked",["action-companion",b])}};
_.Qr.Object.defineProperties(XO.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?0:(Q=A.detailsLine)==null?0:(b=Q.adRating)==null?0:b.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 A,Q,b,f;return((A=this.data)==null?0:(Q=A.detailsLine)==null?0:(b=Q.adRating)==null?0:(f=b.ratingIcon)==null?0:f.iconType)?_.K0(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;return((A=this.data)==null?0:(Q=A.detailsLine)==null?0:(b=Q.texts)==null?0:(f=b[0])==null?0:f.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 A,Q;return((A=this.data)==null?0:(Q=A.description)==null?0:Q.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var A=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return A?A.indexOf("/default_banner")!==-1:!0}}});
XO.prototype.onClick=XO.prototype.onClick;XO.prototype.dataChanged=XO.prototype.dataChanged;XO.JSC$22655_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],XO.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],XO.prototype,"rendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],XO.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],XO.prototype,"buttonUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],XO.prototype,"kevlarWatchGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],XO.prototype,"centerAlignDescription",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],XO.prototype,"truncateDomain",void 0);
_.E([_.C({computed:"computeButtonOverride(buttonUpdate)"}),_.c("design:type",Object)],XO.prototype,"buttonOverride",void 0);_.E([_.H("data.detailsLine.adRating.ratingText"),_.c("design:type",Object),_.c("design:paramtypes",[])],XO.prototype,"getRating",null);_.E([_.H("getRating"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],XO.prototype,"computeRatingHidden",null);
_.E([_.H("data.detailsLine.adRating.ratingIcon.iconType"),_.c("design:type",Object),_.c("design:paramtypes",[])],XO.prototype,"iconType",null);_.E([_.H("data.detailsLine.texts.0.text"),_.c("design:type",Object),_.c("design:paramtypes",[])],XO.prototype,"getDetailsLine",null);_.E([_.H("getDetailsLine"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],XO.prototype,"computeDetailsLineHidden",null);
_.E([_.H("data.description.text"),_.c("design:type",Object),_.c("design:paramtypes",[])],XO.prototype,"getDescriptionText",null);_.E([_.H("getDescriptionText"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],XO.prototype,"computeDescriptionTextHidden",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],XO.prototype,"interactionLoggingClientData",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],XO.prototype,"hideBanner",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XO.prototype,"dataChanged",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],XO.prototype,"onClick",null);_.E([_.h({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],XO);
_.W(XO,"ytd-action-companion-ad-renderer",function(){if(IF$!==void 0)return IF$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return IF$=A},{mode:_.UG("kevlar_poly_si_batch_j067")?1:2});var HNh;var CMn;var S9=function(){var A=_.q.apply(this,arguments)||this;A.buttonUpdate=_.K("web_modern_buttons");A.hideLegacyBanner=_.K("enable_dsa_one_click_ata_translators_infeed_elements");A.adInfoButtonStyle="mono";A.adInfoButtonType="text";A.noDotAdBadge=!0;return A};
_.O(S9,_.q);_.d=S9.prototype;_.d.getOnLayoutVisibleCallback=function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.d.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 A=this.data.image.thumbnail.thumbnails[0];this.imageSrc=A.url?_.hs(A.url):void 0;this.imageWidth=A.width||0;this.imageHeight=A.height||0}this.data.clickthroughEndpoint&&_.V(this.data.clickthroughEndpoint,_.y_)&&(A=_.V(this.data.clickthroughEndpoint,_.y_).url,_.K("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
A||"":A?(A=_.hs(A),this.clickThroughUrl=_.r$(A)):this.clickThroughUrl=void 0);(A=this.getOnLayoutVisibleCallback())&&A()}};
_.d.onClick=function(A){_.TG(_.mW(A),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(A)};
_.d.handleClick=function(){var A=this;this.data&&this.data.clickthroughEndpoint&&(_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(Q){A.macroReplacementBehavior.sendServiceRequestAction([Q])}),_.pD(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.d.onLoad=function(){_.Pn(this.hostElement,"yt-refit-popups-action")};
_.Qr.Object.defineProperties(S9.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
S9.prototype.onLoad=S9.prototype.onLoad;S9.prototype.onClick=S9.prototype.onClick;S9.prototype.dataChanged=S9.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],S9.prototype,"rendererBehavior",void 0);_.E([_.I(mN$.YtMacroReplacementBehavior),_.c("design:type",Object)],S9.prototype,"macroReplacementBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],S9.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],S9.prototype,"buttonUpdate",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],S9.prototype,"hideLegacyBanner",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],S9.prototype,"adInfoButtonStyle",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],S9.prototype,"adInfoButtonType",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],S9.prototype,"macros",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],S9.prototype,"interactionLoggingClientData",null);_.E([_.C(),_.c("design:type",String)],S9.prototype,"clickThroughUrl",void 0);_.E([_.C(),_.c("design:type",_.Cp)],S9.prototype,"imageSrc",void 0);_.E([_.C(),_.c("design:type",Number)],S9.prototype,"imageWidth",void 0);_.E([_.C(),_.c("design:type",Number)],S9.prototype,"imageHeight",void 0);_.E([_.C(),_.c("design:type",Object)],S9.prototype,"noDotAdBadge",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],S9.prototype,"dataChanged",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],S9.prototype,"onClick",null);_.E([_.Kc("load"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],S9.prototype,"onLoad",null);_.E([_.h({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],S9);
_.W(S9,"ytd-image-companion-renderer",function(){if(CMn!==void 0)return CMn;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return CMn=A},{mode:_.UG("kevlar_poly_si_batch_j067")?1:2});var qin;var UH=function(){return _.q.apply(this,arguments)||this};
_.O(UH,_.q);_.d=UH.prototype;_.d.dataChanged=function(){this.set("data.adBadge",UH.JSC$22664_DEFAULT_AD_BADGE_RENDERER);if(this.data){var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.d.getOnLayoutVisibleCallback=function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.d.onCompanionClicked=function(A){this.data&&(A.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.pD(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.d.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var A=_.BL(),Q=this.getLayoutId(),b=this.data.clickToAdvSiteEndpoint;A&&Q&&_.K("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(f){(new _.gq(f)).executeCommand(b,Q)}):_.Bn(this.hostElement,"yt-navigate",{endpoint:b})}};
_.d.sendTrackingPings=function(A){if(A&&A.length!==0&&A[0].loggingUrls&&(A=A[0].loggingUrls.map(this.getBaseUrl)))for(var Q=0;Q<A.length;Q++)_.zp(A[Q])};
_.d.getBaseUrl=function(A){return A.baseUrl||""};
_.Qr.Object.defineProperties(UH.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.zV("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
UH.prototype.onCompanionClicked=UH.prototype.onCompanionClicked;UH.prototype.dataChanged=UH.prototype.dataChanged;UH.JSC$22664_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UH.prototype,"data",void 0);_.E([_.V1("#title"),_.c("design:type",HTMLElement)],UH.prototype,"shopTitle",void 0);
_.E([_.I_("data.impressionEndpoints"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UH.prototype,"dataChanged",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],UH.prototype,"interactionLoggingClientData",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],UH.prototype,"onCompanionClicked",null);
_.E([_.h({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],UH);
_.W(UH,"ytd-shopping-companion-renderer",function(){if(qin!==void 0)return qin;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return qin=A},{mode:1});_.pE(_.aP(function(A){var Q=A.data;A=_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb});var b=_.NI(function(){return Q().interaction},VAw);
_.tk(function(){var f,a;a=(a=_.zV("yt.www.ads.eventcache.getLastCompanionData"))?(a=a())&&a.onLayoutVisibleCallback:null;(f=a)==null||f()});
return _.X("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.IY(function(f){_.Pn(f.currentTarget,"yt-refit-popups-action")}),
el:_.d_(A,b),"aria-label":function(){var f,a;return(f=Q().interaction)==null?void 0:(a=f.accessibility)==null?void 0:a.label}},_.X("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.X(_.WL,{data:function(){return Q().adImage}},{adImageViewModel:function(f){return _.X(_.nB,{data:f.data,
targetHeight:80,customCommandResolver:VAw})}})),_.X("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.X("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.X(_.WL,{data:function(){return Q().adBadge}},{adBadgeViewModel:function(f){return _.X(_.Mo,{data:f.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.X("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.X(_.WL,{data:function(){return Q().menu}},{buttonViewModel:_.J9}))))},"Tj"),"banner-image-layout-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;A=_.T9({visibilityCallback:function(f){var a,T=(a=Q().interaction)==null?void 0:a.onFirstVisible;f&&T&&_.D3(T)},
showOption:_.Fb});var b=_.NI(function(){return Q().interaction},OFT);
_.tk(function(){var f,a;a=(a=_.zV("yt.www.ads.eventcache.getLastCompanionData"))?(a=a())&&a.onLayoutVisibleCallback:null;(f=a)==null||f()});
return _.X("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.d_(A,b)},_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.X(_.WL,{data:function(){return Q().adImage}},{adImageViewModel:function(f){return _.X(_.nB,{data:f.data,
targetHeight:80,customCommandResolver:OFT})}})),_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.X(_.WL,{data:function(){return Q().adAvatarLockup}},{adAvatarLockupViewModel:function(f){return _.X(Joi,{data:f.data,
customCommandResolver:OFT})}})),_.X(_.WL,{data:function(){return Q().adButton}},{adButtonViewModel:function(f){return _.X(_.BK,{data:f.data,
customCommandResolver:OFT})}}),_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.X(_.WL,{data:function(){return Q().menu}},{buttonViewModel:_.J9}))))},"Uj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Qf}});var omx={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"},Lq=function(){var A=_.q.apply(this,arguments)||this;A.updateCompanionDataJobId=0;A.contentVideoId=null;A.player=null;A.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return A};
_.O(Lq,_.q);_.d=Lq.prototype;_.d.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:omx}}};
_.d.attached=function(){var A=this,Q=_.BL();Q&&Q.getPlayerPromise().then(function(b){A.getCachedDataAndListen(b)})};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.d.updateRendererStamper=function(){var A={};if(this.data)for(var Q in omx)if(this.data[Q]){A[Q]=this.data[Q];break}if(this.oneofRenderer!=void 0||Object.keys(A).length)this.oneofRenderer=A};
_.d.getCachedDataAndListen=function(A){var Q=this.retrieveCachedCompanionData();Q&&Object.keys(Q).length&&this.receiveCompanionData(Q);this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=A};
_.d.retrieveCachedCompanionData=function(){return _.by.yt&&_.by.yt.www&&_.by.yt.www.ads&&_.by.yt.www.ads.eventcache&&_.by.yt.www.ads.eventcache.getLastCompanionData?_.by.yt.www.ads.eventcache.getLastCompanionData():null};
_.d.receiveCompanionData=function(A){A&&Object.keys(A).length?(this.contentVideoId=A.contentVideoId,this.setCompanionData(A)):this.setCompanionData(A)};
_.d.setCompanionData=function(A){this.cancelPendingCompanionAdJobs();if(A){this.updateCompanionDataJobId=0;for(var Q in omx)omx.hasOwnProperty(Q)&&(this.data[Q]=void 0);A.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",A.shoppingCompanionCarouselRenderer):A.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",A.imageCompanionAdRenderer):A.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",A.actionCompanionAdRenderer),_.Pn(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Pn(this.hostElement,"yt-hide-tvfilm-offer-module")):A.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",A.bannerImageLayoutViewModel):A.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",A.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.d.dataChanged=function(){var A=this,Q=_.BL();Q?Q.getPlayerPromise().then(function(b){A.contentVideoId&&b.getVideoUrl().includes("v="+A.contentVideoId)||(A.cancelPendingCompanionAdJobs(),A.updateRendererStamper())}):_.wN(Error("xo"))};
_.d.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.j7.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.d.handleCompanionAdClicked=function(A,Q){this.player.onAdUxClicked(A,Q);this.player.pauseVideo()};
Lq.prototype.dataChanged=Lq.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Lq.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Lq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],Lq.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Lq.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Lq.prototype,"oneofRenderer",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lq.prototype,"dataChanged",null);_.E([_.h({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Lq);
_.W(Lq,"ytd-companion-slot-renderer",function(){if(HNh!==void 0)return HNh;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return HNh=A},{mode:_.UG("kevlar_poly_si_batch_j067")?
1:2});var txV;var Mc=function(){return _.q.apply(this,arguments)||this};
_.O(Mc,_.q);Mc.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Mc.prototype.dataChanged=Mc.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Mc.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Mc.prototype,"companionSlotData",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Mc.prototype,"dataChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Mc);
_.W(Mc,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(txV!==void 0)return txV;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return txV=A},{mode:1});var ro$;var lq=function(){var A=_.q.apply(this,arguments)||this;A.skinnyMode=!1;A.COMPACT_EVENT_COUNT=4;A.onShelfToggleButtonTap=function(){A.logTap(A.data);A.showingMore=!A.showingMore};
A.onShelfToggleButtonFocus=function(){A.showingMore||(A.logTap(A.data),A.showingMore=!0,_.mL(A,function(){var Q=A.COMPACT_EVENT_COUNT-1,b;(b=_.Bj(A.hostElement).querySelector("#event-"+Q))==null||b.focus()}))};
return A};
_.O(lq,_.q);_.d=lq.prototype;_.d.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.d.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.d.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.lN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.lN(this.infoTooltip,this.infoTooltip.hide))};
_.d.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.lN(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.lN(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.lN(this.infoTooltip,this.infoTooltip.hide))};
_.d.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)};
_.d.onShowingMoreChanged=function(){var A;this.showingMoreChanged((A=this.showingMore)!=null?A:!1)};
_.d.showingMoreChanged=function(A){var Q=this.get("data.events")||[];this.set("restEvents",Q.slice(1,A?Q.length:this.COMPACT_EVENT_COUNT).map(function(b){return b.ticketEventRenderer}));
Q.slice(0,A?Q.length:this.COMPACT_EVENT_COUNT).forEach(function(b){var f=_.WR();b=b.ticketEventRenderer.trackingParams;_.hx()&&f&&b&&(b=_.t8(b),f&&_.yI(f,b))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.d.computeAriaLabel=function(A){return A.subtitle1+", "+A.subtitle2};
_.d.logTap=function(A){_.hx()&&this.ytRendererBehavior.logExplicitClick(A)};
_.d.isKeyboardAction=function(A){return this.get("detail.x",A)===0&&this.get("detail.y",A)===0};
_.d.onFirstEventTap=function(A){A.target&&this.handleTap(A.target,this.firstEvent,this.isKeyboardAction(A))};
_.d.onTicketLinkTap=function(A){A.target&&this.handleTap(A.target,A.model.item,this.isKeyboardAction(A))};
_.d.handleTap=function(A,Q,b){if(Q.buttonCommand)if(Q.hasMultipleOffers)Object.assign(_.V(Q.buttonCommand,_.ju),{properties:{source:b?"keyboard":"tap"}}),this.logTap(Q),this.popupPositionTarget=A,_.ST(this.hostElement,[Q.buttonCommand],this.hostElement);else{var f;if((f=_.V(Q.buttonCommand,_.y_))==null?0:f.url)this.logTap(Q),_.Y8(window,_.V(Q.buttonCommand,_.y_).url)}};
lq.prototype.onShowingMoreChanged=lq.prototype.onShowingMoreChanged;lq.prototype.dataChanged=lq.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lq.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],lq.prototype,"firstEvent",void 0);_.E([_.C(),_.c("design:type",Object)],lq.prototype,"restEvents",void 0);_.E([_.C(),_.c("design:type",String)],lq.prototype,"imageUrl",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],lq.prototype,"showingMore",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],lq.prototype,"canShowMore",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],lq.prototype,"skinnyMode",void 0);_.E([_.C(),_.c("design:type",HTMLElement)],lq.prototype,"popupPositionTarget",void 0);_.E([_.V1("#banner-info-tooltip"),_.c("design:type",Object)],lq.prototype,"infoTooltip",void 0);
_.E([_.V1("#info-container"),_.c("design:type",HTMLElement)],lq.prototype,"infoContainer",void 0);_.E([_.V1("#shelf-toggler"),_.c("design:type",HTMLElement)],lq.prototype,"shelfToggleButton",void 0);_.E([_.V1("#separator"),_.c("design:type",HTMLDivElement)],lq.prototype,"separator",void 0);_.E([_.C(),_.c("design:type",String)],lq.prototype,"shelfTogglerLabelText",void 0);_.E([_.C(),_.c("design:type",String)],lq.prototype,"shelfTogglerIcon",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lq.prototype,"dataChanged",null);_.E([_.I_("showingMore"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lq.prototype,"onShowingMoreChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],lq);
_.W(lq,"ytd-ticket-shelf-renderer",function(){if(ro$!==void 0)return ro$;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ro$=A},{mode:1});var jD8;var RZc;var Kq=function(){return _.q.apply(this,arguments)||this};
_.O(Kq,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Kq.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Kq);
_.W(Kq,"ytd-comments-entry-point-message-renderer",function(){if(RZc!==void 0)return RZc;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return RZc=A},{mode:1});var gm8;var iq=function(){return _.q.apply(this,arguments)||this};
_.O(iq,_.q);_.Qr.Object.defineProperties(iq.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.teaserAvatar)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iq.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],iq.prototype,"hasAvatar",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],iq);
_.W(iq,"ytd-comments-entry-point-teaser-renderer",function(){if(gm8!==void 0)return gm8;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return gm8=A},{mode:1});var eZp;var JL=function(){return _.q.apply(this,arguments)||this};
_.O(JL,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JL.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],JL);
_.W(JL,"ytd-comments-simplebox-renderer",function(){if(eZp!==void 0)return eZp;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return eZp=A},{mode:1});var V$=function(){var A=_.q.apply(this,arguments)||this;A.fullHeight=!_.K("comment_teaser_full_height_kill_switch")&&_.K("kevlar_watch_grid");return A};
_.O(V$,_.q);V$.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"}}}};
V$.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
V$.prototype.onTap=function(){var A=this.tapCommand;A&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(A))};
V$.prototype.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.Qr.Object.defineProperties(V$.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.onTap)return this.data.onTap;var Q,b;if(((Q=this.data)==null?0:Q.teaserContent)||((b=this.data)==null?0:b.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
V$.prototype.onKeyUp=V$.prototype.onKeyUp;V$.prototype.onTap=V$.prototype.onTap;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],V$.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],V$.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],V$.prototype,"fullHeight",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],V$.prototype,"tapCommand",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],V$.prototype,"simpleboxPlaceholder",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V$.prototype,"hasSimpleboxPlaceholder",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],V$.prototype,"simpleboxAvatar",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],V$.prototype,"teaserContent",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V$.prototype,"hasTeaserContent",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],V$.prototype,"teaserAvatar",null);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V$.prototype,"hasTeaserAvatar",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],V$.prototype,"messageText",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],V$.prototype,"contentRenderer",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V$.prototype,"hasContents",null);
_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],V$.prototype,"hasContentRenderer",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],V$.prototype,"onTap",null);_.E([_.Kc("keypress"),_.c("design:type",Function),_.c("design:paramtypes",[_.Vt]),_.c("design:returntype")],V$.prototype,"onKeyUp",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],V$);
_.W(V$,"ytd-comments-entry-point-header-renderer",function(){if(jD8!==void 0)return jD8;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return jD8=A},{mode:1});var hZ$;_.K("web_enable_sink_animated_rolling_character_and_number")?_.pE(_.va1,"yt-animated-rolling-number",{props:{numberText:_.Qf,numberValue:_.Qf,heightPx:_.Qf,fontSizeMultiplier:_.Qf,shouldAnimate:_.Qf,forceRollUp:_.Qf}}):_.KE(_.Kvy,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var WyV=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),vms={numberText:"",heightPx:2*WyV,shouldAnimate:!1},OH=function(){var A=_.q.apply(this,arguments)||this;A.usingAnimatedComponents=!0;A.wasDetailed=!1;A.JSC$22701_browserSupportsAnimation=_.K("web_supports_animations_api");A.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};A.detailed=!1;A.shouldAnimate=!1;A.viewCountProps=vms;A.dateTextProps=
vms;A.metadataBadgesInDescription=_.K("web_metadata_badges_in_description");return A};
_.O(OH,_.q);_.d=OH.prototype;_.d.resetAnimationState=function(){this.shouldAnimate=!1};
_.d.updateDynamicMetadata=function(){if(this.JSC$22701_browserSupportsAnimation){if(!this.detailed){var A,Q,b,f;var a=(A=this.videoPrimaryInfoRenderer)==null?void 0:(Q=A.viewCount)==null?void 0:(b=Q.videoViewCountRenderer)==null?void 0:(f=b.extraShortViewCount)==null?void 0:f.simpleText;var T,G,p,P;var U=(T=this.videoPrimaryInfoRenderer)==null?void 0:(G=T.viewCount)==null?void 0:(p=G.videoViewCountRenderer)==null?void 0:(P=p.shortViewCount)==null?void 0:P.simpleText}if(!U){var L,M,l,J;a=(L=this.videoPrimaryInfoRenderer)==
null?void 0:(M=L.viewCount)==null?void 0:(l=M.videoViewCountRenderer)==null?void 0:(J=l.unlabeledViewCountValue)==null?void 0:J.simpleText;var n,t,g,e;U=(n=this.videoPrimaryInfoRenderer)==null?void 0:(t=n.viewCount)==null?void 0:(g=t.videoViewCountRenderer)==null?void 0:(e=g.viewCount)==null?void 0:e.simpleText}var x,D,w;A=Number((x=this.videoPrimaryInfoRenderer)==null?void 0:(D=x.viewCount)==null?void 0:(w=D.videoViewCountRenderer)==null?void 0:w.originalViewCount);var u,y;x=(u=this.videoPrimaryInfoRenderer)==
null?void 0:(y=u.relativeDateText)==null?void 0:y.simpleText;var a9;u=!((a9=this.videoPrimaryInfoRenderer)==null||!a9.relativeDateText);if(a&&U&&A&&(x||!u)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;a9=U.split(new RegExp("("+a+")"));a=qbT(a9[0]);var pF;U={numberText:(pF=a9[1])!=null?pF:"",numberValue:A,heightPx:2*WyV,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Ub;pF=((Ub=a9[2])!=null?Ub:"")+"  ";this.setViewCount(U,a,qbT(pF));
if(!this.detailed&&u){a=x.split(/(\d+)/);Ub=qbT(a[0]);var Ob;pF={numberText:(Ob=a[1])!=null?Ob:"",heightPx:2*WyV,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var I9;Ob=((I9=a[2])!=null?I9:"")+"  ";this.setDateText(pF,Ub,qbT(Ob))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.d.setViewCount=function(A,Q,b){_.mO(Q)!==_.mO(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=Q);this.viewCountProps.numberText!==(A==null?void 0:A.numberText)&&(this.viewCountProps=A||vms);_.mO(b)!==_.mO(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=b)};
_.d.setDateText=function(A,Q,b){_.mO(Q)!==_.mO(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=Q);this.dateTextProps.numberText!==(A==null?void 0:A.numberText)&&(this.dateTextProps=A||vms);_.mO(b)!==_.mO(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=b)};
_.d.onYtUpdateViewershipAction=function(A){this.videoPrimaryInfoRenderer&&(_.V(A,rvc).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.V(A,rvc).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.V(A,rvc).viewCount)))};
_.d.onYtUpdateDateTextAction=function(A){if(this.videoPrimaryInfoRenderer){A=_.V(A,_.o1V).dateText;this.shouldAnimate=!0;var Q;((Q=this.videoPrimaryInfoRenderer)==null?0:Q.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",A):this.set("videoPrimaryInfoRenderer.dateText",A)}};
_.Qr.Object.defineProperties(OH.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Cyh(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.mO(Cyh(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mO(this.viewCountPreNumberText),this.viewCountProps.numberText,_.mO(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.mO(this.dateTextPreNumberText),this.dateTextProps.numberText,_.mO(this.dateTextPostNumberText)].join("")}}});
OH.prototype.updateDynamicMetadata=OH.prototype.updateDynamicMetadata;OH.prototype.resetAnimationState=OH.prototype.resetAnimationState;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],OH.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],OH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],OH.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"detailed",void 0);_.E([_.C(),_.c("design:type",Object)],OH.prototype,"shouldAnimate",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"viewCountPreNumberText",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"viewCountProps",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"viewCountPostNumberText",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"dateTextPreNumberText",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"dateTextProps",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"dateTextPostNumberText",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],OH.prototype,"metadataBadgesInDescription",void 0);_.E([_.H("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.c("design:type",Object),_.c("design:paramtypes",[])],OH.prototype,"infoText",null);
_.E([_.H("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.c("design:type",String),_.c("design:paramtypes",[])],OH.prototype,"descriptionInfoTooltipText",null);_.E([_.H("detailed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],OH.prototype,"showDescriptionInfoTooltip",null);
_.E([_.H("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.c("design:type",String),_.c("design:paramtypes",[])],OH.prototype,"animatedViewCountAccessibilityLabel",null);_.E([_.H("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.c("design:type",String),_.c("design:paramtypes",[])],OH.prototype,"animatedDateTextAccessibilityLabel",null);
_.E([_.iN("videoPrimaryInfoRenderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OH.prototype,"resetAnimationState",null);_.E([_.iN("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OH.prototype,"updateDynamicMetadata",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-watch-info-text"})],OH);
_.W(OH,"ytd-watch-info-text",function(){if(hZ$!==void 0)return hZ$;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return hZ$=A},{mode:1});var Emn;var xLp="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var coh=_.aP(function(A){var Q=A.data;var b=A.setTapCommand;_.H_(function(){var f=_.ue(Q().onTap);b(f)},"X4onJd");
return _.X("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.X(_.WL,{data:function(){return Q().avatar}},{avatarViewModel:_.Wm}),_.X("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.X("span",null,function(){return Q().simpleboxText})))},"Vj");var zZV=_.aP(function(A){return _.X("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.X(_.S,{cond:function(){return _.V(A.data().avatar,_.yh)},
then:function(Q){return _.X(_.Wm,{data:Q,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.X("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.X(_.Rb,{text:function(){return A.data().teaserText}})))},"Wj");var waw=_.aP(function(A){var Q=A.data;var b=A.setTapCommand;_.H_(function(){var f=_.ue(Q().onTap);b(f)},"PmAol");
return _.X("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.X(_.WL,{data:function(){return Q().teasers}},{commentsEntryPointTeaserViewModel:zZV}))},"Xj");var uTs=_.aP(function(A){var Q=A.data;var b=A.setTapCommand;_.H_(function(){var f=_.ue(Q().onTap);b(f)},"Nh3Hjd");
return _.X("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.X(_.Rb,{text:function(){return Q().messageText}}))},"Yj");var ZNd=_.aP(function(A){var Q=A.data;var b=A.setTapCommand;var f=A.isDisabled;_.H_(function(){var a=(f==null?0:f())?void 0:_.ue(Q().onTap);b(a)},"omeiWe");
return _.X("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.X(_.oY,{icon:function(){return Q().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.X(_.S,{cond:function(){return Q().image},
then:function(a){return _.X(_.aY,{data:a,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.X(_.Rb,{text:function(){return Q().text},
className:function(){return Q().image||Q().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.X(_.WL,{data:function(){return Q().button}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:f==null?void 0:f()}}})}}))},"Zj");var yop=_.aP(function(A){var Q=A.data;var b=A.itemIndex;var f=A.selectedIndex;var a=A.indexUpdatedCallback;var T=A.observer;A=A.title;var G=_.st("yt-carousel-item-view-model",function(M){T&&T().observe(M)}),p=function(M){b()===f()&&a(M)},P=_.Zc(aUx),U=_.Zc(_.PKC),L=function(){var M,l,J;
return((M=Q())==null?void 0:M.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!P()||((l=Q())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&U().includes("PAposts_by_host")||((J=Q())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&U().includes("PAyouchat")};
return _.X("yt-carousel-item-view-model",{el:G,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":A},_.X(_.WL,{data:function(){var M,l;return(l=(M=_.V(Q().carouselItem,mfw))==null?void 0:M.textCarousel)!=null?l:Q().carouselItem}},{textCarouselItemViewModel:function(M){return _.X(ZNd,{data:M.data,
setTapCommand:p,isDisabled:L})},
commentTeaserCarouselItemViewModel:function(M){return _.X(waw,{data:M.data,setTapCommand:p})},
commentInputBoxCarouselItemViewModel:function(M){return _.X(coh,{data:M.data,setTapCommand:p})},
commentsEntryPointMessageViewModel:function(M){return _.X(uTs,{data:M.data,setTapCommand:p})}}))},"$j");var YiV=_.aP(function(A){var Q=A.numDots;var b=A.activeIndex;return _.X("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.X(_.Op,{each:function(){return Array.from({length:Q()})},
keyBy:"INDEX"},function(f,a){return _.X("div",{class:function(){var T={};return _.nE("ytCarouselDotsShapeDot",(T.ytCarouselDotsShapeDotActive=a===b(),T))}})}))},"ak");var DLY=_.aP(function(A){var Q=A.data;var b=A.handleCarouselNavigation;var f=A.numItems;var a=A.selectedIndex;var T=function(){return{disabled:a()===0}},G=function(){return{disabled:a()===f()-1}};
return _.X("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.X("div",null,_.X("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return Q().title}),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(p){return _.X("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return Q().subtitleAccessibilityText}},p)}})),_.X(_.S,{cond:function(){return f()>1},
then:function(){return _.X("div",{class:"ytCarouselTitleViewModelNavigation"},_.X(YiV,{numDots:f,activeIndex:a}),_.X(_.S,{cond:function(){return Q().previousButton},
then:function(p){return _.X(_.WL,{data:p},{buttonViewModel:function(P){return _.X(_.J9,{data:P.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return b(-1)},
buttonOverrides:T})}})}}),_.X(_.S,{cond:function(){return Q().nextButton},
then:function(p){return _.X(_.WL,{data:p},{buttonViewModel:function(P){return _.X(_.J9,{data:P.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return b(1)},
buttonOverrides:G})}})}}))}}))},"bk");_.pE(_.aP(function(A){var Q=A.data;var b,f=_.st("yt-video-metadata-carousel-view-model"),a=_.st("div",function(u){var y=function(){var a9=u.offsetWidth*t(),pF=24*(t()-1);l(a9+pF)};
y();window.ResizeObserver&&(b=new ResizeObserver(y),b.observe(u))}),T=_.vG("HTML_DIR")==="rtl",G=!1,p=0,P=0;
A=_.F(_.pz(0,void 0,"fCZdg"));var U=A.next().value,L=A.next().value;A=_.F(_.pz(0,void 0,"FQiAle"));var M=A.next().value,l=A.next().value;A=_.F(_.pz(!1,void 0,"O4owzd"));var J=A.next().value,n=A.next().value,t=function(){var u,y,a9;return(a9=(u=Q())==null?void 0:(y=u.carouselTitles)==null?void 0:y.length)!=null?a9:0},g=function(){a.value&&a.value.scrollLeft!==p&&L((T?a.value.scrollLeft<p:a.value.scrollLeft>p)?Math.min(U()+1,t()-1):Math.max(U()-1,0))},e;
window.IntersectionObserver&&(e=new IntersectionObserver(function(u){u=_.F(u);for(var y=u.next();!y.done;y=u.next())if(y.value.isIntersecting){if(G){G=!1;break}g()}else L(P)},{threshold:.2}));
_.H_(function(){if(a.value){var u=(T?-1:1)*(M()/t()+12)*(J()&&e?P:U());typeof a.value.scrollTo==="function"?a.value.scrollTo({left:u,behavior:"smooth"}):a.value.scrollLeft=u;p=u;P=J()&&e?P:U()}},"oi9Jzd");
var x,D=function(u){x=u};
_.Cz(function(){var u;(u=b)==null||u.disconnect();var y;(y=e)==null||y.disconnect()});
var w=function(u){u=U()+u;u>=0&&u<t()&&(G=!0,L(u))};
return _.X("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:f,"on:click":_.IY(function(u){if(_.zG(_.cL(u),f.value,["BUTTON".toString()])||!x)return!1;_.fJ().resolve(_.de).resolveCommand(x,{forceClickLogging:!0});return!1}),
"on:touchstart":_.IY(function(){n(!0);return!1}),
"on:touchend":_.IY(function(){e||g();n(!1);return!1}),
hidden:function(){var u,y;return!((u=Q())==null?0:(y=u.carouselItems)==null?0:y.length)}},_.X("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.X(_.S,{cond:function(){return Q().carouselTitles},
then:function(u){return _.X(_.WL,{data:function(){return u()[J()&&e?P:U()]}},{carouselTitleViewModel:function(y){return _.X(DLY,{data:y.data,
handleCarouselNavigation:w,numItems:t,selectedIndex:U})}})}})),_.X("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:a},_.X("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+M()+"px;"}},_.X(_.S,{cond:function(){return Q().carouselItems},
then:function(u){return _.X(_.Op,{each:u},function(y,a9){return _.X(_.WL,{data:function(){return y}},{carouselItemViewModel:function(pF){return _.X(yop,{data:pF.data,
itemIndex:a9,selectedIndex:U,indexUpdatedCallback:D,observer:e,title:function(){a:{var Ub=a9();var Ob,I9=(Ob=Q())==null?void 0:Ob.carouselTitles;if(I9&&(Ub=I9[Ub])){var iy;Ub=(iy=_.V(Ub,s9T))==null?void 0:iy.title;break a}Ub=void 0}return Ub}})}})})}}))))},"ck"),"yt-video-metadata-carousel-view-model",{props:{data:_.Qf}});var $LT=_.K("web_action_buttons_update_owner_width")?32:12,nq=function(){var A=_.q.apply(this,arguments)||this;A.isHovering=!1;A.enableColorSampling=_.K("web_delhi_colorful_sd");A.metadataBadgesInDescription=_.K("web_metadata_badges_in_description");A.descriptionCollapsed=!0;A.useFadedScrimDescription=_.K("kevlar_enable_faded_scrim_on_description");A.skinnyMode=!1;A.playlist=!1;A.isDark=document.documentElement.hasAttribute("dark");A.disableVideoOwnerOnTap=_.K("swatchie_video_owner_on_tap_ks");A.swatcherooDelayLoad=
_.K("swatcheroo_enable_ghost_cards");A.primaryMenuWidth=0;A.videoId="";A.titleHeadlineXs=_.K("web_watch_typography_title_headline_xs");A.titleHeadlineS=_.K("web_watch_typography_title_headline_s");A.titleHeadlineM=_.K("web_watch_typography_title_headline_m");A.titleHashtagBlackLinkified=_.K("web_title_hashtag_black_linkified");A.titleHashtagGreyLinkified=_.K("web_title_hashtag_grey_linkified");A.actionButtonsUpdateOwnerWidth=_.K("web_action_buttons_update_owner_width");A.shouldForceIconOnly=!1;A.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};A.isFullscreen=!1;A.isTheaterMode=!1;return A};
_.O(nq,_.q);_.d=nq.prototype;_.d.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.d.updateOwnerAndDescriptionPosition=function(){_.K("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Rl(this.bottomRowElement,this.ownerElement)):(_.Rl(this.bottomRowElement,this.descriptionElement),_.Rl(this.topRowElement,this.ownerElement)))};
_.d.titleOnTap=function(A){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;((Q=window.getSelection())==null?0:Q.toString().length)||this.handleExpandDescriptionCommands()}};
_.d.videoOwnerOnTap=function(A){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.d.detached=function(){var A=this,Q;return _.B(function(b){(Q=A.resizeObserver)==null||Q.disconnect();_.Oi(b)})};
_.d.maybeAttachResizeObserver=function(){var A=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Ac(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){A.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.d.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var A=this.hostElement.clientWidth,Q=Math.max(this.largerItemWrap?400:350,A/2-$LT);if(_.K("web_action_buttons_update_owner_width")){var b;Q=(((b=document.getElementById("owner"))==null?void 0:b.clientWidth)||0)+$LT}this.actionsOnSeparateLine=this.primaryMenuWidth>A-Q?!0:!1}};
_.d.stripAttributedDescription=function(A){return{content:A.content.replace(/[\r\n]{2,}/g,"\n")}};
_.d.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.K("web_modern_buttons"),forceIconButton:!_.K("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:_.K("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"}}}};
_.d.videoPrimaryInfoRendererChanged=function(){var A;if((A=this.videoPrimaryInfoRenderer)==null?0:A.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.d.videoSecondaryInfoRendererChanged=function(){var A,Q;(Q=(A=this.descriptionInlineExpander).collapse)==null||Q.call(A);this.descriptionExpandClientVe=_.K6(110509);this.descriptionCollapseClientVe=_.K6(110510);A=_.WR();Q=_.hx();A&&Q&&(_.K("combine_ve_grafts")?(_.l$(_.IP(),this.descriptionExpandClientVe,Q),_.l$(_.IP(),this.descriptionCollapseClientVe,Q)):_.ZV(A,Q,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.d.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.d.updateTopLevelIconsOnly=function(){var A=this;_.K("top_level_update_killswitch")||this.menu&&_.j7.addLowPriorityJob(function(){A.menu.topLevelIconsOnly=A.skinnyMode},_.GP("swathceroo_delay_flexible_menu_update",100))};
_.d.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.K("web_action_buttons_minimize_subscribe")};
_.d.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.d.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.d.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.d.onYtTextInlineExpanderExpandedChanged=function(){if(!_.K("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var A,Q;(Q=(A=this.structuredDescriptionContentRendererElement).resize)==null||Q.call(A)}};
_.d.onRenderStamperFinished=function(A){(A==null?void 0:A.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.d.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.d.onYtExpanderLessTapped=function(){var A,Q=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showLessCommand;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.d.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.d.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.d.onDescriptionClick=function(A){if(!_.TG(_.mW(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var Q;((Q=window.getSelection())==null?0:Q.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.K("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.d.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.d.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.d.logCollapseClick=function(){var A=_.WR();A&&this.descriptionCollapseClientVe&&_.$_(A,this.descriptionCollapseClientVe)};
_.d.logExpandClick=function(){var A=_.WR();A&&this.descriptionExpandClientVe&&_.$_(A,this.descriptionExpandClientVe)};
_.d.collapseDescription=function(){this.descriptionCollapsed=!0};
_.d.scrollToTopOfContainer=function(){_.pD(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.d.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.d.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.d.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.d.resize=function(){if(this.descriptionInlineExpander){var A,Q;(Q=(A=this.descriptionInlineExpander).resize)==null||Q.call(A)}else _.Wv(new _.IO("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var b;(b=this.menu)==null||b.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.K("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.d.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var A,Q,b,f,a=_.K("web_action_buttons_update_owner_width")?(b=(A=_.Bj(this.menu).querySelector("#button-shape"))==null?void 0:A.clientWidth)!=null?b:0:(f=(Q=_.Bj(this.menu).querySelector("#button"))==null?void 0:Q.clientWidth)!=null?f:0,T,G;A=((G=(T=_.Bj(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:T.clientWidth)!=null?G:0)+8+a;var p,P;a=(P=(p=_.Bj(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:p.children.length)!=null?P:2;A<=8*a||(this.primaryMenuWidth=A)}};
_.d.onYtUpdateTitleAction=function(A){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.V(A,tW$).title)};
_.d.onYtUpdateDescriptionAction=function(A){if(A=_.V(A,_.f8y)){var Q,b=!((Q=this.videoSecondaryInfoRenderer)==null||!Q.attributedDescription);A.isEmpty||!A.description&&!A.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):A.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",A.attributedDescription):A.description&&(b?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.xz(A.description)):this.set("videoSecondaryInfoRenderer.description",A.description))}};
_.d.onYtDarkModeToggledAction=function(A){this.isDark=A};
_.d.registerPanel=function(){if(!_.K("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var A=_.K("web_watch_imax_theater_mode")&&this.isTheaterMode;A=_.K("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A;var Q=_.fJ().resolve(_.r8);Q&&!A&&Q.registerPanel("engagement-panel-structured-description",this)}};
_.d.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.d.parseColorSamplingData=function(){var A;if(_.K("web_delhi_colorful_sd")&&((A=this.structuredDescriptionContentRenderer)==null?0:A.items)&&(A=this.structuredDescriptionContentRenderer.items.find(function(a){return!!_.V(a,g3)}))){var Q,b;
this.hoverColor={lightTheme:(Q=_.V(A,g3))==null?void 0:Q.lightThemeColorPalette,darkTheme:(b=_.V(A,g3))==null?void 0:b.darkThemeColorPalette};var f;this.hoverText=(f=_.V(A,g3))==null?void 0:f.colorSampledDescriptionBodyText}};
_.d.updateHoverColor=function(){if(_.K("web_delhi_colorful_sd")){var A=this.hoverColor,Q={},b;A=(b=this.isDark?A==null?void 0:A.darkTheme:A==null?void 0:A.lightTheme)!=null?b:{};b=_.F(xLp);for(var f=b.next();!f.done;f=b.next()){f=f.value;var a=A[f];Q["--yt-saturated-"+_.Vr(f)]=a?_.w6(a):"initial"}_.Uc(this.hostElement,Q)}};
_.d.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.d.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.d.showPanel=function(A){this.expandDescription();var Q=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;Q.resize();var b,f=A==null?void 0:(b=A.sectionListEngagementPanelExtras)==null?void 0:b.scrollToItemSectionIdentifier;f?_.j7.addJob(function(){Q==null||Q.scrollToSection(f)},8):this.scrollToTopOfContainer()};
_.d.isVisible=function(){return!this.descriptionCollapsed};
_.d.getReloadContinuation=function(){};
_.d.hidePanel=function(){};
_.d.updatePanel=function(){};
_.Qr.Object.defineProperties(nq.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var A;return _.K("web_delhi_colorful_sd")&&(A=this.structuredDescriptionContentRenderer)!=null&&A.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(Q){return!_.V(Q,g3)&&!_.V(Q,RNY)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.structuredDescriptionContentRendererComputed)!=null&&A.items){var Q;A=_.F((Q=this.structuredDescriptionContentRendererComputed)==null?void 0:Q.items);for(Q=A.next();!Q.done;Q=A.next())if(Q=_.V(Q.value,_.A7Y))return Q}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoPrimaryInfoRenderer)==null?0:A.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!!((A=this.videoSecondaryInfoRenderer)==null?0:(Q=A.owner)==null?0:(b=Q.videoOwnerRenderer)==null?0:b.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var A,Q;if((A=this.videoSecondaryInfoRenderer)==null?0:(Q=A.attributedDescription)==null?0:Q.content){var b,f;return(f=this.stripAttributedDescription((b=this.videoSecondaryInfoRenderer)==null?void 0:b.attributedDescription))!=null?f:{runs:[]}}}if(_.K("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var a,T,G,p;return(p=(G=(a=this.videoSecondaryInfoRenderer)==
null?void 0:a.description)!=null?G:(T=this.videoSecondaryInfoRenderer)==null?void 0:T.attributedDescription)!=null?p:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.headerRuns)!=null?Q:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentsEntryPointHeaderRenderer)==null||!A.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoMetadataCarousel)==null||!A.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.GP("swatchie_desc_lines",3):this.hasTeaserCarousel?_.GP("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(Q=A.metadataRowContainer)==null?void 0:Q.metadataRowContainerRenderer);if(b&&b.rows&&b.collapsedItemCount!==void 0&&!(b.rows.length<=b.collapsedItemCount))return b.rows=b.rows.slice(b.collapsedItemCount),b.collapsedItemCount=0,b}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var A,Q,b=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(Q=A.metadataRowContainer)==null?void 0:Q.metadataRowContainerRenderer);if(b&&b.rows&&b.collapsedItemCount!==void 0)return b.rows=b.rows.slice(0,b.collapsedItemCount),b.collapsedItemCount=b.rows.length,b}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!!((A=this.structuredDescriptionContentRendererComputed)==null?0:(Q=A.items)==null?0:Q.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 A;return(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.videoSecondaryInfoRenderer)==null?0:(Q=A.owner)==null?0:(b=Q.videoOwnerRenderer)==null?0:b.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;return!!((A=this.videoPrimaryInfoRenderer)==null?0:(Q=A.videoActions)==null?0:(b=Q.menuRenderer)==null?0:(f=b.flexibleItems)==null?0:f.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.QR(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.QR(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var A=this;if(_.K("web_title_hashtag_grey_delinkified")){var Q,b=_.j2.unsafeClone((Q=this.videoPrimaryInfoRenderer)==null?void 0:Q.title);(Q=b==null?void 0:b.runs)&&Q.forEach(function(f){if(f==null?0:f.navigationEndpoint)f.textColor=4284506208,A.isDark&&(f.textColor=4289374890)});
return b}return(b=this.videoPrimaryInfoRenderer)==null?void 0:b.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.K("web_title_hashtag_black_delinkified")||_.K("web_title_hashtag_grey_delinkified")}}});
nq.prototype.updateHoverColor=nq.prototype.updateHoverColor;nq.prototype.parseColorSamplingData=nq.prototype.parseColorSamplingData;nq.prototype.resetDescriptionState=nq.prototype.resetDescriptionState;nq.prototype.registerPanel=nq.prototype.registerPanel;nq.prototype.onYtExpanderLessTapped=nq.prototype.onYtExpanderLessTapped;nq.prototype.onYtExpanderMoreTapped=nq.prototype.onYtExpanderMoreTapped;nq.prototype.onRenderStamperFinished=nq.prototype.onRenderStamperFinished;
nq.prototype.onYtTextInlineExpanderExpandedChanged=nq.prototype.onYtTextInlineExpanderExpandedChanged;nq.prototype.onYtTextInlineExpanderCollapseClicked=nq.prototype.onYtTextInlineExpanderCollapseClicked;nq.prototype.onYtTextInlineExpanderExpandClicked=nq.prototype.onYtTextInlineExpanderExpandClicked;nq.prototype.moveActionsElement=nq.prototype.moveActionsElement;nq.prototype.updateShouldForceIconOnly=nq.prototype.updateShouldForceIconOnly;nq.prototype.updateTopLevelIconsOnly=nq.prototype.updateTopLevelIconsOnly;
nq.prototype.structuredDescriptionContentRendererChanged=nq.prototype.structuredDescriptionContentRendererChanged;nq.prototype.videoSecondaryInfoRendererChanged=nq.prototype.videoSecondaryInfoRendererChanged;nq.prototype.videoPrimaryInfoRendererChanged=nq.prototype.videoPrimaryInfoRendererChanged;nq.prototype.maybeUpdateActionsOnSeparateLine=nq.prototype.maybeUpdateActionsOnSeparateLine;nq.prototype.updateOwnerAndDescriptionPosition=nq.prototype.updateOwnerAndDescriptionPosition;
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],nq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],nq.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nq.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],nq.prototype,"ytdReduxBehavior",void 0);_.E([_.V1("#above-the-fold"),_.c("design:type",HTMLElement)],nq.prototype,"aboveTheFoldContainer",void 0);_.E([_.V1("#menu ytd-menu-renderer"),_.c("design:type",Object)],nq.prototype,"menu",void 0);_.E([_.V1("#description-inline-expander"),_.c("design:type",Object)],nq.prototype,"descriptionInlineExpander",void 0);
_.E([_.V1("#faded-structured-description"),_.c("design:type",Object)],nq.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.E([_.V1("#structured-description"),_.c("design:type",Object)],nq.prototype,"structuredDescriptionContentRendererElement",void 0);_.E([_.V1("#title"),_.c("design:type",HTMLElement)],nq.prototype,"titleElement",void 0);_.E([_.V1("#description"),_.c("design:type",HTMLElement)],nq.prototype,"descriptionElement",void 0);
_.E([_.V1("#description-interaction"),_.c("design:type",Object)],nq.prototype,"descriptionInteraction",void 0);_.E([_.V1("#owner"),_.c("design:type",HTMLElement)],nq.prototype,"ownerElement",void 0);_.E([_.V1("#top-row"),_.c("design:type",HTMLElement)],nq.prototype,"topRowElement",void 0);_.E([_.V1("#bottom-row"),_.c("design:type",HTMLElement)],nq.prototype,"bottomRowElement",void 0);_.E([_.V1("#actions"),_.c("design:type",HTMLElement)],nq.prototype,"actionsElement",void 0);
_.E([_.V1("#bottom-actions"),_.c("design:type",HTMLElement)],nq.prototype,"bottomActionsElement",void 0);_.E([_.V1("#ytd-watch-info-text"),_.c("design:type",Object)],nq.prototype,"watchInfoTextElement",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"videoSecondaryInfoRenderer",void 0);
_.E([_.C(),_.c("design:type",Object)],nq.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"videoMetadataCarousel",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.H("structuredDescriptionContentRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"structuredDescriptionContentRendererComputed",null);
_.E([_.C(),_.c("design:type",Object)],nq.prototype,"videoSummary",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"merchShelf",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"infoPanelBelowMetadata",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"hoverColor",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"hoverText",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"isHovering",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"enableColorSampling",void 0);_.E([_.H("structuredDescriptionContentRendererComputed"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"productShelf",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"metadataBadgesInDescription",void 0);_.E([_.H("videoPrimaryInfoRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"shouldHideBadges",null);
_.E([_.H("productShelf","descriptionCollapsed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nq.prototype,"shouldShowProductShelf",null);_.E([_.C(),_.c("design:type",Boolean)],nq.prototype,"isWatchFlexy",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"descriptionCollapsed",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],nq.prototype,"useFadedScrimDescription",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"skinnyMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("videoSecondaryInfoRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"largerItemWrap",null);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"playlist",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"clarifyBox",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"playerAds",void 0);
_.E([_.C(),_.c("design:type",Boolean)],nq.prototype,"isDark",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],nq.prototype,"actionsOnSeparateLine",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"disableVideoOwnerOnTap",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"swatcherooDelayLoad",void 0);_.E([_.C(),_.c("design:type",Boolean)],nq.prototype,"suppressTopLevelMetadataRows",void 0);
_.E([_.C(),_.c("design:type",Object)],nq.prototype,"primaryMenuWidth",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"videoId",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"titleHeadlineXs",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"titleHeadlineS",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"titleHeadlineM",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"titleHashtagBlackLinkified",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"titleHashtagGreyLinkified",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.E([_.C(),_.c("design:type",Object)],nq.prototype,"shouldForceIconOnly",void 0);
_.E([_.I_("skinnyMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"updateOwnerAndDescriptionPosition",null);_.E([_.I_("skinnyMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.E([_.H("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"descriptionText",null);_.E([_.H("videoSecondaryInfoRenderer.headerRuns"),_.c("design:type",Array),_.c("design:paramtypes",[])],nq.prototype,"headerRuns",null);
_.E([_.C({value:!1}),_.H("commentsEntryPointHeaderRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"hasTeaser",null);_.E([_.C({value:!1,reflectToAttribute:!0}),_.H("videoMetadataCarousel"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"hasTeaserCarousel",null);_.E([_.C({value:3}),_.H("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"descriptionMaxLines",null);
_.E([_.H("videoSecondaryInfoRenderer.metadataRowContainer"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"collapsibleMetadataRows",null);_.E([_.H("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"alwaysVisibleMetadataRows",null);
_.E([_.H("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nq.prototype,"hasInlineStructuredDescription",null);_.E([_.H("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nq.prototype,"showInlineStructuredDescription",null);
_.E([_.H("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"descriptionExpandCommand",null);_.E([_.H("videoSecondaryInfoRenderer.owner"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"videoOwnerCommand",null);_.E([_.C({reflectToAttribute:!0}),_.H("videoPrimaryInfoRenderer.videoActions"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nq.prototype,"flexMenuEnabled",null);
_.E([_.C({selector:_.w_,reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"isFullscreen",void 0);_.E([_.C({selector:_.zZ,reflectToAttribute:!0}),_.c("design:type",Object)],nq.prototype,"isTheaterMode",void 0);_.E([_.H("descriptionText","useFadedScrimDescription"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nq.prototype,"showAttributedStringDescription",null);
_.E([_.H("descriptionText","useFadedScrimDescription"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nq.prototype,"showFormattedStringDescription",null);_.E([_.H("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nq.prototype,"showFadedStructuredDescription",null);
_.E([_.I_("videoPrimaryInfoRenderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"videoPrimaryInfoRendererChanged",null);_.E([_.H("videoPrimaryInfoRenderer.title"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"videoTitle",null);_.E([_.H("videoPrimaryInfoRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],nq.prototype,"noEndpoints",null);
_.E([_.I_("videoSecondaryInfoRenderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"videoSecondaryInfoRendererChanged",null);_.E([_.iN("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"structuredDescriptionContentRendererChanged",null);
_.E([_.iN("skinnyMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"updateTopLevelIconsOnly",null);_.E([_.iN("skinnyMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"updateShouldForceIconOnly",null);_.E([_.iN("skinnyMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"moveActionsElement",null);
_.E([_.Kc("yt-text-inline-expander-expand-clicked"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"onYtTextInlineExpanderExpandClicked",null);_.E([_.Kc("yt-text-inline-expander-collapse-clicked"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.E([_.Kc("yt-text-inline-expander-expanded-changed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],nq.prototype,"onRenderStamperFinished",null);
_.E([_.Kc("yt-expander-more-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"onYtExpanderMoreTapped",null);_.E([_.Kc("yt-expander-less-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"onYtExpanderLessTapped",null);
_.E([_.iN("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"registerPanel",null);_.E([_.iN("videoSecondaryInfoRenderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"resetDescriptionState",null);
_.E([_.iN("structuredDescriptionContentRenderer"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"parseColorSamplingData",null);_.E([_.iN("hoverColor","isDark"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nq.prototype,"updateHoverColor",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-watch-metadata"})],nq);
_.W(nq,"ytd-watch-metadata",function(){if(Emn!==void 0)return Emn;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Emn=A},{mode:2});_.a0$=function(A){_.k$.call(this);this.JSC$22726_watchApi=A;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Niw(this);sDs(this);mL8(this);A3V(this);QkY(this);btw(this);f0x(this)};
_.O(_.a0$,_.k$);var mL8=function(A){var Q=function(){_.K("kevlar_is_pupi_enabled")||kP(A)};
A.JSC$22726_watchApi.getRoot().addEventListener("yt-player-updated",Q);A.addOnDisposeCallback(function(){A.JSC$22726_watchApi.getRoot().removeEventListener("yt-player-updated",Q)})},QkY=function(A){if(_.K("kevlar_endscreen_auto_theater_mode")){var Q=A.JSC$22726_watchApi.subscribeToActiveChanged(function(){TQx(A)},!1);
A.addOnDisposeCallback(Q)}},Niw=function(A){var Q,b,f,a,T;
_.B(function(G){if(G.nextAddress==1)return G.yield(A.JSC$22726_watchApi.playerApi,2);Q=G.yieldResult;b=function(p){p=!!p;IV(A)&&(p=p?2:1,_.dl.getInstance().setState(p,!0,!1))};
f=function(p){p&&_.fUY(_.QK().getState())&&(_.pD(A.JSC$22726_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),A.temporaryTheaterMode=!0)};
a=function(p){_.K("kevlar_player_update_autonav_on_new_data")&&p.type==="newdata"&&(_.K("kevlar_is_pupi_enabled")||kP(A))};
T=function(p){A.onPlayerStateChange(p)};
_.K("kevlar_endscreen_auto_theater_mode")&&Q.addEventListener("onAutonavCancelled",f);Q.addEventListener("onAutonavChangeRequest",b);Q.addEventListener("onVideoDataChange",a);Q.addEventListener("onStateChange",T);A.addOnDisposeCallback(function(){Q.removeEventListener("onAutonavChangeRequest",b);Q.removeEventListener("onVideoDataChange",a);Q.removeEventListener("onStateChange",T);_.K("kevlar_endscreen_auto_theater_mode")&&Q.removeEventListener("onAutonavCancelled",f)});
_.Oi(G)})},sDs=function(A){A.JSC$22726_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){A.autonavCancelledBySignal=!0;
_.K("kevlar_is_pupi_enabled")||kP(A)});
A.JSC$22726_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(Q,b,f){b&&kP(A,f)});
A.JSC$22726_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){IV(A)&&_.dl.getInstance().setState(2,!0,!0)});
A.JSC$22726_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){IV(A)&&_.dl.getInstance().setState(1,!0,!0)});
A.addOnDisposeCallback(function(){A.JSC$22726_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");A.JSC$22726_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");A.JSC$22726_watchApi.unregisterActionHandler("yt-enable-autoplay-command");A.JSC$22726_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},A3V=function(A){var Q=A.JSC$22726_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){f0x(A)}),b=A.JSC$22726_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){btw(A)});
A.addOnDisposeCallback(function(){A.JSC$22726_watchApi.unsubscribeByKey(Q);A.JSC$22726_watchApi.unsubscribeByKey(b)})},f0x=function(A){A.autonavCancelledBySignal=!1;
_.K("kevlar_is_pupi_enabled")||kP(A)},btw=function(A){var Q=A.JSC$22726_watchApi.getWatchNextResponse(),b,f;
var a=(Q=(f=_.V(Q==null?void 0:(a=Q.playerOverlays)==null?void 0:(b=a.playerOverlayRenderer)==null?void 0:b.autonavToggle,_.TuK))==null?void 0:f.enabled)?2:1;_.K("kevlar_is_pupi_enabled")?_.dl.getInstance().setState(a,!1,!1):kP(A);_.K("web_persist_server_autonav_state_on_client")&&typeof Q==="boolean"&&_.inb(a===2)},IV=function(A){if(A.autonavCancelledBySignal)return!1;
var Q,b,f,a;return!!((Q=A.JSC$22726_watchApi.getWatchNextResponse())==null?0:(b=Q.contents)==null?0:(f=b.twoColumnWatchNextResults)==null?0:(a=f.autoplay)==null?0:a.autoplay)};
_.a0$.prototype.onPlayerStateChange=function(A){if(A===0){A=!_.dl.getInstance().isAutoplaySetExplicitly();var Q=this.JSC$22726_watchApi.getWatchNextResponse(),b,f,a,T;Q=_.V(Q==null?void 0:(b=Q.contents)==null?void 0:(f=b.twoColumnWatchNextResults)==null?void 0:(a=f.autoplay)==null?void 0:(T=a.autoplay)==null?void 0:T.autoplayExplicitChoiceDialogRenderer,_.HYY);IV(this)&&A&&Q&&_.J8.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:Q},popupType:"DIALOG"}})}else TQx(this)};
var TQx=function(A){A.temporaryTheaterMode&&(A.temporaryTheaterMode=!1,_.pD(A.JSC$22726_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},kP=function(A,Q){Q=Q===void 0?!1:Q;
var b;_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22726_watchApi.playerApi,2);b=f.yieldResult;IV(A)?b.setAutonavState(_.dl.getInstance().getState(),Q):b.setAutonavState(1,Q);_.Oi(f)})};var d18={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"};_.GHp=function(A){_.k$.call(this);var Q=this;this.JSC$22731_watchApi=A;var b=this.JSC$22731_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){FKT(Q)});
this.addOnDisposeCallback(function(){Q.JSC$22731_watchApi.unsubscribeByKey(b)});
FKT(this)};
_.O(_.GHp,_.k$);var FKT=function(A){var Q=A.JSC$22731_watchApi.getPlayerResponse(),b=A.JSC$22731_watchApi.getWatchNextResponse();if(!_.Eh6(Q==null?void 0:Q.playabilityStatus,b==null?void 0:b.playerOverlays)){var f;var a=Q==null?void 0:(f=Q.playabilityStatus)==null?void 0:f.errorScreen}A.JSC$22731_watchApi.provideRenderingData("ERROR_SCREEN",a)};var BQ$=_.aP(function(A){var Q=A.data;A=_.K("web_watch_video_details_hide_subtitle");var b=_.K("web_watch_video_details_single_line_title"),f=_.IY(function(){var p=Q().onTap;p&&_.fJ().resolve(_.de).resolveCommand(p)}),a={},T={},G={};
return _.X("yt-player-overlay-video-details-renderer",{class:_.O4("ytPlayerOverlayVideoDetailsRendererHost",(a.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.K("web_watch_video_details_transparent_background"),a)),"on:click":f,role:"button"},_.X("h2",{class:_.O4("ytPlayerOverlayVideoDetailsRendererTitle",(T.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return b},T))},_.X(_.Rb,{text:function(){return Q().title}})),_.X("div",{class:_.O4("ytPlayerOverlayVideoDetailsRendererSubtitle",
(G.ytPlayerOverlayVideoDetailsRendererHideSubtitle=A,G))},_.X(_.Rb,{text:function(){return Q().subtitle}})))},"dk");var H$={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},pls=_.aP(function(A){var Q=A.data;var b=_.Zc(_.w_),f=_.K("web_watch_action_bar_resize_buttons"),a=_.K("delhi_modern_web_player_icons")&&!_.K("enable_web_delhi_icons"),T=function(){return f&&!b()?{size:"M"}:void 0};
A={};return _.X("yt-player-quick-action-buttons",{class:_.O4("ytPlayerQuickActionButtonsHost",(A.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!b()},A))},_.X(_.Op,{each:function(){if(a){var G=Q();
G=JSON.parse(JSON.stringify(G));for(var p=_.F(G),P=p.next();!P.done;P=p.next()){var U=P.value,L=void 0;P=_.V((L=_.V(U,_.vV))==null?void 0:L.toggleButtonViewModel,_.R$);var M=void 0;L=_.V((M=_.V(U,_.WV))==null?void 0:M.toggleButtonViewModel,_.R$);M=_.V(U,_.jJ);U=_.V(U,_.R$);if(P)L=_.V(P.defaultButtonViewModel,_.jJ),P=_.V(P.toggledButtonViewModel,_.jJ),L&&L.iconName&&(L.iconName=H$[L.iconName]),P&&P.iconName&&(P.iconName=H$[P.iconName]);else if(L)P=_.V(L.defaultButtonViewModel,_.jJ),L=_.V(L.toggledButtonViewModel,
_.jJ),P&&P.iconName&&(P.iconName=H$[P.iconName]),L&&L.iconName&&(L.iconName=H$[L.iconName]);else if(M)M.iconName&&(M.iconName=H$[M.iconName]);else if(U){P=_.V(U.defaultButtonViewModel,_.jJ);L=_.V(U.toggledButtonViewModel,_.jJ);U=void 0;if((U=P)==null?0:U.iconName)P.iconName=H$[P.iconName];P=void 0;if((P=L)==null?0:P.iconName)L.iconName=H$[L.iconName]}}}else G=Q();return G}},function(G){return _.X(_.WL,{data:function(){return G}},{buttonViewModel:function(p){return _.X(_.J9,{data:p.data,
buttonOverrides:T})},
likeButtonViewModel:function(p){return _.X(_.EP,{data:p.data,buttonShapeOverrideables:T})},
dislikeButtonViewModel:function(p){return _.X(_.vF,{data:p.data,buttonShapeOverrideables:T})},
toggleButtonViewModel:function(p){return _.X(_.eq,{data:p.data,buttonShapeOverrides:T})}})}))},"ek");_.Xl$=function(A){_.k$.call(this);var Q=this;this.JSC$22735_watchApi=A;A=_.F(_.pz({},void 0,"n9wCVe"));this.quickActionsViewModel=A.next().value;this.setQuickActionsViewModel=A.next().value;A=_.F(_.pz({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=A.next().value;this.setPlayerOverlayVideoDetailsRenderer=A.next().value;var b=this.JSC$22735_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Pwn(Q)});
this.addOnDisposeCallback(function(){Q.JSC$22735_watchApi.unsubscribeByKey(b)});
Pwn(this)};
_.O(_.Xl$,_.k$);
var Pwn=function(A){var Q,b,f,a,T,G,p,P,U,L,M,l,J,n;_.B(function(t){if(t.nextAddress==1)return t.yield(A.JSC$22735_watchApi.playerApi,2);Q=t.yieldResult;b=A.JSC$22735_watchApi.getWatchNextResponse();T=(f=b)==null?void 0:(a=f.playerOverlays)==null?void 0:a.playerOverlayRenderer;p=_.V((G=T)==null?void 0:G.fullscreenQuickActionsBar,_.FrN);(U=(P=A).setQuickActionsViewModel)==null||U.call(P,p||{});p&&SX$(A,Q);l=(L=T)==null?void 0:(M=L.videoDetails)==null?void 0:M.playerOverlayVideoDetailsRenderer;(n=(J=
A).setPlayerOverlayVideoDetailsRenderer)==null||n.call(J,l||{});l&&U1s(A,Q);_.Oi(t)})},SX$=function(A,Q){if(!A.quickActionButtonsContainer)if(Q.setFullscreenQuickActions){A.quickActionButtonsContainer=document.createElement("div");
Q.setFullscreenQuickActions(A.quickActionButtonsContainer);var b=function(){return A.quickActionsViewModel().quickActionButtons||[]},f=_.HG(A.quickActionButtonsContainer,function(){return _.X(pls,{data:b})});
A.addOnDisposeCallback(function(){Q.setFullscreenQuickActions(void 0);f()})}else _.Wv(new _.IO("setFullscreenQuickActions not defined",{playerApi:Object.keys(Q),
isReady:Q.isReady(),appState:Q.getAppState()}))},U1s=function(A,Q){if(!A.playerOverlayVideoDetailsRendererContainer)if(Q.setPlayerOverlayVideoDetailsRenderer){A.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
Q.setPlayerOverlayVideoDetailsRenderer(A.playerOverlayVideoDetailsRendererContainer);var b=_.HG(A.playerOverlayVideoDetailsRendererContainer,function(){return _.X(BQ$,{data:A.playerOverlayVideoDetailsRenderer})});
A.addOnDisposeCallback(function(){Q.setPlayerOverlayVideoDetailsRenderer(void 0);b()})}else _.Wv(new _.IO("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(Q),
isReady:Q.isReady(),appState:Q.getAppState()}))};_.Cq=function(A){_.k$.call(this);var Q=this;this.JSC$22741_watchApi=A;this.JSC$22741_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;A=_.H1(_.QK(),_.w_,function(b){Q.onFullscreenChanged(b)});
this.addOnDisposeCallback(A);A=_.H1(_.QK(),_.Il,function(b){Q.onWatchScroll(b)});
this.addOnDisposeCallback(A);_.K("kevlar_watch_while_v2")&&(A=_.H1(_.QK(),_.WO,function(b){LKd(Q,b)}),this.addOnDisposeCallback(A));
M2w(this);l0c(this);KKp();this.onWatchScroll(_.Il(_.QK().getState()));_.Ep("START_IN_FULL_WINDOW_MODE")&&this.JSC$22741_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.O(_.Cq,_.k$);var M2w=function(A){A.JSC$22741_watchApi.registerActionHandler("yt-fullscreen-change-action",function(Q){var b=A.JSC$22741_watchApi.isActive();Q&&!b||_.QK().dispatch(_.G7({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!Q}}))});
A.addOnDisposeCallback(function(){A.JSC$22741_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},l0c=function(A){var Q,b;
_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22741_watchApi.playerApi,2);Q=f.yieldResult;b=function(){A.onFullerscreenEduClicked()};
Q.addEventListener("onFullerscreenEduClicked",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onFullerscreenEduClicked",b)});
_.Oi(f)})};
_.Cq.prototype.onFullscreenChanged=function(A){var Q=this,b;return _.B(function(f){if(f.nextAddress==1)return Q.isFullscreen=!!_.aF(),f.yield(Q.JSC$22741_watchApi.playerApi,2);b=f.yieldResult;Q.JSC$22741_miniplayerActive||b.setFauxFullscreen(Q.isFullscreen);if(A&&(Q.JSC$22741_watchApi.focusOnPlayer(),!Q.fullerscreenEduButtonShownThisPlayback)){Q.fullerscreenEduButtonShownThisPlayback=!0;var a=_.i7("yt-fullerscreen-edu-button-shown-count")||0;_.KW("yt-fullerscreen-edu-button-shown-count",a+1,31536E3);
Q.updateFullerscreenEduButtonSubtleModeState()}_.Oi(f)})};
var LKd=function(A,Q){var b;_.B(function(f){if(f.nextAddress==1)return A.JSC$22741_miniplayerActive=Q,f.yield(A.JSC$22741_watchApi.playerApi,2);b=f.yieldResult;b.setFauxFullscreen(!A.JSC$22741_miniplayerActive&&A.isFullscreen);_.Oi(f)})};
_.Cq.prototype.onWatchScroll=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1)return _.K("external_fullscreen_with_edu")?a.yield(Q.JSC$22741_watchApi.playerApi,2):a.return();b=a.yieldResult;f=A<=0;Q.shouldShowFullerscreenEdu!==f&&(Q.shouldShowFullerscreenEdu=f,b.updateFullerscreenEduButtonVisibility(!Q.shouldShowFullerscreenEdu));_.Oi(a)})};
_.Cq.prototype.onFullerscreenEduClicked=function(){this.JSC$22741_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var A=_.i7("yt-fullerscreen-edu-button-click-count")||0;_.KW("yt-fullerscreen-edu-button-click-count",A+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Cq.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var A=this,Q,b,f,a,T,G;return _.B(function(p){if(p.nextAddress==1)return Q=_.i7("yt-fullerscreen-edu-button-click-count")||0,b=_.i7("yt-fullerscreen-edu-button-shown-count")||0,f=_.GP("external_fullscreen_button_click_threshold"),a=_.GP("external_fullscreen_button_shown_threshold"),T=Q>=f||b>=a,p.yield(A.JSC$22741_watchApi.playerApi,2);G=p.yieldResult;G.updateFullerscreenEduButtonSubtleModeState(T);_.Oi(p)})};
_.Cq.prototype.disposeInternal=function(){_.k$.prototype.disposeInternal.call(this);var A=_.aF();_.K("kevlar_exit_fullscreen_leaving_watch")&&A&&_.d2(A)};
var KKp=function(){if(_.K("web_watch_add_viewport_meta_tag")){var A=document.querySelector("meta[name=viewport]"),Q=document.head;Q&&!A&&(A=document.createElement("meta"),A.name="viewport",A.content="width=device-width, initial-scale=1.0, viewport-fit=cover",Q.appendChild(A))}};_.qc=function(A){_.k$.call(this);var Q=this;this.JSC$22745_watchApi=A;this.jobId=0;this.pendingRequestId=void 0;var b=this.JSC$22745_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){itn(Q)});
this.addOnDisposeCallback(function(){Q.JSC$22745_watchApi.unsubscribeByKey(b)});
itn(this)};
_.O(_.qc,_.k$);var J3s=function(A){_.j7.cancelJob(A.jobId);A.pendingRequestId=void 0},itn=function(A){J3s(A);
var Q=oC8(A.JSC$22745_watchApi.getWatchNextResponse());if(Q){var b=250,f,a=(f=_.V(Q,_.Tlv))==null?void 0:f.initialDelayMs;_.K("web_watch_updated_metadata_server_initial_delay")&&a&&(b=a);A.jobId=_.j7.addLowPriorityJob(function(){return A.fetchUpdatedMetadata(Q)},b)}};
_.qc.prototype.fetchUpdatedMetadata=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e;return _.B(function(x){switch(x.nextAddress){case 1:Q&&(f={continuation:Q});if(!_.K("web_get_updated_metadata_fantasy_panel_continuation_params")){x.jumpTo(2);break}a=_.fJ().resolve(_.r8);T="PAsports_fantasy";return x.yield(a.isVisible(T,!0),3);case 3:x.yieldResult&&(U=(p=(G=a).getUpdatePanelContinuationData)==null?void 0:(P=p.call(G,T))==null?void 0:P.updatePanelContinuationRequest)&&(f||(f={}),f.clientParams=
{panelContinuationParams:{panelContinuation:U}});case 2:L=_.fJ().resolve(_.vY);if(!L)return _.en(Error("yo")),x.return();M={};b.pendingRequestId=M;return x.yield(_.Ay(L,A,f),4);case 4:l=x.yieldResult;if(M!==b.pendingRequestId)return x.return();t=(J=l)==null?void 0:(n=J.continuation)==null?void 0:n.timedContinuationData;((g=t)==null?0:g.continuation)&&((e=t)==null?0:e.timeoutMs)&&(b.jobId=_.j7.addLowPriorityJob(function(){return b.fetchUpdatedMetadata(A,t.continuation)},t.timeoutMs));
_.Oi(x)}})};
_.qc.prototype.disposeInternal=function(){_.k$.prototype.disposeInternal.call(this);J3s(this)};var V2n=_.aP(function(A){var Q=_.IY(function(){var f=A.data().videoId;if(A.active())f=_.aX(f),_.fJ().resolve(_.de).resolveCommand(f);else{var a=A.playerApi(),T=a.getAvailableAudioTracks(),G,p,P=(G=A.sourceVideoConfig().audioTracks)==null?void 0:(p=G.find(function(U){return U.isDefaultForSource}))==null?void 0:p.id;
if(T=T.find(function(U){return U.getLanguageInfo().getId()===P}))a.setAudioTrack(T,!0),a.setCompositeParam({activeVideoId:f}),A.setActiveSourceId(f)}}),b={};
return _.X("ytw-composite-source-video-overlay",{class:_.O4("ytwCompositeSourceVideoOverlayHost",(b.ytwCompositeSourceVideoOverlayActive=A.active,b.ytwCompositeSourceVideoOverlayInteracting=A.interacting,b)),style:_.qM({left:function(){var f;return((f=A.data().topLeftCornerX)!=null?f:0)*100+"%"},
top:function(){var f;return((f=A.data().topLeftCornerY)!=null?f:0)*100+"%"},
width:function(){var f;return((f=A.data().width)!=null?f:0)*100+"%"},
height:function(){var f;return((f=A.data().height)!=null?f:0)*100+"%"}}),
"on:click":Q},_.X("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"fk");var Ots=_.aP(function(A){var Q=_.F(_.CE(function(){var G,p=(G=A.data().sources)==null?void 0:G.find(function(P){return P.isActive});
if(p)return p.videoId})),b=Q.next().value,f=Q.next().value;
Q=_.F(_.pz(!1,void 0,"WI4BUb"));var a=Q.next().value,T=Q.next().value;return _.X("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.IY(function(){T(!0)}),
"on:mouseout":_.IY(function(){T(!1)})},_.X(_.S,{cond:function(){return A.data().sources},
then:function(G){return _.X(_.Op,{each:G},function(p){return _.X(V2n,{data:p,active:function(){return p.videoId===b()},
setActiveSourceId:f,interacting:a,playerApi:A.playerApi,sourceVideoConfig:function(){return tAT(A.compositeVideoConfig(),p.videoId)}})})}}))},"gk");_.I0d=function(A){_.k$.call(this);this.JSC$22761_watchApi=A;A=_.F(_.pz({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=A.next().value;this.setCompositeVideoOverlayRenderer=A.next().value;A=_.F(_.pz({},void 0,"OlaJpc"));this.compositeVideoConfig=A.next().value;this.setCompositeVideoConfig=A.next().value;n5V(this);kH$(this)};
_.O(_.I0d,_.k$);var n5V=function(A){var Q=A.JSC$22761_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){kH$(A)});
A.addOnDisposeCallback(function(){A.JSC$22761_watchApi.unsubscribeByKey(Q)})},Htd=function(A){var Q;
return _.B(function(b){if(b.nextAddress==1)return b.yield(A.JSC$22761_watchApi.playerApi,2);Q=b.yieldResult;Q.setCompositeVideoOverlayRendererComponent(A.container);_.Oi(b)})},Cwd=function(A){var Q;
return _.B(function(b){if(b.nextAddress==1)return b.yield(A.JSC$22761_watchApi.playerApi,2);Q=b.yieldResult;Q.setCompositeVideoOverlayRendererComponent(void 0);_.Oi(b)})},qXw=function(A){var Q,b;
return _.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22761_watchApi.playerApi,2);Q=f.yieldResult;A.container=document.createElement("div");b=_.HG(A.container,function(){return _.X(Ots,{data:A.compositeVideoOverlayRenderer,compositeVideoConfig:A.compositeVideoConfig,playerApi:Q})});
A.addOnDisposeCallback(b);_.Oi(f)})},kH$=function(A){var Q,b,f,a,T,G,p,P;
_.B(function(U){return U.nextAddress==1?(Q=A.JSC$22761_watchApi.getPlayerResponse(),T=_.V((b=Q)==null?void 0:(f=b.overlay)==null?void 0:(a=f.playerControlsOverlayRenderer)==null?void 0:a.compositeVideoOverlay,Jvh),P=(G=Q)==null?void 0:(p=G.playerConfig)==null?void 0:p.compositeVideoConfig,T&&A.setCompositeVideoOverlayRenderer(T),P&&A.setCompositeVideoConfig(P),T&&P?A.container?U.jumpTo(6):U.yield(qXw(A),6):o5$(A)?U.yield(Cwd(A),0):U.jumpTo(0)):o5$(A)?U.jumpTo(0):U.yield(Htd(A),0)})},o5$=function(A){var Q;
return!((Q=A.container)==null||!Q.parentElement)};
_.I0d.prototype.disposeInternal=function(){o5$(this)&&Cwd(this);_.k$.prototype.disposeInternal.call(this)};_.g5c=function(A){_.k$.call(this);var Q=this;this.JSC$22767_watchApi=A;var b=this.JSC$22767_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var f=Q.JSC$22767_watchApi.getPlayerResponse();if(f){var a,T;if(f=_.V((a=f.endscreen)==null?void 0:(T=a.endscreenRenderer)==null?void 0:T.hideButton,_.R$)){var G;(G=Q.setEndscreenHideButton)==null||G.call(Q,f);t2c(Q)}}});
this.addOnDisposeCallback(function(){Q.JSC$22767_watchApi.unsubscribeByKey(b)});
A=_.F(_.pz({},void 0,"ER3tqb"));this.endscreenHideButton=A.next().value;this.setEndscreenHideButton=A.next().value;r3h(this);jkc(this);RK$(this)};
_.O(_.g5c,_.k$);var t2c=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return A.creatorEndscreenHideButtonContainer?f.return():f.yield(A.JSC$22767_watchApi.playerApi,2);Q=f.yieldResult;A.creatorEndscreenHideButtonContainer=document.createElement("div");_.um(A.creatorEndscreenHideButtonContainer,!1);Q.setCreatorEndscreenHideButton(A.creatorEndscreenHideButtonContainer);b=_.HG(A.creatorEndscreenHideButtonContainer,function(){return _.X(_.eq,{data:A.endscreenHideButton,useOutlinedIcon:!0})});
A.addOnDisposeCallback(function(){b();var a;(a=Q)==null||a.setCreatorEndscreenHideButton(void 0)});
_.Oi(f)})},r3h=function(A){var Q,b;
_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22767_watchApi.playerApi,2);Q=f.yieldResult;b=function(){A.creatorEndscreenHideButtonContainer&&_.um(A.creatorEndscreenHideButtonContainer,!0)};
Q.addEventListener("endscreenelementshown",b);A.addOnDisposeCallback(function(){var a;(a=Q)==null||a.removeEventListener("endscreenelementshown",b)});
_.Oi(f)})},jkc=function(A){var Q=function(){A.creatorEndscreenHideButtonContainer&&_.um(A.creatorEndscreenHideButtonContainer,!1)},b=A.JSC$22767_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",Q),f=A.JSC$22767_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",Q);
A.addOnDisposeCallback(function(){A.JSC$22767_watchApi.unsubscribeByKey(b);A.JSC$22767_watchApi.unsubscribeByKey(f)})},RK$=function(A){A.JSC$22767_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(Q){var b=_.V(Q,UxV);
A.JSC$22767_watchApi.playerApi.then(function(f){f==null||f.setCreatorEndscreenVisibility(!!b.hide)})});
A.addOnDisposeCallback(function(){A.JSC$22767_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.hK$=function(A){_.k$.call(this);this.JSC$22773_watchApi=A;eKx(this)};
_.O(_.hK$,_.k$);var eKx=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22773_watchApi.playerApi,2);Q=f.yieldResult;b=function(a){_.QK().dispatch(_.G7({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:a}}))};
Q.addEventListener("onRetroModeChanged",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onRetroModeChanged",b)});
_.Oi(f)})};var tJ=0,ol=0,r3=0;var WK$;WK$=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.oV=function(A){_.k$.call(this);this.JSC$22786_watchApi=A;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;v5s(this)};
_.O(_.oV,_.k$);
var v5s=function(A){var Q,b,f;_.B(function(a){if(a.nextAddress==1)return a.yield(A.JSC$22786_watchApi.playerApi,2);Q=a.yieldResult;if(A.isDisposed())return a.return();A.sessionStorage=_.q$q("yt-sleep-timer");A.sessionStorage||_.Wv(new _.IO("SessionStorage for Sleep Timer is undefined."));((b=A.sessionStorage)==null?void 0:b.get("yt-sleep-timer"))==="true"&&(xfw(),(f=A.sessionStorage)==null||f.remove("yt-sleep-timer"),Q.syncVolume());E5d(A,Q);x1d(A,Q);c3c(A,Q);_.Oi(a)})},E5d=function(A,Q){var b=function(U){A.onSleepTimerSettingsChanged(U,
Q)},f=function(U){A.onPlayerStateChange(U,Q)},a=function(){A.onLoopChange(Q)},T=function(){A.onCloseMiniplayer(Q)},G=function(){h6n(Q,(0,_.f4)(),c4d(Q),A.selectedOption==="End of video",Q.getPlayerState()!==1)},p=function(){A.onSeekComplete(Q)},P=function(){_.j7.cancelJob(ol);
var U=Q.getCurrentTime()>=Q.getDuration(),L=A.selectedOption==="End of video"||A.selectedOption==="End of playlist"&&!R6n(A.playlistId);U&&L&&zKY(A,Q)};
Q.addEventListener("onSleepTimerSettingsChanged",b);Q.addEventListener("onLoopChange",a);Q.addEventListener("onLoopRangeChange",a);Q.addEventListener("onStateChange",f);Q.addEventListener("onCloseMiniplayer",T);Q.addEventListener("onSleepTimerFeatureAvailable",G);Q.addEventListener("SEEK_COMPLETE",p);Q.addEventListener("onAdStart",P);A.addOnDisposeCallback(function(){Q.removeEventListener("onSleepTimerSettingsChanged",b);Q.removeEventListener("onLoopChange",a);Q.removeEventListener("onLoopRangeChange",
a);Q.removeEventListener("onStateChange",f);Q.removeEventListener("onCloseMiniplayer",T);Q.removeEventListener("onSleepTimerFeatureAvailable",G);Q.removeEventListener("SEEK_COMPLETE",p);Q.removeEventListener("onAdStart",P)})},x1d=function(A,Q){var b=A.JSC$22786_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var f=Q.getVideoData().video_id,a,T=(a=r48(A.JSC$22786_watchApi))==null?void 0:a.playlistId;
A.pauseAutonavPlayback&&(Q.pauseVideo(),Q.syncVolume(),A.pauseAutonavPlayback=!1);if(A.selectedOption==="End of video"&&f!==A.videoId)tL(A,Q);else{if(A.selectedOption==="End of playlist"){a=R6n(A.playlistId);if(T!==A.playlistId){tL(A,Q);break a}a?a&&wlx(A,Q):uuY(A,Q)}A.videoId=f;A.playlistId=T}}});
A.addOnDisposeCallback(function(){A.JSC$22786_watchApi.unsubscribeByKey(b)})},c3c=function(A,Q){var b=_.fJ().resolve(_.u7),f=_.H1(b,_.EgX,function(T){T&&A.selectedOption!=="Off"&&tL(A,Q)}),a=A.JSC$22786_watchApi.subscribeToActiveChanged(function(T){var G,p;
return _.B(function(P){if(P.nextAddress==1)return P.yield(_.kg().navigationFinishPromise,2);G=!_.KtY();p=_.fJ().resolve(_.zb).isMiniplayerActive();T||!qV(A.selectedOption)||p||G||tL(A,Q);_.Oi(P)})},!1);
b=_.H1(b,function(T){return T.entities.playlistLoopStateEntity||{}},function(T){T=T===void 0?{}:T;
var G=j9T(A.JSC$22786_watchApi);if(G){var p;((p=T[G])==null?void 0:p.state)==="PLAYLIST_LOOP_STATE_ALL"&&qV(A.selectedOption)&&tL(A,Q)}});
A.addOnDisposeCallback(f);A.addOnDisposeCallback(b);A.addOnDisposeCallback(a)};
_.oV.prototype.onSleepTimerSettingsChanged=function(A,Q){switch(A){case "Off":this.selectedOption!=="Off"&&tL(this,Q);break;case "End of video":case "End of playlist":Zth(this,A,Q);break;default:Zth(this,A,Q,WK$.get(A))}};
_.oV.prototype.onLoopChange=function(A){(A.getLoopVideo()||A.getLoopRange())&&qV(this.selectedOption)&&tL(this,A)};
_.oV.prototype.onCloseMiniplayer=function(A){qV(this.selectedOption)&&tL(this,A)};
var Zth=function(A,Q,b,f){y3$(A,b);A.selectedOption=Q;A.videoId=b.getVideoData().video_id;A.playlistId="";var a;(a=A.sessionStorage)==null||a.set("yt-sleep-timer","true");A.adjustmentsCount++;h6n(b,(0,_.f4)(),c4d(b),A.selectedOption==="End of video");if(A.selectedOption==="End of video")uuY(A,b),YXx(A,b);else if(A.selectedOption==="End of playlist"){YXx(A,b);var T,G;A.playlistId=(G=(T=r48(A.JSC$22786_watchApi))==null?void 0:T.playlistId)!=null?G:"";R6n(A.playlistId)||uuY(A,b)}else f&&(A.presetFadeSchedulerId=
_.o$(_.j7,function(){vCw(b,15E3)},f-15E3),A.presetPauseSchedulerId=_.o$(_.j7,function(){zKY(A,b)},f),WJw(b,(0,_.f4)(),f))},zKY=function(A,Q){if(A.JSC$22786_watchApi.isActive()){var b={dismissDialogEndpoint:{}};
var f={commandExecutorCommand:{commands:[b,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};b={buttonViewModel:{title:_.JQ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:b}}};f={buttonViewModel:{title:_.JQ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:f}}};var a={dialogHeaderViewModel:{headline:{content:_.JQ("SLEEP_TIMER_ENDED_TITLE")}}},
T={basicContentViewModel:{paragraphs:[{text:{content:_.JQ("SLEEP_TIMER_ENDED_TEXT")}}]}};b={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:a,content:T,footer:{panelFooterViewModel:{primaryButton:b,secondaryButton:f,shouldHideDivider:!0}}}}}}};_.fJ().resolve(_.de).resolveCommand(b,{form:{element:A}})}else xfw();D1p(A,!1);$1T(A,Q);Q.pauseVideo();_.dl.getInstance().getState()===2&&Q.getPlayerState()===5&&(A.pauseAutonavPlayback=!0)},tL=function(A,Q){D1p(A,!0);
$1T(A,Q);xfw()},$1T=function(A,Q){y3$(A,Q);
A.selectedOption="Off";A.videoId="";A.playlistId="";A.adjustmentsCount=0;var b;(b=A.sessionStorage)==null||b.remove("yt-sleep-timer");_.j7.cancelJob(tJ);Q.resetSleepTimerMenuSettings()},D1p=function(A,Q){Q={timer_length_adjustment_times_during_session:A.adjustmentsCount-1,
is_session_cancelled:Q};switch(A.selectedOption){case "Off":Q.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":Q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":Q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:Q.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",Q.option_duration_in_minutes=WK$.get(A.selectedOption)/6E4}_.R4("sleepTimerSessionFinishEvent",Q)};
_.oV.prototype.onPlayerStateChange=function(A,Q){A===1?h6n(Q,(0,_.f4)(),c4d(Q),this.selectedOption==="End of video"):A===0?(_.j7.cancelJob(ol),Q.setVideoTimeLeft(e6s(0,0))):A===2&&_.j7.cancelJob(ol);this.selectedOption==="End of video"?A===0?zKY(this,Q):A===2&&ECn(Q):this.selectedOption!=="End of playlist"||R6n(this.playlistId)||(A===0?zKY(this,Q):A===2&&ECn(Q))};
_.oV.prototype.onSeekComplete=function(A){A.getPlayerState()===2&&h6n(A,(0,_.f4)(),c4d(A),this.selectedOption==="End of video",!0)};
_.oV.prototype.onCueRangeEnter=function(A,Q){A==="sleep-timer-fade-audio"&&vCw(Q,(Q.getDuration()-Q.getProgressState().current)*1E3)};
_.oV.prototype.onCueRangeExit=function(A,Q){A==="sleep-timer-fade-audio"&&Q.getPlayerState()!==0&&ECn(Q,!0)};
var uuY=function(A,Q){Q.addCueRange("sleep-timer-fade-audio",Q.getDuration()-15,Q.getDuration());Q.addEventListener("onCueRangeEnter",function(b){A.onCueRangeEnter(b,Q)});
Q.addEventListener("onCueRangeExit",function(b){A.onCueRangeExit(b,Q)})},wlx=function(A,Q){Q.removeCueRange("sleep-timer-fade-audio");
Q.removeEventListener("onCueRangeEnter",function(b){A.onCueRangeEnter(b,Q)});
Q.removeEventListener("onCueRangeExit",function(b){A.onCueRangeExit(b,Q)})},y3$=function(A,Q){qV(A.selectedOption)?wlx(A,Q):(_.j7.cancelJob(A.presetPauseSchedulerId),_.j7.cancelJob(A.presetFadeSchedulerId),A.presetPauseSchedulerId=0,A.presetFadeSchedulerId=0);
ECn(Q,!0)},YXx=function(A,Q){Q.setLoop(!1);
Q.setLoopVideo(!1);Q.setLoopRange(null);(A=j9T(A.JSC$22786_watchApi))&&_.fJ().resolve(_.u7).dispatch(_.HL("playlistLoopStateEntity",A,{key:A,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ATh=function(A){_.k$.call(this);this.JSC$22789_watchApi=A;NQs(this);sk$(this);m1d(this);A=A.getRoot();if(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-grid")A.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.TW8();_.K("web_watch_log_theater_mode_cookie_state")&&_.J$.get("wide","0")==="1"&&_.RqC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.O(_.ATh,_.k$);var NQs=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22789_watchApi.playerApi,2);Q=f.yieldResult;b=function(a){QLs(A,!!a)};
Q.addEventListener("SIZE_CLICKED",b);A.addOnDisposeCallback(function(){Q.removeEventListener("SIZE_CLICKED",b)});
_.Oi(f)})},sk$=function(A){A.JSC$22789_watchApi.registerActionHandler("yt-toggle-theater-mode",function(Q,b){QLs(A,Q,b===void 0?!0:b)});
A.addOnDisposeCallback(function(){A.JSC$22789_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ATh.prototype.getState=function(){return _.zZ(_.QK().getState())};
var QLs=function(A,Q,b){b=b===void 0?!0:b;var f,a,T,G=_.K("enable_player_resize_transition")&&!!A.JSC$22789_watchApi.getWatchNextResponse()&&!((f=A.JSC$22789_watchApi.getWatchNextResponse())==null?0:(a=f.contents)==null?0:(T=a.twoColumnWatchNextResults)==null?0:T.conversationBar);_.R_7(function(){_.QK().dispatch(_.G7({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:Q}}));_.K("theater_mode_scroll_to_top_killswitch")||A.JSC$22789_watchApi.scrollWatchTo(0,!1);_.aF()&&_.K("external_fullscreen")&&_.d2(document.documentElement);
m1d(A);b&&_.Vb("wide",Q?"1":"0",-1);_.pD(A.JSC$22789_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);A.JSC$22789_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:Q});Q&&_.TW8()},{shouldWrap:G})},m1d=function(A){var Q;
_.B(function(b){if(b.nextAddress==1)return b.yield(A.JSC$22789_watchApi.playerApi,2);Q=b.yieldResult;Q.setSizeStyle(!0,A.getState());_.Oi(b)})};var a4V=function(A){_.k$.call(this);var Q=this;this.playerApi=A;this.timeToPanelSyncKeyMap={};var b;if(A==null?0:(b=A.isReady)==null?0:b.call(A)){b=_.H1(_.fJ().resolve(_.u7),function(a){return a.entities.timedMarkersListSyncEntity||{}},function(a,T){a=a===void 0?{}:a;
T=T===void 0?{}:T;for(var G=_.F(Object.keys(T)),p=G.next();!p.done;p=G.next())p=p.value,a[p]!==T[p]&&bKh(Q,T[p]);T=_.F(Object.keys(a));for(G=T.next();!G.done;G=T.next())G=G.value,p=a[G],Q.timeToPanelSyncKeyMap[G]&&f48(Q,p)});
this.addOnDisposeCallback(b);var f=function(a){Q.onCueRangeEnter(a)};
A.addEventListener("onCueRangeEnter",f);this.addOnDisposeCallback(function(){var a;(a=A.removeEventListener)==null||a.call(A,"onCueRangeEnter",f)})}};
_.O(a4V,_.k$);
var f48=function(A,Q){var b,f;if((b=A.playerApi)==null?0:(f=b.isReady)==null?0:f.call(b)){var a;if((b=Q==null?void 0:(a=Q.timedListData)==null?void 0:a.sections)&&Q!=null&&Q.key)for(a=_.F(b),b=a.next();!b.done;b=a.next())if(b=b.value,b.timedSyncDataList&&b.sectionId)for(f=0;f<b.timedSyncDataList.length;f++){var T=b.timedSyncDataList[f];T.syncItemId&&A.playerApi.addCueRange(b.sectionId+"_"+Q.key+"_"+T.syncItemId,Number(T.videoTimeMs)/1E3,f===b.timedSyncDataList.length-1?0x8000000000000:Number(b.timedSyncDataList[f+
1].videoTimeMs)/1E3)}}},bKh=function(A,Q){var b,f;
if((b=A.playerApi)==null?0:(f=b.isReady)==null?0:f.call(b)){var a;if((b=Q==null?void 0:(a=Q.timedListData)==null?void 0:a.sections)&&Q!=null&&Q.key)for(a=_.F(b),b=a.next();!b.done;b=a.next())if(b=b.value,b.timedSyncDataList&&b.sectionId){f=_.F(b.timedSyncDataList);for(var T=f.next();!T.done;T=f.next())T=T.value,T.syncItemId&&A.playerApi.removeCueRange(b.sectionId+"_"+Q.key+"_"+T.syncItemId)}}};
a4V.prototype.onCueRangeEnter=function(A){for(var Q=_.F(Object.keys(this.timeToPanelSyncKeyMap)),b=Q.next();!b.done;b=Q.next()){b=b.value;var f=_.F(A.split("_"+b+"_")),a=f.next().value;f=f.next().value;if(a&&f){A=_.fJ().resolve(_.u7);Q=this.timeToPanelSyncKeyMap[b];var T=_.ka4(A.getState(),Q);b=Tvn(b,a,f);if(b===-1)break;b={activeSyncId:f,activeItemIndex:b,activeSectionInfo:{sectionIdentifier:a}};T?A.dispatch(_.Wi("markersEngagementPanelSyncEntity",Q,b)):A.dispatch(_.HL("markersEngagementPanelSyncEntity",
Q,Object.assign({},{key:Q},b)));break}}};
var Tvn=function(A,Q,b){var f=_.fJ().resolve(_.u7),a,T;A=(a=Nc7(f.getState(),A))==null?void 0:(T=a.timedListData)==null?void 0:T.sections;if(!A)return-1;a=0;T=_.F(A);for(A=T.next();!A.done;A=T.next()){A=A.value;f=A.timedSyncDataList||[];if(A.sectionId===Q)return Q=f.findIndex(function(G){return G.syncItemId===b}),Q===-1?Q:a+Q;
a+=f.length}return-1};_.Gzc=function(A){_.k$.call(this);var Q=this;this.JSC$22802_watchApi=A;this.unresolvedCommands=[];this.JSC$22802_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(b){dun(Q,b)});
this.addOnDisposeCallback(function(){Q.JSC$22802_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
FTp(this)};
_.O(_.Gzc,_.k$);var FTp=function(A){var Q;_.B(function(b){if(b.nextAddress==1)return b.yield(A.JSC$22802_watchApi.playerApi,2);Q=b.yieldResult;if(A.isDisposed())return b.return();A.timedSyncObserver=new a4V(Q);A.unresolvedCommands.length&&(A.unresolvedCommands.forEach(function(f){return dun(A,f)}),A.unresolvedCommands=[]);
_.SY(A,A.timedSyncObserver);_.Oi(b)})},dun=function(A,Q){if(A.timedSyncObserver){var b=_.V(Q,MW$);
if(b&&b.timedSyncEntityKey&&b.panelSyncEntityKey){A=A.timedSyncObserver;Q=b.timedSyncEntityKey;var f=b.panelSyncEntityKey;b=!!b.isEnabled;b=b===void 0?!0:b;var a=_.fJ().resolve(_.u7);a=Nc7(a.getState(),Q);b?A.timeToPanelSyncKeyMap[Q]||(A.timeToPanelSyncKeyMap[Q]=f,f48(A,a)):(delete A.timeToPanelSyncKeyMap[Q],bKh(A,a))}}else A.unresolvedCommands.push(Q)};var Bvp=_.aP(function(A){var Q=A.data,b=A.maybeLogSmartSkipClientData,f=null,a=null,T=_.K("web_enable_auto_focus_for_timely_action_button"),G=function(){f=document.activeElement},p=function(){Q().smartSkipMetadata&&(f=document.activeElement,_.ovs(function(){return a}))},P=function(L){if(Q().smartSkipMetadata&&(!L||L.key!=="Enter")){f&&f.isConnected&&(_.ovs(function(){return f}),f=null);
var M;(M=a)==null||M.blur()}};
A=_.IY(function(){b==null||b(!0,Q());return!1});
var U=_.d_(_.Zb(function(){return Q().rendererContext},{onTap:function(L,M){M({disableClickTracking:!0})}}),_.T9({visibilityCallback:function(L){if(T)L?a&&Q().smartSkipMetadata&&(p(),document.addEventListener("focusin",G)):(document.removeEventListener("focusin",G),P());
else if(L){L=_.wz(Q().rendererContext);var M=Number(Q().maxVisibleDurationMilliseconds),l,J=(l=_.V(Q().rendererContext,_.HV))==null?void 0:l.label;L&&M&&J&&(l={label:J,command:L,durationMs:M},_.fJ().resolve(_.rI).enqueue(l))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.CH(function(){if(T){var L;if((a=(L=U.value)==null?void 0:L.querySelector("button"))&&Q().smartSkipMetadata){var M;(M=U.value)==null||M.addEventListener("keydown",P)}}});
_.Cz(function(){T&&(a&&Q().smartSkipMetadata&&a.removeEventListener("keydown",P),document.removeEventListener("focusin",G),P())});
return _.X("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:U,"on:click":A},_.X(_.WL,{data:function(){return Q().content}},{buttonViewModel:_.J9}))},"hk");var pos=_.aP(function(A){var Q=A.data,b=A.playerApi,f=_.fJ().resolve(_.IUN);A=_.F(_.CE(function(){Q()}));
var a=A.next().value,T=A.next().value,G=function(){return wed(Q(),a())},p=function(U,L){var M,l,J=(M=_.V(L==null?void 0:L.rendererContext,_.H8))==null?void 0:(l=M.loggingDirectives)==null?void 0:l.trackingParams;
if((L=L==null?void 0:L.smartSkipMetadata)&&L.loggingData&&(l=L.loggingData,L=l.algorithmId,M=l.startMilliseconds,l=l.endMilliseconds,L&&M!==void 0&&l!==void 0)){var n,t;U={smartSkipData:Object.assign({},{versionName:L,startMediaTimeMs:M,endMediaTimeMs:l},U&&{userInteractionMediaTimeMs:(Math.floor(((n=_.BL())==null?void 0:(t=n.getPlayer())==null?void 0:t.getCurrentTime())||0)*1E3).toString()})};n=_.WR();var g;J&&(g=_.t8(J));n&&g&&_.sl(n,g,U)}},P=function(U,L){var M=wed(Q(),U);
if(M){var l=_.V(M,jP),J;if(J=L)J=b(),M=_.V(M,jP),J=M!=null&&M.smartSkipMetadata?!(J==null?0:J.isSameMarkerTypeVisible((M==null?void 0:M.smartSkipMetadata.markerKey)||"")):!0;if(J){var n,t;(l==null?0:(n=l.smartSkipMetadata)==null?0:(t=n.loggingData)==null?0:t.isCounterfactual)||(p(!1,l),T(U))}else L||a()!==U||T(void 0)}};
_.H_(function(){var U=Q().timelyActions;if(U){U=_.F(U);for(var L=U.next();!L.done;L=U.next()){L=_.V(L.value,jP);var M=void 0;(M=L)!=null&&M.cueRangeId&&f.timelyActionsMap.set(L.cueRangeId,P)}_.Cz(function(){f.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.X("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.X(_.WL,{data:G},{timelyActionViewModel:function(U){return _.X(Bvp,{data:U.data,maybeLogSmartSkipClientData:function(){p(!0,_.V(G(),jP))}})}}))},"ik");_.XoY=function(A){_.k$.call(this);this.JSC$22814_watchApi=A;A=_.F(_.pz({},void 0,"UN7k5e"));this.timelyActionsOverlay=A.next().value;this.setTimelyActionsOverlay=A.next().value;Pmd(this)};
_.O(_.XoY,_.k$);var Pmd=function(A){var Q,b,f,a;_.B(function(T){if(T.nextAddress==1)return SO8(A),Uuc(A),A.timelyActionsContainer=document.createElement("div"),T.yield(A.JSC$22814_watchApi.playerApi,2);Q=T.yieldResult;(f=(b=Q).insertTimelyActionUi)==null||f.call(b,A.timelyActionsContainer);a=_.HG(A.timelyActionsContainer,function(){return _.X(pos,{data:A.timelyActionsOverlay,playerApi:Q})});
A.addOnDisposeCallback(a);_.Oi(T)})},Uuc=function(A){var Q=A.JSC$22814_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SO8(A)});
A.addOnDisposeCallback(function(){A.JSC$22814_watchApi.unsubscribeByKey(Q)})},SO8=function(A){var Q=A.JSC$22814_watchApi.getWatchNextResponse();
if(Q){var b,f;if(Q=_.V((b=Q.playerOverlays)==null?void 0:(f=b.playerOverlayRenderer)==null?void 0:f.timelyActionsOverlayViewModel,lK$)){var a;(a=A.setTimelyActionsOverlay)==null||a.call(A,Q)}}};_.MYx=function(A){_.k$.call(this);this.JSC$22818_watchApi=A;LTY(this)};
_.O(_.MYx,_.k$);var LTY=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22818_watchApi.playerApi,2);Q=f.yieldResult;b=function(a){_.J8.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.V(a,_.nMN)},popupType:"TOAST"}})};
Q.addEventListener("onYtShowToast",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onYtShowToast",b)});
_.Oi(f)})};var l4V,JTn,I4w,KTs,iKd,kzs,OKp,n$x,HKs,Cms;l4V=!1;_.VYn=function(A){_.k$.call(this);this.JSC$22821_watchApi=A;this.fullscreen=this.theater=!1;KTs(this);iKd(this);JTn(this)};
_.O(_.VYn,_.k$);JTn=function(A){var Q,b,f;_.B(function(a){if(a.nextAddress==1)return a.yield(A.JSC$22821_watchApi.playerApi,2);Q=a.yieldResult;if(A.isDisposed())return a.return();b=A.JSC$22821_watchApi.getElement("CINEMATICS");if(!b)return a.return();A.JSC$22821_cinematicController=new _.al(b,Q);_.SY(A,A.JSC$22821_cinematicController);_.ZLx(A.JSC$22821_cinematicController);OKp(A,_.U69());f=A.JSC$22821_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(T){n$x(A,T)});
A.addOnDisposeCallback(function(){A.JSC$22821_watchApi.unsubscribeByKey(f)});
kzs(A);n$x(A,A.JSC$22821_cinematicController.isAllowed());_.K("web_cinematic_manager_redux_killswitch")?_.rc(A,A.fullscreen,A.theater):I4w(A);HKs(A);_.Oi(a)})};
I4w=function(A){A.fullscreen=_.w_(_.QK().getState());A.theater=_.zZ(_.QK().getState());_.rc(A,A.fullscreen,A.theater);var Q=_.H1(_.QK(),_.w_,function(f){A.fullscreen=f;_.rc(A,A.fullscreen,A.theater)}),b=_.H1(_.QK(),_.zZ,function(f){A.theater=f;
_.rc(A,A.fullscreen,A.theater)});
A.addOnDisposeCallback(Q);A.addOnDisposeCallback(b)};
KTs=function(A){var Q=A.JSC$22821_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kzs(A)});
A.addOnDisposeCallback(function(){A.JSC$22821_watchApi.unsubscribeByKey(Q)})};
iKd=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22821_watchApi.playerApi,2);Q=f.yieldResult;b=function(a){OKp(A,a)};
Q.addEventListener("cinematicSettingsToggleChange",b);A.addOnDisposeCallback(function(){Q.removeEventListener("cinematicSettingsToggleChange",b)});
_.Oi(f)})};
kzs=function(A){var Q=A.JSC$22821_watchApi.getWatchNextResponse(),b;Q=_.V(Q==null?void 0:(b=Q.pageVisualEffects)==null?void 0:b[0],_.oe);var f;(f=A.JSC$22821_cinematicController)==null||_.YeM(f,Q)};
OKp=function(A,Q){var b;(b=A.JSC$22821_cinematicController)==null||_.yUn(b,Q);Cms(A)};
n$x=function(A,Q){var b;_.B(function(f){if(f.nextAddress==1)return _.K("kevlar_watch_cinematics_invisible")&&(Q=!1),f.yield(A.JSC$22821_watchApi.playerApi,2);b=f.yieldResult;b.updateCinematicSettings(Q);Cms(A);_.Oi(f)})};
HKs=function(A){var Q=_.nD();if(_.K("kevlar_measure_ambient_mode_idle")&&!Q.getFlag(192)&&!l4V){l4V=!0;var b=_.Hv(_.j7,function(){_.fJ().resolve(_.HpM).start(1E4)},5E3);
A.addOnDisposeCallback(function(){_.j7.cancelJob(b);_.fJ().resolve(_.HpM).stop()})}};
_.rc=function(A,Q,b){A.fullscreen=Q;A.theater=b;var f;(f=A.JSC$22821_cinematicController)==null||f.setFullscreen(A.fullscreen,A.theater);if(_.K("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(A.theater||A.fullscreen){var a;(a=A.JSC$22821_cinematicController)==null||_.Dpn(a)}else if((A=A.JSC$22821_cinematicController)!=null){var T;(T=A.currentCinematicEffect)==null||T.pause()}};
Cms=function(A){if(_.K("web_cinematic_theater_mode")||_.K("web_cinematic_fullscreen")){var Q;A.JSC$22821_watchApi.getRoot().toggleCinematicsActive(!((Q=A.JSC$22821_cinematicController)==null||!Q.isEnabled()))}};_.rTV=function(A){_.k$.call(this);var Q=this;this.JSC$22824_watchApi=A;this.commentsReady=!1;this.setCommentsJobId=0;A=_.H1(_.QK(),_.Il,function(){qOs(Q)});
this.addOnDisposeCallback(A);var b=this.JSC$22824_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){o$d(Q)}),f=this.JSC$22824_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){o$d(Q)});
this.addOnDisposeCallback(function(){Q.JSC$22824_watchApi.unsubscribeByKey(b);Q.JSC$22824_watchApi.unsubscribeByKey(f)});
var a=function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&tYs(Q,"false")};
this.JSC$22824_watchApi.getRoot().addEventListener("yt-page-data-will-update",a);this.addOnDisposeCallback(function(){Q.JSC$22824_watchApi.getRoot().removeEventListener("yt-page-data-will-update",a)});
o$d(this)};
_.O(_.rTV,_.k$);var o$d=function(A){A.commentsReady=!1;_.j7.cancelJob(A.setCommentsJobId);A.setCommentsJobId=_.Hv(_.j7,function(){qOs(A)},1E3)},qOs=function(A){if(!A.commentsReady){_.hQ("cmi");
_.j7.cancelJob(A.setCommentsJobId);var Q,b,f,a,T=(Q=A.JSC$22824_watchApi.getWatchNextResponse())==null?void 0:(b=Q.contents)==null?void 0:(f=b.twoColumnWatchNextResults)==null?void 0:(a=f.results)==null?void 0:a.results.contents;Q=void 0;if(T&&T.length)for(T=_.F(T),b=T.next();!b.done;b=T.next())if(b=b.value,a=f=void 0,((f=b)==null?void 0:(a=f.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section"){_.K("web_watch_provide_undefined_comments")?Q=b.itemSectionRenderer:A.JSC$22824_watchApi.provideRenderingData("COMMENTS",
b.itemSectionRenderer);tYs(A,"true");break}_.K("web_watch_provide_undefined_comments")&&A.JSC$22824_watchApi.provideRenderingData("COMMENTS",Q);A.commentsReady=!0;A.JSC$22824_watchApi.dispatchEvent("yt-watch-comments-ready")}},tYs=function(A,Q){var b;
(b=A.JSC$22824_watchApi.getElement("COMMENTS"))==null||b.setAttribute("canScheduleJobs",Q)};_.hL=function(A){_.k$.call(this);var Q=this;this.JSC$22827_watchApi=A;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.K("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.K("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.K("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.GP("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)jLV(this);
else{var b=this.JSC$22827_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){j9(Q);RV(Q)}),f=this.JSC$22827_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){e9(Q);
RV(Q)});
this.JSC$22827_watchApi.getRoot().is==="ytd-watch-grid"&&_.K("swatcheroo_pbs_load_grid")&&(R_x(this),g$w(this));this.addOnDisposeCallback(function(){Q.JSC$22827_watchApi.unsubscribeByKey(b);Q.JSC$22827_watchApi.unsubscribeByKey(f);_.j7.cancelJob(Q.provideRichGridJobId)});
j9(this);e9(this)}};
_.O(_.hL,_.k$);var jLV=function(A){var Q=A.JSC$22827_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){A.providePlayerJobId=_.hy(_.j7,function(){j9(A);RV(A)},A.provideAllDataDelayMs)}),b=A.JSC$22827_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A.provideWatchNextJobId=_.hy(_.j7,function(){e9(A);
RV(A)},A.provideAllDataDelayMs)}),f=A.JSC$22827_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){A.provideWatchNextJobId=_.hy(_.j7,function(){e9(A);
RV(A)},A.provideAllDataDelayMs)});
A.JSC$22827_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Hv(_.j7,function(){j9(A);e9(A);RV(A)},100)});
A.JSC$22827_watchApi.addPageDisposeJob(function(){_.j7.cancelJob(A.provideWatchNextJobId);_.j7.cancelJob(A.providePlayerJobId)});
A.addOnDisposeCallback(function(){A.JSC$22827_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");A.JSC$22827_watchApi.unsubscribeByKey(Q);A.JSC$22827_watchApi.unsubscribeByKey(b);A.JSC$22827_watchApi.unsubscribeByKey(f);_.j7.cancelJob(A.providePlayerJobId);_.j7.cancelJob(A.provideWatchNextJobId)});
j9(A);e9(A)},j9=function(A){var Q=A.JSC$22827_watchApi.getPlayerResponse(),b,f,a=(f=Q==null?void 0:(b=Q.playabilityStatus)==null?void 0:b.messageRenderers)!=null?f:[],T,G;
Q=(G=Q==null?void 0:(T=Q.playabilityStatus)==null?void 0:T.messages)!=null?G:[];T=_.F(Q);for(G=T.next();!G.done;G=T.next())a.push({alertRenderer:{text:_.sr(G.value),type:"WARNING"}});A.JSC$22827_watchApi.provideRenderingData("ALERTS",a)},e9=function(A){var Q=[],b,f,a,T=A.JSC$22827_watchApi.getWatchNextResponse(),G,p,P,U,L=T==null?void 0:(G=T.contents)==null?void 0:(p=G.twoColumnWatchNextResults)==null?void 0:(P=p.results)==null?void 0:(U=P.results)==null?void 0:U.contents;
if(L)for(G=_.F(L),p=G.next();!p.done;p=G.next())if(p=p.value,p.videoPrimaryInfoRenderer)var M=p;else if(p.videoSecondaryInfoRenderer){var l=p;U=P=void 0;p=Object.assign({},(P=p.videoSecondaryInfoRenderer)==null?void 0:(U=P.metadataRowContainer)==null?void 0:U.metadataRowContainerRenderer);if(p.rows&&p.collapsedItemCount!==void 0){p.rows=p.rows.slice(0,p.collapsedItemCount).filter(function(zr){return!!zr.richMetadataRowRenderer});
p.collapsedItemCount=p.rows.length;var J={metadataRowContainerRenderer:p}}}else if(p.merchandiseShelfRenderer)var n=p;else if(p.ticketShelfRenderer)var t=p;else if(p.expandableMetadataRenderer)var g=p;else if(p.itemSectionRenderer)if(P=p.itemSectionRenderer.contents,U=void 0,A.directlyProvideComments&&((U=p.itemSectionRenderer)==null?void 0:U.sectionIdentifier)==="comment-item-section")_.hQ("cmi"),A.JSC$22827_watchApi.provideRenderingData("COMMENTS",p.itemSectionRenderer);else if(P)for(p=_.F(P),P=
p.next();!P.done;P=p.next())if(P=P.value,P.commentsEntryPointHeaderRenderer)var e=P;else if(P.clarificationRenderer||P.infoPanelContainerRenderer||P.infoPanelContentRenderer||P.emergencyOneboxRenderer){Q.push(P);var x=x||!!l}else P.limitedStateMessageRenderer?f=P:P.videoMetadataCarouselViewModel&&(a=P);if(_.K("web_watch_merch_in_sd_when_ticket_shelf_present")&&n&&t){var D=n;n=void 0}if(A.provideWatchNextSecondaryResults){var w,u,y;A.JSC$22827_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
T==null?void 0:(w=T.contents)==null?void 0:(u=w.twoColumnWatchNextResults)==null?void 0:(y=u.secondaryResults)==null?void 0:y.secondaryResults)}if(A.JSC$22827_watchApi.getRoot().is==="ytd-watch-grid"){var a9,pF;A.JSC$22827_watchApi.provideRenderingData("LIVE_CHAT",T==null?void 0:(a9=T.contents)==null?void 0:(pF=a9.twoColumnWatchNextResults)==null?void 0:pF.conversationBar)}var Ub,Ob,I9,iy;(w=T==null?void 0:(Ub=T.contents)==null?void 0:(Ob=Ub.twoColumnWatchNextResults)==null?void 0:(I9=Ob.secondaryResults)==
null?void 0:(iy=I9.secondaryResults)==null?void 0:iy.offerModule)&&(w.donationShelfRenderer||w.donationUnavailableRenderer)&&A.JSC$22827_watchApi.getRoot().is!=="ytd-watch-grid"&&(b=w);Ub=A.JSC$22827_watchApi.getPlayerResponse();if(!Ub||!_.Eh6(Ub.playabilityStatus,T==null?void 0:T.playerOverlays)){var wW;if(T==null?0:(wW=T.contents)==null?0:wW.singleColumnWatchNextResults){var h4,SW;var r9=T==null?void 0:(h4=T.contents.singleColumnWatchNextResults.results)==null?void 0:(SW=h4.results)==null?void 0:
SW.contents}else{var PM,Nf,L$,UL;wW=!!(L==null?0:(PM=L[0])==null?0:(Nf=PM.itemSectionRenderer)==null?0:(L$=Nf.contents)==null?0:(UL=L$[0])==null?0:UL.backgroundPromoRenderer);var HM,Ks;PM=!!(T==null?0:(HM=T.contents)==null?0:(Ks=HM.twoColumnWatchNextResults)==null?0:Ks.secondaryResults);wW&&!PM&&(r9=L)}}L=Q[0];HM=Q[1];x&&Q.length===1&&(HM=L,L=void 0);A.JSC$22827_watchApi.provideRenderingData("PRIMARY_INFO",M);A.JSC$22827_watchApi.provideRenderingData("SECONDARY_INFO",l);A.JSC$22827_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
e);A.JSC$22827_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",a);A.JSC$22827_watchApi.provideRenderingData("CLARIFICATION",L);A.JSC$22827_watchApi.provideRenderingData("RICH_METADATA",J);A.JSC$22827_watchApi.provideRenderingData("MERCH_SHELF",n);_.K("web_watch_merch_in_sd_when_ticket_shelf_present")&&A.JSC$22827_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",D);A.JSC$22827_watchApi.provideRenderingData("TICKET_SHELF",t);A.JSC$22827_watchApi.provideRenderingData("LIMITED_STATE",f);A.JSC$22827_watchApi.getRoot().is!==
"ytd-watch-grid"&&A.JSC$22827_watchApi.provideRenderingData("DONATION_SHELF",b);A.JSC$22827_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",r9);A.JSC$22827_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",HM);A.JSC$22827_watchApi.provideRenderingData("EXPANDABLE_METADATA",g);if(A.swatcherooProvideAllDataOnScheduledJob){var Y1,dW,bY,OL,iO,Jv;M=T==null?void 0:(Y1=T.contents)==null?void 0:(dW=Y1.twoColumnWatchNextResults)==null?void 0:(bY=dW.secondaryResults)==null?void 0:(OL=bY.secondaryResults)==
null?void 0:(iO=OL.results)==null?void 0:(Jv=iO[0])==null?void 0:Jv.richGridRenderer;A.JSC$22827_watchApi.provideRenderingData("RICH_GRID_RENDERER",M)}};
_.hL.prototype.hasCompanionAds=function(A){var Q,b;return(b=A==null?void 0:(Q=A.adPlacements)==null?void 0:Q.some(function(f){var a,T,G,p;return(f==null?void 0:(a=f.adPlacementRenderer)==null?void 0:(T=a.renderer)==null?void 0:T.actionCompanionAdRenderer)||(f==null?void 0:(G=f.adPlacementRenderer)==null?void 0:(p=G.renderer)==null?void 0:p.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?b:!1};
var RV=function(A){if(!_.K("swaterdoo_ps_wn_handle_ks")){A.swatcherooProvideAllDataOnScheduledJob||g$w(A,3E3);var Q=A.JSC$22827_watchApi.getPlayerResponse(),b,f,a,T,G,p=(b=A.JSC$22827_watchApi.getWatchNextResponse())==null?void 0:(f=b.contents)==null?void 0:(a=f.twoColumnWatchNextResults)==null?void 0:(T=a.secondaryResults)==null?void 0:(G=T.secondaryResults)==null?void 0:G.offerModule;Q=A.hasCompanionAds(Q);var P,U;b=(p==null?void 0:(P=p.tvfilmOfferModuleRenderer)==null?void 0:P.clientShouldSuppressIfCompanionAdDisplayed)||
(p==null?void 0:(U=p.unlimitedOfferModuleRenderer)==null?void 0:U.suppressIfCompanionAds);P=Q&&b;A.JSC$22827_watchApi.getRoot().is==="ytd-watch-grid"&&A.JSC$22827_watchApi.provideRenderingData("OFFER_MODULE",P?void 0:p)}},g$w=function(A,Q){_.K("swatcheroo_pbs_load_grid")&&(A.provideRichGridJobId&&_.j7.cancelJob(A.provideRichGridJobId),A.provideRichGridJobId=_.hy(_.j7,function(){A.provideRichGridJobId=0;
var b,f,a,T,G,p,P,U=(b=A.JSC$22827_watchApi.getWatchNextResponse())==null?void 0:(f=b.contents)==null?void 0:(a=f.twoColumnWatchNextResults)==null?void 0:(T=a.secondaryResults)==null?void 0:(G=T.secondaryResults)==null?void 0:(p=G.results)==null?void 0:(P=p[0])==null?void 0:P.richGridRenderer;U&&A.JSC$22827_watchApi.provideRenderingData("RICH_GRID_RENDERER",U)},Q))},R_x=function(A){var Q,b;
_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22827_watchApi.playerApi,2);Q=f.yieldResult;b=function(){A.onPlaybackStart()};
Q.addEventListener("onPlaybackStartExternal",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onPlaybackStartExternal",b)});
_.Oi(f)})};
_.hL.prototype.onPlaybackStart=function(){g$w(this)};_.h_n=function(A){_.k$.call(this);var Q=this;this.JSC$22837_watchApi=A;A.playerApi.then(function(b){Q.player=b});
this.gestures=new _.BH(this.JSC$22837_watchApi.getRoot(),A.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.Q9Y(_.QK().getState())&&_.Il(_.QK().getState())<=0)if(_.w_(_.QK().getState())){var b;(b=Q.player)==null||b.toggleFullscreen()}else _.pD(Q.JSC$22837_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
e_$(this)};
_.O(_.h_n,_.k$);var e_$=function(A){var Q=_.H1(_.QK(),_.w_,function(b){A.onFullscreenChanged(b)});
A.addOnDisposeCallback(Q);Q=_.H1(_.QK(),_.Il,function(b){A.gestures&&(b>0?A.gestures.detach():A.gestures.attach())});
A.addOnDisposeCallback(Q)};
_.h_n.prototype.onFullscreenChanged=function(A){this.gestures&&this.gestures.update(A)};_.v$c=function(A){_.k$.call(this);var Q=this;this.JSC$22840_watchApi=A;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(A.subscribeToActiveChanged(function(b){Q.onActiveChanged(b)}));
WTc(this)};
_.O(_.v$c,_.k$);var E$x=function(A){if(_.K("swatcheroo_page_dispose_all_watch_data"))A.pageDisposalDataTypes=Object.values(d18).filter(function(b){return b!=="PLAYLIST"});
else if(_.K("swatcheroo_page_dispose_rich_grid")){var Q;(Q=A.pageDisposalDataTypes)==null||Q.push("RICH_GRID_RENDERER")}},WTc=function(A){_.K("swatcheroo_enable_ghost_cards")&&(E$x(A),A.JSC$22840_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.j7.cancelJob(A.clearDataJobId);
A.clearDataJobId=0}),A.runPageDisposeJob=function(){var Q=_.fJ().resolve(_.F7).getDestinationPageType()==="watch";
A.clearDataJobId=_.hy(_.j7,A.runClearDataJob,Q?0:_.GP("web_watch_delay_page_dispose_ms",1E4))},A.runClearDataJob=function(){xus(A)},A.runOnYtNavigateAwayFinish=function(){A.clearDataJobId&&(_.j7.cancelJob(A.clearDataJobId),A.clearDataJobId=0,xus(A))},document.addEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish),A.JSC$22840_watchApi.addPageDisposeJob(A.runPageDisposeJob),A.addOnDisposeCallback(function(){A.JSC$22840_watchApi.removePageDisposeJob(A.runPageDisposeJob);
A.JSC$22840_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish)}))},xus=function(A){A.pageDisposalDataTypes.forEach(function(Q){A.JSC$22840_watchApi.provideRenderingData(Q,void 0)});
A.clearDataJobId=0};
_.v$c.prototype.onActiveChanged=function(A){A&&((A=document.querySelector("#watch-page-skeleton"))&&_.im(A),cT8(this),document.body.removeAttribute("no-y-overflow"),_.Ep("IS_SHELL_LOAD")&&_.$dq())};
var cT8=function(A){_.B(function(Q){if(Q.nextAddress==1)return Q.yield(A.JSC$22840_watchApi.playerApi,2);_.Dh();_.Oi(Q)})};var z_p;z_p=_.K("kevlar_watch_while_counterfactual")?0:.25;_.W$=function(A){_.k$.call(this);this.JSC$22843_watchApi=A;this.JSC$22843_watchWhileEnabled=_.K("kevlar_watch_while_v2");this.pipEnabled=_.K("web_enable_pip_on_miniplayer");wo$(this);ulT(this);ZKh(this)};
_.O(_.W$,_.k$);var wo$=function(A){A.JSC$22843_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){yT8(A)});
A.addOnDisposeCallback(function(){A.JSC$22843_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},ulT=function(A){var Q,b;
_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22843_watchApi.playerApi,2);Q=f.yieldResult;b=function(){yT8(A)};
Q.addEventListener("onCollapseMiniplayer",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onCollapseMiniplayer",b)});
_.Oi(f)})},ZKh=function(A){var Q=A.JSC$22843_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&Q&&A.JSC$22843_watchWhileEnabled&&(A.playerIntersectionObserver=new IntersectionObserver(function(b){A.handleIntersect(b)},{threshold:[z_p]}),A.playerIntersectionObserver.observe(Q),A.addOnDisposeCallback(function(){var b;
(b=A.playerIntersectionObserver)==null||b.disconnect()}))},yT8=function(A){var Q,b,f;
_.B(function(a){if(a.nextAddress==1){Q=_.fJ().resolve(_.F7);b=Q.data;f=_.GlF(b.response,b.playerResponse);_.kg().miniplayerButtonActivation=!0;if(A.pipEnabled)return _.kg().watchPipActivation=!0,a.jumpTo(2);_.fJ().resolve(_.zb).collapse();return a.yield(_.kg().navigationFinishPromise,2)}if(a.nextAddress!=4)return _.kg().currentEndpoint=f.watchEndpoint||null,a.yield(_.fJ().resolve(_.zb).activate(A.JSC$22843_watchApi.getElement("PLAYER"),f,b),4);_.kg().userActivation=!0;_.Oi(a)})};
_.W$.prototype.handleIntersect=function(A){YOn(this,A[A.length-1])};
var YOn=function(A,Q){A.watchWhileJobId&&_.j7.cancelJob(A.watchWhileJobId);A.watchWhileJobId=_.j7.addLowPriorityJob(function(){var b,f;return _.B(function(a){if(a.nextAddress==1)return A.watchWhileJobId=void 0,b=_.fJ().resolve(_.zb),Q.intersectionRatio>z_p?b.isMiniplayerActive()?a.yield(b.deactivate(),0):a.jumpTo(0):(f=!b.isMiniplayerActive())?a.yield(Duc(A),5):a.jumpTo(4);a.nextAddress!=4&&(f=a.yieldResult);if(!f)return a.jumpTo(0);_.kg().watchWhileActivation=!0;return a.yield($uc(A),0)})},100)},
Duc=function(A){return _.B(function(Q){return Q.nextAddress==1?_.K("kevlar_watch_while_paused")?Q.return(!0):Q.yield(A.isPlayerPlaying(),2):Q.return(Q.yieldResult)})};
_.W$.prototype.isPlayerPlaying=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(A.JSC$22843_watchApi.playerApi,2);Q=b.yieldResult;return b.return(Q.getPlayerStateObject().isPlaying)})};
var $uc=function(A){var Q,b;return _.B(function(f){Q=_.fJ().resolve(_.F7).data;b=_.GlF(Q.response,Q.playerResponse);_.kg().currentEndpoint=b.watchEndpoint||null;return f.yield(_.fJ().resolve(_.zb).activate(A.JSC$22843_watchApi.getElement("PLAYER"),b,Q),0)})};_.muT=function(A){_.k$.call(this);this.JSC$22847_watchApi=A;Nvi(this);sLY(this)};
_.O(_.muT,_.k$);var sLY=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22847_watchApi.playerApi,2);Q=f.yieldResult;b=function(a){var T;a.sessionData&&a.sessionData.itct&&(T=a.sessionData.itct);var G=a.watchEndpoint;if(G&&a.sessionData&&a.sessionData.autonav)G=_.$yJ(G,T);else{var p;G=_.aX(a.videoId,(p=a.listId)!=null?p:void 0,T)}T={endpoint:G};a.sessionData&&(T.tempData=a.sessionData);A.JSC$22847_watchApi.dispatchEvent("yt-navigate",T)};
Q.addEventListener("onPlayVideo",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onPlayVideo",b)});
_.Oi(f)})},Nvi=function(A){var Q=function(b){A.onYtNavigate(b)};
A.JSC$22847_watchApi.getRoot().addEventListener("yt-navigate",Q);A.addOnDisposeCallback(function(){A.JSC$22847_watchApi.getRoot().removeEventListener("yt-navigate",Q)})};
_.muT.prototype.onYtNavigate=function(A){var Q=this,b,f,a,T,G,p,P,U,L;return _.B(function(M){if(M.nextAddress==1){if(!((b=A.detail)==null?0:(f=b.endpoint)==null?0:f.watchEndpoint))return M.return();a=A.detail.endpoint.watchEndpoint;T=Q.JSC$22847_watchApi.getWatchNextResponse();p=_.V((G=T)==null?void 0:G.currentVideoEndpoint,_.sv);if(!p)return M.return();if(a.videoId!==p.videoId||a.playlistId&&a.playlistId!==p.playlistId||typeof a.startTimeSeconds!=="number")return M.jumpTo(0);A.stopPropagation();
(P=_.K("kevlar_watch_while_v2")&&!_.K("kevlar_watch_while_counterfactual"))&&_.fJ().resolve(_.zb).isMiniplayerActive()||Q.JSC$22847_watchApi.scrollWatchTo(0,!0);return M.yield(Q.JSC$22847_watchApi.playerApi,3)}U=M.yieldResult;L=a.startTimeSeconds;U.seekTo(L,void 0,void 0,void 0,84);U.wakeUpControls();L<U.getDuration()&&U.playVideo();_.Oi(M)})};_.Q78=function(A){_.k$.call(this);var Q=this;this.JSC$22850_watchApi=A;var b=this.JSC$22850_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Akx(Q)});
this.addOnDisposeCallback(function(){Q.JSC$22850_watchApi.unsubscribeByKey(b)});
Akx(this)};
_.O(_.Q78,_.k$);var Akx=function(A){var Q=A.JSC$22850_watchApi.getWatchNextResponse();if(Q){var b,f=[].concat(_.ri((b=Q==null?void 0:Q.engagementPanels)!=null?b:[]));f.unshift.apply(f,_.ri(bzp(Q)));A.JSC$22850_watchApi.provideRenderingData("ENGAGEMENT_PANELS",f)}},fD$=function(A){var Q,b,f,a=(Q=A.engagementPanels)==null?void 0:(b=Q.find(function(J){var n;
return((n=J.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(f=b.engagementPanelSectionListRenderer.content)==null?void 0:f.structuredDescriptionContentRenderer,T;
if(_.V(a==null?void 0:(T=a.items)==null?void 0:T.find(function(J){return!!_.V(J,g1i)}),g1i))return!0;
var G,p,P,U;if(A=(((G=A.contents)==null?void 0:(p=G.twoColumnWatchNextResults)==null?void 0:(P=p.results)==null?void 0:(U=P.results)==null?void 0:U.contents)||[]).find(function(J){return J.videoPrimaryInfoRenderer})){var L,M,l;
return(((L=A.videoPrimaryInfoRenderer)==null?void 0:(M=L.videoActions)==null?void 0:(l=M.menuRenderer)==null?void 0:l.flexibleItems)||[]).some(function(J){J=_.V(J,_.qqM);if(!J)return!1;var n,t;J=(n=J.topLevelButton)==null?void 0:(t=n.buttonViewModel)==null?void 0:t.onTap;if(!J)return!1;n=_.ue(J);if(!n)return!1;var g;return((g=_.V(n,_.hb))==null?void 0:g.panelIdentifier)==="PAyouchat"})}return!1},bzp=function(A){var Q=[];
if(!_.K("web_watch_inject_placeholder_fantasy_panel_killswitch")){var b,f,a,T=(b=A.engagementPanels)==null?void 0:(f=b.find(function(p){var P;return((P=p.engagementPanelSectionListRenderer)==null?void 0:P.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(a=f.engagementPanelSectionListRenderer.content)==null?void 0:a.structuredDescriptionContentRenderer,G;
_.V(T==null?void 0:(G=T.items)==null?void 0:G.find(function(p){return!!_.V(p,PYd)}),PYd)&&(b=_.HyA("PAsports_fantasy"),b.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q.push(b))}fD$(A)&&(A=_.HyA("PAyouchat"),A.engagementPanelSectionListRenderer.targetId="PAyouchat",A.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q.push(A));
return Q};_.TYs=function(A){_.k$.call(this);this.JSC$22853_watchApi=A;aDd(this)};
_.O(_.TYs,_.k$);var aDd=function(A){A.JSC$22853_watchApi.registerActionHandler("yt-loop-command",function(Q){dzs(A,Q)});
A.JSC$22853_watchApi.registerActionHandler("yt-repeat-chapter-command",function(Q){FM$(A,Q)});
A.addOnDisposeCallback(function(){A.JSC$22853_watchApi.unregisterActionHandler("yt-loop-command");A.JSC$22853_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},dzs=function(A,Q){var b;
_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22853_watchApi.playerApi,2);b=f.yieldResult;_.V(Q,SLV).loop?(b.setLoopRange({startTimeMs:Number(_.V(Q,SLV).startTimeMs),endTimeMs:Number(_.V(Q,SLV).endTimeMs),postId:_.V(Q,SLV).postId,type:"clips"}),b.playVideo()):b.setLoopRange(null);_.Oi(f)})},FM$=function(A,Q){var b,f;
_.B(function(a){if(a.nextAddress==1)return a.yield(A.JSC$22853_watchApi.playerApi,2);b=a.yieldResult;f=_.V(Q,Kjs).repeat;f==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(b.setLoopRange({startTimeMs:Number(_.V(Q,Kjs).startTimeMs),endTimeMs:Number(_.V(Q,Kjs).endTimeMs),type:"repeatChapter"}),b.playVideo()):f==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&b.setLoopRange(null);_.Oi(a)})};_.BYs=function(A){_.k$.call(this);this.JSC$22858_watchApi=A;GIT(this)};
_.O(_.BYs,_.k$);var GIT=function(A){A.JSC$22858_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(Q){p_$(A,Q)});
A.addOnDisposeCallback(function(){A.JSC$22858_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},p_$=function(A,Q){var b,f,a,T,G,p,P,U,L,M,l;
_.B(function(J){if(J.nextAddress==1)return J.yield(A.JSC$22858_watchApi.playerApi,2);b=J.yieldResult;if(T=(a=(f=_.V(Q,i$w))==null?void 0:f.highlightedMenuItemKey)!=null?a:"")(p=(G=b).highlightSettingsMenuItem)==null||p.call(G,T);if(L=(U=(P=_.V(Q,i$w))==null?void 0:P.openMenuItemKey)!=null?U:"")(l=(M=b).openSettingsMenuItem)==null||l.call(M,L);_.Oi(J)})};var P4x=_.LO("/youtube/app/watch/player_state","playerStateEntity");_.S7V=function(A){_.k$.call(this);this.JSC$22861_watchApi=A;X_w(this)};
_.O(_.S7V,_.k$);var Uzn=function(A){switch(A){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"}},X_w=function(A){var Q,b;
_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22861_watchApi.playerApi,2);Q=f.yieldResult;b=function(a){A.onPlayerStateChange(a)};
Q.addEventListener("onStateChange",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onStateChange",b)});
_.Oi(f)})};
_.S7V.prototype.onPlayerStateChange=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1)return a.yield(Q.JSC$22861_watchApi.playerApi,2);b=a.yieldResult;f=b.getVideoData().video_id;_.m5().dispatch(_.HL("playerStateEntity",P4x,{key:P4x,playerState:Uzn(A),videoId:f}));_.Oi(a)})};_.MB$=function(A){_.k$.call(this);var Q=this;this.JSC$22865_watchApi=A;this.enableExternalPlaylistPanelInPlayer=_.K("delhi_web_player_use_external_playlist_panel");_.fJ().resolve(_.u$).setPlayer(this.JSC$22865_watchApi.getElement("PLAYER"));A=this.JSC$22865_watchApi.subscribeToActiveChanged(function(b){Q.onActiveChanged(b)});
this.addOnDisposeCallback(A);LM$(this)};
_.O(_.MB$,_.k$);var LM$=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return A.enableExternalPlaylistPanelInPlayer?f.yield(A.JSC$22865_watchApi.playerApi,2):f.return();Q=f.yieldResult;b=function(){if(A.playlistPanelElement)A.playlistPanelElement.onToggleExpanded()};
Q.addEventListener("onToggleExternalPlaylistPanel",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onToggleExternalPlaylistPanel",b)});
_.Oi(f)})};
_.MB$.prototype.onActiveChanged=function(A){var Q=this,b=_.fJ().resolve(_.u$),f=function(){lDn(Q)};
A?(this.playlistPanelElement=this.JSC$22865_watchApi.getElement("PLAYLIST_PANEL"))?(b.setPlaylistComponent(this.playlistPanelElement),b.addEventListener("yt-playlist-data-updated",f),this.addOnDisposeCallback(function(){b.removeEventListener("yt-playlist-data-updated",f)}),lDn(this)):_.wN(Error("zo")):(b.removeEventListener("yt-playlist-data-updated",f),b.cancelVideoSkip())};
var lDn=function(A){var Q=_.fJ().resolve(_.u$);A.JSC$22865_watchApi.provideRenderingData("PLAYLIST",Q.getPlaylistData())};_.v$=function(A){_.k$.call(this);var Q=this;this.JSC$22868_watchApi=A;this.onPageScroll=function(){Q.scrollThrottle.fire();Q.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Ac(this.onThrottledScroll,200,this);_.SY(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Ac(this.onMastheadThrottledScroll,50,this);_.SY(this,this.mastheadScrollThrottle);this.animation=new _.sa(function(b){Q.JSC$22868_watchApi.getRoot().setScrollTop(b)});
A=_.H1(_.QK(),_.w_,function(){Q.onFullscreenChanged()});
this.addOnDisposeCallback(A);KM$(this);izw(this);this.onThrottledScroll()};
_.O(_.v$,_.k$);
_.v$.prototype.onFullscreenChanged=function(){var A=this,Q=this.JSC$22868_watchApi.getRoot();!this.pageScrollElement&&Q.pageScrollElement?(this.pageScrollElement=Q.pageScrollElement,Q.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){A.pageScrollElement&&A.pageScrollElement.removeEventListener("scroll",A.onPageScroll)})):this.pageScrollElement&&!Q.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var KM$=function(A){window.addEventListener("scroll",A.onPageScroll);A.addOnDisposeCallback(function(){window.removeEventListener("scroll",A.onPageScroll)})},izw=function(A){A.JSC$22868_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(Q){a:{var b;
if(b=A.JSC$22868_watchApi.getRoot().contains(Q)&&!A.animation.isAnimating()){b=Q.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var f,a,T=(Q==null?void 0:(f=Q.parentElement)==null?void 0:(a=f.parentElement)==null?void 0:a.id)==="fixed-secondary";b=!(b&&T)}if(b){if(_.K("kevlar_watch_scroll_manager_absolute_offset_killswitch"))f=Q.offsetTop;else for(f=0,a=Q;a!==null;)f+=a.offsetTop,f-=a.scrollTop,a=a.offsetParent;a=f;f=a-24;Q=a+Q.offsetHeight+24;a=A.JSC$22868_watchApi.getRoot().getPageScrollingElement();
b=A.JSC$22868_watchApi.getRoot().getScrollTop();T=b+a.clientHeight-56;if(f<b+56)Q=f-56;else if(Q>T)Q-=a.clientHeight;else break a;A.scrollWatchTo(Math.max(0,Q),!0)}}});
A.addOnDisposeCallback(function(){A.JSC$22868_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.v$.prototype.onThrottledScroll=function(){var A=_.QK(),Q=A.dispatch,b=this.JSC$22868_watchApi.getRoot().getScrollTop();Q.call(A,_.G7({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:b}}))};
_.v$.prototype.onMastheadThrottledScroll=function(){this.JSC$22868_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$22868_watchApi.getRoot().getScrollTop())};
_.v$.prototype.scrollWatchTo=function(A,Q){(Q===void 0?0:Q)?this.animation.start(this.JSC$22868_watchApi.getRoot().getScrollTop(),Math.max(0,A),500):this.JSC$22868_watchApi.getRoot().setScrollTop(A)};_.Ozs=function(A){_.k$.call(this);var Q=this;this.JSC$22871_watchApi=A;var b=this.JSC$22871_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JkT(Q)}),f=this.JSC$22871_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VBV(Q)});
this.addOnDisposeCallback(function(){Q.JSC$22871_watchApi.unsubscribeByKey(b);Q.JSC$22871_watchApi.unsubscribeByKey(f)});
JkT(this);VBV(this)};
_.O(_.Ozs,_.k$);
var JkT=function(A){var Q,b,f,a=(f=(Q=A.JSC$22871_watchApi.getPlayerResponse())==null?void 0:(b=Q.videoDetails)==null?void 0:b.title)!=null?f:"";A.JSC$22871_watchApi.dispatchEvent("yt-update-title",a)},VBV=function(A){var Q,b,f,a,T,G,p,P=(p=((G=(Q=A.JSC$22871_watchApi.getWatchNextResponse())==null?void 0:(b=Q.contents)==null?void 0:(f=b.twoColumnWatchNextResults)==null?void 0:(a=f.results)==null?void 0:(T=a.results)==null?void 0:T.contents)!=null?G:[]).find(function(U){return!!U.videoPrimaryInfoRenderer}))==null?
void 0:p.videoPrimaryInfoRenderer;
(Q=_.mO(P==null?void 0:P.title))&&A.JSC$22871_watchApi.dispatchEvent("yt-update-title",Q)};_.kIp=function(A){_.k$.call(this);this.JSC$22874_watchApi=A;nAn(this)};
_.O(_.kIp,_.k$);var nAn=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$22874_watchApi.playerApi,2);Q=f.yieldResult;b=function(){A.onYpcContentRequest()};
Q.addEventListener("onYpcContentRequest",b);A.addOnDisposeCallback(function(){Q.removeEventListener("onYpcContentRequest",b)});
_.Oi(f)})};
_.kIp.prototype.onYpcContentRequest=function(){var A,Q,b,f,a,T=(A=this.JSC$22874_watchApi.getWatchNextResponse())==null?void 0:(Q=A.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(f=b.secondaryResults)==null?void 0:(a=f.secondaryResults)==null?void 0:a.offerModule,G,p,P,U;A=(U=(P=(p=(G=T==null?void 0:T.episodeOfferModuleRenderer)!=null?G:T==null?void 0:T.movieOfferModuleRenderer)!=null?p:T==null?void 0:T.unlimitedOfferModuleRenderer)!=null?P:T==null?void 0:T.liveOfferModuleRenderer)!=
null?U:T==null?void 0:T.tvfilmOfferModuleRenderer;var L,M,l;T=(l=T==null?void 0:(L=T.tvfilmOfferModuleRenderer)==null?void 0:(M=L.actionButtons)==null?void 0:M.length)!=null?l:0;M=Math.max(T-1,0);var J,n,t;L=(t=A==null?void 0:(J=A.offerButton)==null?void 0:J.buttonRenderer)!=null?t:A==null?void 0:(n=A.actionButtons)==null?void 0:n[M].buttonRenderer;var g,e;(J=(e=(g=L==null?void 0:L.navigationEndpoint)!=null?g:L==null?void 0:L.serviceEndpoint)!=null?e:L==null?void 0:L.command)&&_.J8.instance.resolveCommand(J)};
}catch(e){_._DumpException(e)}
try{
var P0s,G9N,dHx;_.FLF=function(){var A=_.j2.clone(TKN),Q;return(new _.M3(function(b,f){A.onSuccess=function(a){_.jF6(a)?b(new dHx(a)):f(new _.U_("Request failed, status="+_.Pr(a),"net.badstatus",a))};
A.onError=function(a){f(new _.U_("Unknown request error","net.unknown",a))};
A.onTimeout=function(a){f(new _.U_("Request timed out","net.timeout",a))};
Q=_.MQ("//googleads.g.doubleclick.net/pagead/id",A)})).thenCatch(function(b){if(b instanceof _.Zh){var f;
(f=Q)==null||f.abort()}return _.gF(b)})};
_.BKt=function(A){a:{var Q="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(Q="EMBEDDED_PLAYER_MODE_PFL");var b=A.raw_embedded_player_response;if(!b&&(A=A.embedded_player_response))try{b=JSON.parse(A)}catch(a){break a}if(b)b:for(var f in G9N)if(G9N[f]==b.embeddedPlayerMode){Q=G9N[f];break b}}return Q==="EMBEDDED_PLAYER_MODE_PFL"};
_.ptq=function(){if(_.K("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("nf");if(!_.A2W())return Error("of");var A=_.vG("PLAYER_VARS",{});if(_.j2.get(A,"privembed",!1)=="1")return Error("pf");if(_.BKt(A))return Error("qf")};
P0s=function(A){switch(A){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:_.x1(A,"unknown result type")}};
_.XtF=function(A,Q,b){Q=_.mCf[Q];b={detected:A===0,source:Q.nyP,detectionResult:P0s(A),contentCpn:b};_.R4("biscottiBasedDetection",b);_.GAj.increment(Q.nyP,A);Q.s9g!==void 0&&_.e6("CATSTAT",_.NS6(A,Q))};
_.Lj=function(A,Q){var b={};b.key=A;b.value=Q;return _.jSe().then(function(f){return new Promise(function(a,T){try{var G=f.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(b);G.onsuccess=function(){a()};
G.onerror=function(){T()}}catch(p){T(p)}})})};
_.UH7=function(){var A=_.GP("user_engagement_experiments_rate_limit_ms"),Q=S8N.get("last-user-engagement-exp-trigger-timestamp");return!Q||(0,_.f4)()>=Q+A?(S8N.set("last-user-engagement-exp-trigger-timestamp",(0,_.f4)()),!0):!1};
_.Mv=function(A,Q,b,f,a){Q=Q===void 0?null:Q;b=b===void 0?null:b;f=f===void 0?null:f;a=a===void 0?null:a;A={youThereEventType:A};b&&(A.lactThresholdMs=b.lactThresholdMs,A.mediaPosSec=b.promptDelaySec,A.lactServerRequestMs=b.lactServerRequestMs,A.triggerReason=b.triggerReason);a!=null&&(A.renderingMediaPosSec=Math.round(a));Q||(Q=_.WR());Q&&(A.clientScreenNonce=Q);f&&(A.clientPlaybackNonce=f);_.R4("youThere",A)};
G9N={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"};dHx=function(A){this.xhr=A};
_.U_=function(A,Q,b){_.A4.call(this,A+", errorCode="+Q);this.errorCode=Q;this.xhr=b;this.name="PromiseAjaxError"};
_.O(_.U_,_.A4);var TKN={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var S8N=new _.WE("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.afs=function(A){return _.G7({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:A})};
}catch(e){_._DumpException(e)}
try{
var z6,yk$,Dzi,$z8,NY8,s7$,Azw,BNY,pGi,Pdh,mzY,Y7s,aRw,fR8,Uqs;_.Zzs=function(){var A=window.location.hash;A.charAt(0)==="#"&&(A=A.charAt(1)==="!"?A.substring(2):A.substring(1));return _.y6(A)};
z6=function(A,Q,b){var f;return _.B(function(a){if(a.nextAddress==1)return a.yield(Q(),2);f=a.yieldResult;b(f,A);_.Oi(a)})};
yk$=function(){return _.B(function(A){return A.nextAddress==1?A.yield((_.ptq()!==void 0?_.gF(Error("rf")):_.FLF()).then(function(){return 1},function(Q){if(Q.message==="Biscotti id is disabled")return 3;
_.Wv("Failed fetching bid");return 0}),2):A.return(A.yieldResult)})};
Dzi=function(){var A=_.Tx("LWhhdmVuLWVtYmVkLXBsYXllciN4ZjhzNmVydGhobzJ5dA=="),Q=_.Tx("ZHR2MWZrcHBtaWZyYW1lI3NtNA==");return document.querySelector(Q+Y7s+A)?0:1};
$z8=function(){return _.Wxi(_.mc)};
NY8=function(){return _.vXY()===0?0:_.EXi()};
s7$=function(){return _.uJW(_.dC9([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Azw=function(){return _.oXi(mzY)};
_.Q8n=function(A){_.B(function(Q){switch(Q.nextAddress){case 1:return Q.yield(z6("b.f_",yk$,A),2);case 2:return Q.yield(z6("j.s_",_.CFe,A),3);case 3:return Q.yield(z6("r.s_",_.kv6,A),4);case 4:return Q.yield(z6("e.h_",Azw,A),5);case 5:if(!_.K("ab_det_sc_inj")){Q.jumpTo(6);break}return Q.yield(z6("s.i_",_.e09,A),6);case 6:if(_.K("ab_deg_unex_thr")){Q.jumpTo(8);break}return Q.yield(z6("a.o_",_.R0f,A),8);case 8:if(_.K("ks_get_o_pp")){Q.jumpTo(10);break}return Q.yield(z6("g.o_",_.jEF,A),10);case 10:if(_.K("ks_det_gpbl")){Q.jumpTo(12);
break}return Q.yield(z6("p.i_",_.rFF,A),12);case 12:return Q.yield(z6("f.i_",_.SEb,A),14);case 14:return Q.yield(z6("a.b_",_.OVy,A),15);case 15:return Q.yield(z6("p.m_",_.MGJ,A),16);case 16:if(!_.K("ab_det_el_h_v2")){Q.jumpTo(17);break}return Q.yield(z6("n.h_",s7$,A),17);case 17:return Q.yield(z6("o.p_",$z8,A),19);case 19:return Q.yield(z6("e.i_",Dzi,A),20);case 20:if(_.K("ab_det_apm"))return Q.yield(z6("o.a_",NY8,A),0);Q.jumpTo(0)}})};
_.bHs=function(A,Q){A={videoId:A};Q&&(A.playlistId=Q);return A};
_.TNT=function(){if(_.A2W()){var A=_.vG("PLAYER_VARS",{});if(_.j2.get(A,"privembed",!1)!="1"&&!_.BKt(A)){var Q=function(){fR8=!0;"google_ad_status"in window?_.e6("DCLKSTAT",1):_.e6("DCLKSTAT",2)};
try{_.uh(_.BcK,Q)}catch(b){}aRw.push(_.j7.addLowPriorityJob(function(){if(!(fR8||"google_ad_status"in window)){try{_.ZUW(_.BcK.toString(),Q)}catch(b){}fR8=!0;_.e6("DCLKSTAT",3)}},5E3))}}};
_.dqp=function(A,Q,b){b=b===void 0?!1:b;var f=Math.max(A.width,_.hNp);if(_.K("kevlar_watch_feed_big_thumbs")&&A.width>=1550-_.NG()&&A.height>=800)f-=_.zNY;else if(A.width>=_.hJ){var a=_.Wjh+_.v1w+_.eP;_.K("kevlar_watch_feed_big_thumbs")&&(a=_.cvc);f-=a}else f-=_.Wjh;f=Math.min(f,_.E1V);a=240;b&&(a=380);Q<.5624||(!_.K("kevlar_watch_flexy_disable_small_window_sizing")&&(A.height<630&&A.width>=657||A.height>=630&&A.width>=_.hJ&&A.width<1327)?a=360:!_.K("kevlar_watch_flexy_disable_large_window_sizing")&&
A.height>=630&&A.width>=1327&&(a=480));var T=Math.min(f*Q,A.height-(56+_.eNp+_.xxV));T=Math.max(T,a);Q<1?f=T/Q:A.width>=_.hJ&&(f=_.dqp(A,.5625,b).width);return new _.iw(Math.round(f),Math.round(T))};
_.FRs=function(A){var Q=0;A.indexOf("h")!=-1&&(A=A.split("h"),Q=A[0]*60*60,A=A[1]);A.indexOf("m")!=-1&&(A=A.split("m"),Q=A[0]*60+Q,A=A[1]);A.indexOf("s")!=-1?(A=A.split("s"),Q=A[0]*1+Q):Q=A*1+Q;return Q};
_.GVs=function(){_.GP("service_worker_push_logged_out_prompt_watches")!=-1&&_.VN("WatchCount").then(function(A){A>=100||_.Lj("WatchCount",A+1)})};
BNY=function(A){var Q=A.externalVideoId||"";return Q?A.isShortsEligible?"https://www.youtube.com/shorts/"+Q:"https://www.youtube.com/watch?v="+Q:""};
pGi=function(A){var Q=[];A.viewCount&&Q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:A.viewCount});A.likeCount&&Q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:A.likeCount});return Q};
Pdh=function(A){var Q,b,f={"@context":"https://schema.org","@type":"VideoObject",description:_.mO(A.description),duration:"PT"+(A.lengthSeconds||"0")+"S",embedUrl:A.embed?A.embed.iframeUrl:"",name:_.mO(A.title),thumbnailUrl:((Q=A.thumbnail)==null?void 0:(b=Q.thumbnails)==null?void 0:b.map(function(L){return L&&L.url||""}))||[],
uploadDate:A.publishDate};_.K("mweb_video_schema_id_killswitch")||(f["@id"]=BNY(A));Q=pGi(A);Q.length&&(f.interactionStatistic=Q);A.category&&(f.genre=A.category);A.ownerChannelName&&(f.author=A.ownerChannelName);A.liveBroadcastDetails&&(f.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:A.liveBroadcastDetails.startTimestamp,endDate:A.liveBroadcastDetails.endTimestamp}]);if(A.learningResource){A=A.learningResource;f["@type"]=["VideoObject","LearningResource"];var a;if((a=A.learningResourceType)==
null?0:a.length)f.learningResourceType=A.learningResourceType[0];var T;if((T=A.educationalAlignment)==null?0:T.length)f.educationalAlignment={"@type":"AlignmentObject",targetName:A.educationalAlignment[0]};var G;if((G=A.educationalLevel)==null?0:G.length){a=A.educationalLevel[0];var p;if((p=A.educationalLevelCountry)==null?0:p.length)a+=" ("+A.educationalLevelCountry+")";f.educationalLevel=a}var P,U;if(((P=A.learningResourceType)==null?0:P.length)&&A.learningResourceType[0]==="Problem walkthrough"&&
((U=A.problemDescriptions)==null?0:U.length))for(f.hasPart=[],p=_.F(A.problemDescriptions),P=p.next();!P.done;P=p.next())a=P.value,P=a.problemDescriptionText,U=a.startOffset,a=a.url,P&&U!==void 0&&a&&f.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:P,text:P,startOffset:U,url:a})}return f};
_.XGd=function(A){return _.G7({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:A}})};
mzY=[[["c3QxZ21vcHJpbWFyeSM1ajc2cTI=",null,null],[null,["ZXIjcjU2NTdpa3J6YmFheXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVy","c2NvcGUjZmtxcjRqeHB1aGtmc3R5bGUt"],null],["YWQtYWQjemMyNGNvam5pazFsbWFzdGhl",["cmljaC1ncmlkLXJlbmRlcmVyI3ducXdyeGMzMnp3cXl0ZC0="],null],[null,["cmljaC1ncmlkLXJlbmRlcmVyIzVtcjBwdDZyajk2Z3l0ZC0=","c2NvcGUjNzJjdDdqbjN0eWFsc3R5bGUt"],null],[null,["LXByb21vLXJlbmRlcmVyIzVjOTJ5dm1xejgwc3l0ZC1iYW5uZXI=","c2NvcGUjd2Y2amRsdzQ3OXc2c3R5bGUt"],null],[null,["eXRkLWFkLXNsb3QtcmVuZGVyZXIjdmJjdnRtY2s0b3B4"],
null]],[["eWVyLWFkcyNjeWlhZHY2MXJ5b2xwbGE=",null,null]],[["cXJqbWQ4ZGVzY3JpcHRpb24taW5uZXIjemYxaGZs",null,null],[null,null,"aC1zaGVsZi1yZW5kZXJlciM4OHVpZ2gxb3I4dW95dGQtbWVyYw=="],["aW4jOXFyYTEwNGZpeWIybWE=",["aC1zaGVsZi1yZW5kZXJlciN0cmxxd3FvaXg4MXV5dGQtbWVyYw=="],null]]];Y7s="#";aRw=[];fR8=!1;_.SpV=["engagement-panel-ads"];Uqs=new _.fU("updateSentimentBarStateCommand");_.LR8=new _.fU("showSurveyCommand");_.wc=new _.fU("changeMarkersVisibilityCommand");var lRT,KRT,OH$,V6$,JzT,uq;_.M6d=function(A,Q){this.playerProvider_=A;this.actionSenderElement_=Q;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.M6d.prototype.reset=function(){lRT(this);this.isUserPredictedAbsent_=!1};
lRT=function(A,Q){!A.youThereData_||A.showWarningJob_||Q!==void 0&&Q||(_.Mv("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.WR(),A.youThereData_,A.clientPlaybackNonce_),_.go());_.j7.cancelJob(A.showWarningJob_);A.showWarningJob_=0;_.j7.cancelJob(A.showBlockingWarningJob_);A.showBlockingWarningJob_=0;_.j7.cancelJob(A.pausePlaybackJob_);A.pausePlaybackJob_=0;A.youThereData_=null;A.clientPlaybackNonce_=void 0;A.inYouThereFlow_=!1};
_.iHs=function(A,Q){var b,f,a;_.B(function(T){if(T.nextAddress==1)return A.reset(),T.yield(A.playerProvider_().getPlayerPromise(),2);b=T.yieldResult;A.clientPlaybackNonce_=b.getVideoData().cpn;A.youThereData_=Q.configData.youThereData;if(!A.youThereData_)return T.return();if(A.youThereData_.triggerReason&&A.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.UH7())return _.Mv("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.WR(),A.youThereData_,A.clientPlaybackNonce_),T.return();f=A.youThereData_.promptDelaySec;
a=b.getCurrentTime();A.showWarningJob_=_.j7.addLowPriorityJob(function(){return _.B(function(G){A.showWarningJob_=0;return G.yield(KRT(A),0)})},Math.max(f-a,0)*1E3);
_.Oi(T)})};
KRT=function(A){var Q,b,f,a,T,G;return _.B(function(p){if(p.nextAddress==1)return p.yield(A.playerProvider_().getPlayerPromise(),2);if(p.nextAddress!=3)return Q=p.yieldResult,b=Q.getCurrentTime(),p.yield(JzT(A),3);f=p.yieldResult;if(!f||!A.youThereData_)return p.return();if(_.K("check_user_lact_at_prompt_shown_time_on_web")&&(a=parseInt(A.youThereData_.lactThresholdMs,10),_.TD()<a))return _.Mv("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.WR(),A.youThereData_,A.clientPlaybackNonce_),p.return();if(A.youThereData_.playbackPauseDelayMs<=
0)return V6$(A),p.return();!_.K("external_fullscreen")&&(T=_.aF())&&(A.ignoreFullscreenExitUserActivity_=!0,_.j7.addLowPriorityJob(function(){A.ignoreFullscreenExitUserActivity_=!1},2E3),_.d2(T));
A.youThereData_.showToastWarningPrompt&&(uq(A,A.youThereData_.showWarningActions),A.inYouThereFlow_=!0,_.Mv("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.WR(),A.youThereData_,A.clientPlaybackNonce_,b),_.Mv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.WR(),A.youThereData_,A.clientPlaybackNonce_,b));G=0;A.youThereData_.blockingPromptDelayMs&&(G=A.youThereData_.blockingPromptDelayMs);A.showBlockingWarningJob_=_.j7.addLowPriorityJob(function(){return _.B(function(P){A.showBlockingWarningJob_=0;return P.yield(OH$(A),
0)})},G);
_.Oi(p)})};
OH$=function(A){var Q,b,f;return _.B(function(a){if(a.nextAddress==1)return a.yield(JzT(A),2);Q=a.yieldResult;if(!A.youThereData_)return a.return();Q&&(A.youThereData_.showBlockingWarningAction&&(_.Mv("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.WR(),A.youThereData_,A.clientPlaybackNonce_),(b=_.V(A.youThereData_.showBlockingWarningAction,_.LD))?uq(A,b.commands):uq(A,[A.youThereData_.showBlockingWarningAction]),A.inYouThereFlow_=!0),f=A.youThereData_.playbackPauseDelayMs,A.pausePlaybackJob_=
_.j7.addLowPriorityJob(function(){return _.B(function(T){A.pausePlaybackJob_=0;return T.yield(V6$(A),0)})},f));
_.Oi(a)})};
V6$=function(A){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(JzT(A),2);Q=b.yieldResult;if(!A.youThereData_)return b.return();Q&&(_.Mv("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.WR(),A.youThereData_,A.clientPlaybackNonce_),uq(A,A.youThereData_.showPausedActions),A.inYouThereFlow_=!0);_.Oi(b)})};
_.M6d.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var A=_.V(this.youThereData_.userActiveDuringFlowAction,_.LD);A?uq(this,A.commands):uq(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Mv("YOU_THERE_EVENT_TYPE_LACT_RESET",_.WR(),this.youThereData_,this.clientPlaybackNonce_),_.go());lRT(this,!0)}_.nQ$(this,!1)};
_.kVc=function(A){_.Mv("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.WR(),A.youThereData_,A.clientPlaybackNonce_)};
JzT=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(A.playerProvider_().getPlayerPromise(),2);Q=f.yieldResult;b=Q.getPlayerState();return f.return(b==-1||b==1||b==3)})};
_.nQ$=function(A,Q){var b;_.B(function(f){if(f.nextAddress==1){if(A.isUserPredictedAbsent_==Q)return f.jumpTo(0);A.isUserPredictedAbsent_=Q;return f.yield(A.playerProvider_().getPlayerPromise(),3)}b=f.yieldResult;b.setUserEngagement(Q);Q&&_.Mv("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.WR(),A.youThereData_,A.clientPlaybackNonce_);_.Oi(f)})};
uq=function(A,Q){if(_.K("handle_service_request_actions")||_.K("kevlar_youthere_service_endpoint_actions_killswitch"))_.ST(A.actionSenderElement_,Q,A.actionSenderElement_);else{Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())b=b.value,b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.sendPost?_.X5(A.actionSenderElement_,[b]):_.ST(A.actionSenderElement_,[b],A.actionSenderElement_)}};var IRi;var HHY;var Zz=function(){var A=_.q.apply(this,arguments)||this;A.systemIcons=_.K("kevlar_system_icons");A.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return A};
_.O(Zz,_.q);Zz.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var A=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(A=this.data.percentIfLiked||0,this.activated=!0):(A=this.data.percentIfIndifferent||0,this.activated=!1);_.Bj(this.hostElement).querySelector("#like-bar").style.width=A+"%"}};
Zz.prototype.handleUpdateSentimentBarStateCommand=function(A){this.data&&this.set("data.likeStatus",_.V(A,Uqs).likeStatus)};
Zz.prototype.observeLikeStatus=Zz.prototype.observeLikeStatus;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Zz.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zz.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Zz.prototype,"activated",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zz.prototype,"systemIcons",void 0);_.E([_.iN("data.likeStatus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zz.prototype,"observeLikeStatus",null);_.E([_.h({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Zz);
_.W(Zz,"ytd-sentiment-bar-renderer",function(){if(HHY!==void 0)return HHY;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return HHY=A},{mode:1});var CdV;var y$=function(){var A=_.q.apply(this,arguments)||this;A.small=!0;return A};
_.O(y$,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],y$.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],y$.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],y$.prototype,"small",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],y$);
_.W(y$,"ytd-video-view-count-renderer",function(){if(CdV!==void 0)return CdV;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return CdV=A},{mode:_.UG("kevlar_poly_si_batch_j080")?1:2});var YP=function(){var A=_.q.apply(this,arguments)||this;A.infoFormattedStrings=[];A.wrapVideoActions=_.K("kevar_watch_wrap_video_actions");A.hideSentimentBar=_.K("kevlar_watch_hide_sentiment_bar");A.actionMap={};return A};
_.O(YP,_.q);_.d=YP.prototype;_.d.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.K("web_modern_buttons"),forceIconButton:!_.K("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.d.dataChanged=function(){_.K("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.d.computeInfoFormattedStrings=function(A){if(!A)return[];var Q=[];A.dateText&&Q.push(A.dateText);A.stationName&&Q.push(A.stationName);A.rating&&Q.push(A.rating);A.startEndTimeTemplate&&A.startTimeUtcMillis&&A.endTimeUtcMillis&&Q.push(_.sr(_.df8(_.mO(A.startEndTimeTemplate),Number(A.startTimeUtcMillis),Number(A.endTimeUtcMillis))));A.upNextProgramText&&Q.push(A.upNextProgramText);return Q};
_.d.scheduleInitialUpdatedMetadataRequest=function(){var A,Q=(A=this.data)==null?void 0:A.updatedMetadataEndpoint;if(Q){var b;A=Number((b=_.V(Q,_.Tlv))==null?void 0:b.initialDelayMs);b=isNaN(A)?250:A;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),b)}};
_.d.setSentimentBarWidth=function(){var A=this;_.mL(this,function(){var Q=_.Bj(A.hostElement).querySelector("ytd-menu-renderer");if(Q){Q=Q.topLevelButtons;for(var b=0,f=0;f<Q.length;f++){var a=Q[f],T=A.get("toggleButtonSupportedData.toggleButtonIdData.id",a.data);if(T==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||T==="TOGGLE_BUTTON_ID_TYPE_LIKE")b+=a.clientWidth+8;else break}b&&(A.sentiment.style.width=b-8+" px")}})};
_.d.fetchUpdatedMetadata=function(A){var Q;A&&(Q={continuation:A});var b;(A=(b=this.data)==null?void 0:b.updatedMetadataEndpoint)&&_.fJ().resolve(_.de).resolveCommand(A,{form:Object.assign({},Q,{element:this.hostElement})})};
_.d.onYtServiceRequestSent=function(A,Q){Q.endpoint&&_.V(Q.endpoint,_.up)&&(this.hasUpdateSentimentBarStateCommands()&&!_.K("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.V(Q.endpoint,_.up).status),this.setSentimentBarWidth())};
_.d.hasUpdateSentimentBarStateCommands=function(){var A,Q,b,f,a=(f=(A=this.data)==null?void 0:(Q=A.videoActions)==null?void 0:(b=Q.menuRenderer)==null?void 0:b.topLevelButtons)!=null?f:[];A=_.F(a);for(Q=A.next();!Q.done;Q=A.next()){Q=Q.value;a=f=b=void 0;var T=(b=Q.toggleButtonRenderer)==null?void 0:(f=b.toggleButtonSupportedData)==null?void 0:(a=f.toggleButtonIdData)==null?void 0:a.id;if(T==="TOGGLE_BUTTON_ID_TYPE_LIKE"||T==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){f=b=void 0;Q=(f=_.V((b=Q.toggleButtonRenderer)==
null?void 0:b.defaultServiceEndpoint,_.LD))==null?void 0:f.commands;if(!Q)break;Q=_.F(Q);for(b=Q.next();!b.done;b=Q.next())if(_.V(b.value,Uqs))return!0}}return!1};
_.d.onYtServiceRequestCompleted=function(A,Q){var b;(A=(b=Q.data)==null?void 0:b.loggingDirectives)&&_.jQX(_.IP(),A);this.get("continuation.timedContinuationData",Q.data)&&this.data&&this.data.updatedMetadataEndpoint&&(Q=Q.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,Q.continuation),Q.timeoutMs))};
_.d.computeHasDateText=function(A){return!!A&&!!A.dateText};
_.Qr.Object.defineProperties(YP.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;return!((f=(A=this.data)==null?void 0:(Q=A.videoActions)==null?void 0:(b=Q.menuRenderer)==null?void 0:b.flexibleItems)==null||!f.length)}}});
YP.prototype.onYtServiceRequestCompleted=YP.prototype.onYtServiceRequestCompleted;YP.prototype.onYtServiceRequestSent=YP.prototype.onYtServiceRequestSent;YP.prototype.dataChanged=YP.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],YP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.du.YtTaskEmitterBehavior),_.c("design:type",Object)],YP.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YP.prototype,"data",void 0);_.E([_.C({computed:"computeInfoFormattedStrings(data)"}),_.c("design:type",Array)],YP.prototype,"infoFormattedStrings",void 0);
_.E([_.C({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],YP.prototype,"hasDateText",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YP.prototype,"wrapVideoActions",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YP.prototype,"hideSentimentBar",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],YP.prototype,"flexMenuEnabled",null);
_.E([_.V1("#sentiment"),_.c("design:type",Object)],YP.prototype,"sentiment",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YP.prototype,"dataChanged",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],YP.prototype,"onYtServiceRequestSent",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],YP.prototype,"onYtServiceRequestCompleted",null);
_.W(YP,"ytd-video-primary-info-renderer",function(){if(IRi===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);IRi=A}A=IRi;return A},{mode:1});var qpT;var Dz=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.O(Dz,_.q);_.d=Dz.prototype;_.d.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"}}}};
_.d.dataChanged=function(){var A;this.descriptionToggled=!((A=this.data)==null||!A.defaultExpanded);var Q;this.collapsed=this.descriptionAlwaysCollapsed||!((Q=this.data)==null?0:Q.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.K6(110509);this.showLessClientVe=_.K6(110510);A=_.WR();Q=_.hx();A&&Q&&_.ZV(A,Q,[this.showMoreClientVe,this.showLessClientVe])};
_.d.onYtExpanderMoreTapped=function(){var A,Q=(A=this.data)==null?void 0:A.showMoreCommand;Q&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(Q);(A=_.WR())&&this.showMoreClientVe&&_.$_(A,this.showMoreClientVe)};
_.d.onYtExpanderLessTapped=function(){var A=_.WR();A&&this.showLessClientVe&&_.$_(A,this.showLessClientVe);var Q;(A=(Q=this.data)==null?void 0:Q.showLessCommand)&&this.componentBehavior.resolveCommand(A)};
_.d.handleUpdateDateTextAction=function(A){this.data&&this.data.dateText&&this.set("data.dateText",_.V(A,_.o1V).dateText)};
_.d.handleUpdateDescriptionAction=function(A){if(A=_.V(A,_.f8y))A.isEmpty||!A.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.xz(A.description)):this.set("data.description",A.description)};
_.d.onYtChangeEngagementPanelVisibilityAction=function(A){if(_.K("web_structured_description_show_more")||_.K("web_engagement_panel_open_description")){var Q,b=(Q=_.V(A,_.hVy))==null?void 0:Q.targetId,f;A=((f=_.V(A,_.hVy))==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";b==="engagement-panel-structured-description"&&A&&(this.descriptionToggled=!0)}};
_.d.updateCollapsedFromBinding=function(A){this.collapsed=A.detail.value};
_.d.updateDescriptionToggledFromBinding=function(A){this.descriptionToggled=A.detail.value};
_.d.updateCanCollapseFromBinding=function(A){this.canCollapse=A.detail.value};
_.Qr.Object.defineProperties(Dz.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.metadataRowContainer)==null?void 0:Q.metadataRowContainerRenderer;return!!b&&!!b.rows&&b.rows.length>b.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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}}});
Dz.prototype.onYtExpanderLessTapped=Dz.prototype.onYtExpanderLessTapped;Dz.prototype.onYtExpanderMoreTapped=Dz.prototype.onYtExpanderMoreTapped;Dz.prototype.dataChanged=Dz.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Dz.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Dz.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Dz.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],Dz.prototype,"collapsed",void 0);_.E([_.C(),_.c("design:type",Boolean)],Dz.prototype,"descriptionToggled",void 0);
_.E([_.C(),_.c("design:type",Boolean)],Dz.prototype,"canCollapse",void 0);_.E([_.C(),_.c("design:type",Object)],Dz.prototype,"subscribeButtonData",void 0);_.E([_.C(),_.c("design:type",Number)],Dz.prototype,"descriptionCollapsedHeight",void 0);_.E([_.C(),_.c("design:type",Object)],Dz.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.C({value:function(){return _.K("web_watch_description_always_collapsed")}}),
_.c("design:type",Boolean)],Dz.prototype,"descriptionAlwaysCollapsed",void 0);_.E([_.V1("#description"),_.c("design:type",HTMLDivElement)],Dz.prototype,"description",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dz.prototype,"dataChanged",null);_.E([_.Kc("yt-expander-more-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dz.prototype,"onYtExpanderMoreTapped",null);
_.E([_.Kc("yt-expander-less-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dz.prototype,"onYtExpanderLessTapped",null);_.E([_.H("data.metadataRowContainer"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Dz.prototype,"metadataCollapsible",null);_.E([_.H("data","structuredDescriptionContentRenderer"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Dz.prototype,"hasInlineStructuredDescription",null);
_.E([_.H("data.attributedDescription"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Dz.prototype,"hasAttributedDescription",null);_.E([_.H("hasInlineStructuredDescription","collapsed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Dz.prototype,"loadStructuredDescription",null);_.E([_.H("data","structuredDescriptionContentRenderer","collapsed"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Dz.prototype,"showInlineStructuredDescription",null);
_.E([_.H("data","hasInlineStructuredDescription","metadataCollapsible"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Dz.prototype,"descriptionAlwaysCollapsible",null);
_.W(Dz,"ytd-video-secondary-info-renderer",function(){if(qpT===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);qpT=A}A=qpT;return A},{mode:2});var oQ8;var $P=function(){return _.q.apply(this,arguments)||this};
_.O($P,_.q);$P.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:_.K("web_modern_buttons"),forceIconButton:!_.K("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
$P.prototype.activate=function(A){A.appendTo(this.player);A.getPlayerPromise().then(function(Q){Q.setMinimized(!0)});
this.active=!0};
$P.prototype.deactivate=function(){var A=this.player.firstElementChild;A.getPlayerPromise().then(function(Q){Q.setMinimized(!1)});
this.active=!1;return A};
$P.prototype.onScrollUpTap=function(){var A=_.fJ().resolve(_.F7).getCurrentPage();A&&A.setScrollTop(0)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],$P.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$P.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],$P.prototype,"active",void 0);
_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.c("design:type",Boolean)],$P.prototype,"darkLaunch",void 0);_.E([_.V1("#player"),_.c("design:type",HTMLDivElement)],$P.prototype,"player",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],$P);
_.W($P,"ytd-miniplayer-bar-renderer",function(){if(oQ8!==void 0)return oQ8;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return oQ8=A},{mode:1});_.pE(_.aP(function(A){var Q=_.st("script");_.H_(function(){var b;if(b=JSON)b=Pdh(A.data()),b=_.Ns(JSON.stringify(b).replace(/</g,"\\u003C"));var f=A.data(),a=_.mO(f.title).trim().length===0,T=!f.publishDate||f.publishDate.trim().length===0,G,p,P,U,L=!((G=f.thumbnail)==null?0:(p=G.thumbnails)==null?0:p.length)||!((P=f.thumbnail)==null?0:P.thumbnails[0].url)||((U=f.thumbnail)==null?void 0:U.thumbnails[0].url.trim().length)===0;Q.value&&b&&!(a||T||L)&&_.s$(Q.value,b)},"I9AhLd");
return _.X("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.X("script",{el:Q,type:"application/ld+json"}))},"jk"),"player-microformat-renderer",{props:{data:_.Bz}});
}catch(e){_._DumpException(e)}
try{
var Hzs;_.IDc=function(A){return A.watch.watchWindowSize};
Hzs=function(A,Q,b,f){if(A.isLockupToWatchTransitionEnabled){if(Q){var a={};A.viewTransitionCoordinator.registerElement(Q,(a["lockup-to-watch"]="player-lockup-to-watch",a["watch-next-appears"]="player-watch-next-loaded",a))}b&&(Q={},A.viewTransitionCoordinator.registerElement(b,(Q["lockup-to-watch"]="below-lockup-to-watch",Q["watch-next-appears"]="below-watch-next-loaded",Q)));f&&(b={},A.viewTransitionCoordinator.registerElement(f,(b["watch-next-appears"]="secondary-watch-next-loaded",b)))}};
_.C4$=function(A){return _.G7({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:A}})};var oAp=function(A){_.k$.call(this);this.JSC$22878_watchApi=A;q7Y(this)};
_.O(oAp,_.k$);var q7Y=function(A){_.B(function(Q){if(Q.nextAddress==1)return Q.yield(tB$(A),2);rkV(A);_.Oi(Q)})},tB$=function(A){var Q,b,f,a;
return _.B(function(T){if(T.nextAddress==1)return T.yield(A.JSC$22878_watchApi.playerApi,2);Q=T.yieldResult;b=A.JSC$22878_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rkV(A)});
f=function(G){A.onCueRangeEnter(G)};
Q.addEventListener("onCueRangeEnter",f);a=function(G){A.onCueRangeExit(G)};
Q.addEventListener("onCueRangeExit",a);A.addOnDisposeCallback(function(){A.JSC$22878_watchApi.unsubscribeByKey(b);Q.removeEventListener("onCueRangeEnter",f);Q.removeEventListener("onCueRangeExit",a)});
_.Oi(T)})},j7V=function(A){var Q,b,f,a,T,G,p,P,U;
return(T=(Q=A.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(f=b.results)==null?void 0:(a=f.results)==null?void 0:a.contents)==null?void 0:(G=T.find(function(L){var M,l,J;return(M=L.itemSectionRenderer)==null?void 0:(l=M.contents)==null?void 0:(J=l[0])==null?void 0:J.shoppingTimelyShelfViewModel}))==null?void 0:(p=G.itemSectionRenderer)==null?void 0:(P=p.contents)==null?void 0:(U=P[0])==null?void 0:U.shoppingTimelyShelfViewModel},rkV=function(A){var Q;
_.B(function(b){if(b.nextAddress==1)return(Q=A.JSC$22878_watchApi.getWatchNextResponse())?b.yield(R4s(A),2):b.return();A.shoppingTimelyShelfViewModel=j7V(Q);gAs(A);e4$(A);_.Oi(b)})},gAs=function(A){var Q,b=(Q=A.shoppingTimelyShelfViewModel)==null?void 0:Q.offerIdToVariants;
b&&(Q=b.filter(function(f){return f.key&&f.value}).map(function(f){return[f.key,
f.value]}),A.variantsMap=new Map(Q))},e4$=function(A){var Q,b,f,a,T,G;
_.B(function(p){if(p.nextAddress==1)return(b=(Q=A.shoppingTimelyShelfViewModel)==null?void 0:Q.cueRanges)?p.yield(A.JSC$22878_watchApi.playerApi,2):p.return();f=p.yieldResult;A.cueRanges=b;a=_.F(b);for(T=a.next();!T.done;T=a.next())G=T.value,G.startTime!==void 0&&G.endTime!==void 0&&G.id!==void 0&&f.addCueRange("shopping_timely_shelf"+G.id,h4V(G.startTime),h4V(G.endTime));_.Oi(p)})},h4V=function(A){return Number(A.seconds||0)+(A.nanos||0)/1E9};
oAp.prototype.onCueRangeEnter=function(A){if(A.startsWith("shopping_timely_shelf")){A=A.substring(21);var Q,b,f=(Q=this.variantsMap)==null?void 0:(b=Q.get(A))==null?void 0:b.shelf;f&&this.JSC$22878_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",f)}};
oAp.prototype.onCueRangeExit=function(A){A.startsWith("shopping_timely_shelf")&&this.JSC$22878_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var R4s=function(A){var Q,b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return G.yield(A.JSC$22878_watchApi.playerApi,2);Q=G.yieldResult;if(A.cueRanges)for(b=_.F(A.cueRanges),f=b.next();!f.done;f=b.next())a=f.value,a.id&&(T="shopping_timely_shelf"+a.id,Q.removeCueRange(T));A.JSC$22878_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});A.shoppingTimelyShelfViewModel=void 0;A.cueRanges=void 0;A.variantsMap=void 0;_.Oi(G)})};var ckV=function(A){_.k$.call(this);var Q=this;this.JSC$22885_watchApi=A;A=_.H1(_.QK(),_.pPY,function(){WMh(Q)});
this.addOnDisposeCallback(A);A=_.H1(_.QK(),_.IDc,function(){WMh(Q)});
this.addOnDisposeCallback(A);vAV(this);EAT(this);xz$()};
_.O(ckV,_.k$);var vAV=function(A){var Q=function(f){_.QK().dispatch(_.Dfw(f.matches))},b=window.matchMedia("(max-width: "+(999+_.NG())+"px)");
b.addListener(Q);A.addOnDisposeCallback(function(){b.removeListener(Q)});
Q(b)},EAT=function(A){A.JSC$22885_watchApi.registerActionHandler("yt-window-resized",function(){xz$()});
A.addOnDisposeCallback(function(){A.JSC$22885_watchApi.unregisterActionHandler("yt-window-resized")})},xz$=function(){var A=_.HY();
_.QK().dispatch(_.G7({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:A.width,height:A.height}}}))},WMh=function(A){var Q;
_.B(function(b){if(b.nextAddress==1)return b.yield(A.JSC$22885_watchApi.playerApi,2);Q=b.yieldResult;Q.setSize(NaN,NaN);_.Oi(b)})};var z4$=function(A){_.k$.call(this);var Q=_.fJ().resolve(_.Hg);Hzs(Q,A.getElement("PLAYER_CONTAINER"),A.getElement("BELOW_THE_PLAYER"),A.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var b=A.getElement("PLAYER_CONTAINER"),f=A.getElement("BELOW_THE_PLAYER"),a=A.getElement("SECONDARY");Q.isLockupToWatchTransitionEnabled&&(b&&_.$s(Q.viewTransitionCoordinator,b),f&&_.$s(Q.viewTransitionCoordinator,f),a&&_.$s(Q.viewTransitionCoordinator,a))})};
_.O(z4$,_.k$);_.EH=function(A){_.Kj.call(this);var Q=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(b){Q.initOrDisposeActiveModules(b)}));
this.onAttached()};
_.O(_.EH,_.Kj);_.d=_.EH.prototype;_.d.getRoot=function(){return this.rootElement};
_.d.getElement=function(A){return this.rootElement.getElement(A)};
_.d.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.d.getPlayerResponse=function(){return this.playerResponse};
_.d.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.d.getWatchNextResponse=function(){return this.watchNextResponse};
_.d.registerActionHandler=function(A,Q){var b=this;if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.Dl(_.Yk.getInstance(),(f[A]=Q,f),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),f={},_.Dl(_.Yk.getInstance(),(f[A]=function(){var a=_.E$.apply(0,arguments);return(b.actionHandlers.get(A)||[]).map(function(T){return T.apply(null,_.ri(a))})},f),this.getRoot())),this.actionHandlers.get(A).push(Q)};
_.d.unregisterActionHandler=function(A){if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.$k(_.Yk.getInstance(),(Q[A]=!0,Q),this.getRoot())}else(Q=this.actionHandlers.get(A))?(Q.pop(),Q.length===0&&(Q={},_.$k(_.Yk.getInstance(),(Q[A]=!0,Q),this.getRoot()),this.actionHandlers.delete(A))):_.Wv(new _.IO("Attempted to unregister an action handler which is not registered.",A))};
_.d.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.OF9(this.rootElement.pageDisposeJobs,A)};
_.d.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.Eb(this.rootElement.pageDisposeJobs,A)};
_.d.dispatchEvent=function(A,Q){_.Bn(this.rootElement,A,Q)};
_.d.provideRenderingData=function(A,Q){this.rootElement.provideRenderingData(A,Q)};
_.d.scrollWatchTo=function(A,Q){var b;(b=this.watchScrollManager)==null||b.scrollWatchTo(A,Q)};
_.d.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.mL(A,function(){if(A&&A.firstElementChild){var Q=A.querySelector(".html5-video-player");Q&&(_.d8(_.fJ().resolve(_.Wz)),Q.focus())}else _.Wv(Error("Ao"))})};
_.d.updateCinematicFullscreenConfig=function(){if(_.K("web_cinematic_manager_redux_killswitch")){var A=!!this.rootElement.theater,Q=!!this.rootElement.fullscreen,b;(b=this.watchCinematicManager)==null||_.rc(b,Q,A)}};
_.d.subscribeToActiveChanged=function(A,Q){Q=Q===void 0?!0:Q;var b=_.H1(_.QK(),_.Q9Y,function(f){A(f)});
Q&&A(_.Q9Y(_.QK().getState()));return b};
_.d.isActive=function(){return _.Q9Y(_.QK().getState())};
_.d.onAttached=function(){var A=_.K("external_fullscreen");_.K("use_unified_flag_accessor")&&(A=_.fJ().resolve(_.T$n).retriever.getFlag(_.Q71));(A||_.Ep("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var w_x=function(A){return A.getRoot().is==="ytd-watch-flexy"||A.getRoot().is==="ytd-watch-grid"},xP=function(A){return A.getRoot().is==="ytd-watch-fixie"};
_.EH.prototype.initPersistentModules=function(){if(xP(this)||w_x(this)&&_.K("kevlar_watch_flexy_theater_manager")){var A=new _.ATh(this);_.SY(this,A)}A=new _.v$c(this);_.SY(this,A);A=new _.Cq(this);_.SY(this,A);A=new _.hL(this);_.SY(this,A);A=new _.S7V(this);_.SY(this,A);A=new _.oV(this);_.SY(this,A);if(xP(this)||w_x(this)&&_.K("kevlar_watch_flexy_playlist_manager"))A=new _.MB$(this),_.SY(this,A);_.K("web_thumbnail_to_watch_transition")&&(A=new z4$(this),_.SY(this,A))};
_.EH.prototype.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new _.v$(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.muT(this)),_.K("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new oAp(this)),this.activeModules.push(new _.a0$(this)),xP(this)&&this.activeModules.push(new ckV(this)),this.activeModules.push(new _.Ozs(this)),this.activeModules.push(new _.W$(this)),(xP(this)||_.K("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.GHp(this)),this.activeModules.push(new _.TYs(this)),(xP(this)||_.K("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.kIp(this)),(xP(this)||_.K("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.MYx(this)),_.K("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.VYn(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.K("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.BYs(this)),
_.K("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.h_n(this)),A=_.K("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.K("kevlar_watch_flexy_comments_manager")&&!A&&this.activeModules.push(new _.rTV(this)),_.K("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.qc(this)),this.activeModules.push(new _.Gzc(this)),this.activeModules.push(new _.Q78(this)),_.K("web_enable_timely_actions")&&this.activeModules.push(new _.XoY(this)),
_.K("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.g5c(this)),_.K("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.I0d(this)),_.K("web_fullscreen_components")&&this.activeModules.push(new _.Xl$(this)),_.K("web_player_rtr_ctrls")&&this.activeModules.push(new _.hK$(this))):(_.QO(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.EH.prototype.disposeInternal=function(){_.Kj.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Qr.Object.defineProperties(_.EH.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var ser,r4,mdN,Agt,biF,fTs,QrK,aTq;ser=function(){var A=_.IF();A.info||(A.info={});return A.info};
r4=function(A){return Math.round(_.oF()+A)};
mdN=function(){var A;if(_.K("csi_use_performance_navigation_timing")){var Q,b,f,a=_.qB==null?void 0:(A=_.qB.getEntriesByType)==null?void 0:(Q=A.call(_.qB,"navigation"))==null?void 0:(b=Q[0])==null?void 0:(f=b.toJSON)==null?void 0:f.call(b);a?(a.requestStart=r4(a.requestStart),a.responseEnd=r4(a.responseEnd),a.redirectStart=r4(a.redirectStart),a.redirectEnd=r4(a.redirectEnd),a.domainLookupEnd=r4(a.domainLookupEnd),a.connectStart=r4(a.connectStart),a.connectEnd=r4(a.connectEnd),a.responseStart=r4(a.responseStart),
a.secureConnectionStart=r4(a.secureConnectionStart),a.domainLookupStart=r4(a.domainLookupStart),a.isPerformanceNavigationTiming=!0,A=a):A=_.qB.timing}else A=_.K("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.qB.timing)):_.qB.timing;return A};
Agt=function(){if(_.qB.getEntriesByType){var A=_.qB.getEntriesByType("paint");if(A=_.R9(A,function(b){return b.name==="first-paint"}))return r4(A.startTime)}var Q;
_.K("csi_use_performance_navigation_timing")?Q=_.qB.getEntriesByType("first-paint")[0].startTime:Q=_.qB.timing.msFirstPaint;return Q?Math.max(0,Q):0};
biF=function(){var A=window.location.protocol,Q=_.qB.getEntriesByType("resource");Q=_.PD(Q,function(b){return b.name.indexOf(A+"//fonts.gstatic.com/s/")===0});
(Q=QrK(Q,function(b,f){return f.duration>b.duration?f:b}))&&Q.startTime>0&&Q.responseEnd>0&&(_.tQ("wffs",r4(Q.startTime)),_.tQ("wffe",r4(Q.responseEnd)))};
fTs=function(A,Q){A=document.querySelector(A);if(!A)return!1;var b="",f=A.nodeName;f==="SCRIPT"?(b=A.src,b||(b=A.getAttribute("data-timing-href"))&&(b=window.location.protocol+b)):f==="LINK"&&(b=A.href);_.Di(document)&&A.setAttribute("nonce",_.Di(document));return b?(A=_.qB.getEntriesByName(b))&&A[0]&&(A=A[0],b=_.oF(),_.tQ("rsf_"+Q,b+Math.round(A.fetchStart)),_.tQ("rse_"+Q,b+Math.round(A.responseEnd)),A.transferSize!==void 0&&A.transferSize===0)?!0:!1:!1};
_.ji=function(A,Q){_.cG(function(){_.CD("").info.actionType=A;Q&&_.e6("TIMING_AFT_KEYS",Q);_.e6("TIMING_ACTION",A);var b=_.urY(_.vG("TIMING_INFO",{}));Object.keys(b).length>0&&_.r2(b);b={isNavigation:!0,actionType:_.r2y(_.vG("TIMING_ACTION"))};var f=_.vG("PREVIOUS_ACTION");f&&(b.previousAction=_.r2y(f));if(f=_.vG("CLIENT_PROTOCOL"))b.httpProtocol=f;if(f=_.vG("CLIENT_TRANSPORT"))b.transportProtocol=f;(f=_.WR())&&f!=="UNDEFINED_CSN"&&(b.clientScreenNonce=f);f=_.wTy();if(f===1||f===-1)b.isVisible=!0;
f=_.n7J().loadType==="cold";var a=ser();f||(f=a.yt_lt==="cold");if(f){b.loadType="cold";f=ser();a=mdN();var T=_.oF(),G=_.vG("CSI_START_TIMESTAMP_MILLIS",0);G>0&&!_.K("embeds_web_enable_csi_start_override_killswitch")&&(T=G);T&&(_.tQ("srt",a.responseStart),f.prerender!==1&&_.hkC(T));f=Agt();f>0&&_.tQ("fpt",f);f=mdN();f.isPerformanceNavigationTiming&&_.r2({performanceNavigationTiming:!0},void 0);_.tQ("nreqs",f.requestStart,void 0);_.tQ("nress",f.responseStart,void 0);_.tQ("nrese",f.responseEnd,void 0);
f.redirectEnd-f.redirectStart>0&&(_.tQ("nrs",f.redirectStart,void 0),_.tQ("nre",f.redirectEnd,void 0));f.domainLookupEnd-f.domainLookupStart>0&&(_.tQ("ndnss",f.domainLookupStart,void 0),_.tQ("ndnse",f.domainLookupEnd,void 0));f.connectEnd-f.connectStart>0&&(_.tQ("ntcps",f.connectStart,void 0),_.tQ("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=_.oF()&&f.connectEnd-f.secureConnectionStart>0&&(_.tQ("nstcps",f.secureConnectionStart,void 0),_.tQ("ntcpe",f.connectEnd,void 0));_.qB&&"getEntriesByType"in
_.qB&&biF();f=[];if(document.querySelector&&_.qB&&_.qB.getEntriesByName)for(var p in aTq)aTq.hasOwnProperty(p)&&(a=aTq[p],fTs(p,a)&&f.push(a));if(f.length>0)for(b.resourceInfo=[],p=_.F(f),f=p.next();!f.done;f=p.next())b.resourceInfo.push({resourceCache:f.value})}_.r2(b);b=_.Hn();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);p=b.preLoggedGelInfos;b=_.Imf();f=void 0;for(a=0;a<p.length;a++)if(T=p[a],T.loadType){f=T.loadType;break}if(_.n7J().loadType==="cold"&&(b.loadType==="cold"||f==="cold")){f=_.kdA();
a=_.Hn();a=a.gelTicks?a.gelTicks:a.gelTicks={};for(var P in f)if(!(P in a))if(typeof f[P]==="number")_.tQ(P,_.jT(P));else if(_.K("log_repeated_ytcsi_ticks"))for(T=_.F(f[P]),G=T.next();!G.done;G=T.next())G=G.value,_.tQ(P.slice(1),G);P={};f=!1;p=_.F(p);for(a=p.next();!a.done;a=p.next())f=a.value,_.cR(b,f),_.cR(P,f),f=!0;f&&_.r2(P)}_.DFy(!0);P=_.vG("TIMING_ACTION");_.zV("ytglobal.timingready_")&&P&&_.T7X()&&_.Y0A()&&_.c2A()})()};
QrK=function(A,Q){return Array.prototype.reduce.call(A,Q,{duration:0})};
aTq={'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 Tjt={};Tjt.YtVisibilityRootBehavior=[_.blM.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.AT(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.vG("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var A=_.vG("INNERTUBE_CLIENT_NAME")!=="WEB";_.K("kevlar_use_vimio_behavior")&&A&&_.QZL()}}];_.Re={};_.Re.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(A){A.detail.contextProvider=this;A.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Tjt.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Qh();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(A){var Q=this;this.pageCount+=1;_.K("kevlar_use_vimio_behavior")&&(_.vG("INNERTUBE_CLIENT_NAME")==="WEB"?_.j7.addJob(function(){Q.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(A)},
loadPage_:function(A){this.data=A},
ytPageBehaviorActiveObserver_:function(A){var Q=this;_.K("kevlar_use_vimio_behavior")&&(A?_.vG("INNERTUBE_CLIENT_NAME")==="WEB"?_.j7.addJob(function(){Q.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(A){if(!this.setScrollTopJobId_){var Q=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){Q.setScrollTopJobId_=0;var b=_.fJ().resolve(_.bu(_.Wz));b&&_.d8(b);this.getPageScrollingElement().scrollTop=A}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.td(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var N4K;var tp=function(){var A=_.q.apply(this,arguments)||this;A.playerListenerConfig=null;A.actionMap={"yt-show-watch-page-survey":"openSurvey"};return A};
_.O(tp,_.q);_.d=tp.prototype;_.d.dataChanged=function(){var A=this,Q=_.BL();Q&&Q.getPlayerPromise().then(function(f){A.maybeRemovePlayerListeners(f)});
var b=this.data&&this.data.survey;b&&((b=(b=b.singleOptionSurveyRenderer||b.checkboxSurveyRenderer||b.multiStageSurveyRenderer)&&b.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(Q,b):this.openSurvey())};
_.d.triggerWatchPageSurvey=function(A,Q){var b=this,f,a,T,G,p,P,U,L,M;return _.B(function(l){if(l.nextAddress==1)return A?l.yield(A.getPlayerPromise(),2):l.return();b.player=l.yieldResult;if(!b.player)return l.return();f={};a=_.F(Q);for(T=a.next();!T.done;T=a.next())G=T.value,p=_.F(b.createEventListenerPair(G)),P=p.next().value,U=p.next().value,L=P,M=U,L&&M&&(f[L]=M,b.ytPlayerListenerBehavior.listenToPlayerEvent(b.player,L,M));b.playerListenerConfig=f;_.Oi(l)})};
_.d.createEventListenerPair=function(A){var Q=A.playbackEventTrigger;return Q?this.handlePlaybackTrigger(Q):(A=A.watchTimeTrigger)?this.handleWatchTimeTrigger(A):[void 0,void 0]};
_.d.handleWatchTimeTrigger=function(A){var Q=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var b=A.videoWatchFraction,f=A.watchTimeSec;return f&&b?["onVideoProgress",function(){Q.player&&Q.isWatchTimeConditionMet(Q.player,b,f)&&Q.showSurvey()}]:[void 0,
void 0]};
_.d.isWatchTimeConditionMet=function(A,Q,b){var f=A.getProgressState(),a=f.current-this.lastKnownPlaybackPosition;a<5&&(this.accumulatedMediaTime+=a);this.lastKnownPlaybackPosition=f.current;f=Math.round(this.accumulatedMediaTime/f.duration*1E3)/1E3;return A.getPresentingPlayerType&&A.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>b||f>Q)};
_.d.handlePlaybackTrigger=function(A){var Q=this;A=A.playbackEvent;if(A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var b="onStateChange";var f=function(a){a===0&&Q.showSurvey()}}else A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(b="onVideoProgress",f=function(a){Q.player&&Q.player.getPresentingPlayerType&&Q.player.getPresentingPlayerType()===1&&a&&Q.showSurvey()}):A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(b="onAdEnd",f=this.showSurvey);
return[b,f]};
_.d.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.d.openSurvey=function(){var A=this,Q=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.afs(!!Q));_.j7.addJob(function(){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:Q}})},0,0)};
_.d.maybeRemovePlayerListeners=function(A){if(this.playerListenerConfig){for(var Q=_.F(Object.keys(this.playerListenerConfig)),b=Q.next();!b.done;b=Q.next())b=b.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(A,b,this.playerListenerConfig[b]);this.playerListenerConfig=null}};
tp.prototype.dataChanged=tp.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],tp.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],tp.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],tp.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],tp.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tp.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],tp.prototype,"playerListenerConfig",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],tp.prototype,"lastKnownPlaybackPosition",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],tp.prototype,"accumulatedMediaTime",void 0);_.E([_.C(),_.c("design:type",Object)],tp.prototype,"player",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],tp.prototype,"dataChanged",null);_.E([_.h({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],tp);
_.W(tp,"ytd-survey-trigger-renderer",function(){if(N4K!==void 0)return N4K;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return N4K=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
var vPx=new _.fU("promotedSparklesWebRenderer");var EPt=new _.fU("relatedChipCommand");var xcn;var cLN;var MV=function(){return _.q.apply(this,arguments)||this};
_.O(MV,_.q);MV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],MV.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],MV);
_.W(MV,"ytd-compact-tvfilm-entry-point-renderer",function(){if(cLN!==void 0)return cLN;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return cLN=A},{mode:1});var zAq;var w$n;var uOq;var lS=function(){return _.q.apply(this,arguments)||this};
_.O(lS,_.q);lS.prototype.ready=function(){this.initializeDefs()};
lS.prototype.initializeDefs=function(){var A=this.meta.byKey("yt-icons"),Q=_.Bj(A).querySelector("#star"),b=_.Bj(A).querySelector("#star_half");A=_.Bj(A).querySelector("#star_border");Q&&this.defs.appendChild(Q.cloneNode(!0));b&&this.defs.appendChild(b.cloneNode(!0));A&&this.defs.appendChild(A.cloneNode(!0))};
lS.prototype.percentChanged=function(){for(var A=this.rating;A.firstChild;)A.removeChild(A.firstChild);var Q=Math.round(this.percent/10);A=Math.floor(Q/2);Q%=2;var b=5-A-Q;this.appendStars("star",A,0);this.appendStars("star_half",Q,A);this.appendStars("star_border",b,A+Q)};
lS.prototype.appendStars=function(A,Q,b){for(var f=0;f<Q;f++){var a=(18+this.spacing)*(f+b),T=document.createElementNS("http://www.w3.org/2000/svg","use");_.R4N(T,"#"+A);T.setAttribute("x",""+a);T.setAttribute("y","0");this.rating.appendChild(T)}};
lS.prototype.percentChanged=lS.prototype.percentChanged;_.E([_.V1("#defs"),_.c("design:type",HTMLElement)],lS.prototype,"defs",void 0);_.E([_.V1("#rating"),_.c("design:type",HTMLElement)],lS.prototype,"rating",void 0);_.E([_.C(),_.c("design:type",Number)],lS.prototype,"percent",void 0);_.E([_.C({value:6}),_.c("design:type",Number)],lS.prototype,"spacing",void 0);_.E([_.C({value:_.qF.create("iron-meta",{type:"iconset"})}),_.c("design:type",_.r7)],lS.prototype,"meta",void 0);
_.E([_.iN("percent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lS.prototype,"percentChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-ratings"})],lS);
_.W(lS,"ytd-ratings",function(){if(uOq!==void 0)return uOq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return uOq=A},{mode:1});var Km=function(){return _.q.apply(this,arguments)||this};
_.O(Km,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Km.prototype,"data",void 0);_.E([_.h({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Km);
_.W(Km,"ytd-offer-review-renderer",function(){if(w$n!==void 0)return w$n;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return w$n=A},{mode:1});var iS=function(){var A=_.q.apply(this,arguments)||this;A.badges=[{textBadge:{label:_.sr("CC")}}];return A};
_.O(iS,_.q);_.d=iS.prototype;_.d.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.d.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(A&&A.commandMetadata&&_.V(A.commandMetadata,_.RA)&&_.V(A.commandMetadata,_.RA).fireAutomatically)_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}});else{var Q;A&&((Q=_.V(A,_.RA))==null?0:Q.fireAutomatically)&&_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})}};
_.d.isEmptyContent=function(A){return this.isStorefrontEntryPointEmpty(A)&&this.shouldHideOfferModule(A)};
_.d.isStorefrontEntryPointEmpty=function(A){return!A||!A.storefrontEntryPoint};
_.d.shouldHideOfferModule=function(A){return!!A.hideVideoDetails};
_.d.isOfferModuleNavigationInactive=function(A){return!A.navigationEndpoint&&!A.serviceEndpoint};
_.d.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
iS.prototype.dataChanged=iS.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.c("design:type",Boolean)],iS.prototype,"hidden",void 0);
_.E([_.C(),_.c("design:type",Object)],iS.prototype,"badges",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],iS.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],iS);
_.W(iS,"ytd-movie-offer-module-renderer",function(){if(zAq!==void 0)return zAq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zAq=A},{mode:1});var Zql;var JJ=function(){return _.q.apply(this,arguments)||this};
_.O(JJ,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],JJ.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JJ.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],JJ);
_.W(JJ,"ytd-media-masthead-renderer",function(){if(Zql!==void 0)return Zql;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Zql=A},{mode:1});var yLr;_.pE(_.LFx,"course-metadata-view-model",{props:{data:_.Bz,isOverlay:_.Bz}});var VB=function(){var A=_.q.apply(this,arguments)||this;A.isMetadataVisible=!1;A.modernPanels=_.K("kevlar_watch_modern_panels");A.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return A};
_.O(VB,_.q);_.d=VB.prototype;
_.d.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"}}}}};
_.d.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.d.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.d.expanderChanged=function(){var A;if((A=this.data)==null?0:A.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.d.isExpandButtonToggled=function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.expandMetadataButton,_.R$))==null?void 0:Q.isToggled};
_.d.onVisibilityButtonClick=function(){var A;if((A=this.data)==null?0:A.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.d.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
VB.prototype.expanderChanged=VB.prototype.expanderChanged;VB.prototype.dataChanged=VB.prototype.dataChanged;VB.prototype.descriptionChanged=VB.prototype.descriptionChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I([_.PJ.YtActionHandlerBehavior]),_.c("design:type",Object)],VB.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],VB.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],VB.prototype,"isMetadataVisible",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],VB.prototype,"modernPanels",void 0);_.E([_.V1("#expander"),_.c("design:type",Object)],VB.prototype,"expander",void 0);_.E([_.iN("data.description"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],VB.prototype,"descriptionChanged",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],VB.prototype,"dataChanged",null);_.E([_.iN("isMetadataVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],VB.prototype,"expanderChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],VB);
_.W(VB,"ytd-tvfilm-offer-module-renderer",function(){if(yLr!==void 0)return yLr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return yLr=A},{mode:2});var YHN;var OB=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return A};
_.O(OB,_.q);OB.prototype.dataChanged=function(){this.hostElement.hidden=!1};
OB.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
OB.prototype.onThumbnailTap=function(A){this.data&&this.data.serviceEndpoint&&(_.fJ().resolve(_.de).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),A.stopPropagation())};
OB.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
OB.prototype.dataChanged=OB.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],OB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],OB.prototype,"rendererBehaviors",void 0);_.E([_.I([_.PJ.YtActionHandlerBehavior]),_.c("design:type",Object)],OB.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],OB.prototype,"data",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],OB.prototype,"dataChanged",null);_.E([_.h({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],OB);
_.W(OB,"ytd-unlimited-offer-module-renderer",function(){if(YHN!==void 0)return YHN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return YHN=A},{mode:1});var Dcr;var $cO;var nm=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return A};
_.O(nm,_.q);nm.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
nm.prototype.handleRelatedChipCommand=function(A){A=_.V(A,EPt);var Q=A.contents;Q?_.Pn(this.hostElement,"yt-item-section-replace-action",[Q,A.targetSectionIdentifier]):_.Pn(this.hostElement,"yt-item-section-continuation-action",[A.continuationData,A.targetSectionIdentifier])};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],nm.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],nm.prototype,"data",void 0);_.E([_.Ec({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],nm);
_.W(nm,"yt-related-chip-cloud-renderer",function(){if($cO===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;Dcr===void 0&&(Dcr=document.createElement("template"));var f=Dcr;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);$cO=A}A=$cO;return A},{mode:2});var kS=function(){var A=_.q.apply(this,arguments)||this;A.isTwoColumns=!0;A.hideOfferModules=!1;A.watchFeedBigThumbs=_.K("kevlar_watch_feed_big_thumbs");A.watchFeedBigThumbsOnLockup=_.K("web_watch_next_big_thumbs");A.watchNextGridHideChips=_.K("kevlar_watch_grid_hide_chips");A.eligibleToSwitchToGrid=_.K("web_watch_eligible_to_switch_to_grid");A.disableShortsShelfHeightOverride=_.K("web_shorts_wn_shelf_ratio_tuning");A.isWatchNextGrid=!1;A.reuseComponents=!_.K("kevlar_watch_grid");A.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return A};
_.O(kS,_.q);_.d=kS.prototype;
_.d.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:!_.K("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}}};
_.d.getItemsPath=function(){return"data.results"};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.d.created=function(){this.ytLazyListBehavior.initialCount=1};
_.d.ready=function(){_.Uc(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%"})};
_.d.resultsChanged=function(){if(this.data&&this.data.results){for(var A=this.data.results,Q=null,b=null,f=0;f<A.length;f++)A[f].relatedChipCloudRenderer?Q=A[f].relatedChipCloudRenderer:A[f].itemSectionRenderer&&(b=A[f].itemSectionRenderer);if(Q&&b)for(this.set("data.continuations",[]),A=_.V(Q.content,_.rhN).chips,Q=0;Q<A.length;Q++)if(f=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",A[Q]),f.loadCached||!f.contents){f.contents=b.contents;break}}};
_.d.dataChanged=function(){var A=this,Q;if((Q=this.data)!=null&&Q.results&&this.hasAllowedInstreamAd(this.playerData)){if(Q=this.data.results.filter(function(p){return!!p.promotedSparklesWebRenderer})){for(var b=0;b<Q.length;b++){var f=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",Q[b]);
if(f)for(var a=0;a<f.length;a++)f[a]&&f[a].baseUrl&&_.zp(f[a].baseUrl)}this.set("data.results",this.data.results.filter(function(p){return!p.promotedSparklesWebRenderer}))}if(Q=this.data.results.filter(function(p){return!!A.getSparklesAd(p)})){Q=_.F(Q);
for(a=Q.next();!a.done;a=Q.next())if(f=b=void 0,a=(b=this.getSparklesAd(a.value))==null?void 0:(f=b.errorCommand)==null?void 0:f.loggingUrls)for(b=_.F(a),f=b.next();!f.done;f=b.next())(f=f.value)&&f.baseUrl&&_.zp(f.baseUrl);var T,G;this.set("data.results",(T=this.data)==null?void 0:(G=T.results)==null?void 0:G.filter(function(p){return!p.adSlotRenderer}))}}};
_.d.getSparklesAd=function(A){var Q,b;A=_.V((Q=A.adSlotRenderer)==null?void 0:(b=Q.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.eu1);return _.V(A==null?void 0:A.renderingContent,vPx)};
_.d.hasAllowedInstreamAd=function(A){A=this.get("adPlacements",A)||[];for(var Q=0;Q<A.length;Q++){var b=this.get("adPlacementRenderer.config.adPlacementConfig",A[Q]);if(b&&b.suppressDisplayAd)return!0}return!1};
_.d.computeHideUnlimitedOfferModule=function(A,Q){return A&&A.offerModule&&Q&&A.offerModule.unlimitedOfferModuleRenderer&&A.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(Q)?!0:!1};
_.d.hideUnlimitedOfferModuleChanged=function(){var A=_.Bj(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");A&&(A.hidden=this.hideUnlimitedOfferModule)};
_.d.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var Q;(Q=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||Q.forEach(function(b){b.containerType=A})}};
_.d.computeHideTvfilmOfferModule=function(A,Q){var b,f;return!!((A==null?0:(b=A.offerModule)==null?0:(f=b.tvfilmOfferModuleRenderer)==null?0:f.clientShouldSuppressIfCompanionAdDisplayed)&&Q&&this.hasCompanionAds(Q))};
_.d.hideTvfilmOfferModuleChanged=function(){var A=_.Bj(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");A&&(A.hidden=this.hideTvfilmOfferModule)};
_.d.hasCompanionAds=function(A){A=this.get("adPlacements",A)||[];for(var Q=0;Q<A.length;Q++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",A[Q]))return!0;var b=void 0,f=void 0,a=void 0;if(!_.K("web_watch_top_banner_companion_check_killswitch")&&((b=A[Q])==null?0:(f=b.adPlacementRenderer)==null?0:(a=f.renderer)==null?0:a.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.d.hasSuppressedResults=function(A){return A==null?!0:A.filter(function(Q){return!Q.continuationItemRenderer&&!Q.compactPromotedVideoRenderer&&!Q.promotedSparklesWebRenderer}).length===0};
_.d.computeShowButton=function(A,Q){return this.isWatchNextGrid?A:A||this.hasSuppressedResults(Q)};
_.d.showButtonChanged=function(){if(this.isWatchNextGrid){var A=_.Bj(this.hostElement).querySelector("ytd-rich-grid-renderer");A&&this.showButton!==null&&(A.continuationShowButton=this.showButton)}else{A=_.Bj(this.hostElement).querySelector("yt-next-continuation");var Q=_.Bj(this.hostElement).querySelector("ytd-continuation-item-renderer"),b=_.Bj(this.hostElement).querySelector("ytd-item-section-renderer");A&&(A.showButton=this.showButton);Q&&(Q.showButton=this.showButton);b&&(b.continuationShowButton=
this.showButton)}};
_.d.continuationTap=function(A){var Q;if(((Q=this.data)==null?void 0:Q.continuations)!=null&&A.target.tagName==="TP-YT-PAPER-BUTTON")for(A=this.data.continuations,Q=0;Q<A.length;Q++)A[Q].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(A[Q].nextContinuationData||{})};
_.d.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("shown-items-changed",this.shownItems))};
_.Qr.Object.defineProperties(kS.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 A;return!((A=this.shownItems)==null||!A.some(function(Q){return!!Q.lockupViewModel||Q.compactVideoRenderer}))}}});
kS.prototype.shownItemsChangedForBinding=kS.prototype.shownItemsChangedForBinding;kS.prototype.showButtonChanged=kS.prototype.showButtonChanged;kS.prototype.hideTvfilmOfferModuleChanged=kS.prototype.hideTvfilmOfferModuleChanged;kS.prototype.updateLockupContainerTypes=kS.prototype.updateLockupContainerTypes;kS.prototype.hideUnlimitedOfferModuleChanged=kS.prototype.hideUnlimitedOfferModuleChanged;kS.prototype.dataChanged=kS.prototype.dataChanged;kS.prototype.resultsChanged=kS.prototype.resultsChanged;
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],kS.prototype,"ytLazyListBehavior",void 0);_.E([_.I(_.mG.YtNextContinuationBehavior),_.c("design:type",Object)],kS.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.I(_.sM),_.c("design:type",Object)],kS.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],kS.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kS.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],kS.prototype,"playerData",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],kS.prototype,"autoFill",void 0);_.E([_.C({value:60}),_.c("design:type",Number)],kS.prototype,"targetFramerate",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],kS.prototype,"isTwoColumns",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],kS.prototype,"hideOfferModules",void 0);_.E([_.C(),_.c("design:type",Object)],kS.prototype,"shownItems",void 0);_.E([_.C({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.c("design:type",Boolean)],kS.prototype,"hideUnlimitedOfferModule",void 0);
_.E([_.C({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.c("design:type",Boolean)],kS.prototype,"hideTvfilmOfferModule",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],kS.prototype,"watchFeedBigThumbs",void 0);_.E([_.C(),_.c("design:type",Object)],kS.prototype,"watchFeedBigThumbsOnLockup",void 0);_.E([_.C(),_.c("design:type",Object)],kS.prototype,"watchNextGridHideChips",void 0);_.E([_.C(),_.c("design:type",Object)],kS.prototype,"eligibleToSwitchToGrid",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],kS.prototype,"disableShortsShelfHeightOverride",void 0);_.E([_.C({selector:_.uc,reflectToAttribute:!0}),_.c("design:type",Object)],kS.prototype,"isGridViewEnabled",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],kS.prototype,"showMoreButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],kS.prototype,"isWatchNextGrid",void 0);
_.E([_.C({computed:"computeShowButton(showMoreButton, data.results)"}),_.c("design:type",Boolean)],kS.prototype,"showButton",void 0);_.E([_.I_("data.results.*"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kS.prototype,"resultsChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kS.prototype,"dataChanged",null);
_.E([_.iN("hideUnlimitedOfferModule"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kS.prototype,"hideUnlimitedOfferModuleChanged",null);_.E([_.H("isGridViewEnabled","containsLockups","data"),_.C({reflectToAttribute:!0}),_.c("design:type",Number),_.c("design:paramtypes",[])],kS.prototype,"lockupContainerType",null);
_.E([_.iN("lockupContainerType","data"),_.c("design:type",Function),_.c("design:paramtypes",[Number]),_.c("design:returntype")],kS.prototype,"updateLockupContainerTypes",null);_.E([_.iN("hideTvfilmOfferModule"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kS.prototype,"hideTvfilmOfferModuleChanged",null);_.E([_.iN("showButton"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kS.prototype,"showButtonChanged",null);
_.E([_.iN("shownItems"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kS.prototype,"shownItemsChangedForBinding",null);_.E([_.H("shownItems"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],kS.prototype,"containsLockups",null);
_.W(kS,"ytd-watch-next-secondary-results-renderer",function(){if(xcn===void 0){var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);xcn=A}A=xcn;return A},{mode:1});
}catch(e){_._DumpException(e)}
try{
var xdK=new _.fU("replaceFeedContentAction");var cps;var zdF;var Oy=function(){return _.q.apply(this,arguments)||this};
_.O(Oy,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Oy.prototype,"data",void 0);_.E([_.h({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Oy);
_.W(Oy,"ytd-sub-feed-option-renderer",function(){if(zdF!==void 0)return zdF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zdF=A},{mode:1});var wqO;var nA=function(){return _.q.apply(this,arguments)||this};
_.O(nA,_.q);nA.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nA.prototype,"ytRendererStamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],nA.prototype,"data",void 0);_.E([_.h({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],nA);
_.W(nA,"ytd-sub-feed-selector-renderer",function(){if(wqO!==void 0)return wqO;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return wqO=A},{mode:1});var ky=function(){return _.q.apply(this,arguments)||this};
_.O(ky,_.q);
ky.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ky.prototype,"data",void 0);_.E([_.h({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],ky);
_.W(ky,"ytd-browse-feed-actions-renderer",function(){if(cps!==void 0)return cps;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return cps=A},{mode:1});var uVx;var ZAK;var Ie=function(){return _.q.apply(this,arguments)||this};
_.O(Ie,_.q);Ie.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ie.prototype,"data",void 0);_.E([_.h({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Ie);
_.W(Ie,"ytd-mini-channel-renderer",function(){if(ZAK!==void 0)return ZAK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ZAK=A},{mode:1});var ypn;var Hq=function(){return _.q.apply(this,arguments)||this};
_.O(Hq,_.q);Hq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Hq.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Hq);
_.W(Hq,"ytd-vertical-channel-section-renderer",function(){if(ypn!==void 0)return ypn;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ypn=A},{mode:1});var CA=function(){return _.q.apply(this,arguments)||this};
_.O(CA,_.q);CA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],CA.prototype,"data",void 0);_.E([_.h({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],CA);
_.W(CA,"ytd-browse-secondary-contents-renderer",function(){if(uVx!==void 0)return uVx;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return uVx=A},{mode:1});var YyN;var qd=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};A.notActive=!1;A.isConstrainedList=!1;return A};
_.O(qd,_.q);_.d=qd.prototype;
_.d.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(A){var Q;return(A==null?void 0:(Q=A.webComponentHint)==null?void 0:Q.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}}}}};
_.d.getPath=function(A,Q){var b="data.tabs.#"+Q+".";A.tabs[Q].tabRenderer?b+="tabRenderer.":A.tabs[Q].expandableTabRenderer&&(b+="expandableTabRenderer.");return b+"content.sectionListRenderer"};
_.d.computeDisplayedContent=function(A){this.unlinkPaths("content");if(A&&A.tabs)for(var Q=A.tabs.length,b=0;b<Q;b++){var f=A.tabs[b].tabRenderer||A.tabs[b].expandableTabRenderer;if(f.selected&&f.content)return this.linkPaths("content",this.getPath(A,b)),f.content}return null};
_.d.computeHasSecondaryColumnData=function(A){return!!A&&!!A.secondaryContents};
_.d.onRetrieveLocation=function(A,Q){Q.locationRetrieved(Q.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);A.stopPropagation()};
_.d.onYtServiceRequestSent=function(A,Q){_.K("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Q)};
_.d.onYtServiceRequestCompleted=function(A,Q){_.K("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(Q)};
_.d.onReplaceFeedContentAction=function(A){if(!_.K("replace_feed_content_action_killswitch")&&!this.notActive){var Q;(A=(Q=_.V(A,xdK))==null?void 0:Q.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(A)}};
_.d.handleServiceRequestActions=function(A){if(A=A.actions){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=void 0;((b=_.V(Q,xdK))==null?0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.V(Q,xdK).items)}}};
qd.prototype.onYtServiceRequestCompleted=qd.prototype.onYtServiceRequestCompleted;qd.prototype.onYtServiceRequestSent=qd.prototype.onYtServiceRequestSent;qd.prototype.onRetrieveLocation=qd.prototype.onRetrieveLocation;_.E([_.I(_.ZJ),_.c("design:type",Object)],qd.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],qd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qd.prototype,"data",void 0);_.E([_.C({computed:"computeDisplayedContent(data)"}),_.c("design:type",Object)],qd.prototype,"content",void 0);
_.E([_.C({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],qd.prototype,"hasSecondaryColumnData",void 0);_.E([_.C({value:function(){return window.outerHeight>1024?3:2}}),
_.c("design:type",Number)],qd.prototype,"initialCount",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],qd.prototype,"pageSubtype",void 0);_.E([_.V1("ytd-section-list-renderer"),_.c("design:type",Object)],qd.prototype,"listRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],qd.prototype,"notActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],qd.prototype,"isConstrainedList",void 0);
_.E([_.C(),_.c("design:type",String)],qd.prototype,"responsiveSizing",void 0);_.E([_.Kc("yt-retrieve-location"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],qd.prototype,"onRetrieveLocation",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],qd.prototype,"onYtServiceRequestSent",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],qd.prototype,"onYtServiceRequestCompleted",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],qd);
_.W(qd,"ytd-two-column-browse-results-renderer",function(){if(YyN!==void 0)return YyN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return YyN=A},{mode:2});
}catch(e){_._DumpException(e)}
try{
var t6T=function(A){if((A==null?void 0:A.value)===void 0||A==null||!A.unit)return"initial";a:{switch(A.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var Q="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":Q="%";break a}Q=void 0}return Q?""+A.value+Q:"initial"},rz$=new _.fU("shoppingContentLineItemViewModel");var j88=_.aP(function(A){var Q=_.be(A,{}).data;return _.X("yt-shopping-content-line-item-view-model",{class:_.O4("ytShoppingContentLineItemViewModelHost")},_.X(_.Rb,{text:function(){var b;return(b=Q().text)==null?void 0:b.attributedString}}))},"kk");var Rgd=_.aP(function(A){A=_.be(A,{});var Q=A.data;return _.X("yt-shopping-content-line-view-model",{class:_.O4("ytShoppingContentLineViewModelHost",A.className),style:_.qM({"--shopping-content-line-gap":function(){return Q().itemGap?Q().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return Q().lineHeight?Q().lineHeight+"px":void 0}})},_.X(_.Op,{each:function(){return(Q().items||[]).map(function(b){return _.V(b,rz$)}).filter(function(b){return!!b})}},function(b){return _.X(j88,{data:b})}))},"lk");_.pE(_.aP(function(A){var Q=_.be(A,{}).data,b=function(){var a;return((a=Q().image)==null?void 0:a.width)||40},f=function(){var a;
return((a=Q().image)==null?void 0:a.height)||40};
return _.X("yt-shopping-timely-shelf-content-view-model",{el:_.d_(_.Zb(function(){var a;return(a=Q())==null?void 0:a.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.O4("ytShoppingTimelyShelfContentViewModelHost"),style:_.qM({"--shopping-timely-shelf-content-padding-top":function(){var a;return t6T((a=Q().padding)==null?void 0:a.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var a;return t6T((a=Q().padding)==null?void 0:a.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var a;return t6T((a=Q().padding)==null?void 0:a.start)},
"--shopping-timely-shelf-content-padding-end":function(){var a;return t6T((a=Q().padding)==null?void 0:a.end)}})},_.X(_.S,{cond:function(){var a;
return(a=Q().image)==null?void 0:a.image},
then:function(a){return _.X(_.aY,{preserveHeight:!0,preserveWidth:!0,width:b,height:f,data:a,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.X(_.WL,{data:function(){return Q().avatar}},{avatarViewModel:_.Wm}),_.X("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.X(_.WL,{data:function(){return Q().line1}},{shoppingContentLineViewModel:function(a){return _.X(Rgd,{data:a.data})}}),_.X(_.WL,{data:function(){return Q().line2}},{shoppingContentLineViewModel:function(a){return _.X(Rgd,
{data:a.data})}})),_.X("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.X(_.Op,{each:function(){var a;
return(a=Q().button)!=null?a:[]}},function(a){return _.X(_.WL,{data:function(){return a}},{buttonViewModel:_.J9})})))},"mk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Qf}});_.gQ$={};
_.gQ$.YtdWatchBehavior=[_.Z.YtRendererBehavior,_.mx.YtPlayerListenerBehavior,_.p3.YtRendererstamperBehavior,_.PJ.YtActionHandlerBehavior,_.Re.YtPageBehavior,_.kZ.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 _.Ep("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.K("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Ep("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,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 _.K("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.K("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 _.GP("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.GP("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.K("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.K("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.K("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var A={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:_.AD(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.AD(["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"||_.K("swa_prov_panels_ks")?A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},A.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return A},
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 A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.K("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.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;_.K("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.K("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.M6d(function(){return _.GG(A)},this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
_.K("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){A.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Uz;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;_.K("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));_.K("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.K("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.K("kevlar_watch_while_v2")&&!_.K("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.Bn(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){this.initCsi_();this.updatePageData_(A)},
updatePageData_:function(A){var Q=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.g2({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.hQ("nw");this.loading=!1;_.Hv(_.j7,function(){Q.initDclkstatus_();var f,a=((f=Q.player)==null?void 0:f.getVideoData().cpn)||"";_.Q8n(function(T,G){_.XtF(T,G,a)})})},
onPageLoadWithSameData_:function(){_.K("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;if(_.K("kevlar_watch_frame0_loading_state")){var Q,b,f;A=(Q=this.loadingData)==null?void 0:(b=Q.endpoint)==null?void 0:(f=b.watchEndpoint)==null?void 0:f.videoId;var a;A&&(a="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.Bj(this.hostElement).querySelector("#player").style.backgroundImage=a?"url("+a+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.Bj(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Q,b;(b=(Q=this.watchMetadata).updateSentimentBarWidth)==
null||b.call(Q);var f,a;(a=(f=this.watchMetadata).resize)==null||a.call(f)}_.K("kevlar_watch_frame0_loading_state")&&(_.Bj(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(A){var Q=_.Bj(this.hostElement).querySelector(A);Q?_.F5(Q,!1):_.Wv(new _.IO("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var Q=_.Bj(this.hostElement).querySelector(A);Q?_.Go(Q):_.Wv(new _.IO("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.K("web_thumbnail_to_watch_transition")&&!_.HNd||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.K("web_thumbnail_to_watch_transition")&&!_.HNd||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(A){var Q=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.j7.addLowPriorityJob(function(){Q.onWindowResized_(_.HY(!0))})},
updateTheaterModeState_:function(A){if(!_.K("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&_.TW8()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.K("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var A=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.K("external_fullscreen")&&this.fullscreen&&(A=!0);_.K("web_watch_error_screen_fix")&&(A=this.fullBleedPlayer);A=A?_.Bj(this.hostElement).querySelector("#player-full-bleed-container"):_.Bj(this.hostElement).querySelector("#player-container-inner");var Q=this.getPlayerContainer(),b=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip");Q.parentElement!==A&&(b&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.GG(this).appendTo(A,Q),_.K("web_watch_error_screen_fix")||A.appendChild(_.Bj(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var A=_.Bj(this.hostElement).querySelector("#error-screen"),Q=this.fullBleedPlayer?_.Bj(this.hostElement).querySelector("#player-full-bleed-container"):_.Bj(this.hostElement).querySelector("#player");A.parentElement!==Q&&Q.appendChild(A)},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(_.fJ().resolve(_.zb).deactivate(),2);A.updatePlayerLocation();_.Oi(Q)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var Q=this.getCinematicsLocationContainer();A.parentElement!==Q&&Q.appendChild(A);var b;(b=this.watchController)==null||b.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.Bj(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Bj(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(A,Q,b){var f=document.documentElement.hasAttribute("dark"),a=f&&_.K("web_cinematic_theater_mode"),T=f&&_.K("web_cinematic_fullscreen");f=!f&&this.cinematicLightTheme;return b||A&&a||Q&&T||(Q||A)&&f},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A=this,Q;(Q=this.watchController)==null||Q.setWatchNextResponse(this.data);_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.fJ().resolve(_.u$).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,_.K("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.j7.addLowPriorityJob(function(){_.Pn(A.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.K("web_watch_start_chat_in_theater_mode")){var b,f,a;if((b=this.data)==null?0:(f=b.contents)==null?0:(a=f.twoColumnWatchNextResults)==null?0:a.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var T,G;((T=this.data)==null?0:(G=T.contents)==null?0:G.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(A){var Q;(Q=this.watchController)==null||Q.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(Q=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=this.isLiveStreamOffline_(A.playabilityStatus),Q&&!A||_.mL(this,function(){_.hQ("pbu")}));
this.setPlayerAds_();_.Pn(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(A,Q){if((_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"))&&this.playerData&&Q)return this.playerData.videoDetails},
watchPageActiveChanged_:function(A){_.QK().dispatch(_.C4$(this.active));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new _.EH(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);_.K("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Q=_.GG(this);_.K("kevlar_disable_prepare_player")||
Q.preparePlayer();_.K("kevlar_watch_flexy_playlist_manager")||_.fJ().resolve(_.u$).setPlayer(Q);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();Q={"--ytd-watch-flexy-scrollbar-width":_.NG()+"px"};this.is==="ytd-watch-grid"&&(Q["--ytd-watch-flexy-sidebar-width"]=_.v1w+"px",Q["--ytd-watch-grid-horizontal-page-margins"]=_.eP+"px",Q["--ytd-watch-grid-columns-top-margins"]=_.eNp+"px",Q["--ytd-watch-grid-min-player-height-medium"]="360px");!_.GP("kv_pl_mx_sz_ks")&&
_.GP("kevlar_watch_max_player_width")&&(Q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.E1V+"px");_.GP("kevlar_watch_flexy_metadata_height")&&(Q["--ytd-watch-flexy-space-below-player"]=_.xxV+"px");this.safeUpdateStyles(Q);_.K("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.BH(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Bj(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var A=_.NG(),Q=_.hJ+A,b=Q;this.fixedPanels&&(Q+=_.v1w);var f=657+A;A=1327+A;_.Bj(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Q+"px)";_.Bj(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(Q+"px) and (max-width: ")+(A+"px)");_.Bj(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");
_.Bj(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+b+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var A=_.Bj(this.hostElement).querySelector("#miniplayer-bar").firstChild,Q=this.squeezeback&&!_.K("web_watch_squeezeback_player_size_killswitch");return A&&A.active||this.theater||_.K("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||Q||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.iw(NaN,NaN):_.dqp(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.dqp(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.AT(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.HY());_.K("browse_skeleton_removal_on_watch_killswitch")||_.Ep("IS_SHELL_LOAD")&&_.$dq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Q=_.GG(this);Q.addEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));Q.getPlayerPromise().then(function(b){A.playerApiReady_(b)});
_.K("kevlar_watch_flexy_playlist_manager")||(Q=_.fJ().resolve(_.u$),_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&Q.addEventListener("yt-navigate",_.lN(this,this.onYtNavigate_)),Q.setPlaylistComponent(_.Bj(this.hostElement).querySelector("#playlist")),Q.addEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.j7.addLowPriorityJob(function(){_.Bn(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.GG(this).removeEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.K("kevlar_watch_flexy_playlist_manager")){var A=_.fJ().resolve(_.u$);_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.lN(this,this.onYtNavigate_));
A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Bn(this.hostElement,"yt-autonav-pause-player",!1);A=_.aF();_.K("kevlar_exit_fullscreen_leaving_watch")&&A&&_.d2(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
getPageContents:function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.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(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,Q){Q.hasComments?Q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Q.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,Q){this.player&&(Q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ji("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Bj(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Bj(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;this.setPlayerState(A.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.K("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.K("kevlar_unified_player")||_.K("kevlar_player_new_bootstrap_adoption"))&&_.Dh()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(A,Q){Q=Q===void 0?!0:Q;_.aF()&&_.K("external_fullscreen")&&_.d2(document.documentElement);this.theaterRequested_=A;Q&&_.Vb("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.pD(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Bn(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(A){_.xk(A,typeof this.player),this.player&&_.xk(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.pD(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,Q){return this.loading?Q:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.youThereRenderer&&_.iHs(this.youThereManager_,Q.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Q=this.youThereManager_;_.TD()<A.lowEngagementThresholdMs||_.nQ$(Q,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.pD(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,Q,b){return!!A&&!this.isVideoPlayable_(A,b)&&!Q},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,Q){if(!A)return!1;var b=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var a;Q=Q==null?void 0:(a=Q.playerOverlayRenderer)==null?void 0:a.gatedActionsOverlayRenderer;return!!b||!!f||!!A||!!Q},
hasWatchNextResponseErrorRenderer:function(A){var Q=this.getPageContents(A),b,f,a,T,G;return!(A==null?0:(b=A.contents)==null?0:(f=b.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((a=Q[0])==null?0:(T=a.itemSectionRenderer)==null?0:(G=T.contents[0])==null?0:G.backgroundPromoRenderer)},
isLiveStreamOffline_:function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(A,Q,b){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Q),a=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];a=_.K("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&a.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var T=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);T==void 0&&(T=!0);!b||this.isVideoPlayable_(A,this.getPlayerOverlays_(Q))||
f||a||!T||_.fJ().resolve(_.u$).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.GVs()},
onPlayerFeedbackStartRequest_:function(A){_.pD(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.pD(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,Q,b,f,a,T,G,p,P=((A=this.data)==null?NaN:(Q=A.contents)==null?NaN:(b=Q.twoColumnWatchNextResults)==null?NaN:(f=b.secondaryResults)==null?NaN:(a=f.secondaryResults)==null?NaN:(T=a.offerModule)==null?NaN:(G=T.tvfilmOfferModuleRenderer)==null?NaN:(p=G.actionButtons)==null?NaN:p.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(P>=0?P:0)+".buttonRenderer."];Q=_.F(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(b=Q.next();!b.done;b=Q.next())for(b=b.value,f=_.F(A),a=f.next();!a.done;a=f.next())if(a="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+b+a.value,a=this.get(a+"navigationEndpoint",this.data)||this.get(a+"serviceEndpoint",this.data)||this.get(a+"command",this.data)){_.V0(a,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.Bn(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Bn(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(A)},
setPlayerState:function(A){_.QK().dispatch(_.Uox(A))},
onPlayerSubscribe_:function(A){_.pD(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.pD(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.pD(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
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(A){return!_.K("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return _.K("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.K("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var A,Q,b,f;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(Q=A.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(f=b.secondaryResults)==null?void 0:f.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.K("swatcheroo_pbs_load_grid")&&!_.K("swatcheroo_provide_all_data_on_scheduled_job")){_.j7.cancelJob(this.setRichGridJobId_);var A,Q,b,f,a,T,G;this.setRichGridRendererData((A=this.data)==null?void 0:(Q=A.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(f=b.secondaryResults)==null?void 0:(a=f.secondaryResults)==null?void 0:(T=a.results)==null?void 0:(G=T[0])==null?
void 0:G.richGridRenderer)}},
setRichGridRendererData:function(A){this.richGridRendererData=A},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,Q=(A=this.data)==null?void 0:A.engagementPanels;if(Q==null?0:Q.length){A=null;Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0;if(((f=b.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){A=b;break}}var a,T,G;A=(a=A)==null?void 0:(T=a.engagementPanelSectionListRenderer)==null?void 0:(G=T.content)==null?void 0:G.structuredDescriptionContentRenderer;if(A==null?0:A.items){a=
[];T=_.F(A.items);for(G=T.next();!G.done;G=T.next()){G=G.value;if(!_.K("sd_horizontal_list_show_nav_killswitch")){var p=f=b=Q=A=void 0,P=void 0,U=(A=G.horizontalCardListRenderer)==null?void 0:(Q=A.header)==null?void 0:(b=Q.richListHeaderRenderer)==null?void 0:(f=b.navigationButton)==null?void 0:(p=f.buttonRenderer)==null?void 0:(P=p.command)==null?void 0:P.commandExecutorCommand;U&&U.commands&&(U.commands=U.commands.filter(function(L){return!_.V(L,_.Qyd)}))}(!G.expandableVideoDescriptionBodyRenderer&&
!G.videoDescriptionHeaderRenderer||_.K("web_delhi_colorful_sd"))&&a.push(G)}return{items:a}}}},
constructWarning_:function(A){return{text:_.sr(A),type:"WARNING"}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var A=this;_.Bn(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Q=this.getScrollTop()>0;this.gestures_&&(Q?this.gestures_.detach():this.gestures_.attach());Q!==this.showFullerscreenEdu_&&_.K("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Q,_.GG(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonVisibility(A.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Bn(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.j7.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Hv(_.j7,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.K("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.hQ("cmi");_.j7.cancelJob(this.setCommentsJobId_);var A=this.getPageContents(this.data);if(A&&A.length){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,this.get("itemSectionRenderer.sectionIdentifier",Q)==="comment-item-section"){this.comments=Q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Bn(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.hQ("cmc")},
doRemoveComments_:function(){this.comments={};_.K("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.j7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.j7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,Q){var b=_.V(Q.endpoint,_.sv);b&&(!(Q=this.get("data.currentVideoEndpoint.watchEndpoint"))||b.videoId!==Q.videoId||b.playlistId&&b.playlistId!==Q.playlistId||b.index!==void 0&&b.index!==Q.index||typeof b.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.GG(this).getPlayerPromise().then(function(f){var a=b.startTimeSeconds;f.seekTo(a);f.wakeUpControls();a<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var A=_.Zzs();"t"in A&&(A=_.FRs(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=this.getPageContents(A);var Q,b;(A=_.mO(A==null?void 0:(Q=A[0])==null?void 0:(b=Q.videoPrimaryInfoRenderer)==null?void 0:b.title))&&_.Bn(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.Bn(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,Q,b){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===b&&(b=f.list,_.K("polymer_enable_mdx_queue")&&b&&b.startsWith("RQ")&&(b=void 0),f.video_id!==A||b!=Q)){var a;_.K("kevlar_player_watch_endpoint_navigation")?a=_.$yJ(_.bHs(A,Q)):a=this.buildWatchEndpoint_(A,Q);_.Bn(this.hostElement,"yt-navigate",{endpoint:a,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(A,Q,b){return _.aX(A,Q,b)},
initDclkstatus_:function(){_.TNT()},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var Q=A.querySelector("#primary-info"),b=A.querySelector("#secondary-info"),f=A.querySelector("#related");Q&&_.Bj(this.hostElement).querySelector("#info-skeleton").appendChild(Q);b&&_.Bj(this.hostElement).querySelector("#meta-skeleton").appendChild(b);f&&(_.Bj(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.im(A)}},
handlePlayerUpdated_:function(){_.GG(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,Q){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof Q!=="undefined"){var b=this.watchNextSkeletonEl_.children,f=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,b.length);Q||(f=0,A=b.length);for(Q=f;Q<A;Q++)b[Q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.K("external_fullscreen")||_.pD(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var Q=_.GG(this);Q.getPlayerPromise().then(function(b){b.setFauxFullscreen(!!_.aF())});
this.updateFullBleedElementLocations();A&&(Q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(A,Q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Q},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,Q){return Q&&!!A},
computeResponseHasComments:function(A){var Q,b,f,a,T;return!!(A==null?0:(Q=A.contents)==null?0:(b=Q.twoColumnWatchNextResults)==null?0:(f=b.results)==null?0:(a=f.results)==null?0:(T=a.contents)==null?0:T.some(function(G){var p;return(G==null?void 0:(p=G.itemSectionRenderer)==null?void 0:p.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,Q,b,f){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&f?!1:!!A&&!!Object.keys(A).length&&!Q},
identity:_.gW,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(A){var Q=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.GG(this).getPlayerPromise().then(function(b){var f=b.getPlayerState();f!==5&&f!==0&&(b=1/b.getVideoAspectRatio(),Q.videoHeightToWidthRatio_!==b&&(Q.videoHeightToWidthRatio_=b))})},
schedulePlayerSizeUpdate_:function(A){var Q=this,b=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"),f=function(){if(Q.watchMetadata){var a,T;(T=(a=Q.watchMetadata).resize)==null||T.call(a)}_.GG(Q).getPlayerPromise().then(function(G){if(_.K("kevlar_set_internal_player_size")){if(!b||!Q.isMiniplayerActive()){var p=Q.calculateCurrentPlayerSize_();G.setInternalSize(p.width,p.height)}}else G.setSize(NaN,NaN);_.K("kevlar_watch_while")&&Q.updateWatchWhileScrollThreshold_()})};
A?f():_.hy(_.j7,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.V(A,_.LR8).survey)},
onDownloadedVideoDeleted:function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1){if(!Q.active||(b=Q.playerData)==null||!b.offlineState||Q.videoId!==A)return a.return();(f=Q.player)==null||f.stopVideo();_.kg().navigatingAwayFromWatchDeletedVideo=!0;_.V0(_.fqb,Q.hostElement);return a.yield(_.kg().navigationFinishPromise,2)}_.kg().navigatingAwayFromWatchDeletedVideo=!1;_.Oi(a)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.vZ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var A=_.Bj(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&A){var Q=this.windowSize_.height>=624,b=this.active?this.getScrollTop():0;!A.active&&Q&&b>=this.watchWhileScrollThreshold_?(A.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):A.active&&(!Q||b<this.watchWhileScrollThreshold_&&!_.aF())&&(A.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var A=_.Bj(this.hostElement).querySelector("#secondary-inner");if(A){var Q=_.Bj(this.hostElement).querySelector("#below"),b=_.Bj(this.hostElement).querySelector("#secondary"),f=_.Bj(this.hostElement).querySelector("#comments");f&&b&&Q&&(this.defaultTwoColumnLayout?(A.appendChild(f),b.appendChild(A)):(Q.appendChild(f),_.Rl(Q,A)))}}},
isTwoColumnsChanged_:function(A,Q){if(A!==!0||Q!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(A=_.Bj(this.hostElement).querySelector("#secondary-inner"))){Q=_.Bj(this.hostElement).querySelector("#below");var b=_.Bj(this.hostElement).querySelector("#secondary"),f=_.Bj(this.hostElement).querySelector("#comments");f&&b&&Q&&(this.isTwoColumns_?(A.appendChild(f),b.appendChild(A)):(Q.appendChild(f),
_.Rl(Q,A)))}}else{A=!_.K("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);Q=_.Bj(this.hostElement).querySelector("#panels");var a=_.Bj(this.hostElement).querySelector("#alerts");b=_.Bj(this.hostElement).querySelector("#playlist");f=_.Bj(this.hostElement).querySelector("#related");var T=_.Bj(this.hostElement).querySelector("#donation-shelf"),G=_.Bj(this.hostElement).querySelector("#comments");this.isTwoColumns_?(a=_.Bj(this.hostElement).querySelector("#secondary-inner"),
A&&(a.appendChild(Q),a.appendChild(b)),a.appendChild(T),a.appendChild(f)):(A&&(_.eE(Q,a),_.eE(b,a)),_.eE(T,a),G&&_.eE(f,G));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.K("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.K("web_watch_enable_fs_squeezeback_panels")&&_.K("web_watch_theater_chat")){var A=_.Bj(this.hostElement).querySelector("#chat-container"),Q=this.theater&&!this.fullscreen||_.K("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Q?(Q=_.Bj(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==Q&&Q.append(A),this.fixedPanels=!0):(this.fixedPanels=
!1,Q=_.Bj(this.hostElement).querySelector("#playlist"),A&&Q?_.hd(A,Q):_.Wv(new _.IO("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!Q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,Q){return _.K("sw_metadata_vis_toggle_ks")?!0:!!A||!!Q},
computeForceDarkPanelTheme:function(A){return _.K("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.Uc(this.hostElement,A)}catch(Q){_.Wv(Q)}},
videoHeightToWidthRatioChanged_:function(A,Q){Q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.GG(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.GG(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kVc(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(A){var Q=_.i7(A)||0;_.KW(A,Q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var A=_.i7("yt-fullerscreen-edu-button-click-count")||0,Q=_.i7("yt-fullerscreen-edu-button-shown-count")||0,b=_.GP("external_fullscreen_button_shown_threshold"),f=A>=_.GP("external_fullscreen_button_click_threshold")||Q>=b;_.GG(this).getPlayerPromise().then(function(a){a.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(A,Q){return Q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.fJ().resolve(_.u$).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var A=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.j7.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.j7.addLowPriorityJob(function(){A.fullHeightPanelPositionUpdateJobId=0;var Q=_.Bj(A.hostElement).querySelector("#secondary"),b=_.Bj(A.hostElement).querySelector("#fixed-secondary");Q=Q.getBoundingClientRect();var f=Q.width;A.swatcherooSqueezeback&&
(f+=_.eP);if(A.swatcherooSqueezeback){var a=_.Bj(A.hostElement).querySelector("#squeezeback-constraining-container");a.style.width=f+"px";a.style.flex="0 0 "+f+"px"}b.style.width=f+"px";b.style.left=Q.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.j7.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.j7.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var Q;!A.isTwoColumns_||A.theater||A.fullscreen?Q=460:Q=A.calculateNormalPlayerSize_().height;var b=Q+"px";_.K("live_chat_taller_height")&&!A.theater&&(b="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.K("live_chat_medium_height")&&!A.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.K("live_chat_scaled_height")&&!A.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Q+"px","--ytd-watch-flexy-chat-max-height":b,"--ytd-watch-flexy-structured-description-max-height":Q+"px","--ytd-watch-flexy-comments-panel-max-height":Q+"px","--ytd-comments-engagement-panel-content-height":Q+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ST(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var Q=_.Bj(this.hostElement).querySelector("#engagement-panel-scrim");A?Q.addEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_)):Q.removeEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(A){if(this.hostElement.contains(A)&&!this.scrollToAnimation_.isAnimating()){var Q=A.offsetTop-24;A=A.offsetTop+A.offsetHeight+24;var b=this.getPageScrollingElement(),f=this.getScrollTop(),a=f+b.clientHeight-56;if(Q<f+56)Q-=56;else if(A>a)Q=A-b.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Q),500)}},
onYtSignalActionScrollToComments:function(){var A=this.hostElement.querySelector("#comments");if(A&&!this.scrollToAnimation_.isAnimating()){A=A.offsetTop-56-24;if(_.K("kevlar_comment_teaser_scroll_to_midpoint")&&(A-=_.J3().height/3,A<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtEngagementPanelVisibleChanged:function(A,Q,b){if(this.active&&this.trackEngagementPanelVisibility&&!_.SpV.includes(b)){if(Q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Pn(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var f=_.fJ().resolve(_.r8);this.visiblePanelIdentifiers_.forEach(function(a){a!==b&&f.hidePanel(a)})}this.visiblePanelIdentifiers_.add(b)}Q!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(b);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeIsSingleColumn:function(A,Q){return Q&&!A},
computeFullBleedPlayer:function(A,Q,b){return _.K("web_watch_error_screen_fix")?_.K("external_fullscreen")&&A||Q||this.enableFullBleedSingleColumnDefaultPlayer&&b:A||Q||this.enableFullBleedSingleColumnDefaultPlayer&&b},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,Q){return!A&&Q},
updatePanelsLocation:function(){if(_.K("web_watch_enable_fs_squeezeback_panels")){var A=_.Bj(this.hostElement).querySelector("#below"),Q=_.Bj(this.hostElement).querySelector("#panels"),b=_.Bj(this.hostElement).querySelector("#playlist"),f=_.Bj(this.hostElement).querySelector("#chat-container"),a=_.Bj(this.hostElement).querySelector("#panels-full-bleed-container"),T=_.Bj(this.hostElement).querySelector("#secondary-inner");if(A&&Q&&b&&f&&a&&T){var G=this.fullscreen||this.theater&&this.iMaxTheaterMode,
p=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;G?(a.appendChild(Q),a.appendChild(f),a.appendChild(b)):this.isTwoColumns_?(p?(A=_.Bj(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==A&&A.append(f),this.fixedPanels=!0):_.Rl(T,f),_.Rl(T,Q),_.Rl(T,b)):(A.appendChild(Q),A.appendChild(f),A.appendChild(b))}}},
swatcherooUpdatePanelsLocation:function(A,Q,b,f,a,T){if(this.is==="ytd-watch-grid"){Q=A&&!Q;this.swatcherooSplitScroll&&(Q?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));b=_.Bj(this.hostElement).querySelector("#panels");var G=_.Bj(this.hostElement).querySelector("#playlist"),p=_.Bj(this.hostElement).querySelector("#fixed-secondary"),P=_.Bj(this.hostElement).querySelector("#fixed-below"),
U=_.Bj(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),L=_.Bj(this.hostElement).querySelector("#chat-container");T&&(A?p.appendChild(b):P.appendChild(b));a?A?p.appendChild(L):P.appendChild(L):_.hd(L,U);f?A?p.appendChild(G):P.appendChild(G):_.hd(G,U);this.swatcherooSplitScroll&&(A=_.Bj(this.hostElement).querySelector("#secondary"),f=_.Bj(this.hostElement).querySelector("#columns"),a=_.Bj(this.hostElement).querySelector("#fixed-columns-secondary"),Q?
a.appendChild(A):f.appendChild(A))}},
computeMetadataSkinnyMode:function(A,Q,b){return this.is!=="ytd-watch-grid"?!1:A?b:Q},
computeWatchWhilePanelsActive:function(A,Q){return A||Q},
computeNoBorderOnChat:function(A){return _.K("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,Q){return A&&!Q},
computePanelExpanded:function(A,Q,b){return A||Q||b},
computeSqueezeback:function(A,Q,b,f){if(_.K("web_watch_enable_fs_squeezeback_panels")){var a=this.iMaxTheaterMode&&this.theater;return(A||Q||b)&&(f||a)}},
computeSwatcherooSqueezeback:function(A,Q,b){return this.is!=="ytd-watch-grid"||_.K("ww_squeezeback_killswitch")?!1:A&&Q&&b},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(A){_.GG(this).getPlayerPromise().then(function(Q){var b;(b=Q.changeMarkerVisibility)==null||b.call(Q,_.V(A,_.wc).isVisible||!1,_.V(A,_.wc).entityKeys||[],_.V(A,_.wc).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.QK().dispatch(_.XGd(A.detail));if(!this.liveChatCollapsed&&this.squeezeback){var Q=_.fJ().resolve(_.r8);this.visiblePanelIdentifiers_.forEach(function(b){Q.hidePanel(b)})}},
onSetPlaylistCollapsed:function(A){_.K("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!A)},
provideRenderingData:function(A,Q){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Q;break;case "PRIMARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Q);this.videoPrimaryInfoRendererValue=Q==null?void 0:Q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Q);this.videoSecondaryInfoRendererValue=Q==null?void 0:Q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Q;break;case "CLARIFICATION":this.clarifyBoxValue=Q;break;case "LIVE_CHAT":this.conversationBar=Q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Q;break;case "PLAYLIST":this.externalPlaylistData_=Q!=null?Q:{};break;case "MERCH_SHELF":this.merchShelfValue=Q==null?void 0:Q.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=Q;break;case "TICKET_SHELF":this.ticket=Q;break;case "OFFER_MODULE":this.offerModule=Q;break;case "LIMITED_STATE":this.limitedStateValue=
Q;break;case "DONATION_SHELF":this.donation=Q;break;case "ALERTS":this.alertsValue=Q;break;case "COMMENTS":this.comments=Q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
Q;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=Q}},
toggleCinematicsActive:function(A){this.cinematicsActive=A},
isMiniplayerActive:function(){return _.fJ().resolve(_.zb).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Mct;_.LLq=function(A){if(!(0,_.N39)(A))throw Error("K``"+String(A));};
_.lfq=function(A){return A.findIndex(function(Q){return Mct.indexOf(Q.tagName)>-1})>-1};
_.KLd=function(){var A=_.fJ().resolve(_.H3);_.gz6(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(A.isFullscreenEnabled()?_.d2(document.documentElement):_.Ff9(document.documentElement))};
Mct=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.iW=new Map;_.iW.set(32,59972);_.iW.set(27,50765);_.iW.set(70,60102);_.iW.set(76,60221);_.iW.set(77,60222);_.iW.set(74,60223);_.iW.set(84,60224);_.iW.set(38,61941);_.iW.set(40,61942);_.iW.set(73,62521);_.iW.set(67,62522);_.iW.set(80,63390);_.iW.set(78,63397);_.iW.set(75,59972);_.iW.set(188,63385);_.iW.set(190,63384);_.iW.set(36,63387);
_.iW.set(35,63386);_.iW.set(37,63388);_.iW.set(39,63389);_.iW.set(79,63423);_.iW.set(87,63424);_.iW.set(107,63426);_.iW.set(109,63425);_.iW.set(65,63428);_.iW.set(83,63430);_.iW.set(68,63429);_.iW.set(221,63431);_.iW.set(219,63432);_.iW.set(97,63439);_.iW.set(98,63440);_.iW.set(99,63441);_.iW.set(100,63442);_.iW.set(101,63443);_.iW.set(102,63444);_.iW.set(103,63445);_.iW.set(104,63446);_.iW.set(105,63447);_.Je=new Map;_.Je.set(80,63390);_.Je.set(78,63397);_.Je.set(188,63400);_.Je.set(190,63401);
_.Je.set(191,60765);_.Je.set(13,247917);_.Vk=new Map;_.O_=new Map;
}catch(e){_._DumpException(e)}
try{
var BYN,X_l,S7x,UzO;_.TYM=function(A){return A.ui.guideIsVisibleButNotPersistent};
_.dzM=function(A){return A.ui.tabGesturesIsActive};
_.FMN=function(){var A=_.Br("service_worker_scope");try{return navigator.serviceWorker.getRegistration(A)}catch(Q){return Promise.reject(Q)}};
_.GIt=function(A){return!(!A||!A.pushManager)};
BYN=function(){return _.FMN().then(_.GIt).catch(function(){return!1})};
_.p_x=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?BYN():Promise.resolve(!1)};
_.P47=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
X_l=function(){var A,Q,b;return _.B(function(f){switch(f.nextAddress){case 1:return f.yield(_.RR.getInstance(),2);case 2:A=f.yieldResult;if(!A){Q=void 0;f.jumpTo(3);break}return f.yield(A.get("lmqf"),4);case 4:Q=f.yieldResult;case 3:switch((b=Q)||(b="SD"),b){case "HD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
S7x=function(A){var Q,b,f;return _.B(function(a){if(a.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.K("disable_av1_setting")){var T=window.localStorage["yt-player-av1-pref"];T=T==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":T==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else T="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(Q=A===T)return a.jumpTo(2);f=b=A;return a.yield(X_l(),3)}a.nextAddress!=2&&(Q=f===a.yieldResult);return a.return(Q)})};var LMN;var MBN=_.oJ.IronButtonState,lDO=(0,_.Cn)(HTMLElement);
_.gn({_template:function(){if(LMN!==void 0)return LMN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;UzO===void 0&&(UzO=document.createElement("template"));var f=UzO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return LMN=A},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[MBN,_.Cb,_.t7,_.RJ],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(A){var Q=(0,_.Vu)(this);Q.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:A});Q.shadowRoot.appendChild(A);return lDO.prototype._attachDom.call(this,A)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.oi(this.$.content).getDistributedNodes(),Q=0,b=A.length;Q<b;Q++)if(A[Q].nodeType===Node.ELEMENT_NODE)return A[Q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var Q="";A?Q=A.label||A.getAttribute("label")||A.textContent.trim():Q="";this.value=Q;this._setSelectedItemLabel(Q)},
_computeMenuVerticalOffset:function(A,Q){return Q?Q:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",Q=this.contentElement;Q&&Q.setAttribute("aria-expanded",A)}});_.pI=new _.fU("navigateAction");var KMN=new _.fU("formRenderer");var PU=function(){var A=_.nc.apply(this,arguments)||this;A.showInput=!1;return A};
_.O(PU,_.nc);_.d=PU.prototype;_.d.detached=function(){this.showInput&&window.removeEventListener("click",_.lN(this,this.closeOnOutsideClick_))};
_.d.stopPropagation_=function(A){this.showInput&&A.stopPropagation()};
_.d.closeOnOutsideClick_=function(A){this.closeOnOutsideClickCondition(A)&&(this.showInput=!1,window.removeEventListener("click",_.lN(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.d.closeOnOutsideClickCondition=function(){return!0};
_.d.closeOnOutsideClickHandler=function(){};
_.d.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.lN(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.d.openOnClickHandler=function(){};
_.d.showInputChanged=function(){};
_.d.setShowInput=function(A){this.showInput=A};
PU.prototype.setShowInput=PU.prototype.setShowInput;PU.prototype.showInputChanged=PU.prototype.showInputChanged;PU.prototype.openOnClickHandler=PU.prototype.openOnClickHandler;PU.prototype.openOnClick_=PU.prototype.openOnClick_;PU.prototype.closeOnOutsideClickHandler=PU.prototype.closeOnOutsideClickHandler;PU.prototype.closeOnOutsideClickCondition=PU.prototype.closeOnOutsideClickCondition;PU.prototype.closeOnOutsideClick_=PU.prototype.closeOnOutsideClick_;PU.prototype.stopPropagation_=PU.prototype.stopPropagation_;
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],PU.prototype,"showInput",void 0);_.E([_.Kc("click"),_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],PU.prototype,"stopPropagation_",null);_.E([_.iN("showInput"),_.c("design:type",Function),_.c("design:paramtypes",[Boolean]),_.c("design:returntype")],PU.prototype,"showInputChanged",null);_.E([_.kl()],PU);_.izl=[PU.prototype];var Jkt;var VBx;var XD=function(){return _.q.apply(this,arguments)||this};
_.O(XD,_.q);_.d=XD.prototype;_.d.computePreselectedOption=function(A,Q){return Q===this.itemSelected_?A:void 0};
_.d.dataChanged_=function(){var A=this;this.preselectedSubreason=this.itemSelected_=-1;var Q;(Q=this.data)!=null&&Q.key&&_.mL(this,function(){var b,f=Number((b=A.data)==null?void 0:b.key);!Number.isNaN(f)&&(A.itemSelected_=f,b=(b=(A.data.items||[])[f])&&b.optionSelectableItemRenderer&&b.optionSelectableItemRenderer.preselectedIndex)&&(A.preselectedSubreason=b)})};
_.d.isSubReasonHidden_=function(A,Q){return A!=Q};
_.d.onTopItemSelected_=function(A,Q){for(var b=_.Bj(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),f=0,a=b.length;f<a;f++)b[f].select(0);_.pD(this.hostElement,"yt-report-form-update",[Q.item.value]);A.stopPropagation()};
_.d.onItemSelected_=function(A,Q){_.pD(this.hostElement,"yt-report-form-update",[Q.item.value]);A.stopPropagation()};
_.d.getItem_=function(A){return A.serviceItem?A.serviceItem:A.navigationItem?A.navigationItem:A.optionSelectableItemRenderer?A.optionSelectableItemRenderer:null};
_.d.computeText_=function(A){return(A=this.getItem_(A))?this.ytRendererBehavior.getSimpleString(A.text):null};
_.d.validate=function(){return this.itemSelected_!==-1};
_.d.computeAriaLabel_=function(A){var Q=_.mO(A.text);(A=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label)&&(Q+=". "+A);return Q};
_.d.computeItemSelected_=function(A){return A};
_.d.preventSelection_=function(A){A.stopPropagation();this.tooltipTapped=!0};
_.d.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.d.updateItemSelectedFromBinding=function(A){this.itemSelected_=A.detail.value};
_.d.save=function(){var A;this.validate()&&(A=this.data)!=null&&A.items&&(A=this.data.items[this.itemSelected_],A!=null&&A.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(A.optionSelectableItemRenderer.submitEndpoint)||_.X5(this.hostElement,[A.optionSelectableItemRenderer.submitEndpoint])))};
XD.prototype.onPaperRippleTransitionEnd_=XD.prototype.onPaperRippleTransitionEnd_;XD.prototype.dataChanged_=XD.prototype.dataChanged_;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],XD.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],XD.prototype,"data",void 0);_.E([_.C({value:-1}),_.c("design:type",Number)],XD.prototype,"itemSelected_",void 0);
_.E([_.C({computed:"computeItemSelected_(itemSelected_)"}),_.c("design:type",Number)],XD.prototype,"value",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],XD.prototype,"restoreFocusOnClose",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],XD.prototype,"tooltipTapped",void 0);_.E([_.C({value:-1}),_.c("design:type",Number)],XD.prototype,"preselectedSubreason",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XD.prototype,"dataChanged_",null);_.E([_.Kc("transitionend"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],XD.prototype,"onPaperRippleTransitionEnd_",null);_.E([_.Ec({is:"yt-options-renderer",disableElementRegistration:!0})],XD);
_.W(XD,"yt-options-renderer",function(){if(VBx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Jkt===void 0&&(Jkt=document.createElement("template"));var f=Jkt;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);VBx=A}A=VBx;return A},{mode:2});var OzM;var nAO;var kIs;var IDK;var HzM;var C4N;var Sr=function(){return _.q.apply(this,arguments)||this};
_.O(Sr,_.q);Sr.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Sr.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Sr.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.pD(this.hostElement,"yt-share-panel-can-select-contact-action")[0])A&&A.detail&&(A.detail.x||A.detail.y)&&_.Bj(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:A?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.pD(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.E([_.C({observer:"onDataChanged"}),_.c("design:type",Object)],Sr.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.c("design:type",String)],Sr.prototype,"componentTitle",void 0);_.E([_.V1("#thumbnail"),_.c("design:type",Object)],Sr.prototype,"thumbnail",void 0);_.E([_.Ec({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Sr);
_.W(Sr,"yt-enrolled-contact-renderer",function(){if(C4N===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;HzM===void 0&&(HzM=document.createElement("template"));var f=HzM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);C4N=A}A=C4N;return A},{mode:2});var q7n;var oAs;var Uj=function(){return _.q.apply(this,arguments)||this};
_.O(Uj,_.q);Uj.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Uj.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Uj.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.pD(this.hostElement,"yt-share-panel-can-select-contact-action")[0])A&&A.detail&&(A.detail.x||A.detail.y)&&_.Bj(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:A?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.pD(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.E([_.C({observer:"onDataChanged"}),_.c("design:type",Object)],Uj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.c("design:type",String)],Uj.prototype,"componentTitle",void 0);_.E([_.V1("#thumbnail"),_.c("design:type",Object)],Uj.prototype,"thumbnail",void 0);_.E([_.Ec({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Uj);
_.W(Uj,"yt-suggested-contact-renderer",function(){if(oAs===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;q7n===void 0&&(q7n=document.createElement("template"));var f=q7n;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);oAs=A}A=oAs;return A},{mode:2});var LI=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-share-panel-reset-action":"onReset"};return A};
_.O(LI,_.q);LI.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"}}}}}};
LI.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.pD(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
LI.prototype.onReset=function(){for(var A=_.Bj(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),Q=A.length-1;Q>=0;Q--)A[Q].classList.toggle("selected")};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],LI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({observer:"onDataChanged"}),_.c("design:type",Object)],LI.prototype,"data",void 0);
_.E([_.Ec({is:"yt-contact-section-renderer",disableElementRegistration:!0})],LI);
_.W(LI,"yt-contact-section-renderer",function(){if(IDK===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;kIs===void 0&&(kIs=document.createElement("template"));var f=kIs;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);IDK=A}A=IDK;return A},{mode:2});var MT=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return A};
_.O(MT,_.q);_.d=MT.prototype;_.d.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"}}}};
_.d.onYtRefreshFormCommand=function(A){var Q;(A=_.V((Q=_.V(A,_.y1L))==null?void 0:Q.formRenderer,KMN))&&this.set("data",A)};
_.d.reset=function(){var A=_.Bj(this.hostElement).querySelector("#fields").children;A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.reset&&Q.reset()};
_.d.getForm=function(){var A={},Q=_.Bj(this.hostElement).querySelector("#fields").children;Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;if(!b.validate())return null;A[b.data.key]=b.value}return A};
_.d.submitFormFields=function(){if(this.fields)for(var A=_.F(this.fields),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?Q.save():Q.nodeName==="YT-OPTIONS-RENDERER"&&Q.save()};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],MT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],MT.prototype,"data",void 0);_.E([_.Oc("#fields > *"),_.c("design:type",Array)],MT.prototype,"fields",void 0);
_.E([_.Ec({is:"yt-form-renderer",disableElementRegistration:!0})],MT);
_.W(MT,"yt-form-renderer",function(){if(nAO===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;OzM===void 0&&(OzM=document.createElement("template"));var f=OzM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);nAO=A}A=nAO;return A},{mode:2});var tBx;var lf=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return A};
_.O(lf,_.q);lf.prototype.onCheckboxChange=function(A){this.data&&(A=(this.checked=_.Au(A).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})};
lf.prototype.handleUpdateCheckboxCommand=function(A){(A=_.V(A,_.pX9))&&this.data&&this.data.id===A.id&&(this.set("data.disabled",A.disabled),this.set("data.title",A.title))};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],lf.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lf.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],lf.prototype,"checked",void 0);_.E([_.h({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],lf);
_.W(lf,"ytd-settings-checkbox-renderer",function(){if(tBx!==void 0)return tBx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return tBx=A},{mode:1});var rkx;var KI=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return A};
_.O(KI,_.q);KI.prototype.dataChanged=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return A.radio.removeAttribute("checked"),!A.data||!A.data.id||A.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.P47()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(Q=A.data&&A.data.id)?b.yield(S7x(A.data.id),4):b.jumpTo(3):(A.set("data.hidden",!0),b.jumpTo(0));b.nextAddress!=3&&(Q=b.yieldResult);Q&&_.pD(A.hostElement,"yt-select-settings-radio-option",[A.data.id]);_.Oi(b)})};
KI.prototype.onButtonChanged=function(A){_.Au(A).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.pD(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
KI.prototype.onSelectOption=function(A){this.data&&this.data.id&&(this.data.id===A?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
KI.prototype.dataChanged=KI.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],KI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.V1("#radio"),_.c("design:type",Object)],KI.prototype,"radio",void 0);_.E([_.C(),_.c("design:type",Object)],KI.prototype,"data",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],KI.prototype,"dataChanged",null);_.E([_.h({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],KI);
_.W(KI,"ytd-settings-radio-option-renderer",function(){if(rkx!==void 0)return rkx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rkx=A},{mode:1});var j7x;var JD=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return A};
_.O(JD,_.q);
JD.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"}}}};
JD.prototype.handleUpdateTextCommand=function(A){(A=_.V(A,_.P1Y))&&this.data&&this.data.id===A.id&&this.set("data",A)};
JD.prototype.handleUpdateConnectedAppRendererCommand=function(A){if(_.V(A,_.UAL)&&this.data){var Q,b;if(A=(Q=_.V(A,_.UAL))==null?void 0:(b=Q.newConnectedAppRenderer)==null?void 0:b.connectedAppRenderer)this.data=A}};
JD.prototype.computeConnectedAppStyle=function(A){return A.style?A.style.toLowerCase().replace(/_/g,"-"):""};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],JD.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JD.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.c("design:type",String)],JD.prototype,"connectedAppStyle",void 0);_.E([_.h({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],JD);
_.W(JD,"ytd-connected-app-renderer",function(){if(j7x!==void 0)return j7x;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return j7x=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.rv("iuT5Oc");

_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("L3n37");
var czn=function(A){return A.watch.isLearningJourneyActive},zg8=_.K6(115994),wGi=_.K6(115993),uF8=function(A,Q,b){var f=this;
var a=b.dragDownAction;this.layer=0;this.JSC$22954_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$22954_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var T=_.IP();_.K2(T,zg8,this.layer);_.K2(T,wGi,this.layer);this.dragDownAction=function(){a();_.NM(T,{visualElement:f.fullscreen?zg8:wGi})};
this.gesture=new _.Pq(A,Q,this.JSC$22954_watchConfig,"pandown");this.attach()};
uF8.prototype.attach=function(){this.gesture.attach()};
uF8.prototype.detach=function(){this.gesture.detach()};
uF8.prototype.update=function(A){this.fullscreen=A;this.gesture.config=A?this.JSC$22954_watchFullScreenConfig:this.JSC$22954_watchConfig};var ZHY=function(A){_.Kj.call(this);var Q=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(b){Q.initOrDisposeActiveModules(b)}));
this.onAttached()};
_.O(ZHY,_.Kj);_.d=ZHY.prototype;_.d.getRoot=function(){return this.rootElement};
_.d.getElement=function(A){return this.rootElement.getElement(A)};
_.d.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.d.getPlayerResponse=function(){return this.playerResponse};
_.d.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.d.getWatchNextResponse=function(){return this.watchNextResponse};
_.d.registerActionHandler=function(A,Q){var b=this;if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.Dl(_.Yk.getInstance(),(f[A]=Q,f),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),f={},_.Dl(_.Yk.getInstance(),(f[A]=function(){var a=_.E$.apply(0,arguments);return(b.actionHandlers.get(A)||[]).map(function(T){return T.apply(null,_.ri(a))})},f),this.getRoot())),this.actionHandlers.get(A).push(Q)};
_.d.unregisterActionHandler=function(A){if(_.K("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.$k(_.Yk.getInstance(),(Q[A]=!0,Q),this.getRoot())}else(Q=this.actionHandlers.get(A))?(Q.pop(),Q.length===0&&(Q={},_.$k(_.Yk.getInstance(),(Q[A]=!0,Q),this.getRoot()),this.actionHandlers.delete(A))):_.Wv(new _.IO("Attempted to unregister an action handler which is not registered.",A))};
_.d.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.OF9(this.rootElement.pageDisposeJobs,A)};
_.d.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.Eb(this.rootElement.pageDisposeJobs,A)};
_.d.dispatchEvent=function(A,Q){_.Bn(this.rootElement,A,Q)};
_.d.provideRenderingData=function(A,Q){this.rootElement.provideRenderingData(A,Q)};
_.d.scrollWatchTo=function(A,Q){var b;(b=this.watchScrollManager)==null||b.scrollWatchTo(A,Q)};
_.d.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.mL(A,function(){if(A&&A.firstElementChild){var Q=A.querySelector(".html5-video-player");Q&&(_.d8(_.fJ().resolve(_.Wz)),Q.focus())}else _.Wv(Error("Ao"))})};
_.d.updateCinematicFullscreenConfig=function(){var A=!!this.rootElement.theater,Q=!!this.rootElement.fullscreen,b;(b=this.watchCinematicManager)==null||_.rc(b,Q,A)};
_.d.subscribeToActiveChanged=function(A,Q){Q=Q===void 0?!0:Q;var b=_.H1(_.QK(),czn,function(f){A(f)});
Q&&A(czn(_.QK().getState()));return b};
_.d.isActive=function(){return czn(_.QK().getState())};
_.d.onAttached=function(){var A=_.K("external_fullscreen");_.K("use_unified_flag_accessor")&&(A=_.fJ().resolve(_.T$n).retriever.getFlag(_.Q71));(A||_.Ep("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.d.initPersistentModules=function(){if(_.K("kevlar_watch_flexy_theater_manager")){var A=new _.ATh(this);_.SY(this,A)}A=new _.v$c(this);_.SY(this,A);A=new _.Cq(this);_.SY(this,A);A=new _.hL(this);_.SY(this,A);A=new _.S7V(this);_.SY(this,A);A=new _.oV(this);_.SY(this,A);_.K("kevlar_watch_flexy_playlist_manager")&&(A=new _.MB$(this),_.SY(this,A))};
_.d.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new _.v$(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.muT(this)),this.activeModules.push(new _.a0$(this)),this.activeModules.push(new _.Ozs(this)),this.activeModules.push(new _.W$(this)),_.K("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.GHp(this)),this.activeModules.push(new _.TYs(this)),_.K("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.kIp(this)),
_.K("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.MYx(this)),_.K("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.VYn(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.K("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.BYs(this)),_.K("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.h_n(this)),A=_.K("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.K("kevlar_watch_flexy_comments_manager")&&!A&&this.activeModules.push(new _.rTV(this)),_.K("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.qc(this)),this.activeModules.push(new _.Gzc(this)),this.activeModules.push(new _.Q78(this)),_.K("web_enable_timely_actions")&&this.activeModules.push(new _.XoY(this)),_.K("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.g5c(this)),_.K("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.I0d(this)),
_.K("web_fullscreen_components")&&this.activeModules.push(new _.Xl$(this)),_.K("web_player_rtr_ctrls")&&this.activeModules.push(new _.hK$(this))):(_.QO(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.d.disposeInternal=function(){_.Kj.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Qr.Object.defineProperties(ZHY.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var yzY={},Yp$=["learning-journey-engagement-panel","PAlearning_chat"];
yzY.YtdLearningJourneyWatchBehavior=[_.Z.YtRendererBehavior,_.mx.YtPlayerListenerBehavior,_.p3.YtRendererstamperBehavior,_.PJ.YtActionHandlerBehavior,_.Re.YtPageBehavior,_.kZ.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 _.Ep("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.K("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 _.Ep("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 _.K("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.K("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 _.GP("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.GP("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.K("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_watch_rounded_player_large")||_.K("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 _.K("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.K("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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 _.K("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.K("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:_.AD(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.AD(["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 A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.K("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.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;_.K("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.K("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.M6d(function(){return _.GG(A)},this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
_.K("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){A.resetFullerscreenEduButtonForNewPlayback_()}));
_.K("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Uz;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;_.K("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.K("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));_.K("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lN(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.K("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.K("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.K("kevlar_watch_while_v2")&&!_.K("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.Bn(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.K("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){this.initCsi_();this.updatePageData_(A)},
updatePageData_:function(A){var Q=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.g2({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.hQ("nw");this.loading=!1;_.Hv(_.j7,function(){Q.initDclkstatus_();var f,a=((f=Q.player)==null?void 0:f.getVideoData().cpn)||"";_.Q8n(function(T,G){_.XtF(T,G,a)})})},
onPageLoadWithSameData_:function(){_.K("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;var Q,b,f;A=(Q=this.loadingData)==null?void 0:(b=Q.endpoint)==null?void 0:(f=b.watchEndpoint)==null?void 0:f.videoId;var a;A&&(a="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.Bj(this.hostElement).querySelector("#player").style.backgroundImage=a?"url("+a+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.Bj(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var Q,b;(b=(Q=this.watchMetadata).updateSentimentBarWidth)==
null||b.call(Q);var f,a;(a=(f=this.watchMetadata).resize)==null||a.call(f)}_.Bj(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(A){var Q=_.Bj(this.hostElement).querySelector(A);Q?_.F5(Q,!1):_.Wv(new _.IO("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var Q=_.Bj(this.hostElement).querySelector(A);Q?_.Go(Q):_.Wv(new _.IO("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?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(A){var Q=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.j7.addLowPriorityJob(function(){Q.onWindowResized_(_.HY(!0))})},
updateTheaterModeState_:function(A){if(!_.K("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&_.TW8()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var A=this.theater;_.K("external_fullscreen")&&this.fullscreen&&(A=!0);A=A?_.Bj(this.hostElement).querySelector("#player-full-bleed-container"):_.Bj(this.hostElement).querySelector("#player-container-inner");var Q=this.getPlayerContainer(),b=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip");Q.parentElement!==A&&(b&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.GG(this).appendTo(A,Q),A.appendChild(_.Bj(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(_.fJ().resolve(_.zb).deactivate(),2);A.updatePlayerLocation();_.Oi(Q)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var Q=this.getCinematicsLocationContainer();A.parentElement!==Q&&Q.appendChild(A);var b;(b=this.watchController)==null||b.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Bj(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Bj(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(A,Q){var b=document.documentElement.hasAttribute("dark"),f=b&&_.K("web_cinematic_theater_mode"),a=b&&_.K("web_cinematic_fullscreen");b=!b&&this.cinematicLightTheme;return A&&f||Q&&a||(Q||A)&&b},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data);_.K("kevlar_watch_flexy_comments_manager")||this.initComments_();_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.fJ().resolve(_.u$).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.K("web_watch_start_chat_in_theater_mode")){var Q,
b,f;if((Q=this.data)==null?0:(b=Q.contents)==null?0:(f=b.twoColumnWatchNextResults)==null?0:f.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var a,T;((a=this.data)==null?0:(T=a.contents)==null?0:T.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(A){var Q;(Q=this.watchController)==null||Q.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(Q=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=this.isLiveStreamOffline_(A.playabilityStatus),Q&&!A||_.mL(this,function(){_.hQ("pbu")}));
this.setPlayerAds_();_.Pn(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(A){_.QK().dispatch(_.G7({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new ZHY(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.K("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var Q=_.GG(this);_.K("kevlar_disable_prepare_player")||Q.preparePlayer();_.K("kevlar_watch_flexy_playlist_manager")||_.fJ().resolve(_.u$).setPlayer(Q);this.updatePageMediaQueries();Q={"--ytd-watch-flexy-scrollbar-width":_.NG()+
"px"};!_.GP("kv_pl_mx_sz_ks")&&_.GP("kevlar_watch_max_player_width")&&(Q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.E1V+"px");_.GP("kevlar_watch_flexy_metadata_height")&&(Q["--ytd-watch-flexy-space-below-player"]=_.xxV+"px");this.safeUpdateStyles(Q);_.K("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new uF8(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
_.K("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Bj(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var A=_.NG(),Q=_.hJ+A,b=Q;this.fixedPanels&&(Q+=_.v1w);var f=657+A;A=1327+A;_.Bj(this.hostElement).querySelector("#two-column-query").query="(min-width: "+Q+"px)";_.Bj(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(Q+"px) and (max-width: ")+(A+"px)");_.Bj(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");
_.Bj(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+b+"px)"},
calculateCurrentPlayerSize_:function(){var A=_.Bj(this.hostElement).querySelector("#miniplayer-bar").firstChild;return A&&A.active||this.theater||_.K("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.iw(NaN,NaN):_.dqp(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.dqp(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.AT(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.HY());_.K("browse_skeleton_removal_on_watch_killswitch")||_.Ep("IS_SHELL_LOAD")&&_.$dq();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var Q=_.GG(this);Q.addEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));Q.getPlayerPromise().then(function(b){A.playerApiReady_(b)});
_.K("kevlar_watch_flexy_playlist_manager")||(Q=_.fJ().resolve(_.u$),_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&Q.addEventListener("yt-navigate",_.lN(this,this.onYtNavigate_)),Q.setPlaylistComponent(_.Bj(this.hostElement).querySelector("#playlist")),Q.addEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.j7.addLowPriorityJob(function(){_.Bn(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.GG(this).removeEventListener("yt-player-updated",_.lN(this,this.onPlayerUpdated_));if(!_.K("kevlar_watch_flexy_playlist_manager")){var A=_.fJ().resolve(_.u$);_.K("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.lN(this,this.onYtNavigate_));A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.lN(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.K("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Bn(this.hostElement,"yt-autonav-pause-player",!1);A=_.aF();_.K("kevlar_exit_fullscreen_leaving_watch")&&A&&_.d2(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
getPageContents:function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.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(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,Q){Q.hasComments?Q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):Q.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,Q){this.player&&(Q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ji("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Bj(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Bj(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;this.setPlayerState(A.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.K("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.K("kevlar_unified_player")||_.K("kevlar_player_new_bootstrap_adoption"))&&_.Dh()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(A,Q){Q=Q===void 0?!0:Q;_.aF()&&_.K("external_fullscreen")&&_.d2(document.documentElement);this.theaterRequested_=A;Q&&_.Vb("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.pD(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Bn(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(A){_.xk(A,typeof this.player),this.player&&_.xk(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.pD(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,Q){return this.loading?Q:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.youThereRenderer&&_.iHs(this.youThereManager_,Q.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var Q=this.youThereManager_;_.TD()<A.lowEngagementThresholdMs||_.nQ$(Q,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.pD(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,Q,b){return!!A&&!this.isVideoPlayable_(A,b)&&!Q},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,Q){if(!A)return!1;var b=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var a;Q=Q==null?void 0:(a=Q.playerOverlayRenderer)==null?void 0:a.gatedActionsOverlayRenderer;return!!b||!!f||!!A||!!Q},
hasWatchNextResponseErrorRenderer:function(A){var Q=this.getPageContents(A),b,f,a,T,G;return!(A==null?0:(b=A.contents)==null?0:(f=b.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((a=Q[0])==null?0:(T=a.itemSectionRenderer)==null?0:(G=T.contents[0])==null?0:G.backgroundPromoRenderer)},
isLiveStreamOffline_:function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(A,Q,b){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Q),a=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];a=_.K("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&a.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var T=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);T==void 0&&(T=!0);!b||this.isVideoPlayable_(A,this.getPlayerOverlays_(Q))||
f||a||!T||_.fJ().resolve(_.u$).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.GVs()},
onPlayerFeedbackStartRequest_:function(A){_.pD(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.pD(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,Q,b,f,a,T,G,p,P=((A=this.data)==null?NaN:(Q=A.contents)==null?NaN:(b=Q.twoColumnWatchNextResults)==null?NaN:(f=b.secondaryResults)==null?NaN:(a=f.secondaryResults)==null?NaN:(T=a.offerModule)==null?NaN:(G=T.tvfilmOfferModuleRenderer)==null?NaN:(p=G.actionButtons)==null?NaN:p.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(P>=0?P:0)+".buttonRenderer."];Q=_.F(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(b=Q.next();!b.done;b=Q.next())for(b=b.value,f=_.F(A),a=f.next();!a.done;a=f.next())if(a="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+b+a.value,a=this.get(a+"navigationEndpoint",this.data)||this.get(a+"serviceEndpoint",this.data)||this.get(a+"command",this.data)){_.V0(a,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.Bn(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Bn(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(A)},
setPlayerState:function(A){_.QK().dispatch(_.Uox(A))},
onPlayerSubscribe_:function(A){_.pD(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.pD(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.pD(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(A){return!_.K("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return _.K("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var A,Q,b,f;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(Q=A.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(f=b.secondaryResults)==null?void 0:f.secondaryResults}},
setRichGridRendererData:function(A){this.richGridRendererData=A},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,Q=(A=this.data)==null?void 0:A.engagementPanels;if(Q==null?0:Q.length){A=null;Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0;if(((f=b.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){A=b;break}}var a,T,G;A=(a=A)==null?void 0:(T=a.engagementPanelSectionListRenderer)==null?void 0:(G=T.content)==null?void 0:G.structuredDescriptionContentRenderer;if(A==null?0:A.items){a=
[];T=_.F(A.items);for(G=T.next();!G.done;G=T.next()){G=G.value;if(!_.K("sd_horizontal_list_show_nav_killswitch")){var p=f=b=Q=A=void 0,P=void 0,U=(A=G.horizontalCardListRenderer)==null?void 0:(Q=A.header)==null?void 0:(b=Q.richListHeaderRenderer)==null?void 0:(f=b.navigationButton)==null?void 0:(p=f.buttonRenderer)==null?void 0:(P=p.command)==null?void 0:P.commandExecutorCommand;U&&U.commands&&(U.commands=U.commands.filter(function(L){return!_.V(L,_.Qyd)}))}G.expandableVideoDescriptionBodyRenderer||
G.videoDescriptionHeaderRenderer||a.push(G)}return{items:a}}}},
constructWarning_:function(A){return{text:_.sr(A),type:"WARNING"}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var A=this;_.Bn(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var Q=this.getScrollTop()>0;this.gestures_&&(Q?this.gestures_.detach():this.gestures_.attach());Q!==this.showFullerscreenEdu_&&_.K("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=Q,_.GG(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonVisibility(A.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Bn(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.j7.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Hv(_.j7,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.K("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.hQ("cmi");_.j7.cancelJob(this.setCommentsJobId_);var A=this.getPageContents(this.data);if(A&&A.length){A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,this.get("itemSectionRenderer.sectionIdentifier",Q)==="comment-item-section"){this.comments=Q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Bn(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.K("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.K("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.hQ("cmc")},
doRemoveComments_:function(){this.comments={};_.K("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.j7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.j7.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,Q){var b=_.V(Q.endpoint,_.sv);b&&(!(Q=this.get("data.currentVideoEndpoint.watchEndpoint"))||b.videoId!==Q.videoId||b.playlistId&&b.playlistId!==Q.playlistId||b.index!==void 0&&b.index!==Q.index||typeof b.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.GG(this).getPlayerPromise().then(function(f){var a=b.startTimeSeconds;f.seekTo(a);f.wakeUpControls();a<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var A=_.Zzs();"t"in A&&(A=_.FRs(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=this.getPageContents(A);var Q,b;(A=_.mO(A==null?void 0:(Q=A[0])==null?void 0:(b=Q.videoPrimaryInfoRenderer)==null?void 0:b.title))&&_.Bn(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.Bn(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,Q,b){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===b&&(b=f.list,_.K("polymer_enable_mdx_queue")&&b&&b.startsWith("RQ")&&(b=void 0),f.video_id!==A||b!=Q)){var a;_.K("kevlar_player_watch_endpoint_navigation")?a=_.$yJ(_.bHs(A,Q)):a=this.buildWatchEndpoint_(A,Q);_.Bn(this.hostElement,"yt-navigate",{endpoint:a,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(A,Q,b){return _.aX(A,Q,b)},
initDclkstatus_:function(){_.TNT()},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var Q=A.querySelector("#primary-info"),b=A.querySelector("#secondary-info"),f=A.querySelector("#related");Q&&_.Bj(this.hostElement).querySelector("#info-skeleton").appendChild(Q);b&&_.Bj(this.hostElement).querySelector("#meta-skeleton").appendChild(b);f&&(_.Bj(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.im(A)}},
handlePlayerUpdated_:function(){_.GG(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,Q){if(this.watchNextSkeletonEl_&&typeof Q!=="undefined"){var b=this.watchNextSkeletonEl_.children,f=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,b.length);Q||(f=0,A=b.length);for(Q=f;Q<A;Q++)b[Q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.K("external_fullscreen")||_.pD(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var Q=_.GG(this);Q.getPlayerPromise().then(function(b){b.setFauxFullscreen(!!_.aF())});
this.updateFullBleedElementLocations();A&&(Q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(A,Q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!Q},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,Q){return Q&&!!A},
computeResponseHasComments:function(A){var Q,b,f,a,T;return!!(A==null?0:(Q=A.contents)==null?0:(b=Q.twoColumnWatchNextResults)==null?0:(f=b.results)==null?0:(a=f.results)==null?0:(T=a.contents)==null?0:T.some(function(G){var p;return(G==null?void 0:(p=G.itemSectionRenderer)==null?void 0:p.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,Q){this.responseHasComments=this.computeResponseHasComments(this.data);return!!A&&!!Object.keys(A).length&&!Q},
identity:_.gW,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.K("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(A){var Q=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.GG(this).getPlayerPromise().then(function(b){var f=b.getPlayerState();f!==5&&f!==0&&(b=1/b.getVideoAspectRatio(),Q.videoHeightToWidthRatio_!==b&&(Q.videoHeightToWidthRatio_=b))})},
schedulePlayerSizeUpdate_:function(A){var Q=this,b=_.K("kevlar_watch_while_v2")||_.K("web_watch_pip"),f=function(){if(Q.watchMetadata){var a,T;(T=(a=Q.watchMetadata).resize)==null||T.call(a)}_.GG(Q).getPlayerPromise().then(function(G){if(_.K("kevlar_set_internal_player_size")){if(!b||!Q.isMiniplayerActive()){var p=Q.calculateCurrentPlayerSize_();G.setInternalSize(p.width,p.height)}}else G.setSize(NaN,NaN);_.K("kevlar_watch_while")&&Q.updateWatchWhileScrollThreshold_()})};
A?f():_.hy(_.j7,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.V(A,_.LR8).survey)},
onDownloadedVideoDeleted:function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1){if(!Q.active||(b=Q.playerData)==null||!b.offlineState||Q.videoId!==A)return a.return();(f=Q.player)==null||f.stopVideo();_.kg().navigatingAwayFromWatchDeletedVideo=!0;_.V0(_.fqb,Q.hostElement);return a.yield(_.kg().navigationFinishPromise,2)}_.kg().navigatingAwayFromWatchDeletedVideo=!1;_.Oi(a)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.vZ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var A=_.Bj(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&A){var Q=this.windowSize_.height>=624,b=this.active?this.getScrollTop():0;!A.active&&Q&&b>=this.watchWhileScrollThreshold_?(A.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):A.active&&(!Q||b<this.watchWhileScrollThreshold_&&!_.aF())&&(A.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(A,Q){if(A!==!0||Q!==void 0){A=!_.K("live_chat_over_engagement_panels");Q=_.Bj(this.hostElement).querySelector("#chat-container");var b=_.Bj(this.hostElement).querySelector("#plj-sidebar"),f=_.Bj(this.hostElement).querySelector("#panels"),a=_.Bj(this.hostElement).querySelector("#plj-panels"),T=_.Bj(this.hostElement).querySelector("#plj-playlist"),G=_.Bj(this.hostElement).querySelector("#alerts"),p=_.Bj(this.hostElement).querySelector("#playlist"),P=_.Bj(this.hostElement).querySelector("#related"),
U=_.Bj(this.hostElement).querySelector("#donation-shelf"),L=_.Bj(this.hostElement).querySelector("#comments");this.isTwoColumns_?(G=_.Bj(this.hostElement).querySelector("#secondary-inner"),G.appendChild(b),b.appendChild(T),T.appendChild(p),b.appendChild(a),A&&G.appendChild(f),_.K("web_watch_theater_chat")||G.appendChild(Q),A||G.appendChild(f),G.appendChild(U),G.appendChild(P)):(A&&_.eE(f,G),_.eE(p,G),_.K("web_watch_theater_chat")||_.eE(Q,G),A||_.eE(f,G),_.eE(U,G),L&&(a&&_.eE(a,L),_.eE(P,L)));_.K("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.K("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.K("web_watch_theater_chat")){var A=_.Bj(this.hostElement).querySelector("#chat-container"),Q=this.theater&&!this.fullscreen||_.K("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&Q?_.K("web_watch_theater_chat_beside_player")?(Q=_.Bj(this.hostElement).querySelector("#panels-full-bleed-container"),(A==null?void 0:A.parentElement)!==Q&&Q.append(A),this.panelsBesidePlayer=!0):_.K("web_watch_theater_fixed_chat")&&
(Q=_.Bj(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==Q&&Q.append(A),this.fixedPanels=!0):(_.K("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.K("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),Q=_.Bj(this.hostElement).querySelector("#playlist"),A&&Q?_.hd(A,Q):_.Wv(new _.IO("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!Q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,Q){return _.K("sw_metadata_vis_toggle_ks")?!0:!!A||!!Q},
computeForceDarkPanelTheme:function(A){return _.K("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.Uc(this.hostElement,A)}catch(Q){_.Wv(Q)}},
videoHeightToWidthRatioChanged_:function(A,Q){Q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.K("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.GG(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.GG(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kVc(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(A){var Q=_.i7(A)||0;_.KW(A,Q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var A=_.i7("yt-fullerscreen-edu-button-click-count")||0,Q=_.i7("yt-fullerscreen-edu-button-shown-count")||0,b=_.GP("external_fullscreen_button_shown_threshold"),f=A>=_.GP("external_fullscreen_button_click_threshold")||Q>=b;_.GG(this).getPlayerPromise().then(function(a){a.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(A,Q){return Q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.fJ().resolve(_.u$).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.panelMaxHeightUpdateJob_&&_.j7.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.j7.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var Q;!A.isTwoColumns_||A.theater||A.fullscreen?Q=460:Q=A.calculateNormalPlayerSize_().height;var b=Q+"px";_.K("live_chat_taller_height")&&!A.theater&&(b="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.K("live_chat_medium_height")&&
!A.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.K("live_chat_scaled_height")&&!A.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":Q+"px","--ytd-watch-flexy-chat-max-height":b,"--ytd-watch-flexy-structured-description-max-height":Q+"px","--ytd-watch-flexy-comments-panel-max-height":Q+"px","--ytd-comments-engagement-panel-content-height":Q+"px"})})},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.ST(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var Q=_.Bj(this.hostElement).querySelector("#engagement-panel-scrim");A?Q.addEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_)):Q.removeEventListener("tap",_.lN(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(A){if(this.hostElement.contains(A)&&!this.scrollToAnimation_.isAnimating()){var Q=A.offsetTop-24;A=A.offsetTop+A.offsetHeight+24;var b=this.getPageScrollingElement(),f=this.getScrollTop(),a=f+b.clientHeight-56;if(Q<f+56)Q-=56;else if(A>a)Q=A-b.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Q),500)}},
onYtSignalActionScrollToComments:function(){var A=this.hostElement.querySelector("#comments");if(A&&!this.scrollToAnimation_.isAnimating()){A=A.offsetTop-56-24;if(_.K("kevlar_comment_teaser_scroll_to_midpoint")&&(A-=_.J3().height/3,A<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtEngagementPanelVisibleChanged:function(A,Q,b){this.active&&this.trackEngagementPanelVisibility&&!_.SpV.includes(b)&&(Q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(b),Q!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&Q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(b),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeFullBleedPlayer:function(A,Q){return A||Q},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,Q){return!A&&Q},
computeWatchWhilePanelsActive:function(A,Q){return A||Q},
computeNoBorderOnChat:function(A){return _.K("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,Q){return A&&!Q},
computePanelExpanded:function(A,Q,b){return A||Q||b},
onChangeMarkersVisibility:function(A){_.GG(this).getPlayerPromise().then(function(Q){var b;(b=Q.changeMarkerVisibility)==null||b.call(Q,_.V(A,_.wc).isVisible||!1,_.V(A,_.wc).entityKeys||[],_.V(A,_.wc).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.QK().dispatch(_.XGd(A.detail))},
provideRenderingData:function(A,Q){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=Q;break;case "PRIMARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=Q);this.videoPrimaryInfoRendererValue=Q==null?void 0:Q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.K("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=Q);this.videoSecondaryInfoRendererValue=Q==null?void 0:Q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
Q;break;case "CLARIFICATION":this.clarifyBoxValue=Q;break;case "LIVE_CHAT":this.conversationBar=Q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=Q;break;case "PLAYLIST":this.externalPlaylistData_=Q!=null?Q:{};break;case "MERCH_SHELF":this.merchShelfValue=Q==null?void 0:Q.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=Q;break;case "OFFER_MODULE":this.offerModule=Q;break;case "LIMITED_STATE":this.limitedStateValue=Q;break;case "DONATION_SHELF":this.donation=Q;break;
case "ALERTS":this.alertsValue=Q;break;case "COMMENTS":this.comments=Q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=Q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=Q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=Q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=Q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=Q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=Q}},
toggleCinematicsActive:function(A){this.cinematicsActive=A},
isMiniplayerActive:function(){return _.fJ().resolve(_.zb).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(A){return Yp$.map(function(Q){return A.find(function(b){var f;return(b==null?void 0:(f=b.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===Q})}).filter(function(Q){return Q!==void 0})},
getNonLearningJourneyEngagementPanels:function(A){return A.filter(function(Q){var b;return!Yp$.includes((Q==null?void 0:(b=Q.engagementPanelSectionListRenderer)==null?void 0:b.targetId)||"")})}}];var DqT;var m8=function(){var A=_.q.apply(this,arguments)||this;A.flexy=!0;A.learningJourney=!0;A.roundedInfoPanel=!0;A.viewTransitionEnabled=_.K("enable_player_resize_transition");A.smallerChatMinHeight=_.K("live_chat_smaller_min_height");A.cinematicTheaterMode=_.K("web_cinematic_theater_mode");A.transparentTheaterMode=_.K("web_transparent_theater_mode");A.cinematicFullscreen=_.K("web_cinematic_fullscreen");A.useLargerMaxPlayerValue=_.K("kevlar_flexy_use_larger_player_value");A.cinematicFullscreenV2=_.K("web_cinematic_fullscreen_v2");
A.isDarkTheme=document.documentElement.hasAttribute("dark");A.theaterLargerPlayer=_.K("web_watch_theater_larger_player");A.defaultCollapsePlaylist=_.K("web_watch_default_collapse_playlist");A.enableCanvasLayout=_.K("web_enable_canvas_on_learning_journey");return A};
_.O(m8,_.q);_.d=m8.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.d.ready=function(){var A=this,Q=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",Q);this.secondary.addEventListener("scroll",Q)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(A){_.K("web_watch_update_narrow_width_killswitch")||_.QK().dispatch(_.Dfw(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.d.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.d.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22963_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22963_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Qr.Object.defineProperties(m8.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 A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var Q=0;Q<this.data.pageVisualEffects.length;Q++)if(A=_.V(this.data.pageVisualEffects[Q],_.oe))return Q=void 0,(Q=A.config)==null?void 0:Q.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.learningJourneyEngagementPanels)==null?void 0:A.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var A,Q=(A=this.learningJourneyEngagementPanels)==null?void 0:A.find(function(l){var J;return(l==null?void 0:(J=l.engagementPanelSectionListRenderer)==null?void 0:J.panelIdentifier)==="learning-journey-engagement-panel"});
if(Q){var b,f,a,T,G,p,P,U,L;if(A=(U=((P=(G=((T=Q==null?void 0:(b=Q.engagementPanelSectionListRenderer)==null?void 0:(f=b.content)==null?void 0:(a=f.sectionListRenderer)==null?void 0:a.contents)!=null?T:[])[0])==null?void 0:(p=G.itemSectionRenderer)==null?void 0:p.contents)!=null?P:[])[0])==null?void 0:(L=U.accordionViewModel)==null?void 0:L.onTitleTap){var M=_.ue(A);if(M)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.J8.instance.resolveCommand(M)}}}}}}});
_.Qr.Object.defineProperties(m8,{template:{configurable:!0,enumerable:!0,get:function(){if(DqT===void 0){var A=document.createElement("template");_.k(A,'\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" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n  <div id="canvas" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n    <div id="canvas-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="browse-content" 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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);DqT=A}A=DqT;return A}}});
m8.prototype.updateMiniplayerIsActiveValue=m8.prototype.updateMiniplayerIsActiveValue;m8.prototype.updateScrollTopValue=m8.prototype.updateScrollTopValue;m8.prototype.updateFullscreenValue=m8.prototype.updateFullscreenValue;m8.prototype.updateTheaterValue=m8.prototype.updateTheaterValue;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],m8.prototype,"ytComponentBehavior",void 0);
_.E([_.I(yzY.YtdLearningJourneyWatchBehavior),_.c("design:type",Object)],m8.prototype,"ytdWatchBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],m8.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],m8.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],m8.prototype,"playerData",void 0);_.E([_.C(),_.c("design:type",Object)],m8.prototype,"browseData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"flexy",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"learningJourney",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"roundedInfoPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"viewTransitionEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"smallerChatMinHeight",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"cinematicTheaterMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"transparentTheaterMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"cinematicFullscreen",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"useLargerMaxPlayerValue",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"cinematicFullscreenV2",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"isDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m8.prototype,"theaterLargerPlayer",void 0);_.E([_.C(),_.c("design:type",Object)],m8.prototype,"defaultCollapsePlaylist",void 0);_.E([_.C(),_.c("design:type",Object)],m8.prototype,"enableCanvasLayout",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("playerData","browseData","enableCanvasLayout"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],m8.prototype,"showBrowseResponse",null);_.E([_.C({reflectToAttribute:!0}),_.H("playerData","enableCanvasLayout"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],m8.prototype,"showWatchResponse",null);_.E([_.C({selector:_.zZ}),_.c("design:type",Object)],m8.prototype,"theaterValue",void 0);
_.E([_.C({selector:_.w_}),_.c("design:type",Object)],m8.prototype,"fullscreenValue",void 0);_.E([_.C({selector:_.Il}),_.c("design:type",Object)],m8.prototype,"scrollTopValue",void 0);_.E([_.C({selector:_.WO}),_.c("design:type",Object)],m8.prototype,"miniplayerIsActiveValue",void 0);_.E([_.V1("#ytd-plj-player"),_.c("design:type",HTMLElement)],m8.prototype,"ytdPlayer",void 0);_.E([_.V1("#playlist"),_.c("design:type",HTMLElement)],m8.prototype,"JSC$22963_ytdPlaylistPanelRenderer",void 0);
_.E([_.lW("ytd-comments"),_.c("design:type",HTMLElement)],m8.prototype,"ytdComments",void 0);_.E([_.V1("#primary"),_.c("design:type",HTMLElement)],m8.prototype,"primary",void 0);_.E([_.V1("#secondary"),_.c("design:type",HTMLElement)],m8.prototype,"secondary",void 0);_.E([_.V1("#player-container"),_.c("design:type",HTMLElement)],m8.prototype,"playerContainer",void 0);_.E([_.V1("#cinematics"),_.c("design:type",HTMLElement)],m8.prototype,"JSC$22963_cinematics",void 0);
_.E([_.iN("theaterValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m8.prototype,"updateTheaterValue",null);_.E([_.iN("fullscreenValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m8.prototype,"updateFullscreenValue",null);_.E([_.iN("scrollTopValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m8.prototype,"updateScrollTopValue",null);
_.E([_.iN("miniplayerIsActiveValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m8.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],m8.prototype,"cinematicLightTheme",null);_.E([_.C({reflectToAttribute:!0}),_.H("learningJourneyEngagementPanels"),_.c("design:type",Object),_.c("design:paramtypes",[])],m8.prototype,"hasLearningJourneyPanels",null);
_.E([_.H("learningJourneyEngagementPanels"),_.c("design:type",Object),_.c("design:paramtypes",[])],m8.prototype,"backButtonData",null);_.E([_.h({is:"ytd-watch-learning-journey"})],m8);_.Uk.registerService(_.biA,m8);
_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("Tm0L3c");
var hgw;var WRn;var vQT=function(){return _.q.apply(this,arguments)||this};
_.O(vQT,_.q);_.E([_.h({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],vQT);
_.W(vQT,"ytd-ghost-comments-renderer",function(){if(WRn===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);WRn=A}A=WRn;return A},{mode:1});var EQx;var xqs=function(){return _.q.apply(this,arguments)||this};
_.O(xqs,_.q);_.E([_.h({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],xqs);
_.W(xqs,"ytd-ghost-watch-metadata-renderer",function(){if(EQx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);EQx=A}A=EQx;return A},{mode:1});var sH=function(){var A=_.q.apply(this,arguments)||this;A.ghostGridRenderer={rows:6};A.roundedInfoPanel=!0;A.hideOfferModules=!0;A.smallerChatMinHeight=_.K("live_chat_smaller_min_height");A.cinematicTheaterMode=_.K("web_cinematic_theater_mode");A.transparentTheaterMode=_.K("web_transparent_theater_mode");A.darkerPanels=_.K("web_watch_darker_panels");A.cinematicFullscreen=_.K("web_cinematic_fullscreen");A.cinematicFullscreenV2=_.K("web_cinematic_fullscreen_v2");A.isDarkTheme=document.documentElement.hasAttribute("dark");
return A};
_.O(sH,_.q);_.d=sH.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.d.ready=function(){var A=this,Q=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",Q);this.secondary.addEventListener("scroll",Q)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(A){this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.d.updateShownItemsFromBinding=function(A){_.K("swatcheroo_direct_use_rich_grid")||(A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value)};
_.d.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22951_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22951_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Qr.Object.defineProperties(sH.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var Q=0;Q<this.data.pageVisualEffects.length;Q++)if(A=_.V(this.data.pageVisualEffects[Q],_.oe))return Q=void 0,(Q=A.config)==null?void 0:Q.enableInLightTheme;return!1}}});
sH.prototype.updateMiniplayerIsActiveValue=sH.prototype.updateMiniplayerIsActiveValue;sH.prototype.updateScrollTopValue=sH.prototype.updateScrollTopValue;sH.prototype.updateFullscreenValue=sH.prototype.updateFullscreenValue;sH.prototype.updateTheaterValue=sH.prototype.updateTheaterValue;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],sH.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.gQ$.YtdWatchBehavior),_.c("design:type",Object)],sH.prototype,"ytdWatchBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],sH.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sH.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],sH.prototype,"ghostGridRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],sH.prototype,"playerData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"roundedInfoPanel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"hideOfferModules",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"smallerChatMinHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"cinematicTheaterMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"transparentTheaterMode",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"darkerPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"cinematicFullscreen",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"cinematicFullscreenV2",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sH.prototype,"isDarkTheme",void 0);_.E([_.C({selector:_.zZ}),_.c("design:type",Object)],sH.prototype,"theaterValue",void 0);
_.E([_.C({selector:_.w_}),_.c("design:type",Object)],sH.prototype,"fullscreenValue",void 0);_.E([_.C({selector:_.Il}),_.c("design:type",Object)],sH.prototype,"scrollTopValue",void 0);_.E([_.C({selector:_.WO}),_.c("design:type",Object)],sH.prototype,"miniplayerIsActiveValue",void 0);_.E([_.V1("#ytd-player"),_.c("design:type",HTMLElement)],sH.prototype,"ytdPlayer",void 0);_.E([_.V1("#playlist"),_.c("design:type",HTMLElement)],sH.prototype,"JSC$22951_ytdPlaylistPanelRenderer",void 0);
_.E([_.V1("#ytd-comments"),_.c("design:type",HTMLElement)],sH.prototype,"ytdComments",void 0);_.E([_.V1("#primary"),_.c("design:type",HTMLElement)],sH.prototype,"primary",void 0);_.E([_.V1("#secondary"),_.c("design:type",HTMLElement)],sH.prototype,"secondary",void 0);_.E([_.V1("#player-container"),_.c("design:type",HTMLElement)],sH.prototype,"playerContainer",void 0);_.E([_.V1("#cinematics"),_.c("design:type",HTMLElement)],sH.prototype,"JSC$22951_cinematics",void 0);
_.E([_.iN("theaterValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sH.prototype,"updateTheaterValue",null);_.E([_.iN("fullscreenValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sH.prototype,"updateFullscreenValue",null);_.E([_.iN("scrollTopValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sH.prototype,"updateScrollTopValue",null);
_.E([_.iN("miniplayerIsActiveValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sH.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],sH.prototype,"cinematicLightTheme",null);
_.W(sH,"ytd-watch-grid",function(){if(hgw===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);hgw=A}A=hgw;return A},{mode:2});_.Uk.registerService(_.Qri,sH);
_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("CF909");
var egi;var Nc=function(){var A=_.q.apply(this,arguments)||this;A.flexy=!0;A.roundedInfoPanel=!0;A.viewTransitionEnabled=_.K("enable_player_resize_transition");A.smallerChatMinHeight=_.K("live_chat_smaller_min_height");A.cinematicTheaterMode=_.K("web_cinematic_theater_mode");A.transparentTheaterMode=_.K("web_transparent_theater_mode");A.cinematicFullscreen=_.K("web_cinematic_fullscreen");A.useLargerMaxPlayerValue=_.K("kevlar_flexy_use_larger_player_value");A.isDarkTheme=document.documentElement.hasAttribute("dark");
A.defaultCollapsePlaylist=_.K("web_watch_default_collapse_playlist");A.retroModeReduxValue=!1;return A};
_.O(Nc,_.q);_.d=Nc.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateRetroModeReduxValue=function(){_.K("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.d.ready=function(){var A=this,Q=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",Q);this.secondary.addEventListener("scroll",Q)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(A){_.K("web_watch_update_narrow_width_killswitch")||_.QK().dispatch(_.Dfw(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.d.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.d.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22946_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22946_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.Qr.Object.defineProperties(Nc.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var Q=0;Q<this.data.pageVisualEffects.length;Q++)if(A=_.V(this.data.pageVisualEffects[Q],_.oe))return Q=void 0,(Q=A.config)==null?void 0:Q.enableInLightTheme;return!1}}});
_.Qr.Object.defineProperties(Nc,{template:{configurable:!0,enumerable:!0,get:function(){if(egi===void 0){var A=document.createElement("template");_.k(A,'\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>\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);egi=A}A=egi;return A}}});
Nc.prototype.updateRetroModeReduxValue=Nc.prototype.updateRetroModeReduxValue;Nc.prototype.updateScrollTopValue=Nc.prototype.updateScrollTopValue;Nc.prototype.updateFullscreenValue=Nc.prototype.updateFullscreenValue;Nc.prototype.updateTheaterValue=Nc.prototype.updateTheaterValue;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Nc.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Nc.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.gQ$.YtdWatchBehavior),_.c("design:type",Object)],Nc.prototype,"ytdWatchBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Nc.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Nc.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Nc.prototype,"playerData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"flexy",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"roundedInfoPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"viewTransitionEnabled",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"smallerChatMinHeight",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"cinematicTheaterMode",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"transparentTheaterMode",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"cinematicFullscreen",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"useLargerMaxPlayerValue",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Nc.prototype,"isDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],Nc.prototype,"defaultCollapsePlaylist",void 0);
_.E([_.C({selector:_.zZ}),_.c("design:type",Object)],Nc.prototype,"theaterValue",void 0);_.E([_.C({selector:_.w_}),_.c("design:type",Object)],Nc.prototype,"fullscreenValue",void 0);_.E([_.C({selector:_.Il}),_.c("design:type",Object)],Nc.prototype,"scrollTopValue",void 0);_.E([_.C({selector:_.WO}),_.c("design:type",Object)],Nc.prototype,"miniplayerIsActive",void 0);_.E([_.C({selector:function(A){return A.watch.isWatchRetroMode}}),
_.c("design:type",Object)],Nc.prototype,"retroModeReduxValue",void 0);_.E([_.lW("ytd-player"),_.c("design:type",HTMLElement)],Nc.prototype,"ytdPlayer",void 0);_.E([_.V1("#playlist"),_.c("design:type",HTMLElement)],Nc.prototype,"JSC$22946_ytdPlaylistPanelRenderer",void 0);_.E([_.lW("ytd-comments"),_.c("design:type",HTMLElement)],Nc.prototype,"ytdComments",void 0);_.E([_.V1("#primary"),_.c("design:type",HTMLElement)],Nc.prototype,"primary",void 0);
_.E([_.V1("#secondary"),_.c("design:type",HTMLElement)],Nc.prototype,"secondary",void 0);_.E([_.V1("#player-container"),_.c("design:type",HTMLElement)],Nc.prototype,"playerContainer",void 0);_.E([_.V1("#below"),_.c("design:type",HTMLElement)],Nc.prototype,"below",void 0);_.E([_.V1("#cinematics"),_.c("design:type",HTMLElement)],Nc.prototype,"JSC$22946_cinematics",void 0);
_.E([_.iN("theaterValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Nc.prototype,"updateTheaterValue",null);_.E([_.iN("fullscreenValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Nc.prototype,"updateFullscreenValue",null);_.E([_.iN("scrollTopValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Nc.prototype,"updateScrollTopValue",null);
_.E([_.iN("retroModeReduxValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Nc.prototype,"updateRetroModeReduxValue",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Nc.prototype,"cinematicLightTheme",null);_.E([_.h({is:"ytd-watch-flexy"})],Nc);_.Uk.registerService(_.Ag9,Nc);
_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("nmfa2d");
var u_p;var c$=function(){var A=_.q.apply(this,arguments)||this;A.hidden=!1;A.errorScreen=null;A.playlistData={};return A};
_.O(c$,_.q);_.d=c$.prototype;_.d.getPlayer=function(){return this.ytdPlayer};
_.d.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:_.AD(["aa","eocs"])}}};
_.d.onActiveChanged=function(){_.QK().dispatch(_.C4$(this.ytPageBehavior.active))};
_.d.playerDataChanged=function(){var A;(A=this.watchController)==null||A.setPlayerResponse(this.playerData)};
_.d.dataChanged=function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data)};
_.d.sizeChanged=function(){var A,Q;(Q=(A=this.metadata).resize)==null||Q.call(A)};
_.d.attached=function(){this.watchController=new _.EH(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.d.detached=function(){_.AT(this.watchController);this.watchController=void 0};
_.d.getPlayerContainer=function(){return this.playerContainer};
_.d.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.d.provideRenderingData=function(A,Q){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=Q;break;case "ERROR_SCREEN":this.errorScreen=Q!=null?Q:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=Q;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=Q;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=Q;break;case "RICH_METADATA":this.richMetadataRowContainer=Q;break;case "CLARIFICATION":this.clarificationData=Q;break;case "PLAYLIST":this.playlistData=
Q!=null?Q:{};break;case "MERCH_SHELF":this.merchShelf=Q;break;case "TICKET_SHELF":this.ticketShelf=Q;break;case "LIMITED_STATE":this.limitedState=Q;break;case "DONATION_SHELF":this.donationShelf=Q;break;case "ALERTS":this.alerts=Q}};
_.Qr.Object.defineProperties(c$.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return!this.hidden&&!!((A=this.data)==null?0:(Q=A.contents)==null?0:(b=Q.twoColumnWatchNextResults)==null?0:b.conversationBar)}}});
c$.prototype.sizeChanged=c$.prototype.sizeChanged;c$.prototype.dataChanged=c$.prototype.dataChanged;c$.prototype.playerDataChanged=c$.prototype.playerDataChanged;c$.prototype.onActiveChanged=c$.prototype.onActiveChanged;_.E([_.I(_.Re.YtPageBehavior),_.c("design:type",Object)],c$.prototype,"ytPageBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],c$.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],c$.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"playerData",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],c$.prototype,"hidden",void 0);_.E([_.V1("#ytd-player"),_.c("design:type",HTMLElement)],c$.prototype,"ytdPlayer",void 0);_.E([_.V1("#player-container"),_.c("design:type",HTMLElement)],c$.prototype,"playerContainer",void 0);_.E([_.V1("#metadata"),_.c("design:type",Object)],c$.prototype,"metadata",void 0);_.E([_.V1("#playlist"),_.c("design:type",HTMLElement)],c$.prototype,"playlistPanel",void 0);
_.E([_.C({selector:_.fUY,reflectToAttribute:!0}),_.c("design:type",Object)],c$.prototype,"fixie",void 0);_.E([_.C({selector:_.bFV,reflectToAttribute:!0}),_.c("design:type",Object)],c$.prototype,"singleColumn",void 0);_.E([_.C({selector:function(A){return _.zZ(A)&&!_.w_(A)},
reflectToAttribute:!0}),_.c("design:type",Object)],c$.prototype,"theater",void 0);_.E([_.C({selector:_.w_,reflectToAttribute:!0}),_.c("design:type",Object)],c$.prototype,"fullscreen",void 0);_.E([_.C({selector:_.IDc}),_.c("design:type",Object)],c$.prototype,"windowSize",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"singleColumnContents",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"errorScreen",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"playlistData",void 0);
_.E([_.C(),_.c("design:type",Object)],c$.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"richMetadataRowContainer",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"clarificationData",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"ticketShelf",void 0);
_.E([_.C(),_.c("design:type",Object)],c$.prototype,"merchShelf",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"donationShelf",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"limitedState",void 0);_.E([_.C(),_.c("design:type",Object)],c$.prototype,"alerts",void 0);_.E([_.H("playlistData"),_.c("design:type",Object),_.c("design:paramtypes",[])],c$.prototype,"hasPlaylistData",null);
_.E([_.H("data","hidden"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],c$.prototype,"hasChat",null);_.E([_.iN("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],c$.prototype,"onActiveChanged",null);_.E([_.iN("playerData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],c$.prototype,"playerDataChanged",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],c$.prototype,"dataChanged",null);_.E([_.iN("windowSize","singleColumn"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],c$.prototype,"sizeChanged",null);
_.W(c$,"ytd-watch-fixie",function(){if(u_p===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);u_p=A}A=u_p;return A},{mode:1});_.Uk.registerService(_.mdb,c$);
_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("xwEKAe");
var $pO=function(A){return _.mk(A)?A.getAttribute("jsname")==="coFSxe":!1},N1n=function(A,Q){Q.id||(Q.id="ow"+_.YC(Q));
A.setAttribute("jsowner",Q.id);A.__owner=Q;var b=_.vl(Q,$pO);b&&(_.LSK.has(b)||_.LSK.set(b,[]),_.LSK.get(b).push(A));(b=_.U3$.get(Q))||_.U3$.set(Q,b=[]);b.includes(A)||b.push(A);Q.setAttribute("__IS_OWNER",!0)},sCK=function(){var A=_.O49(1);
A=_.sO(A,_.qSb);if(!(_.V7J(A)||A[_.Z1Y]&&!A.__hasBeenSet))return A.value},mpx=function(A){var Q=_.nD();
if(Q.getFlag(202))Q=Q.getFlag(201);else{var b;Q=(A==null?void 0:(b=A.config)==null?void 0:b.settingOnByDefault)!==void 0?A.config.settingOnByDefault:!_.K("web_shorts_cinematics_disabled_by_default")}return Q},ALt=function(A){var Q=_.nD();
_.k_(0,201,A);_.k_(0,202,!0);Q.save()},QVK=function(A){return(A=_.GKF(A))?_.pcW(A):0},bqF=function(A){return A.shorts.isSmallScreenSqueezeback},fzt=function(A){return A.shorts.isPlaybackStarted},dcs=function(A){var Q=_.O49(2),b=new Set;
_.Cz(function(){return void b.forEach(function(f){return void f()})});
return function(f){var a=_.Nu(Q);try{var T=azt(TcM(A),f);b.add(T);return function(){T();b.delete(T)}}finally{_.Nu(a)}}},F8F=function(A){var Q=A.children;
var b=A.root;_.CH(function(){var f=dcs(b)(Q);_.Cz(f)});
return document.createTextNode("")},azt=function(A,Q){var b=G6q(A);
(A=sCK())&&N1n(b,A);Q=_.F(_.Ul9(Q,!0));A=Q.next().value;var f=Q.next().value;b.append.apply(b,_.ri(A));return function(){f();b.remove()}},TcM=function(A){if(typeof A==="string")return A=document.querySelector(A),_.LLq(A),A;
if(_.TV(A)&&A.nodeType===Node.ELEMENT_NODE)return A;if(!A.__value&&!A.__optional){var Q=_.YvF.USE_ELEMENT_NOT_ASSIGNED(A.__expectedTagName);A.__hasErrored=!0;throw Q;}return A.value},G6q=function(A){var Q=document.createElementNS(A.namespaceURI,A.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return A.appendChild(Q)},Bcr=function(A,Q,b,f){A=Q-A;
b=f-b;return Math.sqrt(A*A+b*b)},p$F=function(A,Q){A&&_.fJ().resolve(_.de).resolveCommand(A,{forceClickLogging:!0,
form:{element:Q}})},PqK=function(A,Q,b,f){A=Q-A;
b=f-b;return Math.sqrt(A*A+b*b)},X$q=function(A,Q){A&&_.fJ().resolve(_.de).resolveCommand(A,{forceClickLogging:!0,
form:{element:Q}})},SHN=function(){return _.fJ().resolve(_.H3).dismissedIndices},UcM=function(A){return _.G7({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:A}})},L8q=function(A){return _.G7({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:A}})},TE=function(A){return _.G7({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:A}})};var d3=function(A,Q){if(A instanceof d3)this.array_=A.array_;else{var b;if(b=_.ce(A))a:{for(var f=b=0;f<A.length;f++){if(!_.ce(A[f])||b>0&&A[f].length!=b){b=!1;break a}for(var a=0;a<A[f].length;a++)if(typeof A[f][a]!=="number"){b=!1;break a}b==0&&(b=A[f].length)}b=b!=0}if(b)this.array_=_.xC(A);else if(A instanceof _.iw)this.array_=M9n(A.height,A.width);else if(typeof A==="number"&&typeof Q==="number"&&A>0&&Q>0)this.array_=M9n(A,Q);else throw Error("no");}this.size_=new _.iw(this.array_[0].length,
this.array_.length)},lzn=function(A,Q,b){for(var f=0;f<A.getSize().height;f++)for(var a=0;a<A.getSize().width;a++)Q.call(b,A.array_[f][a],f,a,A)},K8N=function(A,Q){var b=new d3(A.getSize());
lzn(A,function(f,a,T){b.array_[a][T]=Q.call(void 0,f,a,T,A)});
return b},M9n=function(A,Q){for(var b=[],f=0;f<A;f++){b[f]=[];
for(var a=0;a<Q;a++)b[f][a]=0}return b};
d3.prototype.add=function(A){if(!_.OLs(this.size_,A.getSize()))throw Error("oo");return K8N(this,function(Q,b,f){return Q+A.array_[b][f]})};
d3.prototype.equals=function(A,Q){if(this.size_.width!=A.size_.width||this.size_.height!=A.size_.height)return!1;Q=Q||0;for(var b=0;b<this.size_.height;b++)for(var f=0;f<this.size_.width;f++)if(!_.Vst(this.array_[b][f],A.array_[b][f],Q))return!1;return!0};
d3.prototype.getSize=function(){return this.size_};
var Ff=function(A,Q,b){return Q>=0&&Q<A.size_.height&&b>=0&&b<A.size_.width?A.array_[Q][b]:null};
d3.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var GE=function(A,Q,b,f){if(!(Q>=0&&Q<A.size_.height&&b>=0&&b<A.size_.width))throw Error("po`"+Q+"`"+b+"`"+A.size_.height+"`"+A.size_.width);A.array_[Q][b]=f};
d3.prototype.multiply=function(A){if(A instanceof d3){if(this.size_.width!=A.getSize().height)throw Error("qo");return iqs(this,A)}if(typeof A==="number")return JLN(this,A);throw Error("ro");};
var iqs=function(A,Q){var b=new d3(A.size_.height,Q.getSize().width);lzn(b,function(f,a,T){for(var G=f=0;G<this.size_.width;G++)f+=Ff(this,a,G)*Ff(Q,G,T);GE(b,a,T,f)},A);
return b},JLN=function(A,Q){return K8N(A,function(b){return b*Q})};var V9M=new _.fU("inlineSurveyRenderer");var OqO=new _.fU("interstitialViewModel");var nPF=new _.fU("reelNavigateCommand");var k6N=new _.fU("reelNonVideoContentDismissalCommand");var Izn=new _.fU("showReelsCommentsOverlayCommand");var HqK=new _.fU("shortsSuggestedActionViewModel");var CqK=new _.fU("videoInteractionPopUpRenderer");var qHr;var oPx;var t9K;var B0=function(){var A=_.q.apply(this,arguments)||this;A.ctaVisualElement=null;A.currentCsn=null;return A};
_.O(B0,_.q);_.d=B0.prototype;_.d.onDataChanged=function(){this.maybeLogShows()};
_.d.computeButtonShape=function(){var A=this;if(this.data)return{buttonText:_.mO(this.data.text),state:"active",onTap:function(){A.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.d.maybeCreateCtaVe=function(){var A;if((A=this.data)!=null&&A.badgeInteractionLogging){var Q;if(A=(Q=this.data.badgeInteractionLogging)==null?void 0:Q.trackingParams)this.ctaVisualElement=_.t8(A)}};
_.d.maybeLogClicks=function(){this.currentCsn=_.WR(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.$_(this.currentCsn,this.ctaVisualElement)};
_.d.maybeLogShows=function(){this.currentCsn=_.WR(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Y_(this.currentCsn,[this.ctaVisualElement])};
_.d.onTap=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var Q;this.ytComponentBehavior.resolveCommand((Q=this.data)==null?void 0:Q.onClickCommand);this.maybeLogClicks()}};
B0.prototype.onDataChanged=B0.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],B0.prototype,"ytComponentBehavior",void 0);_.E([_.C({}),_.c("design:type",Object)],B0.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B0.prototype,"onDataChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],B0);
_.W(B0,"ytd-shopping-overlay-badge-renderer",function(){if(t9K!==void 0)return t9K;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return t9K=A},{mode:1});_.pE(_.HsK,"reel-sound-metadata-view-model",{props:{data:_.Bz,overlayDensity:_.Bz}});_.pE(_.V2O,"player-disclosure-view-model",{props:{data:_.Qf}});_.pE(_.kiL,"pivot-button-view-model",{props:{data:_.Bz,className:_.Bz}});_.pE(_.Iqp,"reel-action-bar-view-model",{props:{data:_.Qf,buttonShapeOverrideables:_.Qf}});_.pE(_.aP(function(A){function Q(){var pF,Ub,Ob,I9,iy=(Ub=_.V((pF=D())==null?void 0:pF.command,_.CY))==null?void 0:(Ob=Ub.item)==null?void 0:(I9=Ob.notificationTextRenderer)==null?void 0:I9.successResponseText;if(iy)_.pD(f.value,"yt-open-popup-action",[_.fT(iy),f.value]);else if(w())p$F(w(),n.value);else{var wW;p$F((wW=D())==null?void 0:wW.command,n.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var b=A.data;var f=_.st("yt-player-overlay-video-interactions");A=_.F(_.pz("0px",void 0,"O1N7Ce"));var a=A.next().value,T=A.next().value;A=_.F(_.pz("0px",void 0,"tTDBdb"));var G=A.next().value,p=A.next().value;A=_.F(_.pz(0,void 0,"fh8Zkc"));var P=A.next().value,U=A.next().value;A=_.F(_.pz(0,void 0,"CUjqGd"));var L=A.next().value,M=A.next().value,l=function(){var pF;if(((pF=_.Jy())==null?void 0:pF.getPlayerState())!==-1){f.value.style.display="inherit";var Ub;(Ub=_.Jy())==null||Ub.removeEventListener("onStateChange",
l)}J()},J=function(){var pF=document.querySelector("video");
if(pF){U(pF.getBoundingClientRect().width);M(pF.getBoundingClientRect().height);var Ub;T((pF==null?void 0:(Ub=pF.style)==null?void 0:Ub.left)||"0px");var Ob;p((pF==null?void 0:(Ob=pF.style)==null?void 0:Ob.top)||"0px")}};
_.H_(function(){var pF,Ub,Ob;if(((pF=_.Jy())==null?void 0:pF.getPlayerState())===-1&&Math.round(((Ob=(Ub=_.Jy())==null?void 0:Ub.getVideoAspectRatio())!=null?Ob:0)*100)!==Math.round(P()/L()*100)){f.value.style.display="none";var I9,iy;M(P()/((iy=(I9=_.Jy())==null?void 0:I9.getVideoAspectRatio())!=null?iy:1))}},"VB5m5");
_.CH(function(){var pF;(pF=_.Jy())==null||pF.addEventListener("onStateChange",l);window.addEventListener("resize",J);J();var Ub,Ob,I9;if((I9=(Ub=b())==null?void 0:(Ob=Ub.regions)==null?void 0:Ob[0])==null||!I9.transformationMatrix)throw Error("vo");var iy;if((iy=b())==null?0:iy.trackingParams){var wW;_.IP().graftServerVe((wW=b().trackingParams)!=null?wW:"")}_.Cz(function(){var h4;(h4=_.Jy())==null||h4.removeEventListener("onStateChange",l);window.removeEventListener("resize",J)})});
var n=_.st("svg"),t=_.F(_.pz(!1,void 0,"TPsTce"));A=t.next().value;var g=t.next().value,e=_.F(_.pz(!1,void 0,"Uz6CHf"));t=e.next().value;var x=e.next().value,D=function(){var pF;return _.V((pF=b())==null?void 0:pF.popUp,CqK)},w=function(){var pF;
return(pF=b())==null?void 0:pF.command},u=function(){return _.V(w(),_.C6)!==void 0};
e=_.IY(function(){Q();return!1});
var y={},a9={};return _.X("yt-player-overlay-video-interactions",{el:f},_.X("svg",{"on:mouseover":_.IY(function(){u()&&g(!0);x(!0);return!1}),
"on:mouseout":_.IY(function(){g(!1);x(!1);return!1}),
"on:keydown":_.IY(function(pF){pF.key==="Enter"&&Q();return!1}),
"on:focus":_.IY(function(){u()&&g(!0);return!1}),
"on:blur":_.IY(function(){u()&&g(!1);return!1}),
el:n,tabindex:0,"aria-label":function(){var pF;return(pF=b())==null?void 0:pF.a11yString},
id:"player-overlay-video-interaction-svg",class:_.O4("yt-player-overlay-video-interactions__interactions-svg",(y["yt-player-overlay-video-interactions__interactions-svg-hover"]=A,y),(a9["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=t,a9)),role:"button",style:function(){var pF,Ub,Ob,I9=(Ob=(pF=b())==null?void 0:(Ub=pF.regions)==null?void 0:Ub[0].transformationMatrix)!=null?Ob:[];pF=P();Ub=L();Ob=[];for(var iy=0,wW=-1;iy<I9.length;iy++)iy%3===0&&(wW++,Ob[wW]=[]),Ob[wW].push(I9[iy]);
I9=new d3(Ob);Ob=new d3([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Ob=I9.multiply(Ob);I9=new d3([[0,0],[0,0],[0,0],[0,0]]);for(iy=0;iy<Ob.getSize().width;iy++){wW=Ff(Ob,0,iy);var h4=Ff(Ob,1,iy);if(wW===null||h4===null)throw Error("uo`"+(iy+1).toString());GE(I9,iy,0,wW*pF);GE(I9,iy,1,h4*Ub)}pF=Ff(I9,0,0);iy=Ff(I9,1,0);Ub=Ff(I9,0,1);wW=Ff(I9,1,1);if(pF===null||iy===null||Ub===null||wW===null)throw Error("so");Ob=Bcr(pF,iy,Ub,wW);h4=Ff(I9,3,0);I9=Ff(I9,3,1);if(h4===null||I9===null)throw Error("to");I9=Bcr(pF,
h4,Ub,I9);wW=(Number((wW*-1).toFixed(2))-Number((Ub*-1).toFixed(2)))/(Number(iy.toFixed(2))-Number(pF.toFixed(2)));h4=Math.atan(wW)*180/Math.PI;iy=wW===Number.POSITIVE_INFINITY?-90:wW===Number.NEGATIVE_INFINITY?90:Object.is(wW,-0)?180:wW===0?0:wW>0?h4*-1:pF<iy?h4*-1:Math.abs(h4)+180;return"left:calc("+pF+"px + "+a()+"); top:calc("+(Ub+"px + "+G()+"); width:")+(Ob+"px; height:")+(I9+"px; transform:rotate(")+(iy+"deg);")},
"on:click":e}))},"Aj"),"yt-player-overlay-video-interactions",{props:{data:_.Qf}});_.pE(_.HtF,"yt-reel-metapanel-view-model",{props:{data:_.Qf,overlayDensity:_.Qf}});var rLN=_.aP(function(A){var Q=A.children;var b=A.region;A=_.F(_.pz(void 0,void 0,"rwJZyc"));var f=A.next().value,a=A.next().value;A=_.F(_.pz("0px",void 0,"H14H5c"));var T=A.next().value,G=A.next().value;A=_.F(_.pz("0px",void 0,"Mn8Uvf"));var p=A.next().value,P=A.next().value;A=_.F(_.pz(0,void 0,"QQCIqc"));var U=A.next().value,L=A.next().value;A=_.F(_.pz(0,void 0,"HyEvh"));var M=A.next().value,l=A.next().value,J=function(){var D=f();if(D){var w;if(((w=_.Jy())==null?void 0:w.getPlayerState())!==-1){D.style.display=
"inherit";var u;(u=_.Jy())==null||u.removeEventListener("onStateChange",J)}t()}},n=function(){var D=document.querySelectorAll("video");
return Array.from(D).find(function(w){var u;return w==null?void 0:(u=w.style)==null?void 0:u.width})},t=function(){var D=n();
if(D){L(D.getBoundingClientRect().width);l(D.getBoundingClientRect().height);var w;G((D==null?void 0:(w=D.style)==null?void 0:w.left)||"0px");var u;P((D==null?void 0:(u=D.style)==null?void 0:u.top)||"0px")}};
_.H_(function(){var D=f();if(D){var w,u,y;if(((w=_.Jy())==null?void 0:w.getPlayerState())===-1&&Math.round(((y=(u=_.Jy())==null?void 0:u.getVideoAspectRatio())!=null?y:0)*100)!==Math.round(U()/M()*100)){D.style.display="none";var a9,pF;l(U()/((pF=(a9=_.Jy())==null?void 0:a9.getVideoAspectRatio())!=null?pF:1))}}},"RdGxIf");
var g=function(){t()},e;
_.CH(function(){t();var D;if(!(b==null?0:(D=b())==null?0:D.transformationMatrix))throw Error("vo");var w;(w=_.Jy())==null||w.addEventListener("onStateChange",J);if(window.ResizeObserver){if(D=n())e=new ResizeObserver(g),e.observe(D)}else window.addEventListener("resize",t);_.Cz(function(){var u;(u=_.Jy())==null||u.removeEventListener("onStateChange",J);e?e.disconnect():window.removeEventListener("resize",t)})});
var x=function(){var D,w,u=(w=b==null?void 0:(D=b())==null?void 0:D.transformationMatrix)!=null?w:[];D=U();w=M();for(var y=[],a9=0,pF=-1;a9<u.length;a9++)a9%3===0&&(pF++,y[pF]=[]),y[pF].push(u[a9]);u=new d3(y);y=new d3([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y=u.multiply(y);u=new d3([[0,0],[0,0],[0,0],[0,0]]);for(a9=0;a9<y.getSize().width;a9++){pF=Ff(y,0,a9);var Ub=Ff(y,1,a9);if(pF===null||Ub===null)throw Error("uo`"+(a9+1).toString());GE(u,a9,0,pF*D);GE(u,a9,1,Ub*w)}D=Ff(u,0,0);a9=Ff(u,1,0);w=Ff(u,0,1);
pF=Ff(u,1,1);if(D===null||a9===null||w===null||pF===null)throw Error("so");y=PqK(D,a9,w,pF);Ub=Ff(u,3,0);u=Ff(u,3,1);if(Ub===null||u===null)throw Error("to");u=PqK(D,Ub,w,u);pF=(Number((pF*-1).toFixed(2))-Number((w*-1).toFixed(2)))/(Number(a9.toFixed(2))-Number(D.toFixed(2)));Ub=Math.atan(pF)*180/Math.PI;a9=pF===Number.POSITIVE_INFINITY?-90:pF===Number.NEGATIVE_INFINITY?90:Object.is(pF,-0)?180:pF===0?0:pF>0?Ub*-1:D<a9?Ub*-1:Math.abs(Ub)+180;return"left:calc("+D+"px + "+T()+"); top:calc("+(w+"px + "+
p()+"); width:")+(y+"px; height:")+(u+"px; transform:rotate(")+(a9+"deg);")};
return _.X(F8F,{root:"#sticker-layer"},function(){return _.X("yt-overlay-sticker",{el:_.d_(a),style:x,class:"ytOverlayStickerHost"},Q)})},"Bj");var jVr=_.aP(function(A){function Q(){var J,n,t,g,e=(n=_.V((J=P())==null?void 0:J.command,_.CY))==null?void 0:(t=n.item)==null?void 0:(g=t.notificationTextRenderer)==null?void 0:g.successResponseText;if(e)_.pD(f.value,"yt-open-popup-action",[_.fT(e),f.value]);else if(U())X$q(U(),f.value);else{var x;X$q((x=P())==null?void 0:x.command,f.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var b=A.data;var f=_.st("svg"),a=_.F(_.pz(!1,void 0,"T9Bq7b"));A=a.next().value;var T=a.next().value,G=_.F(_.pz(!1,void 0,"iMHq9c"));a=G.next().value;var p=G.next().value,P=function(){var J;return _.V((J=b())==null?void 0:J.popUp,CqK)},U=function(){var J;
return(J=b())==null?void 0:J.command},L=function(){return _.V(U(),_.C6)!==void 0};
G=_.IY(function(){Q();return!1});
var M={},l={};return _.X("svg",{"on:mouseover":_.IY(function(){L()&&T(!0);p(!0);return!1}),
"on:mouseout":_.IY(function(){T(!1);p(!1);return!1}),
"on:keydown":_.IY(function(J){J.key==="Enter"&&Q();return!1}),
"on:focus":_.IY(function(){L()&&T(!0);return!1}),
"on:blur":_.IY(function(){L()&&T(!1);return!1}),
el:f,tabindex:0,"aria-label":function(){var J;return(J=b())==null?void 0:J.a11yString},
id:"player-overlay-video-interaction-svg",class:_.O4("ytPlayerOverlayInteractionInteractionsSvg",(M.ytPlayerOverlayInteractionInteractionsSvgHover=A,M),(l.ytPlayerOverlayInteractionInteractionsSvgHideOutline=a,l)),role:"button","on:click":G})},"Dj");_.pE(_.aP(function(A){var Q=A.data;_.CH(function(){var b;if((b=Q())==null?0:b.trackingParams){var f;_.IP().graftServerVe((f=Q().trackingParams)!=null?f:"")}});
return _.X("yt-player-overlay-interaction",null,_.X(rLN,{region:function(){var b,f;return(b=Q())==null?void 0:(f=b.regions)==null?void 0:f[0]}},_.X(jVr,Object.assign({},A))))},"Cj"),"yt-player-overlay-interaction",{props:{data:_.Qf}});var pm=function(){var A=_.q.apply(this,arguments)||this;A.showScrubber=!1;A.isWatchWhileMode=!1;A.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");A.enableNewStickers=_.K("use_shorts_sticker_overlay_web");A.anchoredPanelActive=!1;A.enableLivingroomLayout=_.K("reels_enable_livingroom_layout");A.enablePlayerMetadataContainer=_.K("reels_web_enable_metadata_container");A.enableSqueezebackPanels=_.K("web_shorts_enable_squeezeback_panels");A.useAspectRatio=_.K("web_use_aspect_ratio");A.isSqueezebackActive=
!1;A.smallScreenSqueezeback=!1;A.isPlayerStarted=!1;A.overlayDensity=0;A.isOverlay=!1;A.isImmersive=!1;A.isImmersiveHorizontal=!1;A.isFullscreen=!1;A.onWindowResized=function(){var Q;A.set("isImmersive",((Q=window.getComputedStyle(A.hostElement))==null?void 0:Q.getPropertyValue("--immersive-mode-on"))==="1");A.set("isImmersiveHorizontal",A.isImmersive&&A.enableLivingroomLayout&&!A.isWatchWhileMode)};
return A};
_.O(pm,_.q);_.d=pm.prototype;_.d.updateIsOverlay=function(A){this.isOverlay=A.detail.value};
_.d.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.K("web_enable_flexible_overlay")||_.K("web_enable_format_first")||_.K("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.d.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.d.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.d.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.d.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.d.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.d.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.d.ready=function(){(_.K("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"))&&(!_.K("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Br("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.Br("reels_action_justified_content")||"flex-start")};
_.d.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.d.setFakeLoadingButtons=function(){_.K("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.JQ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.JQ("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.JQ("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.JQ("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.JQ("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()};
_.d.setEmptyOverlayMetadata=function(){_.K("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}))};
_.Qr.Object.defineProperties(pm.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoPanel)}}});
pm.prototype.onIsActiveChanged=pm.prototype.onIsActiveChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],pm.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],pm.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],pm.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],pm.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],pm.prototype,"isActive",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],pm.prototype,"hidden",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],pm.prototype,"useShortsIcon",void 0);_.E([_.C({value:"left"}),_.c("design:type",String)],pm.prototype,"buttonTooltipPosition",void 0);
_.E([_.C({value:_.K("reels_enable_livingroom_layout")?"top":"left"}),_.c("design:type",String)],pm.prototype,"likeButtonTooltipPosition",void 0);_.E([_.C({value:"none"}),_.c("design:type",String)],pm.prototype,"textTransform",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"showScrubber",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"isWatchWhileMode",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.infoPanel"),_.c("design:type",Object),_.c("design:paramtypes",[])],pm.prototype,"hasInfoPanel",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"enableAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"enableNewStickers",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"anchoredPanelActive",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"enableLivingroomLayout",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],pm.prototype,"enablePlayerMetadataContainer",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"enableSqueezebackPanels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"useAspectRatio",void 0);
_.E([_.C({selector:_.d5b,reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"isSqueezebackActive",void 0);_.E([_.C({selector:bqF,reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"smallScreenSqueezeback",void 0);_.E([_.C({selector:fzt}),_.c("design:type",Object)],pm.prototype,"isPlayerStarted",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"overlayDensity",void 0);_.E([_.C(),_.c("design:type",Object)],pm.prototype,"isOverlay",void 0);
_.E([_.C({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.c("design:type",Boolean)],pm.prototype,"isShortsOverlay",void 0);_.E([_.C(),_.c("design:type",Object)],pm.prototype,"isImmersive",void 0);_.E([_.C(),_.c("design:type",Object)],pm.prototype,"isImmersiveHorizontal",void 0);_.E([_.C({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.c("design:type",Boolean)],pm.prototype,"isShortsImmersive",void 0);
_.E([_.C({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.c("design:type",Object)],pm.prototype,"buttonOverride",void 0);_.E([_.C({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.c("design:type",Object)],pm.prototype,"actionBarButtonOverride",void 0);_.E([_.C({selector:_.Us,reflectToAttribute:!0}),_.c("design:type",Object)],pm.prototype,"isFullscreen",void 0);
_.E([_.iN("isActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],pm.prototype,"onIsActiveChanged",null);_.E([_.h({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],pm);
_.W(pm,"ytd-reel-player-overlay-renderer",function(){if(oPx!==void 0)return oPx;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return oPx=A},{mode:1});var RAl;var P0=function(){var A=_.q.apply(this,arguments)||this;A.videoDuration=0;A.playedTime=0;A.isActive=!1;A.JSC$22143_playerEvents=new Map;return A};
_.O(P0,_.q);_.d=P0.prototype;_.d.created=function(){this.JSC$22143_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22143_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.d.attached=function(){this.getPlayerAndInitializeListeners()};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22143_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.lN(this,this.onPageChanged))};
_.d.getPlayerAndInitializeListeners=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return Q=_.BL(),Q?b.yield(Q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lN(A,A.onPageChanged)),b.jumpTo(0));A.player=b.yieldResult;A.initializePlayerListeners();_.Oi(b)})};
_.d.onPageChanged=function(A){var Q=this;return _.B(function(b){if(b.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?b.return():b.yield(_.p6().getPlayerPromise(),2);Q.player=b.yieldResult;Q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lN(Q,Q.onPageChanged));_.Oi(b)})};
_.d.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22143_playerEvents)};
_.d.onVideoDataChange=function(A){var Q=this;return _.B(function(b){if(!Q.player||A.type!=="newdata")return b.return();Q.videoDuration=_.K("web_shorts_use_progress_state_for_gapless")?Q.player.getProgressState(A.playertype).seekableEnd:Q.player.getDuration(A.playertype);Q.playedTime=0;_.Oi(b)})};
_.d.onVideoProgress=function(A){var Q=this,b,f;return _.B(function(a){if(!Q.player)return a.return();b=Q.player.getPresentingPlayerType();f=Q.player.getPlayerState();Q.videoDuration=_.K("web_shorts_use_progress_state_for_gapless")?Q.player.getProgressState(b).seekableEnd:Q.player.getDuration(b);Q.playedTime=f===0?Q.videoDuration:A;_.Oi(a)})};
_.d.getPercentPlayed=function(A,Q){return A?_.vZ(Q/A,0,1):0};
_.Qr.Object.defineProperties(P0.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 A="";return A=this.videoDuration&&this.playedTime?A+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):A+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],P0.prototype,"componentBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],P0.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],P0.prototype,"player",void 0);_.E([_.C(),_.c("design:type",Object)],P0.prototype,"videoDuration",void 0);_.E([_.C(),_.c("design:type",Object)],P0.prototype,"playedTime",void 0);_.E([_.C(),_.c("design:type",Object)],P0.prototype,"isActive",void 0);
_.E([_.H("videoDuration","playedTime"),_.c("design:type",Number),_.c("design:paramtypes",[])],P0.prototype,"percentPlayed",null);_.E([_.H("videoDuration","playedTime"),_.c("design:type",Object),_.c("design:paramtypes",[])],P0.prototype,"percentPlayedStyle",null);_.E([_.H("videoDuration","isActive"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],P0.prototype,"hideProgressBar",null);
_.W(P0,"ytd-progress-bar-line",function(){if(RAl===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);RAl=A}A=RAl;return A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var gPO;_.pE(_.aDF,"ytm-closed-captioning-button",{props:{captionIconType:_.Qf,onClick:_.Bz,ariaLabel:_.Qf,ariaPressed:_.Qf,isOverlay:_.Bz,isModern:_.Bz}});_.pE(_.J3M,"desktop-shorts-volume-controls",{props:{orientation:_.Qf}});var Xf=function(){var A=_.q.apply(this,arguments)||this;A.playerState=null;A.isMuted=!1;A.shortsModernControlsEnabled=_.K("web_shorts_modern_controls");A.volumeControlsOrientationState=_.K("web_shorts_modern_controls")?"vertical_down":"horizontal_right";A.isOverlay=!0;A.captionIconType=-1;A.ariaLabel="";A.overlayDensity=0;A.JSC$22146_playerEvents=new Map;A.onClosedCaptionsButtonClick=function(){A.player&&_.fI(A.player)&&(A.player.toggleSubtitles(),A.updateCaptionIconType())};
return A};
_.O(Xf,_.q);_.d=Xf.prototype;_.d.created=function(){this.JSC$22146_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22146_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22146_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.d.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.K6(28662);this.playPauseButtonClientVE=_.K6(36842);this.fullscreenButtonToggleOffClientVE=_.K6(222256);this.fullscreenButtonToggleOnClientVE=_.K6(222257);var A=_.WR(),Q=_.hx();A&&Q&&(_.K("combine_ve_grafts")?(_.l$(_.IP(),this.muteButtonClientVE,Q),_.l$(_.IP(),this.playPauseButtonClientVE,Q)):_.ZV(A,Q,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22146_playerEvents),this.player=null)};
_.d.updateCaptionIconType=function(){var A=-1,Q=void 0,b=_.JQ("CLOSED_CAPTIONS_DISABLED");this.player&&_.fI(this.player)&&(_.ZKd(this.player)?(Q=!0,b=_.JQ("CLOSED_CAPTIONS_ON"),A=1):(Q=!1,b=_.JQ("CLOSED_CAPTIONS_OFF"),A=0));this.captionIconType=A;this.ariaPressedState=Q;this.ariaLabel=b};
_.d.getPlayerAndInitializeListeners=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return Q=_.BL(),Q?b.yield(Q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lN(A,A.onPageChanged)),b.jumpTo(0));A.player=b.yieldResult;A.initializePlayerListeners();_.Oi(b)})};
_.d.onPageChanged=function(A){var Q=this;return _.B(function(b){if(b.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?b.return():b.yield(_.p6().getPlayerPromise(),2);Q.player=b.yieldResult;Q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lN(Q,Q.onPageChanged));_.Oi(b)})};
_.d.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22146_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.d.onPlayerStateChange=function(A){this.playerState=A};
_.d.onPlayerVolumeChange=function(A){this.isMuted=A.muted};
_.d.onPlayPauseButtonClick=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(_.p6().getPlayerPromise(),2);Q=f.yieldResult;(b=_.WR())&&A.playPauseButtonClientVE&&_.$_(b,A.playPauseButtonClientVE);Q.getPlayerState()!==1?Q.playVideo():Q.pauseVideo();_.Oi(f)})};
_.d.computePlayPauseIcon=function(A){return A===2||A===-1||A===5?_.K("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.K("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.K("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.d.computeFullscreenLabel=function(A){return A?_.JQ("FULLSCREEN_EXIT_LABEL"):_.JQ("FULLSCREEN_ENTER_LABEL")};
_.d.computePlayPauseLabel=function(A){return A===1||A===3?_.JQ("PLAYER_LABEL_PAUSE"):_.JQ("PLAYER_LABEL_PLAY")};
_.d.onMuteButtonClick=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(_.p6().getPlayerPromise(),2);Q=f.yieldResult;(b=_.WR())&&A.muteButtonClientVE&&_.$_(b,A.muteButtonClientVE);Q.isMuted()?Q.unMute(!0):Q.mute(!0);_.Oi(f)})};
_.d.computeMuteIcon=function(A){return A?"miniplayer:volume-off":"miniplayer:volume-up"};
_.d.computeMuteLabel=function(A){return A?_.JQ("PLAYER_LABEL_UNMUTE"):_.JQ("PLAYER_LABEL_MUTE")};
_.d.onFullscreenButtonClick=function(){var A=_.WR();A&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.$_(A,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.$_(A,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.KLd()};
_.Qr.Object.defineProperties(Xf.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var A=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(){A.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?_.K("web_shorts_modern_controls")?"player_full_exit_alt":_.K("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.K("web_shorts_modern_controls")?"player_full_enter_alt":_.K("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Xf.prototype,"componentBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],Xf.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Xf.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"player",void 0);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"playerState",void 0);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"isMuted",void 0);
_.E([_.C({computed:"computePlayPauseIcon(playerState)"}),_.c("design:type",String)],Xf.prototype,"playPauseIcon",void 0);_.E([_.C({computed:"computeMuteIcon(isMuted)"}),_.c("design:type",String)],Xf.prototype,"muteIcon",void 0);_.E([_.C({selector:_.Us}),_.c("design:type",Boolean)],Xf.prototype,"isFullscreen",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Xf.prototype,"shortsModernControlsEnabled",void 0);
_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"volumeControlsOrientationState",void 0);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"isOverlay",void 0);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"captionIconType",void 0);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"ariaLabel",void 0);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"ariaPressedState",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Xf.prototype,"overlayDensity",void 0);
_.E([_.H("playerState"),_.c("design:type",Object),_.c("design:paramtypes",[])],Xf.prototype,"playPauseButtonData",null);_.E([_.H("isFullscreen"),_.c("design:type",Object),_.c("design:paramtypes",[])],Xf.prototype,"fullscreenButtonData",null);_.E([_.C(),_.c("design:type",Object)],Xf.prototype,"onClosedCaptionsButtonClick",void 0);_.E([_.H("isFullscreen"),_.c("design:type",String),_.c("design:paramtypes",[])],Xf.prototype,"fullscreenIcon",null);
_.W(Xf,"ytd-shorts-player-controls",function(){if(gPO===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);gPO=A}A=gPO;return A},{mode:1});var eAd;_.pE(_.fzy,"yt-interstitial-view-model",{props:{data:_.Qf}});var hAN=_.aP(function(A){var Q=A.data;return _.X("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.X("h1",{class:"reelWatchBreakViewModelHostTitle"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("h2",{class:"reelWatchBreakViewModelHostBody"},_.X(_.Rb,{text:function(){return Q().body},
isOverlay:!0})),_.X(_.WL,{data:function(){return Q().buttons}},{buttonViewModel:function(b,f){return _.X("div",{class:function(){return f()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.X(_.J9,{data:b.data}))}}))},"Ej");
hAN.idomCompat=!0;_.pE(hAN,"reel-watch-break-view-model",{props:{data:_.Qf}});var SP=function(){return _.q.apply(this,arguments)||this};
_.O(SP,_.q);SP.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}}};
_.Qr.Object.defineProperties(SP.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.V((A=this.data)==null?void 0:A.renderer,V9M)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.V((A=this.data)==null?void 0:A.renderer,OqO)}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],SP.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],SP.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],SP.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.renderer"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],SP.prototype,"isSurvey",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.renderer"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],SP.prototype,"isInterstitialViewModel",null);_.E([_.h({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],SP);
_.W(SP,"ytd-reel-non-video-content-renderer",function(){if(eAd!==void 0)return eAd;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return eAd=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var W8x;_.pE(_.itO,"desktop-shorts-player-controls",{});var UB=function(){var A=_.q.apply(this,arguments)||this;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.showPlayerControls=!1;A.showScrubber=!1;A.autoHideJobId=0;A.modern=_.K("web_button_rework");A.overlayType=_.Br("web_shorts_expanded_overlay_type");A.panelData=void 0;A.isWatchWhileMode=!1;A.hasError=!1;A.panelShowDelayMs=1;A.scrubberComponent={};A.isFullscreen=!1;A.shouldHideOverlay=!1;A.enableAnchoredPanel=_.K("desktop_shorts_v2_anchored_panel");A.enablePersistentAnchoredPanel=_.K("desktop_shorts_v2_persistent_anchored_panel");
A.hideWatchWhilePanel=_.K("web_shorts_hide_watch_while_panel");A.useAspectRatio=_.K("web_use_aspect_ratio");A.isPersistentPanelActive=!1;A.anchoredPanelActive=!1;A.isShortsPipActive=!1;A.smallScreenSqueezeback=!1;A.enableFlexibleOverlay=_.K("web_enable_flexible_overlay");A.overlayDensity=0;A.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};A.onWindowResized=function(){_.Yl(A,
"calculateOverlayDensity",function(){A.calculateOverlayDensity()},100)};
return A};
_.O(UB,_.q);_.d=UB.prototype;_.d.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.d.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.d.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var A=_.fJ().resolve(_.r8);this.isWatchWhileMode&&(_.K("web_enable_shorts_new_carousel")?_.j7.addJob(function(){A.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):A.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.d.handleShowReelsCommentsOverlayCommand=function(A){A=_.V(A,Izn);this.isActive&&(A==null?0:A.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))};
_.d.updateEngagementPanelVisibility=function(A,Q){A&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:Q?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:A}})};
_.d.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.d.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.fJ().resolve(_.H3).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.d.handleWatchWhilePanelScrimClick=function(){var A=_.fJ().resolve(_.r8);this.activeWatchWhilePanel&&(A.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.d.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.d.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.K("web_enable_shorts_new_carousel")?0:void 0}}};
_.d.handlePlayerClick=function(A){var Q=this,b,f;if((f=(b=window).matchMedia)!=null&&f.call(b,"(any-pointer: coarse)").matches||!A)this.showPlayerControls=!0,_.j7.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Hv(_.j7,function(){Q.showPlayerControls=!1},4E3)};
_.d.isFirstReel=function(){return this.index===0};
_.d.handleMouseenter=function(){_.j7.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.d.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.d.handleScrubberEnter=function(){this.showScrubber=!0};
_.d.handleScrubberLeave=function(){this.showScrubber=!1};
_.d.maybeLogNonDefaultAspectRatio=function(){var A;(A=this.data)!=null&&A.thumbnail&&this.isActive&&.5625!==QVK(this.data.thumbnail)&&_.RqC("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.d.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var A=document.querySelector("#shorts-container");if(A){A=A.offsetWidth/2-this.playerContainer.offsetWidth/2;A=A>=368?1:A>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&A===1&&(A=0);this.isPersistentPanelActive&&(A=0);window.innerWidth<=599&&(A=2);this.overlayDensity=A;var Q;(Q=this.onOverlayDensityChanged)==null||Q.call(this,this.index,this.overlayDensity)}}};
_.d.onOverlayDensityChange=function(){var A;(A=this.onOverlayDensityChanged)==null||A.call(this,this.index,this.overlayDensity);(A=_.Bj(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&A.set("overlayDensity",this.overlayDensity);if(A=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))A.overlayDensity=this.overlayDensity};
_.d.isVideoContent=function(A){_.fJ().resolve(_.H3);return!!_.V(A,_.CT)};
_.d.isNonVideoContent=function(A){_.fJ().resolve(_.H3);return!!_.V(A,_.cV)};
_.d.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Qr.Object.defineProperties(UB.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var A,Q;return _.K("web_enable_format_first")||((A=this.data)==null?void 0:A.adsOverlay)&&_.K("web_enable_format_first_ads_only")||((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer)&&_.K("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.K("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isActive||!this.isPlayerStarted||(A=this.data)!=null&&A.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.command)&&this.isVideoContent(this.data.command)){var Q,b;if(((Q=this.data)==null?0:Q.adsOverlay)&&Object.keys((b=this.data)==null?void 0:b.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var f,a;if(((f=this.data)==null?0:f.reelPlayerOverlayRenderer)&&Object.keys((a=this.data)==null?void 0:a.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
UB.prototype.onOverlayDensityChange=UB.prototype.onOverlayDensityChange;UB.prototype.calculateOverlayDensity=UB.prototype.calculateOverlayDensity;UB.prototype.maybeLogNonDefaultAspectRatio=UB.prototype.maybeLogNonDefaultAspectRatio;UB.prototype.onEngagementPanelsChanged=UB.prototype.onEngagementPanelsChanged;UB.prototype.onScrubberDataChange=UB.prototype.onScrubberDataChange;UB.prototype.updateShouldHideOverlay=UB.prototype.updateShouldHideOverlay;
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],UB.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],UB.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],UB.prototype,"index",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],UB.prototype,"isActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],UB.prototype,"isHiddenInDom",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"isPlayerPaused",void 0);_.E([_.C({selector:fzt}),_.c("design:type",Object)],UB.prototype,"isPlayerStarted",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"showPlayerControls",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"showScrubber",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"autoHideJobId",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"overlayType",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],UB.prototype,"ytdReduxBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],UB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"watchWhileEngagementPanels",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"panelData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"isWatchWhileMode",void 0);_.E([_.C(),_.c("design:type",String)],UB.prototype,"activeWatchWhilePanel",void 0);
_.E([_.C(),_.c("design:type",Object)],UB.prototype,"hasError",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"panelShowDelayMs",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"scrubberComponent",void 0);_.E([_.C({selector:_.Us,reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"isFullscreen",void 0);_.E([_.C(),_.c("design:type",Object)],UB.prototype,"shouldHideOverlay",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"enableAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"enablePersistentAnchoredPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"hideWatchWhilePanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"useAspectRatio",void 0);
_.E([_.C({selector:_.d5b,reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"isPersistentPanelActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"anchoredPanelActive",void 0);_.E([_.C({selector:_.LS,reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"isShortsPipActive",void 0);_.E([_.C({selector:bqF,reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"smallScreenSqueezeback",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],UB.prototype,"enableFormatFirst",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"enableFlexibleOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UB.prototype,"overlayDensity",void 0);_.E([_.C(),_.c("design:type",Function)],UB.prototype,"onOverlayDensityChanged",void 0);
_.E([_.C(),_.H("isActive","hasError","isPlayerStarted"),_.c("design:type",Object),_.c("design:paramtypes",[])],UB.prototype,"shouldRenderPlayerElements",null);_.E([_.C(),_.H("isActive","isWatchWhileMode"),_.c("design:type",Object),_.c("design:paramtypes",[])],UB.prototype,"watchWhileOrPersistentActive",null);_.E([_.iN("isActive","hasError","showingExpandedOverlay"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UB.prototype,"updateShouldHideOverlay",null);
_.E([_.C({reflectToAttribute:!0}),_.H("isActive","isPlayerStarted","data"),_.c("design:type",Object),_.c("design:paramtypes",[])],UB.prototype,"shouldRenderScrubber",null);_.E([_.iN("shouldRenderScrubber"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UB.prototype,"onScrubberDataChange",null);_.E([_.H("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.c("design:type",Object),_.c("design:paramtypes",[])],UB.prototype,"overlayComponent",null);
_.E([_.iN("watchWhileEngagementPanels"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UB.prototype,"onEngagementPanelsChanged",null);_.E([_.V1("#player-container"),_.c("design:type",HTMLElement)],UB.prototype,"playerContainer",void 0);_.E([_.V1("#cinematic-container"),_.c("design:type",HTMLElement)],UB.prototype,"cinematicContainer",void 0);
_.E([_.iN("isPersistentPanelActive","data.thumbnail"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UB.prototype,"maybeLogNonDefaultAspectRatio",null);_.E([_.iN("isPersistentPanelActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UB.prototype,"calculateOverlayDensity",null);_.E([_.iN("overlayDensity"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UB.prototype,"onOverlayDensityChange",null);
_.E([_.h({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],UB);
_.W(UB,"ytd-reel-video-renderer",function(){if(W8x!==void 0)return W8x;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return W8x=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var Lm=function(){var A=_.q.apply(this,arguments)||this;A.isPreviousPageShorts=!1;A.index=0;A.delayedActiveIndex=0;A.playablePreviousIndex=null;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.intersectionObserverThreshold=.6;A.fitToVisibleBounds=!1;A.pageSubtype="shorts";A.enablePreviousContinuation=_.K("shorts_in_playlists_web");A.shortsPipEnabled=_.K("web_shorts_pip");A.isDark=document.documentElement.hasAttribute("dark");A.shortsViewTransitions=_.K("web_shorts_view_transitions");A.isFullscreen=!1;A.isShortsPipActive=
!1;A.buttonOverride={iconPosition:"icon-only",size:"XL"};A.anchoredPanelActive=!1;A.isActive=!1;A.smallScreenPersistentPanel=!1;A.isPersistentPanelActive=!1;A.smallScreenSqueezeBack=!1;A.enableScrollIntoViewCenter=_.K("web_scroll_into_view_center");A.formatFirst=_.K("web_enable_format_first")||_.K("web_enable_format_first_ads_only")||_.K("web_enable_format_first_organic_only");A.enableFlexibleOverlay=_.K("web_enable_flexible_overlay");A.useAspectRatio=_.K("web_use_aspect_ratio");A.isShortsInitialized=
!1;A.hidePreviousButtonImmediately=!1;A.showPreviousButtonImmediately=!1;A.endOfNextContinuation=!1;A.currentPlayerIndex=0;A.nextReelVe=_.K6(56921);A.prevReelVe=_.K6(56922);A.loopToggleOffVe=_.K6(198013);A.loopToggleOnVe=_.K6(198014);A.ambientModeToggleVe=_.K6(227860);A.reelPlayerPausedStateRendererVe=_.K6(141313);A.storedPlaybackSpeed=null;A.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"};A.onOverlayDensityChanged=function(Q,b){var f;(f=A.getActiveReelVideo(Q))==null||f.setAttribute("overlay-density",String(b))};
return A};
_.O(Lm,_.q);_.d=Lm.prototype;
_.d.deflateInactivePreviousSlides=function(){var A=_.GP("web_shorts_deflate_inactive_slides_aggressive_distance");if(A>0&&this.shortsProcessedSequence&&this.activeIndex){A=this.activeIndex-A;for(var Q=0;Q<=A;Q++){var b=void 0;((b=this.shortsProcessedSequence[Q].reelPlayerOverlayRenderer)==null?0:b.metapanel)&&this.set("shortsProcessedSequence."+Q+".reelPlayerOverlayRenderer",{});b=void 0;((b=this.shortsProcessedSequence[Q].adsOverlay)==null?0:b.adSlotMetadata)&&this.set("shortsProcessedSequence."+Q+
".adsOverlay",{})}}};
_.d.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.d.onResize=function(){var A=_.QK(),Q=A.dispatch,b=this.calculateIsSmallWidth();Q.call(A,_.G7({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:b}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.d.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:_.K("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.d.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var A=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,Q=A,b=0;A<250&&(Q=A+this.shortsInnerContainer.clientWidth,b=24);_.Uc(this.hostElement,{"--ytd-shorts-header-width":Q+"px","--ytd-shorts-top-spacing":b+"px"})}};
_.d.isFirstShorts=function(A){return A?this.index===-A.length:this.index===0};
_.d.isActiveReel=function(A,Q,b){b&&(Q=this.calculatePrevIndex(Q,b));return A===Q};
_.d.onFullscreenChange=function(){if(_.K("web_fullscreen_shorts")){var A;(A=this.getActiveReelVideo(this.activeIndex))==null||A.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.fJ().resolve(_.zb).close(!0)}};
_.d.engagementPanelsChanged=function(){var A;this.watchWhileEngagementPanels=(A=this.data)==null?void 0:A.engagementPanels};
_.d.unregisterPanels=function(){var A=_.fJ().resolve(_.r8);if(this.watchWhileEngagementPanels)for(var Q=_.F(this.watchWhileEngagementPanels),b=Q.next();!b.done;b=Q.next()){var f=b.value,a=void 0,T=void 0;b=(a=f.engagementPanelSectionListRenderer)==null?void 0:(T=a.identifier)==null?void 0:T.tag;f=this.getPanelContentIdentifier(f.engagementPanelSectionListRenderer);A&&(b&&A.panelMap.delete(b),f&&_.K("web_shorts_panel_caching_bugfix")&&(a=b=void 0,(a=(b=A).unregisterPanelContent)==null||a.call(b,f)))}};
_.d.isVideoContent=function(A){return this.isVideoContentCommand(A==null?void 0:A.command)};
_.d.getActiveReelVideo=function(A){return _.Bj(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+A+'"]')};
_.d.calculatePrevIndex=function(A,Q){return Q?A-((Q==null?void 0:Q.length)||0):-1};
_.d.onKeydown=function(A){var Q=_.mW(A)||[];if(!_.lfq(Q))if(A.code==="ArrowUp")A.preventDefault(),this.handlePrevButtonClick();else if(A.code==="ArrowDown")A.preventDefault(),this.handleNextButtonClick();else if(A.code==="KeyM")this.toggleMuteUnmuteVideo();else if(A.code==="KeyK"||A.code==="Space")this.togglePlayPauseVideo();else if((A.code==="KeyA"||A.code==="ArrowLeft")&&_.K("web_shorts_keyboard_enable_seek_shortcuts")){var b;(b=this.player)==null||b.seekBy(-5)}else if((A.code==="KeyD"||A.code===
"ArrowRight")&&_.K("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var f;(f=this.player)==null||f.seekBy(5)}};
_.d.onServiceRequestCompleted=function(A,Q){A=Q.data;A.continuationEndpoint&&A.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:A.entries,continuationEndpoint:A.continuationEndpoint}}):A.prevContinuationEndpoint&&A.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:A.prevEntries,prevContinuationEndpoint:A.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.d.handleEngagementPanelVisibilityChanged=function(A,Q){var b=_.fJ().resolve(_.r8);if(A&&b){var f=this.getPanelIdentifier(A);if(Q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==f){b.hidePanel(this.activePanel);var a;this.activePanel=((a=A.identifier)==null?void 0:a.tag)||A.panelIdentifier}else this.isPersistentPanelActive=!0,_.QK().dispatch(UcM(!0)),this.anchoredPanelActive=!0,this.activePanel=f;else Q==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
f&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.QK().dispatch(UcM(!1)))}};
_.d.handlePanelScrimClick=function(){var A=_.fJ().resolve(_.r8);this.activePanel&&(A.hidePanel(this.activePanel),_.QK().dispatch(UcM(!1)))};
_.d.getShortsLoopSetting=function(){var A,Q,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:return _.K("kevlar_shorts_auto_advance")?T.yield(_.RR.getInstance(),2):T.return(!0);case 2:return(A=T.yieldResult)?T.yield(A.get("sfvles"),3):T.return(!0);case 3:return b=(Q=T.yieldResult)!=null?Q:!1,T.yield(A.get("sfvle"),4);case 4:return a=(f=T.yieldResult)!=null?f:!0,b?T.return(a):T.return(!0)}})};
_.d.handleSignalActionToggleLoopShortsOff=function(){var A=this,Q,b,f;return _.B(function(a){switch(a.nextAddress){case 1:if(!A.player)return a.return();A.player.setLoopVideo(!1);Q=_.IP();_.i$(Q,A.loopToggleOffVe);return a.yield(_.RR.getInstance(),2);case 2:return(b=a.yieldResult)?a.yield(b.set("sfvle",!1),3):a.return();case 3:return a.yield(b.set("sfvles",!0),4);case 4:f=_.nD(),_.k_(0,203,!1),_.k_(0,204,!0),f.save(),_.Oi(a)}})};
_.d.handleSignalActionToggleLoopShortsOn=function(){var A=this,Q,b,f;return _.B(function(a){switch(a.nextAddress){case 1:if(!A.player)return a.return();A.player.setLoopVideo(!0);Q=_.IP();_.i$(Q,A.loopToggleOnVe);return a.yield(_.RR.getInstance(),2);case 2:return(b=a.yieldResult)?a.yield(b.set("sfvle",!0),3):a.return();case 3:return a.yield(b.set("sfvles",!0),4);case 4:f=_.nD(),_.k_(0,203,!0),_.k_(0,204,!0),f.save(),_.Oi(a)}})};
_.d.handleSignalActionToggleCinematicShortsOn=function(){ALt(!0);var A;(A=this.JSC$22170_cinematicController)==null||_.yUn(A,!0);_.i$(_.IP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.d.handleSignalActionToggleCinematicShortsOff=function(){ALt(!1);var A;(A=this.JSC$22170_cinematicController)==null||_.yUn(A,!1);_.i$(_.IP(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.d.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.d.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.d.unhideCurrentOverlay=function(){if(this.overlayContainer){var A=this.overlayContainer.querySelector("#experiment-overlay");A&&_.j7.addLowPriorityJob(function(){A.style.display="unset"},100)}};
_.d.getCurrentShort=function(){if(this.currentEndpoint){var A=this.currentEndpoint;if(this.isNonVideoContentCommand(A)){var Q=_.V(A,_.cV);return{reelNonVideoContentRenderer:_.V(Q==null?void 0:Q.renderer,_.Jh9),command:A}}if(this.data){var b;Q=(b=_.V(this.currentEndpoint,_.CT))==null?void 0:b.thumbnail;var f;b=(f=this.data.overlay)==null?void 0:f.reelPlayerOverlayRenderer;_.fJ().resolve(_.H3);A=this.data;var a,T;f=(a=A.overlay)==null?void 0:(T=a.shortsAdsRenderer)==null?void 0:T.adSlots;if(f!==void 0)f.length===
0?(_.Q3("Shorts ads returned no ad slots."),A=void 0):(f.length>1&&_.Q3("Shorts ads has more than one ad slots."),A=_.V(f[0],_.WQK));else{var G,p;A=_.V((G=A.overlay)==null?void 0:(p=G.shortsAdsRenderer)==null?void 0:p.overlay,_.WQK)}G=A;A=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.V(this.currentEndpoint,_.CT),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:b,thumbnail:Q,command:A,adsOverlay:G}}}};
_.d.created=function(){var A=this;this.scrollToVideoThrottle=new _.Ac(function(Q){var b;(b=A.getActiveReelVideo(Q))==null||b.scrollIntoView({behavior:"smooth",block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Ac(function(Q){var b;(b=A.getActiveReelVideo(Q))==null||b.scrollIntoView({behavior:"auto",block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.d.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.d.attached=function(){var A=this;_.fJ().resolve(_.H3).registerRootElement(this);this.pageScrollElement=_.Bj(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.lN(this,this.processResetAction));_.K("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var Q=A.getActiveReelVideo(A.activeIndex);A.maybeCreateIntersectionObserver();Q==null||Q.scrollIntoView({behavior:"instant",
block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"});A.shortsContainer.style.overflowY="scroll"}))};
_.d.calculateSqueezebackPanelSize=function(){var A=this,Q=window.innerWidth-456-(window.innerHeight-106)*.5625;_.j7.addLowPriorityJob(function(){Q<360?_.QK().dispatch(L8q(!0)):(A.hostElement.style.setProperty("--anchored-panel-width",Math.min(Q,480)+"px"),_.QK().dispatch(L8q(!1)))})};
_.d.detached=function(){var A=_.fJ().resolve(_.H3);A.rootElement=void 0;var Q;(Q=A.unsubscribeFromStore)==null||Q.call(A);A.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.lN(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.d.onResizeFinished=function(A,Q){var b=this,f=new ResizeObserver(function(){b.shortsContainer.style.overflowY="hidden";_.j7.addLowPriorityJob(function(){Q()},100)});
f.observe(A);return f};
_.d.resetDocumentScrollTop=function(){var A,Q;if((A=document)==null?0:(Q=A.scrollingElement)==null?0:Q.scrollTop)document.scrollingElement.scrollTop=0};
_.d.loadPage_=function(A){var Q=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),A){var b;!_.K("web_enable_delay_shorts_sequence_call")&&((b=_.V(this.currentEndpoint,_.CT))==null?0:b.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=A;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){Q.isPlayerStarted&&(Q.handleOnPlaybackCommand(),Q.afterPlayerStarted=function(){})};
this.registerPanel(A)}};
_.d.afterPlayerStarted=function(){};
_.d.handleOnPlaybackCommand=function(){if(_.K("web_shorts_comment_stickers")&&this.isPlayerStarted){var A,Q=(A=_.V(this.currentEndpoint,_.CT))==null?void 0:A.onPlaybackCommand;Q&&this.ytComponentBehavior.resolveCommand(Q)}};
_.d.maybeCreateIntersectionObserver=function(){var A=this,Q=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==Q){this.intersectionObserverThreshold=Q;var b={rootMargin:"0px",threshold:Q},f;(f=this.intersectionObserver)==null||f.disconnect();this.intersectionObserver=new IntersectionObserver(function(a){a=_.F(a);for(var T=a.next();!T.done;T=a.next())if(T=T.value,T.intersectionRatio>Q){T=Number(T.target.id);if(isNaN(T))break;if(T===A.index)break;
_.QJb();A.loadVideo(T);_.vn("r_vtc")}},b);
this.observeShorts()}};
_.d.observeShorts=function(){var A=[].concat(_.ri(_.Bj(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=void 0;(b=this.intersectionObserver)==null||b.observe(Q)}};
_.d.initCsi=function(){_.ji("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var A={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"}},Q,b;if((Q=this.playerData)==null?0:(b=Q.cacheMetadata)==null?0:b.isCacheHit)A.isCacheHit=!0;var f;if(Q=(f=_.V(this.currentEndpoint,_.CT))==null?void 0:
f.prefetchTaskId)A.prefetchInfo={taskId:Q};_.g2(A)};
_.d.isAd=function(){var A,Q;return!!((A=_.V(this.currentEndpoint,_.CT))==null?0:(Q=A.adClientParams)==null?0:Q.isAd)};
_.d.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.d.getPlayerContainer=function(){var A;return(A=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:A.playerContainer};
_.d.onPlayerStateChange=function(A){var Q=this;this.isPlayerPaused=A===2;A!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?A===1&&this.index===0&&(this.isPlayerStarted||_.QK().dispatch(TE(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.QK().dispatch(TE(!0)));this.player&&!this.player.getLoopVideo()&&_.j7.addLowPriorityJob(function(){Q.getShortsLoopSetting().then(function(b){var f;(f=Q.player)==null||f.setLoopVideo(b)})});
this.isPlayerPaused&&_.K("web_shorts_paused_state_logging")&&_.Y_(_.WR(),[this.reelPlayerPausedStateRendererVe])};
_.d.isInBackground=function(){var A=window.document.visibilityState;return!(!A||A==="visible")};
_.d.isShortPlayable=function(){if(_.K("kevlar_playable_short_killswitch"))return!0;var A;return(A=this.playerData)!=null&&A.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.d.setNormalPlaybackSpeed=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(A.getPlayer().getPlayerPromise(),2);Q=f.yieldResult;b=Q.getPlaybackRate();b!==1&&(A.storedPlaybackSpeed=b,Q.setPlaybackRate(1));_.Oi(f)})};
_.d.restorePlaybackSpeed=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1)return A.storedPlaybackSpeed===null?b.jumpTo(0):b.yield(A.getPlayer().getPlayerPromise(),3);Q=b.yieldResult;Q.setPlaybackRate(A.storedPlaybackSpeed);A.storedPlaybackSpeed=null;_.Oi(b)})};
_.d.playerDataChanged=function(){var A=this,Q,b,f,a,T,G,p,P,U;return _.B(function(L){if(L.nextAddress==1){Q=A.getPlayer();(b=A.intersectionObserver)==null||b.disconnect();if(A.playerData){if(((f=A.playerData.videoDetails)==null?void 0:f.videoId)!==((a=Q.getPlayer())==null?void 0:a.getVideoData().video_id)){T={};if(G=_.V(A.currentEndpoint,_.CT))T.watch_endpoint=G,G.endTimeSeconds&&(T.end=G.endTimeSeconds);Q.loadVideoWithPlayerResponse(A.playerData,T)}}else return L.return();return A.player?L.jumpTo(2):
L.yield(Q.getPlayerPromise(),3)}L.nextAddress!=2&&(A.player=L.yieldResult,A.JSC$22170_playerStateChangeListener=A.onPlayerStateChange.bind(A),A.player.addEventListener("onStateChange",A.JSC$22170_playerStateChangeListener),_.K("kevlar_client_enable_shorts_player_bootstrap")&&_.Dh(),A.scrollToVideoThrottle.fire(A.index),A.movePlayerToVideo(A.index),_.j7.addLowPriorityJob(function(){A.getShortsLoopSetting().then(function(M){var l;(l=A.player)==null||l.setLoopVideo(M)})}),_.TqM.resolve(A.player),A.player.syncVolume(),
A.getPlayer().focusOnPlayer());
_.j7.addLowPriorityJob(function(){A.observeShorts()},100);
p=A.player.getPlayerState(A.player.getPresentingPlayerType());p!==1||A.isPlayerStarted||_.QK().dispatch(TE(!0));A.updateBackNavContainerWidth();P=_.V(A.currentEndpoint,_.CT);((U=P)==null?0:U.startTimeSeconds)&&A.player.seekTo(P.startTimeSeconds);if(A.JSC$22170_cinematicController||A.cinematicsInitializeJobId)return L.return();A.cinematicsInitializeJobId=_.j7.addLowPriorityJob(function(){A.initCinematicController();A.cinematicsInitializeJobId=void 0});
_.Oi(L)})};
_.d.onShortUndoDismiss=function(){var A=this,Q=SHN().pop();Q!==void 0&&(_.mL(this,function(){A.showCardWithIndex(Q)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.d.onShortsDismiss=function(A){if(A=A.detail.reelDismissalActionRenderer)(A=_.V(A.onDismissalCompletionRenderer,_.nMN))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:A}}}),this.scrollAndDismissCard()};
_.d.processReelNonVideoContentDismissalCommand=function(A){var Q=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);A=_.V(A,k6N);this.activeDimissalTimeout=setTimeout(function(){Q.scrollAndDismissCard()},Number(A==null?void 0:A.delayMs))};
_.d.scrollAndDismissCard=function(){var A=this,Q=this.index;SHN().push(Q);_.mL(this,function(){var b=A.getPlayableNextIndex();b!==null&&(b=A.getActiveReelVideo(b),A.hideCardWithIndex(Q),b==null||b.scrollIntoView({behavior:"smooth",block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"}))})};
_.d.hideCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!0};
_.d.showCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!1};
_.d.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.d.activeChanged=function(A){_.QK().dispatch(_.G7({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:A}}));if(A)document.addEventListener("keydown",_.lN(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var Q;(Q=this.player)==null||Q.sendAbandonmentPing()}var b;(b=this.player)==null||b.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.lN(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.d.graftClientVisualElements=function(){if(this.data){var A=_.IP();_.Twx(A,_.Ul({response:this.reelWatchSequenceResponse}));_.l$(A,this.nextReelVe);_.l$(A,this.prevReelVe);_.K("kevlar_shorts_auto_advance")&&(_.l$(A,this.loopToggleOffVe),_.l$(A,this.loopToggleOnVe));_.l$(A,this.ambientModeToggleVe);_.Y_(_.WR(),[this.nextReelVe,this.prevReelVe]);_.K("web_shorts_paused_state_logging")&&_.l$(A,this.reelPlayerPausedStateRendererVe)}};
_.d.graftNvcRenderer=function(){var A,Q,b,f,a=this.index<0?(A=this.shortsProcessedPrevSequence)==null?void 0:(Q=A[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:Q.command:(b=this.shortsProcessedSequence)==null?void 0:(f=b[this.index])==null?void 0:f.command;if(a&&this.isNonVideoContentCommand(a)){A=_.V(a,_.cV);var T,G;(A=(T=_.V(A==null?void 0:A.renderer,_.Jh9))==null?void 0:(G=T.loggingDirectives)==null?void 0:G.trackingParams)&&_.IP().graftServerVe(A)}};
_.d.setActiveIndex=function(){_.fJ().resolve(_.H3).setActiveIndex(this.index)};
_.d.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.d.lazyUpdateMiniplayerData=function(){var A=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.j7.addLowPriorityJob(function(){A.updateMiniplayerData();A.updateMiniplayerDataJobId=void 0}))};
_.d.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.j7.cancelJob(this.updateMiniplayerDataJobId)};
_.d.updateMiniplayerData=function(){var A,Q,b,f=_.fJ().resolve(_.zb),a={shortsData:this.getCurrentShort(),previousButtonDisabled:!((A=this.prevButtonData)==null||!A.isDisabled),nextButtonDisabled:!((Q=this.nextButtonData)==null||!Q.isDisabled),playabilityStatus:(b=this.playerData)==null?void 0:b.playabilityStatus};_.ZZ(f,a)};
_.d.resetPlayerLocation=function(){var A=this.getPlayer();this.initialPlayerContainer&&A.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.d.movePlayerToVideo=function(A,Q){var b=this;Q=Q===void 0?!0:Q;var f=this.getActiveReelVideo(A),a=this.getPlayer();if(f){this.overlayContainer?f.appendChild(this.overlayContainer):(this.overlayContainer=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,f.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||a.appendTo(this.overlayContainer.playerContainer,void 0,!0));var T;(T=this.player)==null||T.setSize(NaN,NaN);this.isActive||_.Hv(_.j7,function(){b.isActive=
!0});
a.style.visibility="visible";_.K("reels_web_disable_rtr_tick")||_.K("reels_web_use_pbs_first_shorts")&&A===0||_.hQ("r_tr");this.currentPlayerIndex=A;f.appendChild(this.errorScreenContainer);var G;(G=this.JSC$22170_cinematicController)==null||_.Dpn(G)}else Q?_.j7.addLowPriorityJob(function(){b.movePlayerToVideo(b.index,!1)}):Math.random()<=_.GP("web_shorts_error_logging_threshold")&&_.hq(new _.IO("Trying to movePlayerToVideo with undefined container.",{firstAttempt:Q,
index:A}))};
_.d.enableFormatFirst=function(A){return _.K("web_enable_format_first")||A.adsOverlay&&_.K("web_enable_format_first_ads_only")||A.reelPlayerOverlayRenderer&&_.K("web_enable_format_first_organic_only")};
_.d.getAspectRatio=function(A){if(A!=null&&A.thumbnail&&this.enableFormatFirst(A))return"--ytd-shorts-player-ratio: "+QVK(A.thumbnail)};
_.d.getBackgroundImage=function(A){if(A!=null&&A.thumbnail)return(A=_.XS(A.thumbnail.thumbnails))?'background-image:url("'+A+'");':"background-color:black;"};
_.d.onPersistentPanelActiveChanged=function(){var A=this.getCurrentShort();if(A&&this.enableFormatFirst(A)&&(A==null?0:A.thumbnail)&&QVK(A.thumbnail)!==.5625){var Q;(Q=this.player)==null||Q.setSize(NaN,NaN)}};
_.d.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.d.moveCinematicsToVideo=function(){var A=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer");(A==null?0:A.cinematicContainer)&&A.cinematicContainer!==this.shortsCinematicContainer.parentElement&&A.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.d.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.d.updatePrevButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(A){var Q;this.prevButtonData=A=Object.assign({},A,{accessibility:{label:_.JQ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:A.isDisabled||this.index===-(((Q=this.shortsProcessedPrevSequence)==null?void 0:Q.length)||0),tooltip:this.isUpArrowHidden?"":_.JQ("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=A=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.d.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.d.updateNextButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(A){var Q;this.nextButtonData=A=Object.assign({},A,{accessibility:{label:_.JQ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:A.isDisabled||this.index===((Q=this.shortsProcessedSequence)==null?void 0:Q.length),tooltip:_.JQ("NEXT_VIDEO_LABEL")||""})}};
_.d.getPlayablePreviousIndex=function(){for(var A,Q=this.index-1;Q>=-(((A=this.prevShortsSequence)==null?void 0:A.length)||0);Q--)if(!SHN().includes(Q))return Q;return null};
_.d.getIndexInSequence=function(A,Q){return A.findIndex(function(b){var f;return((f=_.V(b.command,_.CT))==null?void 0:f.videoId)===Q})};
_.d.handlePrevButtonClick=function(A){var Q=this,b,f;return _.B(function(a){b=Q.getPlayablePreviousIndex();if(b===null)return a.return();Q.gestureType=((f=A)==null?void 0:f.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b===0&&(Q.hidePreviousButtonImmediately=!0);if(Q.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Q.transitionToVideoThrottle.fire(b)}),a.return();
Q.scrollToVideoThrottle.fire(b);_.Oi(a)})};
_.d.getPlayableNextIndex=function(){for(var A,Q=this.index+1;Q<(((A=this.shortsProcessedSequence)==null?void 0:A.length)||0);Q++)if(!SHN().includes(Q))return Q;return null};
_.d.handleNextButtonClick=function(A,Q){var b=this,f,a;return _.B(function(T){f=b.getPlayableNextIndex();if(f===null)return T.return();f===1&&(b.showPreviousButtonImmediately=!0);b.gestureType=((a=A)==null?void 0:a.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Q&&(b.gestureType=Q);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.transitionToVideoThrottle.fire(f)}),T.return();
b.scrollToVideoThrottle.fire(f);_.Oi(T)})};
_.d.handleReelNavigateCommand=function(A,Q,b){(A=_.V(A,nPF))&&Q&&A.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(b)};
_.d.loadVideo=function(A,Q){Q=Q===void 0?!1:Q;if(A!==this.currentPlayerIndex){_.QK().dispatch(TE(!1));if(this.isAd()&&!Q){var b;(b=this.player)==null||b.notifyShortsAdSwipeEvent()}if((Q=this.JSC$22170_cinematicController)!=null){var f;(f=Q.currentCinematicEffect)==null||f.pause()}if((f=this.JSC$22170_cinematicController)!=null){var a;(a=f.currentCinematicEffect)==null||a.clear()}f=A>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(f));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var T,G,p,P;a=A<0?(T=this.shortsProcessedPrevSequence)==null?void 0:(G=T[this.shortsProcessedPrevSequence.length+A])==null?void 0:G.command:(p=this.shortsProcessedSequence)==null?void 0:(P=p[A])==null?void 0:P.command;this.index=A;this.gestureType||(this.gestureType=f?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
a&&this.isVideoContentCommand(a)&&(this.ytComponentBehavior.resolveCommand(a,{form:{createScreenConfig:{clickedVisualElement:f?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(a&&this.isNonVideoContentCommand(a)){this.currentEndpoint=a;this.data=void 0;T=_.IP();G=_.V(a,_.cV);var U,L;(G=(U=_.V(G==null?void 0:G.renderer,_.Jh9))==null?void 0:(L=U.screenLoggingData)==null?void 0:L.screenVeType)&&_.Mk(T,G);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(U=this.getActiveReelVideo(A))&&U.appendChild(this.overlayContainer)}var M,l;if(((M=this.reelWatchSequenceResponse)==null?0:M.continuationEndpoint)&&((l=this.reelWatchSequenceResponse)==null?0:l.entries)&&A===this.reelWatchSequenceResponse.entries.length-1){var J,n;M={contentPlaybackContext:_.tE({},(n=_.V((J=this.currentEndpoint)==null?void 0:J.commandMetadata,_.KD))==null?void 0:n.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:M})}var t,g,e;((t=this.reelWatchSequenceResponse)==null?0:t.prevContinuationEndpoint)&&A===-(((g=this.reelWatchSequenceResponse)==null?void 0:(e=g.prevEntries)==null?void 0:e.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.d.setMiniplayerPreview=function(A){A=(A===void 0?0:A)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var Q,b,f=_.fJ().resolve(_.zb),a={shortsData:void 0,shortsPreviewThumbnail:A?(Q=this.shortsProcessedSequence)==null?void 0:(b=Q[A])==null?void 0:b.thumbnail:void 0};_.ZZ(f,a)};
_.d.updateTitle=function(A){var Q,b;A=(A==null?0:A.adSlots)?"":(b=A==null?void 0:(Q=A.videoDetails)==null?void 0:Q.title)!=null?b:"";_.Bn(this.hostElement,"yt-update-title",A)};
_.d.registerPanel=function(A){var Q=_.fJ().resolve(_.r8);if(Q){A=_.F(A.engagementPanels||[]);for(var b=A.next();!b.done;b=A.next()){b=b.value;var f=this.getPanelContentIdentifier(b.engagementPanelSectionListRenderer),a=void 0,T=void 0;(T=(a=Q).registerPanelContent)==null||T.call(a,f,b)}}};
_.d.getPanelIdentifier=function(A){var Q;return(A==null?void 0:(Q=A.identifier)==null?void 0:Q.tag)||(A==null?void 0:A.panelIdentifier)||(A==null?void 0:A.targetId)};
_.d.getPanelContentIdentifier=function(A){var Q;return(A==null?void 0:A.targetId)||(A==null?void 0:A.panelIdentifier)||(A==null?void 0:(Q=A.identifier)==null?void 0:Q.tag)};
_.d.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;_.QK().dispatch(TE(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.QK().dispatch(UcM(!1));var A=_.fJ().resolve(_.H3);A.dismissedIndices=[];A.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.fJ().resolve(_.zb).close(!0)};
_.d.processAppendReelWatchSequenceContinuationEntriesAction=function(A){var Q=this,b;(b=this.intersectionObserver)==null||b.disconnect();A=A.appendReelWatchSequenceContinuationEntriesAction;if(A==null?0:A.entries){var f;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.ri(((f=this.reelWatchSequenceResponse)==null?void 0:f.entries)||[]),_.ri(A.entries)),continuationEndpoint:A.continuationEndpoint})}else if(A==null?0:A.prevEntries){var a;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.ri(((a=this.reelWatchSequenceResponse)==null?void 0:a.prevEntries)||[]),_.ri(A.prevEntries)),prevContinuationEndpoint:A.prevContinuationEndpoint});_.j7.addLowPriorityJob(function(){Q.movePlayerToVideo(Q.index);var T;(T=Q.getActiveReelVideo(Q.index))==null||T.scrollIntoView({block:"nearest",inline:Q.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.j7.addLowPriorityJob(function(){Q.observeShorts()},100)};
_.d.processWatchSequence=function(A){var Q=this;return A.map(function(b){b=b.command;if(Q.isVideoContentCommand(b)){var f=_.V(b,_.CT);return{reelPlayerOverlayRenderer:_.V(f==null?void 0:f.overlay,_.Vur),thumbnail:f.thumbnail,command:b}}return Q.isNonVideoContentCommand(b)?(f=_.V(b,_.cV),{reelNonVideoContentRenderer:_.V(f==null?void 0:f.renderer,_.Jh9),command:b}):{command:b}})};
_.d.calculateIntersectionObserverThreshold=function(){var A=_.Bj(this.hostElement).querySelector("ytd-reel-video-renderer"),Q=1;(A==null?0:A.offsetHeight)&&(A==null?0:A.offsetWidth)&&(Q=Math.min(A.offsetHeight,this.shortsContainer.offsetHeight)/A.offsetHeight*(Math.min(A.offsetWidth,this.shortsContainer.offsetWidth)/A.offsetWidth));return Math.round(Q*.6*10)/10};
_.d.isVideoContentCommand=function(A){_.fJ().resolve(_.H3);return!!_.V(A,_.CT)};
_.d.isNonVideoContentCommand=function(A){_.fJ().resolve(_.H3);return!!_.V(A,_.cV)};
_.d.initCinematicController=function(){var A=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22170_cinematicController=new _.al(this.shortsCinematicContainer,this.player);var Q,b=_.V((Q=this.data)==null?void 0:Q.background,_.oe);_.YeM(this.JSC$22170_cinematicController,b);_.yUn(this.JSC$22170_cinematicController,mpx(b));_.ZLx(this.JSC$22170_cinematicController);_.j7.addLowPriorityJob(function(){A.moveCinematicsToVideo()})}};
_.d.handleMiniplayerNavigateShorts=function(A){A==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():A==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.d.handleSignalActionToggleShortsPictureInPicture=function(){if(_.fJ().resolve(_.zb).pictureInPictureSupported()){var A=_.fJ().resolve(_.H3);if(_.K("web_shorts_pip")){var Q=_.fJ().resolve(_.zb);A.isShortsPipActive()?Q.deactivate():Q.isMiniplayerActive()||(_.kg().shortsPipActivation=!0,_.t2K(Q))}}else(A=this.player)==null||A.togglePictureInPicture()};
_.Qr.Object.defineProperties(Lm.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.prevEntries)return this.processWatchSequence([].concat(_.ri(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var A=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!A)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var Q=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.ri(this.prevShortsSequence.slice(0,Q)),[A],_.ri(this.prevShortsSequence.slice(Q+
1)))}Q=this.index+this.shortsProcessedPrevSequence.length;A.thumbnail=this.shortsProcessedPrevSequence[Q].thumbnail;return[].concat(_.ri(this.shortsProcessedPrevSequence.slice(0,Q)),[A],_.ri(this.shortsProcessedPrevSequence.slice(Q+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var A=this.getCurrentShort();if(!A||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[A];if(A==null||!A.reelNonVideoContentRenderer){var Q=this.getIndexInSequence(this.shortsSequence,_.V(this.currentEndpoint,_.CT).videoId);if(this.index===0&&Q!==-1)return this.currentPlayerIndex=this.index=Q,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.ri(this.shortsSequence.slice(0,this.index)),[A],_.ri(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){A.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var b,f,a,T;Q=((f=_.V((b=this.shortsProcessedSequence[0])==null?void 0:b.command,_.CT))==null?void 0:f.videoId)===((T=_.V((a=this.shortsSequence[0])==null?void 0:a.command,_.CT))==null?void 0:T.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.ri(this.shortsProcessedSequence.slice(0,
this.index)),[A],_.ri(this.shortsSequence.slice(Q)))}return[A].concat(_.ri(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var A=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;A&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(A)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 A,Q;return this.index===((A=this.reelWatchSequenceResponse)==null?void 0:(Q=A.entries)==null?void 0:Q.length)}var b;return!((b=this.reelWatchSequenceResponse)==null?0:b.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var A;(A=this.delayedActiveIndexUpdateDebouncer)==null||A.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return this.isShortPlayable()||((Q=_.V((A=this.data)==null?void 0:A.watchStatus,_.tuK))==null?void 0:(b=Q.style)==null?void 0:b.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var A=this,Q=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),b;if((this.data||Q)&&(((b=this.data)==null?0:b.engagementPanels)||this.isAd()||Q)){Q=!1;this.activePanel="shorts-comments-panel";var f;b=_.F(((f=this.data)==null?void 0:f.engagementPanels)||[]);for(f=b.next();!f.done;f=b.next())if(this.getPanelIdentifier(f.value.engagementPanelSectionListRenderer)===this.activePanel){Q=!0;break}if(this.isPersistentPanelActive){var a=
_.fJ().resolve(_.r8);_.Hv(_.j7,function(){a.showPanel(A.activePanel,void 0,void 0,void 0,null)},100)}var T;
f=[].concat(_.ri(Object.values(((T=this.data)==null?void 0:T.engagementPanels)||{})));if(_.K("enable_preview_panel_for_shorts_search_suggested_action")){var G,p,P,U,L;((U=_.V((G=this.data)==null?void 0:(p=G.overlay)==null?void 0:(P=p.reelPlayerOverlayRenderer)==null?void 0:P.metapanel,_.iYM))==null?void 0:(L=U.metadataItems)==null?void 0:L.find(function(M){var l,J;return((l=_.V(M,HqK))==null?void 0:(J=l.icon)==null?void 0:J.iconType)==="SEARCH"}))!==void 0&&f.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}T=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);G=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return T===void 0&&G===void 0||(T==null?0:T.isDisabled)||(G==null?void 0:G.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!Q?(Q=f==null?void 0:f.findIndex(function(M){var l,
J;return((l=M.engagementPanelSectionListRenderer)==null?void 0:(J=l.identifier)==null?void 0:J.tag)==="shorts-comments-panel"}),Q===-1||Q===void 0||f!=null&&f.splice(Q,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.JQ("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.JQ("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:_.JQ("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.JQ("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(_.ri(Object.values(f||
{})))):f}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.shortsProcessedSequence)==null?void 0:A[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var A=this,Q,b,f;if((Q=this.playerData)==null?0:(b=Q.playabilityStatus)==null?0:(f=b.errorScreen)==null?0:f.playerInterstitialRenderer)return _.j7.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.playerData.playabilityStatus.errorScreen;
var a,T;return((a=this.data)==null?void 0:a.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((T=this.data)==null?0:T.watchStatus)&&_.V(this.data.watchStatus,_.kSp)?(_.j7.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Qr.Object.defineProperties(Lm,{template:{configurable:!0,enumerable:!0,get:function(){if(qHr===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);qHr=A}A=qHr;return A}}});
Lm.prototype.onNextButtonDataChange=Lm.prototype.onNextButtonDataChange;Lm.prototype.onPrevButtonDataChange=Lm.prototype.onPrevButtonDataChange;Lm.prototype.onPersistentPanelActiveChanged=Lm.prototype.onPersistentPanelActiveChanged;Lm.prototype.lazyUpdateMiniplayerData=Lm.prototype.lazyUpdateMiniplayerData;Lm.prototype.onShortsPipActiveChanged=Lm.prototype.onShortsPipActiveChanged;Lm.prototype.setActiveIndex=Lm.prototype.setActiveIndex;Lm.prototype.graftNvcRenderer=Lm.prototype.graftNvcRenderer;
Lm.prototype.graftClientVisualElements=Lm.prototype.graftClientVisualElements;Lm.prototype.onActiveChanged=Lm.prototype.onActiveChanged;Lm.prototype.onShortsDismiss=Lm.prototype.onShortsDismiss;Lm.prototype.onShortUndoDismiss=Lm.prototype.onShortUndoDismiss;Lm.prototype.playerDataChanged=Lm.prototype.playerDataChanged;Lm.prototype.afterPlayerStarted=Lm.prototype.afterPlayerStarted;Lm.prototype.unhideCurrentOverlay=Lm.prototype.unhideCurrentOverlay;Lm.prototype.onServiceRequestCompleted=Lm.prototype.onServiceRequestCompleted;
Lm.prototype.engagementPanelsChanged=Lm.prototype.engagementPanelsChanged;Lm.prototype.onFullscreenChange=Lm.prototype.onFullscreenChange;Lm.prototype.onResize=Lm.prototype.onResize;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Lm.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Re.YtPageBehavior),_.c("design:type",Object)],Lm.prototype,"ytPageBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Lm.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.eI),_.c("design:type",Object)],Lm.prototype,"ironResizableBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],Lm.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],Lm.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Lm.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"playerData",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"reelWatchSequenceResponse",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"cachedReelWatchSequenceResponse",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"cachedSequenceParams",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"cachedSequenceProvider",void 0);
_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"currentEndpoint",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"nextButtonData",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"prevButtonData",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"isPreviousPageShorts",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"index",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"delayedActiveIndex",void 0);
_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"playablePreviousIndex",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"player",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"isPlayerPaused",void 0);_.E([_.C({selector:fzt}),_.c("design:type",Object)],Lm.prototype,"isPlayerStarted",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"intersectionObserver",void 0);_.E([_.C(),_.c("design:type",Number)],Lm.prototype,"cinematicsInitializeJobId",void 0);
_.E([_.C(),_.c("design:type",Number)],Lm.prototype,"updateMiniplayerDataJobId",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"fitToVisibleBounds",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"pageSubtype",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Lm.prototype,"enablePreviousContinuation",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"shortsPipEnabled",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"isDark",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"shortsViewTransitions",void 0);_.E([_.C({selector:_.Us,reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"isFullscreen",void 0);_.E([_.C({selector:_.LS,reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"isShortsPipActive",void 0);
_.E([_.V1("#shorts-inner-container"),_.c("design:type",HTMLElement)],Lm.prototype,"shortsInnerContainer",void 0);_.E([_.V1("#back-nav-button ytd-button-renderer"),_.c("design:type",_.dS)],Lm.prototype,"backNavButton",void 0);_.E([_.V1("#shorts-container"),_.c("design:type",HTMLElement)],Lm.prototype,"shortsContainer",void 0);_.E([_.lW("error-screen"),_.c("design:type",HTMLElement)],Lm.prototype,"errorScreenContainer",void 0);
_.E([_.lW("player"),_.c("design:type",Object)],Lm.prototype,"playerElement",void 0);_.E([_.lW("shorts-cinematic-container"),_.c("design:type",HTMLElement)],Lm.prototype,"shortsCinematicContainer",void 0);_.E([_.lW("initial-player-container"),_.c("design:type",HTMLElement)],Lm.prototype,"initialPlayerContainer",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"buttonOverride",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"anchoredPanelActive",void 0);
_.E([_.C(),_.c("design:type",String)],Lm.prototype,"activePanel",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"isActive",void 0);_.E([_.C({selector:bqF,reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"smallScreenPersistentPanel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"isPersistentPanelActive",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"smallScreenSqueezeBack",void 0);
_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"enableScrollIntoViewCenter",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"formatFirst",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"enableFlexibleOverlay",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Lm.prototype,"useAspectRatio",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"panelContainer",void 0);
_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"overlayContainer",void 0);_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"isShortsInitialized",void 0);_.E([_.H("reelWatchSequenceResponse"),_.c("design:type",Object),_.c("design:paramtypes",[])],Lm.prototype,"prevShortsSequence",null);_.E([_.H("data","prevShortsSequence"),_.c("design:type",Object),_.c("design:paramtypes",[])],Lm.prototype,"shortsProcessedPrevSequence",null);
_.E([_.H("reelWatchSequenceResponse"),_.c("design:type",Object),_.c("design:paramtypes",[])],Lm.prototype,"shortsSequence",null);_.E([_.H("data","shortsSequence"),_.c("design:type",Object),_.c("design:paramtypes",[])],Lm.prototype,"shortsProcessedSequence",null);
_.E([_.C({reflectToAttribute:!0}),_.H("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Lm.prototype,"isUpArrowHidden",null);_.E([_.C({reflectToAttribute:!0}),_.H("reelWatchSequenceResponse","index","endOfNextContinuation"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Lm.prototype,"isDownArrowHidden",null);
_.E([_.C(),_.H("index"),_.c("design:type",Number),_.c("design:paramtypes",[])],Lm.prototype,"activeIndex",null);_.E([_.H("isShortPlayable","data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Lm.prototype,"shouldRenderOfflineContent",null);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onResize",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Lm.prototype,"anchoredEngagementPanels",null);
_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"watchWhileEngagementPanels",void 0);_.E([_.iN("isFullscreen"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onFullscreenChange",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"engagementPanelsChanged",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],Lm.prototype,"onServiceRequestCompleted",null);_.E([_.H("data","shortsSequence","index"),_.c("design:type",Object),_.c("design:paramtypes",[])],Lm.prototype,"activeReel",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"unhideCurrentOverlay",null);
_.E([_.iN("isPlayerStarted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"afterPlayerStarted",null);_.E([_.H("playerData","reelWatchSequenceResponse","data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Lm.prototype,"errorScreen",null);_.E([_.H("errorScreen"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Lm.prototype,"hasError",null);
_.E([_.iN("playerData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],Lm.prototype,"playerDataChanged",null);_.E([_.Kc("yt-dismissible-item-undo-feedback"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onShortUndoDismiss",null);_.E([_.Kc("yt-disable-lockup-interaction"),_.c("design:type",Function),_.c("design:paramtypes",[Object]),_.c("design:returntype")],Lm.prototype,"onShortsDismiss",null);
_.E([_.I_("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onActiveChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"graftClientVisualElements",null);_.E([_.iN("currentPlayerIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"graftNvcRenderer",null);
_.E([_.iN("index"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"setActiveIndex",null);_.E([_.iN("isShortsPipActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onShortsPipActiveChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"lazyUpdateMiniplayerData",null);
_.E([_.C(),_.c("design:type",Object)],Lm.prototype,"onOverlayDensityChanged",void 0);_.E([_.iN("isPersistentPanelActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onPersistentPanelActiveChanged",null);_.E([_.iN("index","data","isUpArrowHidden"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onPrevButtonDataChange",null);
_.E([_.iN("index","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lm.prototype,"onNextButtonDataChange",null);_.E([_.h({is:"ytd-shorts"})],Lm);_.Uk.registerService(_.seU,Lm);
_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("JzFVk");
var YBN=function(A){return _.X("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},yJl(A.data.ctaButton,{buttonViewModel:{}}),_.X(_.Rb,{text:A.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var DVN;var $V7;var Rr=function(){return _.q.apply(this,arguments)||this};
_.O(Rr,_.q);Rr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Rr.prototype.computeBlueBottomLink=function(A){return A};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Rr.prototype,"data",void 0);_.E([_.C({computed:"computeIcon_(data.bottomIcon)"}),_.c("design:type",String)],Rr.prototype,"bottomIcon",void 0);
_.E([_.C({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.c("design:type",Boolean)],Rr.prototype,"enableBlueBottomLink",void 0);_.E([_.h({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Rr);
_.W(Rr,"ytd-web-answer-renderer",function(){if($V7!==void 0)return $V7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return $V7=A},{mode:_.UG("kevlar_poly_si_batch_j035")?1:2});var N3t;var gj=function(){var A=_.q.apply(this,arguments)||this;A.hasChipBar=!1;return A};
_.O(gj,_.q);gj.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}}};
gj.prototype.computeHasChipBar=function(A){return!(A==null||!A.chipBar)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gj.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.c("design:type",Object)],gj.prototype,"hasChipBar",void 0);_.E([_.h({is:"ytd-search-header-renderer",disableElementRegistration:!0})],gj);
_.W(gj,"ytd-search-header-renderer",function(){if(N3t!==void 0)return N3t;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return N3t=A},{mode:1});var slq;var eo=function(){return _.q.apply(this,arguments)||this};
_.O(eo,_.q);eo.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],eo.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-page-continuation"})],eo);
_.W(eo,"ytd-page-continuation",function(){if(slq!==void 0)return slq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return slq=A},{mode:1});var mVl;var AUq;var QCN;var hg=function(){return _.q.apply(this,arguments)||this};
_.O(hg,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],hg.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],hg);
_.W(hg,"ytd-watch-card-one-vs-one-event",function(){if(QCN!==void 0)return QCN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return QCN=A},{mode:1});var W6=function(){return _.q.apply(this,arguments)||this};
_.O(W6,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],W6.prototype,"data",void 0);_.E([_.h({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],W6);
_.W(W6,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(AUq!==void 0)return AUq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return AUq=A},{mode:1});var bLl;var v6=function(){return _.q.apply(this,arguments)||this};
_.O(v6,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],v6.prototype,"data",void 0);_.E([_.h({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],v6);
_.W(v6,"ytd-banner-and-box-hero-image-renderer",function(){if(bLl!==void 0)return bLl;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return bLl=A},{mode:1});var fSr;var Ex=function(){var A=_.q.apply(this,arguments)||this;A.modern=_.K("web_modern_buttons");return A};
_.O(Ex,_.q);Ex.prototype.computeIcon=function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.icon)==null?void 0:Q.iconType;if(b)return _.K0(b)};
Ex.prototype.computeButtonShape=function(){var A;return{buttonText:_.mO((A=this.data)==null?void 0:A.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Qr.Object.defineProperties(Ex.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ex.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ex.prototype,"modern",void 0);_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.H("data.style"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ex.prototype,"buttonColor",null);
_.E([_.h({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Ex);
_.W(Ex,"ytd-call-to-action-button-renderer",function(){if(fSr!==void 0)return fSr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return fSr=A},{mode:1});var aS7;var x6=function(){return _.q.apply(this,arguments)||this};
_.O(x6,_.q);x6.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Bj(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Pz(this.data.leftThumbnail.thumbnails,216)+")")};
x6.prototype.onLeftThumbnailChanged=x6.prototype.onLeftThumbnailChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],x6.prototype,"data",void 0);_.E([_.iN("data.leftThumbnail"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],x6.prototype,"onLeftThumbnailChanged",null);_.E([_.h({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],x6);
_.W(x6,"ytd-collage-hero-image-renderer",function(){if(aS7!==void 0)return aS7;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return aS7=A},{mode:1});var T1d;var c6=function(){return _.q.apply(this,arguments)||this};
_.O(c6,_.q);c6.prototype.computeStyle=function(A){return A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],c6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.c("design:type",String)],c6.prototype,"componentStyle",void 0);_.E([_.h({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],c6);
_.W(c6,"ytd-single-hero-image-renderer",function(){if(T1d!==void 0)return T1d;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return T1d=A},{mode:1});var dpx;var z2=function(){return _.q.apply(this,arguments)||this};
_.O(z2,_.q);_.d=z2.prototype;
_.d.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:_.K("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.d.computeSubtitle=function(A){if(this.data){var Q;if(this.data.upcomingEventData){A=_.mO(A.subtitle);var b=Number(this.data.upcomingEventData.startTime);isNaN(b)||(Q=_.sr(_.Eh(A,b)))}else Q=A.subtitle;return Q}};
_.d.onHeroTap=function(A){A.preventDefault();var Q=this.data&&this.data.navigationEndpoint;!Q||!_.TG(_.mW(A),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.TG(_.mW(A),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.K("kevlar_watchcard_hero_video_renderer_killswitch")?_.Bn(this.hostElement,"yt-navigate",{navigationEndpoint:Q}):this.ytComponentBehavior.resolveCommand(Q))};
_.d.computeHeroTabIndex=function(A){return A&&A.simpleText?-1:0};
_.d.computeHeroRole=function(A){return A&&A.simpleText?"":"link"};
_.d.computeIsReminderButtonPresent=function(A){return!(!A||!A.reminderButton)};
_.d.computeHideBottomItems=function(A){return!(this.computeIsReminderButtonPresent(A)||A.subtitle)};
_.d.dataChanged=function(){var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),Q;((Q=_.V(A==null?void 0:A.commandMetadata,_.RA))==null?0:Q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A)};
z2.prototype.dataChanged=z2.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],z2.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],z2.prototype,"data",void 0);
_.E([_.C({computed:"computeSubtitle(data)"}),_.c("design:type",String)],z2.prototype,"subtitle",void 0);_.E([_.C({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],z2.prototype,"isReminderButtonPresent",void 0);_.E([_.C({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],z2.prototype,"hideBottomItems",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],z2.prototype,"dataChanged",null);_.E([_.h({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],z2);
_.W(z2,"ytd-watch-card-hero-video-renderer",function(){if(dpx!==void 0)return dpx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return dpx=A},{mode:1});var FBF;var wj=function(){return _.q.apply(this,arguments)||this};
_.O(wj,_.q);_.d=wj.prototype;_.d.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"}}}};
_.d.computeTitleBadges=function(A){return A?[A]:[]};
_.d.computeHeaderStyle=function(A){return A?A.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.d.computeAvatarAriaLabel=function(A){if(A){var Q,b,f,a;return(a=(Q=A.avatar)==null?void 0:(b=Q.accessibility)==null?void 0:(f=b.accessibilityData)==null?void 0:f.label)!=null?a:_.mO(A==null?void 0:A.title)}};
_.d.computeAvatarHeight=function(A){return A==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.d.computeBadgeRowClass=function(A){return(A==null?0:A[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],wj.prototype,"data",void 0);_.E([_.C({computed:"computeTitleBadges(data.titleBadge)"}),_.c("design:type",Array)],wj.prototype,"titleBadges",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.c("design:type",String)],wj.prototype,"headerStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.c("design:type",String)],wj.prototype,"badgeRowClass",void 0);_.E([_.h({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],wj);
_.W(wj,"ytd-watch-card-rich-header-renderer",function(){if(FBF!==void 0)return FBF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return FBF=A},{mode:1});var G5K;var B1q;var uA=function(){return _.q.apply(this,arguments)||this};
_.O(uA,_.q);uA.prototype.onMetadataTap=function(A){var Q=this.data&&this.data.navigationEndpoint;Q&&!_.TG(_.mW(A),this.hostElement,["A".toString()])&&_.Bn(this.hostElement,"yt-navigate",{endpoint:Q})};
_.Qr.Object.defineProperties(uA.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 A;if(this.data.upcomingEventData){var Q=_.mO(this.data.subtitle),b=Number(this.data.upcomingEventData.startTime);isNaN(b)||(A=_.sr(_.Eh(Q,b)))}else A=this.data.subtitle;return A}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uA.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data.style"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],uA.prototype,"isCondensed",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],uA.prototype,"subtitle",null);
_.E([_.h({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],uA);
_.W(uA,"ytd-watch-card-compact-video-renderer",function(){if(B1q!==void 0)return B1q;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return B1q=A},{mode:1});var pHx;var ZT=function(){return _.q.apply(this,arguments)||this};
_.O(ZT,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ZT.prototype,"data",void 0);_.E([_.h({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],ZT);
_.W(ZT,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(pHx!==void 0)return pHx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return pHx=A},{mode:1});var yq=function(){return _.q.apply(this,arguments)||this};
_.O(yq,_.q);yq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],yq.prototype,"ytRendererStamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yq.prototype,"data",void 0);_.E([_.h({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],yq);
_.W(yq,"ytd-vertical-watch-card-list-renderer",function(){if(G5K!==void 0)return G5K;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return G5K=A},{mode:1});var PQx;var Y6=function(){var A=_.q.apply(this,arguments)||this;A.ariaExpanded="false";return A};
_.O(Y6,_.q);_.d=Y6.prototype;_.d.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.d.dataChanged=function(){var A;this.currentSeasonIndex=((A=this.data)==null?void 0:A.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.d.computeEpisodesInfo=function(A,Q,b){if(A!==void 0&&Q.length===A.length)return A[b]};
_.d.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.d.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.d.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.d.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.d.getUppercaseSimpleString=function(A){return this.ytRendererBehavior.getSimpleString(A).toUpperCase()};
_.d.updateCurrentSeasonIndexFromBinding=function(A){this.currentSeasonIndex=A.detail.value};
Y6.prototype.onIronOverlayClosed=Y6.prototype.onIronOverlayClosed;Y6.prototype.currentSeasonIndexChanged=Y6.prototype.currentSeasonIndexChanged;Y6.prototype.dataChanged=Y6.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Y6.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",String)],Y6.prototype,"label",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],Y6.prototype,"currentSeasonIndex",void 0);_.E([_.C({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.c("design:type",Object)],Y6.prototype,"episodesInfo",void 0);_.E([_.C({value:"false"}),_.c("design:type",Object)],Y6.prototype,"ariaExpanded",void 0);_.E([_.V1("#lists"),_.c("design:type",Object)],Y6.prototype,"lists",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Y6.prototype,"dataChanged",null);_.E([_.I_("currentSeasonIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Y6.prototype,"currentSeasonIndexChanged",null);_.E([_.Kc("iron-overlay-closed"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],Y6.prototype,"onIronOverlayClosed",null);
_.E([_.h({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Y6);
_.W(Y6,"ytd-watch-card-section-dropdown-renderer",function(){if(PQx!==void 0)return PQx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return PQx=A},{mode:1});var XHN;var DT=function(){var A=_.q.apply(this,arguments)||this;A.isSearch=!1;return A};
_.O(DT,_.q);DT.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],DT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],DT.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],DT.prototype,"isSearch",void 0);_.E([_.h({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],DT);
_.W(DT,"ytd-watch-card-section-sequence-renderer",function(){if(XHN!==void 0)return XHN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return XHN=A},{mode:1});var yJl=_.rz({buttonViewModel:_.J9});_.dK(YBN);var Ser=_.aP(function(A){return _.X("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.X(_.WL,{data:function(){return A.data().ctaButton}},{buttonViewModel:_.J9}),_.X(_.Rb,{text:function(){return A.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"yj"),Upd=_.K("web_enable_sink_ytd_button_banner_view_model")?Ser:YBN,LBF=_.K("web_enable_sink_ytd_button_banner_view_model")?Ser:_.ko(YBN);
Ser.idomCompat=!0;_.K("web_enable_sink_ytd_button_banner_view_model")?_.pE(LBF,"ytd-button-banner-view-model",{props:{data:_.Qf}}):_.KE(Upd,"ytd-button-banner-view-model",{propNames:["data"]});var $6=function(){var A=_.q.apply(this,arguments)||this;A.isSearch=!1;return A};
_.O($6,_.q);
$6.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],$6.prototype,"rounded",void 0);_.E([_.C(),_.c("design:type",Object)],$6.prototype,"isSearch",void 0);
_.E([_.h({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],$6);
_.W($6,"ytd-universal-watch-card-renderer",function(){if(mVl!==void 0)return mVl;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return mVl=A},{mode:1});var Mst;_.pE(_.aP(function(A){var Q=A.data;var b;A=!((b=_.fJ().resolve(_.bu(_.Af)))==null||!b());b={};return _.X("overview-message-view-model",{class:_.O4("ytwOverviewMessageViewModelHost",(b.ytwOverviewMessageViewModelDarkBackground=A,b.ytwOverviewMessageViewModelLightBackground=!A,b))},_.X(_.S,{cond:function(){return Q().primaryImage},
then:function(f){return _.X(_.aY,{data:f,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.X(_.S,{cond:function(){return Q().primaryText},
then:function(){return _.X("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.X(_.Rb,{text:function(){return Q().primaryText}}))}}),_.X(_.S,{cond:function(){return Q().secondaryText},
then:function(){return _.X("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.X(_.Rb,{text:function(){return Q().secondaryText}}))}}))},"zj"),"overview-message-view-model",{props:{data:_.Qf}});_.pE(_.klr,"ytd-overview-answer-view-model",{props:{data:_.Qf}});var NK=function(){return _.q.apply(this,arguments)||this};
_.O(NK,_.q);NK.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"}}}};
NK.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],NK.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],NK.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],NK.prototype,"isSearch",void 0);
_.E([_.h({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],NK);
_.W(NK,"ytd-secondary-search-container-renderer",function(){if(Mst!==void 0)return Mst;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return Mst=A},{mode:1});var lSM;var sx=function(){var A=_.q.apply(this,arguments)||this;A.renderSecondarySearchContainer=!1;A.isSearch=!1;return A};
_.O(sx,_.q);_.d=sx.prototype;_.d.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"}}}};
_.d.created=function(){var A=this;this.boundStampSecondarySearchContainerIfFits=function(){A.stampSecondarySearchContainerIfFits()};
_.e6("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.d.computeIsSearchFrictionPage=function(A){var Q,b,f,a,T;A=A==null?void 0:(Q=A.primaryContents)==null?void 0:(b=Q.sectionListRenderer)==null?void 0:(f=b.contents)==null?void 0:(a=f[0])==null?void 0:(T=a.itemSectionRenderer)==null?void 0:T.contents;if(!A)return!1;Q=_.F(A);for(b=Q.next();!b.done;b=Q.next())if(f=void 0,(f=b.value)==null?0:f.searchFrictionViewModel)return!0;return!1};
_.d.computeShowSecondaryColumn=function(A,Q){return!!(Q&&Q.secondaryContents&&A)};
_.d.activeChanged=function(){var A=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.lN(this,this.debounceStampSecondarySearchContainerIfFits)),_.y1(function(){A.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.lN(this,this.debounceStampSecondarySearchContainerIfFits))};
_.d.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.d.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.d.debounceStampSecondarySearchContainerIfFits=function(){_.Yl(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.d.onRetrieveLocation=function(A,Q){Q.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);A.stopPropagation()};
_.d.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
sx.prototype.dataChanged=sx.prototype.dataChanged;sx.prototype.onRetrieveLocation=sx.prototype.onRetrieveLocation;sx.prototype.persistentGuideChanged=sx.prototype.persistentGuideChanged;sx.prototype.activeChanged=sx.prototype.activeChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],sx.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.eI),_.c("design:type",Object)],sx.prototype,"ironResizableBehavior",void 0);_.E([_.C(),_.c("design:type",Boolean)],sx.prototype,"active",void 0);_.E([_.C(),_.c("design:type",Object)],sx.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.K("enable_desktop_search_bigger_thumbs")}}),
_.c("design:type",Boolean)],sx.prototype,"useBiggerThumbs",void 0);_.E([_.C({reflectToAttribute:!0,value:function(){return _.Br("desktop_search_bigger_thumbs_style")}}),
_.c("design:type",String)],sx.prototype,"biggerThumbsStyle",void 0);_.E([_.C(),_.c("design:type",Object)],sx.prototype,"renderSecondarySearchContainer",void 0);_.E([_.C({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.c("design:type",Boolean)],sx.prototype,"showSecondaryColumn",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.c("design:type",Boolean)],sx.prototype,"isSearchFrictionPage",void 0);
_.E([_.C(),_.c("design:type",Object)],sx.prototype,"isSearch",void 0);_.E([_.iN("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sx.prototype,"activeChanged",null);_.E([_.iN("guidePersistentAndVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sx.prototype,"persistentGuideChanged",null);
_.E([_.Kc("yt-retrieve-location"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],sx.prototype,"onRetrieveLocation",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sx.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],sx);
_.W(sx,"ytd-two-column-search-results-renderer",function(){if(lSM!==void 0)return lSM;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return lSM=A},{mode:1});var mV=function(){var A=_.q.apply(this,arguments)||this;A.hasSearchHeader=!1;A.hasSecondaryContent=!1;A.hasBiggerThumbs=_.K("enable_desktop_search_bigger_thumbs");A.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return A};
_.O(mV,_.q);_.d=mV.prototype;_.d.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:_.AD(["aa","eocs"])}}};
_.d.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.loadPage_=function(A){this.initCsi();A&&(this.data=A,_.e6("REFINEMENTS_TUPLE",["FromSearchResponse",A.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Ng(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.d.initCsi=function(){_.ji("results",["ol","cpt"])};
_.d.updateTitle=function(){var A=_.EO(window.location.href,"q");A||(A=_.EO(window.location.href,"search_query"));_.Bn(this.hostElement,"yt-update-title",A||"")};
_.d.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.d.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.K("web_srp_data_changed_terminate_imp_killswitch")||_.pD(this.hostElement,"yt-terminate-video-preview-action")};
_.d.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.d.computeHasSearchHeader=function(A){var Q;A=A==null?void 0:(Q=A.header)==null?void 0:Q.searchHeaderRenderer;return!!A&&(!!A.searchFilterButton||!!A.chipBar)};
_.d.computeHasSecondaryContent=function(A){var Q,b;return!!(A==null?0:(Q=A.contents)==null?0:(b=Q.twoColumnSearchResultsRenderer)==null?0:b.secondaryContents)};
_.Qr.Object.defineProperties(mV,{template:{configurable:!0,enumerable:!0,get:function(){if(DVN===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);DVN=A}A=DVN;return A}}});
mV.prototype.onReloadContinuationFinish=mV.prototype.onReloadContinuationFinish;mV.prototype.dataChanged=mV.prototype.dataChanged;_.E([_.I(_.Re.YtPageBehavior),_.c("design:type",Object)],mV.prototype,"ytPageBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],mV.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],mV.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mV.prototype,"data",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],mV.prototype,"monitorScroll",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mV.prototype,"hasSearchHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mV.prototype,"hasSecondaryContent",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],mV.prototype,"hasBiggerThumbs",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mV.prototype,"dataChanged",null);
_.E([_.Kc("yt-reload-continuation-finish"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mV.prototype,"onReloadContinuationFinish",null);_.E([_.h({is:"ytd-search"})],mV);_.Uk.registerService(_.N4i,mV);
_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("h8y2qb");
var dKn=function(A){if(A=_.GKF(A)){var Q;(Q=A.sources)!=null&&Q[0]?(Q=_.pcW(A),Q=Q<1?"VERTICAL":Q>1?"HORIZONTAL":"SQUARE"):Q=void 0;return Q}},g4=function(A){_.Co.call(this,"upload");
this.opts.query=A},G2r=function(A,Q){return _.X(FVF,{data:A,
onYtNavigate:Q})},BjF=function(A,Q){return _.Me(A.entities,"pageHeaderEntity",Q)},PA7=function(A,Q){return A.map(function(b){if(b.tabRenderer)return p67(b.tabRenderer);
if(b.expandableTabRenderer&&Q){var f=b.expandableTabRenderer;return{customTabRenderable:function(){return Q(f)}}}return{}})},p67=function(A){return{identifier:A.tabIdentifier,
aTagConfig:_.y0({innertubeCommand:A.endpoint,forceNewState:!0}),title:A.title,selected:A.selected,disabled:A.unselectable,icon:A.icon}},X67=function(A){return _.G7({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:A})},SxN=function(A){if(!_.PL(document,"gtm-noscript")){var Q=document.createElement("noscript");
Q.id="gtm-noscript";Q.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+A+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Q)}};_.BD(g4,_.Co);g4.prototype.JSC$10015_setLabel=function(A){g4.superClass_.JSC$10015_setLabel.call(this,A);return this};
g4.prototype.addUploadMetadata=function(A,Q){g4.superClass_.addUploadMetadata.call(this,A,Q);return this};var UKO=function(A){if(A!=="youtubebanner"&&A!=="youtube-channel-banner")throw Error("jo");g4.call(this,A)};
_.O(UKO,g4);UKO.prototype.JSC$10015_setLabel=function(A){g4.prototype.JSC$10015_setLabel.call(this,A);return this};
UKO.prototype.addUploadMetadata=function(A,Q){g4.prototype.addUploadMetadata.call(this,A,Q);return this};var LVK=[_.eI,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(A){_.oi(A).path[0]!==this&&(this.resetLayout(),A.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var A=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Sb(this._layoutDebouncer,_.RP,A);_.U0(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var A=this;requestAnimationFrame(function(){A.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(A){this.resizerShouldNotify(A)&&this._notifyDescendant(A)},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 Mo7=[_.O6Y,{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(A,Q){var b=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[A];if(!b)throw new ReferenceError(this._getUndefinedMsg(A));A=this._boundEffect(b,Q||{});A.setUp();return A},
_effectsChanged:function(A,Q,b){this._tearDownEffects();A&&b&&(A.split(" ").forEach(function(f){var a;f!==""&&((a=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[f])?this._effects.push(this._boundEffect(a,Q[f])):console.warn(this._getUndefinedMsg(f)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(A,Q){Q=Q||{};var b=parseFloat(Q.startsAt||0),f=parseFloat(Q.endsAt||1),a=f-b,T=function(){};
f=b===0&&f===1?A.run:function(G,p){A.run.call(this,Math.max(0,(G-b)/a),p)};
return{setUp:A.setUp?A.setUp.bind(this,Q):T,run:A.run?f.bind(this):T,tearDown:A.tearDown?A.tearDown.bind(this):T}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(A){A.setUp()!==!1&&this._effectsRunFn.push(A.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(A){A.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(A,Q){this._effectsRunFn&&this._effectsRunFn.forEach(function(b){b(A,Q)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var A=this._clampedScrollTop;this._updateScrollState(A);this.threshold>0&&this._setThresholdTriggered(A>=this.threshold)}},
_getDOMRef:function(A){console.warn("_getDOMRef","`"+A+"` is undefined")},
_getUndefinedMsg:function(A){return"Scroll effect `"+A+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+A+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("ko`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(A){var Q={};A=parseFloat(A.scalar);Q.background=this._getDOMRef("background");Q.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");Q.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");Q.deltaBg=Q.backgroundFrontLayer.offsetHeight-Q.background.offsetHeight;Q.deltaBg===0?(isNaN(A)&&(A=.8),Q.deltaBg=(this._dHeight||0)*A):(isNaN(A)&&(A=
1),Q.deltaBg*=A);this._fxParallaxBackground=Q},
run:function(A){var Q=this._fxParallaxBackground;this.transform("translate3d(0px, "+Q.deltaBg*Math.min(1,A)+"px, 0px)",Q.backgroundFrontLayer);Q.backgroundRearLayer&&this.transform("translate3d(0px, "+Q.deltaBg*Math.min(1,A)+"px, 0px)",Q.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var lTx;var KVx;var iiO=function(){};
_.d=iiO.prototype;_.d._scrollTargetChanged=function(){};
_.d.scroll=function(){};
_.d._isValidScrollTarget=function(){};
_.d._toggleScrollListener=function(){};
_.d.toggleScrollListener=function(){};
_.d.createEffect=function(){};
_.d._effectsChanged=function(){};
_.d._layoutIfDirty=function(){};
_.d._boundEffect=function(){};
_.d._setUpEffect=function(){};
_.d._tearDownEffects=function(){};
_.d._runEffects=function(){};
_.d._scrollHandler=function(){};
_.d._scrollStateChanged=function(){};
_.d._getUndefinedMsg=function(){};
_.d.notifyResize=function(){};
_.d.assignParentResizable=function(){};
_.d.stopResizeNotificationsFor=function(){};
_.d._subscribeIronResize=function(){};
_.d._unsubscribeIronResize=function(){};
_.d.resizerShouldNotify=function(){};
_.d._onDescendantIronResize=function(){};
_.d._fireResize=function(){};
_.d._onIronRequestResizeNotifications=function(){};
_.d._parentResizableChanged=function(){};
_.d._notifyDescendant=function(){};
_.d._requestResizeNotifications=function(){};
_.d._findParent=function(){};
_.d._appResetLayoutHandler=function(){};
_.d.resetLayout=function(){};
_.d._notifyLayoutChanged=function(){};
_.d._notifyDescendantResize=function(){};
_.d._setThresholdTriggered=function(){};
iiO=_.gn({_template:function(){if(KVx!==void 0)return KVx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;lTx===void 0&&(lTx=document.createElement("template"));var f=lTx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return KVx=A},
is:"tp-yt-app-header",behaviors:[Mo7,LVK],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 A=_.oi(this.$.slot).getDistributedNodes(),Q=0,b;b=A[Q];Q++)if(b.nodeType===Node.ELEMENT_NODE)if(b.hasAttribute("sticky")){this._stickyElRef=b;break}else this._stickyElRef||(this._stickyElRef=b);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var A=this._clampedScrollTop,Q=this._height===0||A===0,b=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;Q||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();Q?this._updateScrollState(A,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=b}},
_updateScrollState:function(A,Q){if(this._height!==0){var b=0,f=this._top;var a=this._maxHeaderTop;var T=A-this._lastScrollTop,G=Math.abs(T),p=A>this._lastScrollTop,P=performance.now();this._mayMove()&&(b=this._clamp(this.reveals?f+T:A,0,a));A>=this._dHeight&&(b=this.condenses&&!this.fixed?Math.max(this._dHeight,b):b,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&G<100){if(P-this._initTimestamp>300||this._wasScrollingDown!==p)this._initScrollTop=A,this._initTimestamp=P;A>=a&&
(Math.abs(this._initScrollTop-A)>30||G>10?(p&&A>=a?b=a:!p&&A>=this._dHeight&&(b=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((b-f)/(T/(P-this._lastTimestamp)),0,300)+"ms"):b=this._top)}a=this._dHeight===0?A>0?1:0:b/this._dHeight;Q||(this._lastScrollTop=A,this._top=b,this._wasScrollingDown=p,this._lastTimestamp=P);if(Q||a!==this._progress||f!==b||A===0)this._progress=a,this._runEffects(a,b),this._transformHeader(b)}},
_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(A){this.translate3d(0,-A+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&A>=this._stickyElTop?Math.min(A,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(A,Q,b){return Math.min(b,Math.max(Q,A))},
_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),_.oi(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(A){switch(A){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.oi(this).querySelector("[main-title]");case "condensedTitle":return _.oi(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var JgN;var Vol;_.gn({_template:function(){if(Vol!==void 0)return Vol;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;JgN===void 0&&(JgN=document.createElement("template"));var f=JgN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return Vol=A},
is:"tp-yt-app-header-layout",behaviors:[LVK],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.oi(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var A=this.header;if(this.isAttached&&A){this.$.wrapper.classList.remove("initializing");A.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)A.style.left=
"",A.style.right="";else{var Q=this.getBoundingClientRect(),b=document.documentElement.clientWidth-Q.right;A.style.left=Q.left+"px";A.style.right=b+"px"}Q=this.$.contentContainer.style;b=A.offsetHeight;A.fixed&&!A.condenses&&this.hasScrollingRegion?(Q.marginTop=b+"px",Q.paddingTop=""):(Q.paddingTop=b+"px",Q.marginTop="")}}});var OiO=new _.fU("alertCommand");var n6K=new _.fU("manageLabsStateCommand");var k2N=new _.fU("inlineFormRenderer");var ei=new _.fU("playlistSidebarPrimaryInfoRenderer");var ITs=new _.fU("productDetailsThumbnailRenderer"),HiN=new _.fU("productDetailsVariantRenderer"),CAn=new _.fU("productDetailsVariantOptionRenderer"),qxK=new _.fU("productDetailsOffersContainerRenderer"),o6N=new _.fU("productDetailsOfferRenderer");var tod=new _.fU("shoppingFlaggingRenderer");var rgF=new _.fU("playlistBylineRenderer");var jrq=new _.fU("insertChannelTabCommand");var hp=function(){return _.nc.apply(this,arguments)||this};
_.O(hp,_.nc);_.d=hp.prototype;_.d.activeChanged=function(){if(this.active){var A=_.Bj(this.hostElement).querySelector("#header");A&&_.Bn(A,"iron-resize");window.addEventListener("scroll",_.lN(this,this.onScroll))}else window.removeEventListener("scroll",_.lN(this,this.onScroll)),_.Bn(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.d.guideVisibleChanged=function(){var A=_.Bj(this.hostElement).querySelector("#header");A&&_.Bn(A,"iron-resize")};
_.d.onScroll=function(){var A=this;_.Yl(this,"onScroll",function(){var Q=_.Bj(A.hostElement).querySelector("#header");Q&&Q.polymerController&&(Q=Q.polymerController.getScrollState().progress===1?"standard":"seamed",_.Bn(A.hostElement,"yt-request-panel-mode-change",{mode:Q}))},10)};
_.d.tabsChanged=function(){if(this.tabs){for(var A=null,Q=0,b=this.tabs.length;Q<b;++Q){var f=this.tabs[Q].tabRenderer;if(f&&f.selected){A=Q;break}}this.selected=A}};
_.d.onTabsActivate=function(A){_.Bn(this.hostElement,"yt-navigate",{endpoint:this.tabs[A.detail.selected].tabRenderer.endpoint})};
hp.prototype.tabsChanged=hp.prototype.tabsChanged;hp.prototype.guideVisibleChanged=hp.prototype.guideVisibleChanged;hp.prototype.activeChanged=hp.prototype.activeChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],hp.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.C(),_.c("design:type",Array)],hp.prototype,"tabs",void 0);
_.E([_.C(),_.c("design:type",Object)],hp.prototype,"selected",void 0);_.E([_.C(),_.c("design:type",Boolean)],hp.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],hp.prototype,"disableHeaderFluidWidth",void 0);_.E([_.iN("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],hp.prototype,"activeChanged",null);
_.E([_.iN("guidePersistentAndVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],hp.prototype,"guideVisibleChanged",null);_.E([_.iN("tabs"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],hp.prototype,"tabsChanged",null);_.E([_.kl()],hp);var RrM=[_.Z.YtRendererBehavior,_.YX.YtdGuideStateAwareBehavior,hp.prototype];var g6F=2/3,err=_.K6(130749),hrq=function(A,Q){var b=this;this.element=A;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){b.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:g6F,moveAction:function(f){b.moveAction(f)},
triggerAction:function(){b.element.isReloading=!0;_.NM(_.IP(),{visualElement:err});_.J8.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:b.element}})}}}};
_.K2(_.IP(),err,this.layer);this.gesture=new _.Pq(A,Q,this.refreshConfig,"pan-down");this.attach()};
_.d=hrq.prototype;_.d.attach=function(){this.gesture.attach()};
_.d.detach=function(){this.gesture.detach()};
_.d.reset=function(){this.element.close()};
_.d.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.d.moveAction=function(A){this.element.rotation=A*360};var WVx=_.K6(130750),Wq=function(A,Q,b,f,a){var T=this;this.element=A;this.parent=b;this.channelHeader=f;this.ytdReduxDispatch=a;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){T.tabsStartAtInPx=T.channelHeader.clientHeight-48;var G;(G=T.selectedTab)!=null&&G.title&&(G=_.fJ().resolve(_.bu(_.F7)))&&(G=G.getCurrentPage(),T.lastVisitedTabScrollPosition=G.getScrollTop(),T.previousTab&&
((T.lastVisitedTabScrollPosition===void 0?0:T.lastVisitedTabScrollPosition<T.channelHeader.clientHeight-48)?T.scrollPositionForTabs.has(T.selectedTab.title)&&T.scrollPositionForTabs.delete(T.selectedTab.title):T.scrollPositionForTabs.set(T.selectedTab.title,G.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:v6l(),triggerAction:function(){T.navigate(T.previousTab)},
moveAction:function(G,p){T.moveAction(G,p)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-v6l(),triggerAction:function(){T.navigate(T.nextTab)},
moveAction:function(G,p){T.moveAction(G,p)}}}};
_.K2(_.IP(),WVx,this.layer);this.gesture=new _.Pq(A,Q,this.tabConfig);this.attach()};
Wq.prototype.attach=function(){this.gesture.attach()};
Wq.prototype.detach=function(){this.gesture.detach()};
Wq.prototype.tabsChanged=function(A){if(A){var Q=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;A=_.F(A);for(var b=A.next();!b.done;b=A.next()){b=b.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=b);var f=void 0;if((f=b)==null?0:f.selected)this.previousTab=Q,this.selectedTab=b;Q=b}Q=this.gesture;A=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}});
Q.config=A;this.scrollPositionNeedsUpdate=!0}};
Wq.prototype.moveAction=function(A,Q){if(!this.tabsElement){var b;this.tabsElement=(b=this.parent.header)==null?void 0:b.tabsElement;Q==="right"&&this.previousTab?_.Qgx(_.qO.instance,this.previousTab.endpoint,{},""):Q==="left"&&this.nextTab&&_.Qgx(_.qO.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}b=this.tabsElement._pos;Q==="right"&&(A*=-1);this.tabsElement._positionBar(b.width,b.left*1+b.width*A)};
var v6l=function(){var A,Q;return(Q=(A=_.fJ().resolve(_.F7).getCurrentPage())==null?void 0:A.clientWidth)!=null?Q:0};
Wq.prototype.navigate=function(A){this.element.data=void 0;if(A=A==null?void 0:A.endpoint)this.ytdReduxDispatch(X67(!0)),_.NM(_.IP(),{visualElement:WVx}),_.J8.instance.resolveCommand({navigateAction:{endpoint:A}},{form:{element:this.element}})};var E6M;var xKr;var vq=function(){return _.q.apply(this,arguments)||this};
_.O(vq,_.q);vq.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],vq.prototype,"data",void 0);_.E([_.h({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],vq);
_.W(vq,"ytd-labs-edit-renderer",function(){if(xKr!==void 0)return xKr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xKr=A},{mode:1});var cgK;var Ey=function(){var A=_.q.apply(this,arguments)||this;A.dark=!1;A.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(Ey,_.q);Ey.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ey.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.setBackgroundImage(A);this.dark=A};
Ey.prototype.onDarkModeToggledAction=function(A){this.setBackgroundImage(A);this.dark=A};
Ey.prototype.setBackgroundImage=function(A){_.Uc(this.hostElement,{"--yt-labs-header-background":"url("+(A?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Ey.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ey.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ey.prototype,"dark",void 0);
_.E([_.h({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Ey);
_.W(Ey,"ytd-labs-header-renderer",function(){if(cgK!==void 0)return cgK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return cgK=A},{mode:1});var zrK;var xy=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return A};
_.O(xy,_.q);xy.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"}}}}}};
xy.prototype.onYtToggleButton=function(A){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",A.detail.toggled)};
xy.prototype.onManageLabsState=function(A){if(A=_.V(A,n6K))A.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?A.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&A.labsItemId===this.data.labsItemId&&(A.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.pD(this.hostElement,"yt-check-labs-opted-in-state").some(function(Q){return Q})&&this.data.confirmationDialogCommand?_.ST(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.fJ().resolve(_.de).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&A.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.fJ().resolve(_.de).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
xy.prototype.onCheckLabsOptedInState=function(){var A=this.get("data.primaryButton.toggleButtonRenderer");return A?A.isToggled:!1};
_.Qr.Object.defineProperties(xy.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
xy.prototype.onYtToggleButton=xy.prototype.onYtToggleButton;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xy.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],xy.prototype,"itemStyle",null);_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],xy.prototype,"onYtToggleButton",null);_.E([_.h({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],xy);
_.W(xy,"ytd-labs-item-renderer",function(){if(zrK!==void 0)return zrK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zrK=A},{mode:1});var w6s;var uWx;var cq=function(){return _.q.apply(this,arguments)||this};
_.O(cq,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cq.prototype,"data",void 0);_.E([_.h({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],cq);
_.W(cq,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(uWx!==void 0)return uWx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return uWx=A},{mode:1});var ZiO;var zl=function(){return _.q.apply(this,arguments)||this};
_.O(zl,_.q);zl.prototype.observeSuperchatChip=function(){if(this.data){var A={"--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)};_.Uc(this.hostElement,A)}};
zl.prototype.colorFromDecimal=function(A){return _.w6(Number(A||0))};
zl.prototype.observeSuperchatChip=zl.prototype.observeSuperchatChip;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zl.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zl.prototype,"observeSuperchatChip",null);_.E([_.h({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],zl);
_.W(zl,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(ZiO!==void 0)return ZiO;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ZiO=A},{mode:1});var w4=function(){return _.q.apply(this,arguments)||this};
_.O(w4,_.q);w4.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"}}}};
_.Qr.Object.defineProperties(w4.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.wS),_.c("design:type",Object)],w4.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],w4.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],w4.prototype,"hideMessageBlock",null);
_.E([_.h({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],w4);
_.W(w4,"ytd-live-chat-history-entry-renderer",function(){if(w6s!==void 0)return w6s;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return w6s=A},{mode:1});var ygN;var uP=function(){return _.q.apply(this,arguments)||this};
_.O(uP,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uP.prototype,"data",void 0);_.E([_.h({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],uP);
_.W(uP,"ytd-channel-options-renderer",function(){if(ygN!==void 0)return ygN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ygN=A},{mode:1});var Yxx;var ZL=function(){return _.q.apply(this,arguments)||this};
_.O(ZL,_.q);ZL.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ZL.prototype,"data",void 0);_.E([_.h({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],ZL);
_.W(ZL,"ytd-settings-email-item-renderer",function(){if(Yxx!==void 0)return Yxx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Yxx=A},{mode:1});var DKx;var y9=function(){return _.q.apply(this,arguments)||this};
_.O(y9,_.q);y9.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"}}}};
y9.prototype.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
y9.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Qr.Object.defineProperties(y9.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],y9.prototype,"data",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],y9.prototype,"expanded",void 0);_.E([_.H("expanded"),_.c("design:type",String),_.c("design:paramtypes",[])],y9.prototype,"emailListExpanded",null);
_.E([_.V1("#options"),_.c("design:type",Object)],y9.prototype,"options",void 0);_.E([_.h({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],y9);
_.W(y9,"ytd-settings-email-list-renderer",function(){if(DKx!==void 0)return DKx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return DKx=A},{mode:1});var $Kq;var Yy=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.O(Yy,_.q);Yy.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"}}}};
Yy.prototype.handleSignalActionSubmitForm=function(){var A,Q=(A=this.formRenderer)==null?void 0:A.getForm();Q&&this.data.serviceEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},Q,{element:this.hostElement})})};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Yy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Yy.prototype,"data",void 0);_.E([_.V1("yt-form-renderer"),_.c("design:type",Object)],Yy.prototype,"formRenderer",void 0);
_.E([_.h({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Yy);
_.W(Yy,"ytd-settings-gaia-link-renderer",function(){if($Kq!==void 0)return $Kq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return $Kq=A},{mode:1});var Njs;var DL=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return A};
_.O(DL,_.q);DL.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.P47()&&this.set("data.hidden",!1)};
DL.prototype.onSwitchReady=function(){var A=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.K("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.p_x().then(function(Q){Q&&(Notification.permission==="default"?A.set("data.hidden",!1):Notification.permission==="granted"&&_.VN("NotificationsDisabled").then(function(b){b||_.pD(A.hostElement,"yt-toggle-settings-switch",[A.data.id,!b]);A.set("data.hidden",!1)}).catch(function(){}))})})};
DL.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}}}}};
DL.prototype.handleUpdateOptionsCommand=function(A){(A=_.V(A,_.XXL))&&this.data&&this.data.id===A.id&&(this.set("data.hidden",A.hidden),A.text!==void 0&&this.set("data.text",A.text),A.clearOptions&&this.set("data.options",[]))};
DL.prototype.onSwitchReady=DL.prototype.onSwitchReady;DL.prototype.dataChanged=DL.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],DL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],DL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],DL.prototype,"data",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],DL.prototype,"dataChanged",null);_.E([_.Kc("yt-settings-switch-ready"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],DL.prototype,"onSwitchReady",null);_.E([_.h({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],DL);
_.W(DL,"ytd-settings-options-renderer",function(){if(Njs!==void 0)return Njs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Njs=A},{mode:1});var srq;var $y=function(){return _.q.apply(this,arguments)||this};
_.O($y,_.q);$y.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
$y.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
$y.prototype.onYtExpanderMoreTapped=$y.prototype.onYtExpanderMoreTapped;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],$y.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$y.prototype,"data",void 0);
_.E([_.Kc("yt-expander-more-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$y.prototype,"onYtExpanderMoreTapped",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],$y);
_.W($y,"ytd-product-details-description-renderer",function(){if(srq!==void 0)return srq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return srq=A},{mode:1});var mK7;var Nd=function(){var A=_.q.apply(this,arguments)||this;A.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";A.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";A.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";A.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return A};
_.O(Nd,_.q);Nd.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Qr.Object.defineProperties(Nd.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.offerData)==null?void 0:Q.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?void 0:A.purchaseButtonRenderers)!==void 0&&((Q=this.data)==null?void 0:Q.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.formattedFromMerchantText)&&(!((Q=this.data)==null||!Q.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Nd.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Nd.prototype,"data",void 0);
_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.c("design:type",Object)],Nd.prototype,"shippingIcon",void 0);_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.c("design:type",Object)],Nd.prototype,"shippingAddressIcon",void 0);_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.c("design:type",Object)],Nd.prototype,"googleGuaranteeIcon",void 0);
_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?String:void 0}),_.c("design:type",Object)],Nd.prototype,"returnPolicyIcon",void 0);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Nd.prototype,"showAdditionalFees",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Nd.prototype,"showMultiPurchaseButtons",null);
_.E([_.H("data","showMultiPurchaseButtons"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Nd.prototype,"showPurchaseData",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Nd);
_.W(Nd,"ytd-product-details-hero-offer-renderer",function(){if(mK7!==void 0)return mK7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return mK7=A},{mode:1});var AJM;var QlN;var sy=function(){return _.q.apply(this,arguments)||this};
_.O(sy,_.q);_.d=sy.prototype;_.d.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.d.onKeyDown=function(A){A=A.keyCode;A!==13&&A!==32||this.handleSelection()};
_.d.onMouseEnterImage=function(){var A;((A=this.data)==null?void 0:A.thumbnailDetails)!==void 0&&_.Pn(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.d.onMouseLeaveImage=function(){_.Pn(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.d.handleSelection=function(){this.data&&_.Bn(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Qr.Object.defineProperties(sy.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sy.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],sy.prototype,"isSelected",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],sy);
_.W(sy,"ytd-product-details-thumbnail-renderer",function(){if(QlN!==void 0)return QlN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return QlN=A},{mode:1});var mF=function(){var A=_.q.apply(this,arguments)||this;var Q={};A.actionMap=(Q["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",Q["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",Q);A.selectedThumbnailIndex=0;A.selectItem=function(b){b.target.onKeyDown(b)};
return A};
_.O(mF,_.q);_.d=mF.prototype;_.d.handlePreviewImageSelect=function(A){this.hoverThumbnail=A};
_.d.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.d.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.d.onThumbnailSelected=function(A,Q){this.selectedThumbnailIndex=Q};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.d.updateOffset=function(){var A=_.Bj(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_()};
_.Qr.Object.defineProperties(mF.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.imageRenderer){var Q,b;return((Q=this.data)==null?void 0:(b=Q.imageRenderer)==null?void 0:b.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var A;if((A=this.data)==null?0:A.imageRenderer){var Q;return(Q=_.V(this.data.imageRenderer[this.selectedThumbnailIndex],ITs))==null?void 0:Q.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var A=this,Q,b,f,a=(f=(Q=this.data)==null?void 0:(b=Q.imageRenderer)==null?void 0:b.map(function(T,G){return{productDetailsThumbnailRenderer:Object.assign({},_.V(T,ITs),{index:G,isSelected:G===A.selectedThumbnailIndex})}}))!=null?f:[];
return Object.assign({},this.data,{imageRenderer:a})}}});
mF.prototype.updateOffset=mF.prototype.updateOffset;mF.prototype.dataChanged=mF.prototype.dataChanged;mF.prototype.onThumbnailSelected=mF.prototype.onThumbnailSelected;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.pa.YtdHorizontalListBehavior),_.c("design:type",Object)],mF.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],mF.prototype,"componentBehavior",void 0);_.E([_.I([_.PJ.YtActionHandlerBehavior]),_.c("design:type",Object)],mF.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mF.prototype,"data",void 0);_.E([_.C({value:"$.items.children"}),_.c("design:type",String)],mF.prototype,"itemsPath",void 0);_.E([_.C({value:3}),_.c("design:type",Number)],mF.prototype,"initialCount",void 0);
_.E([_.V1("#items"),_.c("design:type",Object)],mF.prototype,"items",void 0);_.E([_.C(),_.c("design:type",Object)],mF.prototype,"selectedThumbnailIndex",void 0);_.E([_.C(),_.c("design:type",Object)],mF.prototype,"hoverThumbnail",void 0);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],mF.prototype,"showThumbnails",null);
_.E([_.Kc("ytd-product-details-thumbnail-renderer-selected"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Number]),_.c("design:returntype")],mF.prototype,"onThumbnailSelected",null);_.E([_.H("data","selectedThumbnailIndex","hoverThumbnail"),_.c("design:type",Object),_.c("design:paramtypes",[])],mF.prototype,"thumbnailDetails",null);_.E([_.H("data","selectedThumbnailIndex"),_.c("design:type",Object),_.c("design:paramtypes",[])],mF.prototype,"populatedData",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mF.prototype,"dataChanged",null);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],mF.prototype,"updateOffset",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],mF);
_.W(mF,"ytd-product-details-image-carousel-renderer",function(){if(AJM!==void 0)return AJM;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return AJM=A},{mode:_.UG("kevlar_poly_si_batch_j079")?1:2});var bmK;var Ag=function(){return _.q.apply(this,arguments)||this};
_.O(Ag,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Ag.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ag.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Ag);
_.W(Ag,"ytd-product-details-offer-renderer",function(){if(bmK!==void 0)return bmK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return bmK=A},{mode:1});var fjK;var Qq=function(){var A=_.q.apply(this,arguments)||this;A.isOffersHidden=!0;return A};
_.O(Qq,_.q);Qq.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var A,Q=_.V((A=this.data)==null?void 0:A.viewOffersButton,_.wE);Q&&this.ytRendererBehavior.logExplicitClick(Q)};
Qq.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Qr.Object.defineProperties(Qq.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f;return(b=_.V((A=this.data)==null?void 0:(Q=A.offers)==null?void 0:Q[0],o6N))==null?void 0:(f=b.offerData)==null?void 0:f.vendorLogoUrl}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Qq.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Qq.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Qq.prototype,"isOffersHidden",void 0);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Qq.prototype,"firstOfferVendorLogoUrl",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Qq);
_.W(Qq,"ytd-product-details-offers-container-renderer",function(){if(fjK!==void 0)return fjK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return fjK=A},{mode:1});var aj7;var T3K;var bA=function(){return _.q.apply(this,arguments)||this};
_.O(bA,_.q);bA.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
bA.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Pn(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
bA.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Pn(this,"ytd-product-details-variant-image-unselect")};
_.Qr.Object.defineProperties(bA.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 A;return((A=this.data)==null?void 0:A.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?void 0:A.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((Q=this.data)==null?void 0:Q.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var A;if(((A=this.data)==null?void 0:A.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,Q;return this.isUnavailable?(A=this.data)==null?void 0:A.variantOptionUnavailableAccessibilityLabel:(Q=this.data)==null?void 0:Q.variantOptionAccessibilityLabel}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],bA.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bA.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],bA.prototype,"displayType",void 0);
_.E([_.H("displayType","data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bA.prototype,"isImageButton",null);_.E([_.H("displayType","data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bA.prototype,"isPillButton",null);_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bA.prototype,"isActive",null);
_.E([_.H("data"),_.C({reflectToAttribute:!0}),_.c("design:type",Boolean),_.c("design:paramtypes",[])],bA.prototype,"isUnavailable",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],bA.prototype,"thumbnailDetails",null);_.E([_.H("isUnavailable","data"),_.c("design:type",Object),_.c("design:paramtypes",[])],bA.prototype,"accessibilityLabel",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],bA);
_.W(bA,"ytd-product-details-variant-option-renderer",function(){if(T3K!==void 0)return T3K;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return T3K=A},{mode:1});var dVl;var fi=function(){var A=_.q.apply(this,arguments)||this;A.variantsExpanded=!1;A.hideShowMoreLessVariantButton=!0;A.initialized=!1;A.computeVariantsDebouncer=null;A.computeVariants=function(Q){Q=Q===void 0?!1:Q;A.variantsExpanded||A.showOptions()||!Q||(A.variantsExpanded=!0);if(A.variantsExpanded){Q=_.F(A.items.children);for(var b=Q.next();!b.done;b=Q.next())b.value.hidden=!1}A.initialized=!0};
return A};
_.O(fi,_.q);_.d=fi.prototype;_.d.ready=function(){var A=this;setTimeout(function(){A.computeVariants(!0)})};
_.d.showOptions=function(){for(var A=_.F(this.items.children),Q=A.next();!Q.done;Q=A.next())Q.value.hidden=!0;var b=this.container.getBoundingClientRect().width,f=0,a=A=0;Q=!1;for(var T=_.F(this.items.children),G=T.next();!G.done;G=T.next()){G=G.value;G.hidden=!1;var p=G.getBoundingClientRect().width;if(f+p<b)f+=p;else if(++a<2)f=p;else break;A+=1;G.hasAttribute("is-active")&&(Q=!0)}for(b=A;b<this.items.children.length;b++)this.items.children[b].hidden=!0;this.hideShowMoreLessVariantButton=A===this.items.children.length;
return Q};
_.d.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Sb(this.computeVariantsDebouncer,_.Q5.after(100),this.computeVariants)};
_.d.onShowMoreLessVariantsButtonClick=function(){var A;(A=this.data)!=null&&A.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.d.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Qr.Object.defineProperties(fi.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.variantOptionRenderers)==null?void 0:Q.find(function(T){return _.V(T,CAn).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),f,a;
return(a=(f=_.V(b,CAn))==null?void 0:f.name)!=null?a:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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"}}}});
fi.prototype.debouncedComputeVariants=fi.prototype.debouncedComputeVariants;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],fi.prototype,"componentBehavior",void 0);_.E([_.I(_.eI),_.c("design:type",Object)],fi.prototype,"ironResizableBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],fi.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],fi.prototype,"variantsExpanded",void 0);_.E([_.C(),_.c("design:type",Object)],fi.prototype,"hideShowMoreLessVariantButton",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],fi.prototype,"initialized",void 0);_.E([_.V1("#items"),_.c("design:type",HTMLDivElement)],fi.prototype,"items",void 0);_.E([_.V1("#container"),_.c("design:type",HTMLDivElement)],fi.prototype,"container",void 0);
_.E([_.V1("#more-variants-button"),_.c("design:type",HTMLElement)],fi.prototype,"moreVariantsButton",void 0);_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],fi.prototype,"selectedOptionName",null);_.E([_.iN("data","variantsExpanded"),_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],fi.prototype,"debouncedComputeVariants",null);
_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],fi.prototype,"displayType",null);_.E([_.H("displayType"),_.c("design:type",Object),_.c("design:paramtypes",[])],fi.prototype,"variantItemsClassname",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],fi);
_.W(fi,"ytd-product-details-variant-renderer",function(){if(dVl!==void 0)return dVl;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return dVl=A},{mode:1});var ar=function(){return _.q.apply(this,arguments)||this};
_.O(ar,_.q);
ar.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"}}}};
_.Qr.Object.defineProperties(ar.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(Q=_.V((A=this.data)==null?void 0:A.offersContainerRenderer,qxK))==null?void 0:Q.offers;return b!==void 0&&(b==null?void 0:b.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 A,Q,b;return((b=(A=this.data)==null?void 0:(Q=A.variants)==null?void 0:Q.map(function(f){var a,T;f=(T=(a=_.V(f,HiN))==null?void 0:a.variantOptionRenderers)==null?void 0:T.find(function(p){var P;return((P=_.V(p,CAn))==null?void 0:P.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var G;return(G=_.V(f,CAn))==null?void 0:G.name}).filter(function(f){return typeof f==="string"}))!=null?b:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var A,Q,b,f=(Q=_.V((A=this.data)==null?void 0:A.shoppingFlaggingRenderer,tod))==null?void 0:(b=Q.reportButton)==null?void 0:b.buttonRenderer;if(f)return{text:f.text,command:f.command,icon:{iconType:"FLAG"},accessibilityData:f.accessibilityData,trackingParams:f.trackingParams,loggingDirectives:f.loggingDirectives}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ar.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ar.prototype,"data",void 0);_.E([_.V1("#image-carousel-renderer"),_.c("design:type",Object)],ar.prototype,"imageCarouselRenderer",void 0);
_.E([_.V1("#hero-offer-renderer"),_.c("design:type",Object)],ar.prototype,"productDetailsHeroOfferRenderer",void 0);_.E([_.V1("#variants"),_.c("design:type",Object)],ar.prototype,"productDetailsVariantRenderer",void 0);_.E([_.V1("#offers"),_.c("design:type",Object)],ar.prototype,"productDetailsOffersContainerRenderer",void 0);_.E([_.V1("#description-renderer"),_.c("design:type",Object)],ar.prototype,"productDetailsDescriptionRenderer",void 0);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ar.prototype,"showPurchaseData",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ar.prototype,"showHeroOfferRenderer",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ar.prototype,"showBrandText",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ar.prototype,"showOffers",null);
_.E([_.H("showOffers","showPurchaseData"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ar.prototype,"showBuySeparator",null);_.E([_.H("showOffers","showPurchaseData"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ar.prototype,"showBuyCard",null);_.E([_.H("data"),_.c("design:type",String),_.c("design:paramtypes",[])],ar.prototype,"selectedVariantsText",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],ar.prototype,"shoppingReportingButtonData",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],ar);
_.W(ar,"ytd-product-details-renderer",function(){if(aj7!==void 0)return aj7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return aj7=A},{mode:1});var FoO;var GEq;var B3O;var T2=function(){return _.q.apply(this,arguments)||this};
_.O(T2,_.q);T2.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Qr.Object.defineProperties(T2.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],T2.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],T2.prototype,"formattedAmount",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],T2.prototype,"ariaLabel",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.style"),_.c("design:type",String),_.c("design:paramtypes",[])],T2.prototype,"vcBalanceWidgetStyle",null);_.E([_.Ec({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],T2);
_.W(T2,"yt-vc-balance-renderer",function(){if(B3O===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;GEq===void 0&&(GEq=document.createElement("template"));var f=GEq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);B3O=A}A=B3O;return A},{mode:2});_.xo("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var dj=function(){return _.q.apply(this,arguments)||this};
_.O(dj,_.q);_.Qr.Object.defineProperties(dj.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],dj.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],dj.prototype,"data",void 0);_.E([_.C({selectorArgs:["data.vcBalanceEntityKey"],selector:function(A,Q){return _.Me(A.entities,"vcBalanceEntity",Q)}}),
_.c("design:type",Object)],dj.prototype,"vcBalanceEntity",void 0);_.E([_.H("vcBalanceEntity"),_.c("design:type",String),_.c("design:paramtypes",[])],dj.prototype,"formattedAmount",null);_.E([_.H("vcBalanceEntity"),_.c("design:type",String),_.c("design:paramtypes",[])],dj.prototype,"vcBalanceAriaLabel",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],dj);
_.W(dj,"ytd-vc-balance-renderer",function(){if(FoO!==void 0)return FoO;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return FoO=A},{mode:1});var p0n;var FW=function(){var A=_.q.apply(this,arguments)||this;A.rotation=0;A.isReloading=!1;return A};
_.O(FW,_.q);FW.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
FW.prototype.reset=function(){this.hostElement.style.opacity=""};
FW.prototype.close=function(){var A=this;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(A.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.hostElement.style.opacity="0";_.Oi(Q)})};
FW.prototype.rotationChanged=FW.prototype.rotationChanged;_.E([_.C(),_.c("design:type",Object)],FW.prototype,"rotation",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],FW.prototype,"isReloading",void 0);_.E([_.V1("#icon"),_.c("design:type",HTMLElement)],FW.prototype,"icon",void 0);_.E([_.iN("rotation"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],FW.prototype,"rotationChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-refresh"})],FW);
_.W(FW,"ytd-refresh",function(){if(p0n!==void 0)return p0n;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return p0n=A},{mode:1});var PSq;var G2=function(){return _.q.apply(this,arguments)||this};
_.O(G2,_.q);G2.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"}}}};
G2.prototype.dataChanged=function(){if(this.data){var A=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var Q=_.Pz(this.data.banner.thumbnails,this.hostElement.clientWidth);Q&&(Q.indexOf("//")===0&&(Q="https:"+Q),this.hasBannerArt=!0,_.Uc(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+Q+")"}))}this.hasBannerArt!==A&&_.Bj(this.hostElement).querySelector("#header").fire("iron-resize")}};
G2.prototype.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
G2.prototype.dataChanged=G2.prototype.dataChanged;_.E([_.I(RrM),_.c("design:type",Object)],G2.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.ZJ),_.c("design:type",Object)],G2.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],G2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],G2.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],G2.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],G2.prototype,"selected",void 0);_.E([_.C(),_.c("design:type",Boolean)],G2.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],G2.prototype,"hasBannerArt",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],G2.prototype,"dataChanged",null);_.E([_.h({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],G2);
_.W(G2,"ytd-interactive-tabbed-header-renderer",function(){if(PSq!==void 0)return PSq;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return PSq=A},{mode:1});var X0s;var B6=function(){return _.q.apply(this,arguments)||this};
_.O(B6,_.q);B6.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
B6.prototype.computeActionsAlignment=function(A){return(A==null?void 0:A.actionsAlignment)||""};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],B6.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.c("design:type",String)],B6.prototype,"actionsAlignment",void 0);_.E([_.h({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],B6);
_.W(B6,"ytd-page-footer-renderer",function(){if(X0s!==void 0)return X0s;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return X0s=A},{mode:1});var SBq;var UVt;var pi=function(){var A=_.q.apply(this,arguments)||this;A.isEditing=!1;A.useSlot=!1;A.isMultiline=!1;return A};
_.O(pi,_.q);_.d=pi.prototype;_.d.onKeydown=function(A){if(A.keyCode===13&&!this.isMultiline)this.onSave();else if(A.keyCode===27)this.onCancel()};
_.d.computeComponentStyle=function(A){return(A==null?0:A.style)?A.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.d.computeisMultiline=function(A){if(this.multilineOverride!==void 0)return this.multilineOverride;var Q,b;return!!(A==null?0:(Q=A.formField)==null?0:(b=Q.textInputFormFieldRenderer)==null?0:b.isMultiline)};
_.d.computeTextDisplayed=function(A,Q){if(A)return A;if(Q)return Q};
_.d.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.d.onSave=function(){if(this.textForm.validate()){this.textForm.save();var A=this.textForm.value;if(A)this.set("data.textDisplayed",_.sr(A));else{var Q;((Q=this.data)==null?0:Q.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.sn("inline-form-changed",this.data));this.isEditing=!1}};
_.d.onCancel=function(){var A=_.mO(this.data.textDisplayed);A===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(A);this.isEditing=!1};
pi.prototype.onKeydown=pi.prototype.onKeydown;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],pi.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pi.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],pi.prototype,"isEditing",void 0);_.E([_.C(),_.c("design:type",Object)],pi.prototype,"useSlot",void 0);_.E([_.C(),_.c("design:type",Boolean)],pi.prototype,"multilineOverride",void 0);_.E([_.C(),_.c("design:type",Boolean)],pi.prototype,"enableOverlayTheme",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.c("design:type",String)],pi.prototype,"componentStyle",void 0);
_.E([_.C({computed:"computeisMultiline(data)"}),_.c("design:type",Object)],pi.prototype,"isMultiline",void 0);_.E([_.V1("#text-form"),_.c("design:type",Object)],pi.prototype,"textForm",void 0);_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent]),_.c("design:returntype")],pi.prototype,"onKeydown",null);_.E([_.h({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],pi);
_.W(pi,"ytd-inline-form-renderer",function(){if(UVt!==void 0)return UVt;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return UVt=A},{mode:1});var Lol;var P6=function(){var A=_.q.apply(this,arguments)||this;A.previousSelectValue=void 0;A.selectedItemMessage=void 0;return A};
_.O(P6,_.q);P6.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
P6.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var A,Q,b,f,a=(A=this.data)==null?void 0:(Q=A.dropdown)==null?void 0:(b=Q.dropdownRenderer)==null?void 0:(f=b.entries)==null?void 0:f.map(function(p){return p.privacyDropdownItemRenderer});
A=_.F(a!=null?a:[]);for(Q=A.next();!Q.done;Q=A.next())if((Q=Q.value)&&Q.int32Value===this.selectedValue){this.selectedItemMessage=Q.itemMessage;break}}else this.selectedItemMessage=void 0;var T;(T=this.onValueChanged)==null||T.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var G;(G=this.data)!=null&&G.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
P6.prototype.onValueChangedForSelectedValue=function(A){this.selectedValue=A.detail.value};
P6.prototype.selectedValueChanged=P6.prototype.selectedValueChanged;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],P6.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],P6.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],P6.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],P6.prototype,"theme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Number)],P6.prototype,"selectedValue",void 0);_.E([_.C(),_.c("design:type",Function)],P6.prototype,"onValueChanged",void 0);
_.E([_.I_("selectedValue"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],P6.prototype,"selectedValueChanged",null);_.E([_.h({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],P6);
_.W(P6,"ytd-dropdown-form-field-renderer",function(){if(Lol!==void 0)return Lol;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Lol=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var MPN;var XW=function(){return _.q.apply(this,arguments)||this};
_.O(XW,_.q);_.Qr.Object.defineProperties(XW.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var A=[],Q=_.F(this.data||[]),b=Q.next();!b.done;b=Q.next())(b=_.V(b.value,rgF))&&A.push(b);return A}}});
_.E([_.C(),_.c("design:type",Array)],XW.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],XW.prototype,"byline",null);_.E([_.h({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],XW);
_.W(XW,"ytd-playlist-byline-renderer",function(){if(MPN!==void 0)return MPN;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return MPN=A},{mode:1});var ljK;var So=function(){var A=_.q.apply(this,arguments)||this;A.rtlBullet=_.K("web_playlist_stats_rtl_bullet_icon_killswitch");A.modern=_.K("web_modern_buttons");A.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return A};
_.O(So,_.q);_.d=So.prototype;_.d.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"}}}}};
_.d.attached=function(){};
_.d.computeIsCustomThumbnail=function(A){return A?!!A.playlistCustomThumbnailRenderer:!1};
_.d.onYtNavigate=function(A,Q){if(Q&&Q.actions&&Q.actions.indexOf("shuffle")>-1){A=_.fJ().resolve(_.u$);var b=Q.tempData||{};b.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);Q.tempData=b;A.isShuffleNextPlaylist=!0}};
_.d.onUpdatePlaylistAction=function(A){var Q;A=(Q=_.V(A,_.c1y))==null?void 0:Q.updatedRenderer;if(Q=_.V(A,ei))this.data=Q};
_.d.computeStyleType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.d.computeThumbnailWidth=function(A){return A==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.d.computeHideThumbnailAria=function(A){if(A==null?0:A.thumbnailOverlays)for(var Q=0;Q<A.thumbnailOverlays.length;Q++){var b=void 0;if((b=A.thumbnailOverlays[Q])==null?0:b.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
So.prototype.onYtNavigate=So.prototype.onYtNavigate;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],So.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],So.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],So.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],So.prototype,"rtlBullet",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.c("design:type",String)],So.prototype,"styleType",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.c("design:type",Number)],So.prototype,"thumbnailWidth",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],So.prototype,"modern",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.c("design:type",Boolean)],So.prototype,"isCustomThumbnail",void 0);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[Event,Object]),_.c("design:returntype")],So.prototype,"onYtNavigate",null);_.E([_.h({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],So);
_.W(So,"ytd-playlist-sidebar-primary-info-renderer",function(){if(ljK!==void 0)return ljK;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ljK=A},{mode:1});var KoF;var Ux=function(){return _.q.apply(this,arguments)||this};
_.O(Ux,_.q);Ux.prototype.computeOwnerVisibility=function(A){return!(!A.videoOwner&&!A.button)};
Ux.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ux.prototype,"data",void 0);_.E([_.h({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Ux);
_.W(Ux,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(KoF!==void 0)return KoF;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return KoF=A},{mode:1});var imx;var Li=function(){var A=_.q.apply(this,arguments)||this;A.expanded=!1;A.isCompact=!1;return A};
_.O(Li,_.q);_.d=Li.prototype;_.d.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.d.dataChanged=function(){this.data&&_.Ao(_.Bj(this.text),_.krM(_.CYv,_.mO(this.data.text||null)))};
_.d.computeAutoScrollEnabled=function(A,Q){return A&&!Q};
_.d.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.d.toggleOnTap=function(){this.expanded=!this.expanded};
Li.prototype.expandedChanged=Li.prototype.expandedChanged;Li.prototype.dataChanged=Li.prototype.dataChanged;_.E([_.I(_.LFN),_.c("design:type",Object)],Li.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Li.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Li.prototype,"expanded",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Li.prototype,"isCompact",void 0);_.E([_.C({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.c("design:type",Boolean)],Li.prototype,"autoScrollEnabled",void 0);_.E([_.V1("#text"),_.c("design:type",Object)],Li.prototype,"text",void 0);_.E([_.V1("#expander-icon"),_.c("design:type",Object)],Li.prototype,"expanderIcon",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Li.prototype,"dataChanged",null);_.E([_.iN("expanded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Li.prototype,"expandedChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Li);
_.W(Li,"ytd-channel-legal-info-renderer",function(){if(imx!==void 0)return imx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return imx=A},{mode:1});var JJr;var VPF=_.JQ("DOWNLOAD",{},"Download"),Omq=_.JQ("DOWNLOADING",{},"Downloading"),nSx=_.JQ("DOWNLOADED",{},"Downloaded"),MK=function(){var A=_.q.apply(this,arguments)||this;A.downloadProgress=0;A.isDownloadComplete=!1;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.O(MK,_.q);_.d=MK.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.dataChanged=function(){var A;(A=this.data)!=null&&A.tooltip||(A=_.cO(_.QK().getState(),this.playlistId),this.updateButtonState(A))};
_.d.computePlaylistId=function(A){return A};
_.d.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.d.updateButtonState=function(A){if(this.data&&(this.data.tooltip!==Omq||!_.IX(A))){this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=VPF;var Q="OFFLINE_DOWNLOAD";var b="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":A=nSx;Q="OFFLINE_PIN";b="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":A=Omq;Q="OFFLINE_DOWNLOADING_ZERO";b="ACTION_REMOVE_WITH_PROMPT";
break;default:A=VPF,Q="OFFLINE_DOWNLOAD",b="ACTION_ADD"}var f=Object.assign({},this.data);f.tooltip=A;f.accessibilityData={accessibilityData:{label:A}};f.icon={iconType:Q};f.size="SIZE_DEFAULT";_.V(f.command,_.ks)&&(_.V(f.command,_.ks).action=b);this.set("data",f)}};
_.d.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?A="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var Q;A!==((Q=this.data.icon)==null?void 0:Q.iconType)&&(Q=Object.assign({},this.data),Q.tooltip=Omq,Q.accessibilityData={accessibilityData:{label:Omq}},Q.icon={iconType:A},_.V(Q.command,_.ks)&&(_.V(Q.command,_.ks).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",Q))}};
MK.prototype.updateProgress=MK.prototype.updateProgress;MK.prototype.onTransferStateChanged=MK.prototype.onTransferStateChanged;MK.prototype.dataChanged=MK.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],MK.prototype,"ytdReduxBehavior",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],MK.prototype,"forceIconButton",void 0);
_.E([_.C({value:!0}),_.c("design:type",Boolean)],MK.prototype,"forceIconOnly",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],MK.prototype,"overrides",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],MK.prototype,"buttonTooltipPosition",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],MK.prototype,"styleActionButton",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],MK.prototype,"disableTextTransform",void 0);
_.E([_.C({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.c("design:type",String)],MK.prototype,"playlistId",void 0);_.E([_.C(),_.c("design:type",Object)],MK.prototype,"data",void 0);_.E([_.C({selector:_.$kX,selectorArgs:["playlistId"]}),_.c("design:type",Object)],MK.prototype,"downloadProgress",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],MK.prototype,"isDownloadComplete",void 0);
_.E([_.C({selector:_.cO,selectorArgs:["playlistId"]}),_.c("design:type",String)],MK.prototype,"transferState",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],MK.prototype,"showTooltips",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],MK.prototype,"sendCommandWhenDisabled",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],MK.prototype,"disabled",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],MK.prototype,"dataChanged",null);_.E([_.I_("transferState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],MK.prototype,"onTransferStateChanged",null);_.E([_.I_("downloadProgress"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],MK.prototype,"updateProgress",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],MK);
_.W(MK,"ytd-download-playlist-button-renderer",function(){if(JJr!==void 0)return JJr;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return JJr=A},{mode:1});var kEM;_.pE(_.Ai9,"thumbnail-overlay-button-view-model",{props:{data:_.Qf,lockupExperiments:_.Qf}});var lA=function(){var A=_.q.apply(this,arguments)||this;A.isSquare=!1;A.isVertical=!1;return A};
_.O(lA,_.q);lA.prototype.computeIsSquare=function(A){return A!=null&&A.thumbnail?dKn(A.thumbnail)==="SQUARE":!1};
lA.prototype.computeIsVertical=function(A){return A!=null&&A.thumbnail?dKn(A.thumbnail)==="VERTICAL":!1};
lA.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.c("design:type",Object)],lA.prototype,"isSquare",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.c("design:type",Object)],lA.prototype,"isVertical",void 0);
_.E([_.C(),_.c("design:type",Object)],lA.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],lA);
_.W(lA,"ytd-hero-playlist-thumbnail-renderer",function(){if(kEM!==void 0)return kEM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return kEM=A},{mode:1});var Ki=function(){var A=_.q.apply(this,arguments)||this;A.isDarkTheme=!1;A.isUltraWide=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return A};
_.O(Ki,_.q);_.d=Ki.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.fJ();var A;(A=_.fJ().resolve(_.bu(_.XQ)))!=null&&(A.headerElement=this.hostElement)};
_.d.detached=function(){var A;(A=_.fJ().resolve(_.bu(_.XQ)))!=null&&(A.headerElement=void 0)};
_.d.onUpdateHeader=function(A){(A=A.detail)&&this.set("data",A)};
_.d.computeTextDisplayed=function(A){if(A)return A.textDisplayed?A.textDisplayed:A.placeholder};
_.d.gradientColorToLinearGradientStop=function(A){var Q=this.isDarkTheme?A.darkThemeColor:A.lightThemeColor;return Q?_.w6(Q)+" "+((A==null?void 0:A.startLocation)||0)*100+"%":"transparent"};
_.d.onWindowResize=function(){var A;((A=this.data)==null?0:A.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.d.onIronResize=function(A){this.isUltraWide=!A.detail.value};
_.d.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.onUpdatePlaylistName=function(A){var Q=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},A.detail.value));_.mL(this,function(){var b;(b=Q.editableTitle)==null||b.resize()})};
_.d.onUpdatePlaylistDescription=function(A){var Q=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},A.detail.value));_.mL(this,function(){var b;(b=Q.editableDescriptionInlineExpander)==null||b.resize()})};
_.d.getCinematicData=function(A){return _.V(A==null?void 0:A.cinematicContainer,_.oe)};
_.Qr.Object.defineProperties(Ki.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 A,Q=(A=this.getCinematicData(this.data))==null?void 0:A.config;return(A=this.isDarkTheme?Q==null?void 0:Q.darkThemeBackgroundColor:Q==null?void 0:Q.lightThemeBackgroundColor)?"background-color:"+_.zx(A)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var A;return _.V((A=this.data)==null?void 0:A.descriptionForm,k2N)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var A=this,Q,b,f;return"background:linear-gradient(to bottom, "+(((f=(Q=this.getCinematicData(this.data))==null?void 0:(b=Q.gradientColorConfig)==null?void 0:b.map(function(a){return A.gradientColorToLinearGradientStop(a)}))==null?void 0:f.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var A;return _.mO((A=this.data)==null?void 0:A.descriptionTapText)}}});
Ki.prototype.onUpdateHeader=Ki.prototype.onUpdateHeader;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Ki.prototype,"actionHandlerBehavior",void 0);_.E([_.V1("#description-inline-expander"),_.c("design:type",Object)],Ki.prototype,"descriptionInlineExpander",void 0);
_.E([_.V1("#editable-description-inline-expander"),_.c("design:type",Object)],Ki.prototype,"editableDescriptionInlineExpander",void 0);_.E([_.C(),_.c("design:type",Object)],Ki.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Ki.prototype,"isUltraWide",void 0);_.E([_.V1("#editable-title-display"),_.c("design:type",Object)],Ki.prototype,"editableTitle",void 0);_.E([_.H("isUltraWide"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ki.prototype,"maxDescriptionLines",null);
_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ki.prototype,"noCinematicData",null);_.E([_.Kc("yt-new-playlist-header"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ki.prototype,"onUpdateHeader",null);_.E([_.H("data","isDarkTheme"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ki.prototype,"backgroundStyle",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ki.prototype,"descriptionFormData",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ki.prototype,"getDropdownTheme",null);_.E([_.H("data","isDarkTheme"),_.c("design:type",String),_.c("design:paramtypes",[])],Ki.prototype,"gradientStyle",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ki.prototype,"descriptionTapText",null);
_.E([_.h({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Ki);
_.W(Ki,"ytd-playlist-header-renderer",function(){if(SBq!==void 0)return SBq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return SBq=A},{mode:_.UG("kevlar_poly_si_batch_j078")?1:2});var IjM;var Hml;var iA=function(){return _.q.apply(this,arguments)||this};
_.O(iA,_.q);iA.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iA.prototype,"data",void 0);_.E([_.h({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],iA);
_.W(iA,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Hml!==void 0)return Hml;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Hml=A},{mode:1});var Jg=function(){return _.q.apply(this,arguments)||this};
_.O(Jg,_.q);
Jg.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}}}}};
Jg.prototype.computeUsePremiumShowStyle=function(A){if(!A||!A.items)return!1;for(var Q=0;Q<A.items.length;Q++)if(_.V(A.items[Q],ei)){var b=void 0;return((b=_.V(A.items[Q],ei))==null?void 0:b.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Jg.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.c("design:type",Boolean)],Jg.prototype,"usePremiumShowStyle",void 0);
_.E([_.h({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Jg);
_.W(Jg,"ytd-playlist-sidebar-renderer",function(){if(IjM!==void 0)return IjM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return IjM=A},{mode:1});var CSx;var qBM;var oSK=function(A,Q,b,f,a,T,G,p){this.minWidth=A;this.minHeight=Q;this.recommendedWidth=b;this.recommendedHeight=f;this.JSC$21950_maxFileSize=a;this.title=T;this.bannerGalleryTitle=G;this.channelId=p;this.picker_=null;A=_.nJ4("yt-banner");Q=A.addView;b=(new UKO("youtubebanner")).addUploadMetadata("silo_id","19");b.opts.ytMaxFileSize=this.JSC$21950_maxFileSize;f=this.recommendedHeight;b.opts.ytRecWidth=this.recommendedWidth;b.opts.ytRecHeight=f;Q.call(A,b);A.addView(new _.tP);Q=A.addView;b=new _.tP;
b.opts.type="ytbanner";Q.call(A,b.JSC$10015_setLabel(this.bannerGalleryTitle));Q=A.setTitle(this.title).setSize(1E3);Q.urlParamMap_.set("thumbs","orig");b=this.minWidth;f=this.minHeight;if(isNaN(b)||isNaN(f))throw Error("gb`"+b+"`"+f);Q.urlParamMap_.set("minSize",b+"x"+f);Q.urlParamMap_.set("cropMode","ytcb");this.builder_=A};
oSK.prototype.open=function(){var A=this;return new _.M3(function(Q,b){_.Soj(A.builder_,function(f){f.action=="picked"?Q(f):f.action=="cancel"&&b(Error("lo"))});
A.picker_&&A.picker_.dispose();A.picker_=A.builder_.build();A.picker_.setVisible(!0)})};
oSK.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var tPF=function(A){this.channelId=A};
tPF.prototype.upload=function(A){var Q="";A.viewToken&&(Q=A.viewToken[2].type);var b=A.docs[0];A=b.crop;Q={channel_id:this.channelId,fife_url:b.thumbnails[0].url,photo_id:b.id,is_gallery_image:Q=="ytbanner"};A&&(Q.crop_top=A.top,Q.crop_right=A.right,Q.crop_bottom=A.bottom,Q.crop_left=A.left);return _.JtY("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:Q})};var Vq=function(){var A=_.q.apply(this,arguments)||this;A.ariaLabel=null;return A};
_.O(Vq,_.q);_.d=Vq.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.detached=function(){this.picker&&this.picker.dispose()};
_.d.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.d.computeAriaLabel=function(A){return A};
_.d.onTap=function(){var A=this,Q;if((Q=this.data)==null||!Q.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new oSK(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 b;(b=this.picker)==null||b.open().then(function(f){A.handleBannerPicked(f)},function(){})}};
_.d.handleBannerPicked=function(A){var Q=this;this.uploader||(this.uploader=new tPF(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(A).then(function(b){Q.handleBannerUploadSucceeded(b)},function(b){Q.handleBannerUploadFailed(b)})};
_.d.handleBannerUploadSucceeded=function(A){A&&A.errors?this.handleBannerUploadFailed(A):(_.Bn(this.hostElement,"yt-banner-updated",A),this.message=null)};
_.d.handleBannerUploadFailed=function(A){this.message=A&&A.errors&&A.errors.length?A.errors[0]:null};
Vq.prototype.dataChanged=Vq.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Vq.prototype,"componentBehavior",void 0);_.E([_.I(_.Wp),_.c("design:type",Object)],Vq.prototype,"ironButtonState",void 0);_.E([_.C(),_.c("design:type",Object)],Vq.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.c("design:type",Object)],Vq.prototype,"ariaLabel",void 0);
_.E([_.C(),_.c("design:type",Object)],Vq.prototype,"message",void 0);_.E([_.C(),_.c("design:type",Object)],Vq.prototype,"picker",void 0);_.E([_.C(),_.c("design:type",Object)],Vq.prototype,"uploader",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vq.prototype,"dataChanged",null);_.E([_.h({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Vq);
_.W(Vq,"ytd-channel-banner-editor-renderer",function(){if(qBM!==void 0)return qBM;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return qBM=A},{mode:1});var rJn;var jls=_.sC(["#"]),Ox=function(){return _.q.apply(this,arguments)||this};
_.O(Ox,_.q);Ox.prototype.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A,!0)||_.mse(jls)};
Ox.prototype.dataChanged=function(){var A=this.data;A&&A.targetId&&_.lp1(_.rk(),A.targetId,this.moreIcon)};
Ox.prototype.dataChanged=Ox.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Ox.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ox.prototype,"data",void 0);_.E([_.V1("#more-icon"),_.c("design:type",Object)],Ox.prototype,"moreIcon",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ox.prototype,"dataChanged",null);
_.E([_.h({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Ox);
_.W(Ox,"ytd-channel-tagline-renderer",function(){if(rJn!==void 0)return rJn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rJn=A},{mode:1});var R8t;var ni=function(){return _.q.apply(this,arguments)||this};
_.O(ni,_.q);_.d=ni.prototype;_.d.ready=function(){var A=this;_.Bj(this.hostElement).querySelector("#form").addEventListener("submit",function(Q){A.onSubmit(Q)})};
_.d.onDataChanged=function(){var A;((A=this.data)==null?0:A.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.d.onIconButtonKeydown=function(A){A.keyCode===13&&this.iconButton.click()};
_.d.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.d.openOnClickHandler=function(){this.input.focus()};
_.d.onSubmit=function(A){A.preventDefault();return!1};
_.d.submitOnEnterKeyUp=function(A){var Q;if(A.keyCode===13&&((Q=this.data)==null?0:Q.expandedText)){A=this.data.endpoint;Q=_.j2.unsafeClone(A);var b;((b=_.V(Q==null?void 0:Q.commandMetadata,_.KD))==null?0:b.url)?(_.V(Q.commandMetadata,_.KD).url=_.zD(_.V(Q.commandMetadata,_.KD).url,"query",this.data.expandedText),_.V(Q,_.nT)&&(_.V(Q,_.nT).query=this.data.expandedText),_.Bn(this.hostElement,"yt-navigate",{endpoint:Q,tempData:{disableCache:!0}})):(b=new _.IO("Error: Trying to navigate to an endpoint without url",
A),_.en(b))}};
_.d.updateDataExpandedTextFromBinding=function(A){this.set("data.expandedText",A.detail.value)};
_.Qr.Object.defineProperties(ni.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
ni.prototype.onDataChanged=ni.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.izl),_.c("design:type",Object)],ni.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ni.prototype,"data",void 0);_.E([_.V1("#input"),_.c("design:type",Object)],ni.prototype,"input",void 0);_.E([_.V1("#icon-button"),_.c("design:type",HTMLElement)],ni.prototype,"iconButton",void 0);
_.E([_.C(),_.c("design:type",String),_.c("design:paramtypes",[])],ni.prototype,"searchIcon",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ni.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],ni);
var FVF=_.SM()(ni,"ytd-expandable-tab-renderer",function(){if(R8t===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);R8t=A}A=R8t;return A},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var gSN;var k6=function(){var A=_.q.apply(this,arguments)||this;A.avatarSize=80;A.ariaLabel=_.JQ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return A};
_.O(k6,_.q);k6.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
k6.prototype.computeHref=function(A){var Q;return((Q=_.V(A,_.y_))==null?0:Q.url)?this.componentBehavior.computeHref_(A):null};
k6.prototype.onTap=function(){var A,Q;(A=this.data)==null||!A.editAvatarServiceEndpoint||((Q=_.V(this.data.editAvatarServiceEndpoint,_.y_))==null?0:Q.url)||_.fJ().resolve(_.de).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.E([_.I(_.Wp),_.c("design:type",Object)],k6.prototype,"ironButtonState",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],k6.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],k6.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],k6.prototype,"avatarSize",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],k6.prototype,"ariaLabel",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],k6);
_.W(k6,"ytd-channel-avatar-editor",function(){if(gSN!==void 0)return gSN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return gSN=A},{mode:1});var e8N=_.aP(function(A){var Q=A.data;var b=A.noPadding;var f=A.enableBanner;var a=A.cinematicContainerTopbarOffset;var T=A.allowCinematicContainerOverflow;var G=A.displayAsSidebar;A=A.className;_.H_(function(){Q().tagManagerId&&(_.eN(Q().tagManagerId,_.vG("GL")),SxN(Q().tagManagerId))},"xVTVTe");
var p=_.I$(BjF,function(){return Q().pageHeaderEntityKey});
return _.X("yt-page-header-renderer",{class:_.O4("page-header-renderer-wiz",A)},_.X(_.WL,{data:function(){var P;return((P=p())==null?0:P.header)?p().header:(G==null?0:G())&&Q().sidebarContent?Q().sidebarContent:Q().content}},{pageHeaderViewModel:function(P){return _.X(_.iAL,{data:P.data,
noPadding:b,enableBanner:f,cinematicContainerTopbarOffset:a,allowCinematicContainerOverflow:T,displayAsSidebar:function(){return(G==null?void 0:G())&&Q().enableSidebarView}})}}))},"wj");
e8N.idomCompat=!0;_.pE(e8N,"yt-page-header-renderer",{props:{data:_.Qf,noPadding:_.Qf,enableBanner:_.Qf,cinematicContainerTopbarOffset:_.Qf,allowCinematicContainerOverflow:_.Qf,displayAsSidebar:_.Qf,className:_.Qf}});_.pE(_.DP,"yt-image-banner-view-model",{props:{data:_.Qf,isPositionRelative:_.Qf}});_.pE(_.edj,"yt-tab-group-shape",{props:{shape:_.Qf}});var Ir=function(){var A=_.q.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(Q){return G2r(Q,function(){return void A.onSearchNavigate()})};
A.isRichGrid=!1;A.isConstrainedList=!1;A.richGridMiniMode=!1;A.richGridStyle="RICH_GRID_STYLE_UNKNOWN";A.isRichGridShorts=!1;A.responsiveSizing="COMPACT";A.disableGridStateAware=!1;A.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return A};
_.O(Ir,_.q);_.d=Ir.prototype;_.d.computeHeaderDisabled=function(A,Q){return Q||!A||this.tabsHidden};
_.d.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.d.computeIsRichGridShorts=function(A){return A==="RICH_GRID_STYLE_SHORTS_GRID"||A==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.d.computeImageBannerViewModel=function(){var A,Q;return _.V((Q=_.V((A=this.data)==null?void 0:A.content,_.cXy))==null?void 0:Q.banner,_.g3W)};
_.d.computeHasCinematicContainer=function(){var A,Q;return!((Q=_.V((A=this.data)==null?void 0:A.content,_.cXy))==null||!Q.background)};
_.d.handleHeaderResize=function(){var A=_.Bj(this.hostElement).querySelector("#header");A&&_.Bn(A,"iron-resize")};
_.d.handleInsertTabCommand=function(A){var Q=_.V(A,jrq);Q&&(Q.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(b){return b.tabRenderer&&b.tabRenderer.tabIdentifier===Q.tabIdentifier})||this.splice("tabs",Q.tabIndex||-1,0,Q.tab))};
_.d.handleRefreshChannelTabAction=function(A){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===A&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.d.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Uc(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.d.observerRichGridSlimItemsPerRow=function(){_.Uc(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.d.updateCssVars=function(){this.richGridItemsPerRow&&_.Uc(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.GP("rich_grid_max_item_width",500))+16)-16+"px"})};
_.d.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Uc(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.d.onDataChanged=function(){this.handleHeaderResize()};
_.d.onWindowResize=function(){this.handleHeaderResize()};
_.d.onFocusedChanged=function(A){(A=_.Au(A))&&A.is==="tp-yt-paper-tab"&&A.hasRipple()&&(A.getRipple().holdDown=!A.pointerDown&&A.focused)};
_.d.updateSelectedFromBinding=function(A){this.ytdTabbedHeaderBehavior.selected=A.detail.value};
_.d.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Qr.Object.defineProperties(Ir.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:PA7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.imageBannerViewModel)==null?void 0:A.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Ir.prototype.onDataChanged=Ir.prototype.onDataChanged;Ir.prototype.updateCssVarsForResponsiveGrid=Ir.prototype.updateCssVarsForResponsiveGrid;Ir.prototype.updateCssVars=Ir.prototype.updateCssVars;Ir.prototype.observerRichGridSlimItemsPerRow=Ir.prototype.observerRichGridSlimItemsPerRow;Ir.prototype.observerRichGridItemsPerRow=Ir.prototype.observerRichGridItemsPerRow;_.E([_.I(_.ZJ),_.c("design:type",Object)],Ir.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.I(RrM),_.c("design:type",Object)],Ir.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Ir.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],Ir.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],Ir.prototype,"ytdReduxBehavior",void 0);_.E([_.V1("#tabs"),_.c("design:type",Object)],Ir.prototype,"tabsElement",void 0);_.E([_.C(),_.c("design:type",Array)],Ir.prototype,"tabs",void 0);_.E([_.C(),_.c("design:type",Object)],Ir.prototype,"expandableCustomTabRenderable",void 0);_.E([_.H("tabs.*"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ir.prototype,"tabGroupShape",null);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ir.prototype,"isRichGrid",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ir.prototype,"isConstrainedList",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Object)],Ir.prototype,"richGridMiniMode",void 0);_.E([_.C({selector:function(A){return A.ui.richGridStyle}}),
_.c("design:type",Object)],Ir.prototype,"richGridStyle",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.c("design:type",Object)],Ir.prototype,"isRichGridShorts",void 0);_.E([_.C({selector:_.hH}),_.c("design:type",Number)],Ir.prototype,"richGridItemsPerRow",void 0);_.E([_.C({selector:function(A){return A.ui.richGridContainerWidth}}),
_.c("design:type",Number)],Ir.prototype,"richGridContainerWidth",void 0);_.E([_.C({selector:_.e59}),_.c("design:type",Number)],Ir.prototype,"richGridSlimItemsPerRow",void 0);_.E([_.C(),_.c("design:type",Object)],Ir.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ir.prototype,"responsiveSizing",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ir.prototype,"disableGridStateAware",void 0);
_.E([_.C({computed:"computeImageBannerViewModel(data)"}),_.c("design:type",Object)],Ir.prototype,"imageBannerViewModel",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.c("design:type",Boolean)],Ir.prototype,"hasCinematicContainer",void 0);_.E([_.C({selector:_.TYM,reflectToAttribute:!0}),_.c("design:type",Boolean)],Ir.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("imageBannerViewModel"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ir.prototype,"hasBanner",null);_.E([_.C({reflectToAttribute:!0}),_.H("imageBannerViewModel"),_.c("design:type",Object),_.c("design:paramtypes",[])],Ir.prototype,"hasInsetBanner",null);_.E([_.C({computed:"computeTabsHidden(tabs)",value:!0}),_.c("design:type",Boolean)],Ir.prototype,"tabsHidden",void 0);
_.E([_.iN("richGridItemsPerRow","isRichGrid"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ir.prototype,"observerRichGridItemsPerRow",null);_.E([_.iN("richGridSlimItemsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ir.prototype,"observerRichGridSlimItemsPerRow",null);
_.E([_.iN("richGridItemsPerRow","richGridMiniMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ir.prototype,"updateCssVars",null);_.E([_.iN("richGridContainerWidth"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ir.prototype,"updateCssVarsForResponsiveGrid",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ir.prototype,"onDataChanged",null);
_.E([_.h({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Ir);
_.W(Ir,"ytd-tabbed-page-header",function(){if(CSx!==void 0)return CSx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return CSx=A},{mode:1});var h87;var H6=function(){return _.q.apply(this,arguments)||this};
_.O(H6,_.q);H6.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Uc(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Qr.Object.defineProperties(H6.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var A,Q;return this.componentBehavior.computeIcon_(((Q=_.V((A=this.data)==null?void 0:A.badge,_.nHY))==null?void 0:Q.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.badge,_.nHY))==null?void 0:Q.label}}});
H6.prototype.observerRichGridItemsPerRow=H6.prototype.observerRichGridItemsPerRow;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],H6.prototype,"componentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],H6.prototype,"ytdReduxBehavior",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.e$}),_.c("design:type",Boolean)],H6.prototype,"richGridMiniMode",void 0);
_.E([_.C({selector:_.hH}),_.c("design:type",Number)],H6.prototype,"richGridItemsPerRow",void 0);_.E([_.C(),_.c("design:type",Object)],H6.prototype,"data",void 0);_.E([_.iN("richGridItemsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],H6.prototype,"observerRichGridItemsPerRow",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],H6.prototype,"badgeIconName",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],H6.prototype,"badgeLabel",null);_.E([_.h({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],H6);
_.W(H6,"ytd-member-hub-profile-renderer",function(){if(h87!==void 0)return h87;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return h87=A},{mode:1});var WoK;var Ci=function(){return _.q.apply(this,arguments)||this};
_.O(Ci,_.q);Ci.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ci.prototype,"data",void 0);_.E([_.h({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Ci);
_.W(Ci,"ytd-settings-sidebar-renderer",function(){if(WoK!==void 0)return WoK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return WoK=A},{mode:1});var vSs;var qK=function(){var A=_.q.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(Q){return G2r(Q,function(){return void A.onSearchNavigate()})};
return A};
_.O(qK,_.q);qK.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
qK.prototype.onSearchNavigate=function(){this.selected=void 0};
qK.prototype.onTabsChange=function(){var A,Q=(A=this.tabs)==null?void 0:A.findIndex(function(b){var f;return b==null?void 0:(f=b.tabRenderer)==null?void 0:f.selected});
Q!==void 0&&(this.selected=Q)};
qK.prototype.onTabsActive=function(A){if(this.tabs!==void 0){var Q,b;(A=(Q=this.tabs[A.detail.selected])==null?void 0:(b=Q.tabRenderer)==null?void 0:b.endpoint)&&_.Bn(this.hostElement,"yt-navigate",{endpoint:A})}};
_.Qr.Object.defineProperties(qK.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:PA7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
qK.prototype.onTabsChange=qK.prototype.onTabsChange;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.ZJ),_.c("design:type",Object)],qK.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],qK.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],qK.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Array)],qK.prototype,"tabs",void 0);_.E([_.C(),_.c("design:type",Number)],qK.prototype,"selected",void 0);_.E([_.H("tabs.*"),_.c("design:type",Object),_.c("design:paramtypes",[])],qK.prototype,"tabGroupShape",null);_.E([_.C(),_.c("design:type",Object)],qK.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.H("tabs"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],qK.prototype,"tabsEnabled",null);_.E([_.I_("tabs"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],qK.prototype,"onTabsChange",null);_.E([_.h({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],qK);
_.W(qK,"ytd-topic-channel-details-renderer",function(){if(vSs!==void 0)return vSs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return vSs=A},{mode:1});var ESx;var or=function(){var A=_.q.apply(this,arguments)||this;A.disableGridStateAware=!1;return A};
_.O(or,_.q);or.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]]"}}}}}};
or.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
or.prototype.updateCssVars=function(){_.Uc(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.GP("rich_grid_max_item_width",500))+16)-16+"px"})};
or.prototype.updateCssVars=or.prototype.updateCssVars;or.prototype.activeChanged=or.prototype.activeChanged;_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],or.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],or.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Array)],or.prototype,"tabs",void 0);_.E([_.C(),_.c("design:type",Boolean)],or.prototype,"active",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],or.prototype,"disableGridStateAware",void 0);
_.E([_.C({selector:_.hH}),_.c("design:type",Number)],or.prototype,"richGridItemsPerRow",void 0);_.E([_.C({selector:_.e$}),_.c("design:type",Boolean)],or.prototype,"richGridMiniMode",void 0);_.E([_.V1("ytd-carousel-item-renderer"),_.c("design:type",Object)],or.prototype,"carousel",void 0);_.E([_.iN("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],or.prototype,"activeChanged",null);
_.E([_.iN("richGridItemsPerRow","richGridMiniMode"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],or.prototype,"updateCssVars",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],or);
_.W(or,"ytd-carousel-header-renderer",function(){if(ESx!==void 0)return ESx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return ESx=A},{mode:1});var xVM;var cJd=_.sC(["https://www.google-analytics.com/analytics.js"]),tg=function(){var A=_.q.apply(this,arguments)||this;A.scriptAnalyticsAdded=!1;return A};
_.O(tg,_.q);tg.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var A,Q=(A=this.data)==null?void 0:A.tagManagerId;Q&&(_.eN(Q,_.vG("GL")),SxN(Q))};
tg.prototype.sendGoogleAnalyticsPageview=function(A){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var b=_.E$.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(b)};
var Q=window.ga;Q("set","page",window.location.pathname);Q.l=+new Date;Q("set","forceSSL",!0);Q("create",A,"'auto'");Q("send","pageview")};
tg.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var A=_.KK("SCRIPT");A.name="ga-analytics";var Q=_.GH(cJd);_.mw(A,Q);A.async=!0;_.Bj(this.hostElement).appendChild(A)};
tg.prototype.dataChanged=tg.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],tg.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],tg.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],tg);
_.W(tg,"ytd-channel-metadata-renderer",function(){if(xVM!==void 0)return xVM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xVM=A},{mode:1});var z8q;var w0n;var rj=function(){var A=_.q.apply(this,arguments)||this;A.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"]);A.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"]);A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return A};
_.O(rj,_.q);_.d=rj.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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_]]"}}}}}};
_.d.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.d.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.d.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.d.computeAlertStyle_=function(A){return A};
_.d.observerElementsPerRow=function(){this.elementsPerRow&&_.Uc(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.d.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.d.requestElementsPerRow=function(){_.Bn(this.hostElement,"yt-request-elements-per-row")};
rj.prototype.onIsVisibleChanged_=rj.prototype.onIsVisibleChanged_;rj.prototype.observerElementsPerRow=rj.prototype.observerElementsPerRow;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],rj.prototype,"actionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],rj.prototype,"data",void 0);_.E([_.C({value:6,reflectToAttribute:!0}),_.c("design:type",Number)],rj.prototype,"elementsPerRow",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],rj.prototype,"wrapButtons",void 0);_.E([_.C({value:_.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.c("design:type",Boolean)],rj.prototype,"isMusic",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.c("design:type",String)],rj.prototype,"alertStyle",void 0);_.E([_.C({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.c("design:type",Function)],rj.prototype,"dismissBoundButtonTap_",void 0);_.E([_.C({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.c("design:type",Function)],rj.prototype,"acceptBoundButtonTap_",void 0);_.E([_.iN("elementsPerRow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rj.prototype,"observerElementsPerRow",null);_.E([_.iN("data.isVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rj.prototype,"onIsVisibleChanged_",null);_.E([_.Ec({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],rj);
_.W(rj,"yt-alert-with-actions-renderer",function(){if(w0n===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;z8q===void 0&&(z8q=document.createElement("template"));var f=z8q;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);w0n=A}A=w0n;return A},{mode:2});_.pE(_.aP(function(A){function Q(l){var J={};return _.X(_.Rb,{text:l,className:_.O4("ytPersonalGreetingViewModelHeadline",(J.ytPersonalGreetingViewModelHeadlineSmall=function(){return p()===48},J))})}
function b(l,J){return _.X("span",{el:l,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},Q(J))}
var f=_.d_(_.Zb(function(){var l;return(l=A.data())==null?void 0:l.rendererContext},void 0,void 0,void 0,!0)),a=_.st("span"),T=_.st("span"),G=function(){return A.data().canvasPromoData},p=function(){var l;
return(l=A.data().bannerHeight)!=null?l:56},P=_.DaW(f,{throttleMs:100}),U=_.DaW(a,{throttleMs:100}),L=_.DaW(T,{throttleMs:100}),M=function(){return U.width()-P.width()>1};
return _.X("yt-personal-greeting-view-model",{el:f,"aria-hidden":M,class:_.O4(A.className,"ytPersonalGreetingViewModelHost"),style:_.qM({height:(0,_.cx)(function(){return M()?0:p()})})},_.X(_.S,{cond:function(){return A.data().avatar&&!(L.width()+(A.data().avatar?48:0)-P.width()>1)},
then:function(){return _.X(_.WL,{data:function(){return A.data().avatar}},{decoratedAvatarViewModel:function(l){return _.X(_.E9,{data:l.data,
className:_.O4("ytPersonalGreetingViewModelAvatar")})}})}}),_.X("h1",null,Q(function(){var l;
return(G==null?void 0:(l=G())==null?void 0:l.headline)||(L.width()+(A.data().avatar?48:0)-P.width()>1?A.data().shorterGreeting:A.data().greeting)})),b(T,function(){return A.data().greeting}),b(a,function(){return A.data().shorterGreeting}))},"xj"),"yt-personal-greeting-view-model",{props:{data:_.Qf,
className:_.Qf}});var jo=function(){var A=_.q.apply(this,arguments)||this;A.hidden=!1;A.isConstrainedList=!1;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.responsiveSizing="COMPACT";A.attachedPlayers=_.K("kevlar_channel_trailer_multi_attach")?[]:void 0;A.player=null;A.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return A};
_.O(jo,_.q);_.d=jo.prototype;
_.d.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}}}}};
_.d.created=function(){var A=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){A.disposeMastheadAd()}]};
_.d.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new hrq(this.refresh,this.contents))};
_.d.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.d.activeChanged=function(){var A=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=A)};
_.d.tabsChanged=function(){var A=this,Q,b;if(this.pageSubtype==="channels"||_.K("kevlar_tab_gestures_for_tabbed_header_data")&&((Q=this.data)==null?0:(b=Q.header)==null?0:b.carouselHeaderRenderer))this.tabGestures=new Wq(this.contents,this.contents,this.hostElement,this.header,function(G){A.ytdReduxBehavior.dispatch(G)});
var f,a,T;Q=(f=this.data)==null?void 0:(a=f.contents)==null?void 0:(T=a.twoColumnBrowseResultsRenderer)==null?void 0:T.tabs;this.tabGestures&&this.tabGestures.tabsChanged(Q)};
_.d.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.d.engagementPanelsChanged=function(){var A=_.fJ().resolve(_.r8);if(A){if(this.engagementPanels)for(var Q=_.F(this.engagementPanels),b=Q.next();!b.done;b=Q.next()){var f=void 0;(b=(f=b.value.identifier)==null?void 0:f.tag)&&A.panelMap.delete(b)}this.engagementPanels=[];var a;Q=_.F(((a=this.data)==null?void 0:a.panels)||[]);for(a=Q.next();!a.done;a=Q.next()){a=_.V(a.value,_.FFN);var T=b=void 0,G=void 0,p=void 0;if(f=((b=a)==null?void 0:b.targetId)||((T=a)==null?void 0:T.panelIdentifier)||((G=a)==
null?void 0:(p=G.identifier)==null?void 0:p.tag))T=b=void 0,(T=(b=A).registerPanelContent)==null||T.call(b,f,{engagementPanelSectionListRenderer:a}),this.engagementPanels.push(a)}}};
_.d.onStampFinished=function(){var A=this;_.mL(this,function(){if(A.tabGestures){var Q=A.tabGestures;if(Q.scrollPositionNeedsUpdate){var b=_.fJ().resolve(_.bu(_.F7)),f;if((f=Q.selectedTab)!=null&&f.title&&b&&(f=b.getCurrentPage())){if(Q.scrollPositionForTabs.has(Q.selectedTab.title)){var a,T;b=(T=(a=b.getCurrentPage())==null?void 0:a.clientHeight)!=null?T:0;a=Q.scrollPositionForTabs.get(Q.selectedTab.title);f.setScrollTop(a);b>a+100&&(Q.scrollPositionNeedsUpdate=!1)}else f.setScrollTop(Math.min(Q.lastVisitedTabScrollPosition!==
void 0?Q.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,Q.tabsStartAtInPx)),Q.scrollPositionNeedsUpdate=!1;Q.ytdReduxDispatch(X67(!1))}}}})};
_.d.loadPage_=function(A){this.initCsi();A&&(this.data=A);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.d.getTitle=function(A){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",A))return this.get("microformat.microformatDataRenderer.title",A);if(this.get("header.feedTabbedHeaderRenderer.title",A))return _.mO(this.get("header.feedTabbedHeaderRenderer.title",A));if(this.get("header.interactiveTabbedHeaderRenderer.title",A))return this.get("header.interactiveTabbedHeaderRenderer.title",A);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
A))return _.mO(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",A));var Q,b;return _.K("enable_page_header_page_title")&&(A==null?0:(Q=A.header)==null?0:(b=Q.pageHeaderRenderer)==null?0:b.pageTitle)?A.header.pageHeaderRenderer.pageTitle:""};
_.d.updateTitle=function(A){_.Bn(this.hostElement,"yt-update-title",this.getTitle(A))};
_.d.initCsi=function(){_.ji(this.pageSubtype||"browse",["ol","cpt"])};
_.d.getPlayer=function(){if(_.K("kevlar_channel_trailer_multi_attach")){for(var A=_.F(this.attachedPlayers),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.isConnected||_.vo(this.hostElement,Q))return Q;return null}return this.player};
_.d.getPlayerContainer=function(){return null};
_.d.onPlayerAttached=function(A,Q){_.K("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(Q):this.player=Q};
_.d.onPlayerDetached=function(A,Q){_.K("kevlar_channel_trailer_multi_attach")?(A=this.attachedPlayers.indexOf(Q),A<0||this.attachedPlayers.splice(A,1)):this.player=null};
_.d.getServiceTrackingParams=function(){var A,Q;return((A=this.data)==null?void 0:(Q=A.responseContext)==null?void 0:Q.serviceTrackingParams)||[]};
_.d.setMastheadAd=function(A){A&&A.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=A&&A.mastheadAd};
_.d.dataChanged=function(){var A=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.$dq();_.mL(this,function(){_.Pn(A.hostElement,"ytd-update-grid-state-action")})};
_.d.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.d.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(Q){return!!Q.alertWithActionsRenderer})}};
_.d.computeGreetingData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(Q){return!!Q.personalGreetingViewModel})}};
_.d.computeHasMemberHubProfileRenderer=function(A){var Q;return!!(A==null?0:(Q=A.header)==null?0:Q.memberHubProfileRenderer)};
_.d.handleAlertCommand=function(A){this.get("alertCommand.alert.alertWithActionsRenderer",A)&&(A=_.V(A,OiO),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",A.alert))};
_.d.handleYtPlaylistDeletionRedirect=function(A){A=this.get("playlistDeletionRedirectCommand.redirectEndpoint",A);_.Bn(this.hostElement,"yt-navigate",{endpoint:A})};
_.d.computeFluidWidth=function(A,Q,b){if(Q==="mini_app"||b)return!0;var f,a,T;A=A==null?void 0:(f=A.contents)==null?void 0:(a=f.twoColumnBrowseResultsRenderer)==null?void 0:(T=a.tabs)==null?void 0:T.find(function(P){var U;return P==null?void 0:(U=P.tabRenderer)==null?void 0:U.selected});
if(!A)return!1;var G,p;return!!((G=A.tabRenderer)==null?0:(p=G.content)==null?0:p.richGridRenderer)&&!["channel","channels","playables"].includes(Q)};
_.d.computeHeaderFluidWidth=function(A){return A==="hashtag-landing-page"};
_.d.computeHasSidebar=function(A){var Q;return!!(A.sidebar||((Q=A.header)==null?0:Q.playlistHeaderRenderer))};
_.d.computeHasPageHeaderSidebar=function(A){var Q,b;return!!((Q=A.header)==null?0:(b=Q.pageHeaderRenderer)==null?0:b.enableSidebarView)};
_.d.computeUseUnifiedShowPageLayout=function(A){if(!A||this.pageSubtype!=="show"||!A.sidebar||!A.sidebar.playlistSidebarRenderer)return!1;A=A.sidebar.playlistSidebarRenderer;if(!A.items)return!1;for(var Q=0;Q<A.items.length;Q++)if(_.V(A.items[Q],ei)){var b=void 0;return((b=_.V(A.items[Q],ei))==null?void 0:b.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.d.computeIsConstrainedList=function(A){return _.K("web_enable_constrained_list_subscriptions_channels")&&A==="subscriptions-channels"};
_.d.computeResponsiveSizing=function(A){return A==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Qr.Object.defineProperties(jo.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var A,Q;return((A=this.data)==null?0:(Q=A.header)==null?0:Q.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var A,Q;if(!((A=this.data)==null?0:(Q=A.sidebar)==null?0:Q.playlistSidebarRenderer))return!1;var b;return(b=this.data)!=null&&b.header?!1:!0}}});
_.Qr.Object.defineProperties(jo,{template:{configurable:!0,enumerable:!0,get:function(){if(E6M===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);E6M=A}A=E6M;return A}}});
jo.prototype.dataChanged=jo.prototype.dataChanged;jo.prototype.onPlayerDetached=jo.prototype.onPlayerDetached;jo.prototype.onPlayerAttached=jo.prototype.onPlayerAttached;jo.prototype.onStampFinished=jo.prototype.onStampFinished;jo.prototype.engagementPanelsChanged=jo.prototype.engagementPanelsChanged;jo.prototype.scrollAtTopChanged=jo.prototype.scrollAtTopChanged;jo.prototype.tabsChanged=jo.prototype.tabsChanged;jo.prototype.activeChanged=jo.prototype.activeChanged;
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],jo.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Re.YtPageBehavior),_.c("design:type",Object)],jo.prototype,"ytPageBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],jo.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],jo.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jo.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],jo.prototype,"hidden",void 0);
_.E([_.C(),_.c("design:type",Object)],jo.prototype,"mastheadAdData",void 0);_.E([_.C({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.c("design:type",Object)],jo.prototype,"alertBannerData",void 0);_.E([_.C({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.c("design:type",Object)],jo.prototype,"greetingData",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],jo.prototype,"pageSubtype",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.c("design:type",Boolean)],jo.prototype,"hasMemberHubProfileRenderer",void 0);_.E([_.C({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],jo.prototype,"hasSidebar",void 0);_.E([_.C({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],jo.prototype,"hasPageHeaderSidebar",void 0);
_.E([_.C({reflectToAttribute:!0,value:!0}),_.c("design:type",Boolean)],jo.prototype,"roundedContainer",void 0);_.E([_.C({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],jo.prototype,"useUnifiedShowPageLayout",void 0);_.E([_.C({computed:"computeIsConstrainedList(pageSubtype)"}),_.c("design:type",Object)],jo.prototype,"isConstrainedList",void 0);
_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],jo.prototype,"usePlaylistHeaderRenderer",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],jo.prototype,"useOldPlaylistSidebarRenderer",null);_.E([_.C({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.c("design:type",Boolean)],jo.prototype,"fluidWidth",void 0);_.E([_.C({selector:function(A){return A.ui.scrollAtTop}}),
_.c("design:type",Boolean)],jo.prototype,"scrollAtTop",void 0);_.E([_.C({selector:_.dzM}),_.c("design:type",Boolean)],jo.prototype,"tabGesturesIsActive",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],jo.prototype,"darkerDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.c("design:type",Boolean)],jo.prototype,"disableHeaderFluidWidth",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.c("design:type",String)],jo.prototype,"responsiveSizing",void 0);_.E([_.V1("ytd-two-column-browse-results-renderer"),_.c("design:type",HTMLElement)],jo.prototype,"contents",void 0);_.E([_.V1("#header"),_.c("design:type",HTMLElement)],jo.prototype,"header",void 0);_.E([_.V1("ytd-refresh"),_.c("design:type",Object)],jo.prototype,"refresh",void 0);
_.E([_.iN("active"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jo.prototype,"activeChanged",null);_.E([_.iN("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jo.prototype,"tabsChanged",null);_.E([_.iN("scrollAtTop"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jo.prototype,"scrollAtTopChanged",null);
_.E([_.C(),_.c("design:type",Object)],jo.prototype,"engagementPanels",void 0);_.E([_.iN("data.panels"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jo.prototype,"engagementPanelsChanged",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jo.prototype,"onStampFinished",null);
_.E([_.Kc("yt-player-attached"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Element]),_.c("design:returntype")],jo.prototype,"onPlayerAttached",null);_.E([_.Kc("yt-player-detached"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Element]),_.c("design:returntype")],jo.prototype,"onPlayerDetached",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jo.prototype,"dataChanged",null);
_.E([_.h({is:"ytd-browse"})],jo);_.Uk.registerService(_.$dC,jo);
_.jY();
}catch(e){_._DumpException(e)}
try{
_.rv("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 nj,Vcr,OkF,nwx,k9M,IfF,Hkt,C0O,q8t,owx,tcM,rjx,R2N,gwF,h2l,WLx,vw7,xH7,cjO,z27,wtn,kb,Zkn,IM,yjx,Y8q,DHs,$Hs,NKO,mHr,Qiq,sNd,jNx,b1n,fyF,ayd,TGK,dW7,F7N,pRs,Phx,XRl,Svd,L7M,MUN,K7N,Jxn,VUl,O1M,kLt,H1t,Chr,qvt,ofl,tUK,rxq,jiF,RzN,gfd,ezN,hzx,W7F,vfs,EfN,xWN,cx7,zzM,wR7,uMd,yxK,Yvs,DWn,$Wr,NGN,six,mWx,AQM,QFN,bDt,fV7,aV7,T2x,dBK,FEd,Go7,B2x,pnO,Pir,Xnt,Sl7,UBn,LEx,MTO,lVN,KEK,iDl,JQr,VTt,ODO,gM,n_x,kox,IVN,Cin,qlK,o_K,tTN,rQF,jF7,RnM,hnF,ZD7,$BM,N2l,bOt,f5O,QXl,mBn,FOs,pON,M$d,sF7,XOn,G7F,xb,KOd,
V$x,k7x,OOs,nLM,I5q,oLt,Cgs,t$n,rHM,qrN,HOx,jXt,uW,ZC,vLl,ELK,yk,xex,cHx,zmx,Den,$eF,Yb,DC,sXN,Nsn,meF,AEN,Qzr,$b,Nv,s_,B6K,pYd,PBl,A5,MLn,XYK,LWq,lkq,SYN,iTO,UjN,OTn,JEn,VL7,QW,kxK,nrt,qYl,jzd,T4,dJ,tLO,grt,rEl,RMn,G4,p5,P4,XX,bcl,ZTF,TnN,dJF,F5M,GUr,pjd,xjx,cEx,L5,wYd,Sj,UF,uZn,Bnq,fwx,zMq,l5,XjO,Scs,UJN,MKx,K5F,icx,JuO,VKx,nlr,Ocn,IwO,Hcs,qcF,olN,ruN,j_F,RBn,glK,eBs,W5r,vlx,ElM,xJn,cuO,zBs,wj7,Zcx,yuM,Ycr,DJN,$JM,s_q,NnM,mJn,A8F,i5,QPl,b0O,J5,f3N,a3N,TFx,d7O,FXq,Geq,BFs,p8N,Pe7,SGr,VW,U7l,LXx,
KXd,J8x,VMO,nzn,O0M,keO,I3x,H0M,qGF,oz7,tMK,r8s,jPt,RUM,gz7,eUF,hUN,WXK,vzO,EzM,w8t,upq,c8l,zUK,x7s,Z0N,D7N,y8N,YGq,sPq,$7N,NFF,m7t,Afl,QY7,bEr,act,T_t,dMs,GZO,B_t,Pcx,S4t,L4d,lcx,iEt,VlF,nox,IcM,q4x,ooO,tlr,jYr,rfO,goK,evs,hvx,W4F,n5,vox,EoN,xMF,N_K,mMM,Ayd,abl,Tzx,dIO,Fml,BzM,GGO,pLx,PJ7,XLl,ShF,UId,ef,Lm7,qw,MlK,MJN,lbl;
nj=function(A){if(!A)return"browse";var Q=A.page,b=A.url,f,a,T,G=(f=A.response)==null?void 0:(a=f.responseContext)==null?void 0:(T=a.webResponseContextExtensionData)==null?void 0:T.pageTheme;if(G)Q=G.toLowerCase().replace(/_/g,"-");else if(Q!=="watch"&&Q!=="learning_journey_watch"){var p,P;if((Q==="browse"||Q==="settings")&&((p=A.response)==null?0:(P=p.sidebar)==null?0:P.settingsSidebarRenderer))Q="WEB_PAGE_TYPE_SETTINGS";else{var U,L;Q==="browse"&&((U=A.response)==null?0:(L=U.metadata)==null?0:L.channelMetadataRenderer)?
Q="channel":b&&(Q=_.VK(b)||Q)}}return Q};
Vcr=function(){var A=_.zV("yt.aba.att");return A?A:_.ll.instance!==void 0?_.ll.instance.d0S.bind(_.ll.instance):null};
OkF=function(A,Q){var b;return _.B(function(f){return(b=Vcr())?f.return(b(A,Q,6E4)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
nwx=function(A,Q,b,f,a){Q=Q===void 0?[]:Q;a=a?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:a}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.T7(A),dialogMessages:Q.map(function(T){return _.T7(T)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.T7(b),serviceEndpoint:a}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.T7(f)}}}}}};
k9M=function(A){var Q=!!_.$g().queueProxy;var b,f,a;A=A==null?void 0:(b=A.response)==null?void 0:(f=b.currentVideoEndpoint)==null?void 0:(a=f.watchEndpoint)==null?void 0:a.playlistId;return!(!Q&&!A)};
IfF=function(A,Q){var b=_.kg();if(k9M(A))return b.playlistWatchPageActivation=!0;switch(nj(Q)){case "yts-products":return b.productDetailsPageActivation=!0;case "mini_app":return b.miniAppPageActivation=!0;case "playables":return b.playablesDestPageActivation=!0;default:return!1}};
Hkt=function(A,Q,b){for(var f=typeof A==="string"?A.split(""):A,a=A.length-1;a>=0;--a)a in f&&Q.call(b,f[a],a,A)};
C0O=function(A,Q){Q=_.J4W(A,Q);Q>=0&&_.nCb(A,Q)};
q8t=function(A){return Array.prototype.concat.apply([],arguments)};
owx=function(A){var Q=0;Q=Q===void 0?0:Q;if(!_.yp(A))throw _.mJ("uint64");var b=typeof A;switch(Q){case 512:switch(b){case "string":return _.H$i(A);case "bigint":return String((0,_.ps)(64,A));default:return _.kre(A)}case 1024:switch(b){case "string":return _.CY4(A);case "bigint":return _.g9((0,_.ps)(64,A));default:return _.IKC(A)}case 0:switch(b){case "string":return _.H$i(A);case "bigint":return _.g9((0,_.ps)(64,A));default:return _.n1e(A)}default:return _.x1(Q,"Unknown format requested type for int64")}};
tcM=function(A){A!=null&&(A=A.JSC$8761_value_||"",A=typeof A==="string"?A:new Uint8Array(A));return A};
rjx=function(A,Q){if(/-[a-z]/.test(Q))return null;if(_.z7W&&A.dataset){if(_.Py9()&&!(Q in A.dataset))return null;A=A.dataset[Q];return A===void 0?null:A}return A.getAttribute("data-"+_.Vr(Q))};
R2N=function(){var A=jNx;_.zV("yt.ads.biscotti.getId_")||_.Al("yt.ads.biscotti.getId_",A)};
gwF=function(A){_.Al("yt.ads.biscotti.lastId_",A)};
h2l=function(){var A={};for(_.t$=new e2O(A.handleError===void 0?_.hq:A.handleError,A.logEvent===void 0?_.R4:A.logEvent);_.re.length>0;)switch(A=_.re.shift(),A.type){case "ERROR":_.t$.logError(A.payload);break;case "EVENT":_.t$.logEvent(A.eventType,A.payload)}};
WLx=function(A,Q,b){return _.emJ(function(f){return b?f.userIdentifier!==void 0&&!A.includes(f.userIdentifier)&&b.includes(f.publicName):f.userIdentifier!==void 0&&!A.includes(f.userIdentifier)},Q)};
vw7=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1)return Q=_.nJ("YtIdbMeta hasAnyMeta other"),f.yield(_.emJ(function(a){return a.userIdentifier!==void 0&&a.userIdentifier!==Q},A),2);
b=f.yieldResult;return f.return(b.length>0)})};
xH7=function(A,Q){Ewn||(Ewn=_.j7.addLowPriorityJob(function(){var b,f,a,T,G;return _.B(function(p){switch(p.nextAddress){case 1:return p.yield(_.Q7(),2);case 2:b=p.yieldResult;if(!b)return p.return();f=!0;_.ML(p,3);return p.yield(WLx(A,b,Q),5);case 5:a=p.yieldResult;if(!a.length){f=!1;p.jumpTo(6);break}T=a[0];return p.yield(_.yb(T.actualName),7);case 7:return p.yield(_.$R(T.actualName,b),6);case 6:_.Z1(p,4);break;case 3:G=_.Vw(p),_.jt(G),f=!1;case 4:_.j7.cancelJob(Ewn),Ewn=0,f&&xH7(A,Q),_.Oi(p)}})}))};
cjO=function(){var A;return _.B(function(Q){return Q.nextAddress==1?Q.yield(_.Q7(),2):(A=Q.yieldResult)?Q.return(vw7(A)):Q.return(!1)})};
z27=function(A){var Q=100;Q=Q===void 0?500:Q;var b,f,a,T,G,p;return _.B(function(P){return P.nextAddress==1?(b=_.vG("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[b,(0,_.f4)()-2592E6],a=[b,(0,_.f4)()],T=IDBKeyRange.bound(f,a),P.yield(_.GeC(A),2)):P.nextAddress!=3?(G=P.yieldResult,p=[],P.yield(_.D1(G,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(U){p.length=0;return _.ax(U.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:T,direction:"prev"},function(L){if(L.getValue()&&p.length<
Q)return p.push(L.getValue()),L.delete().then(function(){return L.continue()})})}),3)):P.return(p)})};
wtn=function(){var A;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(_.Q7(),2);A=Q.yieldResult;if(!A||!_.kR()&&!_.K("nwl_init_require_datasync_id_killswitch")||!_.CeA())return Q.jumpTo(0);_.oz6=!0;_.qGA.isNwlInitialized=_.oz6;return Q.yield(_.pR$().awaitInitialization(),0)})};
kb=function(A,Q){_.Z0b[A]=!0;var b=_.Fd();b&&b.publish.apply(b,arguments);_.Z0b[A]=!1};
Zkn=function(){if(_.nlU()&&!uv7){var A=function(b){b=b.data;if(b.op==="serializedGelBatch"){var f=_.yfF.get(b.key);f&&(_.DMW(b.serializedBatch,f.client,f.resolve,f.networklessOptions,f.isIsolated,f.useVSSEndpoint,f.dangerousLogToVisitorSession,f.requestsOutstanding),_.yfF.delete(b.key))}},Q=_.OcX();
Q&&(Q.addEventListener("message",A),Q.onerror=function(){_.yfF.clear()});
uv7=!0}};
IM=function(){this.relativeTimeStart_=_.G0()};
yjx=function(A,Q){A!=null&&this.append.apply(this,arguments)};
Y8q=function(){return _.zL("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
DHs=function(A,Q,b){b=b===void 0?!1:b;var f,a,T,G,p;return _.B(function(P){switch(P.nextAddress){case 1:_.Vb("SOCS",A,34128E3,"youtube.com",!0);if(_.lT)return a=fetch(Q,{method:"POST",mode:_.Dy(Q),credentials:_.Yf(Q),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),T=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Dy("/upgrade_visitor_cookie?eom=1"),credentials:_.Yf("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),P.yield(Promise.all([a,T]).then(function(U){return U[1]}),5);
fetch(Q,{method:"POST",mode:_.Dy(Q),credentials:_.Yf(Q),cache:"no-store",headers:{"Content-Type":"text/plain"}});return P.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Dy("/upgrade_visitor_cookie?eom=1"),credentials:_.Yf("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:f=P.yieldResult;P.jumpTo(3);break;case 5:f=G=P.yieldResult;case 3:if(!f.ok)throw Error("mf");return P.yield(f.text(),7);case 7:p=P.yieldResult,
!p.includes('"state_switch":true')&&!b||p.includes("skip_reload_for_test")||window.location.reload(),_.Oi(P)}})};
$Hs=function(A){return _.B(function(Q){return Q.nextAddress==1?Q.yield(DHs(A.socsCookie,A.savePreferenceUrl,!0),2):Q.return()})};
NKO=function(A){return _.B(function(Q){return Q.nextAddress==1?Q.yield(DHs(A.socsCookie,A.savePreferenceUrl),2):Q.return()})};
mHr=function(A){A=A.xhr.responseText;if(!_.TX(A,")]}'"))throw new HC;A=JSON.parse(A.substr(4));if((A.type||1)>1)throw new HC;A=A.id;gwF(A);Cj=_.AY(A);sNd(18E5,2);return A};
Qiq=function(A,Q){Q=new AxF(Q);gwF("");Cj=_.s3$(Q);A>0&&sNd(12E4,A-1);throw Q;};
sNd=function(A,Q){_.Xe(function(){_.FLF().then(mHr,function(b){return Qiq(Q,b)}).thenCatch(_.nw)},A)};
jNx=function(){var A=_.ptq();if(A!==void 0)return _.gF(A);Cj||(Cj=_.FLF().then(mHr).thenCatch(function(Q){return Qiq(2,Q)}));
return Cj};
b1n=function(){var A=document;return _.R9(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(Q){return"on"+Q.toLowerCase()in A})};
fyF=function(A){A.addEventListener("click",function(Q){var b=Q.target;b&&b.getAttribute("href")&&(b=b.getAttribute("href"),_.Y8(window,b,"_blank"),Q.preventDefault(),Q.stopImmediatePropagation())})};
ayd=function(A){var Q,b,f,a=(f=(b=((Q=A.mainDownloadsListEntity)!=null?Q:{})[_.C$b])==null?void 0:b.refresh)!=null?f:"",T;A=(T=A.refresh)==null?void 0:T[a];a=A!=null?A:{};return(a==null?0:a.refreshTime)?Number(a==null?void 0:a.refreshTime):0};
TGK=function(A,Q){var b=_.tH(A);return Q.every(function(f){var a;f=f==null?void 0:(a=f.playbackDataEntity)==null?void 0:a.key;if(!f)return!1;a=_.LO(_.Xg(f).entityId,"mainVideoEntity");return!!b[a]})};
dW7=function(A){A=_.CO(A.entities);return _.ch4(A).length};
F7N=function(A,Q){if(Q){var b;A=(b=_.Me(A.entities,"downloadQualityPickerEntity",Q))!=null?b:void 0}else A=void 0;return A};
pRs=function(){GLs||(_.Ne=_.HWF,GLs=new BG7);return GLs};
Phx=function(A){var Q=document.getElementsByTagName("ytd-enforcement-message-view-model");Q.length===0||getComputedStyle(Q[0]).display==="none"?A(0,"p.h_"):A(1,"p.h_")};
XRl=function(){qv=0;var A=[_.HY(!0)];oM&&_.Pn(oM,"yt-window-resized",A)};
Svd=function(){qv||(qv=_.j7.addLowPriorityJob(XRl,200))};
L7M=function(){te=0;UWK=_.wMj(document);var A=[UWK];oM&&_.Pn(oM,"yt-window-scrolled",A)};
MUN=function(){te||(te=_.j7.addLowPriorityJob(L7M,200))};
K7N=function(A){A=A===void 0?null:A;lyq.push(_.bv(window,"resize",Svd));lyq.push(_.bv(window,"scroll",MUN));A&&(oM=A)};
Jxn=function(){var A={isWide:_.J$.get("wide","0")==="1"},Q=_.nD();if(Q=Q.getFlag(165)||Q.getFlag(174))A.theme=_.jL(!0);if(_.l_e()){var b=_.r6()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";A.systemTheme=b}!Q&&_.K("parent_tools_enable_app_settings")&&_.YQ(window.location.href).theme!==void 0&&(A.theme=_.jL());if((Q=rM)?!_.j2.equals(Q,A):A)Q={currentValue:A},i1M&&(Q.timeSinceLastSnapshotSecs=Math.round(((0,_.f4)()-i1M)/1E3)),rM&&(Q.previousValue=rM),_.R4("appSettingsCaptured",Q),rM=A,i1M=
(0,_.f4)()};
VUl=function(A){_.B(function(Q){if(Q.nextAddress==1)return Q.yield(A.delete("yt-appshell-assets"),2);_.Oi(Q)})};
O1M=function(A){return _.YR((0,_.HfY)(),A)};
kLt=function(){var A;_.B(function(Q){return Q.nextAddress==1?Q.yield(jf.getInstance(),2):(A=Q.yieldResult)?Q.yield(nfO(A),0):Q.jumpTo(0)})};
H1t=function(){var A;_.B(function(Q){return Q.nextAddress==1?Q.yield(RM.getInstance(),2):(A=Q.yieldResult)?Q.yield(IyN(A),0):Q.jumpTo(0)})};
Chr=function(A){VUl(A);kLt();H1t()};
qvt=function(A){var Q,b;return _.B(function(f){if(f.nextAddress==1)return f.yield(_.EJ6(A),2);if(Q=f.yieldResult){var a;a:{if(Q.headers&&(a=Q.headers.get("date"))&&(a=Date.parse(a),!isNaN(a))){a=Math.round((0,_.f4)()-a);break a}a=-1}b=a;if(b>-1)return f.return(b)}return f.return(-1)})};
ofl=function(){var A=_.by.caches,Q=_.Ep("IS_SHELL_LOAD"),b,f;_.B(function(a){if(a.nextAddress==1)return b=-1,Q?a.yield(qvt(A),3):(f=_.oF(),b=Math.round((0,_.f4)()-f),a.jumpTo(2));a.nextAddress!=2&&(b=a.yieldResult);b>=0&&b<2147483648&&_.g2({appInstallDataAgeMs:b});_.Oi(a)})};
tUK=function(A){var Q=_.co(_.by.location.href),b={};"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(f){var a=Q.JSC$9973_queryData_.getValues(f);if(a==null?0:a.length)b[f]=a});
return _.Bl(A,new Map(Object.entries(b)))};
rxq=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
jiF=function(A){if(_.axY()){var Q=Object.keys(window.localStorage);Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=rxq(b);f===void 0||A.includes(f)||self.localStorage.removeItem(b)}}};
RzN=function(){if(!_.axY())return!1;var A=_.nJ(),Q=Object.keys(window.localStorage);Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())if(b=rxq(b.value),b!==void 0&&b!==A)return!0;return!1};
gfd=function(A){return _.Lj("NotificationsDisabled",A)};
ezN=function(){return Notification.permission!="granted"?Promise.resolve():_.FMN().then(function(A){return A?A.pushManager.getSubscription().then(function(Q){if(Q)return Promise.resolve();Q={userVisibleOnly:!0,applicationServerKey:_.$C("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return A.pushManager.subscribe(Q).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
hzx=function(A){return _.FMN().then(function(Q){if(!Q||!Q.active)return Promise.reject(new _.IO("serviceworker.postMessage",A,Q));try{return Q.active.postMessage(A),Promise.resolve()}catch(b){return Promise.reject(b)}})};
W7F=function(){hzx({type:"notifications_register",data:_.vG("ID_TOKEN")})};
vfs=function(){if(!_.Ep("LOGGED_IN"))return Promise.resolve(!1);var A=_.Br("service_worker_push_force_notification_prompt_tag");return A?_.VN("PromptTags").then(function(Q){if(!Q)return!0;var b=[];try{b=JSON.parse(Q)}catch(f){return!1}return b&&b.indexOf(A)==-1}):Promise.resolve(!1)};
EfN=function(){var A=_.GP("service_worker_push_prompt_delay_microseconds");return A?_.VN("PromptTime").then(function(Q){return Promise.resolve(Date.now()-A>(Q||0))}):Promise.resolve(!0)};
xWN=function(){var A=_.GP("service_worker_push_logged_out_prompt_watches");return A==-1?Promise.resolve(!1):_.VN("WatchCount").then(function(Q){return Q>=A})};
cx7=function(){var A=_.PL(document,"yt-push-prompt-modal-bg");A&&_.im(A)};
zzM=function(){return _.GP("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.VN("PromptCount").then(function(A){A||(A=0);return Promise.resolve(A<_.GP("service_worker_push_prompt_cap"))})};
wR7=function(A){return _.Ep("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Ep("LOGGED_IN")&&(A===void 0?0:A)?vfs().then(function(Q){if(Q)return!0;Q=[zzM(),EfN()];_.Ep("LOGGED_IN")||Q.push(xWN());return Promise.all(Q).then(function(b){return b.every(function(f){return f})})}):Promise.resolve(!1)};
uMd=function(){_.VN("PromptCount").then(function(A){return _.Lj("PromptCount",A+1)}).then(function(){return _.Lj("PromptTime",Date.now())}).then(function(){var A=_.Br("service_worker_push_force_notification_prompt_tag");
if(A)return _.VN("PromptTags").then(function(Q){var b=[];if(Q)try{b=JSON.parse(Q)}catch(f){return!1}b||(b=[]);b.push(A);return _.Lj("PromptTags",JSON.stringify(b))})})};
yxK=function(){Z1x||cx7()};
Yvs=function(A){A.style.zIndex=2147483648;A.style.pointerEvents="auto";A.style.backgroundColor="rgba(0, 0, 0, 0.6)";A.style.width="100%";A.style.height="100vh";A.style.position="absolute";A.style.top="0";A.style.left="0";A.style.border="none"};
DWn=function(){var A=_.PL(document,"yt-push-prompt-modal-bg");Z1x=_.K("service_worker_push_prompt_modal_ignore_click");A?Yvs(A):(A=_.rh("div",{id:"yt-push-prompt-modal-bg"}),Yvs(A),document.body.appendChild(A),_.c8J(document,"click",yxK))};
$Wr=function(){var A=arguments;_.K("service_worker_push_prompt_modal_enable")&&DWn();return Notification.requestPermission().then(function(Q){cx7();var b=document.getElementById("ticker");b&&(b.className=b.classList.remove("show"));if(Q=="granted")return ezN().then(function(){gfd(!1);W7F();return Promise.resolve(!0)});
Q=="denied"&&W7F();return Promise.resolve(!1)}).catch(function(){cx7();
return Promise.reject.apply(Promise,_.ri(A))})};
NGN=function(A){A=A===void 0?!1:A;var Q=_.OaF().client;if(Q&&Q.browserVersion){var b=Q.browserVersion,f=Q.browserName=="CHROME"&&_.LF(b,"50.0.0")<0;Q=Q.browserName=="OPERA"&&_.LF(b,"42.0.0")<0;if(f||Q)return Promise.resolve()}return _.p_x().then(function(a){if(!a)return Promise.resolve();a=ezN().then(function(){return hzx({type:"notifications_check_registration",data:_.vG("ID_TOKEN")})});
return Notification.permission!="default"?a.catch(function(){}):a.then(function(){return wR7(A)}).then(function(T){if(T)return uMd(),$Wr().then(function(){})}).catch(function(){})})};
six=function(A){return _.GIt(A)?NGN():Promise.resolve()};
mWx=function(A){var Q=A.installing||A.waiting;return A.active||!Q?Promise.resolve(A):new Promise(function(b){var f=function(a){a=a.target;if(a.state==="activated"||a.state==="redundant")Q.removeEventListener("statechange",f),b(A)};
Q.addEventListener("statechange",f)})};
AQM=function(){var A=new _.jWJ("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.L7(A,{mainAppWeb:_.Dk()});var Q=_.w79;_.K("service_worker_forward_exp_params")&&(Q=tUK(Q));try{var b=_.k$X(Q).catch(function(){_.Mr(A,"FAILURE");return new Promise(function(){})});
_.K("service_worker_push_enabled")&&b.then(function(f){_.Mr(A,"SUCCESS");return f}).then(mWx).then(six)}catch(f){if(_.Mr(A,"FAILURE"),f.name!=="SecurityError")throw f;
}};
QFN=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&AQM()};
bDt=function(A,Q){var b={};Q&&(b.serializedYpcFamilyCreateLoggingParams=Q);_.R4(A,b);_.go()};
fV7=function(A,Q){var b={};b.serializedYpcRefundFlowLoggingParams=Q;A&&(b.eventType=A);_.R4("ypcRefundFlowEvent",b);_.go()};
aV7=function(A){A&&_.H_A("transactionFlowSucceeded",A)};
T2x=function(A){A&&_.mb("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
dBK=function(A){A.currentTarget._data&&_.oaF(A.currentTarget._data)};
FEd=function(A,Q){if(Q=_.V(Q,_.y_))(Q==null?void 0:Q.target)==="TARGET_NEW_WINDOW"&&(A.target="_blank"),Q.nofollow&&(A.rel="nofollow")};
Go7=function(A){A=_.V(A==null?void 0:A.commandMetadata,_.KD);return(A==null?0:A.url)?A.url:null};
B2x=function(A){var Q,b,f,a,T,G,p;_.B(function(P){if(P.nextAddress==1)return P.yield(_.GaA(),2);if(P.nextAddress!=3){if(!P.yieldResult)return P.return(!1);Q=[];return P.yield(_.MM.keys(),3)}b=P.yieldResult;f=_.F(b);for(a=f.next();!a.done;a=f.next())T=a.value,G=_.dRY(T),p=G.datasyncId,!p||A.includes(p)||Q.push(_.MM.delete(T));return P.return(Promise.all(Q).then(function(U){return U.some(function(L){return L})}))})};
pnO=function(){var A,Q,b,f,a,T,G;return _.B(function(p){if(p.nextAddress==1)return p.yield(_.GaA(),2);if(p.nextAddress!=3){if(!p.yieldResult)return p.return(!1);A=_.nJ("cache contains other");return p.yield(_.MM.keys(),3)}Q=p.yieldResult;b=_.F(Q);for(f=b.next();!f.done;f=b.next())if(a=f.value,T=_.dRY(a),(G=T.datasyncId)&&G!==A)return p.return(!0);return p.return(!1)})};
Pir=function(){var A=_.fJ().resolve(_.bu(_.ZRY));return A?A.getCurrentTime():0};
Xnt=function(){var A,Q,b,f,a,T,G,p,P,U,L,M,l,J;return _.B(function(n){switch(n.nextAddress){case 1:A={},Q=_.UG9(),b=_.F(Object.entries(Q)),f=b.next();case 4:if(f.done){n.jumpTo(3);break}a=f.value;T=_.F(a);G=T.next().value;p=T.next().value;P=G;U=p;if(!U){n.jumpTo(5);break}return n.yield(U(),8);case 8:A[P]=n.yieldResult;case 5:f=b.next();n.jumpTo(4);break;case 2:L=_.F(void 0),M=L.next();case 9:if(M.done){n.jumpTo(3);break}l=M.value;J=Q[l];if(!J){n.jumpTo(10);break}return n.yield(J(),13);case 13:A[l]=
n.yieldResult;case 10:M=L.next();n.jumpTo(9);break;case 3:return n.return(A)}})};
Sl7=function(){var A;_.B(function(Q){if(Q.nextAddress==1)return Q.yield(Xnt(),2);A=Q.yieldResult;return Q.yield(navigator.clipboard.writeText(JSON.stringify(A,null,2)),0)})};
UBn=function(A,Q){return _.Me(A.entities,"superThanksSelectedTierEntity",Q)};
LEx=function(A,Q){var b=_.ncY();_.qq(function(){var f=A.value;if(f)return _.$vU(f,Q),_.NMA(f,Q,void 0,void 0,void 0,b)},[Q])};
MTO=function(A){var Q;return(Q=A.sharedUi)==null?void 0:Q.currentPageType};
lVN=function(A,Q){return{popup:{searchSuggestionReportDialog:{searchQuery:A,title:_.JQ("SBOX_INAPPROPRIATE_TITLE"),suggestions:Q,categoryLabel:_.JQ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.JQ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.JQ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.JQ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.JQ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.JQ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.JQ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.JQ("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.JQ("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.JQ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
KEK=function(A){var Q,b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D;return _.B(function(w){switch(w.nextAddress){case 1:return w.yield(_.ig(),2);case 2:return(Q=w.yieldResult)?w.yield(_.SQ6(Q),3):w.return();case 3:b=w.yieldResult;if(!b)return w.return();a=((f=b.offlineVideos)==null?void 0:f.length)||0;G=((T=b.offlinePlaylists)==null?void 0:T.length)||0;if(a===0&&G===0)return w.return();p=0;if(b.offlineVideos)for(P=_.F(b.offlineVideos),U=P.next();!U.done;U=P.next())L=U.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
L.videoState&&(p+=1);A.offline_videos_count=a.toString();_.K("kevlar_log_offline_current_network_type_ks")||(A.offline_current_network_type=(M=_.pOf())!=null?M:"CONN_INVALID");_.K("kevlar_log_updated_time_for_smart_downloads")&&(l=_.QK().getState().entities,J=_.gs(l),n=ayd(l),A.offline_smart_downloads_last_sync_time_ms=J.toString(),A.offline_smart_downloads_next_sync_time_ms=n.toString());A.offline_videos_playable=p.toString();A.offline_playlists_count=G.toString();b.offlineVideos&&(t=b.offlineVideos.reduce(function(u,
y){y.downloadedBytes&&(u+=Number(y.downloadedBytes));return u},0).toString())&&(A.offline_used_disk_space_bytes=t);
if(!((g=navigator)==null?0:(e=g.storage)==null?0:e.estimate)){w.jumpTo(4);break}return w.yield(navigator.storage.estimate(),5);case 5:x=w.yieldResult,A.offline_free_disk_space_bytes=(((D=x)==null?void 0:D.quota)||0).toString();case 4:A.offline_client_state=JSON.stringify(b),_.Oi(w)}})};
iDl=function(A){A=_.F(A);for(var Q=A.next(),b={};!Q.done;b={setter$jscomp$5:void 0},Q=A.next()){var f=Q.value;Q=f.params;f=f.service;Q&&f&&(b.setter$jscomp$5=_.B$O[f],b.setter$jscomp$5&&Q.forEach(function(a){return function(T){var G=T.key;T=T.value;G&&T&&(0,a.setter$jscomp$5)(G,T)}}(b)))}};
JQr=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
VTt=function(A){if(_.iZy()){var Q=Object.keys(window.sessionStorage);Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=JQr(b);f===void 0||A.includes(f)||self.sessionStorage.removeItem(b)}}};
ODO=function(){if(!_.iZy())return!1;var A=_.nJ(),Q=Object.keys(window.sessionStorage);Q=_.F(Q);for(var b=Q.next();!b.done;b=Q.next())if(b=JQr(b.value),b!==void 0&&b!==A)return!0;return!1};
gM=function(A,Q,b){(_.K("desktop_keyboard_shortcut_usage_log")||b&&_.K("web_shorts_keyboard_shortcut_usage_log"))&&(Q?_.Je.get(A):_.iW.get(A))&&(A=Q?_.O_.get(A):_.Vk.get(A))&&_.$_(_.WR(),A)};
n_x=function(A,Q){return A.findIndex(function(b){return b.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(Q.keyCode):!1};
kox=function(){var A,Q;return typeof CSS!=="undefined"&&((Q=(A=CSS).supports)==null?void 0:Q.call(A,"selector(:has(*))"))};
IVN=function(A){return A.visibility!=="hidden"&&A.display!=="none"};
Cin=function(A){if(kox()||A.tagName!=="DETAILS"?!A.matches(HDK):A.querySelector("summary")!==null)return-1;A=A.getAttribute("tabindex")||"0";return Number(A)};
qlK=function(A){return A.some(function(Q){return Cin(Q)>0})};
o_K=function(A){if(A.textContent)return!0;if(A instanceof HTMLInputElement){if(!A.labels)return!1;A=_.F(A.labels);for(var Q=A.next();!Q.done;Q=A.next())if(Q.value.textContent)return!0}return!1};
tTN=function(A){return A.sort(function(Q,b){return Cin(b)-Cin(Q)})};
rQF=function(A){A=Array.from(A.querySelectorAll(HDK)).filter(function(Q){return(IVN(Q.style)?IVN(window.getComputedStyle(Q)):!1)&&o_K(Q)});
return qlK(A)?tTN(A):A};
jF7=function(A){A=rQF(A);A.length>0&&A[0].focus()};
RnM=function(A,Q){Q.stack&&(A.stack+="\n"+Q.stack);return A};
hnF=function(A){var Q=ef(A,"Content-Type");if(!Q)return null;Q=Q.toLowerCase();if(Q.startsWith("application/json"))return Q.startsWith("application/json+protobuf")?new g_K:new _.Pp;if(Q.startsWith("application/x-protobuf")){A=ef(A,"Content-Transfer-Encoding");if(!A)return new he;if(A.toLowerCase()=="base64")return new enM}return null};
ZD7=function(A,Q,b,f){var a=new WEN(function(p,P){return v_r.has(P)?p.sentinel==="gal"&&p.event!==void 0:!1},function(p){p.event?(p=E_F(p.event),p=!p||xBK(f,p)?!0:_.kU(A.lastEvent,WC,2,vC)?!_.kU(p,E_,1,vC)&&!_.kU(p,WC,2,vC):!_.kU(p,E_,1,vC)&&!_.kU(p,WC,3,vC)):p=!0;
return p});
b=_.Bl(A.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",cQK(b)]]));if(A.nestedOrigins!==void 0)for(var T=_.F(A.nestedOrigins),G=T.next();!G.done;G=T.next())b=_.Bl(b,new Map([["origin",G.value]]));return zns(a,b,Q).then(function(p){p=wnq(p.event);if(_.kU(p,E_,1,vC)){var P,U=(P=_.vD(p,E_,1,vC))==null?void 0:_.e1(P,2);U&&f.JSC$19198_logErrorEvent(u5s(U));P=_.vD(p,E_,1,vC);_.e1(P,2)===4?(p=_.vD(p,E_,1,vC),p={statusCode:11,statusMessage:_.gA(p,
3)}):(p=_.vD(p,E_,1,vC),p={statusCode:12,statusMessage:_.gA(p,3)});return p}_.kU(p,WC,3,vC)?(p=_.vD(p,WC,3,vC),p={statusCode:1,consentLanguageKeys:_.gA(p,2)}):p={statusCode:1};return p}).catch(function(p){return p.errorCode!==void 0?{statusCode:p.errorCode,
statusMessage:p.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
$BM=function(A){var Q={};if(A===void 0||A===null)return Q;A.getToken()!==void 0&&yQr(A.getToken())&&yQr(A.getToken()).length>0&&(Q.scopes=new Set(yQr(A.getToken())));A.getToken()!==void 0&&YlN(A.getToken())&&YlN(A.getToken()).length>0&&(Q.capabilities=new Set(YlN(A.getToken())));_.gA(A,3)!==void 0&&(Q.consistencyKey=_.gA(A,3));A.getName()!==void 0&&A.getName()!==""&&(Q.linkName=A.getName());_.ne(A,DBN,4)&&(A=_.dO(A,DBN,4),A=Object.assign({},_.gA(A,1)&&{userId:_.gA(A,1)},_.gA(A,2)&&{displayName:_.gA(A,
2)},_.gA(A,3)&&{email:_.gA(A,3)},_.gA(A,5)&&{username:_.gA(A,5)},_.gA(A,4)&&{profilePicture:_.gA(A,4)}),Q.profile=A);return Q};
N2l=function(A,Q){var b=A.flowParams,f;return{serviceId:b.serviceId,sessionId:b.sessionId,currentFlow:A.currentFlow,googleScopesString:Q,linkingSessionSerialized:A.session.serialize(),consentLanguageKeys:b.consentLanguageKeys,callerState:A.callerState,dynamicUrlParameters:b.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(f=b.partnerConfigMinReadTimestamp)==null?void 0:f.serialize()}};
bOt=function(A){var Q=A.googleScopes!==void 0?Array.from(A.googleScopes).join(","):"";sF7(N2l(A,Q));Q=mBn(A);return Q===null?Promise.resolve(AHl):Q.start().then(function(b){var f,a=(f=b.link)==null?void 0:f.consistencyKey;return b.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&a!==void 0?(f=A.flowParams,QXl(f.serviceId,f.sessionId,A.googleScopes,a,f.galService,A.config,b)):b})};
f5O=function(A){var Q=mBn(A);return Q===null?Promise.resolve(xb({statusCode:7,statusMessage:"Failed to create flow object"},A.callerState)):Q.complete().then(function(b){var f,a=(f=b.link)==null?void 0:f.consistencyKey;return b.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&a!==void 0?(f=A.flowParams,QXl(f.serviceId,f.sessionId,A.googleScopes,a,f.galService,A.config,b)):xb(b,A.callerState)},function(b){return xb({statusCode:12,
statusMessage:"Failed to complete the flow: "+b.message},A.callerState)})};
QXl=function(A,Q,b,f,a,T,G){return a5x(a,{serviceId:A,sessionId:Q,googleScopes:b,consistencyKey:f}).then(function(){return G},function(p){return a.deleteLink({serviceId:A,
sessionId:Q,accountLinkingEntryPoint:T.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+p.message}},function(P){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+P.message}})})};
mBn=function(A){switch(A.currentFlow){case 1:var Q=A.flowParams;A=_.dO(A.session,Tss,1);return cC.createOAuthFlow(Q,A);case 2:case 3:return Q=A.flowParams,A=_.dO(A.session,deO,6),zh.createStreamlinedFlow(Q,A);default:return null}};
FOs=function(A,Q){A===2&&(A=3);var b=0;wM.indexOf(A)!==-1&&(b=wM.indexOf(A)+1);for(A=b;A<wM.length;A++)if(Q.has(wM[A]))return wM[A]};
pON=function(A){var Q=A.serviceId;var b=A.sessionId;var f=A.config;var a=A.galService;var T=A.capabilities;var G=A.scopes;var p=A.loginHint;var P=A.callerState;var U=A.consentLanguageKeys;var L=A.linkName;var M=A.dynamicUrlParameters;var l=A.partnerConfigMinReadTimestamp;A=f.dataUsageNoticeConfig?f.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return a.startLinkingSession({serviceId:Q,sessionId:b,capabilities:T,scopes:G,loginHint:p,callerState:P,supportedFlows:G7F(f.supportedFlows),completionUrl:f.completionUrl,
accountLinkingEntryPoint:f.accountLinkingEntryPoint,consentLanguageKeys:U,dataUsageNoticeConfig:A,linkName:L,dynamicUrlParameters:M,partnerConfigMinReadTimestamp:l}).then(function(J){return new Bss(Q,b,f,a,J,void 0,P,U,M,l)})};
M$d=function(A,Q,b){var f=(new PgO).getSession(A);if(f===null)return Promise.resolve({statusCode:2});XOn(A);var a=Srl(f.linkingSessionSerialized),T=f.googleScopesString!==""&&f.googleScopesString!==void 0?new Set(f.googleScopesString.split(",")):void 0,G=f.partnerConfigMinReadTimestampSerialized?Uex(f.partnerConfigMinReadTimestampSerialized):void 0;return LOF(new Bss(A,f.sessionId,Q,b,a,T,f.callerState,f.consentLanguageKeys,f.dynamicUrlParameters,G),f.currentFlow,f.consentLanguageKeys)};
sF7=function(A){var Q=new PgO;Q.storage!==null&&Q.storage.set("SAVED_SESSION",A)};
XOn=function(A){var Q=new PgO;if(Q.storage!==null){var b=Q.storage.get("SAVED_SESSION");b!==void 0&&b.serviceId===A&&Q.storage.remove("SAVED_SESSION")}};
G7F=function(A){var Q=new Set;A=_.F(A);for(var b=A.next();!b.done;b=A.next())b=b.value,b!==1&&l5F.has(b)&&Q.add(l5F.get(b));return Q};
xb=function(A,Q){Q!==void 0&&(A.callerState=Q);return A};
KOd=function(A){switch(A){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
V$x=function(A){return new iOr(A,new JHx(A))};
k7x=function(A,Q){Q=Q===void 0?!1:Q;var b=document.createElement("div");A&&(b.style.transform="scaleX(-1)");b.style.backgroundColor=Q?"rgba(138,180,248,.24)":"#e8f0fe";b.style.height="4px";b.style.overflow="hidden";b.style.position="absolute";b.style.top="0";b.style.width="100%";b.style.zIndex="1500";b.setAttribute("aria-label","Loading");b.setAttribute("aria-live","polite");A=document.createElement("style");A.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  }";
b.appendChild(A);A=OOs();A.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";A.style.left="-145.166611%";var f=nLM(Q);f.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";A.appendChild(f);b.appendChild(A);A=OOs();A.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";A.style.left="-54.888891%";Q=nLM(Q);Q.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
A.appendChild(Q);b.appendChild(A);return b};
OOs=function(){var A=document.createElement("div");A.style.height="100%";A.style.position="absolute";A.style.transformOrigin="top left";A.style.width="100%";return A};
nLM=function(A){var Q=document.createElement("span");Q.style.borderTop=A?"4px solid #669df6":"4px solid #4285f4";Q.style.display="inline-block";Q.style.position="absolute";Q.style.width="100%";return Q};
I5q=function(A){return A==null?void 0:_.NxY(A).valueOf()};
oLt=function(A){var Q=document.body,b=!1,f=function(){b||(b=!0,HOx(a,T),setTimeout(function(){Q.removeChild(T);Q.removeChild(a)},150))},a=Cgs(A,getComputedStyle(Q).direction==="rtl",f),T=qrN(f);
HOx(a,T);Q.appendChild(T);Q.appendChild(a);window.requestAnimationFrame(function(){T.style.opacity="1";a.style.opacity="1";a.style.transform="translate(-50%, -50%) scale(1)";a.children[0].focus()})};
Cgs=function(A,Q,b){var f=document.createElement("div");f.style.position="fixed";f.style.alignItems="center";f.style.backgroundColor=A?"rgb(32, 33, 36)":"white";f.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";f.style.display="flex";f.style.flexDirection="column";f.style.justifyContent="center";f.style.left="50%";f.style.top="50%";f.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";f.style.zIndex="2002";document.body.clientWidth>=
660?(f.style.borderRadius="8px",f.style.minHeight="220px",f.style.maxHeight="90%",f.style.maxWidth="90%",f.style.minWidth="540px"):(f.style.height="100%",f.style.width="100%");f.setAttribute("aria-label","Error");f.setAttribute("aria-modal","true");f.setAttribute("role","alertdialog");f.addEventListener("keydown",function(T){T.key==="Escape"&&b()});
Q=t$n(A,Q,b);f.appendChild(rHM(Q));f.appendChild(Q);var a=document.createElement("img");a.src=A?"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","");f.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=A?"rgb(232,234,237)":"#3c4043";f.appendChild(a);f.appendChild(rHM(Q));return f};
t$n=function(A,Q,b){var f=document.createElement("button");f.style.backgroundColor="transparent";f.style.border="none";f.style.borderRadius="50%";f.style.cursor="pointer";f.style.outline="none";f.style.padding="12px";f.setAttribute("aria-label","Close dialog");f.style.position="absolute";f.style.top="0";Q?f.style.right="0":f.style.left="0";f.addEventListener("focus",function(){f.style.backgroundColor=A?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
f.addEventListener("blur",function(){f.style.backgroundColor="transparent"});
f.addEventListener("mouseenter",function(){f.style.backgroundColor=A?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
f.addEventListener("mouseleave",function(){f.style.backgroundColor="transparent"});
f.addEventListener("click",b);f.addEventListener("keydown",function(a){a.key!=="Enter"&&a.key!=="Space"||b()});
Q=document.createElement("img");Q.src=A?"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";Q.style.display="block";Q.style.height="24px";Q.style.width="24px";Q.setAttribute("alt","");f.appendChild(Q);return f};
rHM=function(A){var Q=document.createElement("div");Q.setAttribute("tabindex","0");Q.setAttribute("aria-hidden","true");Q.addEventListener("focus",function(){return void A.focus()});
return Q};
qrN=function(A){var Q=document.createElement("div");Q.style.backgroundColor="rgba(32,33,36,0.6)";Q.style.bottom="0";Q.style.left="0";Q.style.position="fixed";Q.style.right="0";Q.style.top="0";Q.style.transition=" opacity 150 ms linear";Q.style.zIndex="2001";Q.addEventListener("click",A);return Q};
HOx=function(A,Q){Q.style.opacity="0";A.style.opacity="0";A.style.transform="translate(-50%, -50%) scale(0.8)"};
jXt=function(A,Q){A.sandbox&&A.sandbox.add&&(A.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),A.sandbox.add("allow-downloads"));A.src=Q};
uW=function(A){Rmx.call(this,A)};
ZC=function(A,Q){Q=Q===void 0?!1:Q;this.parsedImageUrl_=null;A instanceof gLd||(eml==void 0&&(eml=new hml),A=eml.parse(A.toString(),Q));A=this.parsedImageUrl_=A;A.JSC$19410_parsedOptions_==void 0&&((Q=A.getOptions())||(Q=""),A.JSC$19410_parsedOptions_=(new WO7).parse(Q));Rmx.call(this,A.JSC$19410_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;A=this.parsedImageUrl_;Q=A.uri_.JSC$9973_port_;this.JSC$19412_domain_=A.uri_.JSC$9973_domain_+(Q?":"+Q:"");this.JSC$19412_query_=
this.parsedImageUrl_.uri_.JSC$9973_queryData_.toString()};
vLl=function(A){this.mode=4;this.data=A;this.parsedData=[];A=0;for(var Q=this.data.length;A<Q;A++){var b=[],f=this.data.charCodeAt(A);f>65536?(b[0]=240|(f&1835008)>>>18,b[1]=128|(f&258048)>>>12,b[2]=128|(f&4032)>>>6,b[3]=128|f&63):f>2048?(b[0]=224|(f&61440)>>>12,b[1]=128|(f&4032)>>>6,b[2]=128|f&63):f>128?(b[0]=192|(f&1984)>>>6,b[1]=128|f&63):b[0]=f;this.parsedData.push(b)}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))};
ELK=function(A){this.typeNumber=0;this.errorCorrectLevel=A===void 0?2:A;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
yk=function(A,Q){if(A.length==void 0)throw Error("tk`"+A.length+"`"+Q);for(var b=0;b<A.length&&A[b]==0;)b++;this.num=Array(A.length-b+Q);for(Q=0;Q<A.length-b;Q++)this.num[Q]=A[Q+b]};
xex=function(A,Q){this.totalCount=A;this.dataCount=Q};
cHx=function(){this.buffer=[];this.length=0};
zmx=function(){var A=!1;if(_.LJ6()){A=_.Mf();var Q="";_.KJy()?(Q=/Windows (?:NT|Phone) ([0-9.]+)/,Q=(A=Q.exec(A))?A[1]:"0.0"):_.t4()?(Q=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,Q=(A=Q.exec(A))&&A[1].replace(/_/g,".")):_.lUW()?(Q=/Mac OS X ([0-9_.]+)/,Q=(A=Q.exec(A))?A[1].replace(/_/g,"."):"10"):_.Xi(_.Mf(),"KaiOS")?(Q=/(?:KaiOS)\/(\S+)/i,Q=(A=Q.exec(A))&&A[1]):_.LJ6()?(Q=/Android\s+([^\);]+)(\)|;)/,Q=(A=Q.exec(A))&&A[1]):_.iFA()&&(Q=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Q=(A=Q.exec(A))&&A[1]);A=
Q||""}return A};
Den=function(A,Q){this.JSC$19435__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(Q)for(var b in Q)this.JSC$19435__htOption[b]=Q[b];this.JSC$19435__htOption.useSVG&&(wOd=ug7);this.JSC$19435__android=zmx();this.JSC$19435__el=A;this._oQRCode=null;this._oDrawing=new wOd(this.JSC$19435__el,this.JSC$19435__htOption);this.JSC$19435__htOption.text&&(A=this.JSC$19435__htOption.text,this._oQRCode=new ELK(this.JSC$19435__htOption.correctLevel),ZOr(this._oQRCode,
A),Q=this._oQRCode,yHx(Q,!1,Yrx(Q)),this.JSC$19435__el.title=A,this._oDrawing.draw(this._oQRCode),this.makeImage())};
$eF=function(A,Q,b,f,a){A.save();var T=new Path2D;T.roundRect(Q,b,f*7,f*7,f*2);T.roundRect(Q+f,b+f,f*5,f*5,f*1.3);T.roundRect(Q+2*f,b+2*f,f*3,f*3,f);A.clip(T,"evenodd");A.fillStyle=a;A.fillRect(0,0,A.canvas.width,A.canvas.height);A.restore()};
Yb=function(A,Q){if(typeof A!=="function")throw Error("wk");return _.by.setTimeout(function(){A()},Q)};
DC=function(){};
sXN=function(A,Q,b,f,a){(new DC).debug("TestLoadImageWithRetries: "+a);if(f==0)b(!1);else{var T=a||0;f--;Nsn(A,Q,function(G){G?b(!0):_.by.setTimeout(function(){sXN(A,Q,b,f,T)},T)})}};
Nsn=function(A,Q,b){var f=new DC;f.debug("TestLoadImage: loading "+A);var a=new Image;a.onload=function(){try{f.debug("TestLoadImage: loaded"),meF(a),b(!0)}catch(T){}};
a.onerror=function(){try{f.debug("TestLoadImage: error"),meF(a),b(!1)}catch(T){}};
a.onabort=function(){try{f.debug("TestLoadImage: abort"),meF(a),b(!1)}catch(T){}};
a.ontimeout=function(){try{f.debug("TestLoadImage: timeout"),meF(a),b(!1)}catch(T){}};
_.by.setTimeout(function(){if(a.ontimeout)a.ontimeout()},Q);
a.src=A};
meF=function(A){A.onload=null;A.onerror=null;A.onabort=null;A.ontimeout=null};
AEN=function(){this.front_=[];this.back_=[]};
Qzr=function(A,Q){_.k$.call(this);this.delay_=new _.Ho(this.JSC$19561_onTick_,0,this);_.SY(this,this.delay_);this.JSC$19559_interval_=5E3;this.nextTickTime_=0;if(typeof A==="function")Q&&(A=(0,_.IL)(A,Q));else if(A&&typeof A.handleEvent==="function")A=(0,_.IL)(A.handleEvent,A);else throw Error("ya");this.JSC$19561_listener_=A};
$b=function(A,Q,b,f,a,T,G,p,P,U,L,M,l,J){b=b===void 0?!1:b;f=f===void 0?function(){return""}:f;
a=a===void 0?!1:a;T=T===void 0?!1:T;G=G===void 0?!1:G;p=p===void 0?function(){return _.Ul({})}:p;
P=P===void 0?!1:P;L=L===void 0?!1:L;M=M===void 0?!1:M;l=l===void 0?!1:l;J=J===void 0?!1:J;this.JSC$19562_pathPrefix_=A;this.defaultQueryParams_=Q;this.pubsub_=new _.KJ;this.reconnectTimer_=new Qzr(this.safeReconnect_,this);this.JSC$19562_channel_=null;this.JSC$19562_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19562_pendingMessages_=[];this.enableAsyncTest_=b;this.JSC$19562_getXsrfToken_=f;this.useAsyncBrowserChannelHandler_=T;this.getAuthorizationHeader_=
p;this.getAuthorizationHeaderSync_=U;this.enableCachedUpdateAuthorizationHeader_=G;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Ul();this.enableLoungeTokenRefresh_=a;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=P;this.disableMdxAuthForNonPlaybackMessages_=L;this.disableMdxAuthForAdMessages_=M;this.enableMdxAuthForConnectionOnly_=l;this.disableMdxAuthForShortsMessages_=J;this.JSC$19562_channelOpenedCounter=new bTN;this.JSC$19562_channelClosedCounter=new fkN;this.channelMessageSentCounter=
new akx;this.JSC$19562_channelMessageReceivedCounter=new T6r;this.JSC$19562_channelErrorCounter=new djx;this.pendingMapsOnClosedCounter=new FWd;this.undeliveredMapsOnClosedCounter=new Gxs};
Nv=function(A){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;A=A||document.location.href;var Q=Number(_.Nq(A)[4]||null)||"";Q&&(this.port=":"+Q);this.domain=_.sp(A)||"";A=_.Mf();A.search("MSIE")>=0&&_.LF(A.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
s_=function(A){A=A||{};this.name=A.name||"";this.id=A.id||A.screenId||"";this.token=A.token||A.loungeToken||"";this.uuid=A.uuid||A.dialId||"";this.idType=A.screenIdType||"normal"};
B6K=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(A){var Q=Math.random()*16|0;return(A=="x"?Q:Q&3|8).toString(16)})};
pYd=function(A){return _.Rk(A,function(Q){return{key:Q.id,name:Q.name}})};
PBl=function(A,Q){return _.R9(A,function(b){return b||Q?!b!=!Q?!1:b.id==Q.id:!0})};
A5=function(A,Q){return _.R9(A,function(b){return mH(b,Q)})};
MLn=function(){var A=XYK(),Q=SYN();if(UjN()){var b=A,f=_.qb9(b,Q);f<0&&_.IUb(b,-(f+1),0,Q)}A=LWq(A);if(A.length==0)try{_.dey("remote_sid")}catch(a){}else try{_.Vb("remote_sid",A.join(","),-1)}catch(a){}};
XYK=function(){var A=_.i7("yt-remote-connected-devices")||[];A.sort(_.Cye);return A};
LWq=function(A){if(A.length==0)return[];var Q=A[0].indexOf("#"),b=Q==-1?A[0]:A[0].substring(0,Q);return _.Rk(A,function(f,a){return a==0?f:f.substring(b.length)})};
lkq=function(A){_.KW("yt-remote-connected-devices",A,86400)};
SYN=function(){if(KWF)return KWF;var A=_.i7("yt-remote-device-id");A||(A=B6K(),_.KW("yt-remote-device-id",A,31536E3));for(var Q=XYK(),b=1,f=A;_.ve(Q,f);)b++,f=A+"#"+b;return KWF=f};
iTO=function(){return _.i7("yt-remote-session-browser-channel")};
UjN=function(){return _.i7("yt-remote-session-screen-id")};
OTn=function(A){A.length>5&&(A=A.slice(A.length-5));var Q=_.Rk(JEn(),function(f){return f.loungeToken}),b=_.Rk(A,function(f){return f.loungeToken});
_.QZi(b,function(f){return!_.ve(Q,f)})&&VL7();
_.KW("yt-remote-local-screens",A,31536E3)};
JEn=function(){return _.i7("yt-remote-local-screens")||[]};
VL7=function(){_.KW("yt-remote-lounge-token-expiration",!0,86400)};
QW=function(A){A||(_.JX("yt-remote-session-screen-id"),_.JX("yt-remote-session-video-id"));MLn();A=XYK();_.Eb(A,SYN());lkq(A)};
kxK=function(){nrt();return b5?!!b5.get("yt-remote-use-staging-server"):!1};
nrt=function(){if(!b5){var A=_.LOA();A&&(b5=new _.Hr(A))}};
qYl=function(A,Q,b,f,a){b=b===void 0?function(){return""}:b;
var T=function(){return new $b(f5(A,"/bc"),Q,!1,b,f)};
return _.K("enable_mdx_web_channel_desktop")?new Ikq(function(){return new HTd(f5(A,"/wc"),Q,b)}):new CBl(T,a)};
jzd=function(){var A=orx;tLO();a2.push(A);rEl()};
T4=function(A,Q){tLO();var b=RMn(A,String(Q));a2.length==0?grt(b):(rEl(),_.ZR(a2,function(f){f(b)}))};
dJ=function(A){T4("CP",A)};
tLO=function(){a2||(a2=_.zV("yt.mdx.remote.debug.handlers_")||[],_.Al("yt.mdx.remote.debug.handlers_",a2))};
grt=function(A){var Q=(FX+1)%50;FX=Q;eMx[Q]=A;hMN||(hMN=Q==49)};
rEl=function(){var A=a2;if(eMx[0]){var Q=hMN?FX:-1,b={};do b={record$jscomp$15:void 0},Q=(Q+1)%50,b.record$jscomp$15=eMx[Q],_.ZR(A,function(f){return function(a){a(f.record$jscomp$15)}}(b));
while(Q!=FX);eMx=Array(50);FX=-1;hMN=!1}};
RMn=function(A,Q){var b=(Date.now()-WWx)/1E3;b.toFixed&&(b=b.toFixed(3));var f=[];f.push("[",b+"s","] ");f.push("[","yt.mdx.remote","] ");f.push(A+": "+Q,"\n");return f.join("")};
G4=function(A){_.Kj.call(this);this.JSC$19586_logName_=A;this.screens=[]};
p5=function(A){G4.call(this,"LocalScreenService");this.JSC$19593_http_=A;this.loungeTokenRefreshTimer_=NaN;B4(this);this.info("Initializing with "+vrl(this.screens))};
P4=function(A,Q){Q=Q===void 0?!1:Q;G4.call(this,"ScreenService");this.JSC$19599_http_=A;this.disableAutomaticScreenCache_=Q;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};ErM(this)};
XX=function(A,Q,b){_.Kj.call(this);this.JSC$19603_logName_=b;this.JSC$19603_screenService_=A;this.receiver_=Q;this.screen_=null};
bcl=function(A,Q,b){b.disableCastApi?Sj("Cannot initialize because disabled by Mdx config."):xjx()?cEx(A,b)&&(zMq(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?wYd(Q):(window.__onGCastApiAvailable=function(f,a){f?wYd(Q):(UF("Failed to load cast API: "+a),uZn(!1),zMq(!1),_.JX("yt-remote-cast-available"),_.JX("yt-remote-cast-receiver"),ZTF(),Q(!1))},b.loadCastApiSetupScript?_.uh(yEq):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
YYx()>=60&&Djq():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?$jd():YYx()>=89?N6N():(szl(),mjs(Aul.map(Q_r))))):Sj("Cannot initialize because not running Chrome")};
ZTF=function(){Sj("dispose");var A=L5();A&&A.dispose();_.Al("yt.mdx.remote.cloudview.instance_",null);fwx(!1);_.y8b(awl);awl.length=0};
TnN=function(){return!!_.i7("yt-remote-cast-installed")};
dJF=function(){var A=_.i7("yt-remote-cast-receiver");return A?A.friendlyName:null};
F5M=function(){Sj("clearCurrentReceiver");_.JX("yt-remote-cast-receiver")};
GUr=function(){return TnN()?L5()?L5().getCastSession():(UF("getCastSelector: Cast is not initialized."),null):(UF("getCastSelector: Cast API is not installed!"),null)};
pjd=function(A,Q){Bnq()?L5().setConnectedScreenStatus(A,Q):UF("setConnectedScreenStatus called before ready.")};
xjx=function(){var A=_.Mf().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Ke||A};
cEx=function(A,Q){var b=!1;L5()||(A=new Mw(A,Q),A.subscribe("yt-remote-cast2-availability-change",function(f){_.KW("yt-remote-cast-available",f);kb("yt-remote-cast2-availability-change",f)}),A.subscribe("yt-remote-cast2-receiver-selected",function(f){Sj("onReceiverSelected: "+f.friendlyName);
_.KW("yt-remote-cast-receiver",f);kb("yt-remote-cast2-receiver-selected",f)}),A.subscribe("yt-remote-cast2-receiver-resumed",function(f){Sj("onReceiverResumed: "+f.friendlyName);
_.KW("yt-remote-cast-receiver",f);kb("yt-remote-cast2-receiver-resumed",f)}),A.subscribe("yt-remote-cast2-session-change",function(f){Sj("onSessionChange: "+PNF(f));
f||_.JX("yt-remote-cast-receiver");kb("yt-remote-cast2-session-change",f)}),_.Al("yt.mdx.remote.cloudview.instance_",A),b=!0);
Sj("cloudview.createSingleton_: "+b);return b};
L5=function(){return _.zV("yt.mdx.remote.cloudview.instance_")};
wYd=function(A){uZn(!0);zMq(!1);L5().init(!1,function(Q){Q?(fwx(!0),_.YGC("yt-remote-cast2-api-ready")):(UF("Failed to initialize cast API."),uZn(!1),_.JX("yt-remote-cast-available"),_.JX("yt-remote-cast-receiver"),ZTF());A(Q)})};
Sj=function(A){T4("cloudview",A)};
UF=function(A){T4("cloudview",A)};
uZn=function(A){Sj("setCastInstalled_ "+A);_.KW("yt-remote-cast-installed",A)};
Bnq=function(){return!!_.zV("yt.mdx.remote.cloudview.apiReady_")};
fwx=function(A){Sj("setApiReady_ "+A);_.Al("yt.mdx.remote.cloudview.apiReady_",A)};
zMq=function(A){_.Al("yt.mdx.remote.cloudview.initializing_",A)};
l5=function(A){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(A)};
XjO=function(){var A,Q;return _.B(function(b){if(b.nextAddress==1)return(_.tMi()||_.K("use_new_nwl"))&&_.H04().isNetworkAvailable()?b.yield(_.Q7(),2):b.return();if(b.nextAddress!=3)return(A=b.yieldResult)?b.yield(z27(A),3):b.return();Q=b.yieldResult;if(!Q.length)return b.return();Q.forEach(function(f){var a={timestamp:f.timestamp};f=f.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:f.appShellAssetLoadReport,options:a}:f.clientError?{payloadName:"clientError",payload:f.clientError,
options:a}:void 0;f&&_.R4(f.payloadName,f.payload,f.options)});
Q.length===100&&_.j7.addLowPriorityJob(XjO);_.Oi(b)})};
Scs=function(A){if(A.playerResponse){if(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(Q){return!(!Q||!Q.mealbarPromoRenderer)}))&&A.mealbarPromoRenderer)return A.mealbarPromoRenderer}else if(A.response&&(A=A.response)&&A.overlay&&A.overlay.mealbarPromoRenderer)return A.overlay.mealbarPromoRenderer};
UJN=function(A){if(A.response){var Q=A.response;if(Q&&Q.overlay&&Q.overlay.tooltipRenderer)return Q.overlay.tooltipRenderer}if(A.playerResponse&&(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(b){return!(!b||!b.tooltipRenderer)}))&&A.tooltipRenderer))return A.tooltipRenderer};
MKx=function(A){if(!L5l&&(A=A||_.vG("ZWIEBACK_PING_URLS"))&&A.length){L5l=!0;for(var Q=0;Q<A.length;Q++)_.zp(A[Q])}};
K5F=function(A){if(_.j2.get(_.vG("PLAYER_VARS",{}),"privembed",!1)!="1"){A&&R2N();try{lwd().then(function(){},function(){}),_.Xe(K5F,18E5)}catch(Q){_.xQ(Q)}}};
icx=function(){var A=_.nD(),Q=A.getFlag(119),b=window.devicePixelRatio>1;document.body&&_.Z7(document.body,"exp-invert-logo")&&(b&&!_.Z7(document.body,"inverted-hdpi")?_.TZ(document.body,"inverted-hdpi"):!b&&_.Z7(document.body,"inverted-hdpi")&&_.fE(document.body,"inverted-hdpi"));Q!=b&&(_.k_(0,119,b),A.save())};
JuO=function(A){return A.filter(function(Q){return"ypcGetCartEndpoint"in Q||"ypcFixInstrumentEndpoint"in Q})};
VKx=function(A){return A.filter(function(Q){return!_.V(Q,_.haL)})};
nlr=function(A,Q){var b,f,a,T,G,p,P;_.B(function(U){switch(U.nextAddress){case 1:b=_.eL.getInstance();f=_.J8.instance;a=_.s4.instance;if(!a)return Ocn(A,f,Q),U.return();_.ML(U,2);A.onLoadingCommand&&f.resolveCommand(A.onLoadingCommand);return U.yield(b.getCurrentPositionFromGeolocation(),4);case 4:T=U.yieldResult;if(!A.resolveLocationCommand){U.jumpTo(5);break}G=b.createLocationInfo(T);return U.yield(_.Ay(a,A.resolveLocationCommand,{locationInfo:G}),6);case 6:p=U.yieldResult;if(!p||"error"in p&&p.error||
p.errorMetadata)return Ocn(A,f,Q),U.return();var L;if(p==null?0:(L=p.onResponseReceivedActions)==null?0:L.length){L=_.F(p.onResponseReceivedActions);for(var M=L.next();!M.done;M=L.next())f.resolveCommand(M.value)}(_.V(A.onSuccessCommand,_.sv)||_.V(A.onSuccessCommand,_.nT))&&_.Bn(Q.hostElement,"yt-navigate",{endpoint:A.onSuccessCommand,reload:!0});case 5:_.Z1(U,0);break;case 2:P=_.Vw(U);if(P instanceof GeolocationPositionError&&P.code===GeolocationPositionError.PERMISSION_DENIED)return A.onDeniedCommand&&
f.resolveCommand(A.onDeniedCommand),U.return();Ocn(A,f,Q);_.Oi(U)}})};
Ocn=function(A,Q,b){A.onFailureCommand&&(Q.resolveCommand(A.onFailureCommand),_.pD(b.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
IwO=function(A,Q){var b=_.V(A,_.zVx);if(b&&Q){A=b.videoIds||[b.videoId];var f;Q=(f=_.Bn(Q,"yt-lockup-requested",{videoIds:A}).detail)==null?void 0:f.returnValue;var a;b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?a=Q?Q:A.map(function(T){return{videoId:T,navigationEndpoint:b.videoCommand}}):Q&&(a=Q);
a&&(f=a.map(function(T){var G=Object,p=G.assign;var P=T.navigationEndpoint;if(!_.V(P,_.CT)){var U=_.V(P,_.sv);if(U){if(delete U.index,delete U.playlistId,U=_.V(P==null?void 0:P.commandMetadata,_.KD),U==null?0:U.url){var L=U.url;L=_.fD(L,"list");L=_.fD(L,"index");U.url=L}}else P=void 0}return p.call(G,{},T,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:P})}),kUM(f,b))}};
Hcs=function(A){var Q=_.$g();if(A=_.V(A,_.w21))A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&Q.clearQueue(),A.closeMiniplayer&&_.fJ().resolve(_.zb).close(!0)};
qcF=function(A){CNO(_.$g(),A)};
olN=function(A){var Q;(A=(Q=_.V(A,_.xYr))==null?void 0:Q.setVideoIds)&&A.forEach(function(b){_.yZL(_.$g(),b)})};
ruN=function(A){tK7(_.$g(),A)};
j_F=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(A){return!1}};
RBn=function(A){var Q=["h","m","s"],b=_.xC(Q);b.reverse();var f={};A=(A.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(G){var p=(G.match(/[hms]/)||[""])[0];return p?(f[p]=parseInt(G.match(/\d+/)[0],10),!1):!0});
for(A.reverse();A.length&&b.length;){var a=b.shift();a in f||(f[a]=parseInt(A.shift(),10))}if(A.length||f.s>59||f.m>59||f.h>9)return null;var T="";Q.forEach(function(G){f[G]&&(T+=""+f[G]+G)});
return T||null};
glK=function(A){A=A.data;return _.X("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.X("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.X(_.aY,{data:{thumbnails:[{url:A.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.X("div",{class:"profile-badge-view-model-wiz__content"},_.X("div",{class:"profile-badge-view-model-wiz__badge-description"},A.badgeDesc),A.badgeSubtitle?_.X("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},A.badgeSubtitle):
null))};
eBs=function(A){A=A.data;var Q=_.st("yt-comment-interaction-view-model");LEx(Q,A.rendererContext);return _.X("yt-comment-interaction-view-model",{el:Q,class:"yt-comment-interaction-view-model-wiz"},_.X("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":A.onTapA11yLabel,"on:keydown":_.Zji(),tabindex:0},_.X("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.X("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},A.headerPrefix,' "',A.videoTitle),
_.X("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.X("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.X("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},A.commentContent),_.X("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.X(_.aY,{data:{thumbnails:[{url:A.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
W5r=function(A){A=A.data;return _.X("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},hBl(A.avatar),_.X("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},A.channelName))};
vlx=function(A,Q){var b=function(f){f.preventDefault()};
_.qq(function(){var f=A.value;if(f)return(f._data=Q)?(f.addEventListener("touchstart",_.qaA,{passive:!0}),f.addEventListener("click",dBK),Q.clickTrackingParams&&(f.params={itct:Q.clickTrackingParams}),FEd(f,Q),_.ch(f,Go7(Q)||"")):f.addEventListener("click",b),function(){Q?(f.removeEventListener("touchstart",_.qaA,{passive:!0}),f.removeEventListener("click",dBK)):f.removeEventListener("click",b)}},[Q,
void 0])};
ElM=function(A){A=A.data;var Q;return _.X("div",{class:"yt-profile-info-view-model-wiz__activity"},_.X("div",{class:"yt-profile-info-view-model-wiz__header"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-title"},A.commentsInteractionTitle)),(Q=A.comments)==null?void 0:Q.map(function(b){return _.X("div",{class:"yt-profile-info-view-model-wiz__activity"},K5(b))}))};
xJn=function(A){A=A.data;var Q=_.y0({elementsCommand:A.subscriptionsAccessButtonCommand}),b=_.st("a");vlx(b,_.ue(A.subscriptionsAccessButtonCommand));var f;return _.X("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.X("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.X("a",{el:b,"on:click":_.IY(function(a){if(Q==null?0:Q.onclick)Q.onclick(a);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},A.sharedSubscriptionsTitle),_.X("div",null,K5(A.subscriptionsAccessButton)))),_.X("div",{class:"yt-profile-info-view-model-wiz__subs"},(f=A.sharedSubscriptions)==null?void 0:f.slice(0,5).map(function(a){return _.X("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",K5(a))})))};
cuO=function(A){A=A.data;var Q;return _.X("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.X("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.X("h2",{class:"yt-profile-info-view-model-wiz__section-title"},A.sharedSubscriptionsTitle)),_.X("div",{class:"yt-profile-info-view-model-wiz__subs"},(Q=A.sharedSubscriptions)==null?void 0:Q.slice(0,5).map(function(b){return _.X("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",K5(b))})))};
zBs=function(A){A=A.data;return _.X("div",{class:"yt-profile-info-view-model-wiz__activity"},[A.profileBadgeInfoYtWide,A.profileBadgeInfoChannelWide].map(function(Q){var b,f,a,T,G;return Q?_.X(_.bd,null,_.X("div",{class:"yt-profile-info-view-model-wiz__header"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-title"},Q==null?void 0:Q.profileSectionTitle),_.X("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},Q==
null?void 0:(b=Q.commentBadge)==null?void 0:b.commentDesc),(Q==null?0:(f=Q.commentBadge)==null?0:f.blackHeartDesc)?_.X("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.X("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.X(_.aY,{data:{thumbnails:[{url:Q==null?void 0:(a=Q.commentBadge)==null?void 0:a.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.X("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
Q==null?void 0:(T=Q.commentBadge)==null?void 0:T.blackHeartDesc))),_.X("div",{class:"yt-profile-info-view-model-wiz__badge"},Q==null?void 0:(G=Q.badges)==null?void 0:G.map(function(p){return _.X(glK,{data:p})}))):null}))};
wj7=function(A){A=A.data;return _.X("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.X(zBs,{data:A}),A.videosHorizontalShelf?_.X("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},K5(A.videosHorizontalShelf)):null,A.comments?_.X(ElM,{data:A}):null,A.sharedSubscriptionsTitle?A.subscriptionsAccessButtonCommand?_.X(xJn,{data:A}):_.X(cuO,{data:A}):null)};
Zcx=function(A){A=A.data;if(A){var Q=A.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";Q=usl(A.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:Q,isChannelInfoCard:Q}})}else Q=void 0;A=A?usl(A.profileInfo):void 0;return _.X("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},Q,A)};
yuM=function(A,Q){var b=_.SJM(Q,{},A,!0);return new Promise(function(f,a){b.listenOnce("n",function(){a(Error("hl`"+b.JSC$29238_getErrorDescription()))});
b.listenOnce("l",function(){var T=b.getResponseCode();if(T!==200)a(Error("il`"+Q+"`"+A.type+"`"+A.size+"`"+T));else try{f(JSON.parse(b.getResponseText()).encryptedBlobId)}catch(G){a(G)}});
b.run()})};
Ycr=function(A){return A.substring(A.indexOf(":")+1,A.indexOf(";"))};
DJN=function(A){return new Promise(function(Q,b){var f=new FileReader;f.onloadend=function(){try{var a=new Uint8Array(f.result);a.length<8&&b(void 0);var T=a.subarray(0,8);a="";for(var G=0;G<T.length;G++)a+=("0"+T[G].toString(16)).substr(-2);a.startsWith("ffd8ff")?Q("image/jpeg"):a.startsWith("47494638")?Q("image/gif"):a.startsWith("89504e470d0a1a0a")?Q("image/png"):a.startsWith("424d")?Q("image/bmp"):Q(void 0)}catch(p){b(p)}};
f.onerror=b;f.readAsArrayBuffer(A)})};
$JM=function(A){return new Promise(function(Q,b){var f=new Image;f.crossOrigin="anonymous";f.onload=function(){var a=document.createElement("canvas");a.width=f.naturalWidth;a.height=f.naturalHeight;var T=a.getContext("2d");if(!T)throw Error("jl");T.drawImage(f,0,0);T=Ycr(A);a.toBlob(function(G){G?Q(G):b()},T)};
f.src=A})};
s_q=function(A,Q){var b;if(((b=_.V(A,_.CT))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var f;_.Bn((f=Q.hostElement)!=null?f:Q,"yt-shorts-reset");_.N5y(_.fJ().resolve(_.H3),A).then(function(T){NnM(T,Q,A)})}else{var a;
_.X5((a=Q.hostElement)!=null?a:Q,[A]).then(function(T){T&&NnM(T.data,Q,A)})}};
NnM=function(A,Q,b){if(A){var f=_.V(A.replacementEndpoint,_.CT);if(f){A.sequenceContinuation&&(f.sequenceParams=A.sequenceContinuation);var a;_.Bn((a=Q.hostElement)!=null?a:Q,"yt-navigate",{endpoint:A.replacementEndpoint})}else if((A==null?void 0:A.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(A==null?0:A.watchStatus)&&_.V(A.watchStatus,_.kSp)){var T;_.Bn((T=Q.hostElement)!=null?T:Q,"yt-navigate",{endpoint:b})}}};
mJn=function(A){var Q=_.fJ().resolve(_.u7),b=MTO(Q.getState())||"";Q=_.r5y(Q.getState())||"";b=b==="ytd-browse"&&Q==="home";return _.K("web_guide_entry_enable_cache_for_non_home_pages")?(A=(A==null?void 0:A.navigationEndpoint)&&_.OY(A.navigationEndpoint)==="home",{disableCache:b&&A}):{disableCache:b}};
A8F=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENT-INPUT")return!0}catch(Q){return!1}return A8F(A.parentNode)};
i5=function(A){return A?A.tagName==="A"&&A.href&&A.classList.contains("yt-simple-endpoint"):!1};
QPl=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
b0O=function(A,Q,b){if(!A)return null;var f=i5(A);if(f&&b)return Q=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+Q);if(f&&!b)return document.createTextNode("");if(QPl(A))return b=A.alt,A=A.dataset.emojiId,!A&&Q&&(Q=_.lp(Q,b))&&Q.isCustomEmoji&&(A=Q.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(b);f=A.cloneNode(!1);for(var a=0;a<A.childNodes.length;++a){var T=b0O(A.childNodes[a],Q,b);T&&f.appendChild(T)}return f};
J5=function(A){return A?i5(A)?A:J5(A.lastChild):null};
f3N=function(A){return A?i5(A)?A:f3N(A.firstChild):null};
a3N=function(A){if(!A)return null;for(var Q=A.previousSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.previousSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.previousSibling;else break;(Q=J5(Q))?A=Q:A=(A=A.parentNode)?J5(A.previousElementSibling):null;return A};
TFx=function(A){if(!A)return null;for(var Q=A.nextSibling;Q;)if(Q.nodeType===Node.ELEMENT_NODE&&Q.nodeName==="BR")Q=Q.nextSibling;else if(Q.nodeType===Node.TEXT_NODE&&/\s+/.test(Q.textContent))Q=Q.nextSibling;else break;return(Q=f3N(Q))?Q:TFx(A.parentNode)};
d7O=function(A){var Q=_.ip(),b=Q.JSC$11233_getStartNode();if(!A8F(b.parentNode))return null;Q=Q.JSC$11233_getStartOffset();if(b.nodeType===Node.TEXT_NODE){var f=_.vl(b,i5);if(f){if(A&&Q===0||!A&&Q===b.length)return f}else{if(A&&Q===b.length)return!b||b.nodeName==="BR"||b.nextElementSibling&&_.Jc(b.nextElementSibling,"display")==="block"?null:f3N(b.nextElementSibling);if(!A&&Q===0)return b?J5(b.previousElementSibling):null}}if(b.nodeType===Node.ELEMENT_NODE)if(A){if(0<=Q&&Q<b.childNodes.length)return f3N(b.childNodes[Q])}else if(0<
Q&&Q<=b.childNodes.length)return J5(b.childNodes[Q-1]);return null};
FXq=function(A,Q,b){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(b){var f=a3N(A);if(f&&!/^\s+\S/.test(A.wholeText.substr(0,Q)))return f}else if((f=TFx(A))&&!/\S\s+/.test(A.wholeText.substr(Q,A.wholeText.length)))return f;return A.nodeType===Node.ELEMENT_NODE?b?a3N(A.childNodes[Q]):TFx(A.childNodes[Q]):FXq(A.parentNode,Q,b)};
Geq=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var Q="";for(A=A.firstChild;A;A=A.nextSibling)Q+=Geq(A);return Q;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
BFs=function(A){A=A.data;return _.X("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.X("div",null,_.X(_.Rb,{text:A.title})),A.subtitle?_.X("div",{class:"ytd-menu-title-renderer__subtitle"},_.X(_.Rb,{text:A.subtitle})):null)};
p8N=function(A){switch(A){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"}};
Pe7=function(A){return A.map(function(Q){return{settingsRadioOptionRenderer:{title:_.Fg(Q.name),asideText:_.Fg(Q.approximateSize),id:p8N(Q.format)}}})};
SGr=function(A){if(A&&A.length!==0)return A.filter(X8q()).map(function(Q){return{settingsRadioOptionRenderer:{title:Q.name,asideText:Q.approximateSize,id:p8N(Q.formatType)}}})};
VW=function(A){if(A)return A.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
U7l=function(A,Q){A=new Set(A!=null?A:[]);if(A.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(A.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(A.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(A.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(A.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(Q)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
LXx=function(A){var Q=A.indexOf("(");return Q!==-1?A.substring(Q+1,A.length-1):A};
_.l3q=function(A,Q,b,f,a){b||(b=MMx);var T;(T=_.V(b.commandMetadata,_.KD))!=null&&T.url||(b=Error("ol`"+JSON.stringify(b)),_.en(b),b=MMx);b=_.j2.unsafeClone(b);T=_.zD(_.V(b.commandMetadata,_.KD).url,"search_query",A);_.EO(location.href,"sv")==="1"&&(_.V(b,_.kr).params="EgOAAgE%3D",T=_.zD(T,"sv","1"));_.V(b,_.kr)&&(_.V(b,_.kr).query=A);T=T.replace(/%20/g,"+");_.V(b.commandMetadata,_.KD).url=T;a=_.K("desktop_enable_entity_suggest")?{entityMid:a}:{};_.fJ().resolve(_.de).resolveCommand(b,{form:{tempData:Object.assign({},
{gs_l:Q,oq:f!=null?f:A},a)}})};
KXd=function(A){switch(A){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
J8x=function(A,Q,b,f,a,T){var G=_.j2.clone(i0n);G.locale=_.vG("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;G.report={description:a||"<empty>"};a=_.vG("SBOX_SETTINGS",{});Q=Q.join(",");var p=Date.now();A={choice_cc:f,choice_id_cc:b,choices_sc:Q,gl:a.REQUEST_DOMAIN,hl:a.REQUEST_LANGUAGE,query:A,time:p};T&&(A.choice_additional_comment_cc=T);_.iwj(G,A)};
VMO=function(A){var Q=new Map;Q.set("authuser",_.vG("SESSION_INDEX","0"));return _.Bl(A,Q)};
nzn=function(A){var Q;return _.B(function(b){switch(b.nextAddress){case 1:if(!A||!O0M(A))return b.return(null);Q=null;switch(_.vG("INNERTUBE_CLIENT_NAME")){case "WEB":return b.jumpTo(2);case "WEB_REMIX":Q=A.getPlayer()}b.jumpTo(3);break;case 2:return b.yield(A.getPlayerPromise(),4);case 4:Q=b.yieldResult;b.jumpTo(3);break;case 3:return b.return(Q)}})};
O0M=function(A){return["ytd-player","ytmusic-player"].includes(String(A.tagName||"").toLowerCase())};
keO=function(A){A=Math.round(A);return A%2?A-1:A};
I3x=function(A){A=Math.round(A);return A%2===0?A-1:A};
H0M=function(A){var Q,b,f;if(A=(Q=A.createPlaylistDialogFormSchema)==null?void 0:(b=Q.fieldSchemas)==null?void 0:(f=b.title)==null?void 0:f.validationSchema)for(Q=[A.syncStep,A.asyncStep].filter(function(a){return a!==void 0}),Q=_.F(Q),b=Q.next();!b.done;b=Q.next()){b=b.value.rules;
if(!b)break;b=_.F(b);for(b=b.next();!b.done;b=b.next())return _.V(b.value,_.oQq)}};
qGF=function(A){var Q,b,f;if(A=(Q=A.createPlaylistDialogFormSchema)==null?void 0:(b=Q.fieldSchemas)==null?void 0:(f=b.visibility)==null?void 0:f.validationSchema)for(Q=[A.syncStep,A.asyncStep].filter(function(a){return a!==void 0}),Q=_.F(Q),b=Q.next();!b.done;b=Q.next()){b=b.value.rules;
if(!b)break;b=_.F(b);for(f=b.next();!f.done;f=b.next())if(f=_.V(f.value,CeF))return Q=void 0,(Q=f.translations)==null?void 0:Q.visibilityNotValidErrorMessage}};
oz7=function(){var A,Q;return(Q=(A=_.fJ().resolve(_.bu(_.Af)))==null?void 0:A())!=null?Q:!1};
tMK=function(A){var Q=21;if(!A)return Q;Q+=A.headerTitle?27:0;Q+=A.headerTitle&&A.hasHeaderActionHeader?4:0;return Q+=A.headerTitle&&A.headerSubtitle?16:0};
r8s=function(A){var Q=0;if(!A)return Q;Q+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton?48:0;Q+=A.footerTrailingLabel||A.footerLeadingLabel?30:0;return Q+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton||!A.footerTrailingLabel&&!A.footerLeadingLabel?0:12};
jPt=function(A){var Q=new _.KJ,b=A;return{subscribe:function(f){Q.subscribe("changed",f)},
dispatch:function(f,a){var T=b;f==="Touch Start"?b=Object.assign({},T,{isAnimating:!1,initialY:a.event.touches[0].clientY}):f==="Touch Move"?(f=Math.min(a.fullContentWrapperHeight,a.contentHeightMap[a.contentWrapperId]+tMK(a.header)-r8s(a.footer)),b=Object.assign({},T,{currentY:Math.max(a.contentScrollable?-1*(T.initialY-24):0,a.event.touches[0].clientY-T.initialY),maxHeightForContentWrapper:Math.min(f,Math.max(0,(T.isFullScreen?f:a.contentWrapperHeight)-T.currentY))})):b=f==="Snap To Full Screen"?
Object.assign({},T,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:a.maxHeight}):f==="Snap To Neutral Position"?Object.assign({},T,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:a.maxHeight}):f==="Close Sheet"?Object.assign({},T,{isAnimating:!0,currentY:a.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:a.maxHeight}):T;Q.publish("changed",b)}}};
RUM=function(A){return _.IY(function(Q){A(Q);return!1})};
gz7=function(){_.fJ().resolve(_.j4).closeSheet()};
eUF=function(A){var Q,b,f,a,T,G,p,P,U,L,M;return{headerTitle:(Q=A.headerTitle)==null?void 0:Q.call(A),headerSubtitle:(b=A.headerSubtitle)==null?void 0:b.call(A),headerActionHeader:A.headerActionHeader,footerPrimaryButton:A.footerPrimaryButton,footerSecondaryButton:A.footerSecondaryButton,footerButtonType:(f=A.footerButtonType)==null?void 0:f.call(A),footerLeadingLabel:(a=A.footerLeadingLabel)==null?void 0:a.call(A),footerTrailingLabel:(T=A.footerTrailingLabel)==null?void 0:T.call(A),shouldShowIcons:(G=
A.shouldShowIcons)==null?void 0:G.call(A),skipContentClick:(p=A.skipContentClick)==null?void 0:p.call(A),additionalClassName:(P=A.additionalClassName)==null?void 0:P.call(A),onClosedCallback:A.onClosedCallback,focusOnClose:(U=A.focusOnClose)==null?void 0:U.call(A),isDisabled:(L=A.isDisabled)==null?void 0:L.call(A),disabledCommand:(M=A.disabledCommand)==null?void 0:M.call(A),headerFn:A.headerFn,contentFn:A.contentFn,footerFn:A.footerFn,hasHeaderFn:A.hasHeaderFn(),hasContentFn:A.hasContentFn(),hasFooterFn:A.hasFooterFn(),
hasFooterPrimaryButton:A.hasFooterPrimaryButton(),hasFooterSecondaryButton:A.hasFooterSecondaryButton(),hasHeaderActionHeader:A.hasHeaderActionHeader()}};
hUN=function(A){switch(A){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""}};
WXK=function(A){switch(A){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""}};
vzO=function(A){switch(A){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""}};
EzM=function(A,Q,b){Q.forEach(function(f){_.JY(_.fJ().resolve(_.gu),f)});
_.pD(A,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",b])};
w8t=function(A,Q,b,f){var a=_.V(b,_.D6).commandLifeCycleConfig;a&&a.onStartCommand&&_.ST(A,[a.onStartCommand],Q);_.y3(Q);var T=_.s4.instance;T&&_.m4(T,b)?_.Ay(T,b,f).then(function(G){if(!G||(G==null?0:G.error))return G=_.V(b,_.D6).serializedTransactionFlowLoggingParams,_.YB(Q),_.gF(new OF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",G));_.YB(Q);return{data:G}}).then(function(G){_.YB(Q);
x7s(G.data);var p=G.data.command;p&&_.ST(A,[p],Q);p=c8l(b,G.data);if(!p){var P=G.data;G=!1;if(P&&P.command&&_.V(P.command,_.LD)){var U;P=((U=_.V(P.command,_.LD))==null?void 0:U.commands)||[];for(U=0;U<P.length;U++)if(_.V(P[U],_.i3M)){G=!0;break}}G||_.hX('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!p&&a&&a.onSuccessCommand?_.ST(A,[a.onSuccessCommand],Q):p&&a&&a.onFailureCommand&&_.ST(A,[a.onFailureCommand],Q)},function(){_.YB(Q);
a&&a.onFailureCommand&&_.ST(A,[a.onFailureCommand],Q);zUK(b)}):_.en(Error("Al"),"ERROR")};
upq=function(A,Q,b){var f=[Q];b&&f.push(b);return _.X5(A,f).then(function(a){var T=_.V(Q,_.D6).serializedTransactionFlowLoggingParams,G=a.data,p=c8l(Q,G);p?a=_.gF(new OF(p,T)):x7s(G);return a},function(){var a=_.V(Q,_.D6).serializedTransactionFlowLoggingParams;
zUK(Q);return _.gF(new OF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",a))})};
c8l=function(A,Q){A=_.V(A,_.D6).serializedTransactionFlowLoggingParams;var b=null;switch(Q.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":b="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":b="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":b="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}b?_.Nj(b,A):aV7(A);return b};
zUK=function(A){_.Nj("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.V(A,_.D6).serializedTransactionFlowLoggingParams)};
x7s=function(A){if(A.trackingParams){var Q=_.WR(),b=_.hx();Q&&b&&_.ui(Q,b,_.t8(A.trackingParams))}};
Z0N=function(A,Q,b){var f=_.s4.instance,a=_.EFX(_.vG("YPC_MB_URL")),T=(new _.WsJ).init(),G=_.vF6(),p=_.V(b,_.LDM).languageCode;p===void 0?_.en(Error("Ei"),"ERROR"):_.qY([T,a]).then(function(){var P={ctk:payments.business.integration.ClientTokenFactory.createClientToken(p,G)};f&&_.m4(f,b)?_.Ay(f,b,P).then(function(U){return{data:U}}).then(function(U){_.Bn(Q,"yt-service-request-completed",U);
U.code!=="ERROR"&&(U=U.data.command)&&_.ST(A,[U],Q)}):_.en(Error("Al"),"ERROR")})};
D7N=function(A,Q,b,f){var a=_.s4.instance;a&&_.m4(a,b)?_.Ay(a,b,f).then(function(T){return{data:T}}).then(function(T){y8N(A,Q,b,T)},function(){YGq(b)}):(a=_.fJ().resolve(_.bu(_.WY)))&&a.requestDataForServiceEndpoint(b,f).then(function(T){y8N(A,Q,b,T)},function(){YGq(b)})};
y8N=function(A,Q,b,f){_.Bn(Q,"yt-service-request-completed",f);if(f.code&&f.code=="ERROR")YGq(b);else{(f=f.data.commands)&&_.ST(A,f,Q);var a;(A=(a=_.V(b,_.VqN))==null?void 0:a.serializedYpcPauseFlowLoggingParams)&&A&&_.mb("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",A)}};
YGq=function(A){var Q;(A=(Q=_.V(A,_.VqN))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&A&&_.mb("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
sPq=function(A,Q,b){var f=_.s4.instance;f&&_.m4(f,b)?_.Ay(f,b).then(function(a){return{data:a}}).then(function(a){$7N(A,Q,b,a)},function(){NFF(b)}):(f=_.fJ().resolve(_.bu(_.WY)))&&f.requestDataForServiceEndpoint(b).then(function(a){$7N(A,Q,b,a)},function(){NFF(b)})};
$7N=function(A,Q,b,f){_.Bn(Q,"yt-service-request-completed",f);f.code&&f.code=="ERROR"?NFF(b):((f=f.data.commands)&&_.ST(A,f,Q),(A=_.V(b,_.O3N).serializedYpcResumeFlowLoggingParams)&&A&&_.mb("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",A))};
NFF=function(A){(A=_.V(A,_.O3N).serializedYpcResumeFlowLoggingParams)&&A&&_.mb("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
m7t=function(A){A=A===void 0?{}:A;_.fJ().resolve(_.$pY).showFeedbackDialog(A.customProductData,A.feedbackContent,A.onFeedbackSubmitted,A.bucket)};
Afl=function(A){A=A===void 0?{}:A;_.fJ().resolve(_.$pY).showHelpDialog(A.helpContext,A.articleId,A.productData)};
QY7=function(){Afl()};
bEr=function(){m7t()};
act=function(A,Q,b){var f,a,T,G,p,P,U;return _.B(function(L){switch(L.nextAddress){case 1:f=_.V(A,fcs);if((a=f)==null?0:a.productId){P={productId:f.productId,bucket:f.bucket,enableAnonymousFeedback:(p=f.enableAnonymousFeedback)!=null?p:!0,allowNonLoggedInFeedback:!0};U={feedbackChoice:b.feedbackChoice};if(!_.K("web_collect_offline_state")){L.jumpTo(8);break}_.ML(L,9);return L.yield(KEK(U),11)}G={bucket:(T=f)==null?void 0:T.bucket};if(!_.K("web_collect_offline_state")){L.jumpTo(4);break}G.customProductData=
{};_.ML(L,5);return L.yield(KEK(G.customProductData),7);case 7:_.Z1(L,4);break;case 5:_.Vw(L);case 4:m7t(G);L.jumpTo(0);break;case 11:_.Z1(L,8);break;case 9:_.Vw(L);case 8:_.Cx6(U),_.HrY("GFEEDBACK",U),f.productId==="5295751"&&(U.client_attestation=Number(_.vG("CATSTAT",0))),f.productId==="5295751"&&(U.client_time=Date.now()/1E3/3600),f.productId==="5295751"&&(U.original_playback_id=_.aHW||""),_.iwj(P,U),_.Oi(L)}})};
T_t=function(A){if(A=_.V(A,_.YgY)){var Q={bucket:A.bucketIdentifier};A.additionalDatas&&(Q.customProductData={},A.additionalDatas.forEach(function(b){if(b=b.userFeedbackEndpointProductSpecificValueData)Q.customProductData[b.key]=b.value}));
m7t(Q)}};
dMs=function(A){var Q=_.Yk.getInstance();var b=_.JQ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var f=_.JQ("DELETE",void 0,"Delete"),a=_.JQ("CANCEL",void 0,"Cancel");b=nwx(b,void 0,f,a,{signal:"DELETE_ALL_DOWNLOADS"});_.x4(Q,[{openPopupAction:b}],A)};
GZO=function(){return _.B(function(A){return A.nextAddress==1?A.yield(_.fJ().resolve(_.KP),2):A.yield(F4n(),0)})};
B_t=function(A){var Q,b;return _.B(function(f){return f.nextAddress==1?(b=(Q=_.V(A,_.uv))==null?void 0:Q.targetId)?f.yield(_.fJ().resolve(_.KP),3):f.jumpTo(0):f.yield(_.fJ().resolve(_.lU).deleteVideo(b),0)})};
Pcx=function(A){var Q,b;return _.B(function(f){return f.nextAddress==1?(b=(Q=_.V(A,_.uv))==null?void 0:Q.targetId)?f.yield(_.fJ().resolve(_.KP),3):f.jumpTo(0):f.yield(pzK(_.fJ().resolve(_.lU),b),0)})};
S4t=function(A){var Q,b;return _.B(function(f){return(b=(Q=_.V(A,_.uv))==null?void 0:Q.targetId)?f.yield(XzK(b),0):f.jumpTo(0)})};
L4d=function(){_.K("kevlar_woffle_refresh_dl_load_killswitch")||UMN()};
lcx=function(){_.K("kevlar_woffle")&&_.g6.instance&&MlK()};
iEt=function(A){var Q;if((Q=_.V(A,_.n6))==null||!Q.videoId)return!1;K4M(_.fJ().resolve(_.lU),_.V(A,_.n6),A.clickTrackingParams);return!0};
VlF=function(A){var Q;if((Q=_.V(A,_.ks))==null||!Q.playlistId)return!1;Jfn(_.fJ().resolve(_.lU),_.V(A,_.ks),A.clickTrackingParams);return!0};
nox=function(A){var Q=_.V(A,_.Fcr);(Q==null?void 0:Q.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(Q==null?void 0:Q.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||OEx(_.fJ().resolve(_.lU),_.V(A,_.Fcr))};
IcM=function(A){A=_.V(A,_.vty);var Q;(A==null?0:(Q=A.actions)==null?0:Q.length)&&kZx(A)};
q4x=function(A){var Q,b;return _.B(function(f){Q=_.V(A,HEx);return(b=Q)!=null&&b.localWatchHistoryCommandType?f.yield(CcK(Q),0):f.return()})};
ooO=function(A){setTimeout(function(){requestAnimationFrame(A)},80)};
tlr=function(A){return Object.entries(A).map(function(Q){return Q.join(":")}).join(";")};
jYr=function(A){var Q,b,f;_.B(function(a){if(a.nextAddress==1)return a.yield(rfO(),2);Q=a.yieldResult;b=_.J8.instance;switch(Q){case "granted":f=A.getLocationCommand;break;case "denied":f=A.openDeniedDialogAction;break;case "prompt":f=A.openCollectionDialogAction;break;default:f=A.openCollectionDialogAction}f&&b.resolveCommand(f);_.Oi(a)})};
rfO=function(){var A,Q;return _.B(function(b){if(b.nextAddress==1)return A="prompt",navigator.permissions?b.yield(navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2);b.nextAddress!=2&&(Q=b.yieldResult,A=Q.state);return b.return(A)})};
goK=function(){_.B(function(A){return A.yield(_.Rvd(),0)})};
evs=function(){var A,Q,b;return _.B(function(f){if(f.nextAddress==1)return A=_.fJ().resolve(_.vY),A?f.yield(_.Ay(A,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Wv(Error("Dl")),f.return(void 0));if(Q=f.yieldResult){if(Q.errorMetadata)return _.Wv(Error("El`"+Q.errorMetadata.status+"`"+Q.error)),f.return(void 0);b=Q.datasyncIds;_.mc9=b.length;return f.return(b)}_.Wv(Error("Fl"));return f.return(void 0)})};
hvx=function(){evs().then(function(A){A&&(xH7(A),B2x(A),jiF(A),VTt(A))})};
W4F=function(A){_.j7.addLowPriorityJob(function(){var Q,b,f,a,T;return _.B(function(G){switch(G.nextAddress){case 1:if(_.K("ytidb_clear_optimizations_killswitch")){G.jumpTo(2);break}Q=_.nJ("clear");if(Q.startsWith("V")&&Q.endsWith("||")){var p=[Q];xH7(p);B2x(p);jiF(p);VTt(p);return G.return()}b=RzN();f=ODO();return G.yield(pnO(),3);case 3:return a=G.yieldResult,G.yield(cjO(),4);case 4:if(T=G.yieldResult,!(b||f||a||T))return G.return();case 2:A.isNetworkAvailable()?hvx():A.listenOnce("publicytnetworkstatus-online",
hvx),_.Oi(G)}})})};
n5=function(A){A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.sr(A)}}}};_.J8.instance&&_.J8.instance.resolveCommand(A)};
vox=function(A){if(A){var Q=_.IP();_.Mk(Q,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var b=238708;break;case 2:b=238715;break;case 3:b=238710;break;case 6:b=238709}b&&(A=_.kz(Q,{veType:b}))&&_.i$(Q,A)}};
EoN=function(A){if(A){var Q=_.IP();_.Mk(Q,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var b=238714;break;case 2:b=238711;break;case 8:b=238709;break;case 7:b=238713;break;case 3:case 4:case 5:b=238712}b&&(A=_.kz(Q,{veType:b}))&&_.i$(Q,A)}};
xMF=function(A){switch(A.latencyType){case 0:_.eT("consent_primitive_flow");_.hQ("cpit",A.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.hQ("cpist",A.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.hQ("cprtif",A.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.hQ("cprtli",A.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.hQ("cprt",A.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.hQ("cpdt",A.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.hQ("cpjct",A.timestampEpochMillis,"consent_primitive_flow")}};
N_K=function(A,Q){var b,f,a,T,G,p,P,U,L,M,l,J,n,t,g,e,x,D,w,u;return _.B(function(y){switch(y.nextAddress){case 1:_.ML(y,2);(f=(b=_.V(A,cft))==null?void 0:b.serializedConsentRequest)||(f=(a=_.V(A,zvq))==null?void 0:a.serializedConsentRequest);f&&(T=wzx(_.$C(f)));if(T===void 0)return y.return();G=uSs(T);G.latencyCallback=xMF;Q&&ZEr(G,function(){Q.then(function(a9){a9.pauseVideo();(new yfs).increment()})});
return((p=_.V(A,cft))==null?void 0:p.consentAction)==="CONSENT_ACTION_PREWARM"||((P=_.V(A,zvq))==null?void 0:P.consentAction)==="CONSENT_ACTION_PREWARM"?y.yield(Y4t(G),5):y.yield(DMx(G),6);case 6:U=y.yieldResult;L=_.Ce(U,ki);if(L===1){if(((M=_.vD(U,I2,1,ki))==null?void 0:_.e1(M,1))===1||((l=_.vD(U,I2,1,ki))==null?void 0:_.e1(l,1))===2||((J=_.vD(U,I2,1,ki))==null?void 0:_.e1(J,1))===3)_.V(A,zvq)?n5(_.JQ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
n5(_.JQ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));vox((n=_.vD(U,I2,1,ki))==null?void 0:_.e1(n,1),_.fK(U,$Mn,3,_.aL()))}else L===2?(((t=H4(U))==null?void 0:_.e1(t,1))===5?_.V(A,zvq)?n5(_.JQ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):n5(_.JQ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((g=H4(U))==null?void 0:_.e1(g,1))===1||((e=H4(U))==null?void 0:_.e1(e,1))===4?n5(_.JQ("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((x=H4(U))==null?void 0:_.e1(x,1))===7&&((D=T)==null?void 0:(w=_.dO(D,C5,4))==null?void 0:_.e1(w,4))!==1&&n5(_.JQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),EoN((u=H4(U))==null?void 0:_.e1(u,1))):n5(_.JQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.Z1(y,0);break;case 2:_.Vw(y),n5(_.JQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Oi(y)}})};
mMM=function(){if(!sYF.has("Worker")){sYF.set("Worker",!0);var A={api:"BROWSER_API_WEB_WORKER"};A.available="Worker"in window?!0:!1;_.R4("apiTest",A)}};
Ayd=function(A){return typeof A==="undefined"?"-1":String(Math.ceil(A/1048576))};
abl=function(A,Q){Q$q(new b6d(_.V(Q,fbN).addToken,_.V(Q,fbN).commonToken)).then(function(){_.Bn(A,"yt-invoke-instrument-manager-action-completed")},function(b){_.Bn(A,"yt-invoke-instrument-manager-action-error",b)})};
Tzx=function(){var A,Q;return(Q=(A=window).matchMedia)==null?void 0:Q.call(A,"(prefers-reduced-motion: reduce)").matches};
dIO=function(A){var Q=_.fJ().resolve(_.bu(_.Hg));if(Q&&Q.isAnyTransitionEnabled){var b={};Q.viewTransitionCoordinator.registerElement(A,(b.slide="miniplayer-page-transition",b["lockup-to-watch"]="miniplayer-page-transition",b["learning-journey"]="miniplayer-page-transition",b))}};
Fml=function(A,Q,b){return{horizontalAlignment:A.x+b.width/2<Q.width/2?"west":"east",verticalAlignment:A.y+b.height/2<Q.height/2?"north":"south"}};
BzM=function(A,Q,b,f,a){a=a===void 0?new _.gQ(0,0):a;A=GGO(A,Q,b,f);return new _.gQ(A.x+a.x,A.y+a.y)};
GGO=function(A,Q,b,f){return new _.gQ(A==="west"?16:b.width-f.width-16,Q==="north"?16:b.height-f.height-16)};
pLx=function(A,Q){var b=0;A&&(b+=76);Q&&(b+=285);return b};
PJ7=function(A){return _.wA(A)};
XLl=function(A){var Q=1;A=A.split(":");for(var b=[];Q>0&&A.length;)b.push(A.shift()),Q--;A.length&&b.push(A.join(":"));return b};
ShF=function(A){var Q=new _.SV;return _.E2(Q,11,A)};
UId=function(A){var Q={};A=A.getAllResponseHeaders().split("\r\n");for(var b=0;b<A.length;b++)if(!_.Be(A[b])){var f=XLl(A[b]),a=f[0];f=f[1];if(typeof f==="string"){f=f.trim();var T=Q[a]||[];Q[a]=T;T.push(f)}}return _.j2.map(Q,function(G){return G.join(", ")})};
ef=function(A,Q){return A.JSC$9738_xhr_?A.JSC$9738_xhr_.getResponseHeader(Q):null};
Lm7=function(A,Q){if(A.isDisposed())throw Error("Ea");A.bf.aG("n");var b=_.h1(A.bf,function(){return A.gX3([Q.lN,Q.pMA,Q.lFK,Q.iMH])},"n");
A.bf.pde(b.length);A.bf.c3();return b};
qw=function(A,Q,b){Array.isArray(b)||(b=[String(b)]);_.$z1(A.JSC$9973_queryData_,Q,b);return A};
MlK=function(){var A=_.g6.instance;_.B(function(Q){return A.deferredInstallPrompt?Q.yield(A.deferredInstallPrompt.prompt(),0):Q.jumpTo(0)})};
MJN=function(A,Q,b){if(_.ce(A))_.ZR(A,Q,b);else for(A=_.BKy(A);;){var f=A.next();if(f.done)break;Q.call(b,f.value,void 0,A)}};
lbl={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}"]};
lbl={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 Kmr=function(A,Q){var b=[];MJN(Q,function(f){try{var a=_.PR.prototype.getWrapper.call(this,f,!0)}catch(T){if(T=="Storage: Invalid value was encountered")return;throw T;}a===void 0?b.push(f):_.G9L(a)&&b.push(f)},A);
return b},i6K=function(A,Q){Kmr(A,Q).forEach(function(b){_.PR.prototype.remove.call(this,b)},A)},JyN=function(A){var Q=_.Yt;
Q._minimumZ=Math.max(Q._minimumZ,A)},VJN=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],O6O=function(A,Q){_.AT(A.vm);A.vm=Q},nsn=function(A,Q,b,f){A.setState(5);
var a=!!A.ltS&&VJN.includes(_.sp(A.ltS)||"");try{var T=new _.W2({program:Q,globalName:b,c4f:{disable:!_.K("att_web_record_metrics")||!_.K("att_skip_metrics_for_cookieless_domains_ks")&&a,nj:"aGIf"}});T.auf.then(function(){A.setState(6);f&&f(Q)});
O6O(A,T)}catch(G){A.setState(7),G instanceof Error&&_.Wv(G)}},kGK=function(A,Q,b,f,a,T){var G=G===void 0?"trayride":G;
b?(A.setState(2),_.uh(_.CK(b),function(){if(window[G])nsn(A,f,G,a);else{A.setState(3);var p=_.yVF(b),P=document.getElementById(p);P&&(_.$7f(p),P.parentNode.removeChild(P));_.Wv(new _.IO("BL:ULB",b))}},T)):Q?(T=_.KK("SCRIPT"),Q instanceof _.$8?_.s$(T,Q):T.textContent=Q,T.nonce=_.Di(document),document.head.appendChild(T),document.head.removeChild(T),window[G]?nsn(A,f,G,a):(A.setState(4),_.Wv(new _.IO("BL:ULBJ")))):_.Wv(new _.IO("BL:ULV"))},Ibs=function(){this.state=1;
this.vm=null;this.ltS=void 0};
_.d=Ibs.prototype;_.d.initialize=function(A,Q,b,f){this.ltS=f;if(A.program){var a;f=(a=A.interpreterUrl)!=null?a:null;if(A.interpreterSafeScript)a=_.K5A(A.interpreterSafeScript);else{var T;a=(T=A.interpreterScript)!=null?T:null}A.interpreterSafeUrl&&(f=_.Rx(A.interpreterSafeUrl).toString());kGK(this,a,f,A.program,Q,b)}else _.Wv(Error("kf"))};
_.d.isInitialized=function(){return!!this.vm};
_.d.getState=function(){return this.state};
_.d.isLoading=function(){return this.state===2};
_.d.invoke=function(A){A=A===void 0?{}:A;var Q;this.vm?Q=Lm7(this.vm,{lN:A}):Q=null;return Q};
_.d.dispose=function(){O6O(this,null);this.setState(8)};
_.d.setState=function(A){this.state=A};
var H6s=function(A,Q){return A.vm.snapshot(Q)},CJM=function(A,Q){var b=_.GP("botguard_async_snapshot_timeout_ms",3E3);
Q=Q===void 0?{}:Q;b=b===void 0?3E3:b;return A.vm?new Promise(function(f,a){var T=!1,G=_.j7.addJob(function(){T=!0;a(Error("lf"))},1,b);
A.vm?H6s(A,{lN:Q}).then(function(p){_.j7.cancelJob(G);T||f(p)}).catch(function(p){_.j7.cancelJob(G);
T||a(p)}):(_.j7.cancelJob(G),f(null))}):Promise.resolve(null)},qhl=["att/log"],MMx;
MMx={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var osM={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},tJl=function(A,Q){return _.Or(A,{mode:"readwrite",enableRetries:!0},function(b){return _.HYy(b,Q,"settingEntity")})},ryt=function(A,Q,b){return _.Or(A,{mode:"readonly",
enableRetries:!0},function(f){return _.cS1(f,Q,b)})},j$O=function(A){if(!A.storage)return!1;
a:{if(A.storage){try{var Q=A.storage.get("TLPQtimestamp")}catch(b){}A=Number(Q);if(!isNaN(A))break a}A=void 0}return A?Date.now()-A<864E5:!1},RQF=function(A){if(A.storage){try{var Q=A.storage.get("TLPQindex")}catch(b){}A=Number(Q);
if(!isNaN(A))return A}},gsl=function(A,Q){A.queueProxy&&Q.forEach(function(b){if(b.videoId&&b.trackingParams&&A.queueProxy instanceof _.c1){var f=_.WR();
A.queueProxy.attributionData.set(b.videoId,{enqueueingVe:_.t8(b.trackingParams).getAsJson(),enqueueingCsn:f?f:void 0,clientEnqueueingTimeMs:Math.floor((0,_.f4)()).toString()})}})},eQx=function(A){var Q=_.OBN(A);
Q!=A.currentSnapState_&&(A.currentSnapState_=Q,A.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},o2=function(A){this.JSC$13039_networkManager_=A;
this.partCallbacks_=[]};
o2.prototype.getCacheKeyForEndpoint=function(A){return _.B8f(A,!1)};
o2.prototype.onPartsCallback_=function(A){this.partCallbacks_.forEach(function(Q){A&&Q(A)})};
var t5=function(A,Q,b){o2.call(this,A);this.player_=Q;this.autoplayData_=b};
_.O(t5,o2);t5.prototype.getCacheKeyForEndpoint=function(A){return _.B8f(A,!!this.autoplayData_)};
t5.prototype.getTempData=function(A,Q){Q=Q.timeBeforeNextVideo;A={itct:A.clickTrackingParams,lact:_.TD(),pbis:Q,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(A.autonav=1);return A};
t5.prototype.getXhrParams=function(A){return Object.assign({pbj:"prefetch"},A)};
t5.prototype.getParams=function(A){A={frags:A.fragmentsRequested.join(",")};_.K("kevlar_droppable_prefetchable_requests")&&(A.prefetch=1);return A};
var hQO=function(A){A.playerEvents_.forEach(function(Q){A.player.removeEventListener(Q.eventName,Q.callback)});
A.playerEvents_.length=0},rJ=function(A,Q,b){this.player=A;
this.JSC$13049_taskManager=Q;this.prefetchDelay=b;this.completionResolver_=null;this.playerEvents_=[]};
rJ.prototype.start=function(){var A=this;this.completionResolver_=_.Qh();_.oH(this.completionResolver_.promise,function(){hQO(A);A.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Wml=function(A,Q,b){A.player.addEventListener(Q,b);A.playerEvents_.push({eventName:Q,callback:b})},vsx={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Esd={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},xId=function(A,Q,b){rJ.call(this,A,Q,b);this.cueId_="playbackTrigger-"+Math.random()};
_.O(xId,rJ);
xId.prototype.prepareTrigger=function(A){var Q=this,b=this.player.getDuration(),f=this.player.getVideoData(),a=f.isLive&&f.hasProgressBarBoundaries;if(a&&f.progressBarEndPositionUtcTimeMillis){var T=f.progressBarEndPositionUtcTimeMillis/1E3;isNaN(T)||(b=T)}var G=0;this.prefetchDelay>=0?a?f.progressBarStartPositionUtcTimeMillis&&(f=f.progressBarStartPositionUtcTimeMillis/1E3,isNaN(f)||(G=f+this.prefetchDelay)):G=this.prefetchDelay:G=b+this.prefetchDelay;a?this.player.addUtcCueRange(this.cueId_,G,b):
this.player.addCueRange(this.cueId_,G,b);_.oH(A.promise,function(){Q.player.removeCueRange(Q.cueId_)});
Wml(this,"onCueRangeEnter",function(p){p==Q.cueId_&&A.resolve(b-G)})};
var cyd=function(A,Q){A.fragmentConfiguration_[Q].requiredKeys.every(function(b){return!!A.prefetchedData_[b]})&&(A.validatedFragments_.push(Q),Q=A.missingFragments_.indexOf(Q),Q!==-1&&A.missingFragments_.splice(Q,1))},zQl=function(A){A.prefetchedFragments_.forEach(function(Q){cyd(A,Q)})},wLF=function(A,Q,b){this.pageFragments_=A;
this.prefetchedFragments_=Q;this.fragmentConfiguration_=Esd;this.prefetchedData_=b;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;zQl(this)},u7s=function(){},Z6x=function(A){this.JSC$13063_playlistManager_=A};
_.O(Z6x,u7s);Z6x.prototype.getPrefetchEndpoint=function(){return this.JSC$13063_playlistManager_.getAutoplayEndpoint()};
var yyO=function(A){this.autonavEndpoints_=A};
_.O(yyO,u7s);yyO.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var YhN=function(A,Q,b,f,a){this.autonavEndpoints=A;this.foregroundTrigger=Q;this.backgroundTrigger=b;this.pageType=f;this.isInPlaylist=a},DIr=function(A,Q){if(A.webPrefetchData&&A.webPrefetchData.navigationEndpoints&&A.webPrefetchData.navigationEndpoints.length){A=A.webPrefetchData.navigationEndpoints;
var b=_.V(A[0],_.sv);if(b.watchEndpointSupportedPrefetchConfig&&b.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var f=b.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;b=f.playbackRelativeSecondsPrefetchCondition;b=typeof b==="number"&&Math.abs(b)<Q.videoDuration?b:void 0;f=f.countdownUiRelativeSecondsPrefetchCondition;f=typeof f!=="number"||_.K("prefetch_job_config_cleanup_ks")&&Q.inPlaylist?void 0:f;if(typeof f==="number")return new YhN(A,Q.makeUpNextTrigger(f),Q.makePlaybackTrigger(f),
"watch",Q.inPlaylist);if(typeof b==="number")return new YhN(A,Q.makePlaybackTrigger(b),null,"watch",Q.inPlaylist)}}},$I7=function(A){return A.prefetchJobConfig_.backgroundTrigger?_.cG(_.wTy)()==0?A.prefetchJobConfig_.backgroundTrigger:A.prefetchJobConfig_.foregroundTrigger:A.prefetchJobConfig_.foregroundTrigger},Nzx=function(A){_.kp(document,"visibilitychange",A.onVisibilityChange_,!1,A)},jj=function(A){o2.call(this,A)};
_.O(jj,o2);jj.prototype.getCacheKeyForEndpoint=function(A){return o2.prototype.getCacheKeyForEndpoint.call(this,A)};
jj.prototype.getTempData=function(){return{}};
jj.prototype.getXhrParams=function(A){return A};
jj.prototype.getParams=function(){return{}};
var s$q=function(A,Q,b){var f=A.prefetchDelay*1E3;if(Math.abs(f)>Q)b.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var a=f,T=Q-f;f<0&&(a=Q+f,T=Math.abs(f));var G=A.JSC$13049_taskManager.addJob(function(){b.resolve(T/1E3)},10,a);
b.promise.thenCatch(function(){A.JSC$13049_taskManager.cancelJob(G)})}},mIn=function(A,Q,b){rJ.call(this,A,Q,b)};
_.O(mIn,rJ);mIn.prototype.prepareTrigger=function(A){var Q=this;Wml(this,"onAutonavCoundownStarted",function(b){s$q(Q,b,A)})};
var Acd=function(A){A.pendingPrefetchJob_&&(A.pendingPrefetchJob_.cancel(),A.pendingPrefetchJob_=null)},QbN=function(A,Q,b){if(!A.triggeredTargets.has(Q)){var f=_.Mzv(A,Q);
f.action=b;_.UnL(A,Q,f)}},bSl=function(A){_.bX$();
_.aOU("cpt")&&_.Wv(Error("kh"));_.by.requestAnimationFrame(function(){_.by.setTimeout(function(){_.hQ("cpt");var Q=_.El("vpl"),b=_.El("cpt");Q&&b&&_.hQ("ol",Math.max(Q,b))})});
try{_.hQ("fr_s"),A()}catch(Q){_.en(Q)}_.by.requestAnimationFrame(function(){_.hQ("bcp")})},fhd=function(A,Q){A.serviceEndpointHandlers.push(Q)},ahq=function(A,Q){Q=A.pendingPages_.indexOf(Q);
Q>-1&&A.pendingPages_.splice(Q,1)},TLN=function(A,Q){var b=_.rWj.indexOf(Q);
b>-1&&_.rWj.splice(b,1);A.targetPage_==Q?(A.abort(),_.Ryv(A)):ahq(A,Q)},dld=function(A,Q,b,f){Q={challenge:Q};
b&&(Q.webResponse=b);return _.wl(A.innertubeTransportService,Q,_.bB(qhl),f)},FPd=function(A,Q,b){if(!Q.challenge)throw Error("mi");
if(Q.botguardData&&Q.botguardData.program){var f=new Ibs;f.initialize(Q.botguardData,function(){CJM(f,{atr_challenge:Q.challenge}).then(function(a){if(!a)throw Error("ni");return dld(A,Q.challenge,a,b)}).catch(function(a){_.Wv(a);
return dld(A,Q.challenge,void 0,b)})},void 0)}else dld(A,Q.challenge,void 0,b)},GkN=function(A,Q,b){var f={};
Q.ids&&(f.ids=[].concat(_.ri(Q.ids)));Q.engagementType&&(f.engagementType=Q.engagementType);return _.wl(A.innertubeTransportService,f,_.bB(_.FxK),b).then(function(a){if(!a)throw new _.IO("GetAttestationChallenge returned falsy");FPd(A,a,b)}).thenCatch(function(a){_.en(a)})},BLd=function(A,Q,b){return new _.M3(function(f,a){var T;
return _.B(function(G){if(G.nextAddress==1){var p=G.yield,P=Q.engagementType,U=Q.ids,L={};U=_.F(U!=null?U:[]);for(var M=U.next();!M.done;M=U.next())M=M.value,M.encryptedVideoId?L.encryptedVideoId=M.encryptedVideoId:M.externalChannelId?L.externalChannelId=M.externalChannelId:M.commentId?L.commentId=M.commentId:M.externalOwnerId?L.externalOwnerId=M.externalOwnerId:M.artistId?L.artistId=M.artistId:M.playlistId?L.playlistId=M.playlistId:M.externalPostId?L.externalPostId=M.externalPostId:M.shareId&&(L.shareId=
M.shareId);return p.call(G,OkF(P,L),2)}T=G.yieldResult;if(!T.challenge)return _.Wv(Error("oi")),GkN(A,Q,b).then(f,a),G.return();p=T;P={challenge:p.challenge};P.webResponse=p.webResponse;P.engagementType=Q.engagementType;P.ids=Q.ids;_.wl(A.innertubeTransportService,P,_.bB(qhl),b).then(f,a);_.Oi(G)})})},tK7=function(A,Q){var b,f,a,T;
_.B(function(G){if(G.nextAddress==1){b=_.V(Q,_.ZGM);if(!(b&&b.listId&&A.response&&A.response.playingVideoId)||A.listId!==b.listId)return G.return();A.index===void 0&&(A.index=0);return G.yield(_.kBL(A.JSC$12794_playlistNetworkManager,b.listId,A.index,A.response.playingVideoId),2)}f=G.yieldResult;if(!f)return G.return();a=f.playlistId;T=f.playlistPanelRenderer;A.setPlaylistData(a,T,f.autoplayRenderer);_.Oi(G)})},pid=function(A,Q,b){var f=A.getParams(b),a=_.CJ4(Q,f),T=A.getTempData(Q,b);
T.endpoint=JSON.stringify(Q);_.K("enable_unknown_lact_fix_on_html5")&&(_.fJ().resolve(_.Wz),T.lact=_.TD());var G={headers:{"X-YouTube-STS":_.vG("STS"),"x-youtube-csoc":1}};_.bi(a,T);return new _.M3(function(p,P){var U=A.getXhrParams(f),L;_.K("kevlar_cache_on_ttl_player")&&(L=_.qO.instance);L&&_.y_9(L,Q)?_.Qgx(L,Q,T,window.location.href).then(function(M){M?p(M):P()},P):_.Cb$(A.JSC$13039_networkManager_,Q,U,A.onPartsCallback_.bind(A),G).then(function(M){M?p(M):P()},P)})},Ppr=function(A,Q){A.triggerPromise_=
Q.start();
A.triggerPromise_.then(function(b){var f=A.prefetchEndpointProvider_.getPrefetchEndpoint();if(f){var a=vsx[A.prefetchJobConfig_.pageType].prefetchedFragments;A.prefetchRequestPromise_=pid(A.JSC$13075_networkPrefetchRequest_,f,{fragmentsRequested:a,timeBeforeNextVideo:b});A.prefetchResponseCacheKey_=A.JSC$13075_networkPrefetchRequest_.getCacheKeyForEndpoint(f);Nzx(A);A.prefetchRequestPromise_.then(function(T){A.storePrefetchedDataCallback_(A.prefetchResponseCacheKey_,T);if(_.K("web_prefetch_preload_video")&&
a.length===1&&a[0]==="pl"&&T&&!T.playerAds&&!T.adPlacements){var G=_.V(f,_.CT),p=G!=null,P={raw_player_response:T,watch_endpoint:G};(T=_.fJ().resolve(p?_.dor:_.Uh))&&f&&T.then(function(U){p&&_.K("web_queue_preload_video")?(P.prefer_gapless=!0,U.queueNextVideo(P)):U.preloadVideoByPlayerVars(P)})}})}})},R2=function(A,Q,b,f){this.prefetchEndpointProvider_=A;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=Q;this.prefetchJobConfig_=b;this.JSC$13075_networkPrefetchRequest_=f;this.prefetchResponseCacheKey_=null};
R2.prototype.enqueue=function(){this.triggerPromise_||(Ppr(this,$I7(this)),_.jM(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
R2.prototype.resolve=function(){this.cancel()};
R2.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.");Nzx(this)};
R2.prototype.onVisibilityChange_=function(){var A=this;_.cG(_.wTy)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){A.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Ppr(this,$I7(this))};
var XiM=function(A,Q,b,f,a){Q&&(Q==null?0:Q.videoId)&&b&&b.entries&&_.K("kevlar_enable_shorts_prefetch_in_sequence")&&(Acd(A),Q=b.entries.map(function(T){var G;return(G=_.V(T.command,_.CT))==null?void 0:G.videoId}).indexOf(Q.videoId),b=b.entries[Q+1],b!=null&&b.command&&!_.V(b==null?void 0:b.command,_.cV)&&(f=new YhN([b.command],new xId(f,_.j7,1),null,"shorts",!1),A.pendingPrefetchJob_=new R2(new yyO(f.autonavEndpoints),function(){return!1},f,new jj(a)),A.pendingPrefetchJob_.enqueue()))},Ssd=function(A,
Q,b,f,a,T){var G=_.dl.getInstance();
if(!_.K("block_all_player_prefetch_requests")){Acd(A);var p=!!b.getPlaylistId(),P=b.getVideoData().isLive&&b.getVideoData().hasProgressBarBoundaries;if((G.getState()==2||p||P)&&(!b.getVideoData().isLive||P)){G={inPlaylist:p,videoDuration:b.getDuration(),makeUpNextTrigger:function(L){return new mIn(b,_.j7,L)},
makePlaybackTrigger:function(L){return new xId(b,_.j7,L)}};
var U=DIr(Q,G);U&&(A.pendingPrefetchJob_=new R2(U.isInPlaylist?new Z6x(a):new yyO(U.autonavEndpoints),function(L,M){M=new wLF(vsx[U.pageType].pageFragments,vsx[U.pageType].prefetchedFragments,M);return _.Tm9(M)?(A.prefetchCache_.set(L,M),!0):!1},U,new t5(f,b,T,a)),A.pendingPrefetchJob_.enqueue())}}},Ult=function(){var A=_.$g();
A.signals.parkOrScheduleJob(function(){var Q=A.storage;if(Q.storage)if(j$O(Q)){var b=Q.getPlaylistId();Q=RQF(Q);b=!!b&&Q!==void 0}else Q.clear(),b=!1;else b=!1;if(b){b=A.pageManager.isOnWatch();a:{var f=A.storage;if(f.storage&&j$O(f)&&(Q=f.getPlaylistId(),f=RQF(f),Q&&f!==void 0)){b={recoverPlaylistCommand:{listId:Q,index:f,openMiniplayer:!b,openListPanel:b,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}b=void 0}b&&_.x4(A.JSC$12794_actionRouter,[b],null)}},0,"ma")},LPd=function(A,Q,b,f,a,T){var G=
_.K6(7111);
_.l$(A.JSC$18167_screenManager,G,T?_.t8(T):void 0);_.i$(A.JSC$18167_screenManager,G,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:f,offlineId:Q,offlineabilityFormatType:b,isDefaultFormatType:a==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:a}})},MQN=function(A,Q,b,f,a){var T,G,p,P,U;
return _.B(function(L){if(L.nextAddress==1)return L.yield(A.JSC$18167_playerApiPromise,2);T=L.yieldResult;LPd(A,Q,b,"OFFLINE_OBJECT_TYPE_PLAYLIST",f,a);if(p=_.D09[A.entityTypeMap.listEntityType])U={},G=(U[p]={maximumDownloadQuality:(P=b)!=null?P:void 0},U);return L.yield(T.queueOfflineAction(Q,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",G),0)})},lhx=function(A,Q){var b,f,a,T;
return _.B(function(G){if(G.nextAddress==1)return G.yield(A.JSC$18167_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3){b=G.yieldResult;if(!b)return _.Wv(new _.IO("PES is undefined")),G.return();f=_.LO(Q,"downloadStatusEntity");return G.yield(ryt(b,f,"downloadStatusEntity"),3)}a=G.yieldResult;return G.return((T=a)==null?void 0:T.downloadState)})},KPN=function(A,Q,b,f,a){var T,G,p,P,U,L;
return _.B(function(M){switch(M.nextAddress){case 1:return M.yield(A.JSC$18167_playerApiPromise,2);case 2:T=M.yieldResult;LPd(A,Q,b,"OFFLINE_OBJECT_TYPE_VIDEO",f,a);if(p=_.D09[A.entityTypeMap.singleEntityType])U={},G=(U[p]={maximumDownloadQuality:(P=b)!=null?P:void 0},U);return M.yield(lhx(A,Q),3);case 3:L=M.yieldResult;if(L!=="DOWNLOAD_STATE_USER_DELETED"){M.jumpTo(4);break}return M.yield(A.deleteVideo(Q),4);case 4:return M.yield(T.queueOfflineAction(Q,A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
G),0)}})},iSM=function(A,Q,b,f,a){return _.B(function(T){return T.nextAddress==1?T.yield(A.deleteVideo(Q,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):T.yield(KPN(A,Q,b,f,a),0)})},Jcn=function(A,Q,b){var f,a;
return _.B(function(T){if(T.nextAddress==1)return T.yield(A.JSC$18167_playerApiPromise,2);f=T.yieldResult;a=_.LO(Q,"mainVideoDownloadStateEntity");return T.yield(f.updateDownloadState(a,b),0)})},XzK=function(A){var Q=_.fJ().resolve(_.lU);
return _.B(function(b){if(b.nextAddress==1)return Q.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&Q.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?b.jumpTo(2):b.yield(Q.resumeVideoDownload(A),2);if(b.nextAddress!=4)return b.yield(Jcn(Q,A,Q.previousDownloadStateForVideo[A]),4);delete Q.previousDownloadStateForVideo[A];_.Oi(b)})},pzK=function(A,Q){var b;
return _.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$18167_playerApiPromise,2);b=f.yieldResult;return f.yield(b.queueOfflineAction(Q,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},F4n=function(){var A=_.fJ().resolve(_.lU),Q,b;
return _.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$18167_playerApiPromise,2);if(f.nextAddress!=3)return Q=f.yieldResult,b={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},f.yield(Q.queueOfflineAction("!*$_ALL_ENTITIES_!*$",A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",b),3);var a=A.JSC$18167_commandHandler,T=a.resolveCommand,G=_.JQ("DELETING_ALL",void 0,"Downloads are being deleted");T.call(a,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.T7(G)}},
popupType:"TOAST"}});_.Oi(f)})},VQd=function(A,Q){var b,f,a,T,G,p;
return _.B(function(P){if(P.nextAddress==1)return P.yield(A.JSC$18167_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3)return b=P.yieldResult,b?P.yield(ryt(b,_.rs,"downloadsPageViewConfigurationEntity"),3):(_.Wv(new _.IO("PES is undefined")),P.return());a=(f=P.yieldResult)!=null?f:{};p=(G=(T=a)==null?void 0:T.downloadsUpsellBannerVisibility)!=null?G:{};return p.visibleWithConnection?P.yield(Q.refreshAllStaleEntities(0),0):P.jumpTo(0)})},OSN=function(A){var Q,b;
return _.B(function(f){if(f.nextAddress==1)return f.yield(A.JSC$18167_prefStorage,2);Q=f.yieldResult;return f.return((b=Q)==null?void 0:b.get("sdois"))})},nBt=function(A){var Q,b,f,a,T,G;
return _.B(function(p){if(p.nextAddress==1)return p.yield(A.JSC$18167_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3){Q=p.yieldResult;if(!Q)return _.Wv(new _.IO("PES is undefined")),p.return();b=_.LO("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return p.yield(ryt(Q,b,"settingEntity"),3)}f=p.yieldResult;return p.return((G=(a=f)==null?void 0:(T=a.settingOptionValue)==null?void 0:T.boolValue)!=null?G:!1)})},kkN=function(A,Q){var b,f,a,T;
return _.B(function(G){switch(G.nextAddress){case 1:return((b=Q)==null?void 0:b.formatType)===void 0?G.return():G.yield(A.JSC$18167_prefStorage,2);case 2:f=G.yieldResult;if(f===void 0)return G.return();if(((a=Q)==null?void 0:a.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return G.yield(f.set("lmqf",Q.formatType),8);if(((T=Q)==null?void 0:T.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){G.jumpTo(0);break}return G.yield(f.set("lmqf",Q.formatType),6);case 6:return G.yield(f.set("lmqflst",
Math.floor((0,_.f4)())),0);case 8:return G.yield(f.remove("lmqflst"),0)}})},Ihl=function(A){var Q,b;
return _.B(function(f){switch(f.nextAddress){case 1:return f.yield(A.JSC$18167_prefStorage,2);case 2:Q=f.yieldResult;if(!Q){f.jumpTo(3);break}return f.yield(Q.get("lmqflst"),4);case 4:if(b=f.yieldResult,b!==void 0)return f.return(b);case 3:return f.return(0)}})},HSt=function(A){var Q,b;
return _.B(function(f){switch(f.nextAddress){case 1:return f.yield(A.JSC$18167_prefStorage,2);case 2:Q=f.yieldResult;if(Q===void 0){f.jumpTo(3);break}return f.yield(Q.get("lmqf"),4);case 4:if(b=f.yieldResult,b!==void 0)return f.return(b);case 3:return f.return("SD")}})},Jfn=function(A,Q,b){var f,a,T,G,p,P,U,L;
_.B(function(M){switch(M.nextAddress){case 1:return M.yield(kkN(A,(f=Q)==null?void 0:f.actionParams),2);case 2:a=Q.playlistId;if(!a)return M.return();if(Q.action==="ACTION_ADD")return((G=Q.actionParams)==null?0:G.formatType)?M.yield(MQN(A,a,Q.actionParams.formatType,(L=Q.actionParams)==null?void 0:L.settingsAction,b),0):M.yield(A.offlineWebClientEligibility,14);if(Q.action==="ACTION_REMOVE_WITH_PROMPT"){var l=A.JSC$18167_commandHandler,J=l.resolveCommand,n=_.vG("INNERTUBE_CLIENT_NAME");var t=n===
"WEB_REMIX"?_.JQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.JQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var g=n==="WEB_REMIX"?[_.JQ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];n=n==="WEB_REMIX"?_.JQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.JQ("DELETE",void 0,"Delete");var e=_.JQ("CANCEL",void 0,"Cancel");t=nwx(t,g,n,e,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:a});J.call(l,{openPopupAction:t});return M.return()}if(Q.action===
"ACTION_REMOVE")return M.yield(pzK(A,a),0);if(Q.action!=="ACTION_SYNC"){M.jumpTo(0);break}return M.yield(A.JSC$18167_playerApiPromise,9);case 9:return T=M.yieldResult,M.yield(T.queueOfflineAction(a,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return p=M.yieldResult,M.yield(HSt(A),15);case 15:return P=M.yieldResult,M.yield(Ihl(A),16);case 16:U=M.yieldResult,Q.onAddCommand&&A.JSC$18167_commandHandler.resolveCommand(Q.onAddCommand,{form:{preferredFormatType:P,
offlineWebClientEligibility:p,lastOfflineQualitySettingsSavedMs:U.toString()}}),M.jumpTo(0)}})},K4M=function(A,Q,b){var f,a,T,G,p,P,U,L,M,l,J,n,t,g;
_.B(function(e){switch(e.nextAddress){case 1:return e.yield(kkN(A,(f=Q)==null?void 0:f.actionParams),2);case 2:a=Q.videoId;if(!a)return e.return();if(Q.action==="ACTION_REMOVE_WITH_PROMPT"){var x=A.JSC$18167_commandHandler,D=x.resolveCommand,w=_.vG("INNERTUBE_CLIENT_NAME");var u=w==="WEB_REMIX"?_.JQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.JQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=w==="WEB_REMIX"?[_.JQ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];w=w==="WEB_REMIX"?_.JQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.JQ("DELETE",void 0,"Delete");var a9=_.JQ("CANCEL",void 0,"Cancel");u=nwx(u,y,w,a9,{signal:"DELETE_DOWNLOAD",targetId:a});D.call(x,{openPopupAction:u});return e.return()}if(Q.action==="ACTION_ADD")return((l=Q.actionParams)==null?0:l.formatType)?e.yield(KPN(A,a,Q.actionParams.formatType,(g=Q.actionParams)==null?void 0:g.settingsAction,b),0):e.yield(A.offlineWebClientEligibility,23);if(Q.action==="ACTION_RETRY")return e.yield(HSt(A),
19);if(Q.action==="ACTION_PAUSE")return e.yield(A.pauseVideoDownload(a),0);if(Q.action==="ACTION_RESUME")return e.yield(A.resumeVideoDownload(a),0);if(Q.action!=="ACTION_REMOVE"){e.jumpTo(0);break}return e.yield(lhx(A,a),13);case 13:return T=e.yieldResult,A.previousDownloadStateForVideo[a]=(G=T)!=null?G:"DOWNLOAD_STATE_UNKNOWN",e.yield(Jcn(A,a,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(A.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&A.previousDownloadStateForVideo[a]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){e.jumpTo(15);break}return e.yield(A.pauseVideoDownload(a),15);case 15:x=_.JQ("DELETED_VIDEO",void 0,"Video deleted from downloads.");D=_.JQ("UNDO_ACTION",void 0,"Undo");u=_.JQ("CLOSE",void 0,"Close");p={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.T7(x),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.T7(D),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:a}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:x+" "+D}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:a}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:u}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};A.JSC$18167_commandHandler.resolveCommand(p);
e.jumpTo(0);break;case 19:P=e.yieldResult;P==="UNKNOWN_FORMAT_TYPE"&&(P="SD");U="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((L=Q.actionParams)==null?0:L.formatType)P=Q.actionParams.formatType,U=(M=Q.actionParams)==null?void 0:M.settingsAction;return e.yield(iSM(A,a,P,U,b),20);case 20:return e.return();case 23:return J=e.yieldResult,e.yield(HSt(A),24);case 24:return n=e.yieldResult,e.yield(Ihl(A),25);case 25:t=e.yieldResult,Q.onAddCommand&&A.JSC$18167_commandHandler.resolveCommand(Q.onAddCommand,
{form:{preferredFormatType:n,offlineWebClientEligibility:J,lastOfflineQualitySettingsSavedMs:t.toString()}}),e.jumpTo(0)}})},Cp7=function(A,Q){var b,f,a,T,G,p,P;
return _.B(function(U){if(U.nextAddress==1)return U.yield(A.JSC$18167_persistentStorePromiseAccessor(),2);b=U.yieldResult;if(!b)return _.Wv(new _.IO("PES is undefined")),U.return();if((f=Q)==null||!f.settingItemId)return U.return();a=Q;T=a.settingItemId;G=a.boolValue;p=_.LO(T,"settingEntity");P={key:p,settingOptionValue:{boolValue:G}};return U.yield(tJl(b,P),0)})},qsF=function(A,Q){var b,f,a,T,G,p,P;
return _.B(function(U){switch(U.nextAddress){case 1:return U.yield(A.JSC$18167_prefStorage,2);case 2:return b=U.yieldResult,f=_.nD(),U.yield(A.JSC$18167_persistentStorePromiseAccessor(),3);case 3:return a=U.yieldResult,b?a?U.yield(b.get("sdois"),4):(_.Wv(new _.IO("PES is undefined")),U.return()):(_.Wv(new _.IO("prefStorage is undefined")),U.return());case 4:T=U.yieldResult;p=(G=Q)==null?void 0:G.boolValue;p===void 0||_.K("kevlar_set_sd_enabled_flag_killswitch")||_.k_(0,197,!0);T===void 0&&p===void 0&&
(p=!1);if(p===void 0){U.jumpTo(0);break}return U.yield(b.set("sdois",p),6);case 6:return _.K("kevlar_set_sd_enabled_flag_killswitch")||(_.k_(0,196,p),f.save()),P={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:p},U.yield(Cp7(A,P),0)}})},oBx=function(A,Q,b){var f,a,T,G,p;
return _.B(function(P){switch(P.nextAddress){case 1:return P.yield(OSN(A),2);case 2:return f=P.yieldResult,P.yield(qsF(A,b),3);case 3:return P.yield(OSN(A),4);case 4:return a=P.yieldResult,T=a!==f,P.yield(nBt(A),5);case 5:G=P.yieldResult&&!_.K("kevlar_modern_downloads_page");if((p=!a&&!G)||T)return P.yield(Q.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);P.jumpTo(0)}})},UMN=function(){var A=_.fJ().resolve(_.lU),
Q;
_.B(function(b){switch(b.nextAddress){case 1:return b.yield(A.JSC$18167_playerApiPromise,2);case 2:Q=b.yieldResult;if(!_.K("kevlar_force_refresh_smart_downloads")){b.jumpTo(3);break}return b.yield(Q.refreshAllStaleEntities(0),4);case 4:return b.return();case 3:return b.yield(Q.refreshAllStaleEntities(),5);case 5:return b.yield(oBx(A,Q),6);case 6:if(_.K("enable_download_pep_for_premium_countries_web"))return b.yield(VQd(A,Q),0);b.jumpTo(0)}})},OEx=function(A,Q){var b,f;
_.B(function(a){switch(a.nextAddress){case 1:return a.yield(A.JSC$18167_playerApiPromise,2);case 2:b=a.yieldResult;switch((f=Q)==null?void 0:f.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(oBx(A,b,Q),6);case 6:a.jumpTo(0);break;case 4:return a.yield(Cp7(A,Q),7);case 7:a.jumpTo(0)}})},tQM=function(A,Q){var b,f,a;
return _.B(function(T){if(T.nextAddress==1)return T.yield(A.JSC$18167_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3){b=T.yieldResult;if(!b)return _.Wv(new _.IO("PES is undefined")),T.return(!1);if(!Q)return T.return(!1);f=_.LO(Q,"mainVideoEntity");return T.yield(ryt(b,f,"mainVideoEntity"),3)}a=T.yieldResult;return T.return(a!==void 0)})},kZx=function(A){var Q=_.fJ().resolve(_.lU),b,f,a,T,G,p,P,U,L,M,l;
_.B(function(J){switch(J.nextAddress){case 1:return J.yield(Q.JSC$18167_playerApiPromise,2);case 2:b=J.yieldResult;a=(f=A)==null?void 0:f.actions;if(!a)return J.return();T=_.F(a);G=T.next();case 3:if(G.done){J.jumpTo(0);break}p=G.value;U=P=void 0;if(!(((P=p)==null?0:P.entityKey)&&((U=p)==null?0:U.actionType))){J.jumpTo(4);break}L=_.Xg(p.entityKey);M=L.entityId;l=L.entityType;return J.yield(b.queueOfflineAction(M,l,p.actionType),4);case 4:G=T.next(),J.jumpTo(3)}})},rcq=function(A,Q){var b,f,a,T,G;
return _.B(function(p){if(p.nextAddress==1)return p.yield(A.JSC$18167_prefStorage,2);if(p.nextAddress!=3)return(b=p.yieldResult)?p.yield(b.get("psi"),3):p.return();f=p.yieldResult;G={isPaused:Q,lastSyncTimestamp:(T=(a=f)==null?void 0:a.lastSyncTimestamp)!=null?T:"0"};return p.yield(b.set("psi",G),0)})},CcK=function(A){var Q=_.fJ().resolve(_.lU),b,f,a,T,G,p,P,U;
return _.B(function(L){switch(L.nextAddress){case 1:return L.yield(Q.JSC$18167_playerApiPromise,2);case 2:b=L.yieldResult;a=((f=A)==null?void 0:f.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((p=A)==null?void 0:p.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":T="!*$_ALL_ENTITIES_!*$";G="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return L.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return L.jumpTo(4)}L.jumpTo(5);break;case 3:return L.yield(rcq(Q,a),6);case 6:L.jumpTo(5);break;case 4:return L.yield(tQM(Q,(P=A)==null?void 0:P.videoId),7);case 7:L.yieldResult&&(T=(U=A)==null?void 0:U.videoId,G="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");L.jumpTo(5);break;case 5:if(T&&G)return L.yield(b.queueOfflineAction(T,"videoPlaybackPositionEntity",G),0);L.jumpTo(0)}})},jbq=function(A,Q){var b;
Q!==1||((b=A.currentPersistentToast)==null?0:b.isOpened())?A.openToast():A.currentPersistentToast=void 0},RSt=function(A,Q){var b;
return(b=A.transitionTasksMap.get(Q))!=null?b:[]},gBx=function(A,Q){var b=[];
A.elementTasksMap.forEach(function(f){(f=f.get(Q))&&b.push(f)});
return b},eSx=function(A,Q,b,f){f=f===void 0?{}:f;
var a=A.defaultViewTransitionOptions;return Object.assign({},a,f,{beforeTransition:function(){b.forEach(function(P){P.beforeTransition()});
var T;(T=a.beforeTransition)==null||T.call(a);var G,p;(p=(G=f).beforeTransition)==null||p.call(G);Q.forEach(function(P){P.beforeTransition()})},
afterTransition:function(){b.forEach(function(P){P.afterTransition()});
var T;(T=a.afterTransition)==null||T.call(a);var G,p;(p=(G=f).afterTransition)==null||p.call(G);Q.forEach(function(P){P.afterTransition()})}})},hSr=function(A,Q,b){A.transitionTasksMap.has(Q)?A.transitionTasksMap.get(Q).push(b):(A=new _.IO("Transition task registered for unknown transition type",Q),_.en(A))},WPt=function(A,Q,b){if(A.transitionTasksMap.has(Q)){var f=A.transitionTasksMap.get(Q).filter(function(a){return a!==b});
A.transitionTasksMap.set(Q,f)}},vBq=function(A,Q){var b=RSt(A,Q);
b=_.F(b);for(var f=b.next();!f.done;f=b.next())f=f.value,f.runOnce&&WPt(A,Q,f);A.elementTasksMap.forEach(function(a,T){a.forEach(function(G,p){G.runOnce&&Q===p&&(a.delete(p),a.size===0&&A.elementTasksMap.delete(T))})})},EBt=function(A,Q,b){var f,a,T,G,p,P,U,L,M;
_.B(function(l){if(l.nextAddress==1){if(A.config.disableAllTransitions)return l.return(Q());if((f=b)==null||!f.transitionType)return l.return(_.R_7(Q,(a=b)==null?void 0:a.viewTransitionOptions));T=b;G=T.transitionType;p=T.viewTransitionOptions;P=A.config.transitionConfigs.get(G);if(!P)return l.return(Q());U=RSt(A,G);L=gBx(A,G);M=_.R_7(Q,eSx(P,U,L,p));return l.yield(M,2)}vBq(A,G);_.Oi(l)})},xl7=function(){var A,Q,b,f;
return _.B(function(a){if(a.nextAddress==1)return A=navigator,(Q=A.storage)!=null&&Q.persisted?a.yield((b=A.storage)==null?void 0:b.persisted(),2):a.return("PERSISTED_STATE_NOT_SUPPORTED");f=a.yieldResult;return a.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},ccd=function(){var A,Q,b,f;
return _.B(function(a){if(a.nextAddress==1)return A=navigator,(Q=A.storage)!=null&&Q.persist?a.yield((b=A.storage)==null?void 0:b.persist(),2):a.return("PERSISTED_STATE_NOT_SUPPORTED");f=a.yieldResult;return a.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},zSq=function(){var A,Q;
return _.B(function(b){switch(b.nextAddress){case 1:return A="PERSISTED_STATE_NOT_SUPPORTED",_.ML(b,2),b.yield(xl7(),4);case 4:A=b.yieldResult;if(A!=="PERSISTED_STATE_NOT_GRANTED"){b.jumpTo(5);break}return b.yield(ccd(),6);case 6:A=b.yieldResult;case 5:_.Z1(b,3);break;case 2:Q=_.Vw(b),Q instanceof Error&&_.en(Q);case 3:return _.R4("persistentStorageStateChecked",{persistedState:A}),b.return(A)}})},wiq=function(A,Q){var b=[],f=!1;
Q=_.F(Q);for(var a=Q.next();!a.done;a=Q.next()){a=A.moduleRegistry[a.value];var T=void 0,G=void 0;((T=a)==null?0:T.isFetching)&&((G=a)==null?0:G.resolver)?(b.push(a.resolver.promise),f=!0):(a=new _.Mj,a.resolve(void 0),b.push(a.promise))}return f?Promise.all(b):void 0},uGn=function(A,Q,b){if(A.isAnyTransitionEnabled){var f={beforeTransition:function(){b(!0);
Q.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){Q.style.viewTransitionName&&(Q.style.viewTransitionName="",b(!1))}};
hSr(A.viewTransitionCoordinator,"slide",f);hSr(A.viewTransitionCoordinator,"lockup-to-watch",f);hSr(A.viewTransitionCoordinator,"watch-next-appears",f);hSr(A.viewTransitionCoordinator,"learning-journey",f)}},ZSn=function(A,Q){A.isBrowseTransitionEnabled?EBt(A.viewTransitionCoordinator,Q,{transitionType:"slide"}):(Q(),Promise.resolve())},ycq=function(A,Q){A.isLockupToWatchTransitionEnabled?EBt(A.viewTransitionCoordinator,Q,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){A.registeredLockupThumbnail=void 0;A.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(Q(),Promise.resolve())},Ys7=function(A,Q){A.isLockupToWatchTransitionEnabled?EBt(A.viewTransitionCoordinator,Q,{transitionType:"watch-next-appears"}):(Q(),Promise.resolve())},DlF=function(A,Q){A.isLearningJourneyTransitionEnabled?EBt(A.viewTransitionCoordinator,Q,{transitionType:"learning-journey"}):(Q(),Promise.resolve())},$lx=function(A,Q,b){if(A.isInitialized()){var f=
nj(b),a=f==="watch";
f=f==="shorts";var T=nj(Q)==="watch";if(a)T||(A.backgroundPageData=Q),A.watchPipMode&&T||A.deactivate(b.endpoint);else if(f){if(nj(Q)!=="shorts"){var G;(G=A.getPlayerElement())==null||G.pause()}}else T&&!A.watchPipMode&&(IfF(Q,b)?(A.watchWhileMode&&_.eK7(A,!1),_.o5N(A,Q)):A.isMiniplayerActive()&&A.watchWhileMode&&A.deactivate());T&&_.WKN(A);A.shortsPipMode&&!f&&(window.focus(),A.deactivate());if(A.pictureInPictureEnabled())if(f&&A.shortsPipEnabled||a&&A.watchPipEnabled)_.Vgf(A.handleMediaSessionPipActivation);
else if(!A.isMiniplayerActive()&&(A.shortsPipEnabled||A.watchPipEnabled)&&window.documentPictureInPicture&&_.qf()&&_.Ufe("Chromium")>=120){A=_.Jmy().mediaSession;try{A.setActionHandler("enterpictureinpicture",null)}catch(p){}}}},NLs=function(A,Q){var b,f;
_.B(function(a){if(a.nextAddress==1){if(!A||!A.navigationEndpoint)return a.return();_.kg().lockupActivation=!0;var T;Q?T=_.sr(_.JQ("QUEUE",void 0,"Queue")):T=A.longBylineText;f=(b=T)&&A.title?{miniplayerTitle:A.title,miniplayerSubtitle:b,playlistData:null}:void 0;return a.yield(_.UtN(_.fJ().resolve(_.zb),A.navigationEndpoint,!0,f),2)}_.kg().userActivation=!0;_.Oi(a)})},CNO=function(A,Q){var b,f,a,T,G,p;
_.B(function(P){if(P.nextAddress==1){b=_.V(Q,_.ut1);if(!b||!b.listId)return P.return();A.index=b.index||A.index||0;f=A.response&&A.response.playingVideoId||void 0;return P.yield(_.kBL(A.JSC$12794_playlistNetworkManager,b.listId,A.index,f),2)}a=P.yieldResult;if(!a)return P.return();T=a.playlistId;G=a.playlistPanelRenderer;!A.queueProxy&&T&&G&&T.startsWith("TLPQ")&&(A.queueProxy=new _.c1(A.JSC$12794_playlistNetworkManager,T,A.setPlaylistData.bind(A),A.clearQueue.bind(A),_.QEb(G),A.storage));if(b.openMiniplayer&&
(p=_.bVf(G))&&!A.pageManager.isOnWatch()){var U=p,L=b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";A.isMiniplayerActive()?A.openToast(U):NLs(U,L)}A.setPlaylistData(T,G,a.autoplayRenderer);_.Oi(P)})},kUM=function(A,Q){var b=_.$g();
b.index===void 0&&(b.index=0);b.temporaryItems.push.apply(b.temporaryItems,_.ri(A));if((Q.videoId||Q.videoIds)&&b.index!==void 0&&Q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!b.queueProxy){var f=[];if(b.response){var a=_.fJ().resolve(_.zb).isMiniplayerActive();if(b.response.playlistPanelRenderer&&b.response.playlistId&&!b.response.playlistId.startsWith("TLPQ")){if(b.pageManager.isOnWatch()||a)f=_.QEb(b.response.playlistPanelRenderer)}else b.response.playingVideoId&&!Q.openMiniplayer?f.push(b.response.playingVideoId):
a&&b.response.playingVideoId&&Q.openMiniplayer&&f.push(b.response.playingVideoId)}b.queueProxy=new _.c1(b.JSC$12794_playlistNetworkManager,"",b.setPlaylistData.bind(b),b.clearQueue.bind(b),f,b.storage);b.queueProxy.JSC$12740_setCurrentIndex(b.index)}b.queueProxy.addVideos(Q.videoIds||[Q.videoId],Q)}gsl(b,A);b.response&&_.Nk(b,_.sZ(b,b.response.autoplayRenderer));b.pageManager.isOnWatch()?b.isMiniplayerActive()&&b.openToast(A[0]):(A=A[0],Q=Q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",b.isMiniplayerActive()?
b.openToast(A):NLs(A,Q))},sbx=function(A){var Q=_.uY(A);
if(Q=="object"||Q=="array"){if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);Q=Q=="array"?[]:{};for(var b in A)Q[b]=sbx(A[b]);return Q}return A},gJ=function(A,Q){return _.pMy(_.O2(A,Q,void 0,_.VF))},ej=function(A,Q){return _.AM(_.O2(A,Q,void 0,_.VF))},h5=function(A,Q){return _.rvi(_.O2(A,Q,void 0,_.VF))},W4=function(A,Q){return _.O2(A,Q,void 0,_.VF,_.GrU)},mlN=_.TY(function(A,
Q,b){if(A.nextWireType_!==0)return!1;
_.d$(Q,b,_.z0(A.decoder_,_.dxf));return!0},_.pp,_.YU),Abl=_.TY(function(A,Q,b,f){if(A.nextWireType_!==0)return!1;
_.HD(Q,b,f,_.z0(A.decoder_,_.dxf));return!0},_.pp,_.YU),Qcn=_.TY(function(A,Q,b){if(A.nextWireType_!==1)return!1;
var f=A.decoder_;A=_.uT(f);f=_.uT(f);A=_.vM(A,f);_.d$(Q,b,A);return!0},_.q$C,_.eHi),b7N=_.TY(function(A,Q,b){if(A.nextWireType_!==5)return!1;
_.d$(Q,b,_.uT(A.decoder_));return!0},function(A,Q,b){Q=_.SLY(Q);
Q!=null&&(_.GY(A,b,5),_.Bh(A.encoder_,Q))},_.gMy),fNq=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;
A=_.LBA(A.decoder_);_.d$(Q,b,A===!1?void 0:A);return!0},_.o8y,_.ts6),aNd=_.TY(function(A,Q,b){if(A.nextWireType_!==2)return!1;
A=_.Vs9(A);_.d$(Q,b,A===""?void 0:A);return!0},_.rsb,_.rUy),TyN=_.TY(function(A,Q,b){if(A.nextWireType_!==2)return!1;
A=_.OLF(A);_.d$(Q,b,A===_.C$()?void 0:A);return!0},_.RxY,_.vMJ),dr7=_.ipW(function(A,Q,b){if(A.nextWireType_!==0&&A.nextWireType_!==2)return!1;
Q=_.qNe(Q,Q[_.Tr]|0,b);A.nextWireType_==2?_.nMb(A,PJ7,Q):Q.push(_.wA(A.decoder_));return!0},function(A,Q,b){Q=_.Kwb(_.AM,Q,!0);
if(Q!=null&&Q.length){b=_.z7A(A,b);for(var f=0;f<Q.length;f++)_.IiX(A.encoder_,Q[f]);_.wdU(A,b)}},_.EM6),FUx=_.TY(function(A,Q,b){if(A.nextWireType_!==0)return!1;
A=_.wA(A.decoder_);_.d$(Q,b,A===0?void 0:A);return!0},_.g8A,_.EM6),GbM=_.TY(function(A,Q,b,f){if(A.nextWireType_!==0)return!1;
_.HD(Q,b,f,_.wA(A.decoder_));return!0},_.g8A,_.EM6),ByM=function(A){return A.previousElementSibling!==void 0?A.previousElementSibling:_.N9y(A.previousSibling,!1)},pZN=function(A,Q){var b=[];
for(Q=Q||0;Q<A.length;Q+=2)_.EqL(A[Q],A[Q+1],b);return b.join("&")},P6l=function(A,Q){var b=arguments.length==2?pZN(arguments[1],0):pZN(arguments,1);
return _.vq$(A,b)},Uex=_.Sd(_.vi),XZO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(XZO,_.fp);XZO.prototype.getTypeName=function(){return _.gA(this,1).split("/").pop()};
XZO.prototype.getValue=function(){var A=_.O2(this,2);if(Array.isArray(A)||A instanceof _.fp)throw Error("W");return _.II(this,2)};
var bTN=function(){var A=_.PY();this.JSC$9859_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Gz("channel_type"))};
bTN.prototype.increment=function(A){this.JSC$9859_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",A)};
var fkN=function(){var A=_.PY();this.JSC$9862_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Gz("channel_type"))};
fkN.prototype.increment=function(A){this.JSC$9862_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",A)};
var T6r=function(){var A=_.PY();this.JSC$9865_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Gz("channel_type"))};
T6r.prototype.increment=function(A){this.JSC$9865_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",A)};
var akx=function(){var A=_.PY();this.JSC$9868_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
akx.prototype.increment=function(){this.JSC$9868_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var djx=function(){var A=_.PY();this.JSC$9871_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Gz("channel_type"),_.Gz("error_type"))};
djx.prototype.increment=function(A,Q){this.JSC$9871_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",A,Q)};
var FWd=function(){var A=_.PY();this.JSC$9874_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
FWd.prototype.increment=function(){this.JSC$9874_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Gxs=function(){var A=_.PY();this.JSC$9877_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Gxs.prototype.increment=function(){this.JSC$9877_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var yfs=function(){var A=_.PY();this.JSC$9883_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
yfs.prototype.increment=function(){this.JSC$9883_streamzService.JSC$9729_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var SCF=function(A){return A.getCount&&typeof A.getCount=="function"?A.getCount():_.ce(A)||typeof A==="string"?A.length:_.j2.getCount(A)},UrN=function(A,Q){if(typeof A.every=="function")return A.every(Q,void 0);
if(_.ce(A)||typeof A==="string")return Array.prototype.every.call(A,Q,void 0);for(var b=_.xz9(A),f=_.b1(A),a=f.length,T=0;T<a;T++)if(!Q.call(void 0,f[T],b&&b[T],A))return!1;return!0},LUx=function(A,Q,b,f){var a=new _.m7(null);
A&&_.fo(a,A);Q&&_.aj(a,Q);b&&_.Tf(a,b);f&&_.dd(a,f);return a},MON=function(){var A=_.vr&&_.LF(_.QxN,10)>=0,Q;
if(Q=_.oSi)Q=_.LF(_.AlM,10)>=0;var b=_.Ke&&_.LF(_.QxN,85)>=0;return _.U2||A||Q||b},lNO=function(A){var Q=_.isM(A);
return Q&&MON()?-A.scrollLeft:Q&&_.Wo(A,"overflowX")!="visible"?A.scrollWidth-A.clientWidth-A.scrollLeft:A.scrollLeft},KUt=function(A,Q){Q=Math.max(Q,0);
_.isM(A)?MON()?A.scrollLeft=-Q:A.scrollLeft=A.scrollWidth-Q-A.clientWidth:A.scrollLeft=Q},Ewn=0,uv7=!1;
IM.prototype.set=function(A){this.relativeTimeStart_=A};
IM.prototype.reset=function(){this.set(_.G0())};
IM.prototype.get=function(){return this.relativeTimeStart_};
var i7t=null,JbO=function(){i7t||(i7t=new IM)},VOx=function(){i7t||(i7t=new IM)};
_.BD(VOx,JbO);_.d=yjx.prototype;_.d.JSC$11242_buffer_="";_.d.set=function(A){this.JSC$11242_buffer_=""+A};
_.d.append=function(A,Q,b){this.JSC$11242_buffer_+=String(A);if(Q!=null)for(var f=1;f<arguments.length;f++)this.JSC$11242_buffer_+=arguments[f];return this};
_.d.clear=function(){this.JSC$11242_buffer_=""};
_.d.getLength=function(){return this.JSC$11242_buffer_.length};
_.d.toString=function(){return this.JSC$11242_buffer_};
var O7r=function(){var A={type:"unit",style:"narrow"};this.listType_=A&&A.type?A.type:"conjunction";this.listStyle_=A&&A.style?A.style:"long";this.listSymbols_=lbl;A=0;switch(this.listStyle_){case "short":A=1;break;case "narrow":A=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[A];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[A];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=
this.listSymbols_.AND_END[A];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[A];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[A];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=this.listSymbols_.OR_END[A];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[A],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[A],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[A],this.listEndPattern_=this.listSymbols_.UNIT_END[A]}};
O7r.prototype.format=function(A){return nGl(this,A)};
var nGl=function(A,Q){var b=Q.length;switch(b){case 0:return"";case 1:return String(Q[0]);case 2:return A.listTwoPattern_.replace("{0}",String(Q[0])).replace("{1}",String(Q[1]))}for(var f=A.listStartPattern_.replace("{0}",String(Q[0])).replace("{1}",String(Q[1])),a=2;a<b-1;++a)f=A.listMiddlePattern_.replace("{0}",f).replace("{1}",String(Q[a]));return A.listEndPattern_.replace("{0}",f).replace("{1}",String(Q[b-1]))},BG7=function(){var A={style:1};
this.style_=(A==null?void 0:A.style)||0;this.durationSymbols_=_.Nwp||_.Elv},kbs=function(A,Q){switch(Q){default:case "years":return A.durationSymbols_.YEAR;
case "months":return A.durationSymbols_.MONTH;case "weeks":return A.durationSymbols_.WEEK;case "days":return A.durationSymbols_.DAY;case "hours":return A.durationSymbols_.HOUR;case "minutes":return A.durationSymbols_.MINUTE;case "seconds":return A.durationSymbols_.SECOND}},v4=function(A,Q,b){a:{b=kbs(A,b);
switch(A.style_){case 1:if(b.LONG!=void 0){A=b.LONG;break a}case 2:if(b.NARROW!=void 0){A=b.NARROW;break a}default:A=b.SHORT;break a}A=void 0}return A?(new _.Ge1("{DURATION_VALUE,plural,"+A+"}")).format({DURATION_VALUE:Q}):""};
BG7.prototype.format=function(A){var Q=[],b=A.years,f=A.months,a=A.weeks,T=A.days,G=A.hours,p=A.minutes;A=A.seconds;b!=null&&Q.push(v4(this,b,"years"));f!=null&&Q.push(v4(this,f,"months"));a!=null&&Q.push(v4(this,a,"weeks"));T!=null&&Q.push(v4(this,T,"days"));G!=null&&Q.push(v4(this,G,"hours"));p!=null&&Q.push(v4(this,p,"minutes"));A!=null&&Q.push(v4(this,A,"seconds"));return(new O7r).format(Q)};
var INl=!1,AxF=function(A){_.A4.call(this,A.message||A.description||A.name);this.isMissing=A instanceof HC;this.isTimeout=A instanceof _.U_&&A.errorCode=="net.timeout";this.isCanceled=A instanceof _.Zh};
_.O(AxF,_.A4);AxF.prototype.name="BiscottiError";var HC=function(){_.A4.call(this,"Biscotti ID is missing from server")};
_.O(HC,_.A4);HC.prototype.name="BiscottiMissingError";var Cj=null,lwd=function(){try{var A=_.zV("yt.ads.biscotti.getId_");return A?A():jNx()}catch(Q){return _.gF(Q)}},GLs,H7x=function(A,Q){return _.G7({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:A,command:Q}})},C6F=function(A){return _.G7({type:"SET_GUIDE_IS_EXPANDED",
payload:A})},qCx=function(A){return _.G7({type:"SET_ONLINE_STATUS",
payload:A})},oGN=function(A,Q){return _.G7({type:"SET_TRANSCRIPTION_STATE",
payload:{high:A,low:Q}})},tOd=function(A){return _.G7({type:"SET_OVERLAY_STATE",
payload:A})},rbN=0,jcM=function(A,Q,b){var f=this;
this.priority=Q;this.delay=b;this.jobId=0;this.completionCallback=_.nw;this.wrappedJob=function(){A();f.completionCallback()};
this.id=++rbN};
jcM.prototype.enqueue=function(A){this.completionCallback=A;this.jobId=_.j7.addJob(this.wrappedJob,this.priority,this.delay)};
var EF=function(){_.GS.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.O(EF,_.GS);EF.prototype.addJob=function(A,Q,b){A=new jcM(A,Q,b);this.taskIdToTask.set(A.id,A);this.isActive?RiF(this,A):this.suspendedTasks.add(A);return A.id};
var RiF=function(A,Q){A.scheduledTasks.add(Q);Q.enqueue(function(){A.scheduledTasks.delete(Q)})};
EF.prototype.cancelJob=function(A){(A=this.taskIdToTask.get(A))&&(this.scheduledTasks.delete(A)?_.j7.cancelJob(A.jobId):this.suspendedTasks.delete(A))};
EF.prototype.pause=function(){var A=this;this.isActive=!1;this.scheduledTasks.forEach(function(Q){_.j7.cancelJob(Q.jobId);A.suspendedTasks.add(Q)});
this.scheduledTasks.clear()};
EF.prototype.start=function(){var A=this;this.isActive=!0;this.suspendedTasks.forEach(function(Q){RiF(A,Q)});
this.suspendedTasks.clear()};
EF.prototype.reset=function(){this.scheduledTasks.forEach(function(A){_.j7.cancelJob(A.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var xi=function(A,Q){this.JSC$12923_networkService_=A;this.pageRequestPromise=Q};
xi.prototype.fetchData=function(A){gGx(this,this.JSC$12923_networkService_.fetchData(A))};
xi.prototype.postData=function(A,Q){gGx(this,this.JSC$12923_networkService_.postData(A,Q))};
xi.prototype.requestDataForServiceEndpoint=function(A,Q){gGx(this,this.JSC$12923_networkService_.requestDataForServiceEndpoint(A,Q))};
var gGx=function(A,Q){Q.then(A.pageRequestPromise.onSuccess,A.pageRequestPromise.onFailure,A.pageRequestPromise)};
xi.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var c4=function(A){this.buildNetworkRequest_=A;this.pendingRequests_=new Set};
c4.prototype.reset=function(){this.pendingRequests_.forEach(function(A){A.cancel()});
this.pendingRequests_.clear()};
c4.prototype.fetchData=function(A){var Q=eis(this);Q.fetchData(A);return Q.pageRequestPromise};
c4.prototype.postData=function(A,Q){var b=eis(this);b.postData(A,Q);return b.pageRequestPromise};
c4.prototype.requestDataForServiceEndpoint=function(A,Q){var b=eis(this);b.requestDataForServiceEndpoint(A,Q);return b.pageRequestPromise};
var eis=function(A){var Q=A.buildNetworkRequest_();A.pendingRequests_.add(Q);var b=function(){A.pendingRequests_.delete(Q)};
Q.pageRequestPromise.then(b,b);return Q},hix=function(A){var Q=new EF;
this.JSC$12930_networkService_=A;this.JSC$12930_taskManager_=Q;this.JSC$12930_networkManager_=new c4(this.networkRequestFactory_.bind(this))};
_.d=hix.prototype;_.d.networkRequestFactory_=function(){return new xi(this.JSC$12930_networkService_,new _.P3(this.JSC$12930_taskManager_))};
_.d.reset=function(){this.JSC$12930_taskManager_.reset();this.JSC$12930_networkManager_.reset()};
_.d.start=function(){this.JSC$12930_taskManager_.start()};
_.d.pause=function(){this.JSC$12930_taskManager_.pause()};
_.d.getTaskManager=function(){return this.JSC$12930_taskManager_};
_.d.getNetworkManager=function(){return this.JSC$12930_networkManager_};
var UWK=null,lyq=[],qv=0,te=0,oM=null,WUd=!1,rM=null,i1M=void 0,vGF=function(){var A=(0,_.W0K)();A&&i6K(A,A.mechanism.__iterator__(!0))},RM=function(A){this.token=A};
RM.getInstance=function(){var A;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(_.Q7(),2);A=Q.yieldResult;if(!A)return Q.return();RM.instance||(RM.instance=new RM(A));return Q.return(RM.instance)})};
var IyN=function(A){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(O1M(A.token),2);Q=b.yieldResult;return b.return(Q.clear("resource-manifest-assets"))})},jf=function(A){this.token=A};
jf.getInstance=function(){var A;return _.B(function(Q){if(Q.nextAddress==1)return Q.yield(_.Q7(),2);A=Q.yieldResult;if(!A)return Q.return();jf.instance||(jf.instance=new jf(A));return Q.return(jf.instance)})};
var nfO=function(A){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(O1M(A.token),2);Q=b.yieldResult;return b.yield(Q.clear("auth"),0)})},Z1x=!1,EGt=function(A){_.A4.call(this,A)};
_.O(EGt,_.ldr);var xrs="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(" ");kox()&&xrs.push("details:not(:has(summary))");var HDK=xrs.join(",");var YYx=function(){var A=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return A?parseInt(A[1],10):0},cbd=function(A){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+A)!=-1||document.currentScript.src.indexOf("&"+A)!=-1)},zit=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},mjs=function(A){A.length?wZt(A.shift(),function(){mjs(A)}):$jd()},Q_r=function(A){return"chrome-extension://"+A+"/cast_sender.js"},wZt=function(A,
Q,b){var f=document.createElement("script");
f.onerror=Q;b&&(f.onload=b);_.mw(f,_.CK(A));(document.head||document.documentElement).appendChild(f)},uw7=function(){var A=YYx(),Q=[];
if(A>1){var b=A-1;Q.push("//www.gstatic.com/eureka/clank/"+A+"/cast_sender.js");Q.push("//www.gstatic.com/eureka/clank/"+b+"/cast_sender.js")}return Q},$jd=function(){var A=zit();
A&&A(!1,"No cast extension found")},szl=function(){if(Z7F){var A=2,Q=zit(),b=function(){A--;
A==0&&Q&&Q(!0)};
window.__onGCastApiAvailable=b;wZt("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",$jd,b)}},Djq=function(){szl();
var A=uw7();A.push("//www.gstatic.com/eureka/clank/cast_sender.js");mjs(A)},N6N=function(){szl();
var A=uw7();A.push.apply(A,_.ri(Aul.map(Q_r)));A.push("//www.gstatic.com/eureka/clank/cast_sender.js");mjs(A)},Z7F=cbd("loadCastFramework")||cbd("loadCastApplicationFramework"),Aul=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var ybN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(ybN,_.fp);var YCN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(YCN,_.fp);var Drd=function(){var A=new YCN;return _.xU(A,1,3)};var z4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(z4,_.fp);var DBN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(DBN,_.fp);var $r7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O($r7,_.fp);$r7.prototype.getToken=function(){return _.gA(this,1)};
$r7.prototype.setToken=function(A){return _.Nl(this,1,A)};
var yQr=function(A){return _.cd(A,3,_.MN,_.aL())},YlN=function(A){return _.cd(A,6,_.MN,_.aL())};var wJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(wJ,_.fp);wJ.prototype.getToken=function(){return _.dO(this,$r7,2)};
wJ.prototype.setToken=function(A){return _.Lp(this,2,A)};
wJ.prototype.getName=function(){return _.gA(this,6)};
var Nyr=_.Sd(wJ);var scx=function(A,Q,b){this.requestMessage=A;this.methodDescriptor=Q;this.metadata=b};
scx.prototype.getMetadata=function(){return this.metadata};var mrx=function(A,Q){Q=Q===void 0?{}:Q;this.responseMessage=A;this.metadata=Q;this.status=null};
mrx.prototype.getMetadata=function(){return this.metadata};
mrx.prototype.getStatus=function(){return this.status};var u5=function(A,Q,b,f,a){this.name=A;this.methodType="unary";this.requestType=Q;this.responseType=b;this.requestSerializeFn=f;this.responseDeserializeFn=a},Arn=function(A,Q,b){b=b===void 0?{}:b;
return new scx(Q,A,b)};
u5.prototype.getName=function(){return this.name};var ZG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(ZG,_.fp);ZG.prototype.getHeader=function(){return _.dO(this,z4,1)};
ZG.prototype.setHeader=function(A){return _.Lp(this,1,A)};
ZG.prototype.hasHeader=function(){return _.ne(this,z4,1)};var QIl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(QIl,_.fp);var bex=new u5("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",ZG,QIl,function(A){return A.serialize()},_.Sd(QIl));var yW=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(yW,_.fp);yW.prototype.getHeader=function(){return _.dO(this,z4,1)};
yW.prototype.setHeader=function(A){return _.Lp(this,1,A)};
yW.prototype.hasHeader=function(){return _.ne(this,z4,1)};var fen=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(fen,_.fp);var aeK=new u5("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",yW,fen,function(A){return A.serialize()},_.Sd(fen));var Yi=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Yi,_.fp);Yi.prototype.getHeader=function(){return _.dO(this,z4,1)};
Yi.prototype.setHeader=function(A){return _.Lp(this,1,A)};
Yi.prototype.hasHeader=function(){return _.ne(this,z4,1)};var TAr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(TAr,_.fp);TAr.prototype.getLink=function(){return _.dO(this,wJ,1)};var dPO=new u5("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Yi,TAr,function(A){return A.serialize()},_.Sd(TAr));var DG=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(DG,_.fp);DG.prototype.getHeader=function(){return _.dO(this,z4,1)};
DG.prototype.setHeader=function(A){return _.Lp(this,1,A)};
DG.prototype.hasHeader=function(){return _.ne(this,z4,1)};var F_F=new u5("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",DG,wJ,function(A){return A.serialize()},Nyr);var G0x=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(G0x,_.fp);var BAF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(BAF,_.fp);BAF.prototype.getUrl=function(){return _.gA(this,2)};
BAF.prototype.setUrl=function(A){return _.Nl(this,2,A)};var pDx=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(pDx,_.fp);var PTO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(PTO,_.fp);var XDN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(XDN,_.fp);var deO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(deO,_.fp);var Tss=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Tss,_.fp);var S2n=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(S2n,_.fp);var Srl=_.Sd(S2n);var UPd=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(UPd,_.fp);var L_N=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(L_N,_.fp);_.d=L_N.prototype;_.d.getHeader=function(){return _.dO(this,z4,1)};
_.d.setHeader=function(A){return _.Lp(this,1,A)};
_.d.hasHeader=function(){return _.ne(this,z4,1)};
_.d.getCompletionUrl=function(){return _.gA(this,6)};
_.d.getDeviceId=function(){return _.gA(this,11)};var M1n=new u5("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",L_N,S2n,function(A){return A.serialize()},Srl);var lel=new Set(["SAPISIDHASH","APISIDHASH"]);var K_q=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(K_q,_.fp);K_q.prototype.getMessage=function(){return _.gA(this,2)};
var ieN=_.Sd(K_q);var $i=function(A,Q){this.xhrNodeReadableStream_=A.nodeReadableStream;this.grpcResponseDeserializeFn_=Q;this.JSC$19125_xhr_=A.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19125_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&JrN(this)},HeF=function(A,Q){var b=new V1F;
_.jM(A.JSC$19125_xhr_,"complete",function(){if(A.JSC$19125_xhr_.isSuccess()){var f=A.JSC$19125_xhr_.getResponseText();var a;if(a=Q)a=A.JSC$19125_xhr_,a.JSC$9738_xhr_&&a.isComplete()?(a=a.JSC$9738_xhr_.getResponseHeader("Content-Type"),a=a===null?void 0:a):a=void 0,a=a==="text/plain";if(a){if(!atob)throw Error("Nj");f=atob(f)}try{var T=A.grpcResponseDeserializeFn_(f)}catch(p){Nw(A,RnM(new _.rr(13,"Error when deserializing response data; error: "+p+(", response: "+f)),b));return}f=_.$qA(A.JSC$19125_xhr_.getStatus());
OeN(A,nUN(A));f==0?k0x(A,T):Nw(A,RnM(new _.rr(f,"Xhr succeeded but the status code is not 200"),b))}else{f=A.JSC$19125_xhr_.getResponseText();T=nUN(A);if(f){var G=IeN(A,f);f=G.code;a=G.details;G=G.metadata}else f=2,a="Rpc failed due to xhr error. uri: "+String(A.JSC$19125_xhr_.JSC$9738_lastUri_)+", error code: "+A.JSC$19125_xhr_.JSC$9738_lastErrorCode_+", error: "+A.JSC$19125_xhr_.getLastError(),G=T;OeN(A,T);Nw(A,RnM(new _.rr(f,a,G),b))}})},JrN=function(A){A.xhrNodeReadableStream_.on("data",function(Q){if("1"in
Q){var b=Q["1"];
try{var f=A.grpcResponseDeserializeFn_(b)}catch(a){Nw(A,new _.rr(13,"Error when deserializing response data; error: "+a+(", response: "+b)))}f&&k0x(A,f)}if("2"in Q)for(Q=IeN(A,Q["2"]),b=0;b<A.onStatusCallbacks_.length;b++)A.onStatusCallbacks_[b](Q)});
A.xhrNodeReadableStream_.on("end",function(){OeN(A,nUN(A));for(var Q=0;Q<A.onEndCallbacks_.length;Q++)A.onEndCallbacks_[Q]()});
A.xhrNodeReadableStream_.on("error",function(){if(A.JSC$19125_onErrorCallbacks_.length!=0){var Q=A.JSC$19125_xhr_.JSC$9738_lastErrorCode_;Q!==0||A.JSC$19125_xhr_.isSuccess()||(Q=6);var b=-1;switch(Q){case 0:var f=2;break;case 7:f=10;break;case 8:f=4;break;case 6:b=A.JSC$19125_xhr_.getStatus();f=_.$qA(b);break;default:f=14}OeN(A,nUN(A));Q=_.itY(Q)+", error: "+A.JSC$19125_xhr_.getLastError();b!=-1&&(Q+=", http status code: "+b);Nw(A,new _.rr(f,Q))}})},nUN=function(A){var Q={},b=UId(A.JSC$19125_xhr_);
Object.keys(b).forEach(function(f){Q[f]=b[f]});
return Q},IeN=function(A,Q){var b=2,f={};
try{var a=ieN(Q);b=_.Tz(a,1);var T=a.getMessage();_.fK(a,XZO,3,_.aL()).length&&(f["grpc-web-status-details-bin"]=Q)}catch(G){A.JSC$19125_xhr_&&A.JSC$19125_xhr_.getStatus()===404?(b=5,T="Not Found: "+String(A.JSC$19125_xhr_.JSC$9738_lastUri_)):(b=14,T="Unable to parse RpcStatus: "+G)}return{code:b,details:T,metadata:f}};
$i.prototype.on=function(A,Q){A=="data"?this.onDataCallbacks_.push(Q):A=="metadata"?this.onMetadataCallbacks_.push(Q):A=="status"?this.onStatusCallbacks_.push(Q):A=="end"?this.onEndCallbacks_.push(Q):A=="error"&&this.JSC$19125_onErrorCallbacks_.push(Q);return this};
var sF=function(A,Q){Q=A.indexOf(Q);Q>-1&&A.splice(Q,1)};
$i.prototype.removeListener=function(A,Q){A=="data"?sF(this.onDataCallbacks_,Q):A=="metadata"?sF(this.onMetadataCallbacks_,Q):A=="status"?sF(this.onStatusCallbacks_,Q):A=="end"?sF(this.onEndCallbacks_,Q):A=="error"&&sF(this.JSC$19125_onErrorCallbacks_,Q);return this};
$i.prototype.cancel=function(){this.JSC$19125_xhr_.abort()};
var k0x=function(A,Q){for(var b=0;b<A.onDataCallbacks_.length;b++)A.onDataCallbacks_[b](Q)},OeN=function(A,Q){for(var b=0;b<A.onMetadataCallbacks_.length;b++)A.onMetadataCallbacks_[b](Q)},Nw=function(A,Q){for(var b=0;b<A.JSC$19125_onErrorCallbacks_.length;b++)A.JSC$19125_onErrorCallbacks_[b](Q)};
$i.prototype.cancel=$i.prototype.cancel;$i.prototype.removeListener=$i.prototype.removeListener;$i.prototype.on=$i.prototype.on;var V1F=function(){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.O(V1F,Error);var me=function(A){this.JSC$19134_worker_=A.worker||null;this.JSC$19134_streamBinaryChunks_=A.streamBinaryChunks||!1;this.JSC$19134_credentialsMode_=void 0};
_.BD(me,_.s8W);me.prototype.createInstance=function(){var A=new Ai(this.JSC$19134_worker_,this.JSC$19134_streamBinaryChunks_);this.JSC$19134_credentialsMode_&&A.setCredentialsMode(this.JSC$19134_credentialsMode_);return A};
me.prototype.setCredentialsMode=function(A){this.JSC$19134_credentialsMode_=A};
var Ai=function(A,Q){_.IH.call(this);this.JSC$19138_worker_=A;this.JSC$19138_streamBinaryChunks_=Q;this.JSC$19138_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$19138_responseHeaders_=null;this.JSC$19138_method_="GET";this.JSC$19138_url_="";this.inProgress_=!1;this.JSC$19138_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.BD(Ai,_.IH);Ai.prototype.open=function(A,Q){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$19138_method_=A;this.JSC$19138_url_=Q;this.readyState=1;Qe(this)};
Ai.prototype.send=function(A){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var Q={headers:this.requestHeaders_,method:this.JSC$19138_method_,credentials:this.JSC$19138_credentialsMode_,cache:void 0,signal:this.abortController_.signal};A&&(Q.body=A);(this.JSC$19138_worker_||_.by).fetch(new Request(this.JSC$19138_url_,Q)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Ai.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,b2(this));this.readyState=0};
Ai.prototype.handleResponse_=function(A){if(this.inProgress_&&(this.fetchResponse_=A,this.JSC$19138_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19138_responseHeaders_=A.headers,this.readyState=2,Qe(this)),this.inProgress_&&(this.readyState=3,Qe(this),this.inProgress_)))if(this.responseType==="arraybuffer")A.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.by.ReadableStream!==
"undefined"&&"body"in A){this.currentReader_=A.body.getReader();if(this.JSC$19138_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$19138_textDecoder_=new TextDecoder;CTN(this)}else A.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var CTN=function(A){A.currentReader_.read().then(A.handleDataFromStream_.bind(A)).catch(A.handleSendFailure_.bind(A))};
Ai.prototype.handleDataFromStream_=function(A){if(this.inProgress_){if(this.JSC$19138_streamBinaryChunks_&&A.value)this.response.push(A.value);else if(!this.JSC$19138_streamBinaryChunks_){var Q=A.value?A.value:new Uint8Array(0);if(Q=this.JSC$19138_textDecoder_.decode(Q,{stream:!A.done}))this.response=this.responseText+=Q}A.done?b2(this):Qe(this);this.readyState==3&&CTN(this)}};
Ai.prototype.handleResponseText_=function(A){this.inProgress_&&(this.response=this.responseText=A,b2(this))};
Ai.prototype.handleResponseArrayBuffer_=function(A){this.inProgress_&&(this.response=A,b2(this))};
Ai.prototype.handleSendFailure_=function(){this.inProgress_&&b2(this)};
var b2=function(A){A.readyState=4;A.fetchResponse_=null;A.currentReader_=null;A.JSC$19138_textDecoder_=null;Qe(A)};
Ai.prototype.setRequestHeader=function(A,Q){this.requestHeaders_.append(A,Q)};
Ai.prototype.getResponseHeader=function(A){return this.JSC$19138_responseHeaders_?this.JSC$19138_responseHeaders_.get(A.toLowerCase())||"":""};
Ai.prototype.getAllResponseHeaders=function(){if(!this.JSC$19138_responseHeaders_)return"";for(var A=[],Q=this.JSC$19138_responseHeaders_.entries(),b=Q.next();!b.done;)b=b.value,A.push(b[0]+": "+b[1]),b=Q.next();return A.join("\r\n")};
Ai.prototype.setCredentialsMode=function(A){this.JSC$19138_credentialsMode_=A};
var Qe=function(A){A.onreadystatechange&&A.onreadystatechange.call(A)};
Object.defineProperty(Ai.prototype,"withCredentials",{get:function(){return this.JSC$19138_credentialsMode_==="include"},
set:function(A){this.setCredentialsMode(A?"include":"same-origin")}});var q2t=function(A){var Q="";_.j2.forEach(A,function(b,f){Q+=f;Q+=":";Q+=b;Q+="\r\n"});
return Q},oUx=function(A,Q,b){if(_.j2.isEmpty(b))return A;
b=q2t(b);if(typeof A==="string")return _.yH(A,_.ud(Q),b);_.wv(A,Q,b);return A};var t1F=function(){this.isInputValid_=!0;this.JSC$19143_streamPos_=0;this.leftoverInput_=""};
t1F.prototype.isInputValid=function(){return this.isInputValid_};
t1F.prototype.decode=function(A){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Sj`"+this.JSC$19143_streamPos_+"`stream already broken`"+A);this.leftoverInput_+=A;A=Math.floor(this.leftoverInput_.length/4);if(A==0)return null;try{var Q=_.zDe(this.leftoverInput_.slice(0,A*4))}catch(b){throw Q=this.leftoverInput_,A=b.message,this.isInputValid_=!1,Error("Sj`"+this.JSC$19143_streamPos_+"`"+A+"`"+Q);}this.JSC$19143_streamPos_+=A*4;this.leftoverInput_=this.leftoverInput_.slice(A*4);return Q};var he=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19146_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
he.prototype.isInputValid=function(){return this.state_!=3};
var fg=function(A,Q,b,f){A.state_=3;A.errorMessage_="The stream is broken @"+A.JSC$19146_streamPos_+"/"+b+". Error: "+f+". With input:\n"+Q;throw Error(A.errorMessage_);};
he.prototype.acceptsBinaryInput=function(){return!0};
he.prototype.parse=function(A){function Q(P){P&128&&fg(T,G,p,"invalid tag");(P&7)!=2&&fg(T,G,p,"invalid wire type");T.tag_=P>>>3;T.tag_!=1&&T.tag_!=2&&T.tag_!=15&&fg(T,G,p,"unexpected tag");T.state_=1;T.length_=0;T.countLengthBytes_=0}
function b(P){T.countLengthBytes_++;T.countLengthBytes_==5&&P&240&&fg(T,G,p,"message length too long");T.length_|=(P&127)<<(T.countLengthBytes_-1)*7;P&128||(T.state_=2,T.countMessageBytes_=0,typeof Uint8Array!=="undefined"?T.messageBuffer_=new Uint8Array(T.length_):T.messageBuffer_=Array(T.length_),T.length_==0&&a())}
function f(P){T.messageBuffer_[T.countMessageBytes_++]=P;T.countMessageBytes_==T.length_&&a()}
function a(){if(T.tag_<15){var P={};P[T.tag_]=T.messageBuffer_;T.result_.push(P)}T.state_=0}
for(var T=this,G=A instanceof Array?A:new Uint8Array(A),p=0;p<G.length;){switch(T.state_){case 3:fg(T,G,p,"stream already broken");break;case 0:Q(G[p]);break;case 1:b(G[p]);break;case 2:f(G[p]);break;default:throw Error("Tj`"+T.state_);}T.JSC$19146_streamPos_++;p++}A=T.result_;T.result_=[];return A.length>0?A:null};var enM=function(){this.errorMessage_=null;this.JSC$19149_streamPos_=0;this.base64Decoder_=new t1F;this.pbParser_=new he};
enM.prototype.isInputValid=function(){return this.errorMessage_===null};
var rrd=function(A,Q,b){A.errorMessage_="The stream is broken @"+A.JSC$19149_streamPos_+". Error: "+b+". With input:\n"+Q;throw Error(A.errorMessage_);};
enM.prototype.acceptsBinaryInput=function(){return!1};
enM.prototype.parse=function(A){this.errorMessage_!==null&&rrd(this,A,"stream already broken");var Q=null;try{var b=this.base64Decoder_.decode(A);Q=b===null?null:this.pbParser_.parse(b)}catch(f){rrd(this,A,f.message)}this.JSC$19149_streamPos_+=A.length;return Q};var g_K=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19152_streamPos_=0;this.result_=[];this.statusParsed_=!1};
g_K.prototype.isInputValid=function(){return this.errorMessage_===null};
g_K.prototype.acceptsBinaryInput=function(){return!1};
g_K.prototype.parse=function(A){function Q(P){T.state_=6;T.errorMessage_="The stream is broken @"+T.JSC$19152_streamPos_+"/"+G+". Error: "+P+". With input:\n";throw Error(T.errorMessage_);}
function b(){T.jsonStreamParser_=new _.Pp({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function f(P){if(P)for(var U=0;U<P.length;U++){var L={};L[1]=P[U];T.result_.push(L)}}
function a(P){if(P){(T.statusParsed_||P.length>1)&&Q("extra status: "+P);T.statusParsed_=!0;var U={};U[2]=P[0];T.result_.push(U)}}
for(var T=this,G=0;G<A.length;){var p;if(p=T.state_!==2){a:{for(;G<A.length;){if(!_.pb(A[G])){p=!0;break a}G++;T.JSC$19152_streamPos_++}p=!1}p=!p}if(p)return null;switch(T.state_){case 6:Q("stream already broken");break;case 0:A[G]==="["?(T.state_=1,G++,T.JSC$19152_streamPos_++):Q("unexpected input token");break;case 1:A[G]==="["?(T.state_=2,b()):A[G]===","||A.slice(G,G+5)=="null,"?T.state_=3:A[G]==="]"?(T.state_=5,G++,T.JSC$19152_streamPos_++):Q("unexpected input token");break;case 2:p=T.jsonStreamParser_.parse(A.substring(G));
f(p);T.jsonStreamParser_.done()?(T.state_=3,p=T.jsonStreamParser_.JSC$11369_buffer_,T.JSC$19152_streamPos_+=A.length-G-p.length,A=p,G=0):(T.JSC$19152_streamPos_+=A.length-G,G=A.length);break;case 3:A[G]===","||A.slice(G,G+5)=="null,"?(T.state_=4,b(),T.jsonStreamParser_.parse("["),G+=A[G]===","?1:5,T.JSC$19152_streamPos_++):A[G]==="]"&&(T.state_=5,G++,T.JSC$19152_streamPos_++);break;case 4:p=T.jsonStreamParser_.parse(A.substring(G));a(p);T.jsonStreamParser_.done()?(T.state_=5,p=T.jsonStreamParser_.JSC$11369_buffer_,
T.JSC$19152_streamPos_+=A.length-G-p.length,A=p,G=0):(T.JSC$19152_streamPos_+=A.length-G,G=A.length);break;case 5:Q("extra input after stream end")}}return T.result_.length>0?(A=T.result_,T.result_=[],A):null};var jIx=function(A){this.JSC$19155_xhr_=A;this.JSC$19155_parser_=null;this.status_=this.JSC$19155_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19155_textDecoder_=null;this.JSC$19155_eventHandler_=new _.BR(this);this.JSC$19155_eventHandler_.listen(this.JSC$19155_xhr_,"readystatechange",this.JSC$19157_readyStateChangeHandler_)},a6=function(A,Q){A.status_!=Q&&(A.status_=Q,A.statusHandler_&&A.statusHandler_())},Tw=function(A){A.JSC$19155_eventHandler_.removeAll();
if(A.JSC$19155_xhr_){var Q=A.JSC$19155_xhr_;A.JSC$19155_xhr_=null;Q.abort();Q.dispose()}};
jIx.prototype.getStatus=function(){return this.status_};
jIx.prototype.JSC$19157_readyStateChangeHandler_=function(A){A=A.target;try{if(A==this.JSC$19155_xhr_)a:{var Q=_.gr(this.JSC$19155_xhr_),b=this.JSC$19155_xhr_.JSC$9738_lastErrorCode_,f=this.JSC$19155_xhr_.getStatus(),a=this.JSC$19155_xhr_.getResponseText();A=[];if(this.JSC$19155_xhr_.getResponse()instanceof Array){var T=this.JSC$19155_xhr_.getResponse();T.length>0&&T[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,A=T)}if(!(Q<3||Q==3&&!a&&A.length==0))if(f=f==200||f==206,Q==4&&(b==8?a6(this,
7):b==7?a6(this,8):f||a6(this,3)),this.JSC$19155_parser_||(this.JSC$19155_parser_=hnF(this.JSC$19155_xhr_),this.JSC$19155_parser_==null&&a6(this,5)),this.status_>2)Tw(this);else{if(A.length>this.JSC$19155_pos_){var G=A.length;b=[];try{if(this.JSC$19155_parser_.acceptsBinaryInput())for(var p=0;p<G;p++){var P=this.JSC$19155_parser_.parse(Array.from(A[p]));P&&(b=b.concat(P))}else{P="";if(!this.JSC$19155_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$19155_textDecoder_=new TextDecoder}for(p=
0;p<G;p++)P+=this.JSC$19155_textDecoder_.decode(A[p],{stream:Q==4&&p==G-1});b=this.JSC$19155_parser_.parse(P)}A.splice(0,G);b&&this.dataHandler_(b)}catch(L){a6(this,5);Tw(this);break a}}else if(a.length>this.JSC$19155_pos_){p=a.slice(this.JSC$19155_pos_);this.JSC$19155_pos_=a.length;try{var U=this.JSC$19155_parser_.parse(p);U!=null&&this.dataHandler_&&this.dataHandler_(U)}catch(L){a6(this,5);Tw(this);break a}}Q==4?(a.length!=0||this.hasStreamingResponseData_?a6(this,2):a6(this,4),Tw(this)):a6(this,
1)}}}catch(L){a6(this,6),Tw(this)}};var RjF=function(A){A=this.xhrReader_=A;var Q=(0,_.IL)(this.onData_,this);A.dataHandler_=Q;A=this.xhrReader_;Q=(0,_.IL)(this.onStatusChange_,this);A.statusHandler_=Q;this.JSC$19159_callbackMap_={};this.callbackOnceMap_={}};
_.d=RjF.prototype;_.d.on=function(A,Q){var b=this.JSC$19159_callbackMap_[A];b||(b=[],this.JSC$19159_callbackMap_[A]=b);b.push(Q);return this};
_.d.addListener=function(A,Q){this.on(A,Q);return this};
_.d.removeListener=function(A,Q){var b=this.JSC$19159_callbackMap_[A];b&&_.Eb(b,Q);(A=this.callbackOnceMap_[A])&&_.Eb(A,Q);return this};
_.d.once=function(A,Q){var b=this.callbackOnceMap_[A];b||(b=[],this.callbackOnceMap_[A]=b);b.push(Q);return this};
_.d.onData_=function(A){var Q=this.JSC$19159_callbackMap_.data;Q&&gUx(A,Q);(Q=this.callbackOnceMap_.data)&&gUx(A,Q);this.callbackOnceMap_.data=[]};
var gUx=function(A,Q){for(var b={},f=0;f<A.length;b={message$jscomp$1002:void 0},f++)b.message$jscomp$1002=A[f],Q.forEach(function(a){return function(T){try{T(a.message$jscomp$1002)}catch(G){}}}(b))};
RjF.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:ejN(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ejN(this,"error");break;case 8:ejN(this,"close");break;case 2:ejN(this,"end")}};
var ejN=function(A,Q){var b=A.JSC$19159_callbackMap_[Q];b&&b.forEach(function(f){try{f()}catch(a){}});
(b=A.callbackOnceMap_[Q])&&b.forEach(function(f){f()});
A.callbackOnceMap_[Q]=[]};var hjs=function(){var A={format:"jspb"};A=A===void 0?{}:A;this.suppressCorsPreflight=A.suppressCorsPreflight||_.zV("suppressCorsPreflight",A)||!1;this.withCredentials=A.withCredentials||_.zV("withCredentials",A)||!1;this.streamInterceptors=A.streamInterceptors||[];this.unaryInterceptors=A.unaryInterceptors||[];this.workerScope=A.workerScope;this.chunkedServerStreaming=A.useFetchDownloadStreams||!1},EUl=function(A,Q,b,f,a,T){T=T===void 0?{}:T;
var G=Q.substring(0,Q.length-a.name.length),p,P=(p=T)==null?void 0:p.signal;return W_t(function(U){return new Promise(function(L,M){if(P==null?0:P.aborted){var l=new _.rr(1,"Aborted");l.cause=P.reason;M(l)}else{var J={},n=vUr(A,U,G);n.on("error",function(t){return void M(t)});
n.on("metadata",function(t){J=t});
n.on("data",function(t){var g=J;g=g===void 0?{}:g;L(new mrx(t,g))});
P&&P.addEventListener("abort",function(){n.cancel();var t=new _.rr(1,"Aborted");t.cause=P.reason;M(t)})}})},A.unaryInterceptors).call(A,Arn(a,b,f)).then(function(U){return U.responseMessage})},dg=function(A,Q,b,f,a,T){T=T===void 0?{}:T;
return EUl(A,Q,b,f,a,T)};
hjs.prototype.serverStreaming=function(A,Q,b,f){var a=this,T=A.substring(0,A.length-f.name.length);return xPq(function(G){var p=G.methodDescriptor,P=G.getMetadata(),U=crK(a,!1);P=zjr(a,P,U,T+p.getName());var L=wDN(U,p.responseDeserializeFn,!0);G=p.requestSerializeFn(G.requestMessage);U.send(P,"POST",G);return L},this.streamInterceptors).call(this,Arn(f,Q,b))};
var vUr=function(A,Q,b){var f=Q.methodDescriptor,a=Q.getMetadata(),T=crK(A,!0);A=zjr(A,a,T,b+f.getName());b=wDN(T,f.responseDeserializeFn,!1);HeF(b,a["X-Goog-Encode-Response-If-Executable"]==="base64");Q=f.requestSerializeFn(Q.requestMessage);T.send(A,"POST",Q);return b},crK=function(A,Q){Q=A.chunkedServerStreaming&&!Q;
return A.workerScope||Q?new _.RH(new me({worker:A.workerScope,streamBinaryChunks:Q})):new _.RH},zjr=function(A,Q,b,f){Q["Content-Type"]="application/json+protobuf";
Q["X-User-Agent"]="grpc-web-javascript/0.1";var a=Q.Authorization;if(a&&lel.has(a.split(" ")[0])||A.withCredentials)b.JSC$9738_withCredentials_=!0;if(A.suppressCorsPreflight)f=oUx(f,"$httpHeaders",Q);else for(A=_.F(Object.keys(Q)),a=A.next();!a.done;a=A.next())a=a.value,b.headers.set(a,Q[a]);return f},wDN=function(A,Q,b){if(b){b=new jIx(A);
var f=new RjF(b)}return new $i({xhr:A,nodeReadableStream:f},Q)},xPq=function(A,Q){return Q.reduce(function(b,f){return function(a){return f.intercept(a,b)}},A)},W_t=function(A,Q){return Q.reduce(function(b,f){return function(a){return f.intercept(a,b)}},A)};var uYO=function(A){this.client_=new hjs;this.hostname_=A==void 0?A:A.replace(/\/+$/,"")};
_.d=uYO.prototype;_.d.JSC$19177_depositGoogleCredential=function(A,Q,b){return dg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",A,Q||{},aeK,b)};
_.d.deleteLink=function(A,Q,b){return dg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",A,Q||{},bex,b)};
_.d.JSC$19177_finishOAuth=function(A,Q,b){return dg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",A,Q||{},dPO,b)};
_.d.getLink=function(A,Q,b){return dg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",A,Q||{},F_F,b)};
_.d.startLinkingSession=function(A,Q,b){return dg(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",A,Q||{},M1n,b)};var ZeN=[0,fNq,1,dr7,[0,_.m_,[0,aNd,-1]],[0,TyN],[0,FUx,-1]];var yrK=function(){this.storage=new Map},DPr=function(A,Q,b,f,a){if(!A.storage.has(Q))return null;
A=_.F(A.storage.get(Q));for(Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,!a||Q.linkName===a)if(b&&Q.scopes&&Y2l(Q.scopes,b)||f&&Q.capabilities&&Y2l(Q.capabilities,f))return Q;return null},$Px=function(A,Q,b){if(!b)A.storage.delete(Q);
else if(A.storage.has(Q)){var f=A.storage.get(Q).filter(function(a){return a.linkName!==b});
f.length>0?A.storage.set(Q,f):A.storage.delete(Q)}},Y2l=function(A,Q){Q=_.F(Q);
for(var b=Q.next();!b.done;b=Q.next())if(!A.has(b.value))return!1;return!0};var NAq=function(){var A=_.vG("LINK_GAL_DOMAIN");this.alsDomain1p=_.vG("LINK_GAL_DOMAIN");this.alsDomain3p=A;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},sI7=function(A,Q){A.apiKey=Q;
return A};
NAq.prototype.build=function(){var A={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");A.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");A.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(A.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)A.apiKey=
this.apiKey,A.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");A.oauthToken=this.oauthToken;A.alsDomain=this.alsDomain3p}A.clientXd3=this.clientXd3;A.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(A.authUser=this.authUser);this.bucket!==void 0&&(A.bucket=this.bucket);this.completionUrl!==void 0&&(A.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(A.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(A.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(A.locale=this.locale);A.loggerType=this.loggerType;A.clientEnvironment=this.clientEnvironment;A.colorScheme=this.colorScheme;A.showCloseOption=this.showCloseOption;return A};var WC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(WC,_.fp);var mPq=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(mPq,_.fp);var AdF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(AdF,_.fp);var E_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(E_,_.fp);var QBx=function(A){return _.e1(A,1)};var bwt=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(bwt,_.fp);var wnq=_.Sd(bwt),vC=[1,2,3,4,5];var E_F=function(A){try{return wnq(A)}catch(Q){return null}},fW7=function(){},xBK=function(A,Q){switch(_.Ce(Q,vC)){case 4:return(Q=_.vD(Q,AdF,4,vC))&&A.logStateTransition(_.e1(Q,1)),!0;
case 5:return(Q=_.vD(Q,mPq,5,vC))&&A.logInternalEvent(_.e1(Q,1)),!0}return!1},u5s=function(A){switch(A){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.x1(A)}};var WEN=function(A,Q){var b=this;this.validator=A;this.messageListener=Q;this.dismissCallback=function(){aWx(b,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19206_receiveMessage=function(f){f.type==="message"&&(f=f.event_,f!==null&&(new URL(b.iframe.src)).origin===f.origin&&b.validator(f.data,f.origin)&&!b.messageListener(f.data)&&(b.JSC$19206_resolveCb!==void 0&&b.JSC$19206_resolveCb(f.data),ThM(b)))}},zns=function(A,Q,b){A.uiHandler!==void 0&&aWx(A,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(f,a){A.JSC$19206_resolveCb=f;A.JSC$19206_rejectCb=a;A.iframe=document.createElement("iframe");_.Zi(A.iframe,Q);A.uiHandler=b.displayContent(A.iframe,A.dismissCallback);_.jM(window,"message",A.JSC$19206_receiveMessage,!1,A)})},aWx=function(A,Q){A.JSC$19206_rejectCb!==void 0&&A.JSC$19206_rejectCb(Q);
ThM(A)},ThM=function(A){A.uiHandler!==void 0&&A.uiHandler.hideContent();
_.kp(window,"message",A.JSC$19206_receiveMessage,!1,A);A.JSC$19206_resolveCb=void 0;A.JSC$19206_rejectCb=void 0;A.uiHandler=void 0;A.iframe=void 0};var d_7=function(A){if(A===2){var Q;A=((Q=window)==null?0:Q.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return A},cQK=function(A){A=d_7(A);
switch(A){case 0:return"light";case 1:return"dark";default:_.x1(A)}};var v_r=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),FQn=function(A,Q){this.JSC$19218_linkingSession=A;this.noticeConfig=Q;this.displayInfoMap=new Map;var b=new Map;if(_.ne(this.JSC$19218_linkingSession,pDx,7))for(A=_.dO(this.JSC$19218_linkingSession,pDx,7),A=_.fK(A,BAF,1,_.aL()),A=_.F(A),Q=A.next();!Q.done;Q=A.next())Q=Q.value,b.set(_.e1(Q,1),_.Xr9(_.dO(Q,_.YKY,3)));if(b.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){Q=this.noticeConfig.enabledDataUsageNoticeUis;A=Q.has(0)?b.get(1):void 0;Q=Q.has(1)?b.get(2):void 0;b=A!==void 0&&Q!==void 0?b.get(3):void 0;var f=this.noticeConfig.nestedOrigins;var a=new bwt;var T=new WC;a=_.Ms(a,2,vC,T);T=new bwt;var G=new WC;T=_.Ms(T,3,vC,G);G=[];A!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:A,lastEvent:a,nestedOrigins:f}]),G.push({trustedUrl:A,lastEvent:a,nestedOrigins:f}));Q!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:Q,lastEvent:T,nestedOrigins:f}]),G.push({trustedUrl:Q,lastEvent:T,nestedOrigins:f}));b!==void 0?this.displayInfoMap.set(3,[{trustedUrl:b,lastEvent:T,nestedOrigins:f}]):this.displayInfoMap.set(3,G)}};var GNK=function(A){var Q=new yrK;this.galService=A;this.galCache=Q};
GNK.prototype.getLink=function(A){var Q=A.serviceId;var b=A.scopes;var f=A.capabilities;var a=A.linkName;var T=this,G;return _.B(function(p){if(f!==void 0&&b!==void 0)throw Error("Zj");G=DPr(T.galCache,Q,b,f,a);return G!==null?p.return(G):p.return(T.galService.getLink({serviceId:Q,sessionId:Math.floor(Math.random()*2147483648),scopes:b,capabilities:f,linkName:a}).then(function(P){P=$BM(P);var U=T.galCache;U.storage.has(Q)?U.storage.get(Q).push(P):U.storage.set(Q,[P]);return P}))})};
GNK.prototype.deleteLink=function(A,Q,b){var f=this;return _.B(function(a){$Px(f.galCache,A,b);return a.return(f.galService.deleteLink({serviceId:A,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:Q,linkName:b}).then(function(){return!0}))})};var pkK=function(A,Q){var b=this;this.validator=A;this.msgHandler=Q;this.closedPopupTimeout=this.JSC$19240_rejectCb=this.JSC$19240_resolveCb=this.popup=null;this.JSC$19240_receiveMessage=function(f){if(f!==null&&(f=f.event_,f.source===b.popup)){var a=f.data;if(b.validator(a,f.origin)){var T;(T=b.msgHandler)!=null&&T.call(b,a)||(b.JSC$19240_resolveCb!==null&&b.JSC$19240_resolveCb(a),BhK(b))}}}};
pkK.prototype.open=function(A,Q){var b=this;this.popup!==null&&PGO(this);return new Promise(function(f,a){b.JSC$19240_resolveCb=f;b.JSC$19240_rejectCb=a;b.popup=_.Y8(window,A,"",Q);_.jM(window,"message",b.JSC$19240_receiveMessage,!1,b);Xkn(b)})};
var PGO=function(A,Q){A.JSC$19240_rejectCb!==null&&A.JSC$19240_rejectCb(Q);BhK(A)},BhK=function(A){A.closedPopupTimeout&&(A.closedPopupTimeout.cancel(),A.closedPopupTimeout=null);
A.popup&&A.popup.close();_.kp(window,"message",A.JSC$19240_receiveMessage,!1,A);A.popup=null;A.JSC$19240_resolveCb=null;A.JSC$19240_rejectCb=null},Xkn=function(A){A.closedPopupTimeout=_.U1x(100).then(function(){A.popup?A.popup.closed?SJd(A):Xkn(A):PGO(A,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},SJd=function(A){A.closedPopupTimeout=_.U1x(100).then(function(){PGO(A,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var U_O=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),LQq=function(A,Q,b,f,a,T,G,p,P,U){var L=this;this.serviceId=A;this.sessionId=Q;this.galService=b;this.oauthDetails=f;this.galLogger=a;this.interactionMode=T;this.redirectServiceUrl=G;this.consentLanguageKeys=p;this.dynamicUrlParameters=P;this.partnerConfigMinReadTimestamp=U;this.started=!1;this.JSC$19246_dataValidator=function(M,
l){var J=U_O.has(l);J||L.redirectServiceUrl===void 0||(J=L.redirectServiceUrl===l);return J?M.sentinel==="gdi":!1}};
LQq.prototype.complete=function(){var A=this,Q;return _.B(function(b){if(A.interactionMode!==1)return b.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Q=cC.getRedirectStateFromUri();return Q===null?b.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):b.return(MEN(A,Q))})};
LQq.prototype.start=function(){var A=this,Q;return _.B(function(b){if(A.started)return b.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.gA(A.oauthDetails,1))return b.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(A.interactionMode===1)return cC.setLocation(_.gA(A.oauthDetails,1)),b.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));A.started=!0;A.galLogger.logStateTransition(5);
Q=cC.getPostMessagePopup(A.JSC$19246_dataValidator);return b.return(Q.open(_.gA(A.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(f){A.started=!1;var a=A.galLogger;if((f==null?void 0:f.error)!==void 0)throw a.logInternalEvent(59),Error("$j");if((f==null?void 0:f.redirect_state)===void 0)throw a.logInternalEvent(131),Error("ak");return MEN(A,f.redirect_state)}).catch(function(f){A.started=
!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var MEN=function(A,Q){return _.B(function(b){return b.return(lWs(A.galService,{serviceId:A.serviceId,sessionId:A.sessionId,dynamicUrlParameters:A.dynamicUrlParameters,redirectState:Q,consentLanguageKeys:A.consentLanguageKeys,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp}).then(function(f){var a={statusCode:1,link:$BM(f.getLink())};tcM(_.II(f,3))!==void 0&&(a.callerState=tcM(_.II(f,3)));A.galLogger.logInternalEvent(134);return a}))})},cC={getPostMessagePopup:function(A){return new pkK(A)},
getRedirectStateFromUri:function(){var A=_.co(cC.getLocation()).fragment_;return(new _.po(A)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(A){_.PMY(window.location,_.hs(A))},
createOAuthFlow:function(A,Q){return new LQq(A.serviceId,A.sessionId,A.galService,Q,A.galLogger,A.interactionMode,A.redirectServiceUrl,A.consentLanguageKeys,A.dynamicUrlParameters,A.partnerConfigMinReadTimestamp)}};var KQq=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(KQq,_.fp);var iwl=_.Sd(KQq);var Jdn=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),VEq=function(A,Q,b,f,a,T,G,p,P){var U=this;this.serviceId=A;this.sessionId=Q;this.galService=b;this.gsiWebFlowDetails=f;this.colorScheme=a;this.showCloseOption=T;this.galLogger=G;this.interactionMode=p;this.redirectServiceUrl=P;this.started=!1;this.JSC$19258_dataValidator=function(L,M){var l=Jdn.has(M);l||U.redirectServiceUrl===
void 0||(l=U.redirectServiceUrl===M);return l?L.sentinel==="gal":!1};
this.logEventProcessor=function(L){return L.result?(L=E_F(L.result))?xBK(U.galLogger,L):!1:!1}};
VEq.prototype.complete=function(){var A=this,Q,b;return _.B(function(f){if(A.interactionMode!==1)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));Q=zh.getRedirectStateFromUri();if(Q===void 0)return A.galLogger.JSC$19198_logErrorEvent(131),f.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return b=Owx(A,Q),f.return(nEN(A,b))}catch(a){return f.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
VEq.prototype.start=function(){var A=this,Q;return _.B(function(b){if(A.started)return b.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.gA(A.gsiWebFlowDetails,1))return b.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(A.interactionMode===1)return zh.setLocation(kNx(A,_.gA(A.gsiWebFlowDetails,1))),b.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
A.started=!0;Q=zh.getPostMessagePopup(A.JSC$19258_dataValidator,A.logEventProcessor);return b.return(Q.open(kNx(A,_.gA(A.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(f){A.started=!1;if((f==null?void 0:f.result)===void 0)throw A.galLogger.JSC$19198_logErrorEvent(131),Error("ak");f=Owx(A,f.result);return nEN(A,f)}).catch(function(f){A.started=!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var kNx=function(A,Q){A=["result_channel",A.interactionMode===1?"2":"1","color_scheme",cQK(A.colorScheme),"show_close_option",A.showCloseOption];return P6l(Q,A)},nEN=function(A,Q){if(Q!==null&&_.ne(Q,E_,2)){var b,f=Q==null?void 0:(b=_.dO(Q,E_,2))==null?void 0:_.e1(b,2);
f&&A.galLogger.JSC$19198_logErrorEvent(u5s(f));return QBx(_.dO(Q,E_,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 A.galService.getLink({serviceId:A.serviceId,sessionId:A.sessionId,consistencyKey:_.gA(Q,1)}).then(function(a){a=$BM(a);A.galLogger.logInternalEvent(134);return{statusCode:1,link:a}})},Owx=function(A,Q){Q=iwl(Q);
if(!_.ne(Q,E_,2)&&_.gA(Q,1)==="")throw A.galLogger.JSC$19198_logErrorEvent(5),Error("bk");return Q},zh={getPostMessagePopup:function(A,Q){return new pkK(A,Q)},
getRedirectStateFromUri:function(){return _.zz(_.co(zh.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(A){_.PMY(window.location,_.hs(A))},
createStreamlinedFlow:function(A,Q){return new VEq(A.serviceId,A.sessionId,A.galService,Q,A.colorScheme,A.showCloseOption,A.galLogger,A.interactionMode,A.redirectServiceUrl)}};var PgO=function(){var A=_.M$e("GAL");this.storage=A?new _.Hr(A):null};
PgO.prototype.getSession=function(A){if(this.storage!==null)try{var Q=this.storage.get("SAVED_SESSION");if(Q===void 0)return null;if(Q.serviceId===A)return Q}catch(b){}return null};var F4=function(){};
_.O(F4,fW7);F4.prototype.logStateTransition=function(){};
F4.prototype.logInternalEvent=function(){};
F4.prototype.JSC$19198_logErrorEvent=function(){};var IWr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(IWr,_.fp);IWr.prototype.getCompletionUrl=function(){return _.gA(this,15)};var Gw=function(A,Q,b,f,a,T){this.serviceId=A;this.environment=Q;this.sessionId=b;this.colorSchemeSelected=f;this.colorThemeDisplayed=a;this.JSC$19271_transport=T;this.currentState=1};
_.O(Gw,fW7);Gw.prototype.logStateTransition=function(A){var Q=Hwn(this);Q=_.FH(Q,3,this.currentState);Q=_.FH(Q,1,A);this.currentState=A;A=ShF(1);this.dispatch(Q,A)};
Gw.prototype.logInternalEvent=function(A){A=ShF(A);this.dispatch(Hwn(this),A)};
Gw.prototype.JSC$19198_logErrorEvent=function(A){var Q=Hwn(this);Q=_.FH(Q,1,10);A=ShF(A);this.dispatch(Q,A)};
var Hwn=function(A){var Q=new IWr;Q=_.FH(Q,1,A.currentState);Q=_.nt(Q,7,A.serviceId);var b,f;var a=((b=window)==null?0:(f=b.location)==null?0:f.href)?_.co(window.location.href).JSC$9973_domain_:"NO_PACKAGE_NAME";b=_.nt(Q,8,a);b=_.FH(b,6,A.environment);b=_.nt(b,5,"100");b=_.FH(b,11,A.colorSchemeSelected);return _.FH(b,12,A.colorThemeDisplayed)};
Gw.prototype.dispatch=function(A,Q){Q===void 0&&(Q=new _.SV);var b=Q;A=A.serialize();b=_.nt(b,8,A);_.kk(b,12,this.sessionId);this.JSC$19271_transport.dispatch(Q)};var CGn=function(A,Q){this.loggerType=A;this.sessionIndex=Q!=null?Q:0},qJq;
CGn.prototype.create=function(A,Q,b,f,a){switch(this.loggerType){case 0:return new F4;case 1:return qJq||(qJq=(new _.Xl(555,this.sessionIndex.toString())).build()),new Gw(A,Q,b,f,a,qJq);default:_.x1(this.loggerType,"unknown logger type")}};var wM=[6,2,3,1],l5F=new Map([[4,1],[1,6],[2,2],[3,3]]),AHl={statusCode:7,statusMessage:"Failed to create flow object"},Bss=function(A,Q,b,f,a,T,G,p,P,U){this.serviceId=A;this.sessionId=Q;this.config=b;this.galService=f;this.JSC$19278_linkingSession=a;this.googleScopes=T;this.callerState=G;this.consentLanguageKeys=p;this.dynamicUrlParameters=P;this.partnerConfigMinReadTimestamp=U;this.currentFlow=0;f=this.JSC$19278_linkingSession;a=new Set;_.ne(f,Tss,1)&&a.add(1);_.ne(f,XDN,2)&&_.ne(f,deO,6)&&a.add(2);
_.ne(f,PTO,3)&&_.ne(f,deO,6)&&a.add(3);_.ne(f,G0x,4)&&a.add(6);this.supportedFlows=a;f=b.loggerType;a=b.clientEnvironment;a:{T=b.colorScheme;switch(T){case 0:T=1;break a;case 1:T=2;break a;case 2:T=3;break a;default:_.x1(T)}T=void 0}a:{G=b.colorScheme;G=d_7(G);switch(G){case 0:G=1;break a;case 1:G=2;break a;default:_.x1(G)}G=void 0}this.galLogger=(new CGn(f,b.authUser)).create(A,a,Q,T,G)},tEO=function(A){return new Promise(function(Q){var b,f,a,T,G,p,P,U,L,M;
return _.B(function(l){switch(l.nextAddress){case 1:b=FOs(A.currentFlow,A.supportedFlows),f=!1,a=new FQn(A.JSC$19278_linkingSession,A.config.dataUsageNoticeConfig);case 2:if(b===void 0){l.jumpTo(4);break}_.ML(l,5);var J=a,n=b,t=void 0;f?n===1&&(t=J.displayInfoMap.get(2)):n===2||n===3?t=J.displayInfoMap.get(1):n===1&&(t=J.displayInfoMap.get(3));T=t?t:[];G=A.consentLanguageKeys;p=_.F(T);P=p.next();case 7:if(P.done)return A.currentFlow=b,l.yield(bOt(oEM(A,G)),11);U=P.value;return l.yield(ZD7(U,A.config.dataUsageNoticeConfig.uiAdapter,
A.config.colorScheme,A.galLogger),10);case 10:L=l.yieldResult;if(L.statusCode!==1)return XOn(A.serviceId),A.currentFlow=0,Q(xb({statusCode:L.statusCode,statusMessage:L.statusMessage},A.callerState)),l.return();L.consentLanguageKeys!==void 0&&(G=L.consentLanguageKeys);P=p.next();l.jumpTo(7);break;case 11:M=l.yieldResult;if(M.statusCode!==10)return M.statusCode!==6&&(XOn(A.serviceId),A.currentFlow=0),M.statusCode!==1&&A.callerState!==void 0&&(M.callerState=A.callerState),Q(M),l.return();_.Z1(l,6);break;
case 5:_.Vw(l);case 6:b=FOs(A.currentFlow,A.supportedFlows);f=!0;l.jumpTo(2);break;case 4:XOn(A.serviceId),A.currentFlow=0,Q(xb({statusCode:12,statusMessage:"Linking failed"},A.callerState)),_.Oi(l)}})})},LOF=function(A,Q,b){A.currentFlow=Q;
return f5O(oEM(A,b)).then(function(f){return f.statusCode===10&&A.config.interactionMode===1&&FOs(A.currentFlow,A.supportedFlows)!==void 0?tEO(A):f})},oEM=function(A,Q){return{flowParams:{serviceId:A.serviceId,
sessionId:A.sessionId,galService:A.galService,galLogger:A.galLogger,interactionMode:A.config.interactionMode,redirectServiceUrl:A.config.redirectServiceUrl,colorScheme:A.config.colorScheme,consentLanguageKeys:Q,dynamicUrlParameters:A.dynamicUrlParameters,showCloseOption:A.config.showCloseOption,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp},currentFlow:A.currentFlow,config:A.config,session:A.JSC$19278_linkingSession,googleScopes:A.googleScopes,callerState:A.callerState}};var iOr=function(A,Q){this.config=A;this.galService=Q.getService();this.JSC$19291_galRepository=Q.JSC$19309_galRepository};
iOr.prototype.getLink=function(A,Q){return rdx(this,A,Q)};
var rdx=function(A,Q,b){return A.JSC$19291_galRepository.getLink({serviceId:Q,scopes:void 0,capabilities:void 0,linkName:b}).then(function(f){return{statusCode:1,link:f}}).catch(function(f){return{statusCode:KOd(f.code),
statusMessage:f.message}})};
iOr.prototype.deleteLink=function(A,Q){return this.JSC$19291_galRepository.deleteLink(A,this.config.accountLinkingEntryPoint,Q).then(function(){return{statusCode:1}}).catch(function(b){return{statusCode:KOd(b.code),
statusMessage:b.message}})};
iOr.prototype.startLinkingSession=function(A){var Q=A.serviceId;var b=A.sessionId;return pON({serviceId:Q,sessionId:b!==void 0?b:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:A.loginHint,callerState:A.callerState,consentLanguageKeys:A.consentLanguageKeys,linkName:A.linkName,dynamicUrlParameters:A.dynamicUrlParameters,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp})};var BN=function(A,Q,b,f,a,T,G){this.apiKey=Q;this.authUser=b;this.oauthToken=f;this.bucket=a;this.locale=T;this.galSdkEventHandler=G;if(f===void 0){if(Q===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new uYO(A)};
BN.prototype.deleteLink=function(A){var Q=A.serviceId;var b=A.sessionId;var f=A.accountLinkingEntryPoint;var a=A.linkName;var T=this,G;return _.B(function(p){var P=(new ZG).setHeader(T.getHeader(b));var U=jBM({serviceId:Q,linkName:a});P=_.Lp(P,2,U);G=_.xU(P,3,f);return p.return(T.makeRequest(T.galServiceClient.deleteLink,G,[1,3],[2,4]))})};
var lWs=function(A,Q){var b=Q.serviceId;var f=Q.sessionId;var a=Q.dynamicUrlParameters;var T=Q.redirectState;var G=Q.consentLanguageKeys;var p=Q.partnerConfigMinReadTimestamp;var P;return _.B(function(U){var L=(new Yi).setHeader(A.getHeader(f,a));L=_.Nl(L,2,b);P=_.Nl(L,4,T);G!==void 0&&_.Nl(P,5,G);p!==void 0&&_.Lp(P,6,p);return U.return(A.makeRequest(A.galServiceClient.JSC$19177_finishOAuth,P,[1,3],[2,4]))})};
BN.prototype.getLink=function(A){var Q=A.serviceId;var b=A.sessionId;var f=A.scopes;var a=A.capabilities;var T=A.consistencyKey;var G=A.linkName;var p=this,P;return _.B(function(U){var L=(new DG).setHeader(p.getHeader(b)),M=jBM({serviceId:Q,scopes:f,capabilities:a,linkName:G});P=_.Lp(L,2,M);T!==void 0&&(L=Drd(),L=_.Nl(L,2,T),_.Lp(P,3,L));return U.return(p.makeRequest(p.galServiceClient.getLink,P,[1,3],[2,4]))})};
var a5x=function(A,Q){var b=Q.serviceId;var f=Q.sessionId;var a=Q.googleScopes;var T=Q.consistencyKey;var G;return _.B(function(p){var P=(new yW).setHeader(A.getHeader(f));P=_.Nl(P,2,b);var U=Array.from(a.values());P=_.Yq(P,3,U,_.Pd);U=Drd();U=_.Nl(U,2,T);G=_.Lp(P,4,U);return p.return(A.makeRequest(A.galServiceClient.JSC$19177_depositGoogleCredential,G,[1,3],[2,4]))})};
BN.prototype.startLinkingSession=function(A){var Q=A.serviceId;var b=A.sessionId;var f=A.scopes;var a=A.capabilities;var T=A.loginHint;var G=A.supportedFlows;var p=A.completionUrl;var P=A.usePingPong;var U=A.twoWayLinking;var L=A.accountLinkingEntryPoint;var M=A.callerState;var l=A.consentLanguageKeys;var J=A.googleScopes;var n=A.dataUsageNoticeConfig;var t=A.linkName;var g=A.dynamicUrlParameters;var e=A.partnerConfigMinReadTimestamp;var x=this,D,w;return _.B(function(u){if(a!==void 0&&f!==void 0)throw Error("Zj");
var y=(new L_N).setHeader(x.getHeader(b,g));D=_.Nl(y,2,Q);t!==void 0&&_.Nl(D,14,t);if(a!==void 0){y=D;var a9=Array.from(a.values());_.Yq(y,5,a9,_.Pd)}else f!==void 0&&(y=D,a9=Array.from(f.values()),_.Yq(y,3,a9,_.Pd));p!==void 0&&_.Nl(D,6,p);P!==void 0&&_.Ri(D,15,P);G!==void 0&&(y=D,a9=Array.from(G.values()),_.Yq(y,4,a9,_.DK));if(U!==void 0){if(U&&(!J||J.size===0))throw Error("dk");_.Ri(D,8,U)}L!==void 0&&_.xU(D,9,L);T!==void 0&&_.Nl(D,13,T);M!==void 0&&(y=D,a9=(new TextEncoder).encode(M),_.Dr(y,12,
_.qx(a9,!1),_.C$()));l!==void 0&&_.Nl(D,16,l);e!==void 0&&_.Lp(D,18,e);if(n!==void 0&&n.size>0||J!==void 0&&J.size>0)w=new UPd,J!==void 0&&J.size>0&&(y=w,a9=Array.from(J.values()),_.Yq(y,1,a9,_.Pd)),n!==void 0&&(n.has(0)&&_.e7X(w,2,_.DK,1,_.Nx),n.has(1)&&_.e7X(w,2,_.DK,2,_.Nx)),_.Lp(D,17,w);return u.return(x.makeRequest(x.galServiceClient.startLinkingSession,D,[1],[2]))})};
BN.prototype.getMetadata=function(){var A=this,Q,b;return _.B(function(f){Q={};A.useFpa?(Q["X-Goog-Api-Key"]=A.apiKey,Q["X-Goog-AuthUser"]=A.authUser!==void 0?A.authUser.toString():"0",(b=_.cuy([]))&&(Q.Authorization=b)):Q.Authorization="Bearer "+A.oauthToken;A.locale&&(Q["accept-language"]=A.locale);return f.return(Q)})};
BN.prototype.makeRequest=function(A,Q,b,f){var a=this,T;return _.B(function(G){if(G.nextAddress==1)return G.yield(a.getMetadata(),2);T=G.yieldResult;Rus(a,b);return G.return(A.bind(a.galServiceClient)(Q,T).finally(function(){Rus(a,f)}))})};
var Rus=function(A,Q){A.galSdkEventHandler!==void 0&&Q.forEach(function(b){A.galSdkEventHandler.onEvent(b)})};
BN.prototype.getHeader=function(A,Q){var b=new z4;A=_.Dr(b,2,_.mj(A),0);A=_.xU(A,5,3);Q=_.Yq(A,8,Q,_.Pd);this.bucket!==void 0&&_.Nl(Q,1,this.bucket);return Q};
var jBM=function(A){var Q=A.serviceId;var b=A.scopes;var f=A.capabilities;A=A.linkName;if(f!==void 0&&b!==void 0)throw Error("Zj");var a=new ybN;Q=_.Nl(a,1,Q);f!==void 0?(b=Array.from(f.values()),_.Yq(Q,5,b,_.Pd)):b!==void 0&&(b=Array.from(b.values()),_.Yq(Q,3,b,_.Pd));A!==void 0&&_.Nl(Q,6,A);return Q};var JHx=function(A){this.galService=new BN(A.alsDomain,A.apiKey,A.authUser,A.oauthToken,A.bucket,A.locale,A.galSdkEventHandler);this.JSC$19309_galRepository=new GNK(this.galService)};
JHx.prototype.getService=function(){return this.galService};var gEN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(gEN,_.fp);var euq=function(A){var Q=new gEN;return _.FH(Q,1,A)};
gEN.prototype.setErrorMessage=function(A){return _.nt(this,2,A)};var huN=[0,_.QH,_.s2,_.QH];var pg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(pg,_.fp);var WQr=[0,[1,2,3],_.Ad,[0,mlN,b7N,-1],_.Ad,[0,Qcn,-1],_.N1X];var vEK=[0,_.$U,1,_.QH,_.s2,-1,1,_.AL9,_.De,_.QH,-1,WQr];var EEd=[0,_.QH,[0,_.AL9,_.De,[0,_.s2]],_.NP,[0,_.QH,-1]];var C5=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(C5,_.fp);var x_t=[0,_.s2,_.QH,-2,_.$U,_.QH,_.$U,_.QH,-2,1,_.NP];var cdO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(cdO,_.fp);var zuO=[0,_.$U];var wks=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(wks,_.fp);var uCl=[0,_.QH,EEd,zuO,x_t,vEK];var wzx=_.Ph(wks,uCl);var Zwn=[0,ZeN];var $Mn=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O($Mn,_.fp);var ydn=[0,[1,3],GbM,_.QH,GbM];var I2=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(I2,_.fp);var YJn=[0,_.QH];var D_N=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(D_N,_.fp);var H4=function(A){return _.vD(A,gEN,2,ki)},$_7=function(A){var Q=new D_N;
return _.Ms(Q,2,ki,A)},ki=[1,
2];var Nhr=[0,ki,_.Ad,YJn,_.Ad,huN,_.m_,ydn,1,_.QH,Zwn];var sBO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(sBO,_.fp);var A1r=function(A){var Q=new sBO;return _.Ms(Q,3,m_M,A)},m_M=[2,
3];var PN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(PN,_.fp);var QHK=function(A,Q){return _.Lp(A,2,Q)},bGt=function(A,Q){return _.Lp(A,8,Q)},f7O=function(A,Q){return _.Lp(A,3,Q)};var a7s=[0,_.QH,Nhr,uCl,_.B$Y,[0,[5,6],[0,_.QH,-2],[0,_.$U,_.QH,_.s2],[0,WQr],[0,_.s2,_.QH,-1,_.GYK,_.QH],_.Ad,[0,[0,_.$U],_.QH,-1],_.Ad,[0,[3,4],_.QH,-1,_.Ad,[0,[0,_.QH,_.NP]],_.Ad,[0,[0,[0,[1,2],_.Ad,[0],_.Ad,[0]]]]]],_.B$Y,-1,[0,m_M,_.QH,_.Ad,YJn,_.Ad,huN,_.m_,ydn,[0,ZeN]]];var TrN=_.Ph(PN,a7s),dY7=_.Xc(a7s);var FpK=function(){_.k$.call(this)};
_.O(FpK,_.k$);FpK.prototype.init=function(){};
new FpK;var GsF=_.sC(["data-"]),BrK=_.sC(["aria-"]),p2x=_.sC(["aria-"]),X4=function(A,Q){this.isLatencyMeasurementExperiment=A===void 0?!1:A;this.enableDialogA11yFix=Q===void 0?!1:Q;this.JSC$19338_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.gqM(_.by.location.href)},ZEr=function(A,Q){A.onConsentPrimitiveShownCallback=Q},P9F=function(A,Q){return A.overriddenIframeLoadTimeout?A.overriddenIframeLoadTimeout:Q!==void 0?Q:5E3},Y4t=function(A){if(A.prewarmPromise!==void 0)return A.prewarmPromise;
A.prewarmPromise=new Promise(function(Q,b){Sh(A,1);X2x(A,S3r(A,!0),UYK(A));A.iframe?A.prewarmChannel||Lpx(A,A.iframe,Q):b(Error("ek"))});
A.prewarmPromise.finally(function(){A.prewarmPromise=void 0});
return A.prewarmPromise};
X4.prototype.showPrimitive=function(){var A=this;if(this.consentPromise!==void 0)return this.consentPromise;var Q=Date.now();MVK(this,Q);this.consentPromise=new Promise(function(b,f){Sh(A,0,Q);var a=A.isDarkTheme();A.isLatencyMeasurementExperiment||A.initialLoadingStrategy===1||A.initialLoadingStrategy===2||(A.loadingBar||(A.loadingBar=k7x(getComputedStyle(document.body).direction==="rtl",a),A.loadingBar.style.position="fixed",A.loadingBar.style.zIndex="15000"),document.body.appendChild(A.loadingBar));
X2x(A,S3r(A),UYK(A));A.iframe?A.channel||l7x(A,A.iframe,b,f):(KpM(A),f(Error("ek")))});
this.consentPromise.finally(function(){A.consentPromise=void 0});
return this.consentPromise};
var l7x=function(A,Q,b,f){var a,T;_.B(function(G){switch(G.nextAddress){case 1:Sh(A,3);a=!1;setTimeout(function(){if(!a){KpM(A);iGx(A);J1d(A);var p=euq(7).setErrorMessage("Timeout connecting to iframe");b(bGt(QHK(new PN,$_7(p)),A1r(p)))}},P9F(A,VVK(A)));
if(!A.prewarmPromise){G.jumpTo(2);break}_.ML(G,3);return G.yield(A.prewarmPromise,5);case 5:_.Z1(G,2);break;case 3:_.Vw(G),T=euq(4).setErrorMessage("Error while prewarming."),b(bGt(QHK(new PN,$_7(T)),A1r(T)));case 2:A.prewarmChannel&&A.prewarmChannel.send(dY7(f7O(new PN,A.consentPrimitiveRequest))),A.channel=_.aB({destination:A.JSC$19338_win,iframe:Q,origin:OGO(A),channelName:"cpw",onEstablished:function(){a=!0;KpM(A);A.isLatencyMeasurementExperiment||(A.JSC$19338_previousBodyOverflow=document.body.style.overflow,
A.JSC$19338_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,A.JSC$19338_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",A.enableDialogA11yFix&&window.addEventListener("blur",A.focusChangeListener));var p=A.iframe;p.style.bottom="0";p.style.position="fixed";p.style.right="0";p.style.border="none";p.style.left="0";p.style.top=
"0";p.style.zIndex="5000";p.style.pointerEvents="";p.style.visibility="";A.initialLoadingStrategy===2||A.initialLoadingStrategy===3?Sh(A,4):Sh(A,6);var P;(P=A.onConsentPrimitiveShownCallback)==null||P.call(A)},
onMessage:function(p){p=TrN(p.data);switch(_.e1(p,1)){case 1:iGx(A);var P=I5q(_.dO(p,_.vi,7));P&&(A.initialLoadingStrategy!==2&&A.initialLoadingStrategy!==3||Sh(A,6,P),Sh(A,5,P));if(P=I5q(_.dO(p,_.vi,6)))Sh(A,7,P),Sh(A,8);var U,L;((U=_.dO(p,D_N,2))==null?void 0:_.Ce(U,ki))!==0&&((L=_.dO(p,sBO,8))==null?void 0:_.Ce(L,m_M))!==0||f(Error("fk"));b(p);break;case 2:J1d(A)}}}),_.Oi(G)}})},Lpx=function(A,Q,b){A.prewarmChannel=_.aB({destination:A.JSC$19338_win,
iframe:Q,origin:OGO(A),channelName:"pwcp",onEstablished:function(){Sh(A,2);b()}})},OGO=function(A){var Q=_.IT(A.src).toString();
return Q&&Q.indexOf("://")<0&&Q.indexOf("//")!==0?A.origin:_.gqM(Q)},S3r=function(A,Q){Q=Q===void 0?!1:Q;
var b,f=new Map([["origin",A.origin],["hl",(b=npq(A))!=null?b:null]]);Q&&f.set("pw","1");Q=_.F([["cpr",A.consentPrimitiveRequest.serialize()]]);for(b=Q.next();!b.done;b=Q.next()){var a=_.F(b.value);b=a.next().value;a=a.next().value;f.set(b,a)}A.isDarkTheme()&&f.set("color_scheme","dark");return _.Bl(A.src,f)},KpM=function(A){A.isLatencyMeasurementExperiment||A.loadingBar&&document.body.removeChild(A.loadingBar)};
X4.prototype.getSrc=function(){var A=_.sp(this.origin),Q;var b=(Q=_.dO(this.consentPrimitiveRequest,cdO,3))==null?void 0:_.Tz(Q,1);Q="consent.google.com";b=b?"/u/"+encodeURIComponent(b.toString()):"";(A==null?0:A.endsWith("youtube.com"))?Q="consent.youtube.com":(A=A==null?void 0:A.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(Q="consent.google."+((A[1]?"co.":"")+encodeURIComponent(A[2])));return _.k8("https://"+Q+"/signedin"+b+"/landing")};
var X2x=function(A,Q,b){A.iframe||(A.iframe=document.createElement("iframe"),A.iframe.style.width="100%",A.iframe.style.height="100%",b!==112496729&&(A.iframe.style.colorScheme="auto"),A.isLatencyMeasurementExperiment&&(A.iframe.style.display="none"),_.Zi(A.iframe,Q),A.iframe.setAttribute("jsname","C5o1O"),ksN(A.iframe),document.body.appendChild(A.iframe))},ksN=function(A){A.style.bottom="-200vh";
A.style.position="fixed";A.style.right="-200vw";A.style.border="";A.style.left="";A.style.top="";A.style.zIndex="";A.style.pointerEvents="none";A.style.visibility="hidden"},iGx=function(A){A.iframe&&(A.isLatencyMeasurementExperiment||(A.JSC$19338_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=A.JSC$19338_previousHtmlOverscroll),A.JSC$19338_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=A.JSC$19338_previousBodyOverscroll),A.JSC$19338_previousBodyOverflow!==
void 0&&(document.body.style.overflow=A.JSC$19338_previousBodyOverflow),A.enableDialogA11yFix&&I7q(A,!1)),ksN(A.iframe))};
X4.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(I7q(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var I7q=function(A,Q){var b,f,a=(b=A.iframe)==null?void 0:(f=b.parentElement)==null?void 0:f.children;if(a)for(b=0;b<a.length;b++)f=a[b],f!==A.iframe&&(Q?(f.hasAttribute("aria-hidden")&&_.Qw([_.TH(GsF)],f,"data-old-aria-hidden",f.getAttribute("aria-hidden")),_.Qw([_.TH(BrK)],f,"aria-hidden","true")):(f.removeAttribute("aria-hidden"),f.hasAttribute("data-old-aria-hidden")&&(_.Qw([_.TH(p2x)],f,"aria-hidden",f.getAttribute("data-old-aria-hidden")),f.removeAttribute("data-old-aria-hidden"))))},Sh=function(A,
Q,b){var f;
(f=A.latencyCallback)==null||f.call(A,{latencyType:Q,timestampEpochMillis:b!=null?b:Date.now()})};var HGs=function(A,Q,b){X4.call(this,Q,b===void 0?!1:b);this.consentPrimitiveRequest=A;A=npq(this);_.LLq(A);this.src=this.getSrc();var f;this.initialLoadingStrategy=(f=_.dO(this.consentPrimitiveRequest,C5,4))==null?void 0:_.e1(f,4)},C9O;
_.O(HGs,X4);var uSs=function(A){var Q=_.K("enable_primitive_dialog_aria_hide_siblings");A={request:A,enableDialogA11yFix:Q===void 0?!1:Q};C9O||(C9O=new HGs(A.request,A.isLatencyMeasurementExperiment||_.e1(A.request,1)===2,A.enableDialogA11yFix));return C9O},npq=function(A){var Q;
return(Q=_.dO(A.consentPrimitiveRequest,C5,4))==null?void 0:_.gA(Q,1)},MVK=function(A,Q){if(!_.ne(A.consentPrimitiveRequest,pg,5)){var b=A.consentPrimitiveRequest,f=new pg;
_.Lp(b,5,f)}var a;if((a=_.dO(A.consentPrimitiveRequest,pg,5))==null||_.o1Y(_.O2(a,8))==null){var T;(T=_.dO(A.consentPrimitiveRequest,pg,5))!=null&&_.kk(T,8,Q)}},UYK=function(A){var Q;
return(Q=_.dO(A.consentPrimitiveRequest,pg,5))==null?void 0:_.Tz(Q,1)};
HGs.prototype.isDarkTheme=function(){var A;return((A=_.dO(this.consentPrimitiveRequest,C5,4))==null?void 0:_.e1(A,2))===2};
var VVK=function(A){var Q;return((Q=_.dO(A.consentPrimitiveRequest,C5,4))==null?void 0:_.Tz(Q,5))||void 0},J1d=function(A){A.channel=void 0;
A.prewarmChannel=void 0;A.iframe&&(document.body.contains(A.iframe)&&document.body.removeChild(A.iframe),A.iframe=void 0);C9O=void 0},DMx=function(A){return X4.prototype.showPrimitive.call(A).then(function(Q){return _.dO(Q,D_N,2)})};for(var Uu={},q3d=(Uu[64]="ma",Uu[73]="ogb",Uu[89]="cr",Uu[21]="test",Uu[0]="unkn",Uu[137]="con",Uu[155]="hl",Uu[78]="yt",Uu[171]="lp",Uu[172]="ap",Uu[177]="amo",Uu[178]="pqe",Uu[74]="gg",Uu[1]="gm",Uu[140]="am",Uu[193]="sc",Uu),opF=_.F(Object.keys(q3d)),tV7=opF.next();!tV7.done;tV7=opF.next());var r1x=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(r1x,_.fp);var jHM=[0,[2,3,4],_.QH,Abl,GbM,_.N1X];var RVl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(RVl,_.fp);var gpN=_.Ph(RVl,[0,FUx,_.s2,_.QH,_.s2,_.QH,jHM]);var eVF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(eVF,_.fp);eVF.prototype.getCommand=function(){return _.e1(this,1)};
var hVt=function(){var A=new eVF;return _.xU(A,1,0)};var WpO=_.Xc([0,FUx,_.s2,[0,_.QH,_.s2,-1]]);var vpx=new _.i9("s"),Ep7=new _.i9("t"),xYn=new _.i9("u"),c1t=new _.i9("v"),zVN=function(A,Q,b){_.J1.call(this,vpx);this.mediaKey=A;this.photoUrl=Q;this.photoSource=b};
_.O(zVN,_.J1);var w2q=function(){_.J1.call(this,Ep7)};
_.O(w2q,_.J1);var utq=function(A){A=A===void 0?!1:A;_.J1.call(this,xYn);this.isError=A};
_.O(utq,_.J1);var ZGd=function(){_.J1.call(this,c1t)};
_.O(ZGd,_.J1);var y1K=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,NrK=function(A){if(typeof A=="string"){if(A.charAt(0)==".")return Y3t(A.substr(1));if(A.charAt(0)=="["){var Q=y1K.exec(A);A=A.indexOf("=")==-1?void 0:Q[3];return DYx(Q[1],A)}return $Yx(A)}return A},Y3t=function(A){return function(Q){return Q.getAttribute&&_.Z7(Q,A)}},DYx=function(A,Q){return function(b){return Q!==void 0?b.getAttribute&&b.getAttribute(A)==Q:b.hasAttribute&&b.hasAttribute(A)}},$Yx=function(A){A=A.toUpperCase();
return function(Q){return(Q=Q.tagName)&&Q.toUpperCase()==A}},sHK=function(){return!0};var Lg=function(A,Q){this.JSC$19366_key_=A;this.JSC$19366_value_=Q},MU=function(A){throw Error("gk`"+A.JSC$19366_key_);
},mYN=function(A,Q){return new TypeError("hk`"+Q+"`"+A.JSC$19366_key_+"`"+A.JSC$19366_value_+"`"+typeof A.JSC$19366_value_)};
Lg.prototype.string=function(A){return arguments.length==0?APq(this):Qjd(this,A)};
var Qjd=function(A,Q){var b;return(b=boK(A))!=null?b:Q},APq=function(A){var Q=boK(A);
Q===null&&MU(A);return Q},boK=function(A){var Q=A.JSC$19366_value_;
if(Q==null)return null;if(typeof Q==="string")return Q;throw mYN(A,"string");};
Lg.prototype.bool=function(A){if(arguments.length==0){var Q=this.optionalBool();Q===null&&MU(this)}else{var b;Q=(b=this.optionalBool())!=null?b:A}return Q};
Lg.prototype.optionalBool=function(){var A=this.JSC$19366_value_;if(A==null)return null;if(typeof A==="boolean")return A;if(typeof A==="string"){A=A.toLowerCase();if(A==="true"||A==="1")return!0;if(A==="false"||A==="0")return!1}throw mYN(this,"boolean");};
Lg.prototype.number=function(A){if(arguments.length==0){var Q=fuq(this);Q===null&&MU(this)}else Q=auF(this,A);return Q};
var auF=function(A,Q){var b;return(b=fuq(A))!=null?b:Q},fuq=function(A){var Q=A.JSC$19366_value_;
if(Q==null)return null;if(typeof Q==="number")return Q;if(typeof Q==="string"){var b=Number(Q);if(!isNaN(b)&&(b!==0||Q.trim().length!==0))return b}throw mYN(A,"number");};
Lg.prototype.toString=function(){return APq(this)};
Lg.prototype.enum=function(A,Q){var b=!0,f=void 0,a;for(a in A){var T=A[a];b&&(b=!1,f=typeof T==="number"?auF(this,Q):Qjd(this,Q));if(T==f)return f}JSON.stringify(A);return f};
Lg.prototype.array=function(A){if(arguments.length==0){var Q=Tdx(this);Q===null&&MU(this);return Q}Q=Tdx(this);return Q==null?A:Q};
var Tdx=function(A){var Q=A.JSC$19366_value_;if(Q==null)return null;Array.isArray(Q)||(typeof Q!=="string"?Q=[Q]:(Q=Q.trim(),Q=Q==""?[]:Q.split(",").map(function(b){return b.trim()})));
return dAK(A,Q)},dAK=function(A,Q){var b=A.JSC$19366_key_+"[";
return Array.from(Q,function(f,a){return new Lg(b+a+"]",f)})};
Lg.prototype.object=function(A){var Q=this.JSC$19366_value_;if(Q==null)return A===void 0&&MU(this),A;if(typeof Q==="object"&&Q.constructor===Object){A={};var b=this.JSC$19366_key_+".",f;for(f in Q)A[f]=new Lg(b+f,Q[f]);return A}throw mYN(this,"object");};var l2=function(A){this.list_=FIr(A)},FIr=function(A){if(A instanceof l2)A=A.list_;
else if(A[0]instanceof l2){for(var Q=new Set,b=0;b<A.length;b++)for(var f=_.F(A[b].list_),a=f.next();!a.done;a=f.next())Q.add(a.value);A=Q}return[].concat(_.ri(A))};
_.d=l2.prototype;_.d.each=function(A,Q,b){((b===void 0?0:b)?Hkt:_.ZR)(this.list_,A,Q);return this};
_.d.size=function(){return this.list_.length};
_.d.isEmpty=function(){return this.list_.length===0};
_.d.get=function(A){return this.list_[A]||null};
_.d.el=function(){return this.list_[0]||null};
_.d.map=function(A,Q){return _.Rk(this.list_,A,Q)};
_.d.equals=function(A){return this===A||_.DU(this.list_,A.list_)};
_.d.first=function(){return this.list_.length==0?null:new Kg(this.list_[0])};
_.d.last=function(){return this.list_.length==0?null:new Kg(this.list_[this.list_.length-1])};
_.d.find=function(A){var Q=[];this.each(function(b){b=b.querySelectorAll(String(A));for(var f=0;f<b.length;f++)Q.push(b[f])});
return new l2(Q)};
_.d.parent=function(){var A=[];this.each(function(Q){(Q=Q.parentElement||null)&&!_.ve(A,Q)&&A.push(Q)});
return new l2(A)};
_.d.children=function(){var A=[];this.each(function(Q){Q=_.Wk(Q);for(var b=0;b<Q.length;b++)A.push(Q[b])});
return new l2(A)};
_.d.filter=function(A){A=_.PD(this.list_,NrK(A));return new l2(A)};
_.d.closest=function(A){var Q=[],b=NrK(A),f=function(a){return _.mk(a)&&b(a)};
this.each(function(a){(a=_.vl(a,f,!0))&&!_.ve(Q,a)&&Q.push(a)});
return new l2(Q)};
_.d.next=function(A){return GfF(this,_.sy9,A)};
_.d.prev=function(A){return GfF(this,ByM,A)};
var GfF=function(A,Q,b){var f=[];var a=b?NrK(b):sHK;A.each(function(T){(T=Q(T))&&a(T)&&f.push(T)});
return new l2(f)};
l2.prototype.setClass=function(A){return this.each(function(Q){_.u9(Q,A)})};
var Bds=function(A,Q){return A.each(function(b){_.TZ(b,Q)})},pXx=function(A,Q){return A.each(function(b){_.fE(b,Q)})};
l2.prototype.toggleClass=function(A,Q){return Q===!0?Bds(this,A):Q===!1?pXx(this,A):this.each(function(b){_.Z7(b,A)?_.fE(b,A):_.TZ(b,A)})};
l2.prototype.setText=function(A){return this.each(function(Q){_.vk(Q,A)})};
var P1O=function(A){A.each(function(Q){Q.removeAttribute("aria-hidden")})};
l2.prototype.getStyle=function(A){if(this.list_.length>0){var Q=this.list_[0],b=Q.style[_.Ov(A)];return typeof b!=="undefined"?b:Q.style[_.PO$(Q,A)]||""}};
l2.prototype.getData=function(A){if(this.list_.length===0)return new Lg(A,null);var Q=rjx(this.list_[0],A);return new Lg(A,Q)};
l2.prototype.focus=function(A){try{A?this.el().focus(A):this.el().focus()}catch(Q){}return this};
l2.prototype.click=function(){var A=_.h3(this.el());if(A.createEvent){var Q=A.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,A.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(Q)}else A=A.createEventObject(),A.clientX=0,A.clientY=0,A.screenX=0,A.screenY=0,A.altKey=!1,A.ctrlKey=!1,A.shiftKey=!1,A.button=0,this.el().fireEvent("onclick",A)};
var i2=function(A,Q,b,f){function a(p,P,U){var L=P;P&&P.parentNode&&(L=P.cloneNode(!0));p(L,U)}
f=f===void 0?!1:f;if(A.list_.length==1){var T=A.list_[0],G=function(p){return Q(p,T)};
b instanceof l2?b.each(G,void 0,f):Array.isArray(b)?(f?Hkt:_.ZR)(b,G):G(b);return A}return A.each(function(p){b instanceof l2?b.each(function(P){a(Q,P,p)}):Array.isArray(b)?_.ZR(b,function(P){a(Q,P,p)}):a(Q,b,p)})};
_.d=l2.prototype;_.d.append=function(A){return i2(this,function(Q,b){Q&&b.appendChild(Q)},A)};
_.d.appendTo=function(A){(new l2([A])).append(this);return this};
_.d.remove=function(){return i2(this,function(A,Q){_.im(Q)},null)};
_.d.empty=function(){return i2(this,function(A,Q){_.gh(Q)},null)};
_.d.after=function(A,Q){return i2(this,function(b,f){b&&_.hd(b,f)},A,!(Q===void 0||Q))};
_.d.before=function(A){return i2(this,function(Q,b){Q&&_.eE(Q,b)},A)};
_.d.replaceWith=function(A){return i2(this,function(Q,b){Q&&_.Dxj(Q,b)},A)};
_.d.toggle=function(A){return this.each(function(Q){_.um(Q,A)})};
_.d.show=function(){return this.toggle(!0)};
_.d.hide=function(){return this.toggle(!1)};
_.d.trigger=function(A,Q,b,f){return XXK(this,A,Q,b,f)};
var XXK=function(A,Q,b,f,a){return A.each(function(T){_.i4A(_.h3(T)).triggerWizEventInternal(T,Q,b,f,a)})},Kg=function(A,Q){A instanceof l2&&(Q=A.list_,A=null);
this.list_=FIr(A!=null?[A]:Q)};
_.BD(Kg,l2);_.d=Kg.prototype;_.d.children=function(){return new l2(Array.prototype.slice.call(_.Wk(this.list_[0])))};
_.d.each=function(A,Q){A.call(Q,this.list_[0],0);return this};
_.d.size=function(){return 1};
_.d.el=function(){return this.list_[0]};
_.d.first=function(){return this};var Ji=function(A,Q){Q=Q===void 0?window:Q;this.hostId=A;this.JSC$19377_win=Q;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$19377_previousHtmlOverscroll=this.JSC$19377_previousBodyOverscroll=this.JSC$19377_previousBodyOverflow="";this.eventTarget=new _.IH;this.JSC$19377_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
LIt=function(A){var Q=Sfx(Sfx(Sfx(new UAK(78),"po"),"hppp"),"hhc");
Q.authUser=Number(_.vG("SESSION_INDEX","0"));Q.colorScheme=A;return Q};
Ji.prototype.getOrigin=function(){return this.origin?this.origin:_.Tf(_.aj(_.fo(new _.m7,this.JSC$19377_win.location.protocol),this.JSC$19377_win.location.hostname),this.JSC$19377_win.location.port).toString()};
Ji.prototype.getTargetOrigin=function(){return _.Tf(_.aj(_.fo(new _.m7,this.scheme),this.domain),this.port)};
Ji.prototype.preloadIframe=function(A){var Q=this;if(this.iframeLoadPromise===void 0){var b=document.createElement("iframe");this.iframe=b;jXt(b,A);this.iframeLoadPromise=new Promise(function(f,a){var T=!1,G=function(p){p.stopPropagation();b.removeEventListener("error",G);b.removeEventListener("securitypolicyviolation",G);a(Error("ik",{cause:p}))};
b.addEventListener("error",G);b.addEventListener("securitypolicyviolation",G);setTimeout(function(){T||a(Error("jk"))},3E4);
Mpt(Q,b,function(){T=!0;b.removeEventListener("error",G);b.removeEventListener("securitypolicyviolation",G);f()})});
lur(this);A=this.getTargetOrigin().toString();b.setAttribute("allow","camera "+A+"; display-capture "+A);this.parentElement.appendChild(b)}return this.iframeLoadPromise};
var JP7=function(A,Q){var b,f;return _.B(function(a){if(a.nextAddress==1)return b=k7x(getComputedStyle(A.parentElement).direction==="rtl"),A.parentElement.appendChild(b),document.activeElement instanceof HTMLElement&&(A.elementToFocusAfterClose=document.activeElement),_.ML(a,2),a.yield(A.preloadIframe(Q),4);if(a.nextAddress!=2){A.parentElement.removeChild(b);A.JSC$19377_previousBodyOverflow=A.parentElement.style.overflow;A.JSC$19377_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
A.JSC$19377_previousBodyOverscroll=A.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";A.parentElement.style.overscrollBehavior="contain";A.parentElement.style.overflow="hidden";var T=A.iframe;T.style.bottom="0";T.style.border="none";T.style.height="100%";T.style.left="0";T.style.position=A.iframePosition;T.style.right="0";T.style.top="0";T.style.width="100%";T.style.zIndex="2202";T.setAttribute("aria-hidden","false");T.setAttribute("aria-modal","true");
A.opened=!0;KIr(A);return _.Z1(a,0)}f=_.Vw(a);A.parentElement.removeChild(b);oLt(A.isDarkTheme());io7(A,!1);throw Error("kk",{cause:f});})},io7=function(A,Q){Q=Q===void 0?!0:Q;
A.iframe!==void 0&&(Vpt(A),document.documentElement.style.overscrollBehavior=A.JSC$19377_previousHtmlOverscroll,A.parentElement.style.overscrollBehavior=A.JSC$19377_previousBodyOverscroll,A.parentElement.style.overflow=A.JSC$19377_previousBodyOverflow,A.elementToFocusAfterClose!==void 0&&(A.elementToFocusAfterClose.focus(),A.elementToFocusAfterClose=void 0),Q?lur(A):(A.parentElement.removeChild(A.iframe),A.iframe=void 0,A.iframeLoadPromise=void 0,A.mainChannel=void 0),A.opened=!1)},Vpt=function(A){A.backgroundElementsAriaHiddenIsNull&&
(P1O(A.backgroundElementsAriaHiddenIsNull),A.backgroundElementsAriaHiddenIsNull=void 0);
A.backgroundElementsAriaHiddenIsFalse&&(A.backgroundElementsAriaHiddenIsFalse.each(function(Q){Q.setAttribute("aria-hidden","false")}),A.backgroundElementsAriaHiddenIsFalse=void 0);
A.backgroundElementsWithoutInert&&(A.backgroundElementsWithoutInert.each(function(Q){Q.removeAttribute("inert")}),A.backgroundElementsWithoutInert=void 0)},KIr=function(A){A.backgroundElementsAriaHiddenIsNull=(new Kg(A.iframe.parentElement)).children().filter(function(Q){return Q.getAttribute("aria-hidden")===null&&Q!==A.iframe});
A.backgroundElementsAriaHiddenIsNull.each(function(Q){Q.setAttribute("aria-hidden","true")});
A.backgroundElementsAriaHiddenIsFalse=(new Kg(A.iframe.parentElement)).children().filter(function(Q){return Q.getAttribute("aria-hidden")==="false"&&Q!==A.iframe});
A.backgroundElementsAriaHiddenIsFalse.each(function(Q){Q.setAttribute("aria-hidden","true")});
A.backgroundElementsWithoutInert=(new Kg(A.iframe.parentElement)).children().filter(function(Q){return!Q.hasAttribute("inert")&&Q!==A.iframe});
A.backgroundElementsWithoutInert.each(function(Q){Q.setAttribute("inert","true")})},lur=function(A){A=A.iframe;
A.style.bottom="-1000px";A.style.position="fixed";A.style.right="-1000px";A.style.border="";A.style.height="";A.style.left="";A.style.top="";A.style.width="";A.style.zIndex="";A.setAttribute("aria-hidden","true");A.setAttribute("aria-modal","false")};
Ji.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var UAK=function(A,Q){Ji.call(this,q3d[A],Q);this.options=[];this.style=""};
_.O(UAK,Ji);var Oot=function(A){A.style="youtube";return A},nHO=function(A,Q){A.eventTarget.listen(xYn,Q);
return A},kfN=function(A,Q){A.eventTarget.listen(vpx,Q);
return A},Sfx=function(A,Q){A.options.push(Q);
return A},Iut=function(A){var Q=[A.getOrigin()];
A.ancestorOrigins&&Q.push.apply(Q,_.ri(A.ancestorOrigins));var b=new _.m7(A.JSC$19377_win.location.href),f=A.startUrl?A.startUrl:A.options.includes("po")?"profile-picture/art":"profile-picture";Q=qw(_.dd(A.getTargetOrigin(),f),"origin",Q);A.startUrl&&_.wv(Q,"startPath",A.startUrl);A.authUser>0&&_.wv(Q,"authuser",A.authUser);A.pageId!==void 0&&_.wv(Q,"pageId",A.pageId);_.wv(Q,"hostId",A.hostId);A.jsMode!==void 0&&_.wv(Q,"jsmode",A.jsMode);A.rectangleRatio!==void 0&&_.wv(Q,"rectangleRatio",A.rectangleRatio);
A.options.length>0&&_.wv(Q,"opts",A.options.join(","));try{for(var a=_.F(["utm_source","utm_medium","utm_campaign","utm_content"]),T=a.next();!T.done;T=a.next()){var G=T.value;_.zz(b,G)&&_.wv(Q,G,_.zz(b,G))}var p,P=(p=A.hl)!=null?p:_.zz(b,"hl");P!==void 0&&_.wv(Q,"hl",P)}catch(U){if(!(U instanceof URIError))throw U;}A.colorScheme&&_.wv(Q,"theme",A.colorScheme);A.style&&_.wv(Q,"style",A.style);return Q},Hol=function(A,Q){A.mainChannel=_.aB({destination:A.JSC$19377_win,
iframe:Q,origin:A.getTargetOrigin().toString(),channelName:"ow",onMessage:function(b){b=gpN(b.data);if(Q===A.iframe)switch(_.e1(b,1)){case 1:A.eventTarget.dispatchEvent(new utq);io7(A);break;case 2:A.eventTarget.dispatchEvent(new zVN(_.gA(b,4),_.gA(b,2),_.e1(b,5),_.dO(b,r1x,6)));break;case 0:var f;A.eventTarget.dispatchEvent(new w2q(_.gA(b,2),(f=_.e1(b,3))!=null?f:0));break;case 3:A.eventTarget.dispatchEvent(new utq(!0));io7(A,!1);break;case 4:A.eventTarget.dispatchEvent(new ZGd)}}})},Mpt=function(A,
Q,b){_.aB({destination:A.JSC$19377_win,
iframe:Q,origin:_.Tf(_.aj(_.fo(new _.m7,A.scheme),A.domain),A.port).toString(),channelName:"owi",onMessage:function(f){Q===A.iframe&&(b!==void 0&&b(),Hol(A,Q),A.opened&&A.mainChannel.send(WpO(hVt())),f.reply(),Mpt(A,Q))}})};
UAK.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Ji.prototype.preloadIframe.call(this,Iut(this).toString()):this.iframeLoadPromise};
UAK.prototype.openPicker=function(A){var Q=this;return _.B(function(b){if(b.nextAddress==1)return Q.startUrl=A?A:Q.options.includes("po")?"profile-picture/art":"profile-picture",b.yield(JP7(Q,Iut(Q).toString()),2);if(Q.mainChannel){var f=Q.mainChannel,a=f.send;var T=hVt();T=_.nt(T,2,Q.startUrl);a.call(f,WpO(T))}_.Oi(b)})};var C1d=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(C1d,_.fp);_.d=C1d.prototype;_.d.getSize=function(){return ej(this,1)};
_.d.setSize=function(A){return _.E2(this,1,A)};
_.d.getWidth=function(){return ej(this,12)};
_.d.getHeight=function(){return ej(this,13)};
_.d.setCenterCrop=function(A){return _.Bo(this,20,A)};
_.d.getHtml=function(){return _.rA(this,4)};
_.d.getToken=function(){return _.Mu(this,24)};
_.d.setToken=function(A){return _.nt(this,24,A)};
_.d.getBackgroundColor=function(){return ej(this,87)};
_.d.hasBackgroundColor=function(){return _.AM(_.O2(this,87))!=null};
_.d.getStoryboardLevel=function(){return ej(this,109)};var Ve=function(A){this.JSC$19385_value_=void 0;this.childNodes_={};if(A){var Q=_.xz9(A);A=_.b1(A);for(var b=0;b<Q.length;b++)this.set(Q[b],A[b])}};
Ve.prototype.set=function(A,Q){qfl(this,A,Q,!1)};
Ve.prototype.add=function(A,Q){qfl(this,A,Q,!0)};
var qfl=function(A,Q,b,f){for(var a=0;a<Q.length;a++){var T=Q.charAt(a);A.childNodes_[T]||(A.childNodes_[T]=new Ve);A=A.childNodes_[T]}if(f&&A.JSC$19385_value_!==void 0)throw Error("lk`"+Q);A.JSC$19385_value_=b},oHd=function(A,Q){for(var b=0;b<Q.length;b++)if(A=A.childNodes_[Q.charAt(b)],!A)return;
return A};
Ve.prototype.get=function(A){return(A=oHd(this,A))?A.JSC$19385_value_:void 0};
Ve.prototype.getValues=function(){var A=[];tpn(this,A);return A};
var tpn=function(A,Q){A.JSC$19385_value_!==void 0&&Q.push(A.JSC$19385_value_);for(var b in A.childNodes_)tpn(A.childNodes_[b],Q)};
Ve.prototype.getKeys=function(A){var Q=[];if(A){for(var b=this,f=0;f<A.length;f++){var a=A.charAt(f);if(!b.childNodes_[a])return[];b=b.childNodes_[a]}rPK(b,A,Q)}else rPK(this,"",Q);return Q};
var rPK=function(A,Q,b){A.JSC$19385_value_!==void 0&&b.push(Q);for(var f in A.childNodes_)rPK(A.childNodes_[f],Q+f,b)};
_.d=Ve.prototype;_.d.containsKey=function(A){return this.get(A)!==void 0};
_.d.containsValue=function(A){if(this.JSC$19385_value_===A)return!0;for(var Q in this.childNodes_)if(this.childNodes_[Q].containsValue(A))return!0;return!1};
_.d.clear=function(){this.childNodes_={};this.JSC$19385_value_=void 0};
_.d.remove=function(A){for(var Q=this,b=[],f=0;f<A.length;f++){var a=A.charAt(f);if(!Q.childNodes_[a])throw Error("mk`"+A);b.push([Q,a]);Q=Q.childNodes_[a]}A=Q.JSC$19385_value_;for(delete Q.JSC$19385_value_;b.length>0;)if(f=b.pop(),Q=f[0],f=f[1],Q.childNodes_[f].isEmpty())delete Q.childNodes_[f];else break;return A};
_.d.clone=function(){return new Ve(this)};
_.d.getCount=function(){return SCF(this.getValues())};
_.d.isEmpty=function(){return this.JSC$19385_value_===void 0&&_.j2.isEmpty(this.childNodes_)};var WO7=function(){if(!jjO){var A=jjO=new Ve,Q;for(Q in R9s)A.add(Q,R9s[Q])}},jjO,Ou=function(A,Q){this.types=A;
this.setters=Q},R9s={a:new Ou([3,
0],[function(A,Q){_.Bo(A,21,Q)},
function(A,Q){_.E2(A,56,Q)}]),
al:new Ou([3],[function(A,Q){_.Bo(A,74,Q)}]),
b:new Ou([3,0],[function(A,Q){_.Bo(A,23,Q)},
function(A,Q){_.E2(A,38,Q)}]),
ba:new Ou([0],[function(A,Q){_.E2(A,85,Q)}]),
bc:new Ou([0],[function(A,Q){_.E2(A,87,Q)}]),
br:new Ou([0],[function(A,Q){_.E2(A,86,Q)}]),
c:new Ou([3,0],[function(A,Q){_.Bo(A,2,Q)},
function(A,Q){_.E2(A,39,Q)}]),
cc:new Ou([3],[function(A,Q){_.Bo(A,51,Q)}]),
ci:new Ou([3],[function(A,Q){_.Bo(A,32,Q)}]),
ckm:new Ou([3],[function(A,Q){_.Bo(A,104,Q)}]),
cp:new Ou([0],[function(A,Q){_.E2(A,92,Q)}]),
cr:new Ou([3],[function(A,Q){_.Bo(A,108,Q)}]),
cv:new Ou([0],[function(A,Q){_.E2(A,94,Q)}]),
d:new Ou([3],[function(A,Q){_.Bo(A,3,Q)}]),
dc:new Ou([5],[function(A,Q){_.nt(A,99,Q)}]),
df:new Ou([3],[function(A,Q){_.Bo(A,80,Q)}]),
dv:new Ou([3],[function(A,Q){_.Bo(A,90,Q)}]),
e:new Ou([0],[function(A,Q){_.E2(A,15,Q)}]),
em:new Ou([0],[function(A,Q){_.E2(A,107,Q)}]),
f:new Ou([4],[function(A,Q){_.nt(A,16,Q)}]),
fg:new Ou([3],[function(A,Q){_.Bo(A,34,Q)}]),
fh:new Ou([3],[function(A,Q){_.Bo(A,30,Q)}]),
fm:new Ou([3],[function(A,Q){_.Bo(A,84,Q)}]),
fo:new Ou([2],[function(A,Q){_.Gp(A,79,_.cM(Q))}]),
ft:new Ou([3],[function(A,Q){_.Bo(A,50,Q)}]),
fv:new Ou([3],[function(A,Q){_.Bo(A,31,Q)}]),
g:new Ou([3],[function(A,Q){_.Bo(A,14,Q)}]),
gce:new Ou([4],[function(A,Q){_.nt(A,112,Q)}]),
gd:new Ou([3],[function(A,Q){_.Bo(A,83,Q)}]),
gm:new Ou([3],[function(A,Q){_.Bo(A,105,Q)}]),
h:new Ou([3,0],[function(A,Q){_.Bo(A,4,Q)},
function(A,Q){_.E2(A,13,Q)}]),
i:new Ou([3],[function(A,Q){_.Bo(A,22,Q)}]),
ic:new Ou([0],[function(A,Q){_.E2(A,71,Q)}]),
id:new Ou([3],[function(A,Q){_.Bo(A,70,Q)}]),
il:new Ou([3],[function(A,Q){_.Bo(A,96,Q)}]),
ip:new Ou([3],[function(A,Q){_.Bo(A,54,Q)}]),
iv:new Ou([0],[function(A,Q){_.kk(A,75,Q)}]),
j:new Ou([1],[function(A,Q){Q=Q==null?Q:owx(Q);_.Gp(A,29,Q)}]),
k:new Ou([3,0],[function(A,Q){_.Bo(A,17,Q)},
function(A,Q){_.E2(A,42,Q)}]),
l:new Ou([0],[function(A,Q){_.E2(A,44,Q)}]),
lf:new Ou([3],[function(A,Q){_.Bo(A,65,Q)}]),
lo:new Ou([3],[function(A,Q){_.Bo(A,97,Q)}]),
m:new Ou([0],[function(A,Q){_.E2(A,63,Q)}]),
md:new Ou([3],[function(A,Q){_.Bo(A,91,Q)}]),
mm:new Ou([4],[function(A,Q){_.nt(A,81,Q)}]),
mo:new Ou([3],[function(A,Q){_.Bo(A,73,Q)}]),
mp:new Ou([0],[function(A,Q){_.E2(A,115,Q)}]),
mv:new Ou([3],[function(A,Q){_.Bo(A,66,Q)}]),
n:new Ou([3],[function(A,Q){A.setCenterCrop(Q)}]),
nc:new Ou([3],[function(A,Q){_.Bo(A,55,Q)}]),
nd:new Ou([3],[function(A,Q){_.Bo(A,53,Q)}]),
ng:new Ou([3],[function(A,Q){_.Bo(A,95,Q)}]),
ngm:new Ou([3],[function(A,Q){_.Bo(A,106,Q)}]),
no:new Ou([3],[function(A,Q){_.Bo(A,37,Q)}]),
ns:new Ou([3],[function(A,Q){_.Bo(A,40,Q)}]),
nt0:new Ou([4],[function(A,Q){_.nt(A,36,Q)}]),
ntm:new Ou([3],[function(A,Q){_.Bo(A,114,Q)}]),
nu:new Ou([3],[function(A,Q){_.Bo(A,46,Q)}]),
nw:new Ou([3],[function(A,Q){_.Bo(A,48,Q)}]),
o:new Ou([1,3],[function(A,Q){Q=Q==null?Q:owx(Q);_.Gp(A,7,Q)},
function(A,Q){_.Bo(A,27,Q)}]),
p:new Ou([3,0],[function(A,Q){_.Bo(A,19,Q)},
function(A,Q){_.E2(A,43,Q)}]),
pa:new Ou([3],[function(A,Q){_.Bo(A,61,Q)}]),
pc:new Ou([0],[function(A,Q){_.E2(A,88,Q)}]),
pd:new Ou([3],[function(A,Q){_.Bo(A,60,Q)}]),
pf:new Ou([3],[function(A,Q){_.Bo(A,67,Q)}]),
pg:new Ou([3],[function(A,Q){_.Bo(A,72,Q)}]),
pi:new Ou([2],[function(A,Q){_.Gp(A,76,_.cM(Q))}]),
pp:new Ou([3],[function(A,Q){_.Bo(A,52,Q)}]),
pt:new Ou([4],[function(A,Q){_.nt(A,111,Q)}]),
q:new Ou([4],[function(A,Q){_.nt(A,28,Q)}]),
r:new Ou([3,0],[function(A,Q){_.Bo(A,6,Q)},
function(A,Q){_.E2(A,26,Q)}]),
ra:new Ou([3],[function(A,Q){_.Bo(A,103,Q)}]),
rf:new Ou([3],[function(A,Q){_.Bo(A,100,Q)}]),
rg:new Ou([3],[function(A,Q){_.Bo(A,59,Q)}]),
rh:new Ou([3],[function(A,Q){_.Bo(A,49,Q)}]),
rj:new Ou([3],[function(A,Q){_.Bo(A,57,Q)}]),
ro:new Ou([2],[function(A,Q){_.Gp(A,78,_.cM(Q))}]),
rp:new Ou([3],[function(A,Q){_.Bo(A,58,Q)}]),
rw:new Ou([3],[function(A,Q){_.Bo(A,35,Q)}]),
rwa:new Ou([3],[function(A,Q){_.Bo(A,64,Q)}]),
rwu:new Ou([3],[function(A,Q){_.Bo(A,41,Q)}]),
s:new Ou([3,0],[function(A,Q){_.Bo(A,33,Q)},
function(A,Q){A.setSize(Q)}]),
sb:new Ou([0],[function(A,Q){_.E2(A,110,Q)}]),
sc:new Ou([0],[function(A,Q){_.E2(A,89,Q)}]),
sg:new Ou([3],[function(A,Q){_.Bo(A,82,Q)}]),
sl:new Ou([0],[function(A,Q){_.E2(A,109,Q)}]),
sm:new Ou([3],[function(A,Q){_.Bo(A,93,Q)}]),
t:new Ou([4],[function(A,Q){A.setToken(Q)}]),
tm:new Ou([3],[function(A,Q){_.Bo(A,113,Q)}]),
u:new Ou([3],[function(A,Q){_.Bo(A,18,Q)}]),
ut:new Ou([3],[function(A,Q){_.Bo(A,45,Q)}]),
v:new Ou([0],[function(A,Q){_.E2(A,62,Q)}]),
vb:new Ou([0],[function(A,Q){_.kk(A,68,Q)}]),
vf:new Ou([4],[function(A,Q){_.nt(A,102,Q)}]),
vl:new Ou([0],[function(A,Q){_.kk(A,69,Q)}]),
vm:new Ou([3],[function(A,Q){_.Bo(A,98,Q)}]),
w:new Ou([0],[function(A,Q){_.E2(A,12,Q)}]),
x:new Ou([0],[function(A,Q){_.E2(A,9,Q)}]),
y:new Ou([0],[function(A,Q){_.E2(A,10,Q)}]),
ya:new Ou([2],[function(A,Q){_.Gp(A,77,_.cM(Q))}]),
z:new Ou([0],[function(A,Q){_.E2(A,11,Q)}])};
WO7.prototype.parse=function(A){var Q=new C1d,b=new C1d;if(A=="")A=!0;else{A=A.split("-");for(var f=!0,a=0;a<A.length;a++){var T=A[a];if(T.length==0)f=!1;else{var G=T,p=!1;var P=G;var U=G.charAt(0);U!=U.toLowerCase()&&(p=!0,P=G.charAt(0).toLowerCase()+G.substring(1));var L=jjO;for(U=1;U<=P.length;++U){var M=L,l=P.substring(0,U);if(l.length==0?M.isEmpty():!oHd(M,l))break}P=U==1?null:(P=L.get(P.substring(0,U-1)))?{option:G.substring(0,U-1),value:G.substring(U-1),signed:p,attributes:P}:null;if(P){G=
[];p=[];U=!1;for(L=0;L<P.attributes.types.length;L++){M=P.attributes.types[L];var J=P.value;l=a;if(P.signed&&M==1)for(var n=J.length;n<12&&l<A.length-1;)J+="-"+A[l+1],n=J.length,++l;else if(M==2)for(;l<A.length-1&&A[l+1].match(/^[\d\.]/);)J+="-"+A[l+1],++l;n=P.attributes.setters[L];J=gHs(this,M)(P.option,J,Q,b,n);if(J===null){U=!0;a=l;break}else G.push(M),p.push(J)}if(!U)for(P=0;P<p.length;P++)L=G[P],J=p[P],e9s(this,L)(T,J);f=f&&U}else f=!1}}A=f}return new h9q(Q,b,A)};
var ke=function(A,Q,b,f,a,T){a(b,Q);A=A.charAt(0);T=T(A==A.toUpperCase());a(f,T)};
_.d=WO7.prototype;_.d.parseAndSetIntOption_=function(A,Q,b,f,a){if(Q=="")return 0;isFinite(Q)&&(Q=String(Q));Q=typeof Q==="string"?/^\s*-?0x/i.test(Q)?parseInt(Q,16):parseInt(Q,10):NaN;if(isNaN(Q))return 1;ke(A,Q,b,f,a,Number);return null};
_.d.logIntParseError_=function(){};
_.d.parseAndSetFloatOption_=function(A,Q,b,f,a){if(Q=="")return 0;var T=Number(Q);Q=T==0&&_.Be(Q)?NaN:T;if(isNaN(Q))return 1;ke(A,Q,b,f,a,Number);return null};
_.d.logFloatParseError_=function(){};
_.d.parseAndSetBoolOption_=function(A,Q,b,f,a){if(Q!="")return 2;ke(A,!0,b,f,a,Boolean);return null};
_.d.logBoolParseError_=function(){};
_.d.parseAndSetStringOption_=function(A,Q,b,f,a){if(Q=="")return 0;ke(A,Q,b,f,a,function(T){return T?"1":""});
return null};
_.d.logStringParseError_=function(){};
_.d.parseAndSetUint64Base64Option_=function(A,Q,b,f,a){if(Q=="")return 0;ke(A,Q,b,f,a,function(T){return T?1:0});
return null};
var gHs=function(A,Q){switch(Q){case 0:return(0,_.IL)(A.parseAndSetIntOption_,A);case 2:return(0,_.IL)(A.parseAndSetFloatOption_,A);case 3:return(0,_.IL)(A.parseAndSetBoolOption_,A);case 4:return(0,_.IL)(A.parseAndSetStringOption_,A);case 1:return(0,_.IL)(A.parseAndSetUint64Base64Option_,A);default:return function(){}}},e9s=function(A,Q){switch(Q){case 0:return(0,_.IL)(A.logIntParseError_,A);
case 2:return(0,_.IL)(A.logFloatParseError_,A);case 3:return(0,_.IL)(A.logBoolParseError_,A);case 4:case 1:return(0,_.IL)(A.logStringParseError_,A);default:return function(){}}},h9q=function(A,Q,b){this.valueProto_=A;
this.signatureFlagProto_=Q;this.JSC$19397_valid_=b};
h9q.prototype.isValid=function(){return this.JSC$19397_valid_};var Rmx=function(A){this.JSC$19398_parser_=null;this.JSC$19398_components_=[];this.JSC$19398_parsedOptions_=null;WI7(this,A)},vHn=function(A){A.JSC$19398_parser_==null&&(A.JSC$19398_parser_=new WO7);
return A.JSC$19398_parser_},WI7=function(A,Q){A.JSC$19398_parsedOptions_=Q?typeof Q==="string"?vHn(A).parse(Q):Q:vHn(A).parse("")},I6=function(A,Q){return A==Q?!1:!0};
_.d=Rmx.prototype;_.d.JSC$19400_setCrop=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,_.rA(b,2),_.rA(Q.signatureFlagProto_,2))&&_.Bo(b,2,A);return this};
_.d.JSC$19400_setCircleCrop=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,gJ(b,51),gJ(Q.signatureFlagProto_,51))&&_.Bo(b,51,A);return this};
_.d.JSC$19400_setImageCrop=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,gJ(b,32),gJ(Q.signatureFlagProto_,32))&&_.Bo(b,32,A);return this};
_.d.JSC$19400_setHeight=function(A){var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,b.getHeight(),Q.signatureFlagProto_.getHeight())&&_.E2(b,13,A);return this};
_.d.setCenterCrop=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,_.rA(b,20),_.rA(Q.signatureFlagProto_,20))&&b.setCenterCrop(A);return this};
_.d.JSC$19400_setSmartCrop=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,_.rA(b,19),_.rA(Q.signatureFlagProto_,19))&&_.Bo(b,19,A);return this};
_.d.JSC$19400_setPad=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,gJ(b,60),gJ(Q.signatureFlagProto_,60))&&_.Bo(b,60,A);return this};
_.d.JSC$19400_setSmartCropUseFace=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,_.rA(b,67),_.rA(Q.signatureFlagProto_,67))&&_.Bo(b,67,A);return this};
_.d.JSC$19400_setSmartCropNoClip=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,_.rA(b,52),_.rA(Q.signatureFlagProto_,52))&&_.Bo(b,52,A);return this};
_.d.setSize=function(A){var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,b.getSize(),Q.signatureFlagProto_.getSize())&&b.setSize(A);return this};
_.d.setToken=function(A){A=A||void 0;var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,b.getToken(),Q.signatureFlagProto_.getToken())&&b.setToken(A);return this};
_.d.JSC$19400_setWidth=function(A){var Q=this.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(A,b.getWidth(),Q.signatureFlagProto_.getWidth())&&_.E2(b,12,A);return this};
_.d.clearOptions=function(){WI7(this,"");return this};
_.d.build=function(){this.JSC$19398_components_.length=0;var A=this.JSC$19398_parsedOptions_,Q=A.valueProto_;A=A.signatureFlagProto_;HN(this,"s",Q.getSize(),A.getSize());HN(this,"w",Q.getWidth(),A.getWidth());Cg(this,"c",_.rA(Q,2),_.rA(A,2));Cg(this,"d",_.rA(Q,3),_.rA(A,3));HN(this,"h",Q.getHeight(),A.getHeight());Cg(this,"s",gJ(Q,33),gJ(A,33));Cg(this,"h",Q.getHtml(),A.getHtml());Cg(this,"p",_.rA(Q,19),_.rA(A,19));Cg(this,"pp",_.rA(Q,52),_.rA(A,52));Cg(this,"pf",_.rA(Q,67),_.rA(A,67));Cg(this,"n",
_.rA(Q,20),_.rA(A,20));HN(this,"r",ej(Q,26),ej(A,26));Cg(this,"r",_.rA(Q,6),_.rA(A,6));Cg(this,"o",gJ(Q,27),gJ(A,27));var b=_.tr(Q,7,_.VF);qU(this,"o",b,_.tr(A,7,_.VF));b=_.tr(Q,29,_.VF);qU(this,"j",b,_.tr(A,29,_.VF));HN(this,"x",ej(Q,9),ej(A,9));HN(this,"y",ej(Q,10),ej(A,10));HN(this,"z",ej(Q,11),ej(A,11));Cg(this,"g",_.rA(Q,14),_.rA(A,14));HN(this,"e",ej(Q,15),ej(A,15));qU(this,"f",_.Mu(Q,16),_.Mu(A,16));Cg(this,"k",gJ(Q,17),gJ(A,17));Cg(this,"u",gJ(Q,18),!0);Cg(this,"ut",gJ(Q,45),!0);Cg(this,"i",
gJ(Q,22),!0);Cg(this,"a",gJ(Q,21),gJ(A,21));Cg(this,"b",_.rA(Q,23),_.rA(A,23));HN(this,"b",ej(Q,38),ej(A,38));HN(this,"c",ej(Q,39),ej(A,39),16,8);qU(this,"q",_.Mu(Q,28),_.Mu(A,28));Cg(this,"fh",gJ(Q,30),gJ(A,30));Cg(this,"fv",gJ(Q,31),gJ(A,31));Cg(this,"fg",_.rA(Q,34),_.rA(A,34));Cg(this,"ci",gJ(Q,32),gJ(A,32));qU(this,"t",Q.getToken(),A.getToken());qU(this,"nt0",_.Mu(Q,36),_.Mu(A,36));Cg(this,"rw",_.rA(Q,35),_.rA(A,35));Cg(this,"rwu",_.rA(Q,41),_.rA(A,41));Cg(this,"rwa",_.rA(Q,64),_.rA(A,64));Cg(this,
"nw",_.rA(Q,48),_.rA(A,48));Cg(this,"rh",_.rA(Q,49),_.rA(A,49));Cg(this,"no",_.rA(Q,37),_.rA(A,37));Cg(this,"ns",gJ(Q,40),gJ(A,40));HN(this,"k",ej(Q,42),ej(A,42));HN(this,"p",ej(Q,43),ej(A,43));HN(this,"l",ej(Q,44),ej(A,44));HN(this,"v",ej(Q,62),ej(A,62));Cg(this,"nu",gJ(Q,46),gJ(A,46));Cg(this,"ft",gJ(Q,50),gJ(A,50));Cg(this,"cc",gJ(Q,51),gJ(A,51));Cg(this,"nd",gJ(Q,53),gJ(A,53));Cg(this,"ip",gJ(Q,54),gJ(A,54));Cg(this,"nc",gJ(Q,55),gJ(A,55));HN(this,"a",ej(Q,56),ej(A,56));Cg(this,"rj",gJ(Q,57),
gJ(A,57));Cg(this,"rp",gJ(Q,58),gJ(A,58));Cg(this,"rg",gJ(Q,59),gJ(A,59));Cg(this,"pd",gJ(Q,60),gJ(A,60));Cg(this,"pa",gJ(Q,61),gJ(A,61));HN(this,"m",ej(Q,63),ej(A,63));HN(this,"vb",h5(Q,68),h5(A,68));HN(this,"vl",h5(Q,69),h5(A,69));Cg(this,"lf",gJ(Q,65),gJ(A,65));Cg(this,"mv",gJ(Q,66),gJ(A,66));Cg(this,"id",gJ(Q,70),gJ(A,70));HN(this,"ic",ej(Q,71),!0);Cg(this,"pg",_.rA(Q,72),_.rA(A,72));Cg(this,"mo",gJ(Q,73),gJ(A,73));Cg(this,"al",gJ(Q,74),gJ(A,74));HN(this,"iv",h5(Q,75),h5(A,75));HN(this,"pi",W4(Q,
76),W4(A,76));HN(this,"ya",W4(Q,77),W4(A,77));HN(this,"ro",W4(Q,78),W4(A,78));HN(this,"fo",W4(Q,79),W4(A,79));Cg(this,"df",gJ(Q,80),gJ(A,80));qU(this,"mm",_.Mu(Q,81),_.Mu(A,81));Cg(this,"sg",gJ(Q,82),gJ(A,82));Cg(this,"gd",gJ(Q,83),gJ(A,83));Cg(this,"fm",gJ(Q,84),gJ(A,84));HN(this,"ba",ej(Q,85),ej(A,85));HN(this,"br",ej(Q,86),ej(A,86));HN(this,"bc",Q.getBackgroundColor(),A.getBackgroundColor(),16,8);HN(this,"pc",ej(Q,88),ej(A,88),16,8);HN(this,"sc",ej(Q,89),ej(A,89),16,8);Cg(this,"dv",gJ(Q,90),gJ(A,
90));Cg(this,"md",gJ(Q,91),gJ(A,91));HN(this,"cp",ej(Q,92),ej(A,92));Cg(this,"sm",gJ(Q,93),gJ(A,93));HN(this,"cv",ej(Q,94),ej(A,94));Cg(this,"ng",gJ(Q,95),gJ(A,95));Cg(this,"il",gJ(Q,96),gJ(A,96));Cg(this,"lo",gJ(Q,97),gJ(A,97));Cg(this,"vm",gJ(Q,98),gJ(A,98));qU(this,"dc",_.Mu(Q,99),_.Mu(A,99));Cg(this,"rf",gJ(Q,100),gJ(A,100));qU(this,"vf",_.Mu(Q,102),_.Mu(A,102));Cg(this,"ra",_.rA(Q,103),_.rA(A,103));Cg(this,"ckm",gJ(Q,104),gJ(A,104));Cg(this,"gm",gJ(Q,105),gJ(A,105));Cg(this,"ngm",gJ(Q,106),gJ(A,
106));HN(this,"em",ej(Q,107),ej(A,107));Cg(this,"cr",gJ(Q,108),gJ(A,108));HN(this,"sl",Q.getStoryboardLevel(),A.getStoryboardLevel());HN(this,"sb",ej(Q,110),ej(A,110));qU(this,"pt",_.Mu(Q,111),_.Mu(A,111));qU(this,"gce",_.Mu(Q,112),_.Mu(A,112));Cg(this,"tm",gJ(Q,113),gJ(A,113));Cg(this,"ntm",gJ(Q,114),gJ(A,114));HN(this,"mp",ej(Q,115),ej(A,115));return this.JSC$19398_components_.join("-")};
var HN=function(A,Q,b,f,a,T){if(b!=null){var G=a==void 0||a!=10&&a!=16?10:a;b=Number(b).toString(G);a=new yjx;a.append(G==16?"0x":"");G=a.append;T==void 0?T="":(T-=b.length,T=T<=0?"":(0,_.gCv)("0",T));G.call(a,T);a.append(b);EHK(A,Q,a.toString(),!!Number(f))}},Cg=function(A,Q,b,f){b&&EHK(A,Q,"",!!f)},qU=function(A,Q,b,f){b&&EHK(A,Q,String(b),!!Number(f))},EHK=function(A,Q,b,f){f&&(Q=Q.charAt(0).toUpperCase()+Q.substring(1));
A.JSC$19398_components_.push(Q+b)};_.BD(uW,Rmx);_.d=uW.prototype;_.d.JSC$19400_setCrop=function(A){A&&o6(this);return uW.superClass_.JSC$19400_setCrop.call(this,A)};
_.d.JSC$19400_setHeight=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return uW.superClass_.JSC$19400_setHeight.call(this,A)};
_.d.JSC$19400_setImageCrop=function(A){A&&o6(this);return uW.superClass_.JSC$19400_setImageCrop.call(this,A)};
_.d.JSC$19400_setCircleCrop=function(A){A&&o6(this);return uW.superClass_.JSC$19400_setCircleCrop.call(this,A)};
_.d.setSize=function(A){_.ZU(A)&&(A=Math.max(A.width,A.height));A=A==null||A<0?void 0:A;A!=null&&(this.JSC$19400_setWidth(),this.JSC$19400_setHeight());return uW.superClass_.setSize.call(this,A)};
_.d.JSC$19400_setSmartCrop=function(A){A&&o6(this);return uW.superClass_.JSC$19400_setSmartCrop.call(this,A)};
_.d.JSC$19400_setSmartCropNoClip=function(A){A&&o6(this);return uW.superClass_.JSC$19400_setSmartCropNoClip.call(this,A)};
_.d.JSC$19400_setSmartCropUseFace=function(A){A&&o6(this);return uW.superClass_.JSC$19400_setSmartCropUseFace.call(this,A)};
_.d.setCenterCrop=function(A){A&&o6(this);return uW.superClass_.setCenterCrop.call(this,A)};
_.d.JSC$19400_setPad=function(A){A&&o6(this);return uW.superClass_.JSC$19400_setPad.call(this,A)};
_.d.JSC$19400_setWidth=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return uW.superClass_.JSC$19400_setWidth.call(this,A)};
var xAM=function(A){A.clearOptions();var Q=A.JSC$19398_parsedOptions_,b=Q.valueProto_;I6(!0,_.rA(b,3),_.rA(Q.signatureFlagProto_,3))&&_.Bo(b,3,!0);return A},o6=function(A){A.setCenterCrop();
A.JSC$19400_setCircleCrop();A.JSC$19400_setCrop();A.JSC$19400_setImageCrop();A.JSC$19400_setPad();A.JSC$19400_setSmartCrop();A.JSC$19400_setSmartCropNoClip();A.JSC$19400_setSmartCropUseFace()};
uW.prototype.build=function(){var A=this.JSC$19398_parsedOptions_.valueProto_;gJ(A,18)||gJ(A,45)?A.getSize()||this.setSize(0):(A=this.JSC$19398_parsedOptions_.valueProto_,A.getSize()||A.getWidth()||A.getHeight()||(this.setSize(),this.JSC$19400_setHeight(),this.JSC$19400_setWidth(),o6(this)));return uW.superClass_.build.call(this)};var cPn=/^[^\/]*\/\//,ti=function(A,Q){Q=Q===void 0?!1:Q;this.original_=A;this.originalPrefix_="";(A=this.original_.match(cPn))&&A[0]?(this.originalPrefix_=A[0],A=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):A="http://"+this.original_;this.uri_=_.co(A,!0);this.isFreeformUrl_=Q;this.JSC$19404_valid_=!0;this.obfuscated_=!1},z9K=function(A,Q){A.JSC$19406_pathPrefix_=A.JSC$19406_pathPrefix_?A.JSC$19406_pathPrefix_+("/"+Q):Q},rg=function(A){if(A.JSC$19406_components_==
void 0){var Q=A.uri_.getPath().substring(1);
A.JSC$19406_pathPrefix_=null;if(A.isFreeformUrl_){A.JSC$19406_components_=[];if((Q.match(/=/g)||[]).length>1)return A.JSC$19404_valid_=!1,A.JSC$19406_components_;var b=Q.indexOf("=");b!=-1?(A.JSC$19406_components_.push(Q.substr(0,b)),A.JSC$19406_components_.push(Q.substr(b+1))):A.JSC$19406_components_.push(Q);return A.JSC$19406_components_}A.JSC$19406_components_=Q.split("/");Q=A.JSC$19406_components_.length;Q>2&&A.JSC$19406_components_[0]=="u"&&(z9K(A,A.JSC$19406_components_[0]+"/"+A.JSC$19406_components_[1]),
A.JSC$19406_components_.shift(),A.JSC$19406_components_.shift(),Q-=2);if(Q==0||Q==4||Q>7)return A.JSC$19404_valid_=!1,A.JSC$19406_components_;if(Q==2)z9K(A,A.JSC$19406_components_[0]);else if(A.JSC$19406_components_[0]=="image")z9K(A,A.JSC$19406_components_[0]);else if(Q==7||Q==3)return A.JSC$19404_valid_=!1,A.JSC$19406_components_;if(Q<=3){A.obfuscated_=!0;Q==3&&(z9K(A,A.JSC$19406_components_[1]),A.JSC$19406_components_.shift(),--Q);--Q;b=A.JSC$19406_components_[Q];var f=b.indexOf("=");f!=-1&&(A.JSC$19406_components_[Q]=
b.substr(0,f),A.JSC$19406_components_.push(b.substr(f+1)))}}return A.JSC$19406_components_};
ti.prototype.isValid=function(){rg(this);return this.JSC$19404_valid_};
ti.prototype.isObfuscated=function(){rg(this);return this.obfuscated_};
var wX7=function(A){rg(A);return A.isFreeformUrl_},jh=function(A){rg(A);
A.JSC$19406_pathPrefix_==void 0&&(A.JSC$19406_pathPrefix_=null);return A.JSC$19406_pathPrefix_},uhK=function(A){switch(rg(A).length){case 7:return!0;
case 6:return jh(A)==null;case 5:return!1;case 3:return!0;case 2:return jh(A)==null;case 1:return!1;default:return!1}},R6=function(A,Q){if(wX7(A))a:{switch(Q){case 7:Q=0;
break;case 4:if(!uhK(A)){A=null;break a}Q=1;break;default:A=null;break a}A=rg(A)[Q]}else if(A.isObfuscated())a:{var b=jh(A)!=null?1:0;switch(Q){case 6:Q=b;break;case 4:if(!uhK(A)){A=null;break a}Q=1+b;break;default:A=null;break a}A=rg(A)[Q]}else a:{b=jh(A)!=null?1:0;switch(Q){case 0:Q=b;break;case 1:Q=1+b;break;case 2:Q=2+b;break;case 3:Q=3+b;break;case 4:if(!uhK(A)){A=null;break a}Q=4+b;break;case 5:Q=uhK(A)?1:0;Q=4+b+Q;break;default:A=null;break a}A=rg(A)[Q]}return A};
ti.prototype.getOptions=function(){this.options_==void 0&&(this.options_=R6(this,4));return this.options_};var hml=function(){};
hml.prototype.parse=function(A,Q){return new gLd(A,Q===void 0?!1:Q)};
var gLd=function(A,Q){ti.call(this,A,Q===void 0?!1:Q)};
_.O(gLd,ti);_.BD(ZC,uW);var eml;ZC.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ZC.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var A=ZC.superClass_.build.call(this),Q=[];jh(this.parsedImageUrl_)!=null&&Q.push(jh(this.parsedImageUrl_));var b=wX7(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var f=this.parsedImageUrl_;f.obfuscatedData_==void 0&&(f.obfuscatedData_=R6(f,6));Q.push(f.obfuscatedData_+(A?"="+A:""))}else if(b){f=Q.push;var a=this.parsedImageUrl_;a.freeformUrlPath_===void 0&&(a.freeformUrlPath_=R6(a,
7));f.call(Q,a.freeformUrlPath_);A&&Q.push(A)}else f=Q.push,a=this.parsedImageUrl_,a.obfuscatedGaiaId_==void 0&&(a.obfuscatedGaiaId_=R6(a,0)),f.call(Q,a.obfuscatedGaiaId_),f=Q.push,a=this.parsedImageUrl_,a.photoId_==void 0&&(a.photoId_=R6(a,1)),f.call(Q,a.photoId_),f=Q.push,a=this.parsedImageUrl_,a.imageVersion_==void 0&&(a.imageVersion_=R6(a,2)),f.call(Q,a.imageVersion_),f=Q.push,a=this.parsedImageUrl_,a.signature_==void 0&&(a.signature_=R6(a,3)),f.call(Q,a.signature_),A&&Q.push(A),A=Q.push,f=this.parsedImageUrl_,
f.filename_==void 0&&(f.filename_=R6(f,5)),A.call(Q,f.filename_);Q=b?Q.join("="):Q.join("/");Q=_.co(this.protocolPrefix_+this.JSC$19412_domain_+"/"+Q+(this.JSC$19412_query_?"?"+this.JSC$19412_query_:"")).toString();Q.startsWith("%3a//")&&(Q=Q.replace("%3a//","://"));return Q};var ZoK=_.sC(["viewBox"]),yPx=_.sC(["width"]),YfM=_.sC(["height"]),DAr=_.sC(["fill"]),$As=_.sC(["id"]),Ndl=_.sC(["x"]),sjl=_.sC(["y"]);vLl.prototype.getLength=function(){return this.parsedData.length};
vLl.prototype.write=function(A){for(var Q=0,b=this.parsedData.length;Q<b;Q++)A.put(this.parsedData[Q],8)};
var ZOr=function(A,Q){var b=new vLl(Q);A.dataList.push(b);b=A.errorCorrectLevel;var f=1,a=encodeURI(Q).toString().replace(/%[0-9a-fA-F]{2}/g,"a");Q=a.length+(a.length!=Q?3:0);a=0;for(var T=gg.length;a<=T;a++){var G=0;switch(b){case 1:G=gg[a][0];break;case 0:G=gg[a][1];break;case 3:G=gg[a][2];break;case 2:G=gg[a][3]}if(Q<=G)break;else f++}if(f>gg.length)throw Error("vk");A.typeNumber=f;A.dataCache=null};
ELK.prototype.isDark=function(A,Q){if(A<0||this.moduleCount<=A||Q<0||this.moduleCount<=Q)throw Error("nk`"+A+"`"+Q);return this.modules[A][Q]};
for(var yHx=function(A,Q,b){A.moduleCount=A.typeNumber*4+17;A.modules=Array(A.moduleCount);for(var f=0;f<A.moduleCount;f++){A.modules[f]=Array(A.moduleCount);for(var a=0;a<A.moduleCount;a++)A.modules[f][a]=null}mAl(A,0,0);mAl(A,A.moduleCount-7,0);mAl(A,0,A.moduleCount-7);f=AVn[A.typeNumber-1];for(a=0;a<f.length;a++)for(var T=0;T<f.length;T++){var G=f[a],p=f[T];if(A.modules[G][p]==null)for(var P=-2;P<=2;P++)for(var U=-2;U<=2;U++)A.modules[G+P][p+U]=P==-2||P==2||U==-2||U==2||P==0&&U==0?!0:!1}for(f=
8;f<A.moduleCount-8;f++)A.modules[f][6]==null&&(A.modules[f][6]=f%2==0);for(f=8;f<A.moduleCount-8;f++)A.modules[6][f]==null&&(A.modules[6][f]=f%2==0);f=A.errorCorrectLevel<<3|b;for(a=f<<10;eh(a)-eh(1335)>=0;)a^=1335<<eh(a)-eh(1335);f=(f<<10|a)^21522;for(a=0;a<15;a++)T=!Q&&(f>>a&1)==1,a<6?A.modules[a][8]=T:a<8?A.modules[a+1][8]=T:A.modules[A.moduleCount-15+a][8]=T;for(a=0;a<15;a++)T=!Q&&(f>>a&1)==1,a<8?A.modules[8][A.moduleCount-a-1]=T:a<9?A.modules[8][15-a-1+1]=T:A.modules[8][15-a-1]=T;A.modules[A.moduleCount-
8][8]=!Q;if(A.typeNumber>=7){f=A.typeNumber;for(a=f<<12;eh(a)-eh(7973)>=0;)a^=7973<<eh(a)-eh(7973);f=f<<12|a;for(a=0;a<18;a++)T=!Q&&(f>>a&1)==1,A.modules[Math.floor(a/3)][a%3+A.moduleCount-8-3]=T;for(a=0;a<18;a++)T=!Q&&(f>>a&1)==1,A.modules[a%3+A.moduleCount-8-3][Math.floor(a/3)]=T}if(A.dataCache==null){a=A.typeNumber;T=A.dataList;Q=A.errorCorrectLevel;f=QW7(a,Q);if(f==void 0)throw Error("uk`"+a+"`"+Q);G=f.length/3;Q=[];for(p=0;p<G;p++){P=f[p*3];U=f[p*3+1];for(var L=f[p*3+2],M=0;M<P;M++)Q.push(new xex(U,
L))}f=new cHx;for(G=0;G<T.length;G++)p=T[G],f.put(p.mode,4),f.put(p.getLength(),bUF(p.mode,a)),p.write(f);for(G=a=0;G<Q.length;G++)a+=Q[G].dataCount;if(f.length>a*8)throw Error("ok`"+f.length+"`"+a*8);for(f.length+4<=a*8&&f.put(0,4);f.length%8!=0;)fQK(f,!1);for(;!(f.length>=a*8);){f.put(236,8);if(f.length>=a*8)break;f.put(17,8)}T=a=U=0;G=Array(Q.length);p=Array(Q.length);for(P=0;P<Q.length;P++){M=Q[P].dataCount;var l=Q[P].totalCount-M;a=Math.max(a,M);T=Math.max(T,l);G[P]=Array(M);for(L=0;L<G[P].length;L++)G[P][L]=
255&f.buffer[L+U];U+=M;L=l;M=new yk([1],0);for(l=0;l<L;l++)M=M.multiply(new yk([1,aQl(l)],0));L=M;M=(new yk(G[P],L.getLength()-1)).mod(L);p[P]=Array(L.getLength()-1);for(L=0;L<p[P].length;L++)l=L+M.getLength()-p[P].length,p[P][L]=l>=0?M.get(l):0}for(L=f=0;L<Q.length;L++)f+=Q[L].totalCount;f=Array(f);for(L=U=0;L<a;L++)for(P=0;P<Q.length;P++)L<G[P].length&&(f[U++]=G[P][L]);for(L=0;L<T;L++)for(P=0;P<Q.length;P++)L<p[P].length&&(f[U++]=p[P][L]);A.dataCache=f}Q=A.dataCache;f=-1;a=A.moduleCount-1;T=7;G=
0;for(p=A.moduleCount-1;p>0;p-=2)for(p==6&&p--;;){for(P=0;P<2;P++)A.modules[a][p-P]==null&&(U=!1,G<Q.length&&(U=(Q[G]>>>T&1)==1),TPF(b,a,p-P)&&(U=!U),A.modules[a][p-P]=U,T--,T==-1&&(G++,T=7));a+=f;if(a<0||A.moduleCount<=a){a-=f;f=-f;break}}},mAl=function(A,Q,b){for(var f=-1;f<=7;f++)if(!(Q+f<=-1||A.moduleCount<=Q+f))for(var a=-1;a<=7;a++)b+a<=-1||A.moduleCount<=b+a||(A.modules[Q+f][b+a]=0<=f&&f<=6&&(a==0||a==6)||0<=a&&a<=6&&(f==0||f==6)||2<=f&&f<=4&&2<=a&&a<=4?!0:!1)},Yrx=function(A){for(var Q=0,
b=0,f=0;f<8;f++){yHx(A,!0,f);
var a=A;for(var T=a.moduleCount,G=0,p=0;p<T;p++)for(var P=0;P<T;P++){for(var U=0,L=a.isDark(p,P),M=-1;M<=1;M++)if(!(p+M<0||T<=p+M))for(var l=-1;l<=1;l++)P+l<0||T<=P+l||(M!=0||l!=0)&&L==a.isDark(p+M,P+l)&&U++;U>5&&(G+=3+U-5)}for(p=0;p<T-1;p++)for(P=0;P<T-1;P++)if(U=0,a.isDark(p,P)&&U++,a.isDark(p+1,P)&&U++,a.isDark(p,P+1)&&U++,a.isDark(p+1,P+1)&&U++,U==0||U==4)G+=3;for(p=0;p<T;p++)for(P=0;P<T-6;P++)a.isDark(p,P)&&!a.isDark(p,P+1)&&a.isDark(p,P+2)&&a.isDark(p,P+3)&&a.isDark(p,P+4)&&!a.isDark(p,P+5)&&
a.isDark(p,P+6)&&(G+=40);for(P=0;P<T;P++)for(p=0;p<T-6;p++)a.isDark(p,P)&&!a.isDark(p+1,P)&&a.isDark(p+2,P)&&a.isDark(p+3,P)&&a.isDark(p+4,P)&&!a.isDark(p+5,P)&&a.isDark(p+6,P)&&(G+=40);for(P=U=0;P<T;P++)for(p=0;p<T;p++)a.isDark(p,P)&&U++;a=G+=Math.abs(100*U/T/T-50)/5*10;if(f==0||Q>a)Q=a,b=f}return b},AVn=[[],
[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]],eh=function(A){for(var Q=0;A!=0;)Q++,A>>>=1;return Q},TPF=function(A,Q,b){switch(A){case 0:return(Q+b)%2==0;
case 1:return Q%2==0;case 2:return b%3==0;case 3:return(Q+b)%3==0;case 4:return(Math.floor(Q/2)+Math.floor(b/3))%2==0;case 5:return Q*b%2+Q*b%3==0;case 6:return(Q*b%2+Q*b%3)%2==0;case 7:return(Q*b%3+(Q+b)%2)%2==0;default:throw Error("pk`"+A);}},bUF=function(A,Q){if(1<=Q&&Q<10)switch(A){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+A);}else if(Q<27)switch(A){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+A);}else if(Q<41)switch(A){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+A);}else throw Error("rk`"+Q);},hi=function(A){if(A<1)throw Error("sk`"+A);
return d$l[A]},aQl=function(A){for(;A<0;)A+=255;
for(;A>=256;)A-=255;return WN[A]},WN=Array(256),d$l=Array(256),F2d=0;F2d<8;F2d++)WN[F2d]=1<<F2d;
for(var vN=8;vN<256;vN++)WN[vN]=WN[vN-4]^WN[vN-5]^WN[vN-6]^WN[vN-8];for(var GSN=0;GSN<255;GSN++)d$l[WN[GSN]]=GSN;yk.prototype.get=function(A){return this.num[A]};
yk.prototype.getLength=function(){return this.num.length};
yk.prototype.multiply=function(A){for(var Q=Array(this.getLength()+A.getLength()-1),b=0;b<this.getLength();b++)for(var f=0;f<A.getLength();f++)Q[b+f]^=aQl(hi(this.get(b))+hi(A.get(f)));return new yk(Q,0)};
yk.prototype.mod=function(A){if(this.getLength()-A.getLength()<0)return this;for(var Q=hi(this.get(0))-hi(A.get(0)),b=Array(this.getLength()),f=0;f<this.getLength();f++)b[f]=this.get(f);for(f=0;f<A.getLength();f++)b[f]^=aQl(hi(A.get(f))+Q);return(new yk(b,0)).mod(A)};
var BPl=[[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]],QW7=function(A,Q){switch(Q){case 1:return BPl[(A-1)*4];case 0:return BPl[(A-1)*4+1];case 3:return BPl[(A-1)*4+2];case 2:return BPl[(A-1)*4+3]}};
cHx.prototype.get=function(A){return(this.buffer[Math.floor(A/8)]>>>7-A%8&1)==1};
cHx.prototype.put=function(A,Q){for(var b=0;b<Q;b++)fQK(this,(A>>>Q-b-1&1)==1)};
var fQK=function(A,Q){var b=Math.floor(A.length/8);A.buffer.length<=b&&A.buffer.push(0);Q&&(A.buffer[b]|=128>>>A.length%8);A.length++},gg=[[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]],ug7=function(){var A=function(Q,b){this.JSC$19432__el=Q;this.JSC$19432__htOption=b};
A.prototype.draw=function(Q){function b(L,M){L=document.createElementNS("http://www.w3.org/2000/svg",L);for(var l in M)M.hasOwnProperty(l)&&(l==="href"?_.R4N(L,M[l]):_.Qw([_.TH(ZoK),_.TH(yPx),_.TH(YfM),_.TH(DAr),_.TH($As),_.TH(Ndl),_.TH(sjl)],L,l,M[l]));return L}
var f=this.JSC$19432__htOption,a=this.JSC$19432__el,T=Q.moduleCount;this.clear();var G=b("svg",{viewBox:"0 0 "+String(T)+" "+String(T),width:"100%",height:"100%",fill:f.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});a.appendChild(G);G.appendChild(b("rect",{fill:f.colorLight,width:"100%",height:"100%"}));G.appendChild(b("rect",{fill:f.colorDark,width:"1",height:"1",id:"template"}));for(var p=0;p<T;p++)for(var P=0;P<T;P++)if(Q.isDark(p,P)){var U=b("use",{x:String(p),y:String(P),href:"#template"});
G.appendChild(U)}};
A.prototype.clear=function(){for(;this.JSC$19432__el.hasChildNodes();)this.JSC$19432__el.removeChild(this.JSC$19432__el.lastChild)};
return A}(),wOd=document.documentElement.tagName.toLowerCase()==="svg"?ug7:typeof CanvasRenderingContext2D!="undefined"?function(){var A=function(Q,b){this._bIsPainted=!1;
zmx();this.JSC$19432__htOption=b;this._elCanvas=document.createElement("canvas");this._elCanvas.width=b.width;this._elCanvas.height=b.height;Q.appendChild(this._elCanvas);this.JSC$19432__el=Q;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$19432__el.appendChild(this._elImage);this._bSupportDataURI=null};
A.prototype._onMakeImage=function(){var Q=this._elCanvas.toDataURL("image/png");this._elImage.src=Q;this._elImage.style.display="block";this._elCanvas.style.display="none"};
A.prototype._safeSetDataURI=function(Q,b){var f=this;f._fFail=b;f._fSuccess=Q;f._bSupportDataURI===null?(Q=_.KK("IMG"),b=function(){f._bSupportDataURI=!1;f._fFail&&f._fFail.call(f)},Q.onabort=b,Q.onerror=b,Q.onload=function(){f._bSupportDataURI=!0;
f._fSuccess&&f._fSuccess.call(f)},Q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):f._bSupportDataURI===!0&&f._fSuccess?f._fSuccess.call(f):f._bSupportDataURI===!1&&f._fFail&&f._fFail.call(f)};
A.prototype.draw=function(Q){var b=this._oContext,f=this.JSC$19432__htOption,a=Q.moduleCount,T=f.width/a,G=f.height/a,p=Math.round(T),P=Math.round(G);this._elImage.style.display="none";this.clear();for(var U=0;U<a;U++)for(var L=0;L<a;L++){var M=Q.isDark(U,L),l=L*T,J=U*G;b.strokeStyle=M?f.colorDark:f.colorLight;b.lineWidth=1;b.fillStyle=M?f.colorDark:f.colorLight;b.fillRect(l,J,T,G);b.strokeRect(Math.floor(l)+.5,Math.floor(J)+.5,p,P);b.strokeRect(Math.ceil(l)-.5,Math.ceil(J)-.5,p,P)}this._bIsPainted=
!0};
A.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
A.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
A.prototype.round=function(Q){return Q?Math.floor(Q*1E3)/1E3:Q};
return A}():function(){var A=function(Q,b){this.JSC$19432__el=Q;
this.JSC$19432__htOption=b};
A.prototype.draw=function(Q){for(var b=this.JSC$19432__htOption,f=this.JSC$19432__el,a=Q.moduleCount,T=Math.floor(b.width/a),G=Math.floor(b.height/a),p=['<table style="border:0;border-collapse:collapse;">'],P=0;P<a;P++){p.push("<tr>");for(var U=0;U<a;U++)p.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+T+"px;height:"+G+"px;background-color:"+(Q.isDark(P,U)?b.colorDark:b.colorLight)+';"></td>');p.push("</tr>")}p.push("</table>");Q=p.join("");Q=_.krM(_.H$L,Q);_.Ao(f,Q);
Q=f.childNodes[0];a=(b.width-Q.offsetWidth)/2;T=(b.height-Q.offsetHeight)/2;a>0&&T>0&&(Q.style.margin=T+"px "+a+"px")};
A.prototype.clear=function(){this.JSC$19432__el.textContent=""};
return A}();
Den.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19435__android||this.JSC$19435__android>=3)&&this._oDrawing.makeImage()};
Den.prototype.clear=function(){this._oDrawing.clear()};
_.by.QRCode=Den;var pBO={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Eu=function(){};
Eu.prototype.stringify=function(A){return _.by.JSON.stringify(A,void 0)};
Eu.prototype.parse=function(A){return _.by.JSON.parse(A,void 0)};var PIt=function(){_.J1.call(this,"z")};
_.BD(PIt,_.J1);var XBN=function(){_.J1.call(this,"y")};
_.BD(XBN,_.J1);var S17=null,U$F=function(){return S17=S17||new _.IH},L27=function(A){_.J1.call(this,"serverreachability",A)};
_.BD(L27,_.J1);var xe=function(A){var Q=U$F();Q.dispatchEvent(new L27(Q,A))},M_N=function(A,Q){_.J1.call(this,"statevent",A);
this.stat=Q};
_.BD(M_N,_.J1);var cN=function(A){var Q=U$F();Q.dispatchEvent(new M_N(Q,A))},lQK=function(A,Q,b,f){_.J1.call(this,"timingevent",A);
this.size=Q;this.rtt=b;this.retries=f};
_.BD(lQK,_.J1);var K2F=function(A,Q,b){var f=U$F();f.dispatchEvent(new lQK(f,A,Q,b))},zw=function(A,Q){if(typeof A!=="function")throw Error("wk");
return _.by.setTimeout(function(){A()},Q)};var wg=function(){this.redactEnabled_=!0};
wg.prototype.disableRedact=function(){this.redactEnabled_=!1};
var iUs=function(A,Q,b,f,a,T){A.info(function(){if(A.redactEnabled_)if(T){var G="";for(var p=T.split("&"),P=0;P<p.length;P++){var U=p[P].split("=");if(U.length>1){var L=U[0];U=U[1];var M=L.split("_");G=M.length>=2&&M[1]=="type"?G+(L+"="+U+"&"):G+(L+"=redacted&")}}}else G=null;else G=T;return"XMLHTTP REQ ("+f+") [attempt "+a+"]: "+Q+"\n"+b+"\n"+G})},JVN=function(A,Q,b,f,a,T,G){A.info(function(){return"XMLHTTP RESP ("+f+") [ attempt "+a+"]: "+Q+"\n"+b+"\n"+T+" "+G})},u2=function(A,Q,b,f){A.info(function(){return"XMLHTTP TEXT ("+
Q+"): "+V_q(A,b)+(f?" "+f:"")})},OUK=function(A,Q){A.info(function(){return"TIMEOUT: "+Q})};
wg.prototype.debug=function(){};
wg.prototype.info=function(){};
wg.prototype.warning=function(){};
var V_q=function(A,Q){if(!A.redactEnabled_)return Q;if(!Q)return null;try{var b=JSON.parse(Q);if(b)for(var f=0;f<b.length;f++)if(Array.isArray(b[f])){var a=b[f];if(!(a.length<2)){var T=a[1];if(Array.isArray(T)&&!(T.length<1)){var G=T[0];if(G!="noop"&&G!="stop"&&G!="close")for(var p=1;p<T.length;p++)T[p]=""}}}return(0,_.jV)(b)}catch(P){return A.debug("Exception parsing expected JS array - probably was not JS"),Q}};var ZY=function(A,Q,b,f,a){this.JSC$19457_channel_=A;this.JSC$19457_channelDebug_=Q;this.sid_=b;this.JSC$19457_rid_=f;this.JSC$19457_retryId_=a||1;this.JSC$19457_eventHandler_=new _.BR(this);this.timeout_=45E3;this.JSC$19457_extraHeaders_=null;this.JSC$19457_successful_=!1;this.JSC$19457_postData_=this.JSC$19457_requestUri_=this.JSC$19457_baseUri_=this.JSC$19457_type_=this.JSC$19457_requestStartTime_=this.JSC$19457_watchDogTimeoutTime_=this.JSC$19457_watchDogTimerId_=null;this.JSC$19457_pendingMessages_=
[];this.JSC$19457_xmlHttp_=null;this.JSC$19457_xmlHttpChunkStart_=0;this.JSC$19457_lastError_=this.JSC$19457_verb_=null;this.JSC$19457_lastStatusCode_=-1;this.JSC$19457_cancelled_=!1;this.JSC$19457_readyStateChangeThrottleMs_=0;this.JSC$19457_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new n4s},n4s=function(){this.JSC$19459_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},kSx=function(A,Q){switch(A){case 0:return"Non-200 return code ("+Q+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},IQr={},HUM={};
ZY.prototype.setTimeout=function(A){this.timeout_=A};
var q1F=function(A,Q,b){A.JSC$19457_type_=1;A.JSC$19457_baseUri_=_.Xh(Q.clone());A.JSC$19457_postData_=b;A.decodeChunks_=!0;CId(A,null)},CId=function(A,Q){A.JSC$19457_requestStartTime_=Date.now();
o4l(A);A.JSC$19457_requestUri_=A.JSC$19457_baseUri_.clone();qw(A.JSC$19457_requestUri_,"t",A.JSC$19457_retryId_);A.JSC$19457_xmlHttpChunkStart_=0;var b=A.JSC$19457_channel_.JSC$19476_supportsCrossDomainXhrs_;A.fetchResponseState_=new n4s;A.JSC$19457_xmlHttp_=t_K(A.JSC$19457_channel_,b?Q:null,!A.JSC$19457_postData_);A.JSC$19457_readyStateChangeThrottleMs_>0&&(A.JSC$19457_readyStateChangeThrottle_=new _.Ac((0,_.IL)(A.JSC$19461_xmlHttpHandler_,A,A.JSC$19457_xmlHttp_),A.JSC$19457_readyStateChangeThrottleMs_));
A.JSC$19457_eventHandler_.listen(A.JSC$19457_xmlHttp_,"readystatechange",A.JSC$19461_readyStateChangeHandler_);Q=A.JSC$19457_extraHeaders_?_.j2.clone(A.JSC$19457_extraHeaders_):{};A.JSC$19457_postData_?(A.JSC$19457_verb_||(A.JSC$19457_verb_="POST"),Q["Content-Type"]="application/x-www-form-urlencoded",A.JSC$19457_xmlHttp_.send(A.JSC$19457_requestUri_,A.JSC$19457_verb_,A.JSC$19457_postData_,Q)):(A.JSC$19457_verb_="GET",A.JSC$19457_xmlHttp_.send(A.JSC$19457_requestUri_,A.JSC$19457_verb_,null,Q));xe(1);
iUs(A.JSC$19457_channelDebug_,A.JSC$19457_verb_,A.JSC$19457_requestUri_,A.JSC$19457_rid_,A.JSC$19457_retryId_,A.JSC$19457_postData_)};
ZY.prototype.JSC$19461_readyStateChangeHandler_=function(A){A=A.target;var Q=this.JSC$19457_readyStateChangeThrottle_;Q&&_.gr(A)==3?(this.JSC$19457_channelDebug_.debug("Throttling readystatechange."),Q.fire()):this.JSC$19461_xmlHttpHandler_(A)};
ZY.prototype.JSC$19461_xmlHttpHandler_=function(A){try{A==this.JSC$19457_xmlHttp_?rVN(this):this.JSC$19457_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(Q){this.JSC$19457_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),jWl(this)}finally{}};
var rVN=function(A){var Q=_.gr(A.JSC$19457_xmlHttp_),b=A.JSC$19457_xmlHttp_.JSC$9738_lastErrorCode_,f=A.JSC$19457_xmlHttp_.getStatus();if(!(Q<3||Q==3&&!jWl(A))){A.JSC$19457_cancelled_||Q!=4||b==7||(b==8||f<=0?xe(3):xe(2));R$t(A);var a=A.JSC$19457_xmlHttp_.getStatus();A.JSC$19457_lastStatusCode_=a;b=g4x(A);jWl(A)||A.JSC$19457_channelDebug_.debug(function(){return"No response text for uri "+A.JSC$19457_requestUri_+" status "+a});
A.JSC$19457_successful_=a==200;JVN(A.JSC$19457_channelDebug_,A.JSC$19457_verb_,A.JSC$19457_requestUri_,A.JSC$19457_rid_,A.JSC$19457_retryId_,Q,a);if(A.JSC$19457_successful_){if(A.decodeInitialResponse_&&!A.initialResponseDecoded_)if(f=e$O(A))u2(A.JSC$19457_channelDebug_,A.JSC$19457_rid_,f,"Initial handshake response via X-HTTP-Initial-Response"),A.initialResponseDecoded_=!0,h$l(A,f);else{A.JSC$19457_successful_=!1;A.JSC$19457_lastError_=3;cN(12);A.JSC$19457_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
A.JSC$19457_rid_+")");ye(A);Ye(A);return}A.decodeChunks_?W2N(A,Q,b):(u2(A.JSC$19457_channelDebug_,A.JSC$19457_rid_,b,null),h$l(A,b));Q==4&&ye(A);A.JSC$19457_successful_&&!A.JSC$19457_cancelled_&&(Q==4?v4O(A.JSC$19457_channel_,A):(A.JSC$19457_successful_=!1,o4l(A)))}else UId(A.JSC$19457_xmlHttp_),a==400&&b.indexOf("Unknown SID")>0?(A.JSC$19457_lastError_=3,cN(12),A.JSC$19457_channelDebug_.warning("XMLHTTP Unknown SID ("+A.JSC$19457_rid_+")")):(A.JSC$19457_lastError_=0,cN(13),A.JSC$19457_channelDebug_.warning("XMLHTTP Bad status "+
a+" ("+A.JSC$19457_rid_+")")),ye(A),Ye(A)}},e$O=function(A){return A.JSC$19457_xmlHttp_&&(A=ef(A.JSC$19457_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Be(A)?A:null},g4x=function(A){if(!E4n(A))return A.JSC$19457_xmlHttp_.getResponseText();
var Q=A.JSC$19457_xmlHttp_.getResponse();if(Q==="")return"";var b="",f=Q.length,a=_.gr(A.JSC$19457_xmlHttp_)==4;if(!A.fetchResponseState_.JSC$19459_textDecoder){if(typeof TextDecoder==="undefined")return ye(A),Ye(A),"";A.fetchResponseState_.JSC$19459_textDecoder=new _.by.TextDecoder}for(var T=0;T<f;T++)A.fetchResponseState_.responseArrivedForFetch=!0,b+=A.fetchResponseState_.JSC$19459_textDecoder.decode(Q[T],{stream:!(a&&T==f-1)});Q.length=0;A.fetchResponseState_.responseBuffer+=b;A.JSC$19457_xmlHttpChunkStart_=
0;return A.fetchResponseState_.responseBuffer},jWl=function(A){return A.JSC$19457_xmlHttp_?A.fetchResponseState_.responseArrivedForFetch?!0:!(!A.JSC$19457_xmlHttp_.getResponseText()&&!A.JSC$19457_xmlHttp_.getResponse()):!1},E4n=function(A){return A.JSC$19457_xmlHttp_?A.JSC$19457_verb_=="GET"&&A.JSC$19457_type_!=2&&A.JSC$19457_channel_.usesFetchStreams_:!1},W2N=function(A,Q,b){for(var f=!0,a;!A.JSC$19457_cancelled_&&A.JSC$19457_xmlHttpChunkStart_<b.length;)if(a=x$d(A,b),a==HUM){Q==4&&(A.JSC$19457_lastError_=
4,cN(14),f=!1);
u2(A.JSC$19457_channelDebug_,A.JSC$19457_rid_,null,"[Incomplete Response]");break}else if(a==IQr){A.JSC$19457_lastError_=4;cN(15);u2(A.JSC$19457_channelDebug_,A.JSC$19457_rid_,b,"[Invalid Chunk]");f=!1;break}else u2(A.JSC$19457_channelDebug_,A.JSC$19457_rid_,a,null),h$l(A,a);E4n(A)&&A.JSC$19457_xmlHttpChunkStart_!=0&&(A.fetchResponseState_.responseBuffer=A.fetchResponseState_.responseBuffer.slice(A.JSC$19457_xmlHttpChunkStart_),A.JSC$19457_xmlHttpChunkStart_=0);Q!=4||b.length!=0||A.fetchResponseState_.responseArrivedForFetch||
(A.JSC$19457_lastError_=1,cN(16),f=!1);A.JSC$19457_successful_=A.JSC$19457_successful_&&f;f?b.length>0&&!A.firstByteReceived_&&(A.firstByteReceived_=!0,Q=A.JSC$19457_channel_,Q.JSC$19476_backChannelRequest_==A&&Q.detectBufferingProxy_&&!Q.bpDetectionDone_&&(Q.JSC$19476_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+b.length),cVx(Q),Q.bpDetectionDone_=!0,cN(11))):(u2(A.JSC$19457_channelDebug_,A.JSC$19457_rid_,b,"[Invalid Chunked Response]"),ye(A),Ye(A))},x$d=function(A,Q){var b=
A.JSC$19457_xmlHttpChunkStart_,f=Q.indexOf("\n",b);
if(f==-1)return HUM;b=Number(Q.substring(b,f));if(isNaN(b))return IQr;f+=1;if(f+b>Q.length)return HUM;Q=Q.slice(f,f+b);A.JSC$19457_xmlHttpChunkStart_=f+b;return Q};
ZY.prototype.cancel=function(){this.JSC$19457_cancelled_=!0;ye(this)};
var o4l=function(A){A.JSC$19457_watchDogTimeoutTime_=Date.now()+A.timeout_;z$l(A,A.timeout_)},z$l=function(A,Q){if(A.JSC$19457_watchDogTimerId_!=null)throw Error("xk");
A.JSC$19457_watchDogTimerId_=zw((0,_.IL)(A.JSC$19461_onWatchDogTimeout_,A),Q)},R$t=function(A){A.JSC$19457_watchDogTimerId_&&(_.by.clearTimeout(A.JSC$19457_watchDogTimerId_),A.JSC$19457_watchDogTimerId_=null)};
ZY.prototype.JSC$19461_onWatchDogTimeout_=function(){this.JSC$19457_watchDogTimerId_=null;var A=Date.now();A-this.JSC$19457_watchDogTimeoutTime_>=0?(OUK(this.JSC$19457_channelDebug_,this.JSC$19457_requestUri_),this.JSC$19457_type_!=2&&(xe(3),cN(17)),ye(this),this.JSC$19457_lastError_=2,Ye(this)):(this.JSC$19457_channelDebug_.warning("WatchDog timer called too early"),z$l(this,this.JSC$19457_watchDogTimeoutTime_-A))};
var Ye=function(A){A.JSC$19457_channel_.state_==0||A.JSC$19457_cancelled_||v4O(A.JSC$19457_channel_,A)},ye=function(A){R$t(A);
_.AT(A.JSC$19457_readyStateChangeThrottle_);A.JSC$19457_readyStateChangeThrottle_=null;A.JSC$19457_eventHandler_.removeAll();if(A.JSC$19457_xmlHttp_){var Q=A.JSC$19457_xmlHttp_;A.JSC$19457_xmlHttp_=null;Q.abort();Q.dispose()}};
ZY.prototype.getLastError=function(){return this.JSC$19457_lastError_};
var h$l=function(A,Q){try{var b=A.JSC$19457_channel_;if(b.state_!=0&&(b.JSC$19476_backChannelRequest_==A||wBO(b.forwardChannelRequestPool_,A)))if(!A.initialResponseDecoded_&&wBO(b.forwardChannelRequestPool_,A)&&b.state_==3){try{var f=b.wireCodec_.JSC$19471_parser_.parse(Q)}catch(p){f=null}if(Array.isArray(f)&&f.length==3){Q=f;if(Q[0]==0)a:if(b.JSC$19476_channelDebug_.debug("Server claims our backchannel is missing."),b.JSC$19476_backChannelTimerId_)b.JSC$19476_channelDebug_.debug("But we are currently starting the request.");
else{if(b.JSC$19476_backChannelRequest_)if(b.JSC$19476_backChannelRequest_.JSC$19457_requestStartTime_+3E3<A.JSC$19457_requestStartTime_)u1x(b),ZUx(b);else break a;else b.JSC$19476_channelDebug_.warning("We do not have a BackChannel established");yVs(b);cN(18)}else{b.JSC$19476_lastPostResponseArrayId_=Q[1];var a=b.JSC$19476_lastPostResponseArrayId_-b.JSC$19476_lastArrayId_;if(0<a){var T=Q[2];b.JSC$19476_channelDebug_.debug(T+" bytes (in "+a+" arrays) are outstanding on the BackChannel");T<37500&&
b.enableStreaming_&&b.JSC$19476_backChannelRetryCount_==0&&!b.JSC$19476_deadBackChannelTimerId_&&(b.JSC$19476_deadBackChannelTimerId_=zw((0,_.IL)(b.JSC$19478_onBackChannelDead_,b),6E3))}}if(Y1F(b.forwardChannelRequestPool_)<=1&&b.forwardChannelFlushedCallback_){try{b.forwardChannelFlushedCallback_()}catch(p){}b.forwardChannelFlushedCallback_=void 0}}else b.JSC$19476_channelDebug_.debug("Bad POST response data returned"),DY(b,11)}else if((A.initialResponseDecoded_||b.JSC$19476_backChannelRequest_==
A)&&u1x(b),!_.Be(Q)){var G=b.wireCodec_.JSC$19471_parser_.parse(Q);b.onInput_(G,A)}xe(4)}catch(p){}};var D$x=function(A,Q){this.JSC$19464_mapId=A;this.map=Q;this.context=null};var $$q=function(A){this.maxPoolSizeConfigured_=A||10;_.by.PerformanceNavigationTiming?(A=_.by.performance.getEntriesByType("navigation"),A=A.length>0&&(A[0].nextHopProtocol=="hq"||A[0].nextHopProtocol=="h2")):A=!!(_.by.chrome&&_.by.chrome.loadTimes&&_.by.chrome.loadTimes()&&_.by.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19467_maxSize_=A?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19467_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19467_request_=null;this.JSC$19467_pendingMessages_=
[]},NPq=function(A){return A.JSC$19467_request_?!0:A.requestPool_?A.requestPool_.size>=A.JSC$19467_maxSize_:!1},Y1F=function(A){return A.JSC$19467_request_?1:A.requestPool_?A.requestPool_.size:0},wBO=function(A,Q){return A.JSC$19467_request_?A.JSC$19467_request_==Q:A.requestPool_?A.requestPool_.has(Q):!1},sWn=function(A,Q){A.requestPool_?A.requestPool_.add(Q):A.JSC$19467_request_=Q},m$l=function(A,Q){A.JSC$19467_request_&&A.JSC$19467_request_==Q?A.JSC$19467_request_=null:A.requestPool_&&A.requestPool_.has(Q)&&
A.requestPool_.delete(Q)};
$$q.prototype.cancel=function(){this.JSC$19467_pendingMessages_=A2x(this);if(this.JSC$19467_request_)this.JSC$19467_request_.cancel(),this.JSC$19467_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var A=_.F(this.requestPool_.values()),Q=A.next();!Q.done;Q=A.next())Q.value.cancel();this.requestPool_.clear()}};
var A2x=function(A){if(A.JSC$19467_request_!=null)return A.JSC$19467_pendingMessages_.concat(A.JSC$19467_request_.JSC$19457_pendingMessages_);if(A.requestPool_!=null&&A.requestPool_.size!==0){var Q=A.JSC$19467_pendingMessages_;A=_.F(A.requestPool_.values());for(var b=A.next();!b.done;b=A.next())Q=Q.concat(b.value.JSC$19457_pendingMessages_);return Q}return _.xC(A.JSC$19467_pendingMessages_)},Q1N=function(A,Q){A.JSC$19467_pendingMessages_=A.JSC$19467_pendingMessages_.concat(Q)};var bnq=function(A,Q){var b=new wg;b.debug("TestLoadImage: loading "+A);if(_.by.Image){var f=new Image;f.onload=_.Ol($e,b,"TestLoadImage: loaded",!0,Q,f);f.onerror=_.Ol($e,b,"TestLoadImage: error",!1,Q,f);f.onabort=_.Ol($e,b,"TestLoadImage: abort",!1,Q,f);f.ontimeout=_.Ol($e,b,"TestLoadImage: timeout",!1,Q,f);_.by.setTimeout(function(){if(f.ontimeout)f.ontimeout()},1E4);
f.src=A}else Q(!1)},fmO=function(A,Q){var b=new wg,f=new AbortController,a=setTimeout(function(){f.abort();
$e(b,"TestPingServer: timeout",!1,Q)},1E4);
fetch(A,{signal:f.signal}).then(function(T){clearTimeout(a);T.ok?$e(b,"TestPingServer: ok",!0,Q):$e(b,"TestPingServer: server error",!1,Q)}).catch(function(){clearTimeout(a);
$e(b,"TestPingServer: error",!1,Q)})},$e=function(A,Q,b,f,a){try{A.debug(Q),a&&(a.onload=null,a.onerror=null,a.onabort=null,a.ontimeout=null),f(b)}catch(T){}};var amx=function(){this.JSC$19471_parser_=new Eu};var NU=function(A,Q,b){return b&&b.internalChannelParams?b.internalChannelParams[A]||Q:Q},su=function(A){this.serverVersion_=0;
this.JSC$19476_outgoingMaps_=[];this.JSC$19476_channelDebug_=new wg;this.JSC$19476_hostPrefix_=this.JSC$19476_backChannelUri_=this.JSC$19476_forwardChannelUri_=this.JSC$19476_path_=this.JSC$19476_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19476_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19476_extraHeaders_=null;this.JSC$19476_nextMapId_=this.JSC$19476_nextRid_=0;this.JSC$19476_failFast_=NU("failFast",!1,A);this.enableStreaming_=this.JSC$19476_deadBackChannelTimerId_=
this.JSC$19476_backChannelTimerId_=this.JSC$19476_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19476_lastPostResponseArrayId_=this.JSC$19476_lastArrayId_=-1;this.JSC$19476_backChannelAttemptId_=this.JSC$19476_backChannelRetryCount_=this.JSC$19476_forwardChannelRetryCount_=0;this.JSC$19476_baseRetryDelayMs_=NU("baseRetryDelayMs",5E3,A);this.JSC$19476_retryDelaySeedMs_=NU("retryDelaySeedMs",1E4,A);this.JSC$19476_forwardChannelMaxRetries_=
NU("forwardChannelMaxRetries",2,A);this.JSC$19476_forwardChannelRequestTimeoutMs_=NU("forwardChannelRequestTimeoutMs",2E4,A);this.JSC$19476_xmlHttpFactory_=A&&A.xmlHttpFactory||void 0;this.networkTestUrl_=A&&A.networkTestUrl||void 0;this.usesFetchStreams_=A&&A.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19476_supportsCrossDomainXhrs_=A&&A.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new $$q(A&&A.concurrentRequestLimit);this.wireCodec_=new amx;this.fastHandshake_=
A&&A.fastHandshake||!1;this.encodeInitMessageHeaders_=A&&A.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19476_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=A&&A.blockingHandshake||!1;A&&A.disableRedact&&this.JSC$19476_channelDebug_.disableRedact();A&&A.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
A&&A.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;A&&A.longPollingTimeout&&A.longPollingTimeout>0&&(this.longPollingTimeout_=A.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
su.prototype.JSC$19478_channelVersion_=8;su.prototype.state_=1;
su.prototype.connect=function(A,Q,b,f){this.JSC$19476_channelDebug_.debug("connect()");cN(0);this.JSC$19476_path_=A;this.JSC$19476_extraParams_=Q||{};b&&f!==void 0&&(this.JSC$19476_extraParams_.OSID=b,this.JSC$19476_extraParams_.OAID=f);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19476_channelDebug_.debug("connectChannel_()");A=TbN(this,null,this.JSC$19476_path_);this.JSC$19476_channelDebug_.debug("GetForwardChannelUri: "+A);this.JSC$19476_forwardChannelUri_=A;dFx(this)};
su.prototype.disconnect=function(){this.JSC$19476_channelDebug_.debug("disconnect()");Fft(this);if(this.state_==3){var A=this.JSC$19476_nextRid_++,Q=this.JSC$19476_forwardChannelUri_.clone();_.wv(Q,"SID",this.sid_);_.wv(Q,"RID",A);_.wv(Q,"TYPE","terminate");mu(this,Q);A=new ZY(this,this.JSC$19476_channelDebug_,this.sid_,A);A.JSC$19457_type_=2;A.JSC$19457_baseUri_=_.Xh(Q.clone());Q=!1;if(_.by.navigator&&_.by.navigator.sendBeacon)try{Q=_.by.navigator.sendBeacon(A.JSC$19457_baseUri_.toString(),"")}catch(b){}!Q&&
_.by.Image&&((new Image).src=A.JSC$19457_baseUri_,Q=!0);Q||(A.JSC$19457_xmlHttp_=t_K(A.JSC$19457_channel_,null),A.JSC$19457_xmlHttp_.send(A.JSC$19457_baseUri_));A.JSC$19457_requestStartTime_=Date.now();o4l(A)}Gdd(this)};
var ZUx=function(A){A.JSC$19476_backChannelRequest_&&(cVx(A),A.JSC$19476_backChannelRequest_.cancel(),A.JSC$19476_backChannelRequest_=null)},Fft=function(A){ZUx(A);
A.JSC$19476_backChannelTimerId_&&(_.by.clearTimeout(A.JSC$19476_backChannelTimerId_),A.JSC$19476_backChannelTimerId_=null);u1x(A);A.forwardChannelRequestPool_.cancel();A.JSC$19476_forwardChannelTimerId_&&(typeof A.JSC$19476_forwardChannelTimerId_==="number"&&_.by.clearTimeout(A.JSC$19476_forwardChannelTimerId_),A.JSC$19476_forwardChannelTimerId_=null)};
su.prototype.getState=function(){return this.state_};
var dFx=function(A){NPq(A.forwardChannelRequestPool_)||A.JSC$19476_forwardChannelTimerId_||(A.JSC$19476_forwardChannelTimerId_=!0,_.CG(A.JSC$19478_onStartForwardChannelTimer_,A),A.JSC$19476_forwardChannelRetryCount_=0)},pTK=function(A,Q){if(Y1F(A.forwardChannelRequestPool_)>=A.forwardChannelRequestPool_.JSC$19467_maxSize_-(A.JSC$19476_forwardChannelTimerId_?1:0))return!1;
if(A.JSC$19476_forwardChannelTimerId_)return A.JSC$19476_channelDebug_.debug("Use the retry request that is already scheduled."),A.JSC$19476_outgoingMaps_=Q.JSC$19457_pendingMessages_.concat(A.JSC$19476_outgoingMaps_),!0;if(A.state_==1||A.state_==2||A.JSC$19476_forwardChannelRetryCount_>=(A.JSC$19476_failFast_?0:A.JSC$19476_forwardChannelMaxRetries_))return!1;A.JSC$19476_channelDebug_.debug("Going to retry POST");A.JSC$19476_forwardChannelTimerId_=zw((0,_.IL)(A.JSC$19478_onStartForwardChannelTimer_,
A,Q),BbK(A,A.JSC$19476_forwardChannelRetryCount_));A.JSC$19476_forwardChannelRetryCount_++;return!0};
su.prototype.JSC$19478_onStartForwardChannelTimer_=function(A){if(this.JSC$19476_forwardChannelTimerId_)if(this.JSC$19476_forwardChannelTimerId_=null,this.JSC$19476_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!A){this.JSC$19476_channelDebug_.debug("open_()");this.JSC$19476_nextRid_=Math.floor(Math.random()*1E5);A=this.JSC$19476_nextRid_++;var Q=new ZY(this,this.JSC$19476_channelDebug_,"",A),b=this.JSC$19476_extraHeaders_;this.initHeaders_&&(b?(b=_.j2.clone(b),_.j2.extend(b,this.initHeaders_)):
b=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(Q.JSC$19457_extraHeaders_=b,b=null);var f;if(this.fastHandshake_)a:{for(var a=f=0;a<this.JSC$19476_outgoingMaps_.length;a++){b:{var T=this.JSC$19476_outgoingMaps_[a];if("__data__"in T.map&&(T=T.map.__data__,typeof T==="string")){T=T.length;break b}T=void 0}if(T===void 0)break;f+=T;if(f>4096){f=a;break a}if(f===4096||a===this.JSC$19476_outgoingMaps_.length-1){f=a+1;break a}}f=1E3}else f=1E3;f=P_M(this,Q,f);
a=this.JSC$19476_forwardChannelUri_.clone();_.wv(a,"RID",A);_.wv(a,"CVER",22);this.httpSessionIdParam_&&_.wv(a,"X-HTTP-Session-Id",this.httpSessionIdParam_);mu(this,a);b&&(this.encodeInitMessageHeaders_?f="headers="+_.ud(q2t(b))+"&"+f:this.httpHeadersOverwriteParam_&&oUx(a,this.httpHeadersOverwriteParam_,b));sWn(this.forwardChannelRequestPool_,Q);this.blockingHandshake_&&_.wv(a,"TYPE","init");this.fastHandshake_?(_.wv(a,"$req",f),_.wv(a,"SID","null"),Q.decodeInitialResponse_=!0,q1F(Q,a,null)):q1F(Q,
a,f);this.state_=2}}else this.state_==3&&(A?XTq(this,A):this.JSC$19476_outgoingMaps_.length==0?this.JSC$19476_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):NPq(this.forwardChannelRequestPool_)||(XTq(this),this.JSC$19476_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var XTq=function(A,Q){var b;Q?b=Q.JSC$19457_rid_:b=A.JSC$19476_nextRid_++;var f=A.JSC$19476_forwardChannelUri_.clone();_.wv(f,"SID",A.sid_);_.wv(f,"RID",b);_.wv(f,"AID",A.JSC$19476_lastArrayId_);mu(A,f);A.httpHeadersOverwriteParam_&&A.JSC$19476_extraHeaders_&&oUx(f,A.httpHeadersOverwriteParam_,A.JSC$19476_extraHeaders_);b=new ZY(A,A.JSC$19476_channelDebug_,A.sid_,b,A.JSC$19476_forwardChannelRetryCount_+1);A.httpHeadersOverwriteParam_===null&&(b.JSC$19457_extraHeaders_=A.JSC$19476_extraHeaders_);Q&&
(A.JSC$19476_outgoingMaps_=Q.JSC$19457_pendingMessages_.concat(A.JSC$19476_outgoingMaps_));Q=P_M(A,b,1E3);b.setTimeout(Math.round(A.JSC$19476_forwardChannelRequestTimeoutMs_*.5)+Math.round(A.JSC$19476_forwardChannelRequestTimeoutMs_*.5*Math.random()));sWn(A.forwardChannelRequestPool_,b);q1F(b,f,Q)},mu=function(A,Q){A.JSC$19476_extraParams_&&_.j2.forEach(A.JSC$19476_extraParams_,function(b,f){_.wv(Q,f,b)});
A.handler_&&_.j2.forEach({},function(b,f){_.wv(Q,f,b)})},P_M=function(A,Q,b){b=Math.min(A.JSC$19476_outgoingMaps_.length,b);
var f=A.handler_?(0,_.IL)(A.handler_.JSC$19482_badMapError,A.handler_,A):null;a:{for(var a=A.JSC$19476_outgoingMaps_,T=-1;;){var G=["count="+b];T==-1?b>0?(T=a[0].JSC$19464_mapId,G.push("ofs="+T)):T=0:G.push("ofs="+T);for(var p=!0,P=0;P<b;P++){var U=a[P].JSC$19464_mapId,L=a[P].map;U-=T;if(U<0)T=Math.max(0,a[P].JSC$19464_mapId-100),p=!1;else try{U="req"+U+"_"||"";try{var M=L instanceof Map?L:Object.entries(L);for(var l=_.F(M),J=l.next();!J.done;J=l.next()){var n=_.F(J.value),t=n.next().value,g=n.next().value,
e=g;_.ZU(g)&&(e=(0,_.jV)(g));G.push(U+t+"="+encodeURIComponent(e))}}catch(x){throw G.push(U+"type="+encodeURIComponent("_badmap")),x;}}catch(x){f&&f(L)}}if(p){M=G.join("&");break a}}M=void 0}A=A.JSC$19476_outgoingMaps_.splice(0,b);Q.JSC$19457_pendingMessages_=A;return M},S0N=function(A){A.JSC$19476_backChannelRequest_||A.JSC$19476_backChannelTimerId_||(A.JSC$19476_backChannelAttemptId_=1,_.CG(A.JSC$19478_onStartBackChannelTimer_,A),A.JSC$19476_backChannelRetryCount_=0)},yVs=function(A){if(A.JSC$19476_backChannelRequest_||
A.JSC$19476_backChannelTimerId_||A.JSC$19476_backChannelRetryCount_>=3)return!1;
A.JSC$19476_channelDebug_.debug("Going to retry GET");A.JSC$19476_backChannelAttemptId_++;A.JSC$19476_backChannelTimerId_=zw((0,_.IL)(A.JSC$19478_onStartBackChannelTimer_,A),BbK(A,A.JSC$19476_backChannelRetryCount_));A.JSC$19476_backChannelRetryCount_++;return!0};
su.prototype.JSC$19478_onStartBackChannelTimer_=function(){this.JSC$19476_backChannelTimerId_=null;UFK(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19476_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19476_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19476_backChannelRequest_+" "+this.handshakeRttMs_);else{var A=4*this.handshakeRttMs_;this.JSC$19476_channelDebug_.info("BP detection timer enabled: "+A);this.bpDetectionTimerId_=zw((0,_.IL)(this.onBpDetectionTimer_,
this),A)}};
su.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19476_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19476_backChannelRequest_.JSC$19457_xmlHttp_!=null){var A=this.JSC$19476_backChannelRequest_.JSC$19457_xmlHttp_.getResponseText();A&&this.JSC$19476_channelDebug_.warning("Timer should have been cancelled : "+A)}this.JSC$19476_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;cN(10);ZUx(this);UFK(this)}else this.JSC$19476_channelDebug_.warning("Invalid operation.")};
var cVx=function(A){A.bpDetectionTimerId_!=null&&(A.JSC$19476_channelDebug_.debug("Cancel the BP detection timer."),_.by.clearTimeout(A.bpDetectionTimerId_),A.bpDetectionTimerId_=null)},UFK=function(A){A.JSC$19476_channelDebug_.debug("Creating new HttpRequest");
A.JSC$19476_backChannelRequest_=new ZY(A,A.JSC$19476_channelDebug_,A.sid_,"rpc",A.JSC$19476_backChannelAttemptId_);A.httpHeadersOverwriteParam_===null&&(A.JSC$19476_backChannelRequest_.JSC$19457_extraHeaders_=A.JSC$19476_extraHeaders_);A.JSC$19476_backChannelRequest_.JSC$19457_readyStateChangeThrottleMs_=0;var Q=A.JSC$19476_backChannelUri_.clone();_.wv(Q,"RID","rpc");_.wv(Q,"SID",A.sid_);_.wv(Q,"AID",A.JSC$19476_lastArrayId_);_.wv(Q,"CI",A.enableStreaming_?"0":"1");!A.enableStreaming_&&A.longPollingTimeout_&&
_.wv(Q,"TO",A.longPollingTimeout_);_.wv(Q,"TYPE","xmlhttp");mu(A,Q);A.httpHeadersOverwriteParam_&&A.JSC$19476_extraHeaders_&&oUx(Q,A.httpHeadersOverwriteParam_,A.JSC$19476_extraHeaders_);A.backChannelRequestTimeoutMs_&&A.JSC$19476_backChannelRequest_.setTimeout(A.backChannelRequestTimeoutMs_);var b=A.JSC$19476_backChannelRequest_,f=A.JSC$19476_hostPrefix_;b.JSC$19457_type_=1;b.JSC$19457_baseUri_=_.Xh(Q.clone());b.JSC$19457_postData_=null;b.decodeChunks_=!0;CId(b,f);A.JSC$19476_channelDebug_.debug("New Request created")};
su.prototype.JSC$19478_onBackChannelDead_=function(){this.JSC$19476_deadBackChannelTimerId_!=null&&(this.JSC$19476_deadBackChannelTimerId_=null,ZUx(this),yVs(this),cN(19))};
var u1x=function(A){A.JSC$19476_deadBackChannelTimerId_!=null&&(_.by.clearTimeout(A.JSC$19476_deadBackChannelTimerId_),A.JSC$19476_deadBackChannelTimerId_=null)},v4O=function(A,Q){A.JSC$19476_channelDebug_.debug("Request complete");
var b=null;if(A.JSC$19476_backChannelRequest_==Q){u1x(A);cVx(A);A.JSC$19476_backChannelRequest_=null;var f=2}else if(wBO(A.forwardChannelRequestPool_,Q))b=Q.JSC$19457_pendingMessages_,m$l(A.forwardChannelRequestPool_,Q),f=1;else return;if(A.state_!=0)if(Q.JSC$19457_successful_)f==1?(K2F(Q.JSC$19457_postData_?Q.JSC$19457_postData_.length:0,Date.now()-Q.JSC$19457_requestStartTime_,A.JSC$19476_forwardChannelRetryCount_),dFx(A)):S0N(A);else{var a=Q.JSC$19457_lastStatusCode_,T=Q.getLastError();if(T==3||
T==0&&a>0)A.JSC$19476_channelDebug_.debug("Not retrying due to error type"),a>200&&(A.errorResponseStatusCode_=Q.JSC$19457_lastStatusCode_);else{A.JSC$19476_channelDebug_.debug(function(){return"Maybe retrying, last error: "+kSx(T,A.errorResponseStatusCode_)});
if(f==1&&pTK(A,Q)||f==2&&yVs(A))return;A.JSC$19476_channelDebug_.debug("Exceeded max number of retries")}b&&b.length>0&&Q1N(A.forwardChannelRequestPool_,b);A.JSC$19476_channelDebug_.debug("Error: HTTP request failed");switch(T){case 1:DY(A,5);break;case 4:DY(A,10);break;case 3:DY(A,6);break;default:DY(A,2)}}},BbK=function(A,Q){var b=A.JSC$19476_baseRetryDelayMs_+Math.floor(Math.random()*A.JSC$19476_retryDelaySeedMs_);
A.isActive()||(A.JSC$19476_channelDebug_.debug("Inactive channel"),b*=2);return b*Q};
su.prototype.onInput_=function(A,Q){for(var b=0;b<A.length;b++){var f=A[b];this.JSC$19476_lastArrayId_=f[0];f=f[1];if(this.state_==2)if(f[0]=="c"){this.sid_=f[1];this.JSC$19476_hostPrefix_=f[2];var a=f[3];a!=null&&(this.JSC$19478_channelVersion_=a,this.JSC$19476_channelDebug_.info("VER="+this.JSC$19478_channelVersion_));a=f[4];a!=null&&(this.serverVersion_=a,this.JSC$19476_channelDebug_.info("SVER="+this.serverVersion_));f=f[5];f!=null&&typeof f==="number"&&f>0&&(this.backChannelRequestTimeoutMs_=
f*=1.5,this.JSC$19476_channelDebug_.info("backChannelRequestTimeoutMs_="+f));if(f=Q.JSC$19457_xmlHttp_){var T=ef(f,"X-Client-Wire-Protocol");T&&(a=this.forwardChannelRequestPool_,!a.requestPool_&&(_.Pe(T,"spdy")||_.Pe(T,"quic")||_.Pe(T,"h2"))&&(a.JSC$19467_maxSize_=a.maxPoolSizeConfigured_,a.requestPool_=new Set,a.JSC$19467_request_&&(sWn(a,a.JSC$19467_request_),a.JSC$19467_request_=null)));this.httpSessionIdParam_&&((f=ef(f,"X-HTTP-Session-Id"))?(this.httpSessionId_=f,_.wv(this.JSC$19476_forwardChannelUri_,
this.httpSessionIdParam_,f)):this.JSC$19476_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19482_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-Q.JSC$19457_requestStartTime_,this.JSC$19476_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));f=Q;a=TbN(this,this.JSC$19476_supportsCrossDomainXhrs_?this.JSC$19476_hostPrefix_:null,this.JSC$19476_path_);this.JSC$19476_channelDebug_.debug("GetBackChannelUri: "+
a);this.JSC$19476_backChannelUri_=a;f.initialResponseDecoded_?(this.JSC$19476_channelDebug_.debug("Upgrade the handshake request to a backchannel."),m$l(this.forwardChannelRequestPool_,f),a=f,(T=this.backChannelRequestTimeoutMs_)&&a.setTimeout(T),a.JSC$19457_watchDogTimerId_&&(R$t(a),o4l(a)),this.JSC$19476_backChannelRequest_=f):S0N(this);this.JSC$19476_outgoingMaps_.length>0&&dFx(this)}else f[0]!="stop"&&f[0]!="close"||DY(this,7);else this.state_==3&&(f[0]=="stop"||f[0]=="close"?f[0]=="stop"?DY(this,
7):this.disconnect():f[0]!="noop"&&this.handler_&&this.handler_.JSC$19482_channelHandleArray(f),this.JSC$19476_backChannelRetryCount_=0)}};
var DY=function(A,Q){A.JSC$19476_channelDebug_.info("Error code "+Q);if(Q==2){var b=(0,_.IL)(A.testNetworkCallback_,A),f=A.networkTestUrl_,a=!f;f=new _.m7(f||"//www.google.com/images/cleardot.gif");_.by.location&&_.by.location.protocol=="http"||_.fo(f,"https");_.Xh(f);a?bnq(f.toString(),b):fmO(f.toString(),b)}else cN(2);A.onError_(Q)};
su.prototype.testNetworkCallback_=function(A){A?(this.JSC$19476_channelDebug_.info("Successfully pinged google.com"),cN(2)):(this.JSC$19476_channelDebug_.info("Failed to ping google.com"),cN(1))};
su.prototype.onError_=function(A){this.JSC$19476_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$19482_channelError(A);Gdd(this);Fft(this)};
var Gdd=function(A){A.state_=0;A.nonAckedMapsAtChannelClose_=[];if(A.handler_){var Q=A2x(A.forwardChannelRequestPool_);if(Q.length!=0||A.JSC$19476_outgoingMaps_.length!=0)A.JSC$19476_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+Q.length+", outgoing: "+A.JSC$19476_outgoingMaps_.length}),_.zX(A.nonAckedMapsAtChannelClose_,Q),_.zX(A.nonAckedMapsAtChannelClose_,A.JSC$19476_outgoingMaps_),A.forwardChannelRequestPool_.JSC$19467_pendingMessages_.length=0,_.xC(A.JSC$19476_outgoingMaps_),
A.JSC$19476_outgoingMaps_.length=0;
A.handler_.JSC$19482_channelClosed()}},LfO=function(A){if(A.state_==0)return A.nonAckedMapsAtChannelClose_;
var Q=[];_.zX(Q,A2x(A.forwardChannelRequestPool_));_.zX(Q,A.JSC$19476_outgoingMaps_);return Q},TbN=function(A,Q,b){var f=_.co(b);
f.JSC$9973_domain_!=""?(Q&&_.aj(f,Q+"."+f.JSC$9973_domain_),_.Tf(f,f.JSC$9973_port_)):(f=_.by.location,f=LUx(f.protocol,Q?Q+"."+f.hostname:f.hostname,+f.port,b));Q=A.httpSessionIdParam_;b=A.httpSessionId_;Q&&b&&_.wv(f,Q,b);_.wv(f,"VER",A.JSC$19478_channelVersion_);mu(A,f);return f},t_K=function(A,Q,b){if(Q&&!A.JSC$19476_supportsCrossDomainXhrs_)throw Error("yk");
Q=A.usesFetchStreams_&&!A.JSC$19476_xmlHttpFactory_?new _.RH(new me({streamBinaryChunks:b})):new _.RH(A.JSC$19476_xmlHttpFactory_);Q.JSC$9738_withCredentials_=A.JSC$19476_supportsCrossDomainXhrs_;return Q};
su.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var MbF=function(){};
_.d=MbF.prototype;_.d.JSC$19482_channelOpened=function(){};
_.d.JSC$19482_channelHandleArray=function(){};
_.d.JSC$19482_channelError=function(){};
_.d.JSC$19482_channelClosed=function(){};
_.d.isActive=function(){return!0};
_.d.JSC$19482_badMapError=function(){};var lmF=function(){},Qm=function(A,Q){_.IH.call(this);
this.JSC$19485_channel_=new su(Q);this.JSC$19485_url_=A;this.messageUrlParams_=Q&&Q.messageUrlParams||null;A=Q&&Q.messageHeaders||null;Q&&Q.clientProtocolHeaderRequired&&(A?_.j2.set(A,"X-Client-Protocol","webchannel"):A=_.j2.create("X-Client-Protocol","webchannel"));this.JSC$19485_channel_.JSC$19476_extraHeaders_=A;A=Q&&Q.initMessageHeaders||null;Q&&Q.messageContentType&&(A?_.j2.set(A,"X-WebChannel-Content-Type",Q.messageContentType):A=_.j2.create("X-WebChannel-Content-Type",Q.messageContentType));
Q&&Q.clientProfile&&(A?_.j2.set(A,"X-WebChannel-Client-Profile",Q.clientProfile):A=_.j2.create("X-WebChannel-Client-Profile",Q.clientProfile));this.JSC$19485_channel_.initHeaders_=A;(A=Q&&Q.httpHeadersOverwriteParam)&&!_.Be(A)&&(this.JSC$19485_channel_.httpHeadersOverwriteParam_=A);this.supportsCrossDomainXhr_=Q&&Q.supportsCrossDomainXhr||!1;this.sendRawJson_=Q&&Q.sendRawJson||!1;(Q=Q&&Q.httpSessionIdParam)&&!_.Be(Q)&&(this.JSC$19485_channel_.httpSessionIdParam_=Q,_.j2.containsKey(this.messageUrlParams_,
Q)&&_.j2.remove(this.messageUrlParams_,Q));this.channelHandler_=new AN(this)};
_.BD(Qm,_.IH);Qm.prototype.open=function(){this.JSC$19485_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19485_channel_.JSC$19476_supportsCrossDomainXhrs_=!0);this.JSC$19485_channel_.connect(this.JSC$19485_url_,this.messageUrlParams_||void 0)};
Qm.prototype.close=function(){this.JSC$19485_channel_.disconnect()};
Qm.prototype.send=function(A){var Q=this.JSC$19485_channel_;if(typeof A==="string"){var b={};b.__data__=A;A=b}else this.sendRawJson_&&(b={},b.__data__=(0,_.jV)(A),A=b);Q.JSC$19476_outgoingMaps_.push(new D$x(Q.JSC$19476_nextMapId_++,A));Q.state_==3&&dFx(Q)};
Qm.prototype.disposeInternal=function(){this.JSC$19485_channel_.handler_=null;delete this.channelHandler_;this.JSC$19485_channel_.disconnect();delete this.JSC$19485_channel_;Qm.superClass_.disposeInternal.call(this)};
var Kf7=function(A){PIt.call(this);A.__headers__&&(this.headers=A.__headers__,this.statusCode=A.__status__,delete A.__headers__,delete A.__status__);var Q=A.__sm__;Q?this.data=(this.metadataKey=_.j2.getAnyKey(Q))?_.j2.get(Q,this.metadataKey):Q:this.data=A};
_.BD(Kf7,PIt);var inN=function(A){XBN.call(this);this.status=1;this.errorCode=A};
_.BD(inN,XBN);var AN=function(A){this.JSC$19492_channel_=A};
_.BD(AN,MbF);AN.prototype.JSC$19482_channelOpened=function(){this.JSC$19492_channel_.dispatchEvent("w")};
AN.prototype.JSC$19482_channelHandleArray=function(A){this.JSC$19492_channel_.dispatchEvent(new Kf7(A))};
AN.prototype.JSC$19482_channelError=function(A){this.JSC$19492_channel_.dispatchEvent(new inN(A))};
AN.prototype.JSC$19482_channelClosed=function(){this.JSC$19492_channel_.dispatchEvent("x")};
var J2N=function(A,Q){this.transportChannel_=A;this.JSC$19495_channel_=Q},VbK=function(A){return LfO(A.JSC$19495_channel_).map(function(Q){var b=A.transportChannel_;
Q=Q.map;"__data__"in Q?(Q=Q.__data__,b=b.sendRawJson_?(0,_.KK$)(Q):Q):b=Q;return b})};
J2N.prototype.commit=function(A){this.JSC$19495_channel_.forwardChannelFlushedCallback_=A};var b8=function(A){Ons.dispatchEvent(new n7l(Ons,A))},Ons=new _.IH,n7l=function(A,Q){_.J1.call(this,"statevent",A);
this.stat=Q};
_.O(n7l,_.J1);var fx=function(A,Q,b,f,a){this.JSC$19500_channel_=A;this.JSC$19500_channelDebug_=Q;this.sid_=b;this.JSC$19500_rid_=f;this.JSC$19500_retryId_=a||1;this.timeout_=45E3;this.JSC$19500_eventHandler_=new _.BR(this);this.pollingTimer_=new _.GL;this.pollingTimer_.setInterval(250)};
_.d=fx.prototype;_.d.JSC$19502_extraHeaders_=null;_.d.JSC$19502_successful_=!1;_.d.JSC$19502_watchDogTimerId_=null;_.d.JSC$19502_watchDogTimeoutTime_=null;_.d.JSC$19502_requestStartTime_=null;_.d.JSC$19502_type_=null;_.d.JSC$19502_baseUri_=null;_.d.JSC$19502_requestUri_=null;_.d.JSC$19502_postData_=null;_.d.JSC$19502_xmlHttp_=null;_.d.JSC$19502_xmlHttpChunkStart_=0;_.d.trident_=null;_.d.JSC$19502_verb_=null;_.d.JSC$19502_lastError_=null;_.d.JSC$19502_lastStatusCode_=-1;_.d.sendClose_=!0;
_.d.JSC$19502_cancelled_=!1;_.d.JSC$19502_readyStateChangeThrottleMs_=0;_.d.JSC$19502_readyStateChangeThrottle_=null;var kdF=function(A,Q){switch(A){case 0:return"Non-200 return code ("+Q+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},ImN={},Hnx={};
fx.prototype.setTimeout=function(A){this.timeout_=A};
var KcK=function(A,Q,b){A.JSC$19502_type_=1;A.JSC$19502_baseUri_=_.Xh(Q.clone());A.JSC$19502_postData_=b;A.decodeChunks_=!0;C_r(A,null)},i2K=function(A,Q,b,f,a){A.JSC$19502_type_=1;
A.JSC$19502_baseUri_=_.Xh(Q.clone());A.JSC$19502_postData_=null;A.decodeChunks_=b;a&&(A.sendClose_=!1);C_r(A,f)},C_r=function(A,Q){A.JSC$19502_requestStartTime_=Date.now();
JYn(A);A.JSC$19502_requestUri_=A.JSC$19502_baseUri_.clone();qw(A.JSC$19502_requestUri_,"t",A.JSC$19500_retryId_);A.JSC$19502_xmlHttpChunkStart_=0;A.JSC$19502_xmlHttp_=A.JSC$19500_channel_.JSC$19509_createXhrIo(A.JSC$19500_channel_.JSC$19509_shouldUseSecondaryDomains()?Q:null);A.JSC$19502_readyStateChangeThrottleMs_>0&&(A.JSC$19502_readyStateChangeThrottle_=new _.Ac((0,_.IL)(A.JSC$19502_xmlHttpHandler_,A,A.JSC$19502_xmlHttp_),A.JSC$19502_readyStateChangeThrottleMs_));A.JSC$19500_eventHandler_.listen(A.JSC$19502_xmlHttp_,
"readystatechange",A.JSC$19502_readyStateChangeHandler_);Q=A.JSC$19502_extraHeaders_?_.j2.clone(A.JSC$19502_extraHeaders_):{};A.JSC$19502_postData_?(A.JSC$19502_verb_="POST",Q["Content-Type"]="application/x-www-form-urlencoded",A.JSC$19502_xmlHttp_.send(A.JSC$19502_requestUri_,A.JSC$19502_verb_,A.JSC$19502_postData_,Q)):(A.JSC$19502_verb_="GET",A.sendClose_&&!_.Le&&(Q.Connection="close"),A.JSC$19502_xmlHttp_.send(A.JSC$19502_requestUri_,A.JSC$19502_verb_,null,Q));A.JSC$19500_channel_.notifyServerReachabilityEvent(1);
Q=A.JSC$19500_channelDebug_;var b=A.JSC$19502_postData_;if(b){var f="";b=b.split("&");for(var a=0;a<b.length;a++){var T=b[a].split("=");if(T.length>1){var G=T[0];T=T[1];var p=G.split("_");f=p.length>=2&&p[1]=="type"?f+(G+"="+T+"&"):f+(G+"=redacted&")}}}else f=null;Q.info("XMLHTTP REQ ("+A.JSC$19500_rid_+") [attempt "+A.JSC$19500_retryId_+"]: "+A.JSC$19502_verb_+"\n"+A.JSC$19502_requestUri_+"\n"+f)};
fx.prototype.JSC$19502_readyStateChangeHandler_=function(A){A=A.target;var Q=this.JSC$19502_readyStateChangeThrottle_;Q&&_.gr(A)==3?(this.JSC$19500_channelDebug_.debug("Throttling readystatechange."),Q.fire()):this.JSC$19502_xmlHttpHandler_(A)};
fx.prototype.JSC$19502_xmlHttpHandler_=function(A){try{if(A==this.JSC$19502_xmlHttp_)a:{var Q=_.gr(this.JSC$19502_xmlHttp_),b=this.JSC$19502_xmlHttp_.JSC$9738_lastErrorCode_,f=this.JSC$19502_xmlHttp_.getStatus();if(_.Le&&!_.MP("420+")){if(Q<4)break a}else if(Q<3||Q==3&&!this.JSC$19502_xmlHttp_.getResponseText())break a;this.JSC$19502_cancelled_||Q!=4||b==7||(b==8||f<=0?this.JSC$19500_channel_.notifyServerReachabilityEvent(3):this.JSC$19500_channel_.notifyServerReachabilityEvent(2));V3x(this);var a=
this.JSC$19502_xmlHttp_.getStatus();this.JSC$19502_lastStatusCode_=a;var T=this.JSC$19502_xmlHttp_.getResponseText();T||this.JSC$19500_channelDebug_.debug("No response text for uri "+this.JSC$19502_requestUri_+" status "+a);this.JSC$19502_successful_=a==200;this.JSC$19500_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19500_rid_+") [ attempt "+this.JSC$19500_retryId_+"]: "+this.JSC$19502_verb_+"\n"+this.JSC$19502_requestUri_+"\n"+Q+" "+a);if(this.JSC$19502_successful_){Q==4&&as(this);if(this.decodeChunks_){for(A=
!0;!this.JSC$19502_cancelled_&&this.JSC$19502_xmlHttpChunkStart_<T.length;){var G=O2s(this,T);if(G==Hnx){Q==4&&(this.JSC$19502_lastError_=4,b8(15),A=!1);TQ(this.JSC$19500_channelDebug_,this.JSC$19500_rid_,null,"[Incomplete Response]");break}else if(G==ImN){this.JSC$19502_lastError_=4;b8(16);TQ(this.JSC$19500_channelDebug_,this.JSC$19500_rid_,T,"[Invalid Chunk]");A=!1;break}else TQ(this.JSC$19500_channelDebug_,this.JSC$19500_rid_,G,null),ngK(this,G)}Q==4&&T.length==0&&(this.JSC$19502_lastError_=1,
b8(17),A=!1);this.JSC$19502_successful_=this.JSC$19502_successful_&&A;A||(TQ(this.JSC$19500_channelDebug_,this.JSC$19500_rid_,T,"[Invalid Chunked Response]"),as(this),kmx(this))}else TQ(this.JSC$19500_channelDebug_,this.JSC$19500_rid_,T,null),ngK(this,T);this.JSC$19502_successful_&&!this.JSC$19502_cancelled_&&(Q==4?this.JSC$19500_channel_.JSC$19509_onRequestComplete(this):(this.JSC$19502_successful_=!1,JYn(this)))}else a==400&&T.indexOf("Unknown SID")>0?(this.JSC$19502_lastError_=3,b8(13),this.JSC$19500_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19500_rid_+")")):(this.JSC$19502_lastError_=0,b8(14),this.JSC$19500_channelDebug_.warning("XMLHTTP Bad status "+a+" ("+this.JSC$19500_rid_+")")),as(this),kmx(this)}else this.JSC$19500_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(p){this.JSC$19500_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var O2s=function(A,Q){var b=A.JSC$19502_xmlHttpChunkStart_,f=Q.indexOf("\n",b);if(f==-1)return Hnx;b=Number(Q.substring(b,f));if(isNaN(b))return ImN;f+=1;if(f+b>Q.length)return Hnx;Q=Q.slice(f,f+b);A.JSC$19502_xmlHttpChunkStart_=f+b;return Q};
fx.prototype.cancel=function(){this.JSC$19502_cancelled_=!0;as(this)};
var JYn=function(A){A.JSC$19502_watchDogTimeoutTime_=Date.now()+A.timeout_;IXr(A,A.timeout_)},IXr=function(A,Q){if(A.JSC$19502_watchDogTimerId_!=null)throw Error("xk");
A.JSC$19502_watchDogTimerId_=Yb((0,_.IL)(A.JSC$19502_onWatchDogTimeout_,A),Q)},V3x=function(A){A.JSC$19502_watchDogTimerId_&&(_.by.clearTimeout(A.JSC$19502_watchDogTimerId_),A.JSC$19502_watchDogTimerId_=null)};
fx.prototype.JSC$19502_onWatchDogTimeout_=function(){this.JSC$19502_watchDogTimerId_=null;var A=Date.now();A-this.JSC$19502_watchDogTimeoutTime_>=0?(this.JSC$19500_channelDebug_.info("TIMEOUT: "+this.JSC$19502_requestUri_),this.JSC$19502_type_!=2&&this.JSC$19500_channel_.notifyServerReachabilityEvent(3),as(this),this.JSC$19502_lastError_=2,b8(18),kmx(this)):(this.JSC$19500_channelDebug_.warning("WatchDog timer called too early"),IXr(this,this.JSC$19502_watchDogTimeoutTime_-A))};
var kmx=function(A){A.JSC$19500_channel_.JSC$19509_isClosed()||A.JSC$19502_cancelled_||A.JSC$19500_channel_.JSC$19509_onRequestComplete(A)},as=function(A){V3x(A);
_.AT(A.JSC$19502_readyStateChangeThrottle_);A.JSC$19502_readyStateChangeThrottle_=null;A.pollingTimer_.stop();A.JSC$19500_eventHandler_.removeAll();if(A.JSC$19502_xmlHttp_){var Q=A.JSC$19502_xmlHttp_;A.JSC$19502_xmlHttp_=null;Q.abort();Q.dispose()}A.trident_&&(A.trident_=null)};
fx.prototype.getLastError=function(){return this.JSC$19502_lastError_};
var ngK=function(A,Q){try{A.JSC$19500_channel_.JSC$19509_onRequestData(A,Q),A.JSC$19500_channel_.notifyServerReachabilityEvent(4)}catch(b){}};var TQ=function(A,Q,b,f){var a=A.info;a:if(b&&b!="y2f%"){try{var T=JSON.parse(b);if(T)for(var G=0;G<T.length;G++)if(Array.isArray(T[G])){var p=T[G];if(!(p.length<2)){var P=p[1];if(Array.isArray(P)&&!(P.length<1)){var U=P[0];if(U!="noop"&&U!="stop")for(var L=1;L<P.length;L++)P[L]=""}}}var M=(0,_.jV)(T);break a}catch(l){A.debug("Exception parsing expected JS array - probably was not JS");M=b;break a}M=void 0}else M=b;a.call(A,"XMLHTTP TEXT ("+Q+"): "+M+(f?" "+f:""))};
DC.prototype.debug=function(A){this.info(A)};
DC.prototype.info=function(){};
DC.prototype.warning=function(){};var H2x=function(A,Q){this.JSC$19507_channel_=A;this.JSC$19507_channelDebug_=Q;this.JSC$19507_parser_=new Eu};
_.d=H2x.prototype;_.d.JSC$19509_extraHeaders_=null;_.d.JSC$19509_request_=null;_.d.receivedIntermediateResult_=!1;_.d.JSC$19509_path_=null;_.d.state_=null;_.d.JSC$19509_lastStatusCode_=-1;_.d.JSC$19509_hostPrefix_=null;_.d.blockedPrefix_=null;
_.d.connect=function(A){this.JSC$19509_path_=A;A=C$N(this.JSC$19507_channel_,this.JSC$19509_path_);b8(3);Date.now();var Q=this.JSC$19507_channel_.firstTestResults_;Q!=null?(this.JSC$19509_hostPrefix_=Q[0],(this.blockedPrefix_=Q[1])?(this.state_=1,qZs(this)):(this.state_=2,ogq(this))):(qw(A,"MODE","init"),this.JSC$19509_request_=new fx(this,this.JSC$19507_channelDebug_),this.JSC$19509_request_.JSC$19502_extraHeaders_=this.JSC$19509_extraHeaders_,i2K(this.JSC$19509_request_,A,!1,null,!0),this.state_=
0)};
var qZs=function(A){var Q=t3t(A.JSC$19507_channel_,A.blockedPrefix_,"/mail/images/cleardot.gif");_.Xh(Q);sXN(Q.toString(),5E3,(0,_.IL)(A.checkBlockedCallback_,A),3,2E3);A.notifyServerReachabilityEvent(1)};
H2x.prototype.checkBlockedCallback_=function(A){if(A)this.state_=2,ogq(this);else{b8(4);var Q=this.JSC$19507_channel_;Q.JSC$19510_channelDebug_.debug("Test Connection Blocked");Q.JSC$19514_lastStatusCode_=Q.connectionTest_.JSC$19509_lastStatusCode_;dC(Q,9)}A&&this.notifyServerReachabilityEvent(2)};
var ogq=function(A){A.JSC$19507_channelDebug_.debug("TestConnection: starting stage 2");var Q=A.JSC$19507_channel_.secondTestResults_;Q!=null?(A.JSC$19507_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+Q?"Buffered":"Unbuffered"),b8(5),Q?(b8(11),FU(A.JSC$19507_channel_,A,!1)):(b8(12),FU(A.JSC$19507_channel_,A,!0))):(A.JSC$19509_request_=new fx(A,A.JSC$19507_channelDebug_),A.JSC$19509_request_.JSC$19502_extraHeaders_=A.JSC$19509_extraHeaders_,Q=rYx(A.JSC$19507_channel_,
A.JSC$19509_hostPrefix_,A.JSC$19509_path_),b8(5),qw(Q,"TYPE","xmlhttp"),i2K(A.JSC$19509_request_,Q,!1,A.JSC$19509_hostPrefix_,!1))};
_.d=H2x.prototype;_.d.JSC$19509_createXhrIo=function(A){return this.JSC$19507_channel_.JSC$19509_createXhrIo(A)};
_.d.abort=function(){this.JSC$19509_request_&&(this.JSC$19509_request_.cancel(),this.JSC$19509_request_=null);this.JSC$19509_lastStatusCode_=-1};
_.d.JSC$19509_isClosed=function(){return!1};
_.d.JSC$19509_onRequestData=function(A,Q){this.JSC$19509_lastStatusCode_=A.JSC$19502_lastStatusCode_;if(this.state_==0)if(this.JSC$19507_channelDebug_.debug("TestConnection: Got data for stage 1"),Q){try{var b=this.JSC$19507_parser_.parse(Q)}catch(f){jRd(this.JSC$19507_channel_,this);return}this.JSC$19509_hostPrefix_=b[0];this.blockedPrefix_=b[1]}else this.JSC$19507_channelDebug_.debug("TestConnection: Null responseText"),jRd(this.JSC$19507_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(b8(7),Date.now()):Q=="11111"?(b8(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19509_lastStatusCode_=200,this.JSC$19509_request_.cancel(),this.JSC$19507_channelDebug_.debug("Test connection succeeded; using streaming connection"),b8(12),FU(this.JSC$19507_channel_,this,!0)):(b8(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.d.JSC$19509_onRequestComplete=function(){this.JSC$19509_lastStatusCode_=this.JSC$19509_request_.JSC$19502_lastStatusCode_;this.JSC$19509_request_.JSC$19502_successful_?this.state_==0?(this.JSC$19507_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,qZs(this)):(this.state_=2,ogq(this))):this.state_==2&&(this.JSC$19507_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19507_channelDebug_.debug("Test connection succeeded; using streaming connection"),
b8(12),FU(this.JSC$19507_channel_,this,!0)):(this.JSC$19507_channelDebug_.debug("Test connection failed; not using streaming"),b8(11),FU(this.JSC$19507_channel_,this,!1))):(this.JSC$19507_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?b8(9):this.state_==2&&b8(10),jRd(this.JSC$19507_channel_,this,this.JSC$19509_request_.getLastError()))};
_.d.JSC$19509_shouldUseSecondaryDomains=function(){return this.JSC$19507_channel_.JSC$19509_shouldUseSecondaryDomains()};
_.d.isActive=function(){return this.JSC$19507_channel_.isActive()};
_.d.notifyServerReachabilityEvent=function(A){this.JSC$19507_channel_.notifyServerReachabilityEvent(A)};var GQ=function(A,Q,b){this.state_=1;this.JSC$19510_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19510_channelDebug_=new DC;this.JSC$19510_parser_=new Eu;this.firstTestResults_=A||null;this.secondTestResults_=Q!=null?Q:null;this.asyncTest_=b||!1},R5x=function(A,Q){this.JSC$19512_mapId=A;
this.map=Q;this.context=null};
_.d=GQ.prototype;_.d.JSC$19514_extraHeaders_=null;_.d.JSC$19514_extraParams_=null;_.d.forwardChannelRequest_=null;_.d.JSC$19514_backChannelRequest_=null;_.d.JSC$19514_path_=null;_.d.JSC$19514_forwardChannelUri_=null;_.d.JSC$19514_backChannelUri_=null;_.d.JSC$19514_hostPrefix_=null;_.d.JSC$19514_nextRid_=0;_.d.JSC$19514_nextMapId_=0;_.d.handler_=null;_.d.JSC$19514_forwardChannelTimerId_=null;_.d.JSC$19514_backChannelTimerId_=null;_.d.JSC$19514_deadBackChannelTimerId_=null;_.d.connectionTest_=null;
_.d.useChunked_=null;_.d.JSC$19514_lastArrayId_=-1;_.d.JSC$19514_lastPostResponseArrayId_=-1;_.d.JSC$19514_lastStatusCode_=-1;_.d.JSC$19514_forwardChannelRetryCount_=0;_.d.JSC$19514_backChannelRetryCount_=0;_.d.JSC$19514_channelVersion_=8;var ggr={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},e5t=function(A,Q,b,f){_.J1.call(this,"timingevent",A);this.size=Q;this.rtt=b;this.retries=f};
_.BD(e5t,_.J1);var h5x=function(A){_.J1.call(this,"serverreachability",A)};
_.BD(h5x,_.J1);GQ.prototype.connect=function(A,Q,b,f,a){this.JSC$19510_channelDebug_.debug("connect()");b8(0);this.JSC$19514_path_=Q;this.JSC$19514_extraParams_=b||{};f&&a!==void 0&&(this.JSC$19514_extraParams_.OSID=f,this.JSC$19514_extraParams_.OAID=a);this.asyncTest_?(Yb((0,_.IL)(this.connectTest_,this,A),100),Wcx(this)):this.connectTest_(A)};
GQ.prototype.disconnect=function(){this.JSC$19510_channelDebug_.debug("disconnect()");vgN(this);if(this.state_==3){var A=this.JSC$19514_nextRid_++,Q=this.JSC$19514_forwardChannelUri_.clone();_.wv(Q,"SID",this.sid_);_.wv(Q,"RID",A);_.wv(Q,"TYPE","terminate");BA(this,Q);A=new fx(this,this.JSC$19510_channelDebug_,this.sid_,A);A.JSC$19502_type_=2;A.JSC$19502_baseUri_=_.Xh(Q.clone());(new Image).src=A.JSC$19502_baseUri_.toString();A.JSC$19502_requestStartTime_=Date.now();JYn(A)}Egn(this)};
GQ.prototype.connectTest_=function(A){this.JSC$19510_channelDebug_.debug("connectTest_()");this.connectionTest_=new H2x(this,this.JSC$19510_channelDebug_);this.connectionTest_.JSC$19509_extraHeaders_=this.JSC$19514_extraHeaders_;this.connectionTest_.JSC$19507_parser_=this.JSC$19510_parser_;this.connectionTest_.connect(A)};
var Wcx=function(A){A.JSC$19510_channelDebug_.debug("connectChannel_()");A.JSC$19514_ensureInState_(1,0);A.JSC$19514_forwardChannelUri_=C$N(A,A.JSC$19514_path_);xks(A)},vgN=function(A){A.connectionTest_&&(A.connectionTest_.abort(),A.connectionTest_=null);
A.JSC$19514_backChannelRequest_&&(A.JSC$19514_backChannelRequest_.cancel(),A.JSC$19514_backChannelRequest_=null);A.JSC$19514_backChannelTimerId_&&(_.by.clearTimeout(A.JSC$19514_backChannelTimerId_),A.JSC$19514_backChannelTimerId_=null);cYN(A);A.forwardChannelRequest_&&(A.forwardChannelRequest_.cancel(),A.forwardChannelRequest_=null);A.JSC$19514_forwardChannelTimerId_&&(_.by.clearTimeout(A.JSC$19514_forwardChannelTimerId_),A.JSC$19514_forwardChannelTimerId_=null)},z5q=function(A,Q){if(A.state_==0)throw Error("Ak");
A.JSC$19510_outgoingMaps_.length==1E3&&A.JSC$19510_parser_.stringify(Q);A.JSC$19510_outgoingMaps_.push(new R5x(A.JSC$19514_nextMapId_++,Q));A.state_!=2&&A.state_!=3||xks(A)};
GQ.prototype.JSC$19509_isClosed=function(){return this.state_==0};
GQ.prototype.getState=function(){return this.state_};
var xks=function(A){A.forwardChannelRequest_||A.JSC$19514_forwardChannelTimerId_||(A.JSC$19514_forwardChannelTimerId_=Yb((0,_.IL)(A.JSC$19514_onStartForwardChannelTimer_,A),0),A.JSC$19514_forwardChannelRetryCount_=0)};
GQ.prototype.JSC$19514_onStartForwardChannelTimer_=function(A){this.JSC$19514_forwardChannelTimerId_=null;w1l(this,A)};
var w1l=function(A,Q){A.JSC$19510_channelDebug_.debug("startForwardChannel_");if(A.state_==1){if(!Q){A.JSC$19510_channelDebug_.debug("open_()");A.JSC$19514_nextRid_=Math.floor(Math.random()*1E5);Q=A.JSC$19514_nextRid_++;var b=new fx(A,A.JSC$19510_channelDebug_,"",Q);b.JSC$19502_extraHeaders_=A.JSC$19514_extraHeaders_;var f=uEN(A),a=A.JSC$19514_forwardChannelUri_.clone();_.wv(a,"RID",Q);_.wv(a,"CVER","1");BA(A,a);KcK(b,a,f);A.forwardChannelRequest_=b;A.state_=2}}else A.state_==3&&(Q?Z2N(A,Q):A.JSC$19510_outgoingMaps_.length==
0?A.JSC$19510_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):A.forwardChannelRequest_||(Z2N(A),A.JSC$19510_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Z2N=function(A,Q){if(Q)if(A.JSC$19514_channelVersion_>6){A.JSC$19510_outgoingMaps_=A.pendingMaps_.concat(A.JSC$19510_outgoingMaps_);
A.pendingMaps_.length=0;var b=A.JSC$19514_nextRid_-1;Q=uEN(A)}else b=Q.JSC$19500_rid_,Q=Q.JSC$19502_postData_;else b=A.JSC$19514_nextRid_++,Q=uEN(A);var f=A.JSC$19514_forwardChannelUri_.clone();_.wv(f,"SID",A.sid_);_.wv(f,"RID",b);_.wv(f,"AID",A.JSC$19514_lastArrayId_);BA(A,f);b=new fx(A,A.JSC$19510_channelDebug_,A.sid_,b,A.JSC$19514_forwardChannelRetryCount_+1);b.JSC$19502_extraHeaders_=A.JSC$19514_extraHeaders_;b.setTimeout(1E4+Math.round(1E4*Math.random()));A.forwardChannelRequest_=b;KcK(b,f,Q)},
BA=function(A,Q){A.handler_&&(A=A.handler_.JSC$19521_getAdditionalParams())&&_.j2.forEach(A,function(b,f){_.wv(Q,f,b)})},uEN=function(A){var Q=Math.min(A.JSC$19510_outgoingMaps_.length,1E3),b=["count="+Q];
if(A.JSC$19514_channelVersion_>6&&Q>0){var f=A.JSC$19510_outgoingMaps_[0].JSC$19512_mapId;b.push("ofs="+f)}else f=0;for(var a={},T=0;T<Q;a={mapId$jscomp$3:void 0},T++){a.mapId$jscomp$3=A.JSC$19510_outgoingMaps_[T].JSC$19512_mapId;var G=A.JSC$19510_outgoingMaps_[T].map;a.mapId$jscomp$3=A.JSC$19514_channelVersion_<=6?T:a.mapId$jscomp$3-f;try{_.j2.forEach(G,function(p){return function(P,U){b.push("req"+p.mapId$jscomp$3+"_"+U+"="+encodeURIComponent(P))}}(a))}catch(p){b.push("req"+a.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}A.pendingMaps_=A.pendingMaps_.concat(A.JSC$19510_outgoingMaps_.splice(0,Q));
return b.join("&")},yYr=function(A){A.JSC$19514_backChannelRequest_||A.JSC$19514_backChannelTimerId_||(A.JSC$19514_backChannelAttemptId_=1,A.JSC$19514_backChannelTimerId_=Yb((0,_.IL)(A.JSC$19514_onStartBackChannelTimer_,A),0),A.JSC$19514_backChannelRetryCount_=0)},Dkd=function(A){if(A.JSC$19514_backChannelRequest_||A.JSC$19514_backChannelTimerId_||A.JSC$19514_backChannelRetryCount_>=3)return!1;
A.JSC$19510_channelDebug_.debug("Going to retry GET");A.JSC$19514_backChannelAttemptId_++;A.JSC$19514_backChannelTimerId_=Yb((0,_.IL)(A.JSC$19514_onStartBackChannelTimer_,A),YZr(A,A.JSC$19514_backChannelRetryCount_));A.JSC$19514_backChannelRetryCount_++;return!0};
GQ.prototype.JSC$19514_onStartBackChannelTimer_=function(){this.JSC$19514_backChannelTimerId_=null;this.JSC$19510_channelDebug_.debug("Creating new HttpRequest");this.JSC$19514_backChannelRequest_=new fx(this,this.JSC$19510_channelDebug_,this.sid_,"rpc",this.JSC$19514_backChannelAttemptId_);this.JSC$19514_backChannelRequest_.JSC$19502_extraHeaders_=this.JSC$19514_extraHeaders_;this.JSC$19514_backChannelRequest_.JSC$19502_readyStateChangeThrottleMs_=0;var A=this.JSC$19514_backChannelUri_.clone();_.wv(A,
"RID","rpc");_.wv(A,"SID",this.sid_);_.wv(A,"CI",this.useChunked_?"0":"1");_.wv(A,"AID",this.JSC$19514_lastArrayId_);BA(this,A);_.wv(A,"TYPE","xmlhttp");i2K(this.JSC$19514_backChannelRequest_,A,!0,this.JSC$19514_hostPrefix_,!1);this.JSC$19510_channelDebug_.debug("New Request created")};
var FU=function(A,Q,b){A.JSC$19510_channelDebug_.debug("Test Connection Finished");A.useChunked_=A.secondTestResults_==null?b:!A.secondTestResults_;A.JSC$19514_lastStatusCode_=Q.JSC$19509_lastStatusCode_;A.asyncTest_||Wcx(A)},jRd=function(A,Q){A.JSC$19510_channelDebug_.debug("Test Connection Failed");
A.JSC$19514_lastStatusCode_=Q.JSC$19509_lastStatusCode_;dC(A,2)};
GQ.prototype.JSC$19509_onRequestData=function(A,Q){if(this.state_!=0&&(this.JSC$19514_backChannelRequest_==A||this.forwardChannelRequest_==A))if(this.JSC$19514_lastStatusCode_=A.JSC$19502_lastStatusCode_,this.forwardChannelRequest_==A&&this.state_==3)if(this.JSC$19514_channelVersion_>7){try{var b=this.JSC$19510_parser_.parse(Q)}catch(f){b=null}if(Array.isArray(b)&&b.length==3)if(Q=b,Q[0]==0)a:if(this.JSC$19510_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19514_backChannelTimerId_)this.JSC$19510_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19514_backChannelRequest_)if(this.JSC$19514_backChannelRequest_.JSC$19502_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19502_requestStartTime_)cYN(this),this.JSC$19514_backChannelRequest_.cancel(),this.JSC$19514_backChannelRequest_=null;else break a;else this.JSC$19510_channelDebug_.warning("We do not have a BackChannel established");Dkd(this);b8(19)}else this.JSC$19514_lastPostResponseArrayId_=Q[1],A=this.JSC$19514_lastPostResponseArrayId_-this.JSC$19514_lastArrayId_,0<
A&&(Q=Q[2],this.JSC$19510_channelDebug_.debug(Q+" bytes (in "+A+" arrays) are outstanding on the BackChannel"),Q<37500&&this.useChunked_&&this.JSC$19514_backChannelRetryCount_==0&&!this.JSC$19514_deadBackChannelTimerId_&&(this.JSC$19514_deadBackChannelTimerId_=Yb((0,_.IL)(this.JSC$19514_onBackChannelDead_,this),6E3)));else this.JSC$19510_channelDebug_.debug("Bad POST response data returned"),dC(this,11)}else Q!="y2f%"&&(this.JSC$19510_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
dC(this,11));else this.JSC$19514_backChannelRequest_==A&&cYN(this),_.Be(Q)||(A=this.JSC$19510_parser_.parse(Q),this.onInput_(A))};
GQ.prototype.JSC$19514_onBackChannelDead_=function(){this.JSC$19514_deadBackChannelTimerId_!=null&&(this.JSC$19514_deadBackChannelTimerId_=null,this.JSC$19514_backChannelRequest_.cancel(),this.JSC$19514_backChannelRequest_=null,Dkd(this),b8(20))};
var cYN=function(A){A.JSC$19514_deadBackChannelTimerId_!=null&&(_.by.clearTimeout(A.JSC$19514_deadBackChannelTimerId_),A.JSC$19514_deadBackChannelTimerId_=null)};
GQ.prototype.JSC$19509_onRequestComplete=function(A){this.JSC$19510_channelDebug_.debug("Request complete");if(this.JSC$19514_backChannelRequest_==A){cYN(this);this.JSC$19514_backChannelRequest_=null;var Q=2}else if(this.forwardChannelRequest_==A)this.forwardChannelRequest_=null,Q=1;else return;this.JSC$19514_lastStatusCode_=A.JSC$19502_lastStatusCode_;if(this.state_!=0)if(A.JSC$19502_successful_)if(Q==1){Q=A.JSC$19502_postData_?A.JSC$19502_postData_.length:0;A=Date.now()-A.JSC$19502_requestStartTime_;
var b=Ons;b.dispatchEvent(new e5t(b,Q,A,this.JSC$19514_forwardChannelRetryCount_));xks(this);this.handler_&&this.handler_.JSC$19521_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else yYr(this);else{b=A.getLastError();if(b==3||b==7||b==0&&this.JSC$19514_lastStatusCode_>0)this.JSC$19510_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19510_channelDebug_.debug("Maybe retrying, last error: "+kdF(b,this.JSC$19514_lastStatusCode_));var f;if(f=Q==1)this.forwardChannelRequest_||
this.JSC$19514_forwardChannelTimerId_||this.state_==1||this.JSC$19514_forwardChannelRetryCount_>=2?f=!1:(this.JSC$19510_channelDebug_.debug("Going to retry POST"),this.JSC$19514_forwardChannelTimerId_=Yb((0,_.IL)(this.JSC$19514_onStartForwardChannelTimer_,this,A),YZr(this,this.JSC$19514_forwardChannelRetryCount_)),this.JSC$19514_forwardChannelRetryCount_++,f=!0);if(f||Q==2&&Dkd(this))return;this.JSC$19510_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19510_channelDebug_.debug("Error: HTTP request failed");
switch(b){case 1:dC(this,5);break;case 4:dC(this,10);break;case 3:dC(this,6);break;case 7:dC(this,12);break;default:dC(this,2)}}};
var YZr=function(A,Q){var b=5E3+Math.floor(Math.random()*1E4);A.isActive()||(A.JSC$19510_channelDebug_.debug("Inactive channel"),b*=2);return b*Q};
GQ.prototype.onInput_=function(A){for(var Q=0;Q<A.length;Q++){var b=A[Q];this.JSC$19514_lastArrayId_=b[0];b=b[1];this.state_==2?b[0]=="c"?(this.sid_=b[1],this.JSC$19514_hostPrefix_=b[2],b=b[3],b!=null?this.JSC$19514_channelVersion_=b:this.JSC$19514_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19521_channelOpened(),this.JSC$19514_backChannelUri_=rYx(this,this.JSC$19514_hostPrefix_,this.JSC$19514_path_),yYr(this)):b[0]=="stop"&&dC(this,7):this.state_==3&&(b[0]=="stop"?dC(this,7):
b[0]!="noop"&&this.handler_&&this.handler_.JSC$19521_channelHandleArray(b),this.JSC$19514_backChannelRetryCount_=0)}};
GQ.prototype.JSC$19514_ensureInState_=function(A){if(!_.ve(arguments,this.state_))throw Error("Bk`"+this.state_);};
var dC=function(A,Q){A.JSC$19510_channelDebug_.info("Error code "+Q);if(Q==2||Q==9){var b=null;A.handler_&&(b=null);var f=(0,_.IL)(A.testGoogleComCallback_,A);b||(b=new _.m7("//www.google.com/images/cleardot.gif"),_.Xh(b));Nsn(b.toString(),1E4,f)}else b8(2);A.onError_(Q)};
GQ.prototype.testGoogleComCallback_=function(A){A?(this.JSC$19510_channelDebug_.info("Successfully pinged google.com"),b8(2)):(this.JSC$19510_channelDebug_.info("Failed to ping google.com"),b8(1),this.onError_(8))};
GQ.prototype.onError_=function(A){this.JSC$19510_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$19521_channelError(A);Egn(this);vgN(this)};
var Egn=function(A){A.state_=0;A.JSC$19514_lastStatusCode_=-1;if(A.handler_)if(A.pendingMaps_.length==0&&A.JSC$19510_outgoingMaps_.length==0)A.handler_.JSC$19521_channelClosed();else{A.JSC$19510_channelDebug_.debug("Number of undelivered maps, pending: "+A.pendingMaps_.length+", outgoing: "+A.JSC$19510_outgoingMaps_.length);var Q=_.xC(A.pendingMaps_),b=_.xC(A.JSC$19510_outgoingMaps_);A.pendingMaps_.length=0;A.JSC$19510_outgoingMaps_.length=0;A.handler_.JSC$19521_channelClosed(Q,b)}},C$N=function(A,
Q){Q=t3t(A,null,Q);
A.JSC$19510_channelDebug_.debug("GetForwardChannelUri: "+Q);return Q},rYx=function(A,Q,b){Q=t3t(A,A.JSC$19509_shouldUseSecondaryDomains()?Q:null,b);
A.JSC$19510_channelDebug_.debug("GetBackChannelUri: "+Q);return Q},t3t=function(A,Q,b){var f=_.co(b);
if(f.JSC$9973_domain_!="")Q&&_.aj(f,Q+"."+f.JSC$9973_domain_),_.Tf(f,f.JSC$9973_port_);else{var a=window.location;f=LUx(a.protocol,Q?Q+"."+a.hostname:a.hostname,+a.port,b)}A.JSC$19514_extraParams_&&_.j2.forEach(A.JSC$19514_extraParams_,function(T,G){_.wv(f,G,T)});
_.wv(f,"VER",A.JSC$19514_channelVersion_);BA(A,f);return f};
GQ.prototype.JSC$19509_createXhrIo=function(A){if(A)throw Error("yk");A=new _.RH;A.JSC$9738_withCredentials_=!1;return A};
GQ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
GQ.prototype.notifyServerReachabilityEvent=function(A){var Q=Ons;Q.dispatchEvent(new h5x(Q,A))};
GQ.prototype.JSC$19509_shouldUseSecondaryDomains=function(){return!1};
new VOx;var $kn=function(){};
_.d=$kn.prototype;_.d.JSC$19521_channelOpened=function(){};
_.d.JSC$19521_channelHandleArray=function(){};
_.d.JSC$19521_channelSuccess=function(){};
_.d.JSC$19521_channelError=function(){};
_.d.JSC$19521_channelClosed=function(){};
_.d.JSC$19521_getAdditionalParams=function(){return{}};
_.d.isActive=function(){return!0};var NlK=function(A){A.front_.length===0&&(A.front_=A.back_,A.front_.reverse(),A.back_=[])};
_.d=AEN.prototype;_.d.enqueue=function(A){this.back_.push(A)};
_.d.peek=function(){NlK(this);return _.rW(this.front_)};
_.d.getCount=function(){return this.front_.length+this.back_.length};
_.d.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.d.clear=function(){this.front_=[];this.back_=[]};
_.d.contains=function(A){return _.ve(this.front_,A)||_.ve(this.back_,A)};
_.d.remove=function(A){var Q=this.front_;var b=Array.prototype.lastIndexOf.call(Q,A,Q.length-1);b>=0?(_.nCb(Q,b),Q=!0):Q=!1;return Q||_.Eb(this.back_,A)};
_.d.getValues=function(){for(var A=[],Q=this.front_.length-1;Q>=0;--Q)A.push(this.front_[Q]);Q=this.back_.length;for(var b=0;b<Q;++b)A.push(this.back_[b]);return A};var px=function(A){this.JSC$19525_map_=new _.Uz;this.size=0;A&&this.addAll(A)},sRF=function(A){var Q=typeof A;
return Q=="object"&&A||Q=="function"?"o"+_.YC(A):Q.charAt(0)+A};
_.d=px.prototype;_.d.getCount=function(){return this.JSC$19525_map_.size};
_.d.add=function(A){this.JSC$19525_map_.set(sRF(A),A);this.size=this.JSC$19525_map_.size};
_.d.addAll=function(A){A=_.b1(A);for(var Q=A.length,b=0;b<Q;b++)this.add(A[b]);this.size=this.JSC$19525_map_.size};
_.d.removeAll=function(A){A=_.b1(A);for(var Q=A.length,b=0;b<Q;b++)this.remove(A[b]);this.size=this.JSC$19525_map_.size};
_.d.delete=function(A){A=this.JSC$19525_map_.remove(sRF(A));this.size=this.JSC$19525_map_.size;return A};
_.d.remove=function(A){return this.delete(A)};
_.d.clear=function(){this.JSC$19525_map_.clear();this.size=0};
_.d.isEmpty=function(){return this.JSC$19525_map_.size===0};
_.d.has=function(A){return this.JSC$19525_map_.containsKey(sRF(A))};
_.d.contains=function(A){return this.JSC$19525_map_.containsKey(sRF(A))};
_.d.getValues=function(){return this.JSC$19525_map_.getValues()};
_.d.values=function(){return this.JSC$19525_map_.values()};
_.d.clone=function(){return new px(this)};
_.d.equals=function(A){return this.getCount()==SCF(A)&&mkK(this,A)};
var mkK=function(A,Q){var b=SCF(Q);if(A.getCount()>b)return!1;!(Q instanceof px)&&b>5&&(Q=new px(Q));return UrN(A,function(f){var a=Q;return a.contains&&typeof a.contains=="function"?a.contains(f):a.containsValue&&typeof a.containsValue=="function"?a.containsValue(f):_.ce(a)||typeof a==="string"?_.ve(a,f):_.j2.containsValue(a,f)})};
px.prototype.__iterator__=function(){return this.JSC$19525_map_.__iterator__(!1)};
px.prototype[Symbol.iterator]=function(){return this.values()};var AXO={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(A){return(this._clampValue(A)-this.min)/(this.max-this.min)},
_clampValue:function(A){return Math.min(this.max,Math.max(this.min,this._calcStep(A)))},
_calcStep:function(A){A=parseFloat(A);if(!this.step)return A;A=Math.round((A-this.min)/this.step);return this.step<1?A/(1/this.step)+this.min:A*this.step+this.min},
_validateValue:function(){var A=this._clampValue(this.value);this.value=this.oldValue=isNaN(A)?this.oldValue:A;return this.value!==A},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var QaO;var bWd;_.gn({_template:function(){if(bWd!==void 0)return bWd;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;QaO===void 0&&(QaO=document.createElement("template"));var f=QaO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return bWd=A},
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(){_.mL(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(A){A.keyCode===27&&(A.preventDefault(),this.close())},
_track:function(A){if(!this.persistent&&!this.disableSwipe)switch(A.preventDefault(),A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackMove(A);break;case "end":this._trackEnd(A)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var A=this.$.contentContainer.getBoundingClientRect();this._savedWidth=A.width;this._translateOffset=this.position==="left"?A.left:A.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(A){this._trackDetails&&(this._translateDrawer(A.detail.dx+this._translateOffset),this._trackDetails.push({dx:A.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(A){if(this._trackDetails){var Q=A.detail.dx+this._translateOffset,b=this.getWidth();Q=this.position==="left"?Q>=0||Q<=-b:Q<=0||Q>=b;if(!Q){var f=this._trackDetails;this._trackDetails=null;this._flingDrawer(A,f);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}b/=2;A.detail.dx<-b?this.opened=this.position==="right":A.detail.dx>b&&(this.opened=this.position==="left");Q?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(A,Q){for(var b=Date.now(),f=b-100,a,T=0,G=Q.length-1;T<=G;){var p=T+G>>1,P=Q[p];P.timeStamp>=f?(a=P,G=p-1):T=p+1}return a?(A.detail.dx-a.dx)/(b-a.timeStamp||1):0},
_flingDrawer:function(A,Q){Q=this._calculateVelocity(A,Q);if(!(Math.abs(Q)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;A=A.detail.dx+this._translateOffset;var b=this.getWidth(),f=this.position==="left",a=Q>0;a?(Q=Math.max(Q,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(Q=Math.min(Q,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");Q=this._FLING_INITIAL_SLOPE*(!a&&f?-(A+b):a&&!f?b-A:-A)/Q;this._styleTransitionDuration(Q);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,Q)}},
_styleTransitionDuration:function(A){this.style.transitionDuration=A+"ms";this.$.contentContainer.style.transitionDuration=A+"ms";this.$.scrim.style.transitionDuration=A+"ms"},
_styleTransitionTimingFunction:function(A){this.$.contentContainer.style.transitionTimingFunction=A;this.$.scrim.style.transitionTimingFunction=A},
_translateDrawer:function(A){var Q=this.getWidth();this.position==="left"?(A=Math.max(-Q,Math.min(A,0)),this.$.scrim.style.opacity=1+A/Q):(A=Math.max(0,Math.min(A,Q)),this.$.scrim.style.opacity=1-A/Q);this.translate3d(A+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var A=this._drawerState;A===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;A!==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=""),A!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var A=_.oi(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"])');A.length>0?(this._firstTabStop=A[0],this._lastTabStop=A[A.length-1]):
this._lastTabStop=this._firstTabStop=null;(A=this.getAttribute("tabindex"))&&parseInt(A,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(A){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||A.keyCode!==9||(A.shiftKey?this._firstTabStop&&_.oi(A).localTarget===this._firstTabStop&&(A.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.oi(A).localTarget===this._lastTabStop&&(A.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(A,Q){this.toggleClass("visible",A&&!Q,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 fBF;var aBl;_.gn({_template:function(){if(aBl!==void 0)return aBl;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;fBF===void 0&&(fBF=document.createElement("template"));var f=fBF;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return aBl=A},
is:"tp-yt-paper-progress",behaviors:[AXO],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(A){this.toggleClass("indeterminate",A,this.$.primaryProgress)},
_transformProgress:function(A,Q){A.style.transform=A.style.webkitTransform="scaleX("+Q/100+")"},
_mainRatioChanged:function(A){this._transformProgress(this.$.primaryProgress,A)},
_progressChanged:function(A,Q,b,f,a){A=this._clampValue(A);Q=this._clampValue(Q);var T=this._calcRatio(A)*100,G=this._calcRatio(Q)*100;this._setSecondaryRatio(T);this._transformProgress(this.$.secondaryProgress,T);this._transformProgress(this.$.primaryProgress,G);this.secondaryProgress=A;a?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",Q);this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",f)},
_disabledChanged:function(A){this.setAttribute("aria-disabled",A?"true":"false")},
_hideSecondaryProgress:function(A){return A===0}});var TkN;var dOx;var Fdd=function(){};
_.d=Fdd.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._buttonStateChanged=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._calcRatio=function(){};
_.d._clampValue=function(){};
_.d._calcStep=function(){};
_.d._validateValue=function(){};
_.d._update=function(){};
_.d._setImmediateValue=function(){};
_.d._setExpand=function(){};
_.d._setDragging=function(){};
_.d._setTransiting=function(){};
_.d._setMarkers=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
_.d._setRatio=function(){};
Fdd=_.gn({_template:function(){if(dOx!==void 0)return dOx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;TkN===void 0&&(TkN=document.createElement("template"));var f=TkN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return dOx=A},
is:"tp-yt-paper-slider",behaviors:[_.Hp,_.t7,_.drN,AXO],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&&_.Wt(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(A,Q,b){this.setAttribute("aria-valuemin",Q);this.setAttribute("aria-valuemax",b);this.setAttribute("aria-valuenow",A);this._positionKnob(this._calcRatio(A)*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(A){this._setImmediateValue(this._calcStep(this._calcKnobPosition(A)));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(A){return(this.max-this.min)*A/100+this.min},
_onTrack:function(A){A.stopPropagation();switch(A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackX(A);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(A){this.dragging||this._trackStart(A);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,A.detail.dx*(this._isRTL?-1:1)));A=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(A);A=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(A+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var A=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;A.transform=A.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(A){this._expandKnob();A.preventDefault();this.focus()},
_bartrack:function(A){this._allowBarEvent(A)&&this._onTrack(A)},
_barclick:function(A){this._w=this.$.sliderBar.offsetWidth;var Q=this.$.sliderBar.getBoundingClientRect();Q=(A.detail.x-Q.left)/this._w*100;this._isRTL&&(Q=100-Q);var b=this.ratio;this._setTransiting(!0);this._positionKnob(Q);b===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
A.preventDefault();this.focus()},
_bardown:function(A){this._allowBarEvent(A)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(A))},
_knobTransitionEnd:function(A){A.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(A,Q,b,f){f||this._setMarkers([]);Q=Math.round((b-Q)/this.step);Q>A&&(Q=A);if(Q<0||!isFinite(Q))Q=0;this._setMarkers(Array(Q))},
_mergeClasses:function(A){return Object.keys(A).filter(function(Q){return A[Q]}).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(A){return!this.ignoreBarTouch||A.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(A){this._isRTL?this._incrementKey(A):this._decrementKey(A)},
_rightKey:function(A){this._isRTL?this._decrementKey(A):this._incrementKey(A)},
_incrementKey:function(A){this.disabled||(A.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),A.preventDefault())},
_decrementKey:function(A){this.disabled||(A.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),A.preventDefault())},
_changeValue:function(A){this.value=A.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(A){A.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.TyL._createRipple.call(this)},
_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=A?"":"none",this._ripple.holdDown=A)}});var G1l;var BkN;var PA=null,p37=function(){};
_.d=p37.prototype;_.d.fit=function(){};
_.d._discoverInfo=function(){};
_.d.resetFit=function(){};
_.d.refit=function(){};
_.d.position=function(){};
_.d.constrain=function(){};
_.d._sizeDimension=function(){};
_.d.__sizeDimension=function(){};
_.d.center=function(){};
_.d.__getNormalizedRect=function(){};
_.d.__getOffscreenArea=function(){};
_.d.__getPosition=function(){};
_.d.notifyResize=function(){};
_.d.assignParentResizable=function(){};
_.d.stopResizeNotificationsFor=function(){};
_.d._subscribeIronResize=function(){};
_.d._unsubscribeIronResize=function(){};
_.d.resizerShouldNotify=function(){};
_.d._onDescendantIronResize=function(){};
_.d._fireResize=function(){};
_.d._onIronRequestResizeNotifications=function(){};
_.d._parentResizableChanged=function(){};
_.d._notifyDescendant=function(){};
_.d._requestResizeNotifications=function(){};
_.d._findParent=function(){};
_.d.toggle=function(){};
_.d.open=function(){};
_.d.close=function(){};
_.d.cancel=function(){};
_.d.invalidateTabbables=function(){};
_.d._ensureSetup=function(){};
_.d._canceledChanged=function(){};
_.d._withBackdropChanged=function(){};
_.d._prepareRenderOpened=function(){};
_.d._finishRenderOpened=function(){};
_.d._finishRenderClosed=function(){};
_.d._preparePositioning=function(){};
_.d._finishPositioning=function(){};
_.d._applyFocus=function(){};
_.d._onCaptureClick=function(){};
_.d._onCaptureFocus=function(){};
_.d._onCaptureEsc=function(){};
_.d._onCaptureTab=function(){};
_.d._onIronResize=function(){};
_.d._onNodesChange=function(){};
_.d.__ensureFirstLastFocusables=function(){};
_.d.__openedChanged=function(){};
_.d.__deraf=function(){};
_.d.__updateScrollObservers=function(){};
_.d.__addScrollListeners=function(){};
_.d.__removeScrollListeners=function(){};
_.d.__isValidScrollAction=function(){};
_.d.__onCaptureScroll=function(){};
_.d.__saveScrollPosition=function(){};
_.d.__restoreScrollPosition=function(){};
_.d._setCanceled=function(){};
p37=_.gn({_template:function(){if(BkN!==void 0)return BkN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;G1l===void 0&&(G1l=document.createElement("template"));var f=G1l;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);return BkN=A},
is:"tp-yt-paper-toast",behaviors:[_.$t],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(){_.qF._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.ur.requestAvailability()},
show:function(A){typeof A=="string"&&(A={text:A});for(var Q in A)Q.indexOf("_")===0?_.qF._warn('The property "'+Q+'" is private and was not set.'):Q in this?this[Q]=A[Q]:_.qF._warn('The property "'+Q+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(A){A&&A.target===this&&A.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(PA&&PA!==this&&PA.close(),PA=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):PA===this&&(PA=null);_.DO._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(A){this.positionTarget=A},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var P7N=new _.fU("disablePersonalizationAction");var cft=new _.fU("showDmaConsentFlowCommand");var zvq=new _.fU("showMmgNoticeCommand");var X3l=new _.fU("saveConsentAction");var Sks=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.rx(A)};
_.O(Sks,_.fp);var UOM=_.WwU(Sks);var LdO=new _.fU("updateTopbarAvatarAction");var MNN=new _.fU("channelHandleValidationResultRenderer");var lBx=new _.fU("generateHandleFromNameResultRenderer");var Kdq=new _.fU("channelHandleInputRenderer");var iWl=new _.fU("copyLinkRenderer");var JXl=new _.fU("timedCommand");var VNd=new _.fU("clearCookieAction");var OWs=new _.fU("getMultiPageMenuAction");var n3q=new _.fU("addToGuideSectionAction"),k1M=new _.fU("removeFromGuideSectionAction");var IBN=new _.fU("updateNotificationsUnseenCountAction");var HWs=new _.fU("resetChannelUnreadCountCommand");var C77=new _.fU("resetSubscriptionsUnreadDotCommand");var qkx=new _.fU("selectLanguageCommand");var fcs=new _.fU("sendFeedbackAction");var o3n=new _.fU("uploadImageToScottyCommand");var tNx=new _.fU("registerPromoCommand");var rXt=new _.fU("setPushNotificationsEnabledCommand");var jar=new _.fU("desktopTopbarRenderer");var RGF=new _.fU("surveyFollowUpRenderer");var g3F=new _.fU("handlesClaimingRadioOptionRenderer");var eGO=new _.fU("hotkeyDialogRenderer");var hGN=new _.fU("modifyReportFormCommand");var WdM=new _.fU("accountLinkCommand");var v3M=new _.fU("accountUnlinkCommand");var E3s=new _.fU("logAccountLinkingEventCommand");var xOM=new _.fU("guideCollapsibleEntryRenderer");var cXt=new _.fU("guideDownloadsEntryRenderer");var XU=new _.fU("guideEntryRenderer");var zGd=new _.fU("getLocationCommand");var w3N=new _.fU("locationCollectionCommand");var uIK=new _.fU("storiesItemViewModel");var ZWl=new _.fU("addToRemoteQueueAction");var yX7=new _.fU("insertInRemoteQueueAction");var Ykl=new _.fU("removeFromRemoteQueueAction");var DON=new _.fU("notificationRenderer");var HEx=new _.fU("localWatchHistoryCommand");var $Od=new _.fU("pdgBuyFlowHeaderRenderer");var Nkl=new _.fU("pdgColorSliderRenderer");var saM=new _.fU("pdgCommentOptionRenderer");var mOs=new _.fU("pdgCommentPreviewRenderer");var A9l=new _.fU("superVodSelectableItemButtonRenderer");var Q3r=new _.fU("switchButtonRenderer");var b37=new _.fU("upsellDialogRenderer");var f8t=new _.fU("feedbackQuestionRenderer"),a8q=new _.fU("feedbackOptionRenderer");var Tur=new _.fU("sponsorshipsTierRenderer"),dbl=new _.fU("sponsorshipsPromotionChannelRenderer");var FDn=new _.fU("simpleSurveyMessageRenderer");var fbN=new _.fU("invokeInstrumentManagerAction");var GWn=new _.fU("logYpcFlowDismissCommand");var Bux=new _.fU("logYpcFlowStartCommand");var pJn=new _.fU("unlimitedCreateFamilyEndpoint");var Pzl=new _.fU("iconBadgeRenderer");var CeF=new _.fU("collaborativePlaylistVisibilityValidationRule");var XJM=function(A){_.J1.call(this,"channelMessage");this.message=A};
_.O(XJM,_.J1);var Snx=function(A){_.J1.call(this,"channelError");this.error=A};
_.O(Snx,_.J1);var Ubl={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",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},LDd={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Mq7={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},l8s={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},KDr={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var S8=function(A){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 _.Uz;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;A&&(this.id=A.id||A.name,this.name=A.name,this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=A.app,this.type=A.type||"REMOTE_CONTROL",this.username=A.user||"",this.avatar=A.userAvatarUri||"",this.obfuscatedGaiaId=A.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=A.ownerObfuscatedGaiaId||"",this.castUserId=A.castUserId||"",this.theme=A.theme||"u",i3d(this,A.capabilities||""),J9n(this,
A.compatibleSenderThemes||""),Vq7(this,A.experiments||""),this.remoteControllerUrl=A.remoteControllerUrl||"",this.localChannelEncryptionKey=A.localChannelEncryptionKey||"",this.deviceContext=A.deviceContext,this.brand=A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=A.pairingType||"unknown",A=A.deviceInfo)&&(A=JSON.parse(A),this.brand=
A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
S8.prototype.copy=function(){var A={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&&(A.brand=this.brand);
this.model&&(A.model=this.model);this.year&&(A.year=this.year);this.os&&(A.os=this.os);this.osVersion&&(A.osVersion=this.osVersion);this.chipset&&(A.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(A.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(A.mdxDialServerType=this.mdxDialServerType);A=new S8(A);A.connected=this.connected;A.remoteControllerUrl=this.remoteControllerUrl;A.localChannelEncryptionKey=this.localChannelEncryptionKey;A.deviceContext=
this.deviceContext;A.castUserId=this.castUserId;return A};
S8.prototype.equals=function(A){return A?this.id==A.id:!1};
var i3d=function(A,Q){A.capabilities.clear();_.PD(Q.split(","),_.Ol(_.j2.contains,Ubl)).forEach(function(b){A.capabilities.add(b)})},J9n=function(A,Q){A.compatibleSenderThemes.clear();
_.PD(Q.split(","),_.Ol(_.j2.contains,LDd)).forEach(function(b){A.compatibleSenderThemes.add(b)})},Vq7=function(A,Q){A.experiments.clear();
Q.split(",").forEach(function(b){A.experiments.add(b)})};var O37=function(A,Q){this.action=A;this.params=Q||{}};_.BD(Qzr,_.k$);_.d=Qzr.prototype;_.d.JSC$19561_onTick_=function(){this.JSC$19559_interval_=Math.min(3E5,this.JSC$19559_interval_*2);this.JSC$19561_listener_();this.nextTickTime_&&this.start()};
_.d.start=function(){var A=this.JSC$19559_interval_+15E3*Math.random(),Q=this.delay_;Q.isActive()||Q.start(A);this.nextTickTime_=Date.now()+A};
_.d.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.d.isActive=function(){return this.delay_.isActive()};
_.d.reset=function(){this.delay_.stop();this.JSC$19559_interval_=5E3};_.BD($b,$kn);_.d=$b.prototype;_.d.subscribe=function(A,Q,b){return this.pubsub_.subscribe(A,Q,b)};
_.d.unsubscribe=function(A,Q,b){return this.pubsub_.unsubscribe(A,Q,b)};
_.d.unsubscribeByKey=function(A){return this.pubsub_.unsubscribeByKey(A)};
_.d.publish=function(A,Q){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.d.dispose=function(){this.JSC$19562_disposed_||(this.JSC$19562_disposed_=!0,_.AT(this.pubsub_),this.disconnect(),_.AT(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19562_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Ul({})})};
_.d.isDisposed=function(){return this.JSC$19562_disposed_};
_.d.connect=function(A,Q,b){var f=this,a,T,G,p;return _.B(function(P){if(P.nextAddress==1)return _.iM(P,2),f.useAsyncBrowserChannelHandler_?P.yield(f.connectPromise_,2):P.jumpTo(2);_.KN(P);if(f.JSC$19562_disposed_||f.JSC$19562_channel_&&f.JSC$19562_channel_.getState()==2)return P.return();f.sCookie_="";f.reconnectTimer_.stop();f.connectionParams_=A||null;f.connectUi_=Q||0;a=f.JSC$19562_pathPrefix_+"/test";T=f.JSC$19562_pathPrefix_+"/bind";G=new GQ(b?b.firstTestResults:null,b?b.secondTestResults:null,
f.enableAsyncTest_);if(p=f.JSC$19562_channel_)p.handler_=null;G.handler_=f;f.JSC$19562_channel_=G;if(f.useAsyncBrowserChannelHandler_)return f.connectPromise_=nZK(f).then(function(){return kWr(f,a,T,p,b)}),P.return(f.connectPromise_.then(function(){f.connectPromise_=_.Ul()}));
kWr(f,a,T,p,b);return _.Jo(P,0)})};
var kWr=function(A,Q,b,f,a){I8x(A);if(A.JSC$19562_channel_){var T=_.vG("ID_TOKEN"),G=A.JSC$19562_channel_.JSC$19514_extraHeaders_||{};T?G["x-youtube-identity-token"]=T:delete G["x-youtube-identity-token"];A.JSC$19562_channel_.JSC$19514_extraHeaders_=G}H3t(A);f?(f.getState(),A.JSC$19562_channel_.connect(Q,b,A.defaultQueryParams_,f.sid_,f.JSC$19514_lastArrayId_)):a?A.JSC$19562_channel_.connect(Q,b,A.defaultQueryParams_,a.sessionId,a.arrayId):A.JSC$19562_channel_.connect(Q,b,A.defaultQueryParams_)};
$b.prototype.disconnect=function(A){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Ul())}finally{this.disconnectUi_=A||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),I8x(this),this.JSC$19562_channel_&&(this.JSC$19562_channel_.getState()==3&&w1l(this.JSC$19562_channel_),this.JSC$19562_channel_.disconnect()),this.disconnectUi_=0}};
$b.prototype.sendMessage=function(A,Q){var b=this,f;return _.B(function(a){switch(a.nextAddress){case 1:_.iM(a,2);if(!b.useAsyncBrowserChannelHandler_){a.jumpTo(2);break}return a.yield(b.connectPromise_,2);case 2:_.KN(a);if(b.JSC$19562_disposed_)return a.return();f={_sc:A};Q&&_.j2.extend(f,Q);if(b.reconnectTimer_.isActive()||(b.JSC$19562_channel_?b.JSC$19562_channel_.getState():0)==2){b.JSC$19562_pendingMessages_.push(f);a.jumpTo(6);break}if(!b.isChannelOpened()){a.jumpTo(6);break}_.iM(a,8);if(!b.useAsyncBrowserChannelHandler_||
Czd(b,A)){a.jumpTo(8);break}return a.yield(nZK(b),8);case 8:_.KN(a,0,0,1);b.isChannelOpened()&&(Czd(b,A)||H3t(b),I8x(b),z5q(b.JSC$19562_channel_,f));_.Jo(a,6,1);break;case 6:_.Jo(a,0)}})};
var Czd=function(A,Q){return A.enableMdxAuthForConnectionOnly_?!0:A.disableMdxAuthForAdMessages_?Object.values(Mq7).includes(Q):A.disableMdxAuthForNonPlaybackMessages_?!Object.values(l8s).includes(Q):A.disableMdxAuthForShortsMessages_?Object.values(KDr).includes(Q):!1};
$b.prototype.JSC$19521_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19562_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)qnM(this);else{var A=this.JSC$19562_pendingMessages_;this.JSC$19562_pendingMessages_=[];var Q=A.length;H3t(this);oZK(this,A,Q);tqs(this)}else tqs(this)};
var qnM=function(A){var Q,b;_.B(function(f){if(f.nextAddress==1)return _.iM(f,2),f.yield(nZK(A),2);_.KN(f);Q=A.JSC$19562_pendingMessages_;A.JSC$19562_pendingMessages_=[];b=Q.length;oZK(A,Q,b);tqs(A);return _.Jo(f,0)})},oZK=function(A,Q,b){for(var f=0;f<b;++f)z5q(A.JSC$19562_channel_,Q[f]);
tqs(A)},tqs=function(A){A.publish("handlerOpened");
A.JSC$19562_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.d=$b.prototype;_.d.JSC$19521_channelError=function(A){var Q=A==2&&this.JSC$19562_channel_.JSC$19514_lastStatusCode_==401;A==4||Q||this.reconnectTimer_.start();this.publish("handlerError",A,Q);Q=Object.keys(ggr).find(function(b){return ggr[b]===A});
this.JSC$19562_channelErrorCounter.increment("BROWSER_CHANNEL",Q!=null?Q:"UNKNOWN")};
_.d.JSC$19521_channelClosed=function(A,Q){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(Q)for(var b=Q.length,f=0;f<b;++f){var a=Q[f].map;a&&this.JSC$19562_pendingMessages_.push(a)}this.JSC$19562_channelClosedCounter.increment("BROWSER_CHANNEL");A&&this.pendingMapsOnClosedCounter.JSC$9874_streamzService.JSC$9729_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",A.length);Q&&this.undeliveredMapsOnClosedCounter.JSC$9877_streamzService.JSC$9729_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
Q.length)};
_.d.JSC$19521_channelSuccess=function(A,Q){Q!=null&&A!=null&&this.channelMessageSentCounter.increment()};
_.d.JSC$19521_getAdditionalParams=function(){var A={v:2};this.sCookie_&&(A.gsessionid=this.sCookie_);this.connectUi_!=0&&(A.ui=""+this.connectUi_);this.disconnectUi_!=0&&(A.ui=""+this.disconnectUi_);this.connectionParams_&&_.j2.extend(A,this.connectionParams_);return A};
_.d.JSC$19521_channelHandleArray=function(A){A[0]=="S"?this.sCookie_=A[1]:A[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19562_channel_.disconnect()):this.publish("handlerMessage",new O37(A[0],A[1]));this.JSC$19562_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.d.isChannelOpened=function(){return!!this.JSC$19562_channel_&&this.JSC$19562_channel_.getState()==3};
var I8x=function(A){if(A.JSC$19562_channel_){var Q=A.JSC$19562_getXsrfToken_(),b=A.JSC$19562_channel_.JSC$19514_extraHeaders_||{};Q?b["x-youtube-lounge-xsrf-token"]=Q:delete b["x-youtube-lounge-xsrf-token"];A.JSC$19562_channel_.JSC$19514_extraHeaders_=b}},nZK=function(A){if(A.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Ul();
if(!A.enableCachedUpdateAuthorizationHeader_)return r9l(A);A.updateAuthorizationHeaderPromise_===null&&(A.updateAuthorizationHeaderPromise_=r9l(A));return A.updateAuthorizationHeaderPromise_},r9l=function(A){return _.oH(A.getAuthorizationHeader_().then(function(Q){j3x(A,Q)}).thenCatch(function(){}),function(){A.updateAuthorizationHeaderPromise_=null})},j3x=function(A,Q){if(A.JSC$19562_channel_){var b=A.JSC$19562_channel_.JSC$19514_extraHeaders_||{};
Q&&Object.keys(Q).length>0?b=Object.assign({},b,Q):delete b.Authorization;A.JSC$19562_channel_.JSC$19514_extraHeaders_=b}},H3t=function(A){A.getAuthorizationHeaderSync_&&!A.useAsyncBrowserChannelHandler_&&j3x(A,A.getAuthorizationHeaderSync_())};
_.d=$b.prototype;_.d.setLoungeToken=function(A){(this.defaultQueryParams_.loungeIdToken=A)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19562_channel_){var Q=this.JSC$19562_channel_.JSC$19514_extraHeaders_||{};A?Q["X-YouTube-LoungeId-Token"]=A:delete Q["X-YouTube-LoungeId-Token"];this.JSC$19562_channel_.JSC$19514_extraHeaders_=Q}};
_.d.getDeviceId=function(){return this.defaultQueryParams_.id};
_.d.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.d.reconnect=function(){var A=this.reconnectTimer_;A.delay_.fire();A.start()};
_.d.safeReconnect_=function(){var A=this.JSC$19562_channel_,Q=0;A.JSC$19514_backChannelRequest_&&Q++;A.forwardChannelRequest_&&Q++;Q==0&&this.connect(this.connectionParams_,this.connectUi_)};var f5=function(A,Q){var b=A.basePath;A.supportCors&&(b=A.scheme+"://"+A.domain+A.port+A.basePath);return _.$Q(b+Q,{})};
Nv.prototype.sendRequest=function(A,Q,b,f,a,T,G){A={format:T?"RAW":"JSON",method:A,context:this,timeout:5E3,withCredentials:!!G,onSuccess:_.Ol(this.JSC$19567_onSuccess_,f,!T),onError:_.Ol(this.onError_,a),onTimeout:_.Ol(this.JSC$19567_onTimeout_,a)};b&&(A.postParams=b,A.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.MQ(Q,A)};
Nv.prototype.JSC$19567_onSuccess_=function(A,Q,b,f){Q?A(f):A({text:b.responseText})};
Nv.prototype.onError_=function(A,Q){A(Error("Ck`"+Q.status))};
Nv.prototype.JSC$19567_onTimeout_=function(A){A(Error("Dk"))};var mH=function(A,Q){return!!Q&&(A.id==Q||A.uuid==Q)},Ral=function(A){return{name:A.name,
screenId:A.id,loungeToken:A.token,dialId:A.uuid,screenIdType:A.idType}},gZx=function(A){return new s_(A)},eaF=function(A){return Array.isArray(A)?_.Rk(A,gZx):[]},PNF=function(A){if(!A)return"null";
var Q=A.token?".."+A.token.slice(-6):"-",b=A.uuid?".."+A.uuid.slice(-6):"-";return'{name:"'+A.name+'",id:'+A.id.substr(0,6)+"..,token:"+(Q+",uuid:"+b+",idType:"+A.idType+"}")},vrl=function(A){return Array.isArray(A)?"["+_.Rk(A,PNF).join(",")+"]":"null"};var KWF="",b5=null;var CBl=function(A,Q){_.IH.call(this);var b=this;this.handler=A();this.handler.subscribe("handlerOpened",this.JSC$19574_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(f,a){b.onError(a)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=Q};
_.O(CBl,_.IH);_.d=CBl.prototype;_.d.connect=function(A,Q,b){this.handler.connect(A,Q,b)};
_.d.disconnect=function(A){this.handler.disconnect(A)};
_.d.reconnect=function(){this.handler.reconnect()};
_.d.getDeviceId=function(){return this.handler.getDeviceId()};
_.d.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.d.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.d.JSC$19574_onOpened=function(){this.dispatchEvent("channelOpened");var A=this.handler,Q=this.currentScreenId;_.KW("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!A.JSC$19562_channel_.useChunked_,sessionId:A.JSC$19562_channel_.sid_,arrayId:A.JSC$19562_channel_.JSC$19514_lastArrayId_});_.KW("yt-remote-session-screen-id",Q);A=XYK();Q=SYN();_.ve(A,Q)||A.push(Q);lkq(A);MLn()};
_.d.onClosed=function(){this.dispatchEvent("channelClosed")};
_.d.onMessage=function(A){this.dispatchEvent(new XJM(A))};
_.d.onError=function(A){this.dispatchEvent(new Snx(A?1:0))};
_.d.sendMessage=function(A,Q){this.handler.sendMessage(A,Q)};
_.d.setLoungeToken=function(A){this.handler.setLoungeToken(A)};
_.d.dispose=function(){this.handler.dispose()};var HTd=function(A,Q,b){var f=this;b=b===void 0?function(){return""}:b;
var a=a===void 0?new lmF:a;var T=T===void 0?new _.KJ:T;this.pathPrefix=A;this.defaultQueryParams=Q;this.getXsrfToken=b;this.JSC$19577_pubsub=T;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Qzr(function(){var G;((G=f.channel)==null?void 0:Y1F((new J2N(G,G.JSC$19485_channel_)).JSC$19495_channel_.forwardChannelRequestPool_))===0&&f.connect(f.connectionParams,f.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19577_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19577_channelOpenedCounter=new bTN;this.JSC$19577_channelClosedCounter=new fkN;this.JSC$19577_channelMessageReceivedCounter=new T6r;this.JSC$19577_channelErrorCounter=new djx};
HTd.prototype.connect=function(A,Q){A=A===void 0?{}:A;Q=Q===void 0?0:Q;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=A,this.connectUi=Q,haN(this),(A=_.vG("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=A: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 Qm(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,WDt(this))};
var WDt=function(A){_.jM(A.channel,"w",function(){A.channelState=3;A.reconnectTimer.reset();A.connectionParams=null;A.connectUi=0;for(var Q=_.F(A.nonAckedMessagesOnChannelClosed),b=Q.next();!b.done;b=Q.next())b=b.value,A.channel&&A.channel.send(b);A.nonAckedMessagesOnChannelClosed=[];A.publish("webChannelOpened");A.JSC$19577_channelOpenedCounter.increment("WEB_CHANNEL")});
_.jM(A.channel,"x",function(){A.channelState=0;A.reconnectTimer.isActive()||A.publish("webChannelClosed");var Q,b=(Q=A.channel)==null?void 0:VbK(new J2N(Q,Q.JSC$19485_channel_));b&&(A.nonAckedMessagesOnChannelClosed=[].concat(_.ri(b)));A.JSC$19577_channelClosedCounter.increment("WEB_CHANNEL")});
_.jM(A.channel,"z",function(Q){var b=Q.data;b[0]==="gracefulReconnect"?(A.reconnectTimer.start(),A.channel&&A.channel.close()):A.publish("webChannelMessage",new O37(b[0],b[1]));A.lastStatusCode=Q.statusCode;A.JSC$19577_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.jM(A.channel,"y",function(){A.lastStatusCode===401||A.reconnectTimer.start();A.publish("webChannelError");A.JSC$19577_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.d=HTd.prototype;_.d.disconnect=function(A){this.disconnectUi=A===void 0?0:A;this.reconnectTimer.stop();haN(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.d.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.d.reconnect=function(){var A=this.reconnectTimer;A.delay_.fire();A.start()};
_.d.sendMessage=function(A,Q){this.channel&&(haN(this),A=Object.assign({},{_sc:A},Q),this.channel.send(A))};
_.d.setLoungeToken=function(A){A||this.reconnectTimer.stop();A?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=A:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var haN=function(A){var Q=A.getXsrfToken();Q?A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=Q:delete A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.d=HTd.prototype;_.d.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.d.publish=function(A){return this.JSC$19577_pubsub.publish.apply(this.JSC$19577_pubsub,[A].concat(_.ri(_.E$.apply(1,arguments))))};
_.d.subscribe=function(A,Q,b){return this.JSC$19577_pubsub.subscribe(A,Q,b)};
_.d.unsubscribe=function(A,Q,b){return this.JSC$19577_pubsub.unsubscribe(A,Q,b)};
_.d.unsubscribeByKey=function(A){return this.JSC$19577_pubsub.unsubscribeByKey(A)};
_.d.dispose=function(){this.JSC$19577_disposed||(this.JSC$19577_disposed=!0,_.AT(this.JSC$19577_pubsub),this.disconnect(),_.AT(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.d.isDisposed=function(){return this.JSC$19577_disposed};var Ikq=function(A){_.IH.call(this);this.webChannelService=A();this.webChannelService.subscribe("webChannelOpened",this.JSC$19585_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.O(Ikq,_.IH);_.d=Ikq.prototype;_.d.connect=function(A,Q){this.webChannelService.connect(A,Q)};
_.d.disconnect=function(A){this.webChannelService.disconnect(A)};
_.d.reconnect=function(){this.webChannelService.reconnect()};
_.d.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.d.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.d.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.d.JSC$19585_onOpened=function(){this.dispatchEvent("channelOpened")};
_.d.onClosed=function(){this.dispatchEvent("channelClosed")};
_.d.onMessage=function(A){this.dispatchEvent(new XJM(A))};
_.d.onError=function(){this.dispatchEvent(new Snx(this.webChannelService.lastStatusCode===401?1:0))};
_.d.sendMessage=function(A,Q){this.webChannelService.sendMessage(A,Q)};
_.d.setLoungeToken=function(A){this.webChannelService.setLoungeToken(A)};
_.d.dispose=function(){this.webChannelService.dispose()};var WWx=Date.now(),a2=null,eMx=Array(50),FX=-1,hMN=!1;_.BD(G4,_.Kj);G4.prototype.getScreens=function(){return this.screens};
G4.prototype.contains=function(A){return!!PBl(this.screens,A)};
G4.prototype.get=function(A){return A?A5(this.screens,A):null};
var vZ7=function(A,Q){var b=A.get(Q.uuid)||A.get(Q.id);if(b)return A=b.name,b.id=Q.id||b.id,b.name=Q.name,b.token=Q.token,b.uuid=Q.uuid||b.uuid,b.name!=A;A.screens.push(Q);return!0},EZx=function(A,Q){var b=A.screens.length!=Q.length;
A.screens=_.PD(A.screens,function(T){return!!PBl(Q,T)});
for(var f=Q.length,a=0;a<f;a++)b=vZ7(A,Q[a])||b;return b},xbx=function(A,Q){var b=A.screens.length;
A.screens=_.PD(A.screens,function(f){return!(f||Q?!f!=!Q?0:f.id==Q.id:1)});
return A.screens.length<b};
G4.prototype.info=function(A){T4(this.JSC$19586_logName_,A)};var c97=function(A,Q,b,f,a){_.Kj.call(this);this.JSC$19589_http_=A;this.pairingCode_=Q;this.deviceId_=b;this.friendlyName_=f;this.enableShortLivedLoungeToken_=a;this.pollIndex_=0;this.JSC$19589_xhr_=null;this.JSC$19589_timer_=NaN};
_.O(c97,_.Kj);_.d=c97.prototype;_.d.start=function(){!this.JSC$19589_xhr_&&isNaN(this.JSC$19589_timer_)&&this.poll_()};
_.d.stop=function(){this.JSC$19589_xhr_&&(this.JSC$19589_xhr_.abort(),this.JSC$19589_xhr_=null);isNaN(this.JSC$19589_timer_)||(_.Uo(this.JSC$19589_timer_),this.JSC$19589_timer_=NaN)};
_.d.disposeInternal=function(){this.stop();_.Kj.prototype.disposeInternal.call(this)};
_.d.poll_=function(){this.JSC$19589_timer_=NaN;this.JSC$19589_xhr_=_.MQ(f5(this.JSC$19589_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.IL)(this.JSC$19591_onSuccess_,this),onError:(0,_.IL)(this.onError_,this),onTimeout:(0,_.IL)(this.JSC$19591_onTimeout_,this)})};
_.d.JSC$19591_onSuccess_=function(A,Q){this.JSC$19589_xhr_=null;A=Q.screen||{};A.dialId=this.deviceId_;A.name=this.friendlyName_;Q=-1;this.enableShortLivedLoungeToken_&&A.shortLivedLoungeToken&&A.shortLivedLoungeToken.value&&A.shortLivedLoungeToken.refreshIntervalMs&&(A.screenIdType="shortLived",A.loungeToken=A.shortLivedLoungeToken.value,Q=A.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new s_(A),Q)};
_.d.onError_=function(A){this.JSC$19589_xhr_=null;A.status&&A.status==404?this.pollIndex_>=zaM.length?this.publish("pairingFailed",Error("Ek")):(A=zaM[this.pollIndex_],this.JSC$19589_timer_=_.Xe((0,_.IL)(this.poll_,this),A),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+A.status))};
_.d.JSC$19591_onTimeout_=function(){this.JSC$19589_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var zaM=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.BD(p5,G4);_.d=p5.prototype;_.d.start=function(){B4(this)&&this.publish("screenChange");!_.i7("yt-remote-lounge-token-expiration")&&wJO(this);_.Uo(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Xe((0,_.IL)(this.start,this),1E4)};
_.d.add=function(A,Q){B4(this);vZ7(this,A);u6l(this,!1);this.publish("screenChange");Q(A);A.token||wJO(this)};
_.d.remove=function(A,Q){var b=B4(this);xbx(this,A)&&(u6l(this,!1),b=!0);Q(A);b&&this.publish("screenChange")};
_.d.updateName=function(A,Q,b,f){var a=B4(this),T=this.get(A.id);T?(T.name!=Q&&(T.name=Q,u6l(this,!1),a=!0),b(A)):f(Error("Hk"));a&&this.publish("screenChange")};
_.d.disposeInternal=function(){_.Uo(this.loungeTokenRefreshTimer_);p5.superClass_.disposeInternal.call(this)};
var wJO=function(A){if(A.screens.length){var Q=_.Rk(A.screens,function(f){return f.id}),b=f5(A.JSC$19593_http_,"/pairing/get_lounge_token_batch");
A.JSC$19593_http_.sendRequest("POST",b,{screen_ids:Q.join(",")},(0,_.IL)(A.handleLoungeTokens_,A),(0,_.IL)(A.handleLoungeTokenError_,A))}};
p5.prototype.handleLoungeTokens_=function(A){B4(this);var Q=this.screens.length;A=A&&A.screens||[];for(var b=A.length,f=0;f<b;++f){var a=A[f],T=this.get(a.screenId);T&&(T.token=a.loungeToken,--Q)}u6l(this,!Q);Q&&T4(this.JSC$19586_logName_,"Missed "+Q+" lounge tokens.")};
p5.prototype.handleLoungeTokenError_=function(A){T4(this.JSC$19586_logName_,"Requesting lounge tokens failed: "+A)};
var B4=function(A){if(_.K("deprecate_pair_servlet_enabled"))return EZx(A,[]);var Q=eaF(JEn());Q=_.PD(Q,function(b){return!b.uuid});
return EZx(A,Q)},u6l=function(A,Q){OTn(_.Rk(A.screens,Ral));
Q&&VL7()};var UU=function(A,Q){_.Kj.call(this);this.getScreensToCheck_=Q;Q=(Q=_.i7("yt-remote-online-screen-ids")||"")?Q.split(","):[];for(var b={},f=this.getScreensToCheck_(),a=f.length,T=0;T<a;++T){var G=f[T].id;b[G]=_.ve(Q,G)}this.screenIdSet_=b;this.JSC$19596_http_=A;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Z3M("Initialized with "+(0,_.jV)(this.screenIdSet_))};
_.O(UU,_.Kj);UU.prototype.isOnline=function(A){return!!this.screenIdSet_[A]};
UU.prototype.start=function(){var A=parseInt(_.i7("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.G0()-144E5<A?0:A)?y9s(this):(this.fastCheckEndTime_=_.G0()+3E5,_.KW("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
UU.prototype.isEmpty=function(){return _.j2.isEmpty(this.screenIdSet_)};
UU.prototype.update=function(){Z3M("Updating availability on schedule.");var A=this.getScreensToCheck_(),Q=_.j2.filter(this.screenIdSet_,function(b,f){return b&&!!A5(A,f)},this);
Yn7(this,Q)};
var Dbx=function(A,Q,b){var f=f5(A.JSC$19596_http_,"/pairing/get_screen_availability");A.JSC$19596_http_.sendRequest("POST",f,{lounge_token:Q.token},(0,_.IL)(function(a){a=a.screens||[];for(var T=a.length,G=0;G<T;++G)if(a[G].loungeToken==Q.token){b(a[G].status=="online");return}b(!1)},A),(0,_.IL)(function(){b(!1)},A))};
UU.prototype.disposeInternal=function(){_.Uo(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Kj.prototype.disposeInternal.call(this)};
var Yn7=function(A,Q){a:if(_.j2.getCount(Q)!=_.j2.getCount(A.screenIdSet_))var b=!1;else{b=_.j2.getKeys(Q);for(var f=b.length,a=0;a<f;++a)if(!A.screenIdSet_[b[a]]){b=!1;break a}b=!0}b||(Z3M("Updated online screens: "+(0,_.jV)(A.screenIdSet_)),A.screenIdSet_=Q,A.publish("screenChange"));$bd(A)},y9s=function(A){isNaN(A.refreshTimer_)||_.Uo(A.refreshTimer_);
A.refreshTimer_=_.Xe((0,_.IL)(A.requestScreenAvailability_,A),A.fastCheckEndTime_>0&&A.fastCheckEndTime_<_.G0()?2E4:1E4)};
UU.prototype.requestScreenAvailability_=function(){_.Uo(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var A=Nut(this);if(_.j2.getCount(A)){var Q=f5(this.JSC$19596_http_,"/pairing/get_screen_availability"),b={lounge_token:_.j2.getKeys(A).join(",")};this.currentRequest_=this.JSC$19596_http_.sendRequest("POST",Q,b,(0,_.IL)(this.onScreenAvailability_,this,A),(0,_.IL)(this.onScreenAvailabilityError_,this))}else Yn7(this,{}),y9s(this)};
UU.prototype.onScreenAvailability_=function(A,Q){this.currentRequest_=null;var b=_.j2.getKeys(Nut(this));if(_.DU(b,_.j2.getKeys(A))){Q=Q.screens||[];b={};for(var f=Q.length,a=0;a<f;++a)b[A[Q[a].loungeToken]]=Q[a].status=="online";Yn7(this,b);y9s(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
UU.prototype.onScreenAvailabilityError_=function(A){this.warn_("Screen availability failed: "+A);this.currentRequest_=null;y9s(this)};
var Z3M=function(A){T4("OnlineScreenService",A)};
UU.prototype.warn_=function(A){T4("OnlineScreenService",A)};
var Nut=function(A){var Q={};_.ZR(A.getScreensToCheck_(),function(b){b.token?Q[b.token]=b.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return Q},$bd=function(A){A=_.j2.getKeys(_.j2.filter(A.screenIdSet_,function(Q){return Q}));
A.sort(_.Cye);A.length?_.KW("yt-remote-online-screen-ids",A.join(","),60):_.JX("yt-remote-online-screen-ids")};_.BD(P4,G4);_.d=P4.prototype;_.d.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.d.add=function(A,Q,b){this.localScreenService_.add(A,Q,b)};
_.d.remove=function(A,Q,b){this.localScreenService_.remove(A,Q,b);this.onlineScreenService_.update()};
_.d.updateName=function(A,Q,b,f){this.localScreenService_.contains(A)?this.localScreenService_.updateName(A,Q,b,f):(A="Updating name of unknown screen: "+A.name,T4(this.JSC$19586_logName_,A),f(Error(A)))};
_.d.getScreens=function(A){return A?this.screens:q8t(this.screens,_.PD(this.automaticScreens_,function(Q){return!this.contains(Q)},this))};
_.d.JSC$19601_getOnlineScreens=function(){return _.PD(this.getScreens(!0),function(A){return this.onlineScreenService_.isOnline(A.id)},this)};
var mb7=function(A,Q,b,f,a,T){A.info("getAutomaticScreenByIds "+b+" / "+Q);b||(b=A.deviceToScreenId_[Q]);var G=A.getScreens(),p=b?A5(G,b):null;b&&(A.disableAutomaticScreenCache_||p)||(p=A5(G,Q));if(p){p.uuid=Q;var P=Lx(A,p);Dbx(A.onlineScreenService_,P,function(U){a(U?P:null)})}else b?s3s(A,b,(0,_.IL)(function(U){var L=Lx(this,new s_({name:f,
screenId:b,loungeToken:U,dialId:Q||""}));Dbx(this.onlineScreenService_,L,function(M){a(M?L:null)})},A),T):a(null)};
P4.prototype.JSC$19601_getScreenByPollingPairingCode=function(A,Q,b,f,a,T){var G=this;this.info("getDialScreenByPairingCode "+A+" / "+Q);var p=new c97(this.JSC$19599_http_,A,Q,b,f);p.subscribe("pairingComplete",function(P,U){_.AT(p);a(Lx(G,P),U)});
p.subscribe("pairingFailed",function(P){_.AT(p);T(P)});
p.start();return(0,_.IL)(p.stop,p)};
var AFd=function(A,Q){for(var b=A.screens.length,f=0;f<b;++f)if(A.screens[f].name==Q)return A.screens[f];return null};
P4.prototype.JSC$19601_getScreenByPairingCode=function(A,Q,b,f){_.MQ(f5(this.JSC$19599_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:A},timeout:5E3,onSuccess:(0,_.IL)(function(a,T){a=new s_(T.screen||{});if(!a.name||AFd(this,a.name)){a:{T=a.name;for(var G=2,p=Q(T,G);AFd(this,p);){G++;if(G>20)break a;p=Q(T,G)}T=p}a.name=T}b(Lx(this,a))},this),
onError:(0,_.IL)(function(a){f(Error("Ik`"+a.status))},this),
onTimeout:(0,_.IL)(function(){f(Error("Jk"))},this)})};
var QEN=function(A,Q,b){Dbx(A.onlineScreenService_,Q,b)};
P4.prototype.disposeInternal=function(){_.AT(this.localScreenService_);_.AT(this.onlineScreenService_);P4.superClass_.disposeInternal.call(this)};
var s3s=function(A,Q,b,f){A.info("requestLoungeToken_ for "+Q);var a={postParams:{screen_ids:Q},method:"POST",context:A,onSuccess:function(T,G){T=G&&G.screens||[];T[0]&&T[0].screenId==Q?b(T[0].loungeToken):f(Error("Kk"))},
onError:function(){f(Error("Lk"))}};
_.MQ(f5(A.JSC$19599_http_,"/pairing/get_lounge_token_batch"),a)},bVN=function(A){A.screens=A.localScreenService_.getScreens();
for(var Q=_.j2.transpose(A.deviceToScreenId_),b=A.screens.length,f=0;f<b;++f){var a=A.screens[f];a.uuid=Q[a.id]||""}A.info("Updated manual screens: "+vrl(A.screens))};
P4.prototype.handleScreenChange_=function(){bVN(this);this.publish("screenChange");this.onlineScreenService_.update()};
var ErM=function(A){fJF(A);A.localScreenService_=new p5(A.JSC$19599_http_);A.localScreenService_.subscribe("screenChange",(0,_.IL)(A.handleScreenChange_,A));bVN(A);A.disableAutomaticScreenCache_||(A.automaticScreens_=eaF(_.i7("yt-remote-automatic-screen-cache")||[]));fJF(A);A.info("Initializing automatic screens: "+vrl(A.automaticScreens_));A.onlineScreenService_=new UU(A.JSC$19599_http_,(0,_.IL)(A.getScreens,A,!0));A.onlineScreenService_.subscribe("screenChange",(0,_.IL)(function(){this.publish("onlineScreenChange")},
A))},Lx=function(A,Q){var b=A.get(Q.id);
b?(b.uuid=Q.uuid,Q=b):((b=A5(A.automaticScreens_,Q.uuid))?(b.id=Q.id,b.token=Q.token,Q=b):A.automaticScreens_.push(Q),A.disableAutomaticScreenCache_||aJN(A));fJF(A);A.deviceToScreenId_[Q.uuid]=Q.id;_.KW("yt-remote-device-id-map",A.deviceToScreenId_,31536E3);return Q},aJN=function(A){A=_.PD(A.automaticScreens_,function(Q){return Q.idType!="shortLived"});
_.KW("yt-remote-automatic-screen-cache",_.Rk(A,Ral))},fJF=function(A){A.deviceToScreenId_=_.i7("yt-remote-device-id-map")||{}};
P4.prototype.dispose=P4.prototype.dispose;_.BD(XX,_.Kj);var M5=function(A,Q){A.screen_=Q;A.publish("sessionScreen",A.screen_)},TSN=function(A,Q){A.screen_&&(A.screen_.token=Q,Lx(A.JSC$19603_screenService_,A.screen_));
A.publish("sessionScreen",A.screen_)};
XX.prototype.onSessionStopped=function(A){this.isDisposed()||(A&&(l8(this,""+A),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
XX.prototype.info=function(A){T4(this.JSC$19603_logName_,A)};
var l8=function(A,Q){T4(A.JSC$19603_logName_,Q)};
XX.prototype.JSC$19605_getCastSession=function(){return null};
XX.prototype.setDisplayStatus=function(A){var Q=this.receiver_;A?(Q.displayStatus=new chrome.cast.ReceiverDisplayStatus(A,[]),Q.displayStatus.showStop=!0):Q.displayStatus=null;chrome.cast.setReceiverDisplayStatus(Q,(0,_.IL)(function(){this.info("Updated receiver status for "+Q.friendlyName+": "+A)},this),(0,_.IL)(function(){l8(this,"Failed to update receiver status for: "+Q.friendlyName)},this))};
XX.prototype.disposeInternal=function(){this.setDisplayStatus("");XX.superClass_.disposeInternal.call(this)};var Kx=function(A,Q,b){XX.call(this,A,Q,"CastSession");var f=this;this.config_=b;this.JSC$19608_session_=null;this.JSC$19608_boundSessionUpdate_=(0,_.IL)(this.JSC$19610_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.IL)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Xe(function(){dCt(f,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19608_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19608_isInitLoungeToken_=!1;this.JSC$19608_lastLoungeTokenRefreshError_="unknown"};
_.O(Kx,XX);_.d=Kx.prototype;
_.d.setCastSession=function(A){if(this.JSC$19608_session_){if(this.JSC$19608_session_==A)return;l8(this,"Overriding cast session with new session object");Fxr(this);this.JSC$19608_isInitLoungeToken_=!1;this.JSC$19608_lastLoungeTokenRefreshError_="unknown";this.JSC$19608_session_.removeUpdateListener(this.JSC$19608_boundSessionUpdate_);this.JSC$19608_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19608_session_=A;this.JSC$19608_session_.addUpdateListener(this.JSC$19608_boundSessionUpdate_);this.JSC$19608_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);GvF(this,"getMdxSessionStatus")};
_.d.launchWithParams=function(A){this.info("launchWithParams no-op for Cast: "+(0,_.jV)(A))};
_.d.stop=function(){if(this.JSC$19608_session_)this.JSC$19608_session_.stop((0,_.IL)(function(){this.onSessionStopped()},this),(0,_.IL)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.d.setDisplayStatus=function(){};
_.d.disposeInternal=function(){this.info("disposeInternal");Fxr(this);this.JSC$19608_session_&&(this.JSC$19608_session_.removeUpdateListener(this.JSC$19608_boundSessionUpdate_),this.JSC$19608_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19608_session_=null;XX.prototype.disposeInternal.call(this)};
var pb7=function(A,Q){_.Uo(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0;Q==0?BSr(A):A.getLoungeTokenTimeoutKey_=_.Xe(function(){BSr(A)},Q)},BSr=function(A){GvF(A,"getLoungeToken");
_.Uo(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=_.Xe(function(){PFK(A,null)},3E4)},GvF=function(A,Q){A.info("sendYoutubeMessage_: "+Q+" "+(0,_.jV)(void 0));
var b={};b.type=Q;A.JSC$19608_session_?A.JSC$19608_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",b,function(){},(0,_.IL)(function(){l8(this,"Failed to send message: "+Q+".")},A)):l8(A,"Sending yt message without session: "+(0,_.jV)(b))};
Kx.prototype.onYoutubeMessage_=function(A,Q){if(!this.isDisposed())if(Q)if(Q=(0,_.jU)(Q),_.ZU(Q))switch(A=""+Q.type,Q=Q.data||{},this.info("onYoutubeMessage_: "+A+" "+(0,_.jV)(Q)),A){case "mdxSessionStatus":dCt(this,Q);break;case "loungeToken":PFK(this,Q);break;default:l8(this,"Unknown youtube message: "+A)}else l8(this,"Unable to parse message.");else l8(this,"No data in message.")};
var XbK=function(A,Q){if(Q)A.info("onConnectedScreenId_: Received screenId: "+Q),A.screen_&&A.screen_.id==Q||A.getScreen_(Q,function(b){M5(A,b)},function(){return A.onSessionStopped()},5);
else A.onSessionStopped(Error("Ok"))},UCs=function(A,Q,b){A.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(Q));
var f=new s_(Q);SEN(A,f,function(a){a?(A.JSC$19608_isInitLoungeToken_=!0,Lx(A.JSC$19603_screenService_,f),M5(A,f),A.JSC$19608_lastLoungeTokenRefreshError_="unknown",pb7(A,b)):(_.xQ(Error("Pk`"+JSON.stringify(Q))),A.onSessionStopped())},5)},dCt=function(A,Q){_.Uo(A.sessionStatusTimeoutKey_);
A.sessionStatusTimeoutKey_=0;if(Q)A.config_.enableCastLoungeToken&&Q.loungeToken?Q.deviceId?A.screen_&&A.screen_.uuid==Q.deviceId||(Q.loungeTokenRefreshIntervalMs?UCs(A,{name:A.receiver_.friendlyName,screenId:Q.screenId,loungeToken:Q.loungeToken,dialId:Q.deviceId,screenIdType:"shortLived"},Q.loungeTokenRefreshIntervalMs):(_.xQ(Error("Rk`"+JSON.stringify(Q))),XbK(A,Q.screenId))):(_.xQ(Error("Qk`"+JSON.stringify(Q))),XbK(A,Q.screenId)):XbK(A,Q.screenId);else A.onSessionStopped(Error("Ok"))},PFK=function(A,
Q){_.Uo(A.onLoungeTokenTimeoutKey_);
A.onLoungeTokenTimeoutKey_=0;var b=null;if(Q)if(Q.loungeToken){var f;((f=A.screen_)==null?void 0:f.token)==Q.loungeToken&&(b="staleLoungeToken")}else b="missingLoungeToken";else b="noLoungeTokenResponse";b?(A.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(Q)+", error: "+b)),A.JSC$19608_lastLoungeTokenRefreshError_=b,pb7(A,3E4)):(TSN(A,Q.loungeToken),A.JSC$19608_isInitLoungeToken_=!1,A.JSC$19608_lastLoungeTokenRefreshError_="unknown",pb7(A,Q.loungeTokenRefreshIntervalMs))};
Kx.prototype.getScreen_=function(A,Q,b,f){_.Uo(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;mb7(this.JSC$19603_screenService_,this.receiver_.label,A,this.receiver_.friendlyName,(0,_.IL)(function(a){a?Q(a):f>=0?(l8(this,"Screen "+A+" appears to be offline. "+f+" retries left."),this.getScreenTimeoutKey_=_.Xe((0,_.IL)(this.getScreen_,this,A,Q,b,f-1),300)):b(Error("Sk"))},this),b)};
var SEN=function(A,Q,b,f){_.Uo(A.JSC$19608_checkScreenAvailabilityTimeoutKey_);A.JSC$19608_checkScreenAvailabilityTimeoutKey_=0;QEN(A.JSC$19603_screenService_,Q,function(a){a||f<0?b(a):A.JSC$19608_checkScreenAvailabilityTimeoutKey_=_.Xe(function(){SEN(A,Q,b,f-1)},300)})};
Kx.prototype.JSC$19605_getCastSession=function(){return this.JSC$19608_session_};
Kx.prototype.JSC$19610_onSessionUpdate_=function(A){this.isDisposed()||A||(l8(this,"Cast session died."),this.onSessionStopped())};
var Fxr=function(A){_.Uo(A.getScreenTimeoutKey_);A.getScreenTimeoutKey_=0;_.Uo(A.JSC$19608_checkScreenAvailabilityTimeoutKey_);A.JSC$19608_checkScreenAvailabilityTimeoutKey_=0;_.Uo(A.sessionStatusTimeoutKey_);A.sessionStatusTimeoutKey_=0;_.Uo(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=0;_.Uo(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0};var i8=function(A,Q,b,f){XX.call(this,A,Q,"DialSession");this.config_=f;this.JSC$19612_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19612_theme_=b;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19612_deferredLaunchDeadlineTimer_=NaN;this.JSC$19612_boundSessionUpdate_=(0,_.IL)(this.JSC$19614_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19612_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19612_isInitLoungeToken_=!1;this.JSC$19612_lastLoungeTokenRefreshError_="unknown"};
_.O(i8,XX);i8.prototype.setCastSession=function(A){this.JSC$19612_session_=A;this.JSC$19612_session_.addUpdateListener(this.JSC$19612_boundSessionUpdate_)};
i8.prototype.launchWithParams=function(A){this.connectData_=A;this.deferredLaunch_()};
i8.prototype.stop=function(){LxN(this);if(this.JSC$19612_session_)this.JSC$19612_session_.stop((0,_.IL)(this.onSessionStopped,this,null),(0,_.IL)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
i8.prototype.disposeInternal=function(){LxN(this);this.JSC$19612_session_&&this.JSC$19612_session_.removeUpdateListener(this.JSC$19612_boundSessionUpdate_);this.JSC$19612_session_=null;XX.prototype.disposeInternal.call(this)};
var MGl=function(A){var Q;return!!(A.config_.enableDialLoungeToken&&((Q=A.JSC$19612_session_)==null?0:Q.getDialAppInfo))},lJq=function(A){A.cancelPolling_=A.JSC$19603_screenService_.JSC$19601_getScreenByPollingPairingCode(A.reversePairingCode_,A.receiver_.label,A.receiver_.friendlyName,MGl(A),function(Q,b){A.cancelPolling_=function(){};
A.JSC$19612_isInitLoungeToken_=!0;M5(A,Q);Q.idType=="shortLived"&&b>0&&JN(A,b)},function(Q){A.cancelPolling_=function(){};
A.onSessionStopped(Q)})};
i8.prototype.JSC$19614_onSessionUpdate_=function(A){this.isDisposed()||A||(l8(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var KxF=function(A){var Q={};Q.pairingCode=A.reversePairingCode_;Q.theme=A.JSC$19612_theme_;kxK()&&(Q.env_useStageMdx=1);return _.lu(Q)},iVq=function(A){return new Promise(function(Q){A.reversePairingCode_=B6K();
if(A.connectData_){var b=new chrome.cast.DialLaunchResponse(!0,KxF(A));Q(b);lJq(A)}else A.deferredLaunch_=function(){_.Uo(A.JSC$19612_deferredLaunchDeadlineTimer_);A.deferredLaunch_=function(){};
A.JSC$19612_deferredLaunchDeadlineTimer_=NaN;var f=new chrome.cast.DialLaunchResponse(!0,KxF(A));Q(f);lJq(A)},A.JSC$19612_deferredLaunchDeadlineTimer_=_.Xe(function(){A.deferredLaunch_()},100)})},VGK=function(A,Q,b){A.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(Q));
var f=new s_(Q);return(new Promise(function(a){JFd(A,f,function(T){T?(A.JSC$19612_isInitLoungeToken_=!0,Lx(A.JSC$19603_screenService_,f),M5(A,f),JN(A,b)):_.xQ(Error("Uk`"+JSON.stringify(Q)));a(T)},5)})).then(function(a){return a?new chrome.cast.DialLaunchResponse(!1):iVq(A)})},OVO=function(A,Q){var b=A.launchData_.receiver.label,f=A.receiver_.friendlyName;
return(new Promise(function(a){mb7(A.JSC$19603_screenService_,b,Q,f,function(T){T&&T.token&&M5(A,T);a(T)},function(T){l8(A,"Failed to get DIAL screen: "+T);
a(null)})})).then(function(a){return a&&a.token?new chrome.cast.DialLaunchResponse(!1):iVq(A)})},JFd=function(A,Q,b,f){_.Uo(A.JSC$19612_checkScreenAvailabilityTimeoutKey_);
A.JSC$19612_checkScreenAvailabilityTimeoutKey_=0;QEN(A.JSC$19603_screenService_,Q,function(a){a||f<0?b(a):A.JSC$19612_checkScreenAvailabilityTimeoutKey_=_.Xe(function(){JFd(A,Q,b,f-1)},300)})},JN=function(A,Q){A.info("getDialAppInfoWithTimeout_ "+Q);
MGl(A)&&(_.Uo(A.getDialAppInfoTimeoutKey_),A.getDialAppInfoTimeoutKey_=0,Q==0?nXt(A):A.getDialAppInfoTimeoutKey_=_.Xe(function(){nXt(A)},Q))},nXt=function(A){MGl(A)&&A.JSC$19612_session_.getDialAppInfo(function(Q){A.info("getDialAppInfo dialLaunchData: "+JSON.stringify(Q));
Q=Q.extraData||{};var b=null;if(Q.loungeToken){var f;((f=A.screen_)==null?void 0:f.token)==Q.loungeToken&&(b="staleLoungeToken")}else b="missingLoungeToken";b?(A.JSC$19612_lastLoungeTokenRefreshError_=b,JN(A,3E4)):(A.JSC$19612_isInitLoungeToken_=!1,A.JSC$19612_lastLoungeTokenRefreshError_="unknown",TSN(A,Q.loungeToken),JN(A,Q.loungeTokenRefreshIntervalMs))},function(Q){A.info("getDialAppInfo error: "+Q);
A.JSC$19612_lastLoungeTokenRefreshError_="noLoungeTokenResponse";JN(A,3E4)})},LxN=function(A){_.Uo(A.JSC$19612_checkScreenAvailabilityTimeoutKey_);
A.JSC$19612_checkScreenAvailabilityTimeoutKey_=0;_.Uo(A.getDialAppInfoTimeoutKey_);A.getDialAppInfoTimeoutKey_=0;A.cancelPolling_();A.cancelPolling_=function(){};
_.Uo(A.JSC$19612_deferredLaunchDeadlineTimer_)};var Vm=function(A,Q){XX.call(this,A,Q,"ManualSession");this.JSC$19616_deferredLaunchDeadlineTimer_=_.Xe((0,_.IL)(this.launchWithParams,this,null),150)};
_.O(Vm,XX);Vm.prototype.stop=function(){this.onSessionStopped()};
Vm.prototype.setCastSession=function(){};
Vm.prototype.launchWithParams=function(){_.Uo(this.JSC$19616_deferredLaunchDeadlineTimer_);this.JSC$19616_deferredLaunchDeadlineTimer_=NaN;var A=A5(this.JSC$19603_screenService_.getScreens(),this.receiver_.label);if(A)M5(this,A);else this.onSessionStopped(Error("Vk"))};
Vm.prototype.disposeInternal=function(){_.Uo(this.JSC$19616_deferredLaunchDeadlineTimer_);this.JSC$19616_deferredLaunchDeadlineTimer_=NaN;XX.prototype.disposeInternal.call(this)};var Mw=function(A,Q){_.Kj.call(this);this.config_=Q;this.JSC$19619_screenService_=A;this.JSC$19619_appId_=Q.appId||"233637DE";this.JSC$19619_theme_=Q.theme||"cl";this.disableDial_=Q.disableCastApi||!1;this.forceMirroring_=Q.forceMirroring||!1;this.JSC$19619_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.IL)(this.onReceiverAction_,this)};
_.O(Mw,_.Kj);
Mw.prototype.init=function(A,Q){chrome.cast.timeout.requestSession=3E4;var b=new chrome.cast.SessionRequest(this.JSC$19619_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.K("desktop_enable_cast_connect")&&(b.androidReceiverCompatible=!0);this.disableDial_||(b.dialRequest=new chrome.cast.DialRequest("YouTube"));var f=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;A=A||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var a=(0,_.IL)(this.onReceiverUpdated_,
this);b=new chrome.cast.ApiConfig(b,(0,_.IL)(this.onSessionEstablished_,this),a,f,A);b.customDialLaunchCallback=(0,_.IL)(this.onDialLaunchRequested_,this);chrome.cast.initialize(b,(0,_.IL)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),jzd(),this.JSC$19619_screenService_.subscribe("onlineScreenChange",(0,_.IL)(this.JSC$19621_onScreenChange_,this)),this.customReceivers_=kv7(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.IL)(function(T){this.warn_("Failed to set initial custom receivers: "+(0,_.jV)(T))},this)),this.publish("yt-remote-cast2-availability-change",OU(this)),Q(!0))},this),(0,_.IL)(function(T){this.warn_("Failed to initialize API: "+(0,_.jV)(T));
Q(!1)},this))};
Mw.prototype.setConnectedScreenStatus=function(A,Q){nx("Setting connected screen ID: "+A+" -> "+Q);if(this.JSC$19619_session_){var b=this.JSC$19619_session_.screen_;if(!A||b&&b.id!=A)nx("Unsetting old screen status: "+this.JSC$19619_session_.receiver_.friendlyName),kd(this,null)}if(A&&Q){if(!this.JSC$19619_session_){A=A5(this.JSC$19619_screenService_.getScreens(),A);if(!A){nx("setConnectedScreenStatus: Unknown screen.");return}if(A.idType=="shortLived"){nx("setConnectedScreenStatus: Screen with id type to be short lived.");
return}b=IJF(this,A);b||(nx("setConnectedScreenStatus: Connected receiver not custom..."),b=new chrome.cast.Receiver(A.uuid?A.uuid:A.id,A.name),b.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(b),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.IL)(function(f){this.warn_("Failed to set initial custom receivers: "+(0,_.jV)(f))},this)));
nx("setConnectedScreenStatus: new active receiver: "+b.friendlyName);kd(this,new Vm(this.JSC$19619_screenService_,b),!0)}this.JSC$19619_session_.setDisplayStatus(Q)}else nx("setConnectedScreenStatus: no screen.")};
var IJF=function(A,Q){return Q?_.R9(A.customReceivers_,function(b){return mH(Q,b.label)},A):null};
Mw.prototype.setLaunchParams=function(A){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19619_session_?this.JSC$19619_session_.launchWithParams(A):this.warn_("Setting connection data without a session")};
Mw.prototype.JSC$19621_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19619_session_?(this.JSC$19619_session_.stop(),kd(this,null)):nx("Stopping non-existing session")};
Mw.prototype.requestSession=function(){chrome.cast.requestSession((0,_.IL)(this.onSessionEstablished_,this),(0,_.IL)(this.onSessionRequestFailed_,this))};
Mw.prototype.disposeInternal=function(){this.JSC$19619_screenService_.unsubscribe("onlineScreenChange",(0,_.IL)(this.JSC$19621_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Eb(_.zV("yt.mdx.remote.debug.handlers_")||[],orx);_.AT(this.JSC$19619_session_);_.Kj.prototype.disposeInternal.call(this)};
var nx=function(A){T4("Controller",A)};
Mw.prototype.warn_=function(A){T4("Controller",A)};
var orx=function(A){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(A)},OU=function(A){return A.hasCastReceiver_||!!A.customReceivers_.length||!!A.JSC$19619_session_},kd=function(A,Q,b){Q!=A.JSC$19619_session_&&(_.AT(A.JSC$19619_session_),(A.JSC$19619_session_=Q)?(b?A.publish("yt-remote-cast2-receiver-resumed",Q.receiver_):A.publish("yt-remote-cast2-receiver-selected",Q.receiver_),Q.subscribe("sessionScreen",(0,_.IL)(A.onSessionScreen_,A,Q)),Q.subscribe("sessionFailed",
function(){return HVO(A,Q)}),Q.screen_?A.publish("yt-remote-cast2-session-change",Q.screen_):b&&A.JSC$19619_session_.launchWithParams(null)):A.publish("yt-remote-cast2-session-change",null))},HVO=function(A,Q){A.JSC$19619_session_==Q&&A.publish("yt-remote-cast2-session-failed")};
_.d=Mw.prototype;_.d.onSessionScreen_=function(A,Q){this.JSC$19619_session_==A&&(Q||kd(this,null),this.publish("yt-remote-cast2-session-change",Q))};
_.d.onReceiverAction_=function(A,Q){if(!this.isDisposed())if(A)switch(A.friendlyName=chrome.cast.unescape(A.friendlyName),nx("onReceiverAction_ "+A.label+" / "+A.friendlyName+"-- "+Q),Q){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19619_session_)if(this.JSC$19619_session_.receiver_.label!=A.label)nx("onReceiverAction_: Stopping active receiver: "+this.JSC$19619_session_.receiver_.friendlyName),this.JSC$19619_session_.stop();else{nx("onReceiverAction_: Casting to active receiver.");this.JSC$19619_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19619_session_.screen_);break}switch(A.receiverType){case chrome.cast.ReceiverType.CUSTOM:kd(this,new Vm(this.JSC$19619_screenService_,A));break;case chrome.cast.ReceiverType.DIAL:kd(this,new i8(this.JSC$19619_screenService_,A,this.JSC$19619_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:kd(this,new Kx(this.JSC$19619_screenService_,A,this.config_));break;default:this.warn_("Unknown receiver type: "+A.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19619_session_&&
this.JSC$19619_session_.receiver_.label==A.label?this.JSC$19619_session_.stop():this.warn_("Stopping receiver w/o session: "+A.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.d.onDialLaunchRequested_=function(A){if(this.isDisposed())return Promise.reject(Error("Wk"));var Q=A.receiver;Q.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+Q.friendlyName),Q.receiverType=chrome.cast.ReceiverType.DIAL);var b=this.JSC$19619_session_?this.JSC$19619_session_.receiver_:null;if(!b||b.label!=Q.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+Q.friendlyName),Promise.reject(Error("Xk"));if(b&&b.label==Q.label&&b.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19619_session_.screen_)return nx("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19619_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+b.receiverType+'" to "dial" for '+Q.friendlyName);kd(this,new i8(this.JSC$19619_screenService_,Q,this.JSC$19619_theme_,this.config_))}Q=this.JSC$19619_session_;Q.launchData_=A;Q.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(A=Q.launchData_.extraData||{},b=A.screenId||null,MGl(Q)&&A.loungeToken?A.loungeTokenRefreshIntervalMs?A=VGK(Q,{name:Q.receiver_.friendlyName,screenId:A.screenId,loungeToken:A.loungeToken,dialId:Q.launchData_.receiver.label,screenIdType:"shortLived"},A.loungeTokenRefreshIntervalMs):(_.xQ(Error("Tk`"+JSON.stringify(A))),A=OVO(Q,b)):A=OVO(Q,b)):A=iVq(Q);return A};
_.d.onSessionEstablished_=function(A){var Q=this;if(!this.isDisposed()&&!this.forceMirroring_){nx("New cast session ID: "+A.sessionId);var b=A.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19619_session_)if(b.receiverType==chrome.cast.ReceiverType.CAST)nx("Got resumed cast session before resumed mdx connection."),b.friendlyName=chrome.cast.unescape(b.friendlyName),kd(this,new Kx(this.JSC$19619_screenService_,b,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var f=this.JSC$19619_session_.receiver_,a=A5(this.JSC$19619_screenService_.getScreens(),f.label);a&&mH(a,b.label)&&f.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==chrome.cast.ReceiverType.CAST&&(nx("onSessionEstablished_: manual to cast session change "+b.friendlyName),_.AT(this.JSC$19619_session_),this.JSC$19619_session_=new Kx(this.JSC$19619_screenService_,b,this.config_),this.JSC$19619_session_.subscribe("sessionScreen",(0,_.IL)(this.onSessionScreen_,this,this.JSC$19619_session_)),
this.JSC$19619_session_.subscribe("sessionFailed",function(){return HVO(Q,Q.JSC$19619_session_)}),this.JSC$19619_session_.launchWithParams(null));
this.JSC$19619_session_.setCastSession(A)}}};
_.d.JSC$19621_getCastSession=function(){return this.JSC$19619_session_?this.JSC$19619_session_.JSC$19605_getCastSession():null};
_.d.onSessionRequestFailed_=function(A){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.jV)(A)),A.code!=chrome.cast.ErrorCode.CANCEL&&kd(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.d.onReceiverUpdated_=function(A){nx("Receiver availability updated: "+A);if(!this.isDisposed()){var Q=OU(this);this.hasCastReceiver_=A==chrome.cast.ReceiverAvailability.AVAILABLE;OU(this)!=Q&&this.publish("yt-remote-cast2-availability-change",OU(this))}};
var kv7=function(A){var Q=A.JSC$19619_screenService_.JSC$19601_getOnlineScreens(),b=A.JSC$19619_session_&&A.JSC$19619_session_.receiver_;A=_.Rk(Q,function(f){b&&mH(f,b.label)&&(b=null);var a=f.uuid?f.uuid:f.id,T=IJF(this,f);T?(T.label=a,T.friendlyName=f.name):(T=new chrome.cast.Receiver(a,f.name),T.receiverType=chrome.cast.ReceiverType.CUSTOM);return T},A);
b&&(b.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(b=new chrome.cast.Receiver(b.label,b.friendlyName),b.receiverType=chrome.cast.ReceiverType.CUSTOM),A.push(b));return A};
Mw.prototype.JSC$19621_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=kv7(this),nx("Updating custom receivers: "+(0,_.jV)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.IL)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",OU(this)))};
Mw.prototype.setLaunchParams=Mw.prototype.setLaunchParams;Mw.prototype.setConnectedScreenStatus=Mw.prototype.setConnectedScreenStatus;Mw.prototype.stopSession=Mw.prototype.JSC$19621_stopSession;Mw.prototype.getCastSession=Mw.prototype.JSC$19621_getCastSession;Mw.prototype.requestSession=Mw.prototype.requestSession;Mw.prototype.init=Mw.prototype.init;Mw.prototype.dispose=Mw.prototype.dispose;var CFd=_.sC(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),awl=[],yEq=_.GH(CFd);var qEO=function(A){A.audioTrackId=null;A.trackData=null;A.playerState=-1;A.hasPrevious=!1;A.hasNext=!1;A.playerTime_=0;A.playerTimeAt_=_.G0();A.seekableStart_=0;A.seekableEnd_=0;A.duration_=0;A.loadedTime=0;A.liveIngestionTime_=NaN;A.isLive_=!1};
_.d=l5.prototype;
_.d.reset=function(A){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;A&&(this.index=A.index,this.listId=A.listId,this.videoId=A.videoId,this.playerState=A.playerState,this.volume=A.volume,this.muted=A.muted,this.audioTrackId=A.audioTrackId,this.trackData=A.trackData,this.hasPrevious=A.hasPrevious,this.hasNext=A.hasNext,this.playerTime_=A.playerTime,this.playerTimeAt_=A.playerTimeAt,this.seekableStart_=A.seekableStart,this.seekableEnd_=A.seekableEnd,this.duration_=A.duration,this.loadedTime=
A.loadedTime,this.liveIngestionTime_=A.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.d.stopPlayer=function(){this.index=-1;this.videoId="";qEO(this)};
_.d.isPlaying=function(){return this.playerState==1};
_.d.isBuffering=function(){return this.playerState==3};
_.d.isAdPlaying=function(){return this.playerState==1081};
var Is=function(A,Q){A.playerTime_=Q;A.playerTimeAt_=_.G0()},oXK=function(A){switch(A.playerState){case 1:case 1081:return(_.G0()-A.playerTimeAt_)/1E3+A.playerTime_;
case -1E3:return 0}return A.playerTime_};
l5.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.G0()-this.playerTimeAt_)/1E3:0):this.duration_};
var tGs=function(A,Q,b){var f=A.videoId;A.videoId=Q;A.index=b;Q!=f&&qEO(A)},rFs=function(A){var Q={};
Q.index=A.index;Q.listId=A.listId;Q.videoId=A.videoId;Q.playerState=A.playerState;Q.volume=A.volume;Q.muted=A.muted;Q.audioTrackId=A.audioTrackId;Q.trackData=_.j2.unsafeClone(A.trackData);Q.hasPrevious=A.hasPrevious;Q.hasNext=A.hasNext;Q.playerTime=A.playerTime_;Q.playerTimeAt=A.playerTimeAt_;Q.seekableStart=A.seekableStart_;Q.seekableEnd=A.seekableEnd_;Q.duration=A.duration_;Q.loadedTime=A.loadedTime;Q.liveIngestionTime=A.liveIngestionTime_;return Q};
l5.prototype.clone=function(){return new l5(rFs(this))};var HA=function(A,Q){_.Kj.call(this);var b=this;this.state_=0;this.connection_=A;this.contextSubscriptions_=[];this.actionQueue_=new AEN;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.IL)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.IL)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.IL)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.IL)(this.onCloudviewAvailabilityChange_,this);var f=0;A?(f=A.getProxyState(),
f!=3&&(A.subscribe("proxyStateChange",this.setState_,this),jEs(this))):f=3;f!=0&&(Q?this.setState_(f):_.Xe(function(){b.setState_(f)},0));
(A=GUr())&&R0N(this,A);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.O(HA,_.Kj);HA.prototype.getState=function(){return this.state_};
HA.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
HA.prototype.reconnect=function(){this.connection_.reconnect()};
var Cx=function(A){return new l5(A.connection_.getPlayerContextData())};
_.d=HA.prototype;_.d.play=function(){q5(this)?(this.castMedia_?this.castMedia_.play(null,_.nw,gXF(this,"play")):tN(this,"play"),e0t(this,1,oXK(Cx(this))),this.publish("remotePlayerChange")):rC(this,this.play)};
_.d.pause=function(){q5(this)?(this.castMedia_?this.castMedia_.pause(null,_.nw,gXF(this,"pause")):tN(this,"pause"),e0t(this,2,oXK(Cx(this))),this.publish("remotePlayerChange")):rC(this,this.pause)};
_.d.seekTo=function(A){if(q5(this)){if(this.castMedia_){var Q=Cx(this),b=new chrome.cast.media.SeekRequest;b.currentTime=A;Q.isPlaying()||Q.isBuffering()?b.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:b.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(b,_.nw,gXF(this,"seekTo",{newTime:A}))}else tN(this,"seekTo",{newTime:A});e0t(this,3,A);this.publish("remotePlayerChange")}else rC(this,_.Ol(this.seekTo,A))};
_.d.stop=function(){if(q5(this)){this.castMedia_?this.castMedia_.stop(null,_.nw,gXF(this,"stopVideo")):tN(this,"stopVideo");var A=Cx(this);A.stopPlayer();j8(this,A);this.publish("remotePlayerChange")}else rC(this,this.stop)};
_.d.setVolume=function(A,Q){if(q5(this)){var b=Cx(this);if(this.castSession_){if(b.volume!=A){var f=Math.round(A)/100;this.castSession_.setReceiverVolumeLevel(f,(0,_.IL)(function(){dJ("set receiver volume: "+f)},this),(0,_.IL)(function(){this.warn_("failed to set receiver volume.")},this))}b.muted!=Q&&this.castSession_.setReceiverMuted(Q,(0,_.IL)(function(){dJ("set receiver muted: "+Q)},this),(0,_.IL)(function(){this.warn_("failed to set receiver muted.")},this))}else{var a={volume:A,
muted:Q};b.volume!=-1&&(a.delta=A-b.volume);tN(this,"setVolume",a)}b.muted=Q;b.volume=A;j8(this,b)}else rC(this,_.Ol(this.setVolume,A,Q))};
_.d.setAudioTrack=function(A,Q){q5(this)?(Q=Q.getLanguageInfo().getId(),tN(this,"setAudioTrack",{videoId:A,audioTrackId:Q}),A=Cx(this),A.audioTrackId=Q,j8(this,A)):rC(this,_.Ol(this.setAudioTrack,A,Q))};
_.d.addVideo=function(A){q5(this)?tN(this,"addVideo",{videoId:A}):rC(this,_.Ol(this.addVideo,A))};
_.d.addPlaylist=function(A){q5(this)?tN(this,"addVideos",{listId:A}):rC(this,_.Ol(this.addPlaylist,A))};
_.d.addVideos=function(A){A.length==0?this.warn_("Ignore add videos request due to empty list"):q5(this)?tN(this,"addVideos",{videoIds:A.join(",")}):rC(this,_.Ol(this.addVideos,A))};
_.d.JSC$19631_removeVideo=function(A){q5(this)?tN(this,"removeVideo",{videoId:A}):rC(this,_.Ol(this.JSC$19631_removeVideo,A))};
_.d.JSC$19631_insertVideo=function(A){q5(this)?tN(this,"insertVideo",{videoId:A}):rC(this,_.Ol(this.JSC$19631_insertVideo,A))};
_.d.playVideo=function(A,Q,b,f,a,T,G){f=f===void 0?null:f;a=a===void 0?null:a;T=T===void 0?null:T;G=G===void 0?null:G;var p=Cx(this),P={videoId:A};b!==void 0&&(P.currentIndex=b);tGs(p,A,b||0);Q!==void 0&&(Is(p,Q),P.currentTime=Q);f&&(P.listId=f);a&&(P.playerParams=a);T&&(P.clickTrackingParams=T);G&&(P.locationInfo=(0,_.jV)(G));tN(this,"setPlaylist",P);f||j8(this,p)};
_.d.nextVideo=function(A,Q){if(q5(this)){if(A&&Q){var b=Cx(this);tGs(b,A,Q);j8(this,b)}tN(this,"next")}else rC(this,_.Ol(this.nextVideo,A,Q))};
_.d.clearPlaylist=function(){if(q5(this)){tN(this,"clearPlaylist");var A=Cx(this);A.reset();j8(this,A);this.publish("remotePlayerChange")}else rC(this,this.clearPlaylist)};
_.d.dispose=function(){if(this.state_!=3){var A=this.state_;this.state_=3;this.publish("proxyStateChange",A,this.state_)}_.Kj.prototype.dispose.call(this)};
_.d.disposeInternal=function(){h0d(this);this.connection_=null;this.actionQueue_.clear();R0N(this,null);_.Kj.prototype.disposeInternal.call(this)};
var jEs=function(A){_.ZR("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(Q){this.contextSubscriptions_.push(this.connection_.subscribe(Q,_.Ol(this.onProxyEvent_,Q),this))},A)},h0d=function(A){_.ZR(A.contextSubscriptions_,function(Q){this.connection_.unsubscribeByKey(Q)},A);
A.contextSubscriptions_.length=0},q5=function(A){return A.getState()==1},rC=function(A,Q){A.actionQueue_.getCount()<50&&A.actionQueue_.enqueue(Q)},e0t=function(A,Q,b){var f=Cx(A);
Is(f,b);f.playerState!=-1E3&&(f.playerState=Q);j8(A,f)},tN=function(A,Q,b){A.connection_.sendMessage(Q,b)},j8=function(A,Q){h0d(A);
A.connection_.setPlayerContextData(rFs(Q));jEs(A)};
HA.prototype.setState_=function(A){if((A!=this.state_||A==2)&&this.state_!=3&&A!=0){var Q=this.state_;this.state_=A;this.publish("proxyStateChange",Q,A);if(A==1)for(;!this.actionQueue_.isEmpty();)A=this.actionQueue_,NlK(A),A.front_.pop().apply(this);else A==3&&this.dispose()}};
HA.prototype.onProxyEvent_=function(A,Q){this.publish(A,Q)};
var R0N=function(A,Q){A.castSession_&&(A.castSession_.removeUpdateListener(A.boundCastStatusListener_),A.castSession_.removeMediaListener(A.boundCastMediaListener_),A.onCastMediaChange_(null));A.castSession_=Q;if(A.castSession_&&(dJ("Setting cast session: "+A.castSession_.sessionId),A.castSession_.addUpdateListener(A.boundCastStatusListener_),A.castSession_.addMediaListener(A.boundCastMediaListener_),A.castSession_.media.length))A.onCastMediaChange_(A.castSession_.media[0])};
HA.prototype.onCastStatusUpdate_=function(A){if(!A)this.onCastMediaChange_(null),R0N(this,null);else if(this.castSession_.receiver.volume){A=this.castSession_.receiver.volume;var Q=Cx(this),b=Math.round(100*A.level||0);if(Q.volume!=b||Q.muted!=A.muted)dJ("Cast volume update: "+A.level+(A.muted?" muted":"")),Q.volume=b,Q.muted=!!A.muted,j8(this,Q)}};
HA.prototype.onCastMediaChange_=function(A){dJ("Cast media: "+!!A);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=A)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),WxK(this),this.publish("remotePlayerChange")};
var WxK=function(A){var Q=A.castMedia_.media,b=A.castMedia_.customData;if(Q&&b){var f=Cx(A);Q.contentId!=f.videoId&&dJ("Cast changing video to: "+Q.contentId);f.videoId=Q.contentId;f.playerState=b.playerState;Is(f,A.castMedia_.getEstimatedTime());j8(A,f)}else dJ("No cast media video. Ignoring state update.")};
HA.prototype.onCastMediaUpdate_=function(A){if(A)WxK(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
HA.prototype.onCloudviewAvailabilityChange_=function(){var A=GUr();A&&R0N(this,A)};
HA.prototype.warn_=function(A){T4("CP",A)};
var gXF=function(A,Q,b){return(0,_.IL)(function(f){this.warn_("Failed to "+Q+" with cast v2 channel. Error code: "+f.code);f.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+Q+" using MDx browser channel."),tN(this,Q,b))},A)};var gC=function(A,Q,b,f){f=f===void 0?!1:f;_.Kj.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$19638_http_=A;this.enableConnectWithInitialState_=f;this.listeners_.push(_.bv(window,"beforeunload",function(){a.JSC$19641_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new l5;this.currentScreenId_=Q.id;this.currentScreenIdType_=Q.idType;this.channelService=qYl(this.JSC$19638_http_,b,this.JSC$19641_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){vXx(a)});
this.channelService.listen("channelClosed",function(){Rs("Channel closed");isNaN(a.connectTimerId_)?QW(!0):QW();a.dispose()});
this.channelService.listen("channelError",function(T){QW();isNaN(a.getReconnectTimeout_())?(T==1&&a.currentScreenIdType_=="shortLived"&&a.publish("browserChannelAuthError",T),Rs("Channel error: "+T+" without reconnection"),a.dispose()):(a.reconnecting_=!0,Rs("Channel error: "+T+" with reconnection in "+a.getReconnectTimeout_()+" ms"),EXK(a,2))});
this.channelService.listen("channelMessage",function(T){xCO(a,T)});
this.channelService.setLoungeToken(Q.token);this.subscribe("remoteQueueChange",function(){var T=a.playerContext_.videoId;UjN()&&_.KW("yt-remote-session-video-id",T)})};
_.O(gC,_.Kj);
gC.prototype.connect=function(A,Q){if(Q){var b=Q.listId,f=Q.videoId,a=Q.videoIds,T=Q.playerParams,G=Q.clickTrackingParams,p=Q.index,P={videoId:f},U=Q.currentTime,L=Q.locationInfo;Q=Q.loopMode;U!==void 0&&(P.currentTime=U<=5?0:U);T&&(P.playerParams=T);L&&(P.locationInfo=L);G&&(P.clickTrackingParams=G);b&&(P.listId=b);a&&a.length>0&&(P.videoIds=a.join(","));p!==void 0&&(P.currentIndex=p);this.enableConnectWithInitialState_&&(P.loopMode=Q||"LOOP_MODE_OFF");b&&(this.playerContext_.listId=b);this.playerContext_.videoId=
f;this.playerContext_.index=p||0;this.playerContext_.state=3;Is(this.playerContext_,U);this.autoplayMode_="UNSUPPORTED";b=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Rs("Connecting with "+b+" and params: "+(0,_.jV)(P));this.channelService.connect({method:b,params:(0,_.jV)(P)},A,iTO())}else Rs("Connecting without params"),this.channelService.connect({},A,iTO());cFd(this)};
gC.prototype.setLoungeToken=function(A){this.channelService.setLoungeToken(A)};
gC.prototype.dispose=function(){this.isDisposed()||(_.Al("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),EXK(this,3));_.Kj.prototype.dispose.call(this)};
gC.prototype.disposeInternal=function(){z0N(this);wbl(this);uJx(this);_.Uo(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Uo(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.x7F(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Kj.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var ZVM=function(A){return _.R9(A.connectedDevices_,function(Q){return Q.type=="LOUNGE_SCREEN"})},Rs=function(A){T4("conn",A)},EXK=function(A,Q){A.publish("proxyStateChange",Q)},cFd=function(A){A.connectTimerId_=_.Xe(function(){Rs("Connecting timeout");
A.JSC$19641_disconnect_(1)},2E4)},z0N=function(A){_.Uo(A.connectTimerId_);
A.connectTimerId_=NaN},uJx=function(A){_.Uo(A.reconnectedCheckScreenTimeout_);
A.reconnectedCheckScreenTimeout_=NaN},yFd=function(A){wbl(A);
A.playingSyncTimerId_=_.Xe(function(){e8(A,"getNowPlaying")},2E4)},wbl=function(A){_.Uo(A.playingSyncTimerId_);
A.playingSyncTimerId_=NaN},vXx=function(A){Rs("Channel opened");
A.reconnecting_&&(A.reconnecting_=!1,uJx(A),A.reconnectedCheckScreenTimeout_=_.Xe(function(){Rs("Timing out waiting for a screen.");A.JSC$19641_disconnect_(1)},15E3))},DCK=function(A,Q){var b=null;
if(Q){var f=ZVM(A);f&&(b={clientName:f.clientName,deviceMake:f.brand,deviceModel:f.model,osVersion:f.osVersion})}_.Al("yt.mdx.remote.remoteClient_",b);Q&&(z0N(A),uJx(A));b=A.channelService.isChannelOpened()&&isNaN(A.connectTimerId_);Q==b?Q&&(EXK(A,1),e8(A,"getSubtitlesTrack")):Q?(A.getOtherConnectedRemoteId_()&&A.playerContext_.reset(),EXK(A,1),e8(A,"getNowPlaying"),YEx(A)):A.JSC$19641_disconnect_(1)},$CM=function(A,Q){var b=Q.params.videoId;
delete Q.params.videoId;b==A.playerContext_.videoId&&(_.j2.isEmpty(Q.params)?A.playerContext_.trackData=null:A.playerContext_.trackData=Q.params,A.publish("remotePlayerChange"))},NS7=function(A,Q,b){var f=Q.params.videoId||Q.params.video_id,a=parseInt(Q.params.currentIndex,10);
A.playerContext_.listId=Q.params.listId||A.playerContext_.listId;tGs(A.playerContext_,f,a);A.publish("remoteQueueChange",b)},sEd=function(A,Q){Q.params=Q.params||{};
NS7(A,Q,"NOW_PLAYING_MAY_CHANGE");A.onStateChange_(Q);A.publish("autoplayDismissed")};
gC.prototype.onStateChange_=function(A){var Q=parseInt(A.params.currentTime||A.params.current_time,10);Is(this.playerContext_,isNaN(Q)?0:Q);Q=parseInt(A.params.state,10);Q=isNaN(Q)?-1:Q;Q==-1&&this.playerContext_.playerState==-1E3&&(Q=-1E3);this.playerContext_.playerState=Q;Q=Number(A.params.loadedTime);this.playerContext_.loadedTime=isNaN(Q)?0:Q;Q=Number(A.params.duration);this.playerContext_.duration_=isNaN(Q)?0:Q;Q=this.playerContext_;var b=Number(A.params.liveIngestionTime);Q.liveIngestionTime_=
b;Q.isLive_=isNaN(b)?!1:!0;Q=this.playerContext_;b=Number(A.params.seekableStartTime);A=Number(A.params.seekableEndTime);Q.seekableStart_=isNaN(b)?0:b;Q.seekableEnd_=isNaN(A)?0:A;this.playerContext_.playerState==1?yFd(this):wbl(this);this.publish("remotePlayerChange")};
gC.prototype.onAdStateChange_=function(A){if(this.playerContext_.playerState!=-1E3){var Q=1085;switch(parseInt(A.params.adState,10)){case 1:Q=1081;break;case 2:Q=1084;break;case 0:Q=1083}this.playerContext_.playerState=Q;A=parseInt(A.params.currentTime,10);Is(this.playerContext_,isNaN(A)?0:A);this.publish("remotePlayerChange")}};
var mCN=function(A,Q){var b=Q.params.muted=="true";A.playerContext_.volume=parseInt(Q.params.volume,10);A.playerContext_.muted=b;A.publish("remotePlayerChange")},ACF=function(A,Q){A.autoplayVideoId_=Q.params.videoId;
A.publish("nowAutoplaying",parseInt(Q.params.timeout,10))},QSO=function(A,Q){A.autoplayVideoId_=Q.params.videoId||null;
A.publish("autoplayUpNext",A.autoplayVideoId_)},bal=function(A,Q){A.autoplayMode_=Q.params.autoplayMode;
A.publish("autoplayModeChange",A.autoplayMode_);A.autoplayMode_=="DISABLED"&&A.publish("autoplayDismissed")},f_O=function(A,Q){var b=Q.params.hasNext=="true";
A.playerContext_.hasPrevious=Q.params.hasPrevious=="true";A.playerContext_.hasNext=b;A.publish("previousNextChange")};
gC.prototype.isCapabilitySupportedOnConnectedDevices_=function(A){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var Q=_.F(this.connectedDevices_),b=Q.next();!b.done;b=Q.next())if(!b.value.capabilities.has(A))return!1;return!0};
var xCO=function(A,Q){Q=Q.message;Q.params?Rs("Received: action="+Q.action+", params="+(0,_.jV)(Q.params)):Rs("Received: action="+Q.action+" {}");switch(Q.action){case "loungeStatus":Q=(0,_.jU)(Q.params.devices);A.connectedDevices_=_.Rk(Q,function(f){return new S8(f)});
Q=!!_.R9(A.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
DCK(A,Q);Q=A.isCapabilitySupportedOnConnectedDevices_("mlm");A.publish("multiStateLoopEnabled",Q);break;case "loungeScreenDisconnected":C0O(A.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
DCK(A,!1);break;case "remoteConnected":var b=new S8((0,_.jU)(Q.params.device));_.R9(A.connectedDevices_,function(f){return f.equals(b)})||_.OF9(A.connectedDevices_,b);
break;case "remoteDisconnected":b=new S8((0,_.jU)(Q.params.device));C0O(A.connectedDevices_,function(f){return f.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":NS7(A,Q,"QUEUE_MODIFIED");break;case "nowPlaying":sEd(A,Q);break;case "onStateChange":A.onStateChange_(Q);break;case "onAdStateChange":A.onAdStateChange_(Q);break;case "onVolumeChanged":mCN(A,Q);break;case "onSubtitlesTrackChanged":$CM(A,Q);break;case "nowAutoplaying":ACF(A,Q);break;case "autoplayDismissed":A.publish("autoplayDismissed");break;case "autoplayUpNext":QSO(A,Q);break;case "onAutoplayModeChanged":bal(A,Q);break;case "onHasPreviousNextChanged":f_O(A,
Q);break;case "requestAssistedSignIn":A.publish("assistedSignInRequested",Q.params.authCode);break;case "onLoopModeChanged":A.publish("loopModeChange",Q.params.loopMode);break;default:Rs("Unrecognized action: "+Q.action)}};
_.d=gC.prototype;_.d.getProxyState_=function(){var A=3;this.isDisposed()||(A=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(A=1):A=2);return A};
_.d.JSC$19641_disconnect_=function(A){Rs("Disconnecting with "+A);_.Al("yt.mdx.remote.remoteClient_",null);z0N(this);this.publish("beforeDisconnect",A);A==1&&QW();this.channelService.disconnect(A);this.dispose()};
_.d.getPlayerContextData_=function(){var A=this.playerContext_;this.clientVideoId_&&(A=this.playerContext_.clone(),tGs(A,this.clientVideoId_,A.index));return rFs(A)};
_.d.setPlayerContextData_=function(A){var Q=this,b=new l5(A);b.videoId&&b.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=b.videoId,_.Uo(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Xe(function(){if(Q.clientVideoId_){var a=Q.clientVideoId_;Q.clientVideoId_=null;Q.playerContext_.videoId!=a&&e8(Q,"getNowPlaying")}},5E3));
var f=[];this.playerContext_.listId==b.listId&&this.playerContext_.videoId==b.videoId&&this.playerContext_.index==b.index||f.push("remoteQueueChange");this.playerContext_.playerState==b.playerState&&this.playerContext_.volume==b.volume&&this.playerContext_.muted==b.muted&&oXK(this.playerContext_)==oXK(b)&&(0,_.jV)(this.playerContext_.trackData)==(0,_.jV)(b.trackData)||f.push("remotePlayerChange");this.playerContext_.reset(A);_.ZR(f,function(a){this.publish(a)},this)};
_.d.getOtherConnectedRemoteId_=function(){var A=this.channelService.getDeviceId(),Q=_.R9(this.connectedDevices_,function(b){return b.type=="REMOTE_CONTROL"&&b.id!=A});
return Q?Q.id:""};
_.d.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.d.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.d.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.d.JSC$19641_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var YEx=function(A){_.Uo(A.idleDisconnectTimerId_);A.idleDisconnectTimerId_=_.Xe(function(){A.JSC$19641_disconnect_(1)},864E5)},e8=function(A,Q,b){b?Rs("Sending: action="+Q+", params="+(0,_.jV)(b)):Rs("Sending: action="+Q);
A.channelService.sendMessage(Q,b)};
gC.prototype.sendMessageWithUserAction_=function(A,Q){e8(this,A,Q);YEx(this)};
gC.prototype.JSC$19641_getXsrfToken_=function(){var A=_.J$.get("SAPISID","")||_.J$.get("__Secure-1PAPISID",void 0)||"",Q=_.J$.get("__Secure-3PAPISID","")||"";if(!A&&!Q)return"";A=_.Cs(_.nK(A),2);Q=_.Cs(_.nK(Q),2);return _.Cs(_.nK(","+A+","+Q),2)};
gC.prototype.subscribe=gC.prototype.subscribe;gC.prototype.unsubscribeByKey=gC.prototype.unsubscribeByKey;gC.prototype.getProxyState=gC.prototype.getProxyState_;gC.prototype.disconnect=gC.prototype.JSC$19641_disconnect_;gC.prototype.getPlayerContextData=gC.prototype.getPlayerContextData_;gC.prototype.setPlayerContextData=gC.prototype.setPlayerContextData_;gC.prototype.getOtherConnectedRemoteId=gC.prototype.getOtherConnectedRemoteId_;gC.prototype.getReconnectTimeout=gC.prototype.getReconnectTimeout_;
gC.prototype.getAutoplayMode=gC.prototype.getAutoplayMode_;gC.prototype.getAutoplayVideoId=gC.prototype.getAutoplayVideoId_;gC.prototype.reconnect=gC.prototype.JSC$19641_reconnect_;gC.prototype.sendMessage=gC.prototype.sendMessageWithUserAction_;gC.prototype.getXsrfToken=gC.prototype.JSC$19641_getXsrfToken_;gC.prototype.isCapabilitySupportedOnConnectedDevices=gC.prototype.isCapabilitySupportedOnConnectedDevices_;var a_x=function(A){G4.call(this,"ScreenServiceProxy");this.instance_=A;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.IL)(this.JSC$19644_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.IL)(this.onOnlineScreenChange_,this)))};
_.O(a_x,G4);_.d=a_x.prototype;_.d.getScreens=function(A){return this.instance_.$_gs(A)};
_.d.contains=function(A){return!!this.instance_.$_c(A)};
_.d.get=function(A){return this.instance_.$_g(A)};
_.d.start=function(){this.instance_.$_st()};
_.d.add=function(A,Q,b){this.instance_.$_a(A,Q,b)};
_.d.remove=function(A,Q,b){this.instance_.$_r(A,Q,b)};
_.d.updateName=function(A,Q,b,f){this.instance_.$_un(A,Q,b,f)};
_.d.disposeInternal=function(){for(var A=this.subscriptionKeys_.length,Q=0;Q<A;++Q)this.instance_.$_ubk(this.subscriptionKeys_[Q]);this.subscriptionKeys_.length=0;this.instance_=null;G4.prototype.disposeInternal.call(this)};
_.d.JSC$19644_onScreenChange_=function(){this.publish("screenChange")};
_.d.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
P4.prototype.$_st=P4.prototype.start;P4.prototype.$_gspc=P4.prototype.JSC$19601_getScreenByPairingCode;P4.prototype.$_gsppc=P4.prototype.JSC$19601_getScreenByPollingPairingCode;P4.prototype.$_c=P4.prototype.contains;P4.prototype.$_g=P4.prototype.get;P4.prototype.$_a=P4.prototype.add;P4.prototype.$_un=P4.prototype.updateName;P4.prototype.$_r=P4.prototype.remove;P4.prototype.$_gs=P4.prototype.getScreens;P4.prototype.$_gos=P4.prototype.JSC$19601_getOnlineScreens;P4.prototype.$_s=P4.prototype.subscribe;
P4.prototype.$_ubk=P4.prototype.unsubscribeByKey;var PVN=function(A){nrt();if(!b5||!b5.get("yt-remote-disable-remote-module-for-dev")){A=_.vG("MDX_CONFIG")||A;vGF();MLn();hN||(hN=new Nv(A?A.loungeApiHost:void 0),kxK()&&(hN.basePath="/api/loungedev"));WA||(WA=_.zV("yt.mdx.remote.deferredProxies_")||[],_.Al("yt.mdx.remote.deferredProxies_",WA));T8K();var Q=vA();if(!Q){var b=new P4(hN,A?A.disableAutomaticScreenCache||!1:!1);_.Al("yt.mdx.remote.screenService_",b);Q=vA();var f={};A&&(f={appId:A.appId,disableDial:A.disableDial,theme:A.theme,loadCastApiSetupScript:A.loadCastApiSetupScript,
disableCastApi:A.disableCastApi,enableDialLoungeToken:A.enableDialLoungeToken,enableCastLoungeToken:A.enableCastLoungeToken,forceMirroring:A.forceMirroring});_.Al("yt.mdx.remote.enableConnectWithInitialState_",A?A.enableConnectWithInitialState||!1:!1);bcl(b,function(T){T?EU()&&pjd(EU(),"YouTube TV"):b.subscribe("onlineScreenChange",function(){kb("yt-remote-receiver-availability-change")})},f)}if(A&&!_.zV("yt.mdx.remote.initialized_")){_.Al("yt.mdx.remote.initialized_",!0);
xd("Initializing: "+(0,_.jV)(A));cA.push(_.pu("yt-remote-cast2-api-ready",function(){kb("yt-remote-api-ready")}));
cA.push(_.pu("yt-remote-cast2-availability-change",function(){kb("yt-remote-receiver-availability-change")}));
cA.push(_.pu("yt-remote-cast2-receiver-selected",function(){d6x();kb("yt-remote-auto-connect","cast-selector-receiver")}));
cA.push(_.pu("yt-remote-cast2-receiver-resumed",function(){kb("yt-remote-receiver-resumed","cast-selector-receiver")}));
cA.push(_.pu("yt-remote-cast2-session-change",FZr));cA.push(_.pu("yt-remote-connection-change",function(T){T?pjd(EU(),"YouTube TV"):GTl()||(pjd(null,null),F5M())}));
cA.push(_.pu("yt-remote-cast2-session-failed",function(){kb("yt-remote-connection-failed")}));
f=B8N();A.isAuto&&(f.id+="#dial");var a=A.capabilities||[];a.length>0&&(f.capabilities=a);f.name=A.device;f.app=A.app;(A=A.theme)&&(f.theme=A);xd(" -- with channel params: "+(0,_.jV)(f));f?(_.KW("yt-remote-session-app",f.app),_.KW("yt-remote-session-name",f.name)):(_.JX("yt-remote-session-app"),_.JX("yt-remote-session-name"));_.Al("yt.mdx.remote.channelParams_",f);Q.start();EU()||pFM()}}},SP7=function(){var A=vA().instance_.$_gos();
var Q=XFs();Q&&zQ()&&(PBl(A,Q)||A.push(Q));return pYd(A)},U6t=function(){var A=SP7(),Q=XFs();
Q||(Q=GTl());return _.R9(A,function(b){return Q&&mH(Q,b.key)?!0:!1})},XFs=function(){var A=EU();
if(!A)return null;var Q=vA().getScreens();return A5(Q,A)},FZr=function(A){xd("remote.onCastSessionChange_: "+PNF(A));
if(A){var Q=XFs();Q&&Q.id==A.id?(pjd(Q.id,"YouTube TV"),A.idType=="shortLived"&&(A=A.token)&&(Q=zQ())&&Q.setLoungeToken(A)):(Q&&LZn(),M4l(A,1))}else zQ()&&LZn()},LZn=function(){Bnq()?L5().stopSession():UF("stopSession called before API ready.");
var A=zQ();A&&(A.disconnect(1),l_d(null))},KZN=function(){var A=zQ();
return A&&A.getProxyState()!=3?new HA(zQ(),void 0):null},xd=function(A){T4("remote",A)},vA=function(){if(!iax){var A=_.zV("yt.mdx.remote.screenService_");
iax=A?new a_x(A):null}return iax},EU=function(){return _.zV("yt.mdx.remote.currentScreenId_")},JCK=function(A){_.Al("yt.mdx.remote.currentScreenId_",A)},d6x=function(){_.Al("yt.mdx.remote.connectData_",null)},zQ=function(){return _.zV("yt.mdx.remote.connection_")},l_d=function(A){var Q=zQ();
d6x();A||JCK("");_.Al("yt.mdx.remote.connection_",A);WA&&(_.ZR(WA,function(b){b(A)}),WA.length=0);
Q&&!A?kb("yt-remote-connection-change",!1):!Q&&A&&kb("yt-remote-connection-change",!0)},GTl=function(){var A=UjN();
if(!A)return null;var Q=vA();if(!Q)return null;Q=Q.getScreens();return A5(Q,A)},M4l=function(A,Q){JCK(A.id);
A=new gC(hN,A,B8N(),_.zV("yt.mdx.remote.enableConnectWithInitialState_")||!1);A.connect(Q,_.zV("yt.mdx.remote.connectData_"));A.subscribe("beforeDisconnect",function(b){kb("yt-remote-before-disconnect",b)});
A.subscribe("beforeDispose",function(){zQ()&&l_d(null)});
A.subscribe("browserChannelAuthError",function(){var b=XFs();b&&b.idType=="shortLived"&&(Bnq()?L5().handleBrowserChannelAuthError():UF("refreshLoungeToken called before API ready."))});
l_d(A)},pFM=function(){var A=GTl();
A?(xd("Resume connection to: "+PNF(A)),M4l(A,0)):(QW(),F5M(),xd("Skipping connecting because no session screen found."))},hN=null,WA=null,iax=null,T8K=function(){var A=B8N();
if(_.j2.isEmpty(A)){A=SYN();var Q=_.i7("yt-remote-session-name")||"",b=_.i7("yt-remote-session-app")||"";A={device:"REMOTE_CONTROL",id:A,name:Q,app:b,mdxVersion:3};A.authuser=String(_.vG("SESSION_INDEX","0"));(Q=_.vG("DELEGATED_SESSION_ID"))&&(A.pageId=String(Q));_.Al("yt.mdx.remote.channelParams_",A)}},B8N=function(){return _.zV("yt.mdx.remote.channelParams_")||{}},cA=[];var V4N=new _.WE("yt-menu"),Oas=function(){},kTn=function(A,Q,b){A=Q=="right-click"?b.rightClickMenuPopupHint:b.menuPopupHint;
if(!(nJM(Q)>10))return Q=Q||"default",V4N.set(Q+"-impression",nJM(Q)+1),A},nJM=function(A){return parseInt(V4N.get((A||"default")+"-impression")||0,10)};
_.FY(Oas);var I_N=function(){this.contexts_=new WeakMap;this.JSC$19650_networkService_=this.activeContext_=null},HaO=function(A,Q,b){var f=A.contexts_.get(Q);
f||(f=new hix(A.JSC$19650_networkService_),A.contexts_.set(Q,f));A.activeContext_=f;b&&A.activeContext_.reset();A.activeContext_.start();return A.activeContext_};var wC=function(){};
wC.prototype.enqueue=function(){var A=this,Q;return _.B(function(b){if(A.isCounterfactual())return(Q=A.getCounterfactualData())&&A.shouldLogCounterfactualImpression()&&A.sendImpressionEndpoints(Q),b.return();A.doEnqueue();_.Oi(b)})};
wC.prototype.sendImpressionEndpoints=function(A){_.Yk.getInstance().triggerOptionalAction("yt-service-request",{},A[0])};var u8=function(A,Q){this.renderer=A;this.page=Q};
_.O(u8,wC);u8.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
u8.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
u8.prototype.shouldLogCounterfactualImpression=function(){return!0};
u8.prototype.doEnqueue=function(){var A=_.GG(this.page);A&&A.pause();this.renderer.impressionCommand&&_.Yk.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.x4(_.Yk.getInstance(),[this.renderer.promoCommand],this.page)};var CVd=function(A,Q){this.renderer=A;this.resolver=_.Qh();this.JSC$19662_enforcementCounter=new _.E$N;Q?this.JSC$19662_playerManager=_.GG(Q):this.JSC$19662_playerManager=null;_.JE(1,!0)};
_.O(CVd,wC);_.d=CVd.prototype;_.d.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var A=[];this.renderer.impressionEndpoints.forEach(function(Q){(Q=_.ue(Q))&&A.push(Q)});
return A}};
_.d.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.d.shouldLogCounterfactualImpression=function(){var A=_.hDU();A?(this.JSC$19662_enforcementCounter.increment("POPUP"),_.JE(3)):_.JE(2);return A};
_.d.cancel=function(){this.resolver.promise.cancel()};
_.d.doEnqueue=function(){var A=this;_.hDU()?(this.JSC$19662_enforcementCounter.increment("POPUP"),_.JE(3),qPN(this)):this.JSC$19662_playerManager?(this.resolver.promise.then(function(){qPN(A)}),oJF(this.resolver,this.JSC$19662_playerManager)):_.JE(2)};
var oJF=function(A,Q){var b=_.Qh();Q.getPlayerPromise().then(function(f){b.resolve(f)});
b.promise.then(function(f){f.addEventListener("onAbnormalityDetected",A.resolve);_.oH(A.promise,function(){f.removeEventListener("onAbnormalityDetected",A.resolve)})});
A.promise.thenCatch(function(){b.promise.cancel()})},qPN=function(A){_.JE(3);
var Q={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:A.renderer}};Q=_.Yk.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Q},{});Promise.all(Q).then(function(){t47();A.JSC$19662_playerManager&&A.JSC$19662_playerManager.pause()})},t47=function(){Phx(function(A,Q){_.XtF(A,Q);
A===0?_.JE(7):_.JE(4)})};var rCl=function(A,Q){this.renderer=A;this.page=Q;this.resolver=_.Qh()};
_.O(rCl,wC);_.d=rCl.prototype;_.d.cancel=function(){this.resolver.promise.cancel()};
_.d.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.d.isCounterfactual=function(){return!this.renderer.isVisible};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var A=this;this.resolver.promise.then(function(){var b={popup:{mealbarPromoRenderer:A.renderer},popupType:"MEALBAR"};_.Yk.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var Q=_.GG(this.page);Q&&jSd(this.resolver,Q)}break;default:this.resolver.resolve()}};
var jSd=function(A,Q){var b=_.Qh();Q.getPlayerPromise().then(function(f){b.resolve(f)});
b.promise.then(function(f){f.addEventListener("onAdEnd",A.resolve);_.oH(A.promise,function(){f.removeEventListener("onAdEnd",A.resolve)})});
A.promise.thenCatch(function(){b.promise.cancel()})};var RRx=function(A,Q){this.renderer=A;this.page=Q};
_.O(RRx,wC);_.d=RRx.prototype;_.d.cancel=function(){this.JSC$19670_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19670_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19670_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.d.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.d.isCounterfactual=function(){return!this.renderer.isVisible};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var A=this,Q,b;((Q=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(b=Q.playbackUpsellDialogTriggerConditionData)==null?void 0:b.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19670_downloadedVideosCountSelectorUnsubscriber=_.H1(_.QK(),dW7,function(f,a){f>a&&(gJr(A),A.cancel())}):gJr(this)};
var gJr=function(A){var Q={popup:{upsellDialogRenderer:A.renderer},popupType:"MODAL"};_.Yk.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Q},{});(A=_.GG(A.page))&&A.pause()};var Zd={},eRd=(Zd.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Zd.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Zd.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Zd.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Zd.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Zd.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Zd.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Zd),hRx=function(A,Q){this.renderer=A;this.targetManager=
Q};
_.O(hRx,wC);_.d=hRx.prototype;_.d.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19677_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19677_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19677_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.d.getCounterfactualData=function(){if(this.isCounterfactual()){var A;return(A=this.renderer.promoConfig)==null?void 0:A.impressionEndpoints}};
_.d.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var A=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19677_downloadedVideosCountSelectorUnsubscriber=_.H1(_.QK(),dW7,function(Q,b){A.renderer.targetId&&Q>b&&(QbN(A.targetManager,A.renderer.targetId,WZ7(A)),A.cancel())});
break;default:QbN(this.targetManager,this.renderer.targetId,WZ7(this))}};
var WZ7=function(A){var Q;if((Q=A.renderer.suggestedPosition)==null?0:Q.type)var b=eRd[A.renderer.suggestedPosition.type];b||(b="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:A.renderer},popupType:"HINT",position:b}}};var vJt=function(){this.previousPage=null},EJ7;
vJt.prototype.registerPromoCommand=function(A,Q){x6N(this,void 0,void 0,_.V(A.roadblock,b37),void 0,void 0,Q)};
var x6N=function(A,Q,b,f,a,T,G){A.previousPage!==G&&A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel();A.previousPage=G;a?(A.pendingEnforcementPromo&&A.pendingEnforcementPromo.cancel(),A.pendingEnforcementPromo=new CVd(a,G),A.pendingEnforcementPromo.enqueue()):T?(A.pendingCommandWrapperPromo=new u8(T,G),A.pendingCommandWrapperPromo.enqueue()):f?(A.pendingRoadblockPromo&&A.pendingRoadblockPromo.cancel(),A.pendingRoadblockPromo=new RRx(f,G),A.pendingRoadblockPromo.enqueue()):Q?(A.pendingMealbarPromo&&
A.pendingMealbarPromo.cancel(),A.pendingMealbarPromo=new rCl(Q,G),A.pendingMealbarPromo.enqueue()):b&&(A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel(),A.pendingTooltipPromo=new hRx(b,_.rk()),A.pendingTooltipPromo.enqueue())},cCl=function(){EJ7||(EJ7=new vJt);
return EJ7};var L5l=!1;var b6d=function(A,Q){var b=_.vG("SESSION_INDEX");this.actionToken_=A;this.commonToken_=Q;this.sessionIndex_=b},Q$q=function(A){var Q=_.Qh(),b=_.zV("payments.business.integration.bootstrap"),f=_.zV("payments.business.integration"),a=f.Style.create().withMaterialDesignStyle(),T=f.mashupMode.popup("instrument-manager");
b.asMashupMode(T).usingUserIndex(A.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(a).inStandaloneContext(f.standaloneContextAuthId.forUserId()).instrumentManager(A.actionToken_,A.commonToken_.length>0?A.commonToken_:void 0,function(G){var p=G.instrumentId;p?Q.resolve(p):(p=_.zV("payments.business.integration.scenario.InstrumentManager"),Q.reject(G.errorCode&&G.errorCode===p.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(G){_.xQ(G);
Q.reject("instrumentManagerLoadError")});
return Q.promise};var OF=function(A,Q,b){this.payloadName="transactionFlowFailed";this.payload={errorType:A,serializedTransactionFlowLoggingParams:Q,isUserDismiss:b===void 0?!1:b}};
_.Al("yt.ypc.shared.YpcTransactionFlowError",OF);var ym=function(){return _.nc.apply(this,arguments)||this};
_.O(ym,_.nc);ym.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
ym.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
ym.prototype.onErrorMessageDismiss=ym.prototype.onErrorMessageDismiss;_.E([_.C({readOnly:!0,observer:"errorRendererChanged"}),_.c("design:type",Object)],ym.prototype,"errorRenderer",void 0);_.E([_.Kc("yt-live-chat-error-message-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ym.prototype,"onErrorMessageDismiss",null);_.E([_.kl()],ym);var zRq=[ym.prototype];var wFd;var uNn;var Zax=new _.WE("yt-live-chat"),yCK=new Map;yCK.set("timestamp_toggle","show-timestamps");yCK.set("reactions_toggle","allow-reactions");var Yd=function(){return _.q.apply(this,arguments)||this};
_.O(Yd,_.q);_.d=Yd.prototype;_.d.menuItemIdentifierChanged=function(){var A;(A=this.data)!=null&&A.menuItemIdentifier&&(A=yCK.get(this.data.menuItemIdentifier))&&(_.K("enable_lwe_web_mute")?(A=Zax.get(A),this.isToggled=!(A===void 0?!this.data.isToggled:!A)):this.isToggled=Zax.get(A))};
_.d.onFocus=function(){this.toggleButton.focus()};
_.d.onTap=function(){var A=this.data.command;A&&this.componentBehavior.resolveCommand(A)};
_.d.computeText=function(A,Q,b){return this.componentBehavior.getSimpleString(A?b:Q)};
_.d.computeIcon=function(A,Q,b){return(A=A?b:Q)&&A.iconType?_.K0(A.iconType):""};
Yd.prototype.onTap=Yd.prototype.onTap;Yd.prototype.onFocus=Yd.prototype.onFocus;Yd.prototype.menuItemIdentifierChanged=Yd.prototype.menuItemIdentifierChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Yd.prototype,"componentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Yd.prototype,"data",void 0);
_.E([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.c("design:type",String)],Yd.prototype,"icon",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Yd.prototype,"isToggled",void 0);_.E([_.V1("tp-yt-paper-toggle-button"),_.c("design:type",Object)],Yd.prototype,"toggleButton",void 0);_.E([_.iN("data.menuItemIdentifier"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Yd.prototype,"menuItemIdentifierChanged",null);
_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Yd.prototype,"onFocus",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Yd.prototype,"onTap",null);_.E([_.Ec({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Yd);
_.W(Yd,"yt-live-chat-toggle-renderer",function(){if(uNn===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;wFd===void 0&&(wFd=document.createElement("template"));var f=wFd;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);uNn=A}A=uNn;return A},{mode:_.K("live_chat_enable_sink_wrapper")?2:0});var YP7=new _.TS("NAVIGATION_PROGRESS_TOKEN");var D6O={},$6K={},N8d=($6K[w3N.name]=!0,$6K),Dd=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;A.tabGesturesIsActive=!1;A.actionRouterIsRoot=!0;A.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"};A.pageTitle="";A.titleSuffix="YouTube";A.unseenNotificationCount=
0;A.hasNavigated=!1;A.hasSetScrollTopForNavigation=!1;A.pagePreparer=null;A.zwiebackInitJobId=0;A.dataUpdatePromise=null;A.loadDepsPromise=_.Ul();A.hasPendingNavigation=!1;A.pendingPlayerOnResponseReceivedActions=[];return A};
_.O(Dd,_.nc);Dd.prototype.attached=function(){sSN(this);document.addEventListener("yt-navigate-cache",_.lN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var A=$d();A.init();A.dispatchElement=this.hostElement};
var sSN=function(A,Q){Q=Q===void 0?0:Q;var b=_.fJ().resolve(_.bu(_.tX));if(b)m6N(A,b);else{if(Q>=5)throw Error("Yk");setTimeout(function(){sSN(A,Q+1)},0)}},m6N=function(A,Q){Q.addEventListener("yt-navigate-start",_.lN(A,A.onYtNavigateStart));
Q.addEventListener("yt-navigate-finish",_.lN(A,A.onYtNavigateFinish));Q.addEventListener("yt-navigate-error",_.lN(A,A.onYtNavigateError));Q.addEventListener("yt-page-data-fetched",_.lN(A,A.onYtPageDataFetched))};
_.d=Dd.prototype;_.d.detached=function(){var A=_.fJ().resolve(_.tX);A.removeEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart));A.removeEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish));A.removeEventListener("yt-navigate-error",_.lN(this,this.onYtNavigateError));A.removeEventListener("yt-page-data-fetched",_.lN(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.lN(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.d.setPageOffset=function(A,Q){A?_.pD(this.hostElement,"yt-set-page-offset",[A,Q]):_.en(Error("Zk"))};
_.d.setPageOffsetForNavigation=function(A,Q){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(A,Q))};
_.d.onYtNavigateSetPageOffset=function(A,Q){this.setPageOffsetForNavigation(Q.page,Q.offset)};
_.d.getPageOffset=function(){var A=_.Bj(this.hostElement).querySelector("#page-manager").getCurrentPage(),Q=0;A&&(Q=_.pD(this.hostElement,"yt-get-page-offset",[A])[0]);return Q};
_.d.onYtHistoryPop=function(A,Q){if(_.Ep("DISABLE_WARM_LOADS"))A.preventDefault(),window.location.reload();else{var b=_.fJ().resolve(_.tX);b.hasPendingNavigation()&&A.preventDefault();b.cancelPendingNavigation();_.Pn(this.hostElement,"yt-pending-navigation-cancelled");Q.errorMsg&&(A=Q.errorMsg.split(" - "),Q=Error(A[0]),A.length==2&&A[1]&&(_.xk(Q,A[1]),_.Wv(Q)),window.location.reload())}};
_.d.onYtHistoryLoad=function(A,Q){var b=this;if(_.Ep("DISABLE_WARM_LOADS"))window.location.reload();else{(A=Q.endpoint)&&Object.keys(A).length||(A=null);var f=Q.historyEntry,a=_.fJ().resolve(_.tX),T=_.fJ().resolve(_.F7),G=null;f&&f.rootData&&(G=f.rootData);var p=G&&ASO(G);!G||p||G.filler?A?(a.navigate(A,!0),QZK(this,A)):(Q.legacyBorder||p||(Q.JSC$29943_savedComponentState==null&&G==null?_.Wv(new _.IO("Incomplete history entry",Q.forward)):_.hq(new _.IO("Malformed history entry",Q.JSC$29943_savedComponentState,
Q.forward,G))),window.location.reload()):(_.QJb({isHot:!0}),_.g2({webInfo:{navigationReason:"h"}}),_.n9b(),_.hQ("srt"),_.hQ("pdc"),this.cancelPendingTasks(),b_t(this,Q.forward,G),G.player&&(G.player.loaded=!1),QZK(this,A),_.Mrx(a,A||{},G,2,{},!1,Q).then(function(){b.setPageOffset(T.getCurrentPage(),f.scrollTop||0)}))}};
_.d.initHistoryManager=function(A){if(!this.hasNavigated){this.hasNavigated=!0;var Q=_.Bj(this.hostElement).querySelector("#page-manager").getCurrentData();A=isNaN(A)?this.getPageOffset():A;var b=_.fJ().resolve(_.tX).currentEndpoint;this.replaceState(b,Q,A)}};
_.d.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.d.onYtNavigateStart=function(A,Q){this.cancelPendingTasks();Q.noProgressBar||(A=_.fJ().resolve(_.bu(YP7)))&&A.start();A=this.hasPendingNavigation?null:this.data;var b=_.fJ().resolve(_.F7),f,a,T;_.K("kevlar_use_vimio_behavior")&&!((f=Q.endpoint)==null?0:(a=f.commandMetadata)==null?0:(T=a.webCommandMetadata)==null?0:T.ignoreNavigation)&&(f=b.getCurrentPage())&&f.disconnectVisibilityRoot();b.prepareForNavigation(Q.pageType,Q.endpoint);_.K("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.GW(1,
"pcl"),_.BJ(this.pagePreparer,b.preparePage.bind(b,Q.pageType,Q.endpoint)));f=this.getPageOffset();this.initHistoryManager(f);Q.reload||this.hasPendingNavigation?this.replaceState(Q.endpoint,A,f):(A==null?void 0:A.page)==="watch"&&Q.pageType==="watch"&&_.K("kevlar_replace_watch_to_watch_history_state")?this.replaceState(Q.endpoint,A,f):(A==null?void 0:A.page)!=="shorts"||Q.pageType!=="shorts"||Q.endpoint.reelWatchEndpoint.sequenceParams||_.K("short_to_short_back_nav_killswitch")?Q.type!="navigate-back"&&
Q.type!="navigate-forward"&&(Q.pageType==="shorts"&&_.Bn(this.hostElement,"yt-shorts-reset"),this.saveAndPush(Q.url,Q.endpoint,A,f)):(_.K("web_enable_delay_shorts_sequence_call")&&(Q.endpoint.reelWatchEndpoint.sequenceParams=A==null?void 0:A.cachedSequenceParams,Q.endpoint.reelWatchEndpoint.sequenceProvider=A==null?void 0:A.cachedSequenceProvider),this.replaceState(Q.endpoint,A,0));this.hasPendingNavigation=!0};
var fxK=function(A){A.hasPendingNavigation=!1;(A=_.fJ().resolve(_.bu(YP7)))&&A.finish()};
Dd.prototype.onYtNavigateError=function(A,Q){fxK(this);A=this.get("endpoint.commandMetadata.webCommandMetadata.url",Q);var b=_.YQ(window.location.href);A&&!b.pbjreload&&(Q=Q.navigationErrorReason||"10",_.K("kevlar_parent_on_pbjreload")&&(b={csn:_.WR()},this.get("data.endpoint.clickTrackingParams")&&(b.itct=this.data.endpoint.clickTrackingParams),_.bi(A,b)),_.Yr(_.DR(A,{pbjreload:Q})))};
Dd.prototype.onYtNavigateCache=function(A,Q){var b=this,f=Q.url,a=Q.endpoint,T=Q.data;A=!!Q.miniplayer;Q=!!Q.skipHistory;if(f&&a&&T){var G=this.getPageOffset(),p=this.data||null;Q||this.saveAndPush(f,a,p,G);f=_.Mrx(_.fJ().resolve(_.tX),a,T,A?4:3,{},A);A&&f.then(function(){b.dataUpdatePromise&&b.dataUpdatePromise.then(function(){var P=_.fJ().resolve(_.F7);b.setPageOffset(P.getCurrentPage(),0)})})}};
Dd.prototype.onYtNavigateFinish=function(A,Q){var b=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){axx(b,Q.fromHistory)})};
var axx=function(A,Q){fxK(A);if(A.pendingPlayerOnResponseReceivedActions){for(var b=_.F(A.pendingPlayerOnResponseReceivedActions),f=b.next();!f.done;f=b.next())_.V0(f.value,A.hostElement);A.pendingPlayerOnResponseReceivedActions=[]}b=_.fJ().resolve(_.F7);Q||!A.hasNavigated||_.K("web_disable_scroll_on_navigate_finish")||((Q=b.getCurrentPage())?Q.is==="ytd-shorts"||A.tabGesturesIsActive||A.setPageOffsetForNavigation(Q,0):_.Wv(Error("$k")));_.y1(function(){_.y1(function(){_.hQ("pda")})})};
Dd.prototype.onYtNavigate=function(A){if(!A.detail.endpoint){var Q=new _.IO("Error: Missing yt-navigate endpoint from target:",A.target,A.target.nodeName);_.en(Q)}if(Q=_.K("cold_missing_history"))Q=$d(),Q.init(!1),Q=!(Q.browserHistory.boundHistoryReplaceState&&Q.browserHistory.boundHistoryPushState);if(Q){_.e6("DISABLE_WARM_LOADS",!0);Q=new _.IO("Failed to initialize history manager",this.getDebugString());var b=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
b?_.Wv(Q):_.en(Q)}Q=A.detail.endpoint;var f,a;_.K("debug_forward_web_query_parameters")&&((f=Q.commandMetadata)==null?0:(a=f.webCommandMetadata)==null?0:a.url)&&(Q=JSON.parse(JSON.stringify(Q)),Q.commandMetadata.webCommandMetadata.url=_.xBi(Q.commandMetadata.webCommandMetadata.url,window.location.search));A={type:0,command:Q,form:{params:A.detail.params,tempData:A.detail.tempData||{},requestType:A.detail.type,createScreenConfig:A.detail.createScreenConfig,reload:A.detail.reload?A.detail.reload:!1,
requestForm:A.detail}};_.K("kevlar_yt_navigate_command_handler")?(f=_.fJ().resolve(_.de),A.form.skipDefaultElement=!0,f.resolveCommand(Q,{form:A.form})):this.handleNavigate(A)};
Dd.prototype.handleNavigate=function(A){this.hasSetScrollTopForNavigation=!1;var Q=_.fJ().resolve(_.tX),b=A.form||{};Q.navigate(A.command,b.reload,b.params,b.tempData,b.requestType,b.createScreenConfig,b.ignoreConfirmation,b.requestForm)&&QZK(this,A.command,b.tempData)};
Dd.prototype.onYtPageDataFetched=function(A,Q){try{_.bX$().reset();this.data=Q.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.fJ().resolve(_.F7).updatePageData(this.data);if(!_.K("web_service_params_response_processor")){var b=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);b&&iDl(b);var f=this.get("response.responseContext.serviceTrackingParams",
this.data);f&&iDl(f)}var a=this.get("playerResponse.onResponseReceivedActions",this.data);a&&(a=TwN(this,a));a&&_.ST(this.hostElement,a,this.hostElement);var T=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),G=this.get("response.responseContext.consistencyTokenJar",this.data);if(T||G){var p=_.V4f(),P=(0,_.j2.getValues)(p.tokenJars);T&&p.replace(P,T);G&&p.replace(P,G)}}catch(U){_.en(U)}};
var QZK=function(A,Q,b){try{A.onYtEndpointChangeHandler(Q,b)}catch(f){_.en(f)}};
_.d=Dd.prototype;_.d.onYtEndpointChangeHandler=function(){};
_.d.setPageTitle=function(A){A=(this.pageTitle=A)?A+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+A};
_.d.onYtUpdateTitle=function(A,Q){this.setPageTitle(Q)};
_.d.setUnseenNotificationCount=function(A){this.unseenNotificationCount=A;this.setPageTitle(this.pageTitle)};
_.d.handleUpdateNotificationsUnseenCountAction=function(A){_.V(A,IBN)&&((A=_.V(A,IBN).unseenCount)?this.setUnseenNotificationCount(A):this.setUnseenNotificationCount(0))};
_.d.handleClearCookieAction=function(A){var Q;(A=(Q=_.V(A,VNd))==null?void 0:Q.cookieName)&&_.dey(A)};
_.d.onYtUpdateUnseenNotificationCount=function(A,Q){this.setUnseenNotificationCount(Q)};
_.d.loadData=function(A){var Q=this;this.loadDepsPromise.then(function(){var b=_.fJ().resolve(_.bu(_.tX));b||_.en(Error("al"));if(A&&A.response){if(!A.endpoint){var f=_.yr(window.document.location.href)||"/",a="";if(f==="/"||f.startsWith("/?"))a="WEB_PAGE_TYPE_BROWSE";A.endpoint={commandMetadata:{webCommandMetadata:{url:f,webPageType:a,rootVe:3854}}}}_.Mrx(b,A.endpoint,A,5,{})}else A.endpoint?b.navigate(A.endpoint):b.navigate(_.IR);_.j7.cancelJob(Q.zwiebackInitJobId);Q.zwiebackInitJobId=_.j7.addLowPriorityJob(MKx)})};
var $d=function(){return _.fJ().resolve(_.JC)};
Dd.prototype.getDebugString=function(){return $d().getDebugString()};
Dd.prototype.getThirdPartyManipulationSuspected=function(){return $d().getThirdPartyManipulationSuspected()};
Dd.prototype.replaceState=function(A,Q,b){$d().saveAndReplace(A,Q,b)};
Dd.prototype.saveAndPush=function(A,Q,b,f){$d().saveAndPush(A,Q,b,f)};
var ASO=function(A){return _.V(A.endpoint,_.sv)||_.V(A.endpoint,_.CT)?!0:!A||isNaN(A.expirationTime)?!1:(0,_.f4)()>A.expirationTime},b_t=function(A,Q,b){var f=A.get("response.trackingParams",b),a=_.hx(),T=_.WR();
if(f&&a&&T&&(f=A.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",b),!f&&b.rootVe&&(f=b.rootVe),a=Q?"forwardButton":"backButton",Q=A.get("playerResponse.topbar.desktopTopbarRenderer."+a+".buttonRenderer.command.clickTrackingParams",A.data),A=A.get("response.topbar.desktopTopbarRenderer."+a+".buttonRenderer.command.clickTrackingParams",A.data),Q=(A=Q||A)?_.t8(A):void 0,A=_.IP(),a=[_.Ul(b)],_.Mk(A,f,Q,{dataPromises:a,csnToClone:b.csn}),b.graftedVes))for(b=
_.F(b.graftedVes),f=b.next();!f.done;f=b.next())_.l$(A,f.value)};
Dd.prototype.onStoreGraftedVeAction=function(A){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(A)):_.Wv(Error("bl"))};
var TwN=function(A,Q){return Q.filter(function(b){for(var f in b)if(N8d[f])return A.pendingPlayerOnResponseReceivedActions.push(b),!0;return!1})};
_.Qr.Object.defineProperties(Dd.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Dd.prototype.onStoreGraftedVeAction=Dd.prototype.onStoreGraftedVeAction;Dd.prototype.loadData=Dd.prototype.loadData;Dd.prototype.onYtUpdateUnseenNotificationCount=Dd.prototype.onYtUpdateUnseenNotificationCount;Dd.prototype.handleClearCookieAction=Dd.prototype.handleClearCookieAction;Dd.prototype.handleUpdateNotificationsUnseenCountAction=Dd.prototype.handleUpdateNotificationsUnseenCountAction;Dd.prototype.setUnseenNotificationCount=Dd.prototype.setUnseenNotificationCount;
Dd.prototype.onYtUpdateTitle=Dd.prototype.onYtUpdateTitle;Dd.prototype.setPageTitle=Dd.prototype.setPageTitle;Dd.prototype.onYtEndpointChangeHandler=Dd.prototype.onYtEndpointChangeHandler;Dd.prototype.onYtPageDataFetched=Dd.prototype.onYtPageDataFetched;Dd.prototype.handleNavigate=Dd.prototype.handleNavigate;Dd.prototype.onYtNavigate=Dd.prototype.onYtNavigate;Dd.prototype.onYtNavigateFinish=Dd.prototype.onYtNavigateFinish;Dd.prototype.onYtNavigateCache=Dd.prototype.onYtNavigateCache;
Dd.prototype.onYtNavigateError=Dd.prototype.onYtNavigateError;Dd.prototype.onYtNavigateStart=Dd.prototype.onYtNavigateStart;Dd.prototype.cancelPendingTasks=Dd.prototype.cancelPendingTasks;Dd.prototype.initHistoryManager=Dd.prototype.initHistoryManager;Dd.prototype.onYtHistoryLoad=Dd.prototype.onYtHistoryLoad;Dd.prototype.onYtHistoryPop=Dd.prototype.onYtHistoryPop;Dd.prototype.onYtNavigateSetPageOffset=Dd.prototype.onYtNavigateSetPageOffset;Dd.prototype.setPageOffset=Dd.prototype.setPageOffset;
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Dd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Dd.prototype,"data",void 0);_.E([_.Kc("yt-navigate-set-page-offset"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],Dd.prototype,"onYtNavigateSetPageOffset",null);
_.E([_.Kc("yt-history-pop"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],Dd.prototype,"onYtHistoryPop",null);_.E([_.Kc("yt-history-load"),_.c("design:type",Function),_.c("design:paramtypes",[Event,_.hPp]),_.c("design:returntype")],Dd.prototype,"onYtHistoryLoad",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Dd.prototype,"onYtNavigate",null);
_.E([_.Kc("yt-update-title"),_.c("design:type",Function),_.c("design:paramtypes",[Event,String]),_.c("design:returntype")],Dd.prototype,"onYtUpdateTitle",null);_.E([_.Kc("yt-update-unseen-notification-count"),_.c("design:type",Function),_.c("design:paramtypes",[Event,Number]),_.c("design:returntype")],Dd.prototype,"onYtUpdateUnseenNotificationCount",null);_.E([_.kl()],Dd);D6O.YtdAppBehavior=[_.PJ.YtActionHandlerBehavior,Dd.prototype];var N5=function(){var A=_.nc.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.O(N5,_.nc);N5.prototype.ready=function(){var A=this;_.Bj(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){A.onChange_()})};
N5.prototype.dataChanged_=function(){_.Bj(this.hostElement).querySelector("#checkbox").checked=!1};
N5.prototype.onChange_=function(){var A=_.Bj(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Bn(this.hostElement,"yt-dismissal-reason-"+A,this.data.feedbackToken)};
N5.prototype.dataChanged_=N5.prototype.dataChanged_;_.E([_.C(),_.c("design:type",Object)],N5.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],N5.prototype,"dataChanged_",null);_.E([_.kl()],N5);var d0n=[N5.prototype];var sU=function(){var A=_.nc.apply(this,arguments)||this;A.timeoutJobId=0;A.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return A};
_.O(sU,_.nc);sU.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
sU.prototype.startTimeout=function(){var A=this,Q=this.data&&this.data.displayDurationSeconds;Q&&!this.timeoutJobId&&(this.timeoutJobId=_.Hv(_.j7,function(){_.pD(A.hostElement,"yt-close-popup-action",[A.is]);A.timeoutJobId=0},Q*1E3))};
sU.prototype.cancelTimeout=function(){_.j7.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
sU.prototype.ytdHatsSurveyBehaviorDataChanged=sU.prototype.ytdHatsSurveyBehaviorDataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],sU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],sU.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.E([_.kl()],sU);var FtK=[_.PJ.YtActionHandlerBehavior,sU.prototype];var G$x=function(A,Q){var b;return((b=A.prefixMapping)==null?0:b[Q])?A.prefixMapping[Q]:A.SHARED_RENDERERS_.hasOwnProperty(Q)?"yt":A.prefix},ma={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}};ma.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.K("kevlar_mealbar_above_player"),modern:_.K("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"}};
ma.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};ma.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};ma.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
ma.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)"}};
ma.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};
ma.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};
ma.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};
ma.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};ma.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"}};
ma.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};ma.TOAST={component:null,properties:{}};var Bwt=new function(A,Q,b){this.supportedPopups=A;this.navigationEndpointPopupMap=Q;this.popupTypeMap=b;this.supportedPopups=A;this.navigationEndpointPopupMap=Q;this.popupTypeMap=b}({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:_.K("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"}),pmK=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$19727_popupConfig=ma;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 Ptl=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.vb.getInstance()},AR=function(A,Q){var b=A.pageNameToElement.get(Q);
if(!b){switch(Q){case "watch":var f=_.K("web_watch_force_learning_journey_for_testing")?_.F6("ytd-watch-learning-journey"):_.K("kevlar_watch_fixie")?_.F6("ytd-watch-fixie"):_.K("kevlar_watch_grid")?_.F6("ytd-watch-grid"):_.F6("ytd-watch-flexy");break;case "learning_journey_watch":f=_.F6("ytd-watch-learning-journey");break;case "shorts":f=_.F6("ytd-shorts");break;case "search":f=_.F6("ytd-search");break;case "channel":f=_.F6("ytd-browse");f.pageSubtype="channels";break;case "trending":f=_.F6("ytd-browse");
f.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":f=
_.F6("ytd-browse");f.pageSubtype=Q;break;case "browse":f=_.F6("ytd-browse");break;default:_.Wv(new _.IO("Error getting page element for type",Q))}b=f;A.pageNameToElement.set(Q,b)}return b};
Ptl.prototype.preparePage=function(A,Q,b){b&&(A=_.OY(b)||A);if(A!=="watch"&&A!=="learning_journey_watch"){var f=this.elementPoolPopulator,a=A;a!=f.targetPage_&&f.pendingPages_.indexOf(a)>-1&&(f.targetPage_&&(f.pendingPages_.unshift(f.targetPage_),f.abort()),ahq(f,a),_.jUW(f,a))}if((f=AR(this,A))||!_.V(b,_.y_)){f.isAttached||f===Q||(f.hidden=!0);if(!f.data&&(A!=="watch"&&A!=="learning_journey_watch"||!_.K("swatcheroo_page_pool_dont_provide_filler_data"))){var T;if(A=(T=_.vG("FILLER_DATA",{})[A])==
null?void 0:T.response)f.data=A}return f}};var Xms=function(A){this.JSC$31837_clientRoot=A;this.playlistHandlerActionMap={"yt-add-to-playlist-command":IwO,"yt-end-playlist-command":Hcs,"yt-recover-playlist-command":qcF,"yt-refresh-playlist-command":ruN,"yt-playlist-remove-videos-action":olN};_.Dl(_.Yk.getInstance(),this.playlistHandlerActionMap,this.JSC$31837_clientRoot);Ult()},S9n;var Qo=function(A,Q,b){this.apiKey=A;this.endpoint=Q;this.confidenceThreshold=b===void 0?.5:b;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=Q==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Q==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
Q==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||Q==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new lmF};
_.d=Qo.prototype;
_.d.start=function(A){if(this.state===0)if(this.isOnline()){A.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=A.supportsHttpHeadersOverwriteParam);A.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=A.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.eT("voice_assistant");_.Wn("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=A.languageCode||"en-US";this.supportsCrossDomainXhr=A.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=A.youtubeAssistantRequest||null;this.listeningHandler=A.listeningHandler||this.listeningHandler;this.audioDetectedHandler=A.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=A.stopHandler||this.stopHandler;this.completeHandler=A.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=A.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=A.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
A.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=A.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=A.accessToken;this.additionalHeaders=A.additionalHeaders||{};var Q;this.prefetchResponseTimeoutMs=(Q=A.prefetchResponseTimeoutMs)!=null?Q:this.prefetchResponseTimeoutMs;U0d(this);this.startAudio();LtN(this)}else this.errorHandler("OFFLINE")};
_.d.stop=function(A){var Q=A===void 0?{}:A;A=Q.logCancel===void 0?!0:Q.logCancel;var b=Q.logMicClosed===void 0?!0:Q.logMicClosed;var f=Q.handleError===void 0?!0:Q.handleError;Q=Q.handleStop===void 0?!0:Q.handleStop;this.state!==0&&(A&&bX("voz_cx"),fh(this,{logMicClosed:b,handleStop:Q}),f&&this.errorHandler("ABORTED"))};
_.d.getState=function(){return this.state};
_.d.isSupported=function(){return!0};
_.d.stopAudio=function(A){(A===void 0||A)&&bX("voz_mf")};
_.d.startAudio=function(){bX("voz_vp");return _.Ul(null)};
var MyO=function(A,Q){A.channelOpen&&(A.state!==2&&(A.state=2,bX("voz_ss"),A.listeningHandler()),Q=new Uint8Array(Q),Q='{ "audioIn": "'+_.Cs(Q)+'" }',A.channel.send(Q))},fh=function(A,Q){var b=Q===void 0?{}:Q;
Q=b.logMicClosed===void 0?!0:b.logMicClosed;b=b.handleStop===void 0?!0:b.handleStop;A.vozEndOfDataTimeout>-1&&(clearTimeout(A.vozEndOfDataTimeout),A.vozEndOfDataTimeout=-1);lxx(A);A.stopAudio(Q);A.channel&&(A.channelOpen=!1,A.manuallyClosedChannel=!0,A.channel.close(),A.channel=void 0);A.transcribedSpeechResults=[];A.state=0;b&&A.stopHandler()},U0d=function(A){var Q={httpHeadersOverwriteParam:A.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},A.additionalHeaders,A.accessToken&&A.isUsingVoz?{Authorization:"Bearer "+A.accessToken}:{"x-goog-api-key":A.apiKey}),supportsCrossDomainXhr:A.supportsCrossDomainXhr};A.channel=new Qm(A.endpoint,Q);A.channel.open();_.jM(A.channel,"w",function(){var b=A.channel,f=b.send,a=A.isUsingVoz?"PLACEHOLDER":"example";a={config:{dialogStateIn:{languageCode:A.languageCode},deviceConfig:{deviceId:a,deviceModelId:a},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!A.isUsingVoz)a.config.requestType=4;else if(A.isUsingVoz&&A.youtubeAssistantRequest){var T=JSON.stringify(A.youtubeAssistantRequest);a.config.internalIn={youtubeAssistantS3InputJson:T}}f.call(b,a);A.channelOpen=!0;A.manuallyClosedChannel=!1});
_.jM(A.channel,"x",function(){A.manuallyClosedChannel||(A.channelOpen=!1,A.channel=void 0,fh(A))});
_.jM(A.channel,"z",function(b){if(b.data){lxx(A);for(var f=0;f<b.data.length;f++){var a=A,T=b.data[f],G=T.speechResults;if(G)a:{var p=[];T=[];var P=!1;G=_.F(G);for(var U=G.next();!U.done;U=G.next()){U=U.value;if(U.noSpeech){fh(a);a.errorHandler("NO_SPEECH");break a}U.transcript!==void 0&&U.stability!==void 0&&(U.stability<a.confidenceThreshold&&(P=!0),P?T.push(U.transcript):p.push(U.transcript))}if(p.length!==0||T.length!==0)p=p.join(" "),T=T.join(" "),a.receivedEndOfUtterance&&!a.isUsingVoz?a.isUsingVoz||
a.completeHandler([p,T]):(P=a,G=p,U=T,bX("voz_sf"),P.transcriptionUpdateHandler(G,U),P.transcribedSpeechResults=[G,U]),a.receivedEndOfUtterance&&(bX("voz_eou"),a.transcriptionCompleteHandler([p,T]),a.isUsingVoz&&(a.prefetchResponseTimeoutMs===0?fh(a,{logMicClosed:!1,handleStop:!0}):a.prefetchResponseTimeoutMs>0&&KtO(a)))}else a.isUsingVoz&&(T==null?0:T.internalOut)?(T=JSON.parse(T.internalOut.youtubeAssistantS3OutputJson),T.userHasOptedInToVaa||T.vaaConsent?a.vaaConsentUpdateHandler(!!T.userHasOptedInToVaa,
!!T.vaaConsent):(i_n(a),T&&(p=a.transcribedSpeechResults,bX("voz_rqf"),a.completeHandler(p,T)))):T.eventType==="END_OF_UTTERANCE"?a.receivedEndOfUtterance=!0:(bX("voz_err"),a.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Wv(Error("cl")))}}});
_.jM(A.channel,"y",function(b){fh(A);switch(b.status){case 1:b="WEBCHANNEL_NETWORK_ERROR";break;case 2:b="WEBCHANNEL_SERVER_ERROR";break;default:b="WEBCHANNEL_UNKNOWN_ERROR"}A.errorHandler(b);A.logError(Error(b))})};
Qo.prototype.logError=function(A){_.en(A)};
Qo.prototype.isOnline=function(){return!0};
var KtO=function(A){i_n(A);A.prefetchResponseSetTimeoutId=setTimeout(function(){fh(A,{logMicClosed:!1,handleStop:!0})},A.prefetchResponseTimeoutMs)},i_n=function(A){A.prefetchResponseSetTimeoutId>-1&&(clearTimeout(A.prefetchResponseSetTimeoutId),A.prefetchResponseSetTimeoutId=-1)},LtN=function(A){lxx(A);
A.noResponseReceivedTimeout=window.setTimeout(function(){fh(A);A.errorHandler("NO_SPEECH")},11E3)},lxx=function(A){A.noResponseReceivedTimeout>-1&&(window.clearTimeout(A.noResponseReceivedTimeout),A.noResponseReceivedTimeout=-1)},bX=function(A){_.hQ(A,void 0,"voice_assistant")};var ao=function(){Qo.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.O(ao,Qo);ao.prototype.isSupported=function(){return j_F()};
ao.prototype.startAudio=function(){var A=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.gF(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(f){JSx(A,f)};
this.processor.connect(this.audioContext.destination);var Q=function(f){A.stream=f;if(!A.audioContext)return _.Ul(null);f=A.audioContext.createMediaStreamSource(f);A.processor&&f.connect(A.processor);return _.Ul(null)},b={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?Q(this.stream):(b=navigator.mediaDevices.getUserMedia(b))?b.then(Q).catch(function(f){fh(A);f.name&&f.name==="NotAllowedError"?A.errorHandler("NO_MICROPHONE_PERMISSION"):(A.errorHandler("AUDIO_ERROR"),A.logError(f));return _.gF(null)}):(fh(this),this.errorHandler("AUDIO_ERROR"),_.Wv(Error("dl")));
return Qo.prototype.startAudio.call(this)};
ao.prototype.stopAudio=function(A){A=A===void 0?!0:A;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(Q){Q.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Qo.prototype.stopAudio.call(this,A)};
ao.prototype.isOnline=function(){return navigator.onLine};
var JSx=function(A,Q){if(A.audioContext)if(window.OfflineAudioContext){var b=A.audioContext.sampleRate,f=Q.inputBuffer.getChannelData(0);Q=new window.OfflineAudioContext(1,f.length,16E3);for(var a=Q.createBuffer(1,f.length,b),T=a.getChannelData(0),G=0,p=0;p<f.length;p++)T[p]=f[p],G+=T[p]*T[p];!A.audioDetected&&Math.sqrt(G/f.length)>.01&&(A.audioDetected=!0,A.audioDetectedHandler());f=Q.createBufferSource();f.buffer=a;f.connect(Q.destination);f.start(0);Q.oncomplete=function(P){P=P.renderedBuffer.getChannelData(0);
for(var U=Math.floor(16384E3/b),L=new Int16Array(U),M=0;M<U;++M)L[M]=Math.max(-1,Math.min(1,P[M]))*32767;MyO(A,L.buffer)};
Q.startRendering()}else VyF(A,Q)},VyF=function(A,Q){var b=A.audioContext.sampleRate,f=Q.inputBuffer.getChannelData(0),a=Math.floor((b+8E3)/16E3);
b=f.length/a;Q=new Float32Array(b);for(var T=0;T<b;++T)Q[T]=f[T*a];f=new Int16Array(b);for(a=0;a<b;++a)f[a]=Math.max(-1,Math.min(1,Q[a]))*32767;MyO(A,f.buffer)};var O_x={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var nKN=function(){this.JSC$19792_audioEnabled=!0;this.audioFeedbackHolder={}};
nKN.prototype.isPlaying=function(A){return A.currentTime>0&&!A.paused&&!A.ended&&A.readyState>2};
var k$n=function(A){for(var Q=_.F(Object.values(O_x)),b=Q.next();!b.done;b=Q.next())b=b.value,A.audioFeedbackHolder[b]=new Audio,A.audioFeedbackHolder[b].src="/s/search/audio/"+b+".mp3",A.audioFeedbackHolder[b].load()},Ti=function(A,Q){if(A.JSC$19792_audioEnabled!==!1&&Q in A.audioFeedbackHolder){for(var b=_.F(Object.values(A.audioFeedbackHolder)),f=b.next();!f.done;f=b.next())f=f.value,A.isPlaying(f)&&f.pause();
A.audioFeedbackHolder[Q].currentTime=0;A.audioFeedbackHolder[Q].play().catch(function(){})}};var Ixq=function(A,Q){var b=this;this.store=A;this.service=Q;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){b.setState("offline");b.stop()};
this.audioPlayer=new nKN;var f;(f=this.audioPlayer)==null||k$n(f)};
_.d=Ixq.prototype;_.d.getService=function(){return this.service};
_.d.isEnabled=function(){return!!this.service};
_.d.isSupported=function(){var A;return(A=this.service)==null?void 0:A.isSupported()};
_.d.start=function(){var A=this,Q,b,f,a,T,G,p,P,U,L,M,l,J;return _.B(function(n){switch(n.nextAddress){case 1:A.store.dispatch(oGN("",""));if(!navigator.onLine)return A.setState("offline"),n.return();window.addEventListener("offline",A.handleOfflineEvent);A.stream=null;if(!A.permissionsSupported){n.jumpTo(2);break}_.ML(n,3);return n.yield(H_F(A),5);case 5:Q=n.yieldResult;if(!Q)return(b=A.audioPlayer)==null||Ti(b,"failure"),n.return();A.service.stream=A.stream;A.setState("listening");_.Z1(n,2);break;
case 3:_.Vw(n),A.permissionsSupported=!1;case 2:f={context:_.XYi(_.Tp())},f.youtubeAssistantParams={searchParams:{inlineSearchResponse:A.enableInlineSearchResponse}},a=function(t,g){A.store.dispatch(tOd("transcribing"));A.store.dispatch(oGN(t,g))},T=function(){var t;
(t=A.audioPlayer)==null||Ti(t,"open");A.setState("listening")},G=function(){A.setState("transcribing")},p=function(t){A.setErrorState(t)},P=function(t,g){var e;
(e=A.audioPlayer)==null||Ti(e,"success");g&&(_.K("kevlar_voice_search_inline_search")&&(A.responseProcessor=_.fJ().resolve(_.p66),A.responseProcessor&&(e=g.navigationAction,t=g.prefetchedSearchResponse,e&&t&&(e=(new _.Avx).JSC$12994_getStoreKey(e),_.ya(A.responseProcessor,t,e)))),A.JSC$19810_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",g))},U=function(){window.removeEventListener("offline",A.handleOfflineEvent)},L=_.VL6(!1),M=L.Authorization!=null,l=A.enableFirstPartyAuth||
A.enableFPAForSignedInUsers&&M?L:{"X-Goog-Visitor-Id":L["X-Goog-Visitor-Id"]},J={completeHandler:P,
errorHandler:p,listeningHandler:T,audioDetectedHandler:G,stopHandler:U,transcriptionUpdateHandler:a,youtubeAssistantRequest:f,languageCode:Ctx(),additionalHeaders:l,supportsCrossDomainXhr:A.enableFirstPartyAuth||A.enableFPAForSignedInUsers&&M,supportsHttpHeadersOverwriteParam:!A.disableHttpHeadersOverwrite},A.service.start(J),_.Oi(n)}})};
_.d.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.d.reset=function(){this.store.dispatch(_.G7({type:"RESET_VOICE_SEARCH_STATE"}))};
_.d.setState=function(A){this.store.dispatch(tOd(A))};
_.d.setErrorState=function(A){switch(A){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var Q;(Q=this.audioPlayer)==null||Ti(Q,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)H_F(this);else{var b;(b=this.audioPlayer)==null||Ti(b,"failure");this.setState("permission-denied")}break;case "ABORTED":var f;(f=this.audioPlayer)==null||Ti(f,"no_input");break;default:var a;(a=this.audioPlayer)==
null||Ti(a,"no_input");this.setState("timeout")}};
var H_F=function(A){var Q,b;return _.B(function(f){switch(f.nextAddress){case 1:return f.yield(navigator.permissions.query({name:"microphone"}),2);case 2:Q=f.yieldResult;if(Q.state==="granted")return f.return(!0);if(Q.state==="denied")return A.setState("permission-denied"),f.return(!1);A.setState("permission");b={audio:{sampleSize:16,channelCount:1},video:!1};_.ML(f,3);return f.yield(navigator.mediaDevices.getUserMedia(b),5);case 5:return A.stream=f.yieldResult,f.return(!0);case 3:return _.Vw(f),
A.setState("permission-denied"),f.return(!1)}})},Ctx=function(){var A=_.vG("INNERTUBE_CONTEXT_HL"),Q=_.vG("INNERTUBE_CONTEXT_GL");
return A.indexOf("-")>-1?A:A+"-"+Q};var q9r=function(A,Q,b){Ixq.call(this,Q,b);this.JSC$19810_actionRouter=A;this.enableInlineSearchResponse=_.K("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.K("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.K("kevlar_voice_search_enable_fpa_signedin_users")},oKN;
_.O(q9r,Ixq);
var tyq=function(){if(!oKN){var A="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.K("kevlar_voice_search_auth_enabled")||_.K("kevlar_voice_search_use_yt_endpoint")?A="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.K("kevlar_voice_search_use_fp_endpoint")&&(A="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");oKN=
new q9r(_.Yk.getInstance(),_.QK(),new ao(_.vG("VOZ_API_KEY"),A,.5))}return oKN};var rSK=function(A){this.JSC$19814_clientRoot=A;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$19814_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)]]));A=_.F(this.eventListeners);for(var Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;b=b.next().value;b=_.F(b);for(var f=b.next();!f.done;f=b.next()){var a=
_.F(f.value);f=a.next().value;a=a.next().value;Q.addEventListener(f,a)}}_.Dl(_.Yk.getInstance(),this.autonavPauseActionMap,this.JSC$19814_clientRoot)},jZx,RpF=function(A){return _.K("kevlar_autonav_popup_filtering")?(A=_.Au(A))?A.hasAttribute("prevent-autonav"):!0:!0};
_.d=rSK.prototype;_.d.onIronOverlayOpened=function(A){RpF(A)&&(this.autonavPauseReasons.overlayOpen=!0,dT(this))};
_.d.onIronOverlayClosed=function(A){RpF(A)&&(this.autonavPauseReasons.overlayOpen=!1,dT(this))};
_.d.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;dT(this)};
_.d.onYtAutonavPauseBlur=function(){var A=this;_.j7.addJob(function(){A.isInBackground()||(A.autonavPauseReasons.inputBoxFocus=!1,dT(A))},8,0)};
_.d.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;dT(this)};
_.d.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;dT(this)};
_.d.onYtAutonavPauseScroll=function(){var A=_.fJ().resolve(_.F7);A.isOnWatch()&&(A=A.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=A.getBoundingClientRect().top<-200,dT(this))};
_.d.onYtAutonavPauseUserEngagement=function(A){var Q=this;if(_.K("user_engagement_enable_autoplay_pause_feature")){var b=Number(A.lowEngagementThresholdMs);isNaN(b)||b<=0||A.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Mv("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.fJ().resolve(_.Wz),_.TD()<b?_.Hv(_.j7,function(){_.Mv("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.UH7()?(this.userEngagementCsn=_.WR(),_.Hv(_.j7,function(){_.Mv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
Q.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,dT(this)):_.Mv("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.kGi(Error("el`"+JSON.stringify(A)))};
_.d.onYtAutonavPausePlayer=function(A){this.autonavPauseReasons.requestedByPlayer=!!A.detail;dT(this)};
_.d.onYtAutonavVisibilityChanged=function(){var A=this,Q,b,f;return _.B(function(a){if(a.nextAddress==1)return(Q=_.BL())?a.yield(Q.getPlayerPromise(),2):a.return();b=a.yieldResult;f=b.isMuted()||b.getVolume()===0;A.autonavPauseReasons.backgroundAndMute=A.isInBackground()&&f;dT(A);_.Oi(a)})};
_.d.onYtAutonavPausePlayerEnded=function(){_.fJ().resolve(_.Wz);var A=144E5;_.K("user_engagement_enable_autoplay_pause_feature")||_.K("is_part_of_any_user_engagement_experiment")||(A=45E5);this.autonavPauseReasons.longIdle=_.TD()>A;gKs(this);dT(this)};
_.d.onYtUserActivity=function(){var A=this;this.autonavPauseReasons.userEngagement&&(_.Hv(_.j7,function(){_.Mv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",A.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,dT(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Hv(_.j7,function(){_.Mv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",A.userEngagementCsn);_.go()}),this.autonavPauseReasons.youthereLactExperiment=!1,dT(this));
this.autonavPauseReasons.longIdle&&!_.K("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,dT(this))};
_.d.isInBackground=function(){var A=window.document.visibilityState;return!(!A||A==="visible")};
var dT=function(A){for(var Q=!1,b=_.F(Object.values(A.autonavPauseReasons)),f=b.next();!f.done;f=b.next())f=f.value,Q=Q||f;Q?_.dl.getInstance().pause(A.autonavPauseReasons):(A=_.dl.getInstance(),A.autonavState_==3?(A.setState(2,!1,!1),A.autonavPauseReason_=void 0):A.autonavState_==1&&(A.disabledAutonavPauseReason_=void 0))},gKs=function(A){var Q=!1;
if(_.K("enable_autoplay_pause_by_lact")){_.fJ().resolve(_.Wz);Q=_.GP("autoplay_pause_by_lact_sec")*1E3;var b=_.GP("autoplay_pause_by_lact_sampling_fraction");(Q=_.TD()>=Q&&Math.random()<b)&&!_.UH7()&&(_.Hv(_.j7,function(){_.Mv("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),Q=!1)}Q!==A.autonavPauseReasons.youthereLactExperiment&&(A.autonavPauseReasons.youthereLactExperiment=Q)&&(A.userEngagementCsn=_.WR(),_.Hv(_.j7,function(){_.Mv("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",A.userEngagementCsn)}));
A.autonavPauseReasons.userEngagement&&_.Hv(_.j7,function(){_.Mv("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",A.userEngagementCsn)})};
rSK.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Mv("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.go(),this.autonavPauseReasons.youthereLactExperiment=!1,dT(this));this.autonavPauseReasons.userEngagement&&(_.Mv("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,dT(this))};
rSK.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Fj=function(){var A=_.q.apply(this,arguments)||this;A.miniGuideVisible=!1;A.guideOpened=_.K("disable_initial_guide_state_fix")?!1:A.canFitPersistentGuide(A.initialBodyClientWidth);A.guideUserStateOpened=A.getInitialGuideUserStateOpened();A.isFullscreenShorts=!1;A.miniGuideWidthThreshold=_.GP("kevlar_mini_guide_width_threshold",791);A.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");A.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");A.persistentGuideBlockedPagePathRegex=new RegExp(A.persistentGuideBlockedPagesPatterns.join("|"));A.animationTransitionDuration=0;A.lateDataResolver=_.Qh();A.initialGuideDataFetchFailed=!1;A.initialLoad=!0;A.guideRenderers=new Set;A.isMouseOverGuide=!1;A.sessionUserManuallyExpandedGuideState=!1;A.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return A};
_.O(Fj,_.q);_.d=Fj.prototype;_.d.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.d.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.d.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.d.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.d.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.d.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.d.ready=function(){_.fJ().addProvider({provide:_.yU,useValue:this.hostElement})};
_.d.attached=function(){var A=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.lN(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.lN(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.lN(this,this.onYtGuideShow));_.mL(this,function(){A.animationTransitionDuration=200})};
_.d.detached=function(){document.removeEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.lN(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.lN(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.lN(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.lN(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.lN(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.d.getData=function(){return this.data};
_.d.load=function(){var A=this,Q,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=A.lateDataResolver.resolve.bind(A),T.return(A.lateDataResolver.promise);if(window.ytInitialGuideData)return Q=_.Qh(),Q.resolve(window.ytInitialGuideData),T.return(Q.promise);f=!1;_.ML(T,2);return T.yield(A.fetchGuideData(),4);case 4:b=T.yieldResult;_.Z1(T,3);break;case 2:a=_.Vw(T),a.message==="Returned error"&&(f=
!0);case 3:if(b)return T.return(b);A.onYtGuideClose();f||(A.initialGuideDataFetchFailed=!0);return T.return(A.lateDataResolver.promise)}})};
_.d.fetchGuideData=function(){var A=this,Q,b,f,a,T,G,p;return _.B(function(P){if(P.nextAddress==1)return Q=_.fJ(),A.guidePromise||(b=Q.resolve(_.vY),A.guidePromise=_.Ay(b,osM)),P.yield(A.guidePromise,2);if(P.nextAddress!=3)return f=P.yieldResult,a=Q.resolve(_.Bu),P.yield(a(),3);(T=P.yieldResult)&&((G=f)==null?void 0:(p=G.responseContext)==null?void 0:p.maxAgeSeconds)!==0&&T.put("service:guide:fallback",new _.M6({innertubeResponse:f}));return P.return(f)})};
_.d.initializeGuideDataIfEmpty=function(){var A=this,Q,b;return _.B(function(f){if(f.nextAddress==1){if(!A.initialGuideDataFetchFailed||A.data)return f.return();_.ML(f,2);return f.yield(A.fetchGuideData(),4)}if(f.nextAddress!=2)return(Q=f.yieldResult)&&A.lateDataResolver.resolve(Q),_.Z1(f,0);b=_.Vw(f);_.Wv(b);_.Oi(f)})};
_.d.initializeGuideData=function(){var A=this,Q;return _.B(function(b){switch(b.nextAddress){case 1:return _.L7(Y8q(),{mainAppWeb:_.Dk()}),_.ML(b,2),b.yield(A.load(),4);case 4:A.data=b.yieldResult;_.Z1(b,3);break;case 2:_.Vw(b),_.Mr(Y8q(),"FAILURE");case 3:Q=A.data&&A.data.items&&A.data.items.length>0?"SUCCESS":"FAILURE",_.Mr(Y8q(),Q),_.Oi(b)}})};
_.d.setGuideData=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1)return Q.disabled?a.return():Q.data?(A.data=Q.data,Q.guideRenderers.add(A),a.return()):a.yield(Q.initializeGuideData(),2);Q.graftGuideToPage();b=_.Ep("IS_HOMEPAGE_COLD")?"eop":void 0;_.K("disable_element_pool_populator")?Q.setGuideDataAfterInit(A):(f=new _.GW(1,b),_.BJ(f,Q.setGuideDataAfterInit.bind(Q,A)));_.Oi(a)})};
_.d.setGuideDataAfterInit=function(A){A.data=this.data;A.markDirty();this.guideRenderers.add(A);_.y1(function(){_.hQ("gle")});
_.mL(this,function(){_.hQ("gpe")})};
_.d.graftGuideToPage=function(){if(this.data){var A=this.data&&this.data.trackingParams;A&&(A=_.t8(A),_.K2(_.IP(),A))}};
_.d.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.lN(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.d.onDrawerOpenedChanged=function(A,Q){!Q.value&&this.guideOpened&&(this.guideOpened=!1)};
_.d.onYtGuideToggle=function(A){var Q=this.guideOpened;this.guideOpened=!Q;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var b=_.nD();_.k_(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;b.save()}this.updateGuideDrawerElementState();if(this.guideElement){var f;this.guideOpened&&((f=A.detail)==null?0:f.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitioned))}Q||this.initializeGuideDataIfEmpty()};
_.d.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Ng(this.guideElement)};
_.d.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lN(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(C6F(this.guideOpened))};
_.d.guidePersistentAndVisibleChanged=function(){_.Pn(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.d.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.G7({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.d.miniGuideVisibleChanged=function(){_.Pn(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.d.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(C6F(this.guideOpened)),this.initialLoad=!1);_.Pn(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.d.activeEndpointChanged=function(){_.Pn(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.d.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.d.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()};
_.d.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var A=this.canFitPersistentGuide(this.cachedClientWidth);A?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=A}this.updateGuideDrawerElementState()};
_.d.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.d.getGuideOpened=function(){return this.guideOpened};
_.d.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.d.getActiveEndpoint=function(){return this.activeEndpoint};
_.d.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.d.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&&_.Bn(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.d.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.K("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.d.handleGuideMouseLeave=function(){var A=this;!this.sessionUserManuallyExpandedGuideState&&_.K("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Yl(this,"handleGuideMouseLeave",function(){A.isMouseOverGuide||!A.guideOpened||A.miniGuideVisible||(A.guideOpened=!1,A.updateGuideDrawerElementState())},100))};
_.d.computeGuidePersistentAndVisible=function(){var A=this;_.Yl(this,"computeGuidePersistentAndVisible",function(){A.guidePersistentAndVisible=A.guideOpened&&A.guidePersistent;A.guideIsVisibleButNotPersistent=!(!A.guideOpened||A.guidePersistent)})};
_.d.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.d.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.d.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.d.startLoadingWatch=function(){this.closeGuide()};
_.d.startLoadingShorts=function(){_.K("web_hide_guide_on_shorts")&&this.closeGuide()};
_.d.onYtNavigateFinish=function(A,Q){if(!_.S1||Q){this.activeEndpoint=Q.endpoint;this.pageType=Q.pageType;this.pageUrl=Q.response.url;var b,f;A=(f=_.V((b=Q.endpoint)==null?void 0:b.commandMetadata,_.KD))==null?void 0:f.url;!this.pageUrl&&A&&(this.pageUrl=A);_.K("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.d.getVisibleGuideRenderer=function(){for(var A=_.F(this.guideRenderers),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,this.miniGuideVisible&&Q.is==="ytd-mini-guide-renderer"||this.guideOpened&&Q.is==="ytd-guide-renderer")return Q;return null};
_.d.markGuideRendererDirty=function(A){if(A){typeof A.markDirty==="function"&&A.markDirty();A=_.F([].concat(_.ri(_.Bj(A).children)));for(var Q=A.next();!Q.done;Q=A.next())this.markGuideRendererDirty(Q.value)}};
_.d.persistentGuideEnabled=function(A,Q){if(!Q||A==="watch"||A==="settings"||A==="shorts"&&this.isFullscreenShorts||_.K("reels_web_disable_persistent_guide_shorts")&&A==="shorts")return!1;var b=_.LJ(Q)||"";return _.K("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(f){return b===f}):!this.persistentGuideBlockedPagePathRegex.test(b)};
_.d.canFitPersistentGuide=function(A){var Q=_.GP("kevlar_persistent_guide_width_threshold",1312);return Q===-1||_.K("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:A>Q};
_.d.canFitMiniGuide=function(A){return this.miniGuideWidthThreshold===-1?!1:A>this.miniGuideWidthThreshold};
_.d.onResize=function(){var A=this;_.Yl(this,"calculateGuideState",function(){A.onResizeDebounced()})};
_.d.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.d.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.d.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.d.getInitialGuideUserStateOpened=function(){return _.K("web_force_mini_guide_default")?!1:!_.nD().getFlag(109)};
_.Qr.Object.defineProperties(Fj.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.vG("initialBodyClientWidth")||window.innerWidth}}});
Fj.prototype.onResize=Fj.prototype.onResize;Fj.prototype.observeForMiniGuideVisible=Fj.prototype.observeForMiniGuideVisible;Fj.prototype.computeGuidePersistentAndVisible=Fj.prototype.computeGuidePersistentAndVisible;Fj.prototype.cachedClientWidthChanged=Fj.prototype.cachedClientWidthChanged;Fj.prototype.resetGuide=Fj.prototype.resetGuide;Fj.prototype.activeEndpointChanged=Fj.prototype.activeEndpointChanged;Fj.prototype.guideOpenedChanged=Fj.prototype.guideOpenedChanged;
Fj.prototype.miniGuideVisibleChanged=Fj.prototype.miniGuideVisibleChanged;Fj.prototype.guideIsVisibleButNotPersistentChanged=Fj.prototype.guideIsVisibleButNotPersistentChanged;Fj.prototype.guidePersistentAndVisibleChanged=Fj.prototype.guidePersistentAndVisibleChanged;Fj.prototype.onGuideElementChanged=Fj.prototype.onGuideElementChanged;Fj.prototype.onGuidePersistentChanged=Fj.prototype.onGuidePersistentChanged;Fj.prototype.onRenderGuideChanged=Fj.prototype.onRenderGuideChanged;
Fj.prototype.onActiveEndpointChanged=Fj.prototype.onActiveEndpointChanged;Fj.prototype.onMiniGuideVisibleChanged=Fj.prototype.onMiniGuideVisibleChanged;Fj.prototype.onGuideIsVisibleButNotPersistentChanged=Fj.prototype.onGuideIsVisibleButNotPersistentChanged;Fj.prototype.onGuidePersistendAndVisibleChanged=Fj.prototype.onGuidePersistendAndVisibleChanged;_.E([_.I(_.eI),_.c("design:type",Object)],Fj.prototype,"ironResizableBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Fj.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Fj.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Fj.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],Fj.prototype,"disabled",void 0);
_.E([_.C(),_.c("design:type",Boolean)],Fj.prototype,"guidePersistentAndVisible",void 0);_.E([_.iN("guidePersistentAndVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onGuidePersistendAndVisibleChanged",null);_.E([_.C(),_.c("design:type",Boolean)],Fj.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.iN("guideIsVisibleButNotPersistent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.E([_.C(),_.c("design:type",Object)],Fj.prototype,"miniGuideVisible",void 0);_.E([_.iN("miniGuideVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onMiniGuideVisibleChanged",null);_.E([_.C(),_.c("design:type",Boolean)],Fj.prototype,"forceMiniGuideClose",void 0);
_.E([_.C(),_.c("design:type",Object)],Fj.prototype,"activeEndpoint",void 0);_.E([_.iN("activeEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onActiveEndpointChanged",null);_.E([_.C(),_.c("design:type",Boolean)],Fj.prototype,"renderGuide",void 0);_.E([_.iN("renderGuide"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onRenderGuideChanged",null);
_.E([_.C(),_.c("design:type",Object)],Fj.prototype,"guideOpened",void 0);_.E([_.C(),_.c("design:type",Boolean)],Fj.prototype,"guidePersistent",void 0);_.E([_.iN("guidePersistent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onGuidePersistentChanged",null);_.E([_.C(),_.c("design:type",Object)],Fj.prototype,"guideUserStateOpened",void 0);_.E([_.C(),_.c("design:type",String)],Fj.prototype,"pageUrl",void 0);
_.E([_.C(),_.c("design:type",String)],Fj.prototype,"pageType",void 0);_.E([_.C(),_.c("design:type",Number)],Fj.prototype,"cachedClientWidth",void 0);_.E([_.C(),_.c("design:type",Object)],Fj.prototype,"guideElement",void 0);_.E([_.C({selector:_.Us}),_.c("design:type",Object)],Fj.prototype,"isFullscreenShorts",void 0);_.E([_.iN("guideElement"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onGuideElementChanged",null);
_.E([_.iN("guidePersistentAndVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"guidePersistentAndVisibleChanged",null);_.E([_.I_("guideIsVisibleButNotPersistent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.E([_.iN("miniGuideVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"miniGuideVisibleChanged",null);_.E([_.I_("guideOpened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"guideOpenedChanged",null);_.E([_.iN("activeEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"activeEndpointChanged",null);
_.E([_.I_("pageUrl"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"resetGuide",null);_.E([_.I_("cachedClientWidth"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"cachedClientWidthChanged",null);_.E([_.iN("guideOpened","guidePersistent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"computeGuidePersistentAndVisible",null);
_.E([_.I_("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"observeForMiniGuideVisible",null);_.E([_.Kc("iron-resize"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fj.prototype,"onResize",null);_.E([_.h({disableElementRegistration:!0,is:"yt-guide-manager"})],Fj);var epd=_.W(Fj,"yt-guide-manager",void 0,{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var Gi=function(){var A=_.q.apply(this,arguments)||this;A.JSC$19824_keyboardInUse=!1;A.boundHandleCapturedKeydownEvent=function(Q){A.handleCapturedKeydownEvent(Q)};
return A};
_.O(Gi,_.q);_.d=Gi.prototype;_.d.attached=function(){this.listenToDocument(document)};
_.d.listenToDocument=function(A){A.addEventListener("keydown",_.lN(this,this.onKeyDownEvent));A.addEventListener("keyup",_.lN(this,this.onKeyUpEvent));A.addEventListener("mousedown",_.lN(this,this.onMouseDownEvent));_.K("desktop_keyboard_capture_keydown_killswitch")||A.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.addEventListener("yt-page-data-updated",_.lN(this,this.onPageUpdate))};
_.d.detached=function(){this.unlistenFromDocument(document)};
_.d.unlistenFromDocument=function(A){A.removeEventListener("keydown",_.lN(this,this.onKeyDownEvent));A.removeEventListener("keyup",_.lN(this,this.onKeyUpEvent));A.removeEventListener("mousedown",_.lN(this,this.onMouseDownEvent));_.K("desktop_keyboard_capture_keydown_killswitch")||A.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.removeEventListener("yt-page-data-updated",_.lN(this,this.onPageUpdate))};
_.d.ready=function(){_.fJ().addProvider({provide:_.L3,useValue:this})};
_.d.isKeyBoardInUse=function(){return this.JSC$19824_keyboardInUse};
_.d.handleCapturedKeydownEvent=function(A){if(A.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(A)};
_.d.onMouseDownEvent=function(){this.JSC$19824_keyboardInUse=!1};
_.d.onPageUpdate=function(){if(_.K("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.K("web_shorts_keyboard_shortcut_usage_log")){_.Vk.clear();for(var A=_.F(_.iW),Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;b=b.next().value;b=_.K6(b);_.Vk.set(Q,b);_.ui(_.WR(),_.hx(),b)}_.O_.clear();A=_.F(_.Je);for(Q=A.next();!Q.done;Q=A.next())b=_.F(Q.value),Q=b.next().value,b=b.next().value,b=_.K6(b),_.O_.set(Q,b),_.ui(_.WR(),_.hx(),b);_.ZV(_.WR(),_.hx(),[].concat(_.ri(_.O_.values()),
_.ri(_.Vk.values())));_.Y_(_.WR(),[].concat(_.ri(_.O_.values()),_.ri(_.Vk.values())))}};
_.d.onMiniplayerActiveChange=function(){var A;(A=_.fJ().resolve(_.zb).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(A.document):this.unlistenFromDocument(A.document))};
_.d.ignoreKeyEvent=function(A){if(A.ctrlKey||A.altKey)if(_.K("kevlar_macro_markers_keyboard_shortcut")){if(A.keyCode!==37&&A.keyCode!==39)return!0}else return!0;var Q=_.mW(A)||[];return _.lfq(Q)?(_.K("web_button_or_anchor_list_item")&&n_x(Q,A)&&(this.JSC$19824_keyboardInUse=!0),!0):A.defaultPrevented?(gM(A.keyCode,A.shiftKey,this.isShortsPage),!0):A.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(A):!1};
_.d.isSpacebarClick=function(A){var Q=A||window.event;var b;Q.composedPath&&typeof Q.composedPath==="function"?b=Q.composedPath():b=Q.path;b&&b.length?Q=b[0]:(Q=Q||window.event,Q=Q.target||Q.srcElement,Q.nodeType==3&&(Q=Q.parentNode));return Q&&A.keyCode===32&&(A=Q.tagName==="BUTTON"||Q.tagName==="A"||Q.tagName==="INPUT",Q=(Q=Q.getAttribute("role"))&&(Q==="option"||Q==="button"||Q.indexOf("menuitem")===0),A||Q)?!0:!1};
_.d.onKeyDownEvent=function(A){if(!this.ignoreKeyEvent(A)&&(A.keyCode===191&&(A.shiftKey||A.metaKey?A.repeat!=null&&A.repeat||(this.openHotkeyDialog(),gM(A.keyCode,A.shiftKey,this.isShortsPage)):(this.focusSearchBox(),A.preventDefault())),!A.metaKey)){var Q=_.fJ().resolve(_.zb);switch(A.keyCode){case 9:this.JSC$19824_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(A);break;case 84:Q.pipController.getWindow()&&window.focus();this.toggleTheaterMode(A.keyCode,A.shiftKey);break;case 73:Q.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(A.keyCode,A.shiftKey);break;case 70:if(this.isShortsPage&&_.K("web_fullscreen_shorts")){_.KLd();break}this.isMiniplayerActive()?Q.pipController.getWindow()&&(Q.close(!0),window.focus()):this.passEventToPlayer(A);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(A.keyCode,A.shiftKey):this.closeMiniplayer(A.keyCode,A.shiftKey)||this.passEventToPlayer(A);break;case 13:A.shiftKey&&_.fJ().resolve(_.rI).activate(A);break;default:this.passEventToPlayer(A)}}};
_.d.onKeyUpEvent=function(A){if(!this.ignoreKeyEvent(A))if(_.K("web_speedmaster_spacebar_control")&&A.keyCode===32)this.handlePlayerSpaceKey(A,!0);else{var Q=this.getPlayerManager();Q&&(Q=Q.getPlayer())&&Q.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code)}};
_.d.getPlayerManager=function(){var A=_.BL(),Q=_.fJ().resolve(_.bu(_.F7));return A&&Q&&Q.isOnWatch()?A:null};
_.d.passEventToPlayer=function(A,Q){var b=this,f,a,T,G;return _.B(function(p){if(p.nextAddress==1){if(!_.K("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&b.isMiniplayerActive())f=_.fJ().resolve(_.zb).getPlayerElement();else if(b.inlinePreviewIsActive){if(a=_.Pn(b.hostElement,"yt-get-inline-preview-player-action"),(T=a)==null?0:T[0])f=a[0]}else f=_.BL();return f?p.yield(f.getPlayerPromise(),3):p.jumpTo(0)}G=p.yieldResult;Q?G.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,
A.key,A.code):G.handleGlobalKeyDown(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code,A.repeat);A.keyCode!==38&&A.keyCode!==40&&gM(A.keyCode,A.shiftKey,b.isShortsPage);_.Oi(p)})};
_.d.focusSearchBox=function(){_.Bn(this.hostElement,"yt-focus-searchbox")};
_.d.openHotkeyDialog=function(){_.Bn(this.hostElement,"yt-open-hotkey-dialog")};
_.d.isMiniplayerActive=function(){return _.fJ().resolve(_.zb).isMiniplayerActive()};
_.d.closeMiniplayer=function(A,Q){return this.isMiniplayerActive()?(_.fJ().resolve(_.zb).close(),gM(A,Q,this.isShortsPage),!0):!1};
_.d.toggleTheaterMode=function(A,Q){var b=_.zZ(_.QK().getState()),f=this.getPlayerManager(),a=_.K("disable_theater_mode_keyboard")||_.Ep("START_IN_FULL_WINDOW_MODE");f&&!a&&(b=!b,_.aF()&&_.K("external_fullscreen")&&(b=!0),_.pD(this.hostElement,"yt-toggle-theater-mode",[b]),gM(A,Q,this.isShortsPage))};
_.d.toggleMiniplayer=function(A,Q){var b=this.getPlayerManager();if(this.isMiniplayerActive()){var f;((f=_.fJ().resolve(_.bu(_.F7)))==null?0:f.isOnWatch())?_.fJ().resolve(_.zb).close(!0):_.cu(_.fJ().resolve(_.zb));gM(A,Q,this.isShortsPage)}else b&&(_.pD(this.hostElement,"yt-activate-miniplayer-from-watch-action"),gM(A,Q,this.isShortsPage))};
_.d.handlePlayerSpaceKey=function(A,Q){var b=!!_.BL()||this.isMiniplayerActive();b=_.K("disable_space_scroll_fix")||b;_.K("global_spacebar_pause")&&!this.isKeyBoardInUse()&&b&&(A.preventDefault(),this.passEventToPlayer(A,Q))};
_.d.isPresentingTheaterMode=function(){return _.K("web_watch_enable_tm_esc_key")?_.zZ(_.QK().getState())&&!_.aF():!1};
Gi.prototype.onMiniplayerActiveChange=Gi.prototype.onMiniplayerActiveChange;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Gi.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Gi.prototype,"ytdReduxBehavior",void 0);_.E([_.C({selector:_.xkF}),_.c("design:type",Boolean)],Gi.prototype,"inlinePreviewIsActive",void 0);_.E([_.C({selector:_.TCW}),_.c("design:type",Boolean)],Gi.prototype,"isShortsPage",void 0);
_.E([_.C({selector:_.WO}),_.c("design:type",Boolean)],Gi.prototype,"miniplayerIsActive",void 0);_.E([_.iN("miniplayerIsActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Gi.prototype,"onMiniplayerActiveChange",null);_.E([_.h({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Gi);_.W(Gi,"yt-hotkey-manager",void 0,{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var B9=function(){var A=_.q.apply(this,arguments)||this;A.loopStateEntityKey_=null;A.playlistLoopStateEntity_=null;A.isShuffleNextPlaylist=!1;A.PLAYER_EVENTS_=new Map;A.playerListenersSetup_=!1;A.videoSkipJob_=0;A.canAutoAdvance_=!1;A.playerManager_=null;A.TEST_ONLY={};return A};
_.O(B9,_.q);_.d=B9.prototype;_.d.ready=function(){_.fJ().addProvider({provide:_.u$,useValue:this.hostElement})};
_.d.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_)};
_.d.attached=function(){document.addEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish_))};
_.d.detached=function(){document.removeEventListener("yt-navigate-start",_.lN(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.lN(this,this.onYtNavigateFinish_))};
_.d.updatePlaylistEventListeners=function(A,Q){Q&&!this.playerListenersSetup_?(this.playerManager_=A,this.registerPlaylistEventListeners_(A)):!Q&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(A))};
_.d.setPlayer=function(A){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=A};
_.d.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.d.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.d.registerPlaylistEventListeners_=function(A){var Q=this;A.getPlayerPromise().then(function(b){Q.playerListenersSetup_||(Q.ytPlayerListenerBehavior.listenToPlayerEvents(b,Q.PLAYER_EVENTS_),Q.playerListenersSetup_=!0)})};
_.d.removePlaylistEventListeners_=function(A){var Q=this;A.getPlayerPromise().then(function(b){Q.playerListenersSetup_&&(Q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,Q.PLAYER_EVENTS_),Q.playerListenersSetup_=!1)})};
_.d.setPlaylistComponent=function(A){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.lN(this,this.onPlaylistYtNavigate_)),A&&(A.data&&this.playlistComponent.data&&A.data.playlistId==this.playlistComponent.data.playlistId?(A.loopOn=this.playlistComponent.loopOn,A.shuffleOn=this.playlistComponent.shuffleOn):(A.loopOn=!1,A.shuffleOn=!1),this.isShuffleNextPlaylist&&(A.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=A;this.playlistComponent.addEventListener("yt-navigate",
_.lN(this,this.onPlaylistYtNavigate_))};
_.d.setAutoplayRenderer=function(A){this.autoplayData=A};
_.d.setPlaylistData=function(A){this.currentPlaylistData_=A;_.Bn(this.hostElement,"yt-playlist-data-updated");_.j2.isEmpty(A)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(A)};
_.d.setPlayerPlaybackControlData=function(A){this.playerManager_&&this.playerManager_.updatePlayerComponents(A.playlistPanelRenderer)};
_.d.getPlaylistData=function(){return this.currentPlaylistData_};
_.d.getTempData_=function(A,Q){if(this.playlistComponent==null)return null;A={};this.playlistComponent.shuffleOn&&(A.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(A.loop_on=this.playlistComponent.loopOn);Q&&(A.autonav="1",_.fJ().resolve(_.Wz),Q=_.TD(),Q>0&&(A.lact=Q),this.playerManager_&&(Q=this.playerManager_.getPlayer())&&Q.shouldSendVisibilityState()&&(Q=Q.getVisibilityState(),Q!=0&&(A.vis=Q)));_.K("enable_unknown_lact_fix_on_html5")&&(_.fJ().resolve(_.Wz),A.lact=
_.TD());return A};
_.d.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.d.setLoopStateEntityKey_=function(A){var Q;this.loopStateEntityKey_=((Q=this.getPlaylistLoopData_(A))==null?void 0:Q.playlistLoopStateEntityKey)||null};
_.d.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.d.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.d.skipVideo=function(){var A=this,Q=_.K("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||Q)Q=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.o$(_.j7,function(){A.onPlaylistNext();A.videoSkipJob_=0},Q)};
_.d.cancelVideoSkip=function(){this.videoSkipJob_&&(_.j7.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.d.isInBackground_=function(){var A=window.document.visibilityState;return!(!A||A=="visible")};
_.d.onPlaylistIndex_=function(A){this.playlistComponent&&(A=this.playlistComponent.data.contents[A].playlistPanelVideoRenderer.navigationEndpoint,_.Bn(this.hostElement,"yt-navigate",{endpoint:A,tempData:this.getTempData_(A)}))};
_.d.onPlayerStateChange_=function(A){if(A=A==0&&this.playlistComponent&&this.canAutoAdvance_)A=_.dl.getInstance(),A=!(A.autonavState_===3?A.autonavPauseReason_&&A.autonavPauseReason_.inputBoxFocus===!0:A.autonavState_===1&&A.disabledAutonavPauseReason_&&A.disabledAutonavPauseReason_.inputBoxFocus===!0);A&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.d.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.d.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.d.navigateToAutoplayWatchEndpoint_=function(A,Q,b){var f=this.playlistComponent.data.currentIndex,a=this.getNumPlayableVideos_();A=="NORMAL"&&Q=="autoplayVideo"&&f+1>=a&&b||!(A=this.getVideoEndpoint_(A,Q))||(b=this.getTempData_(A,b),_.Bn(this.hostElement,"yt-navigate",{endpoint:A,tempData:b}))};
_.d.getNumPlayableVideos_=function(){for(var A=0,Q=_.F(this.playlistComponent.data.contents||[]),b=Q.next();!b.done;b=Q.next())b.value.playlistPanelVideoRenderer&&(A+=1);return A};
_.d.getVideoEndpoint_=function(A,Q){if(this.autoplayData&&this.autoplayData.sets)for(var b=0,f=this.autoplayData.sets.length;b<f;b++){var a=this.autoplayData.sets[b];if(a.mode==A){if(a[Q])return a[Q];break}}else A=new _.IO("AutoplayData is undefined in playlist manager","Mode: "+A+" endpoint: "+Q),_.Wv(A)};
_.d.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.d.onPlaylistYtNavigate_=function(A){if(A.detail.endpoint){A.stopPropagation();var Q=A.detail;Q.tempData=this.getTempData_(A.detail.endpoint);_.Bn(this.hostElement,"yt-navigate",Q)}};
_.d.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.d.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.d.playlistLoopStateEntityChanged_=function(A){var Q=this,b,f,a;return _.B(function(T){if(T.nextAddress==1){if(!A)return T.return();b=A.state==="PLAYLIST_LOOP_STATE_ONE";return Q.playerManager_?T.yield(Q.playerManager_.getPlayerPromise(),3):T.jumpTo(2)}T.nextAddress!=2&&(f=T.yieldResult,f.setLoopVideo(b));a=A.state==="PLAYLIST_LOOP_STATE_ALL";Q.playlistComponent&&(Q.playlistComponent.loopOn=a);_.Oi(T)})};
_.d.getPlaylistLoopData_=function(A){var Q,b;if(A=A==null?void 0:(Q=A.playlistButtons)==null?void 0:(b=Q.menuRenderer)==null?void 0:b.topLevelButtons)for(Q=_.F(A),b=Q.next();!b.done;b=Q.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.playlistLoopButtonRenderer};
_.d.getLoopStateCommand_=function(A){var Q=this.getPlaylistData(),b;Q=((b=this.getPlaylistLoopData_(Q))==null?void 0:b.states)||[];var f;A=(f=_.V(Q[A?1:2],_.Iuy))==null?void 0:f.button;var a;return(a=_.V(A,_.wE))==null?void 0:a.command};
_.d.onPlayerLoopChange_=function(A){this.playlistLoopStateEntity_&&(A?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(A=this.getLoopStateCommand_(A))&&this.ytComponentBehavior.resolveCommand(A)};
_.d.onSleepTimerSettingsChanged_=function(A){this.canAutoAdvance_=A!=="End of video"};
B9.prototype.onPlaylistLoopStateEntityChanged=B9.prototype.onPlaylistLoopStateEntityChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],B9.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.mx.YtPlayerListenerBehavior),_.c("design:type",_.AC)],B9.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],B9.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],B9.prototype,"loopStateEntityKey_",void 0);
_.E([_.C({selectorArgs:["loopStateEntityKey_"],selector:_.caF}),_.c("design:type",Object)],B9.prototype,"playlistLoopStateEntity_",void 0);_.E([_.iN("playlistLoopStateEntity_"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],B9.prototype,"onPlaylistLoopStateEntityChanged",null);_.E([_.h({disableElementRegistration:!0,is:"yt-playlist-manager"})],B9);_.W(B9,"yt-playlist-manager",void 0,{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var hpl,Wtx=function(){if(hpl!==void 0)return hpl;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return hpl=A};var ph=function(){var A=_.q.apply(this,arguments)||this;A.lastCallback=null;A.getAccountLinkPromises={};A.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);A.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return A};
_.O(ph,_.q);_.d=ph.prototype;_.d.getLocation=function(){return window.location.href};
_.d.getCompletionUrl=function(){return _.QI(this.getLocation())};
_.d.containsRedirectState=function(A){return(A=_.jO(_.Ja4(A)))?(new URLSearchParams(A)).get("redirect_state")!==null:!1};
_.d.createGalConfig=function(A,Q){var b=new NAq;A=b=Q?this.getPopupOrRedirectSetting(b,_.vG("LINK_API_KEY"),_.vG("LINK_API_KEY_REDIRECT"),A):sI7(b,_.vG("LINK_API_KEY"));A.authUser=_.vG("SESSION_INDEX")||0;A.supportedFlows=new Set([4]);return A.build()};
_.d.getPopupOrRedirectSetting=function(A,Q,b,f){this.isGalInteractionPopupMode(f)?(A.interactionMode=0,A=sI7(A,Q)):(A.interactionMode=1,Q=this.getCompletionUrl(),A.completionUrl=Q,A=sI7(A,b));return A};
_.d.isGalInteractionPopupMode=function(A){if(this.redirectModeProviderAllowlist.has(A))switch(A){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.d.getStatusEntityKeyForProviderId=function(A){return _.LO(A+":all","accountLinkStatusEntity")};
_.d.findNestedPropValue=function(A,Q){var b=!1,f=null;JSON.stringify(A,function(a,T){b||a!==Q||(b=!0,f=T);return b?null:T});
return f};
_.d.findAccountLinkButtonViewModel=function(A,Q){var b=null,f=!1;JSON.stringify(A,function(a,T){f||T.accountLinkStatusEntityKey!==Q||T.accountLinkStatusSecondaryEntityKey||(f=!0,b=T);return f?null:T});
return b};
_.d.executeLinkingSuccessOrFailureCommands=function(A,Q,b){var f=null,a;(Q==null?0:(a=Q.url)==null?0:a.includes("account_sharing"))?f=Q==null?void 0:Q.response:f=Q==null?void 0:Q.response;(Q=this.findAccountLinkButtonViewModel(f,A))?(A=b?this.findNestedPropValue(Q,"onSuccessCommand"):this.findNestedPropValue(Q,"onFailureCommand"))?_.MB([A],this.hostElement):_.wN(Error("fl")):_.wN(Error("gl`"+A))};
_.d.handleInitializeRequest=function(A,Q){var b=this,f=V$x(this.createGalConfig(A,!0));this.containsRedirectState(this.getLocation())?M$d(A,f.config,f.galService).then(function(a){var T=b.getStatusEntityKeyForProviderId(A);if(a.statusCode===1)Q&&b.executeLinkingSuccessOrFailureCommands(T,Q,!0),a=b.getLocation().indexOf("#"),a!==-1&&window.history.pushState(null,"",b.getLocation().substring(0,a));else return Q&&b.executeLinkingSuccessOrFailureCommands(T,Q,!1),Promise.reject(Error(a.statusMessage))}).catch(function(a){_.Wv(a);
_.R4("gamingAccountLinkStatusChanged",{serviceId:A,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(a)}):this.getAccountLinkPromises[A]=f.startLinkingSession({serviceId:A})};
_.d.handleAccountLinkCommand=function(A){_.V(A,WdM)&&this.handleLinkRequest(_.V(A,WdM))};
_.d.handleLinkRequest=function(A){var Q=this,b=A.thirdPartyId;if(b)if(this.isGalInteractionPopupMode(b)){var f=function(){Q.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onFailureCommand)},a=function(){Q.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onSuccessCommand)};
this.lastCallback=a;this.getAccountLinkPromises[b].then(function(T){tEO(T).then(function(G){G.statusCode===1?a():f()})}).catch(function(){f()})}else this.getAccountLinkPromises[b].then(function(T){tEO(T).then(function(G){if(G.statusCode!==1)return Promise.reject(Error(G.statusMessage))})}).catch(function(T){_.Wv(T);
_.R4("gamingAccountLinkStatusChanged",{serviceId:b,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(T)})};
_.d.closeAndFire=function(A,Q){_.pD(this.hostElement,"yt-close-popup-action",[A]);Q&&_.MB([Q],this.hostElement)};
_.d.handleAccountUnlinkCommand=function(A){_.V(A,v3M)&&this.handleUnlinkRequest(_.V(A,v3M))};
_.d.handleUnlinkRequest=function(A){var Q=this,b=A.thirdPartyId;if(b){var f=function(){Q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onFailureCommand)},a=function(){Q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onSuccessCommand)};
this.lastCallback=a;var T=V$x(this.createGalConfig(b,!1));this.unlinkUserGal(T,b).then(function(G){G.statusCode===1?a():f()}).catch(function(){f()})}};
_.d.unlinkUserGal=function(A,Q){return A.deleteLink(Q)};
_.d.handleLogAccountLinkingEventCommand=function(A){_.K("enable_gel_log_commands")&&_.V(A,E3s)&&(A=_.V(A,E3s).event)&&_.R4("gamingAccountLinkStatusChanged",A)};
_.Qr.Object.defineProperties(ph,{template:{configurable:!0,enumerable:!0,get:function(){return Wtx()}}});
_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],ph.prototype,"ytOpenPopupBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ph.prototype,"ytActionHandlerBehavior",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-third-party-manager"})],ph);_.W(ph,"ytd-third-party-manager",function(){return Wtx()},{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var vKn,EKt=function(){if(vKn!==void 0)return vKn;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return vKn=A};var P9=function(){var A=_.q.apply(this,arguments)||this;A.currentPage=void 0;A.renderLoadingStateJobId=0;A.updatePageDataJobId=0;A.pageDisposeJobsets=new WeakMap;A.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"};A.shouldApplyLockupToWatchTransition=_.K("web_thumbnail_to_watch_transition");A.shouldApplySlideTransition=_.Br("web_page_transition_type")==="slide"||_.K("enable_plj_landing_page");A.shouldApplyLearningJourneyTransition=_.K("enable_plj_landing_page");A.TEST_ONLY=void 0;return A};
_.O(P9,_.q);_.d=P9.prototype;_.d.ready=function(){var A=_.fJ();A.addProvider({provide:_.F7,useValue:this});A.addProvider({provide:_.B11,useValue:this})};
_.d.created=function(){this.pagePool=new Ptl;this.contextSwitcher=new I_N};
_.d.attached=function(){_.Bn(this.hostElement,"attached");var A=_.fJ().resolve(_.bu(_.WY));A&&(this.contextSwitcher.JSC$19650_networkService_=A);this.viewTransitionManager=_.fJ().resolve(_.Hg)};
_.d.getPageOffset=function(A){return A.getScrollTop()};
_.d.setPageOffset=function(A,Q){try{A.setScrollTop(Q)}catch(b){}};
_.d.setPageOffsetForNavigation=function(A,Q){_.Bn(this.hostElement,"yt-navigate-set-page-offset",{page:A,offset:Q===void 0?0:Q})};
_.d.pauseActiveContext=function(){var A=this.contextSwitcher;A.activeContext_&&A.activeContext_.pause()};
_.d.getModuleNameForType=function(A){return A==="watch"?_.K("kevlar_watch_fixie")?"watchFixie":_.K("kevlar_watch_grid")?"watchGrid":"watchFlexy":A==="shorts"||A==="search"?A:"browse"};
_.d.attachPage=function(A){var Q,b=!_.K("pc_is_attached_ks")&&(A==null?void 0:(Q=A.polymerController)==null?void 0:Q.isAttached);if(!A.isAttached&&!b)try{_.Bj(this.hostElement).appendChild(A)}catch(a){var f;_.Wv(new _.IO("Error attaching page element for component",{origin:(f=this.currentPage)==null?void 0:f.is,component:A.is}))}};
_.d.setActivePage=function(A){var Q=this,b=!1,f=function(){var a=Q.isOnWatch(),T=Q.currentPage;if(A)if(A!==Q.currentPage){T&&(T.hidden=!0,T.active=!1,T.removeAttribute("role"));Q.currentPage=A;var G,p=_.OY((G=Q.data)==null?void 0:G.endpoint);T&&_.Bn(Q.hostElement,"yt-page-type-changed",{oldPageType:T.is,newPageType:A.is,newPageSubtype:p});_.m5().dispatch(_.G7({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:A.is}));_.m5().dispatch(_.G7({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:p||""}));A.hidden=
!1;Q.attachPage(A);A.active=!0;A.setAttribute("role","main");T&&Q.setPageOffsetForNavigation(A,0);_.K("kevlar_remove_page_dom_on_switch")&&!a&&T&&_.Bj(Q.hostElement).removeChild(T)}else b=!0;else a=new _.IO("Unable to set active page",T?T.is:"unknown origin",(p=Q.data)==null?void 0:p.endpoint),_.en(a)};
this.shouldRunBrowseTransition(this.currentPage,A)?ZSn(this.viewTransitionManager,f):this.shouldRunLearningJourneyTransition(this.currentPage,A)?DlF(this.viewTransitionManager,f):f();return b};
_.d.shouldRunBrowseTransition=function(A,Q){return this.shouldApplySlideTransition&&(A==null?void 0:A.is)==="ytd-browse"&&(Q==null?void 0:Q.is)==="ytd-browse"&&A!==Q};
_.d.shouldRunLearningJourneyTransition=function(A,Q){return this.shouldApplyLearningJourneyTransition&&(A==null?void 0:A.is)==="ytd-browse"&&((Q==null?void 0:Q.is)==="ytd-watch-learning-journey"||(Q==null?void 0:Q.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.d.shouldRunWatchNextLoadedTransition=function(A,Q){return this.viewTransitionManager&&A.is==="ytd-watch-flexy"&&Q};
_.d.updatePageData=function(A){var Q=this,b=this.data;this.updatePageDataJobId&&_.j7.cancelJob(this.updatePageDataJobId);this.data=A;return new _.M3(function(f){var a=function(){A.filler?Q.performDataUpdate(A,b):bSl(function(){Q.performDataUpdate(A,b)});
var P=_.y2();_.Yg(P,"cr")||P.processSignal("cr");f()},T=function(){A&&A.page==="watch"?Q.updatePageDataJobId=_.o$(_.j7,a):a()};
if(_.K("kevlar_enable_mss_page_modules_client")&&A){var G=_.fJ().resolve(_.u6),p=Q.getModuleNameForType(A.page);(G=wiq(G,[p]))?G.then(T):T()}else T()})};
_.d.isDownloadsPage=function(A){var Q,b;return(A==null?void 0:(Q=A.endpoint)==null?void 0:(b=Q.browseEndpoint)==null?void 0:b.browseId)==="FEdownloads"};
_.d.setPlayerSyncInterval=function(A){var Q;return _.B(function(b){if(b.nextAddress==1)return b.yield(_.fJ().resolve(_.Uh),2);Q=b.yieldResult;Q.setUpPositionSyncInterval(A);_.Oi(b)})};
_.d.performDataUpdate=function(A,Q){_.K("kevlar_early_popup_close")||_.pD(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var b=!A.filler;b&&(_.hQ("lps"),_.K("config_age_report_killswitch")||ofl());var f=nj(A),a,T=!1;if(_.K("kevlar_remove_page_dom_on_switch")){var G=Q&&nj(Q);f===G&&(a=this.getCurrentPage())}a||(a=AR(this.pagePool,f));b&&TLN(this.pagePool.elementPoolPopulator,f);b&&!this.renderLoadingStateJobId&&(T=this.setActivePage(a));if(a){G=f==="watch";var p=
f==="shorts",P=f==="learning_journey_watch";_.K("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(a);if(G||p||P)a.playerData=A.playerResponse;if(p)if(_.K("web_enable_delay_shorts_sequence_call")){A.reelWatchSequenceResponse&&(a.reelWatchSequenceResponse=A.reelWatchSequenceResponse);a.currentEndpoint=A.endpoint;var U;a.isPreviousPageShorts=!!(Q==null?0:(U=Q.endpoint)==null?0:U.reelWatchEndpoint);var L,M;A.cachedSequenceParams=((L=A.endpoint)==null?void 0:(M=L.reelWatchEndpoint)==
null?void 0:M.sequenceParams)||A.cachedSequenceParams||(Q==null?void 0:Q.cachedSequenceParams);var l,J;A.cachedSequenceProvider=((l=A.endpoint)==null?void 0:(J=l.reelWatchEndpoint)==null?void 0:J.sequenceProvider)||A.cachedSequenceProvider||(Q==null?void 0:Q.cachedSequenceProvider);a.cachedSequenceParams=A.cachedSequenceParams;a.cachedSequenceProvider=A.cachedSequenceProvider}else{A.reelWatchSequenceResponse?a.reelWatchSequenceResponse=A.reelWatchSequenceResponse:A.cachedReelWatchSequenceResponse?
a.reelWatchSequenceResponse=A.cachedReelWatchSequenceResponse:_.K("web_enable_cached_reel_sequence_fix")&&a.cachedReelWatchSequenceResponse&&!a.reelWatchSequenceResponse&&(a.reelWatchSequenceResponse=a.cachedReelWatchSequenceResponse);a.currentEndpoint=A.endpoint;var n;a.isPreviousPageShorts=!!(Q==null?0:(n=Q.endpoint)==null?0:n.reelWatchEndpoint);A.cachedReelWatchSequenceResponse=A.reelWatchSequenceResponse||A.cachedReelWatchSequenceResponse||(Q==null?void 0:Q.cachedReelWatchSequenceResponse);a.cachedReelWatchSequenceResponse=
A.cachedReelWatchSequenceResponse}U=this.isDownloadsPage(A);L=this.isDownloadsPage(Q);U&&!L?this.setPlayerSyncInterval(6E5):!U&&L&&this.setPlayerSyncInterval();_.K("block_all_player_prefetch_requests")||this.preparePrefetchRequest(A,a,b,G,p,P);$lx(_.fJ().resolve(_.zb),Q,A);_.d8(_.fJ().resolve(_.Wz));_.K("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(a);b?(b=typeof a.loadPage,b==="function"?(a.pageContext=HaO(this.contextSwitcher,a,a.data!==A.response),b=function(){a.loadPage(A.response)},
this.shouldApplySlideTransition&&a.is==="ytd-browse"&&T&&(f==="learning"||this.isDifferentBrowseId(A==null?void 0:A.endpoint,Q==null?void 0:Q.endpoint))?ZSn(this.viewTransitionManager,b):this.shouldRunWatchNextLoadedTransition(a,T)?Ys7(this.viewTransitionManager,b):b()):_.hq(new _.IO("b/38014653 ",[f,
a.is,a.nodeName,b,a.isAttached,Q&&nj(Q),this.hostElement.children.length])),_.hQ("pdl")):(a.hidden=!0,A.response.filler=!0,a.data=A.response,this.attachPage(a));_.Bn(this.hostElement,"yt-page-data-updated",{pageType:f})}_.Hv(_.j7,function(){_.K("logging_avoid_blocking_during_navigation")&&_.N_i().transition("none");var t=cCl(),g=a;if(A){var e=Scs(A),x=UJN(A),D;a:{if(A.playerResponse){var w=A.playerResponse,u;if((D=w.auxiliaryUi)==null?0:(u=D.messageRenderers)==null?0:u.upsellDialogRenderer){D=w.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(A.response&&(D=A.response,(w=D.overlay)==null?0:w.upsellDialogRenderer)){D=D.overlay.upsellDialogRenderer;break a}D=void 0}var y;var a9;u=(y=A.playerResponse)==null?void 0:(a9=y.auxiliaryUi)==null?void 0:a9.messageRenderers;y=(u==null?void 0:u.enforcementMessageViewModel)||(u==null?void 0:u.bkaEnforcementMessageViewModel);y=(y==null?void 0:y.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?y:void 0;var pF;a:{if(A.response&&(a9=A.response,(pF=a9.overlay)==null?0:
pF.commandWrapperPromoRenderer)){pF=a9.overlay.commandWrapperPromoRenderer;break a}pF=void 0}x6N(t,e,x,D,y,pF,g)}})};
_.d.preparePrefetchRequest=function(A,Q,b,f,a,T){var G,p,P,U,L,M,l,J,n,t,g,e,x,D,w;return _.B(function(u){if(u.nextAddress==1)return!b||!(f||a||T)||_.K("kevlar_disable_background_prefetch")&&_.cG(_.wTy)()===0?u.return():(G=_.GG(Q))?u.yield(G.getPlayerPromise(),2):u.return();p=u.yieldResult;P=_.fJ().resolve(_.bu(_.WY));if(!P)return u.return();if(a)return U=_.Tb(_.oa),XiM(U,(L=A.endpoint)==null?void 0:L.reelWatchEndpoint,Q.reelWatchSequenceResponse,p,P),u.return();J=(M=A.response)==null?void 0:(l=M.responseContext)==
null?void 0:l.webResponseContextExtensionData;if(!J)return u.return();x=(n=A.response)==null?void 0:(t=n.contents)==null?void 0:(g=t.twoColumnWatchNextResults)==null?void 0:(e=g.autoplay)==null?void 0:e.autoplay;D=_.fJ().resolve(_.u$);w=_.Tb(_.oa);Ssd(w,J,p,P,D,x);_.Oi(u)})};
_.d.movePlayerToWatch=function(A){var Q=this,b,f;return _.B(function(a){b=AR(Q.pagePool,"watch");f=b.getPlayerContainer();A.appendTo(f);_.Oi(a)})};
_.d.movePlayerToShorts=function(A){var Q=this,b,f,a;return _.B(function(T){b=AR(Q.pagePool,"shorts");f=b.getPlayerContainer();(a=A)==null||a.appendTo(f,void 0,!0);_.Oi(T)})};
_.d.getPlayerFromWatch=function(){var A=AR(this.pagePool,"watch");return _.GG(A)};
_.d.getPlayerFromShorts=function(){var A=AR(this.pagePool,"shorts");return _.GG(A)};
_.d.startLoadingWatch=function(){var A=this,Q=AR(this.pagePool,"watch");this.renderLoadingStateJobId?(_.j7.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.K("web_watch_transition_enable_start_loading_watch_callsite")?ycq(this.viewTransitionManager,function(){A.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(Q)};
_.d.startLoadingShorts=function(){var A=AR(this.pagePool,"shorts");this.setActivePage(A)};
_.d.startLoadingLearningJourney=function(){var A=AR(this.pagePool,"learning_journey_watch");this.setActivePage(A)};
_.d.getCurrentPage=function(){return this.currentPage};
_.d.getDestinationPageType=function(){return this.destinationPageType};
_.d.getCurrentData=function(){return this.data};
_.d.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.d.isOnShorts=function(){var A;return((A=this.currentPage)==null?void 0:A.is)==="ytd-shorts"};
_.d.isWatchPage=function(A){return!!A&&(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-fixie"||A.is==="ytd-watch-grid")};
_.d.preparePage=function(A,Q){var b=this,f=function(){var G=b.pagePool.preparePage(A,b.currentPage,Q);G&&b.attachPage(G)},a=function(G){_.xk(G,Q);
_.Wv(G)};
if(_.K("kevlar_enable_mss_page_modules_client")){var T=this.getModuleNameForType(A);if(T=wiq(_.fJ().resolve(_.u6),[T])){T.then(f.bind(this)).catch(a.bind(this));return}}try{f()}catch(G){a(G)}};
_.d.lazyPrepareCriticalPages=function(A,Q){A=_.OY(Q)||A;_.K("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(A).then(this.maybePrepareWatchPage.bind(this,A)):this.maybePrepareWatchPage(A)};
_.d.maybePrepareWatchPage=function(A){A!=="watch"&&_.Hv(_.j7,this.preparePage.bind(this,"watch"))};
_.d.downloadPageModules=function(A){A=this.getModuleNameForType(A);var Q=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);Q.delete(A);var b=_.fJ().resolve(_.u6);b.JSC$18400_loadModules(A);return b.JSC$18400_loadModules.apply(b,_.ri(Q))};
_.d.renderPageLoadingState=function(A,Q){this.preparePage(A,Q);var b=AR(this.pagePool,A);b.loadingData&&(b.loadingData.endpoint=Q);b.loading=!0;this.setActivePage(b);A!=="watch"&&A!=="learning_journey_watch"||_.Bn(this.hostElement,"yt-guide-close")};
_.d.prepareForNavigation=function(A,Q){var b=this;if(this.currentPage&&this.data){var f=_.OY(Q)||A;this.destinationPageType=f;nj(this.data)==f&&_.Bn(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((A==="watch"||A==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.j7.cancelJob(this.renderLoadingStateJobId);_.fJ().resolve(_.zb).deactivate(Q);_.hy(_.j7,function(){var T=b.viewTransitionManager,G=b.currentPage;
if(T.isLockupToWatchTransitionEnabled&&T.isLockupThumbnailRegistrationEnabled&&G)if(T.registeredLockupThumbnail)T.lockupThumbnailRegisteredFromWatchEndpoint&&_.Wv(new _.IO("Lockup thumbnail already registered from watch endpoint."));else{a:{var p=_.V(Q,_.sv);if(p==null?0:p.videoId){var P="yt-lockup-view-model ."+_.BgW(p.videoId)+" yt-thumbnail-view-model";G=G.querySelectorAll(P);if(G.length===1){p=G[0];break a}G.length>1?_.Wv(new _.IO("Multiple LockupViewModel thumbnails found for videoId: "+p.videoId+
". Selector: "+P)):_.K("web_thumbnail_to_watch_transition_debug")&&_.Wv(new _.IO("No LockupViewModel thumbnail found for videoId: "+p.videoId+". Selector: "+P))}p=void 0}p&&(T.registeredLockupThumbnail=p,T.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.txx(T,p))}});
var a=this.data;this.renderLoadingStateJobId=_.hy(_.j7,function(){ycq(b.viewTransitionManager,function(){if(b.data!=a){var T=AR(b.pagePool,A);b.setActivePage(T)}else b.renderPageLoadingState(A,Q);b.renderLoadingStateJobId=0})},150)}};
_.d.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var A=new _.GW(1);this.currentPage.pageDisposeJobs.forEach(function(Q){_.BJ(A,Q)});
this.pageDisposeJobsets.set(this.currentPage,A)}};
_.d.flushPageDisposeJobset=function(A){var Q=this.pageDisposeJobsets.get(A);Q&&(Q.flushJobs(),this.pageDisposeJobsets.delete(A))};
_.d.onYtStopOldPlayer=function(A,Q){Q=Q===void 0?!1:Q;var b,f=_.pJ("kevlar_new_stop_old_player_logic_pages");if(_.K("kevlar_check_current_page_on_stop_old_player")&&(f.length===0||this.currentPage&&f.includes(this.currentPage.is)))if(this.data&&(b=nj(this.data)),nj(A)===b&&this.currentPage&&nj(this.currentPage.data)!==b)var a=_.GG(this.currentPage);else b=nj(this.data),a=AR(this.pagePool,b),a=_.GG(a);else this.data&&(b=nj(this.data),a=AR(this.pagePool,b),a=_.GG(a));if(a)if(A=nj(A),f=AR(this.pagePool,
A),f=_.GG(f),a==f)Q&&!_.K("kevlar_disable_preemptive_player_reset")&&a.resetForNewPlayback();else if(Q=b==="watch"&&A!=="watch",!Q||A==="shorts"||_.KtY()&&!k9M(this.data)&&A!=="yts-products"&&A!="mini_app"&&A!="playables")b=_.fJ().resolve(_.zb),Q&&b.isMiniplayerActive()&&b.pipController.getWindow()||a.stop()};
_.d.isDifferentBrowseId=function(A,Q){A=_.V(A,_.nT);Q=_.V(Q,_.nT);return(A==null?void 0:A.browseId)!==(Q==null?void 0:Q.browseId)};
_.Qr.Object.defineProperties(P9,{template:{configurable:!0,enumerable:!0,get:function(){return EKt()}}});
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],P9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-page-manager"})],P9);_.W(P9,"ytd-page-manager",function(){return EKt()},{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var x0t;var Xj=function(){var A=_.q.apply(this,arguments)||this;A.useListItemStyles=_.K("web_list_item_style_for_menu_items");A.systemIcons=_.K("kevlar_system_icons");return A};
_.O(Xj,_.q);_.d=Xj.prototype;_.d.ready=function(){this.hostElement.addEventListener("tap",_.lN(this,this.onEndpointTapExtra))};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){var A;(A=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.d.onEndpointTapExtra=function(A){_.Bn(this.hostElement,"iron-activate");var Q=this.data.navigationEndpoint;Q&&_.V(Q,_.YgY)&&(A.stopPropagation(),_.ST(this.hostElement,[Q],this.hostElement))};
_.d.computeIcon=function(A){return A&&A.iconType?_.K0(A.iconType):""};
_.d.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.forceUpdateStylesOnLegacyBrowsers=function(){_.K("kevlar_legacy_browsers")&&_.Uc(this.hostElement)};
Xj.prototype.forceUpdateStylesOnLegacyBrowsers=Xj.prototype.forceUpdateStylesOnLegacyBrowsers;Xj.prototype.onFocus=Xj.prototype.onFocus;_.E([_.I(_.aE),_.c("design:type",Object)],Xj.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.vMj.YtConditionalRendererBehavior),_.c("design:type",Object)],Xj.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.I(_.kZ.YtEndpointBehavior),_.c("design:type",Object)],Xj.prototype,"ytEndpointBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Xj.prototype,"data",void 0);_.E([_.C({computed:"computeIcon(data.icon)",value:""}),_.c("design:type",String)],Xj.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],Xj.prototype,"useIcons",void 0);_.E([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.c("design:type",Boolean)],Xj.prototype,"hasSeparator",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Xj.prototype,"useListItemStyles",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Xj.prototype,"systemIcons",void 0);_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Xj.prototype,"onFocus",null);_.E([_.iN("useIcons","hasSeparator"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Xj.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.W(Xj,"ytd-menu-navigation-item-renderer",function(){if(x0t===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);x0t=A}A=x0t;return A},{mode:1});var cSq;var zpM=_.sr(_.JQ("DOWNLOAD",{},"Download")),wmx=_.sr(_.JQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),uRx=_.sr(_.JQ("RETRY",{},"Retry")),Z_t=_.sr(_.JQ("PAUSE_DOWNLOADING",{},"Pause downloading")),ySK=_.sr(_.JQ("RESUME_DOWNLOAD",{},"Resume download")),Sa=function(){var A=_.q.apply(this,arguments)||this;A.primaryText=zpM;A.primaryIconType="OFFLINE_DOWNLOAD";A.hasSecondaryContent=!1;A.hasSeparator=!1;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.isHidden=!1;A.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return A};
_.O(Sa,_.q);_.d=Sa.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){this.primaryEntry.focus()};
_.d.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.d.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.d.getRemoveAction=function(){return"ACTION_REMOVE"};
_.d.sendOfflineAction=function(A){var Q=this.data.serviceEndpoint;if(Q){var b=_.V(Q,_.n6);b&&A&&(b.action=A);this.ytComponentBehavior.resolveCommand(Q)}};
_.d.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=zpM,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=zpM;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=uRx;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=wmx;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=ySK;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=wmx;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Z_t;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=wmx;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=wmx;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=zpM,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.d.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.d.isSecondaryEntryHidden=function(A,Q){return A?!0:!Q};
_.d.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
Sa.prototype.showHideButton=Sa.prototype.showHideButton;Sa.prototype.onTransferStateChange=Sa.prototype.onTransferStateChange;Sa.prototype.onFocus=Sa.prototype.onFocus;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Sa.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Sa.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Sa.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Sa.prototype,"primaryText",void 0);_.E([_.C(),_.c("design:type",String)],Sa.prototype,"primaryIconType",void 0);_.E([_.C(),_.c("design:type",String)],Sa.prototype,"primaryAction",void 0);_.E([_.C(),_.c("design:type",Object)],Sa.prototype,"secondaryText",void 0);_.E([_.C(),_.c("design:type",String)],Sa.prototype,"secondaryIconType",void 0);
_.E([_.C(),_.c("design:type",String)],Sa.prototype,"secondaryAction",void 0);_.E([_.C(),_.c("design:type",Object)],Sa.prototype,"hasSecondaryContent",void 0);_.E([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.c("design:type",Object)],Sa.prototype,"hasSeparator",void 0);_.E([_.C({selector:_.xL,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.c("design:type",String)],Sa.prototype,"transferState",void 0);
_.E([_.C({selector:_.Tkb,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.c("design:type",Object)],Sa.prototype,"isVideoDeletedByUser",void 0);_.E([_.C(),_.c("design:type",Object)],Sa.prototype,"isHidden",void 0);_.E([_.C({selector:_.sRA,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.c("design:type",Object)],Sa.prototype,"offlineabilityState",void 0);_.E([_.V1("#primary-entry"),_.c("design:type",Object)],Sa.prototype,"primaryEntry",void 0);
_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sa.prototype,"onFocus",null);_.E([_.I_("transferState","isVideoDeletedByUser"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sa.prototype,"onTransferStateChange",null);_.E([_.I_("offlineabilityState"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Sa.prototype,"showHideButton",null);
_.W(Sa,"ytd-menu-service-item-download-renderer",function(){if(cSq===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);cSq=A}A=cSq;return A},{mode:1});var Y9l;var UD=function(){var A=_.q.apply(this,arguments)||this;A.useIcons=!1;A.systemIcons=_.K("kevlar_system_icons");A.useListItemStyles=_.K("web_list_item_style_for_menu_items");return A};
_.O(UD,_.q);_.d=UD.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){var A;(A=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.d.onTap=function(){_.Pn(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var A=this.data.serviceEndpoint,Q=this.data.command;if(A){var b,f=(b=this.data)==null?void 0:b.trackingParams;b=!!_.V(A,_.RtL);f&&b&&_.QK().dispatch(_.G7({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:f}}));this.ytComponentBehavior.resolveCommand(A)||_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}})}Q&&(this.ytComponentBehavior.resolveCommand(Q)||_.ST(this.hostElement,
[Q],this.hostElement))};
_.d.computeIcon=function(A){return A&&A.iconType?_.K0(A.iconType):""};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
_.d.forceUpdateStylesOnLegacyBrowsers=function(){_.K("kevlar_legacy_browsers")&&_.Uc(this.hostElement)};
_.d.computeIsSelected=function(){var A;return!((A=this.data)==null||!A.isSelected)};
UD.prototype.forceUpdateStylesOnLegacyBrowsers=UD.prototype.forceUpdateStylesOnLegacyBrowsers;UD.prototype.onTap=UD.prototype.onTap;UD.prototype.onFocus=UD.prototype.onFocus;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],UD.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],UD.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.vMj.YtConditionalRendererBehavior),_.c("design:type",Object)],UD.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],UD.prototype,"data",void 0);_.E([_.C({computed:"computeIcon(data.icon)",value:""}),_.c("design:type",String)],UD.prototype,"icon",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UD.prototype,"useIcons",void 0);
_.E([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.c("design:type",Boolean)],UD.prototype,"hasSeparator",void 0);_.E([_.C({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.c("design:type",Boolean)],UD.prototype,"isSelected",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UD.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],UD.prototype,"useListItemStyles",void 0);
_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UD.prototype,"onFocus",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],UD.prototype,"onTap",null);_.E([_.iN("useIcons","hasSeparator"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UD.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.W(UD,"ytd-menu-service-item-renderer",function(){if(Y9l===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);Y9l=A}A=Y9l;return A},{mode:2});var D0x;var Lh=function(){return _.q.apply(this,arguments)||this};
_.O(Lh,_.q);_.d=Lh.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onDataChanged=function(){var A=this;_.mL(this,function(){A.postbox.openDialog();A.focus();_.Bn(A.hostElement,"yt-refit")})};
_.d.focus=function(){this.postbox.focus()};
_.d.closePopup=function(){_.pD(this.hostElement,"yt-close-popup-action")};
_.d.onYtCommentboxDismiss=function(){this.closePopup()};
Lh.prototype.onYtCommentboxDismiss=Lh.prototype.onYtCommentboxDismiss;Lh.prototype.onDataChanged=Lh.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Lh.prototype,"data",void 0);_.E([_.C({value:function(){return _.JQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.c("design:type",String)],Lh.prototype,"closeButtonAriaLabel",void 0);_.E([_.V1("#postbox"),_.c("design:type",Object)],Lh.prototype,"postbox",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lh.prototype,"onDataChanged",null);_.E([_.Kc("yt-commentbox-dismiss"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Lh.prototype,"onYtCommentboxDismiss",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Lh);
_.W(Lh,"ytd-backstage-post-dialog-popup-renderer",function(){if(D0x!==void 0)return D0x;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return D0x=A},{mode:1});var $0n;var Ma=function(){return _.q.apply(this,arguments)||this};
_.O(Ma,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ma.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Ma);
_.W(Ma,"ytd-sender-id-section-renderer",function(){if($0n!==void 0)return $0n;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return $0n=A},{mode:1});var Nwx;var sZO;var m07;var lX=function(){return _.q.apply(this,arguments)||this};
_.O(lX,_.q);lX.prototype.closePopup=function(){_.pD(this.hostElement,"yt-close-popup-action")};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lX.prototype,"data",void 0);_.E([_.Ec({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],lX);
_.W(lX,"yt-community-post-section-renderer",function(){if(m07===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;sZO===void 0&&(sZO=document.createElement("template"));var f=sZO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);m07=A}A=m07;return A},{mode:2});var AZd;var Qux;var b8n;var fnx;var anN;var Tqd;var Kh=function(){return _.q.apply(this,arguments)||this};
_.O(Kh,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Kh.prototype,"data",void 0);_.E([_.Ec({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Kh);
_.W(Kh,"yt-share-start-time-with-context-renderer",function(){if(Tqd===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;anN===void 0&&(anN=document.createElement("template"));var f=anN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Tqd=A}A=Tqd;return A},{mode:2});var iX=function(){return _.q.apply(this,arguments)||this};
_.O(iX,_.q);iX.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],iX.prototype,"data",void 0);_.E([_.Ec({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],iX);
_.W(iX,"yt-share-panel-title-v15-renderer",function(){if(fnx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;b8n===void 0&&(b8n=document.createElement("template"));var f=b8n;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);fnx=A}A=fnx;return A},{mode:2});var JR=function(){return _.q.apply(this,arguments)||this};
_.O(JR,_.q);JR.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],JR.prototype,"data",void 0);_.E([_.Ec({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],JR);
_.W(JR,"yt-share-panel-header-renderer",function(){if(Qux===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;AZd===void 0&&(AZd=document.createElement("template"));var f=AZd;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Qux=A}A=Qux;return A},{mode:2});var don;var FGO;var Vo=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-open-popup-action":"onOpen"};return A};
_.O(Vo,_.q);_.d=Vo.prototype;_.d.attached=function(){this.onOpen()};
_.d.updateTimeSecs=function(A){this.currentTimeSecs=A};
_.d.computeTimeString=function(A){A=A.toString();var Q=Math.floor(Number(A)/3600),b=Math.floor(Number(A)%3600%60);return(Q>0?Q+":":"")+_.FC(Math.floor(Number(A)%3600/60),Q>0?2:1)+":"+_.FC(b,2)};
_.d.computeTimeStringA11y=function(A){A=_.Fde({seconds:A});var Q=A.hours===void 0?0:A.hours,b=A.minutes===void 0?0:A.minutes,f=A.seconds===void 0?0:A.seconds;A=[];if(Q>0){var a=pRs().format({hours:Q});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.ug)||Q>9999)a=a.replace(Q.toString(),_.G1J(Q)),_.ug==="km"&&(a=a.replace(".",","));A.push(a)}b>0&&A.push(pRs().format({minutes:b}));f>0&&A.push(pRs().format({seconds:f}));Q="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");b=_.ug==
"am"?"{0}\u1363 ":_.ug=="fa"?"{0}\u060c\u200f ":_.ug=="my"?"{0} - ":_.ug=="ne"?"{0},":_.ug=="th"?"{0} ":_.ug=="ur"?"{0}\u060c ":_.ug=="ar"||_.ug=="ar-XB"?"{0} \u0648":_.ug=="ja"||_.ug=="zh-CN"||_.ug=="zh-HK"||_.ug=="zh-TW"?"{0}\u3001":"{0}, ";f=_.ug=="am"?"\u1363 ":_.ug=="fa"?"\u060c\u200f ":_.ug=="my"?" - ":_.ug=="th"?" ":_.ug=="ur"?"\u060c ":_.ug=="ar"||_.ug=="ar-XB"?" \u0648":_.ug=="ja"||_.ug=="zh-CN"||_.ug=="zh-HK"||_.ug=="zh-TW"?"\u3001":", ";a=_.ug=="am"?" \u12a5\u1293 {0}":_.ug=="as"?" \u0986\u09f0\u09c1 {0}":
_.ug=="az"?" v\u0259 {0}":_.ug=="bn"?" \u098f\u09ac\u0982 {0}":_.ug=="cs"?" a\u00a0{0}":_.ug=="de"?" und {0}":_.ug=="el"?" \u03ba\u03b1\u03b9 {0}":_.ug=="eu"?" eta {0}":_.ug=="fa"?"\u060c \u0648 {0}":_.ug=="fil"?", at {0}":_.ug=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.ug=="hi"?", \u0914\u0930 {0}":_.ug=="hu"?" \u00e9s {0}":_.ug=="hy"?" \u0587 {0}":_.ug=="id"?", dan {0}":_.ug=="iw"?" \u05d5-{0}":_.ug=="ja"?"\u3001{0}":_.ug=="ka"?" \u10d3\u10d0 {0}":_.ug=="km"?" \u1793\u17b7\u1784 {0}":_.ug=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.ug=="ko"?" \ubc0f {0}":_.ug=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.ug=="lt"?" ir {0}":_.ug=="lv"?" un {0}":_.ug=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.ug=="mr"?" \u0906\u0923\u093f {0}":_.ug=="ms"?" dan {0}":_.ug=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.ug=="ne"?" \u0930 {0}":_.ug=="or"?", \u0b13 {0}":_.ug=="pa"?" \u0a05\u0a24\u0a47 {0}":_.ug=="ro"?" \u0219i {0}":_.ug=="si"?", \u0dc3\u0dc4 {0}":_.ug=="sk"?" a {0}":_.ug=="sl"?" in {0}":_.ug=="sq"?" dhe {0}":_.ug=="sv"?" och {0}":
_.ug=="sw"?" na {0}":_.ug=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.ug=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.ug=="th"?" \u0e41\u0e25\u0e30{0}":_.ug=="tr"?" ve {0}":_.ug=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.ug=="uz"?" va {0}":_.ug=="vi"?" v\u00e0 {0}":_.ug=="zh-HK"?"\u53ca{0}":_.ug=="zu"?", ne-{0}":_.ug=="af"||_.ug=="nl"?" en {0}":_.ug=="ar"||_.ug=="ar-XB"?" \u0648{0}":_.ug=="be"||_.ug=="uk"?" \u0456 {0}":_.ug=="en-GB"||_.ug=="en-IN"?" and {0}":_.ug=="en"||_.ug=="en-XA"?
", and {0}":_.ug=="et"||_.ug=="fi"?" ja {0}":_.ug=="fr"||_.ug=="fr-CA"?" et {0}":_.ug=="zh-CN"||_.ug=="zh-TW"?"\u548c{0}":_.ug=="da"||_.ug=="is"||_.ug=="no"?" og {0}":_.ug=="es"||_.ug=="es-419"||_.ug=="es-US"?" y {0}":_.ug=="kk"||_.ug=="lo"||_.ug=="mn"?", {0}":_.ug=="bg"||_.ug=="mk"||_.ug=="ru"||_.ug=="sr"?" \u0438 {0}":_.ug=="gl"||_.ug=="it"||_.ug=="pt-BR"||_.ug=="pt-PT"?" e {0}":" i {0}";var T=_.ug=="am"?"{0} \u12a5\u1293 {1}":_.ug=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.ug=="az"?"{0} v\u0259 {1}":
_.ug=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.ug=="de"?"{0} und {1}":_.ug=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.ug=="eu"?"{0} eta {1}":_.ug=="fa"?"{0} \u0648 {1}":_.ug=="fil"?"{0} at {1}":_.ug=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.ug=="hi"?"{0} \u0914\u0930 {1}":_.ug=="hu"?"{0} \u00e9s {1}":_.ug=="hy"?"{0} \u0587 {1}":_.ug=="iw"?"{0} \u05d5-{1}":_.ug=="ja"?"{0}\u3001{1}":_.ug=="ka"?"{0} \u10d3\u10d0 {1}":_.ug=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.ug=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.ug=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.ug=="ko"?"{0} \ubc0f {1}":_.ug=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.ug=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.ug=="lt"?"{0} ir {1}":_.ug=="lv"?"{0} un {1}":_.ug=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.ug=="mn"?"{0}, {1}":_.ug=="mr"?"{0} \u0906\u0923\u093f {1}":_.ug=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.ug=="ne"?"{0} \u0930 {1}":_.ug=="or"?"{0} \u0b13 {1}":_.ug=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.ug=="ro"?"{0} \u0219i {1}":_.ug==
"si"?"{0} \u0dc3\u0dc4 {1}":_.ug=="sl"?"{0} in {1}":_.ug=="sq"?"{0} dhe {1}":_.ug=="sv"?"{0} och {1}":_.ug=="sw"?"{0} na {1}":_.ug=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.ug=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.ug=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.ug=="tr"?"{0} ve {1}":_.ug=="ur"?"{0} \u0627\u0648\u0631 {1}":_.ug=="uz"?"{0} va {1}":_.ug=="vi"?"{0} v\u00e0 {1}":_.ug=="zh-HK"?"{0}\u53ca{1}":_.ug=="zu"?"{0} ne-{1}":_.ug=="af"||_.ug=="nl"?"{0} en {1}":_.ug=="ar"||_.ug==
"ar-XB"?"{0} \u0648{1}":_.ug=="be"||_.ug=="uk"?"{0} \u0456 {1}":_.ug=="cs"||_.ug=="sk"?"{0} a\u00a0{1}":_.ug=="et"||_.ug=="fi"?"{0} ja {1}":_.ug=="fr"||_.ug=="fr-CA"?"{0} et {1}":_.ug=="id"||_.ug=="ms"?"{0} dan {1}":_.ug=="zh-CN"||_.ug=="zh-TW"?"{0}\u548c{1}":_.ug=="da"||_.ug=="is"||_.ug=="no"?"{0} og {1}":_.ug=="es"||_.ug=="es-419"||_.ug=="es-US"?"{0} y {1}":_.ug=="bg"||_.ug=="mk"||_.ug=="ru"||_.ug=="sr"?"{0} \u0438 {1}":_.ug=="en"||_.ug=="en-GB"||_.ug=="en-IN"||_.ug=="en-XA"?"{0} and {1}":_.ug==
"gl"||_.ug=="it"||_.ug=="pt-BR"||_.ug=="pt-PT"?"{0} e {1}":"{0} i {1}";_.ug==="sq"?(a=a.replace("dhe","e"),T=T.replace("dhe","e")):_.ug==="th"?(f=f.replace("{0}"," {0}"),T=T.replace("{0}","{0} "),T=T.replace("{1}"," {1}")):_.ug==="ne"?f=",":_.ug==="zh-CN"?f="":Q.includes(_.ug)&&(f=" ");return A.length<2?A.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(_.ug)?A.length===2?
T.replace("{0}",A[0]).replace("{1}",A[1]):b.replace("{0}",A[0])+A.slice(1,-1).join(f)+a.replace("{0}",A[A.length-1]):A.join(f)};
_.d.getTimeParam=function(){return RBn(this.timeString)};
_.d.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var A={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},Q;_.JY(_.IP(),(Q=this.data)==null?void 0:Q.trackingParams,A,7)};
_.d.onChangeStartAtTimestamp=function(){for(var A=this.startAtTimestamp.value.split(":"),Q=0,b=1,f=A.length-1;f>=0;f--)Q+=Number(A[f])*b,b*=60;this.updateTimeSecs(Q);this.setTimestamp()};
_.d.onOpen=function(){var A=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var Q=_.BL();Q?Q.getPlayerPromise().then(function(b){b=b.getCurrentTime();A.updateTimeSecs(b)}):Pir()&&this.updateTimeSecs(Pir())};
_.d.setTimestamp=function(){var A=Math.floor(this.currentTimeSecs);_.pD(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!A,timestamp:A||""}])};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Vo.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Vo.prototype,"data",void 0);_.E([_.C({value:!1,notify:!0}),_.c("design:type",Boolean)],Vo.prototype,"isStartAtChecked",void 0);_.E([_.C(),_.c("design:type",Number)],Vo.prototype,"currentTimeSecs",void 0);
_.E([_.C({computed:"computeTimeString(currentTimeSecs)"}),_.c("design:type",String)],Vo.prototype,"timeString",void 0);_.E([_.C({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.c("design:type",String)],Vo.prototype,"timeStringA11y",void 0);_.E([_.V1("#start-at-timestamp"),_.c("design:type",Object)],Vo.prototype,"startAtTimestamp",void 0);_.E([_.Ec({is:"yt-start-at-renderer",disableElementRegistration:!0})],Vo);
_.W(Vo,"yt-start-at-renderer",function(){if(FGO===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;don===void 0&&(don=document.createElement("template"));var f=don;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);FGO=A}A=FGO;return A},{mode:2});var GBn;var Bqx;var pKx=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"]]),PHx=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"]]),XKq=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var SMl={};SMl.YtBindingExpressionsBehavior={identity:_.gW,msg:function(A,Q){Q=Q===void 0?{}:Q;return _.JQ(A,Q,A)},
msgPlural:function(A,Q){return _.VI(A,Q)},
getMusicIconFromType:function(A){if(_.K("music_web_enable_icon_wil"))A=_.K0(A);else if(PHx.has(A))A="yt-sys-icons:"+PHx.get(A);else{var Q=pKx.get(A)||_.K0(A).split(":")[1];Q=_.jh6(Q);var b;A=((b=XKq.get(A))!=null?b:"yt-sys-icons:")+Q}return A}};var UoN;var LGr;var Mvl;var lns=document.head,KGs=lns.appendChild,i8F;if(Mvl===void 0){var JZx=document.createElement("template");_.k(JZx,'\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>');Mvl=JZx}i8F=Mvl;KGs.call(lns,i8F.content);var OD=function(){var A=_.q.apply(this,arguments)||this;A.screenLayer=7;return A};
_.O(OD,_.q);OD.prototype.getScreenLayer=function(){return this.screenLayer};
OD.prototype.onTap=function(A){A&&A.detail&&(A.detail.x||A.detail.y)&&_.Bj(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.X5(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(A=this.getScreenLayer(),_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:A}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Qr.Object.defineProperties(OD.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()}}});
OD.prototype.onTap=OD.prototype.onTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],OD.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],OD.prototype,"data",void 0);_.E([_.H("data.title"),_.c("design:type",Object),_.c("design:paramtypes",[])],OD.prototype,"title",null);
_.E([_.H("data.serviceName"),_.c("design:type",String),_.c("design:paramtypes",[])],OD.prototype,"icon",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],OD.prototype,"onTap",null);_.E([_.Ec({is:"yt-share-target-renderer",disableElementRegistration:!0})],OD);
_.W(OD,"yt-share-target-renderer",function(){if(LGr===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;UoN===void 0&&(UoN=document.createElement("template"));var f=UoN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);LGr=A}A=LGr;return A},{mode:2});var Vvs;var O87;var nh=function(){var A=_.q.apply(this,arguments)||this;A.SHARE_TARGET_WIDTH=70;A.SHARE_TARGET_MARGIN_RIGHT=8;A.PAGE_SCROLL_SPEED=9;A.actionMap={"yt-share-panel-reset-action":"onReset_"};return A};
_.O(nh,_.q);_.d=nh.prototype;_.d.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.d.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Bj(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Bj(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.d.onReset_=function(){if(_.Bj(this.hostElement).querySelector("#list")){var A=_.Bj(this.hostElement).querySelector("#list");var Q=_.Bj(this.hostElement).querySelector("#list");var b=Q.offsetLeft,f=Q.offsetParent;f||_.SNY(Q)!="fixed"||(f=_.h3(Q).documentElement);if(f){if(_.U2&&!_.MP(58)){var a=_.VFj(f);b+=a.left}else Number(_.ESY)>=8&&!(Number(_.ESY)>=9)&&(a=_.VFj(f),b-=a.left);Q=_.isM(f)?f.clientWidth-(b+Q.offsetWidth):b}else Q=b;KUt(A,Q);this.updateScrollButtons_()}};
_.d.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.d.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.d.onScrollWheel_=function(A){A.stopPropagation();A.preventDefault();var Q=lNO(_.Bj(this.hostElement).querySelector("#list"));A=Math.abs(A.deltaX)>Math.abs(A.deltaY)?A.deltaX:A.deltaY;KUt(_.Bj(this.hostElement).querySelector("#list"),Q+A);this.updateScrollButtons_()};
_.d.smoothScrollByOnePage_=function(A){var Q=_.Bj(this.hostElement).querySelector("#list"),b=(Math.floor(Q.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,f=lNO(Q),a=b*(A?1:-1),T=this.PAGE_SCROLL_SPEED,G=this.updateScrollButtons_.bind(this),p=0,P;(function L(){p+=T;P=p/b*2;KUt(Q,f+a*(P<1?P*P:-P*P+4*P-2));p<b?window.requestAnimationFrame(L):G()})()};
_.d.updateScrollButtons_=function(){var A=lNO(_.Bj(this.hostElement).querySelector("#list")),Q=_.Bj(this.hostElement).querySelector("#list").scrollWidth-_.Bj(this.hostElement).querySelector("#list").clientWidth;_.Bj(this.hostElement).querySelector("#scroll-button-back").hidden=A<=0;_.Bj(this.hostElement).querySelector("#scroll-button-forward").hidden=A>=Q};
nh.prototype.onScrollWheel_=nh.prototype.onScrollWheel_;nh.prototype.onDataChanged_=nh.prototype.onDataChanged_;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],nh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(SMl.YtBindingExpressionsBehavior),_.c("design:type",Object)],nh.prototype,"ytBindingExpressionsBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],nh.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nh.prototype,"onDataChanged_",null);_.E([_.Kc("wheel"),_.c("design:type",Function),_.c("design:paramtypes",[WheelEvent]),_.c("design:returntype")],nh.prototype,"onScrollWheel_",null);
_.E([_.Ec({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],nh);
_.W(nh,"yt-third-party-share-target-section-renderer",function(){if(O87===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Vvs===void 0&&(Vvs=document.createElement("template"));var f=Vvs;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);O87=A}A=O87;return A},{mode:2});var kN=function(){return _.q.apply(this,arguments)||this};
_.O(kN,_.q);kN.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kN.prototype,"data",void 0);_.E([_.Ec({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],kN);
_.W(kN,"yt-third-party-network-section-renderer",function(){if(Bqx===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;GBn===void 0&&(GBn=document.createElement("template"));var f=GBn;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Bqx=A}A=Bqx;return A},{mode:2});_.pE(_.aP(function(A){return _.X("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.X("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.X(_.WL,{data:function(){return A.data().firstPartyItems}},{listItemViewModel:_.us})))},"Eg"),"first-party-network-section-view-model",{props:{data:_.Qf}});var nur=_.sC(["data:image/svg+xml;charset=UTF-8;base64,",""]),Io=function(){var A=_.q.apply(this,arguments)||this;A.screenLayer=7;A.qrCodeEnabled=_.K("web_enable_sharing_qr_code");A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return A};
_.O(Io,_.q);_.d=Io.prototype;_.d.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"}}}};
_.d.attached=function(){this.JSC$19889_scroller&&(this.JSC$19889_scroller.dialogElement=this.hostElement.parentNode,this.JSC$19889_scroller.attached&&typeof this.JSC$19889_scroller.attached==="function"&&this.JSC$19889_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.d.onDataChanged=function(){var A=this,Q;(Q=this.data)!=null&&Q.contents&&(this.hostElement.setAttribute("links-only","true"),_.Xs(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.mL(this,function(){_.Bn(A.hostElement,"yt-refit");A.focusSharePanelHeader()}))};
_.d.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.d.handleSetTimestamp=function(A){var Q=this.shortUrl();A.isSet&&(Q=_.yH(Q,"t",A.timestamp));this.maybeRenderQrCode(Q)};
_.d.shortUrl=function(){var A,Q=(A=this.data)==null?void 0:A.contents;if(Q)for(A=0;A<Q.length;A++){var b=void 0,f=void 0;if((b=Q[A])==null?0:(f=b.thirdPartyNetworkSection)==null?0:f.copyLinkContainer){var a=f=b=void 0;return(a=_.V((b=Q[A])==null?void 0:(f=b.thirdPartyNetworkSection)==null?void 0:f.copyLinkContainer,iWl))==null?void 0:a.shortUrl}}};
_.d.maybeRenderQrCode=function(A){var Q=this,b,f,a,T,G,p,P,U,L;return _.B(function(M){if(M.nextAddress==1){b=_.Bj(Q.hostElement).querySelector("#qr-code");if(!Q.qrCodeEnabled||!A)return b&&(b.style.display="none"),M.return();f=_.xRJ(_.fJ().resolve(_.ie),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});a=document.createElement("div");return typeof f==="function"?(f(a),M.jumpTo(2)):M.yield(f,3)}M.nextAddress!=2&&(T=M.yieldResult,T(a));P=(G=a)==null?void 0:(p=G.firstChild)==null?void 0:p.firstChild;
U=document.createElement("img");L=_.mse(nur,btoa(P.outerHTML));U.onload=function(){var l={canvas:b,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:U},J=new ELK;ZOr(J,A);yHx(J,!1,Yrx(J));var n=J.modules,t=Object.assign({},pBO,l);n=structuredClone(n);l=n.length;var g,e=(g=t.canvas)!=null?g:document.createElement("canvas");g=t.cellSize;J=t.logo;var x,D=(x=t.logoSize)!=null?x:Math.floor(l/4);l%2!==D%2&&D++;var w=t.logoPadding,u=t.backgroundColor;x=l*g;var y=
t.width,a9=0;y&&(a9=t.padding,a9=Math.ceil(a9*x/(y-a9*2)),e.style.width=y+"px",e.style.height=y+"px");e.width!==x+a9*2&&(e.width=x+a9*2);e.height!==x+a9*2&&(e.height=x+a9*2);x=e.getContext("2d");t.autoClear&&x.clearRect(0,0,e.width,e.height);x.fillStyle=u;x.beginPath();x.roundRect(0,0,e.width,e.height,t.borderRadius);x.fill();x.save();x.translate(a9,a9);if(J)for(e=Math.floor(l-D)/2-w,w=Math.floor(l+D)/2+w,u=e;u<w;u++)for(y=e;y<w;y++)n[u][y]=!1;for(e=0;e<l;e++)for(w=0;w<l;w++)(e<7&&w<7||e<7&&w>=l-
7||e>=l-7&&w<7)&&(n[e][w]=!1);var pF;e=(pF=t.markerColor)!=null?pF:t.color;$eF(x,0,0,g,e);$eF(x,g*(l-7),0,g,e);$eF(x,0,g*(l-7),g,e);switch(t.cellStyle){case 0:pF=n;n=pF.length;e=t.cellSize;x.beginPath();for(w=0;w<n;w++)for(u=0;u<n;u++)pF[w][u]&&x.rect(w*e,u*e,e,e);x.fillStyle=t.color;x.fill();break;case 1:pF=n;n=pF.length;e=t.cellSize;w=e*t.relativeCircleSize;x.fillStyle=t.color;x.beginPath();for(t=0;t<n;t++)for(u=0;u<n;u++)pF[t][u]&&(x.beginPath(),x.ellipse((t+.5)*e,(u+.5)*e,w/2,w/2,0,0,2*Math.PI),
x.fill());x.fill();break;case 2:pF=n;n=pF.length;e=t.cellSize;x.fillStyle=t.color;t=[[1,1],[-1,1],[-1,-1],[1,-1]];x.beginPath();for(w=0;w<n;w++)for(u=0;u<n;u++)if(pF[w][u])x.roundRect(w*e,u*e,e,e,e/2),w+1<n&&pF[w+1][u]&&x.rect(w*e+e/2,u*e,e,e),u+1<n&&pF[w][u+1]&&x.rect(w*e,u*e+e/2,e,e);else{y=w*e+e/2;a9=u*e+e/2;for(var Ub=0;Ub<4;Ub++){var Ob=_.F(t[Ub]),I9=Ob.next().value;Ob=Ob.next().value;w+I9>=0&&w+I9<n&&u+Ob>=0&&u+Ob<n&&pF[w+I9][u]&&pF[w][u+Ob]&&pF[w+I9][u+Ob]&&(I9=Ub*Math.PI/2,Ob=e/2,x.moveTo(y+
Ob*Math.cos(I9),a9+Ob*Math.sin(I9)),x.arc(y,a9,e/2,I9,I9+Math.PI/2,!1),x.lineTo(y+Ob*(Math.cos(I9)-Math.sin(I9)),a9+Ob*(Math.cos(I9)+Math.sin(I9))),x.lineTo(y+Ob*Math.cos(I9),a9+Ob*Math.sin(I9)))}}x.fill()}J&&x.drawImage(J,(l-D)*g/2,(l-D)*g/2,D*g,D*g);x.restore();b.style.removeProperty("display")};
U.src=_.r$(L);_.Oi(M)})};
_.d.hasCommunityPostRenderer=function(){var A,Q,b,f;return!!((A=this.data)==null?0:(Q=A.header)==null?0:(b=Q.sharePanelHeaderRenderer)==null?0:(f=b.communityPost)==null?0:f.communityPostSectionRenderer)};
_.d.onTapClose=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.d.getScreenLayer=function(){return this.screenLayer};
_.d.logSharePanelPage=function(){if(!_.K("enable_share_panel_navigation_logging_fix_on_web")){var A;if((A=this.data)!=null&&A.trackingParams){A=this.data.trackingParams;var Q=this.parentClickTrackingParams;Q=Q?_.t8(Q):void 0;var b=_.IP();_.Mk(b,21760,Q,{layer:7,parentLayer:0});b.graftServerVe(A,void 0,7);_.QK().dispatch(_.G7({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Io.prototype.onDataChanged=Io.prototype.onDataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Io.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Io.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Io.prototype,"data",void 0);_.E([_.C({value:_.JQ("SBOX_INAPPROPRIATE_CANCEL")}),_.c("design:type",String)],Io.prototype,"closeButtonAriaLabel",void 0);_.E([_.V1("yt-share-panel-header-renderer"),_.c("design:type",HTMLElement)],Io.prototype,"header",void 0);_.E([_.C({selector:function(A){return A.share.parentClickTrackingParams}}),
_.c("design:type",String)],Io.prototype,"parentClickTrackingParams",void 0);_.E([_.C(),_.c("design:type",Object)],Io.prototype,"qrCodeEnabled",void 0);_.E([_.V1("#scroller"),_.c("design:type",Object)],Io.prototype,"JSC$19889_scroller",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Io.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Io);
_.W(Io,"ytd-unified-share-panel-renderer",function(){if(Nwx!==void 0)return Nwx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Nwx=A},{mode:1});var kBK;var H9=function(){var A=_.q.apply(this,arguments)||this;A.modernModal=!0;return A};
_.O(H9,_.q);H9.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
H9.prototype.computeShouldHideOldButtons=function(){var A;return!((A=this.data)==null?0:A.button)};
_.Qr.Object.defineProperties(H9.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(A=this.data)==null?void 0:(Q=A.button)==null?void 0:Q.buttonRenderer}}});
_.E([_.C(),_.c("design:type",Object)],H9.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],H9.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],H9.prototype,"modernModal",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],H9.prototype,"buttonRendererData",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],H9);
_.W(H9,"ytd-modal-with-title-and-button-renderer",function(){if(kBK!==void 0)return kBK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return kBK=A},{mode:1});var Int;var Ch=function(){return _.q.apply(this,arguments)||this};
_.O(Ch,_.q);Ch.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("page-changed",this.page))};
Ch.prototype.pageChangedForBinding=Ch.prototype.pageChangedForBinding;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ch.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],Ch.prototype,"page",void 0);_.E([_.iN("page"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ch.prototype,"pageChangedForBinding",null);
_.E([_.h({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Ch);
_.W(Ch,"ytd-account-item-section-header-renderer",function(){if(Int!==void 0)return Int;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Int=A},{mode:1});var H8x;var qa=function(){return _.q.apply(this,arguments)||this};
_.O(qa,_.q);qa.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"}}}};
qa.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],qa.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qa.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.c("design:type",Function)],qa.prototype,"onAccountItemTap",void 0);
_.E([_.h({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],qa);
_.W(qa,"ytd-account-item-section-renderer",function(){if(H8x!==void 0)return H8x;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return H8x=A},{mode:1});var CHK;var qM7;var oo=function(){return _.q.apply(this,arguments)||this};
_.O(oo,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],oo.prototype,"data",void 0);_.E([_.h({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],oo);
_.W(oo,"ytd-accounts-dialog-header-renderer",function(){if(qM7!==void 0)return qM7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return qM7=A},{mode:1});var ouq;var tR=function(){return _.q.apply(this,arguments)||this};
_.O(tR,_.q);tR.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tR.prototype,"data",void 0);_.E([_.h({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],tR);
_.W(tR,"ytd-google-account-header-renderer",function(){if(ouq!==void 0)return ouq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ouq=A},{mode:1});var rT=function(){return _.q.apply(this,arguments)||this};
_.O(rT,_.q);rT.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"}}}};
rT.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("page-changed",this.page))};
rT.prototype.pageChangedForBinding=rT.prototype.pageChangedForBinding;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rT.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],rT.prototype,"page",void 0);
_.E([_.iN("page"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rT.prototype,"pageChangedForBinding",null);_.E([_.h({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],rT);
_.SM()(rT,"ytd-account-section-list-renderer",function(){if(CHK===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);CHK=A}A=CHK;return A},{allowedProps:["data"],
mode:1});var tvM;var ja=function(){var A=_.q.apply(this,arguments)||this;A.enableHandlesAccountMenuSwitcher=_.K("enable_handles_account_menu_switcher");return A};
_.O(ja,_.q);ja.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
ja.prototype.dataChanged=ja.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ja.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ja.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.E([_.V1("#avatar"),_.c("design:type",Object)],ja.prototype,"avatar",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ja.prototype,"dataChanged",null);_.E([_.h({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],ja);
_.SM()(ja,"ytd-active-account-header-renderer",function(){if(tvM===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);tvM=A}A=tvM;return A},{allowedProps:["data"],
mode:1});var rZK;var jul;var Ro=function(){return _.q.apply(this,arguments)||this};
_.O(Ro,_.q);Ro.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ro.prototype.onBackTap=function(){_.Bn(this.hostElement,"yt-menu-back-tapped")};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ro.prototype,"data",void 0);_.E([_.h({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Ro);
_.SM()(Ro,"ytd-simple-menu-header-renderer",function(){if(jul===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);jul=A}A=jul;return A},{allowedProps:["data"],
mode:2});var RF7;var gT=function(){return _.q.apply(this,arguments)||this};
_.O(gT,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gT.prototype,"data",void 0);_.E([_.h({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],gT);
_.W(gT,"ytd-comment-video-thumbnail-header-renderer",function(){if(RF7!==void 0)return RF7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return RF7=A},{mode:1});var gut;var ea=function(){return _.q.apply(this,arguments)||this};
_.O(ea,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ea.prototype,"data",void 0);_.E([_.h({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],ea);
_.W(ea,"ytd-abuse-type-selector-renderer",function(){if(gut!==void 0)return gut;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return gut=A},{mode:1});var eFF;var hR=function(){return _.q.apply(this,arguments)||this};
_.O(hR,_.q);hR.prototype.attached=function(){var A=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){A.additionalContextInput.focusTextInput()})};
hR.prototype.handleAdditionalContextChanged=function(){var A=this;_.Yl(this,"ytd-report-channel-additional-context-update",function(){A.ytdReduxBehavior.dispatch(_.G7({type:"ADDITIONAL_CONTEXT_UPDATED",payload:A.additionalContext}))},300)};
hR.prototype.updateAdditionalContextFromBinding=function(A){this.additionalContext=A.detail.value};
hR.prototype.handleAdditionalContextChanged=hR.prototype.handleAdditionalContextChanged;_.E([_.I(_.cb),_.c("design:type",Object)],hR.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",String)],hR.prototype,"additionalContext",void 0);_.E([_.C({selector:function(A){return A.reportChannelAbuse.additionalContext}}),
_.c("design:type",String)],hR.prototype,"additionalContextRedux",void 0);_.E([_.C(),_.c("design:type",Object)],hR.prototype,"data",void 0);_.E([_.V1("yt-text-input-form-field-renderer"),_.c("design:type",Object)],hR.prototype,"additionalContextInput",void 0);_.E([_.iN("additionalContext"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],hR.prototype,"handleAdditionalContextChanged",null);
_.E([_.h({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],hR);
_.W(hR,"ytd-report-channel-modal-additional-context-renderer",function(){if(eFF!==void 0)return eFF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return eFF=A},{mode:1});var hFx;var W9=function(){var A=_.q.apply(this,arguments)||this;A.nextButtonDisabled=null;A.submitEndpoint=null;A.navigationEndpoint=null;A.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return A};
_.O(W9,_.q);_.d=W9.prototype;_.d.computeNextButtonData=function(A,Q,b){var f={};Q&&(f.navigationEndpoint=Q);b&&(f.serviceEndpoint=b);A&&A.buttonRenderer&&_.j2.extend(f,A.buttonRenderer);return f};
_.d.handleReportChannelModalDisableNextButtonAction=function(A){this.setNextButtonIsDisabled(A)};
_.d.handleReportFormEndpointUpdateAction=function(A){this.setNextButtonIsDisabled(!!A.disableSubmitButton);this.resetEndpointData();A.submitEndpoint?this.submitEndpoint=A.submitEndpoint:A.submitNavigationEndpoint&&(this.navigationEndpoint=A.submitNavigationEndpoint)};
_.d.handleSignalActionSubmitForm=function(){var A,Q=Object.keys(((A=this.reportChannelAbuseForm)==null?void 0:A.selectedVideoIds)||{}),b;A=((b=this.reportChannelAbuseForm)==null?void 0:b.additionalContext)||"";var f;b=((f=this.reportChannelAbuseForm)==null?void 0:f.impersonatedChannelUrl)||"";var a;if((a=this.data)==null?0:a.submitEndpoint){Q={impersonated_channel_url:b,text:A,video_ids:Q};var T;_.fJ().resolve(_.de).resolveCommand((T=this.data)==null?void 0:T.submitEndpoint,{form:Object.assign({},
Q,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.d.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.d.onYtServiceRequestError=function(A){this.setNextButtonIsDisabled(!1);_.bp(this.hostElement,A.detail.error.message)};
_.d.setNextButtonIsDisabled=function(A){this.set("data.nextButton.buttonRenderer.isDisabled",A)};
_.d.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
W9.prototype.onYtServiceRequestError=W9.prototype.onYtServiceRequestError;W9.prototype.onYtServiceRequestCompleted=W9.prototype.onYtServiceRequestCompleted;_.E([_.C(),_.c("design:type",Object)],W9.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],W9.prototype,"nextButtonDisabled",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],W9.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],W9.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],W9.prototype,"submitEndpoint",void 0);_.E([_.C(),_.c("design:type",Object)],W9.prototype,"navigationEndpoint",void 0);_.E([_.C({selector:function(A){return A.reportChannelAbuse}}),
_.c("design:type",Object)],W9.prototype,"reportChannelAbuseForm",void 0);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],W9.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],W9.prototype,"onYtServiceRequestError",null);
_.E([_.h({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],W9);
_.W(W9,"ytd-report-channel-modal-footer-renderer",function(){if(hFx!==void 0)return hFx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return hFx=A},{mode:1});var WGM;var v9=function(){var A=_.q.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.closePopup()};
return A};
_.O(v9,_.q);v9.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
v9.prototype.handleDataChanged=function(){_.Dg(this.hostElement)};
v9.prototype.closePopup=function(){_.pD(this.hostElement,"yt-close-popup-action")};
v9.prototype.handleDataChanged=v9.prototype.handleDataChanged;_.E([_.C(),_.c("design:type",Object)],v9.prototype,"boundOnTapDismissButton",void 0);_.E([_.C(),_.c("design:type",Object)],v9.prototype,"data",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],v9.prototype,"handleDataChanged",null);_.E([_.h({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],v9);
_.W(v9,"ytd-report-channel-modal-header-renderer",function(){if(WGM!==void 0)return WGM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return WGM=A},{mode:1});var vu7;var ED=function(){var A=_.q.apply(this,arguments)||this;A.autoValidate=!1;A.invalid=!1;A.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return A};
_.O(ED,_.q);_.d=ED.prototype;_.d.attached=function(){var A=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){A.channelUrlInput.focusTextInput()})};
_.d.disableNextButton=function(A){_.pD(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[A])};
_.d.handleImpersonatedChannelUrlChanged=function(){var A=this;this.disableNextButton(!0);this.invalid=!1;_.Yl(this,"ytd-report-channel-impersonated-channel-update",function(){var Q=A.impersonatedChannelUrl.trim();A.ytdReduxBehavior.dispatch(_.G7({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:Q}));var b;((b=A.data)==null?0:b.submitEndpoint)&&Q&&_.fJ().resolve(_.de).resolveCommand(A.data.submitEndpoint,{form:{impersonated_channel_url:Q,element:A.hostElement}})},500)};
_.d.handleModifyReportFormCommand=function(A){this.invalid=this.get("modifyReportFormCommand.action",A)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.d.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.d.updateImpersonatedChannelUrlFromBinding=function(A){this.impersonatedChannelUrl=A.detail.value};
ED.prototype.handleImpersonatedChannelUrlChanged=ED.prototype.handleImpersonatedChannelUrlChanged;_.E([_.I(_.cb),_.c("design:type",Object)],ED.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ED.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ED.prototype,"autoValidate",void 0);_.E([_.C(),_.c("design:type",Object)],ED.prototype,"invalid",void 0);
_.E([_.C(),_.c("design:type",String)],ED.prototype,"impersonatedChannelUrl",void 0);_.E([_.C({selector:function(A){return A.reportChannelAbuse.impersonatedChannelUrl}}),
_.c("design:type",String)],ED.prototype,"impersonatedChannelUrlRedux",void 0);_.E([_.C(),_.c("design:type",Object)],ED.prototype,"data",void 0);_.E([_.V1("#text-input"),_.c("design:type",Object)],ED.prototype,"channelUrlInput",void 0);_.E([_.iN("impersonatedChannelUrl"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ED.prototype,"handleImpersonatedChannelUrlChanged",null);
_.E([_.h({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],ED);
_.W(ED,"ytd-report-channel-modal-impersonation-renderer",function(){if(vu7!==void 0)return vu7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return vu7=A},{mode:1});var Eus;var xol;var xN=function(){return _.q.apply(this,arguments)||this};
_.O(xN,_.q);xN.prototype.onCheckboxToggled=function(A){var Q,b,f=(b=_.V((Q=this.data)==null?void 0:Q.video,_.Z6))==null?void 0:b.videoId;f&&this.ytdReduxBehavior.dispatch(A.target.checked?_.G7({type:"VIDEO_SELECTED",payload:f}):_.G7({type:"VIDEO_UNSELECTED",payload:f}))};
xN.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Qr.Object.defineProperties(xN.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var A,Q=(A=this.data)==null?void 0:A.video;if(!Q)return{};var b;A=(b=_.V(Q,_.Z6))==null?void 0:b.navigationEndpoint;if(!A)return Q;_.V(A==null?void 0:A.commandMetadata,_.KD)&&(_.V(A.commandMetadata,_.KD).ignoreNavigation=!0);return Q}}});
_.E([_.C({reflectToAttribute:!0,selector:function(A,Q){return Q in A.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.c("design:type",Boolean)],xN.prototype,"checked",void 0);_.E([_.C(),_.c("design:type",Object)],xN.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],xN.prototype,"video",null);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],xN.prototype,"ytdReduxBehavior",void 0);_.E([_.h({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],xN);
_.W(xN,"ytd-selectable-video-renderer",function(){if(xol!==void 0)return xol;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xol=A},{mode:1});var c9=function(){var A=_.q.apply(this,arguments)||this;A.monitorScroll=!0;return A};
_.O(c9,_.q);c9.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],c9.prototype,"data",void 0);_.E([_.h({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],c9);
_.W(c9,"ytd-selectable-video-list-renderer",function(){if(Eus!==void 0)return Eus;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Eus=A},{mode:1});var cZl;_.xo("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var zi=function(){return _.q.apply(this,arguments)||this};
_.O(zi,_.q);zi.prototype.onChange=function(A){if(A=_.Au(A).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.K("kevlar_command_handler_migration_killswitch"))_.ST(this.hostElement,A,this.hostElement);else{A=_.F(A);for(var Q=A.next();!Q.done;Q=A.next())this.ytComponentBehavior.resolveCommand(Q.value)}};
zi.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
zi.prototype.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],zi.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zi.prototype,"data",void 0);_.E([_.C({computed:"isEnabled(data)"}),_.c("design:type",Boolean)],zi.prototype,"enabled",void 0);_.E([_.h({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],zi);
_.W(zi,"ytd-toggle-item-renderer",function(){if(cZl!==void 0)return cZl;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return cZl=A},{mode:1});var zFM;var wKx;var ubM;var wT=function(){var A=_.q.apply(this,arguments)||this;A.setVisible=!1;A.boundOnSubmitButtonClick=function(){A.onSubmitButtonClick()};
A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.O(wT,_.q);wT.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}}}}}};
wT.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
wT.prototype.onSubmitButtonClick=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&!_.K("enable_ytc_refunds_submit_form_signal_action")&&_.X5(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
wT.prototype.handleSignalActionSubmitForm=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&_.X5(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Qr.Object.defineProperties(wT.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hiddenByDefault)&&!this.setVisible}}});
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],wT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],wT.prototype,"setVisible",void 0);_.E([_.C(),_.c("design:type",Object)],wT.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],wT.prototype,"surveyFeedbackData",void 0);_.E([_.C(),_.c("design:type",Object)],wT.prototype,"boundOnSubmitButtonClick",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data","setVisible"),_.c("design:type",Object),_.c("design:paramtypes",[])],wT.prototype,"visibilityHidden",null);_.E([_.Ec({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],wT);
_.W(wT,"yt-flow-footer-renderer",function(){if(ubM===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;wKx===void 0&&(wKx=document.createElement("template"));var f=wKx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ubM=A}A=ubM;return A},{mode:2});var uX=function(){return _.q.apply(this,arguments)||this};
_.O(uX,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],uX.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uX.prototype,"data",void 0);_.E([_.C({selector:function(A){return A.ypc.surveyFeedbackData}}),
_.c("design:type",Object)],uX.prototype,"surveyFeedbackData",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],uX);
_.W(uX,"ytd-flow-footer-renderer",function(){if(zFM!==void 0)return zFM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zFM=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var Z8r;var yZK;var Zq=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return A};
_.O(Zq,_.q);_.d=Zq.prototype;_.d.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.cz("multiPageMenuSectionItems")}}};
_.d.handleHideEnclosingAction_=function(A){if(this.data&&this.data.items)for(var Q=0;Q<this.data.items.length;Q++){var b=this.data.items[Q].notificationRenderer;if(b&&b.notificationId==A.hideEnclosingAction.notificationId){this.splice("data.items",Q,1);_.pD(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.d.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Xs(this.hostElement,"hidden",!0)};
_.d.updateMenu_=function(A){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&A&&!A.doNotRefreshInbox){A=this.data.continuations;for(var Q=0;Q<A.length;Q++)if(A[Q].invalidationContinuationData){var b=void 0;var f=(b=A[Q].invalidationContinuationData)==null?void 0:b.continuation;break}A=_.j2.clone(this.data.continuationUpdateEndpoint||null);A.continuation=f;A.click_tracking_params=this.data.trackingParams;_.X5(this.hostElement,[A])}};
_.d.onServiceRequestCompleted_=function(A,Q){if(this.data&&(A=Q.actions)){Q=0;for(var b=A.length;Q<b;Q++){var f=_.V(A[Q],_.eVW);if(!f)break;if((f.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||f.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&f.continuationItems&&this.data.items){var a=this.data.items.length-1;this.data.items[a].continuationItemRenderer&&(f=["data.items",a,1].concat(f.continuationItems),this.splice.apply(this,f))}}}};
Zq.prototype.onServiceRequestCompleted_=Zq.prototype.onServiceRequestCompleted_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Zq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zq.prototype,"data",void 0);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],Zq.prototype,"onServiceRequestCompleted_",null);_.E([_.Ec({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Zq);
_.SM()(Zq,"yt-multi-page-menu-section-renderer",function(){if(yZK===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Z8r===void 0&&(Z8r=document.createElement("template"));var f=Z8r;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);yZK=A}A=yZK;return A},{allowedProps:["data"],
mode:2});var YMO;var Doq;var yo=function(){return _.q.apply(this,arguments)||this};
_.O(yo,_.q);yo.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Qr.Object.defineProperties(yo.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)==null?0:this.data.progress*100}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yo.prototype,"data",void 0);_.E([_.H("data.progress"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],yo.prototype,"showProgressBar",null);
_.E([_.H("data.progress"),_.c("design:type",Number),_.c("design:paramtypes",[])],yo.prototype,"progress",null);_.E([_.Ec({is:"yt-flow-header-renderer",disableElementRegistration:!0})],yo);
_.W(yo,"yt-flow-header-renderer",function(){if(Doq===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;YMO===void 0&&(YMO=document.createElement("template"));var f=YMO;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Doq=A}A=Doq;return A},{mode:2});var $os;var Nqt;var YN=function(){return _.q.apply(this,arguments)||this};
_.O(YN,_.q);YN.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],YN.prototype,"data",void 0);_.E([_.Ec({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],YN);
_.W(YN,"yt-post-confirmation-flow-step-renderer",function(){if(Nqt===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;$os===void 0&&($os=document.createElement("template"));var f=$os;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Nqt=A}A=Nqt;return A},{mode:2});var sut;var mot;var Dq=function(){return _.q.apply(this,arguments)||this};
_.O(Dq,_.q);
Dq.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Dq.prototype,"data",void 0);_.E([_.Ec({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Dq);
_.W(Dq,"yt-refund-confirmation-flow-step-renderer",function(){if(mot===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;sut===void 0&&(sut=document.createElement("template"));var f=sut;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);mot=A}A=mot;return A},{mode:2});_.dK(glK);_.dK(eBs);var hBl=_.rz({avatarViewModel:_.Wm});_.dK(W5r);var K5=_.rz({commentInteractionViewModel:eBs,sharedSubscriptionViewModel:W5r,buttonViewModel:_.J9,horizontalShelfViewModel:_.y8}),A_x=_.ko(wj7);_.dK(ElM);_.dK(xJn);_.dK(cuO);_.dK(zBs);_.dK(wj7);var usl=_.rz({profileIdentityInfoViewModel:_.u_s,profileInfoViewModel:wj7});_.dK(Zcx);var QnK=_.aP(function(A){var Q=A.data;var b=function(){return Q().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.X("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},_.X(_.WL,{data:function(){return Q().profileIdentityInfo}},{profileIdentityInfoViewModel:function(f){return _.X(_.mQl,{data:f.data,
hideDivider:b,isChannelInfoCard:b})},
profileInfoViewModel:A_x}),_.X(_.WL,{data:function(){return Q().profileInfo}},{profileIdentityInfoViewModel:_.mQl,
profileInfoViewModel:A_x}))},"Fg"),bBO=_.K("web_enable_sink_profile_card_view_model")?QnK:Zcx,fHn=_.K("web_enable_sink_profile_card_view_model")?QnK:_.ko(Zcx);
QnK.idomCompat=!0;_.K("web_enable_sink_profile_card_view_model")?_.pE(fHn,"yt-profile-card-view-model",{props:{data:_.Qf}}):_.KE(bBO,"yt-profile-card-view-model",{propNames:["data"]});var $N=function(){var A=_.q.apply(this,arguments)||this;A.enableFocusFix=_.K("music_web_enable_focus_on_setting_menu_fix")&&_.Ep("IS_MOBILE_WEB",!1);A.covered=!1;A.hideMenu=!1;A.isCommentNotificationOnProfileCard=!1;A.scrolledByTouch=!1;A.disableBackdropFilter=_.K("web_disable_backdrop_filter");A.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return A};
_.O($N,_.q);_.d=$N.prototype;
_.d.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"}}}};
_.d.ready=function(){var A=this;this.JSC$20001_containerElement.addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.d.attributeChanged=function(A,Q){A==="menu-style"&&_.pD(this.hostElement,"yt-multi-page-menu-closed-action",[Q])};
_.d.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lN(this,this.focusOnStampFinished))};
_.d.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.lN(this,this.focusOnStampFinished))};
_.d.reset=function(){this.closeJobId&&(_.j7.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.d.focusOnStampFinished=function(A){A.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lN(this,this.focusOnStampFinished)),this.doFocus())};
_.d.doFocus=function(){var A=_.EBy(this.sectionsElement);A.length&&A[0].focus()};
_.d.computeMenuStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.d.computeIsCommentNotificationOnProfileCard=function(A){return _.K("enable_profile_cards_on_comments")&&A.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.d.computeHideMenu=function(A,Q){return A||!(!Q||!Q.showLoadingSpinner)};
_.d.onPopupClosed=function(){this.isPopUpOpen=!1;_.pD(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.d.onPopupOpened=function(A,Q){this.isPopUpOpen=!0;Q.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Bn(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.G7({type:"CHANNEL_REPORT_RESET"})))};
_.d.onYtNavigate=function(A,Q){this.shouldCloseOnNavigateEvent(Q.endpoint)&&_.pD(this.hostElement,"yt-close-all-popups-action")};
_.d.handleEndpoint=function(A){A=_.V(A,_.Eq);!this.isCommentNotificationOnProfileCard&&A&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20001_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.d.handleActions=function(A){for(var Q=0,b=A.length;Q<b;Q++){var f=_.V(A[Q],OWs);f&&this.handleGetMultiPageMenuAction(f);(f=_.V(A[Q],_.eVW))&&this.handleAppendContinuationItemsAction(f)}};
_.d.onServiceRequestSentOrCompleted=function(A,Q){A.detail&&A.detail.endpoint&&this.handleEndpoint(A.detail.endpoint);Q.actions&&this.handleActions(Q.actions)};
_.d.handleGetMultiPageMenuAction=function(A){var Q=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Bj(this.submenuElement).appendChild(Q);(A=A.menu.multiPageMenuRenderer)&&this.logSubmenu(A);Q.data=A;Q.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.d.handleAppendContinuationItemsAction=function(A){if(this.data&&A.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&A.continuationItems&&this.data.sections){var Q=this.data.sections.length-1;this.data.sections[Q].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),Q--);if(this.data.sections[Q].multiPageMenuNotificationSectionRenderer&&A.continuationItems){A=_.F(A==null?void 0:A.continuationItems);for(var b=A.next();!b.done;b=A.next())if(b=b.value,_.V(b,DON)){var f=
void 0,a=void 0,T=void 0,G=void 0,p=void 0;((f=this)==null?0:(a=f.data)==null?0:(T=a.sections)==null?0:(G=T[Q])==null?0:(p=G.multiPageMenuNotificationSectionRenderer)==null?0:p.items)&&this.push("data.sections."+Q+".multiPageMenuNotificationSectionRenderer.items",b)}else if(_.V(b,_.kfL)||_.V(b,_.ac))this.push("data.sections",b),Q++}}};
_.d.logSubmenu=function(A){if(!_.K("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var Q=this.ytRendererBehavior.getScreenLayer(),b=_.WR(Q),f=_.hx(Q);if((A=A.trackingParams)&&b&&f){var a=_.t8(A);_.K("combine_ve_grafts")?_.IP().graftServerVe(A,f,Q):_.ui(b,f,a)}}};
_.d.emptySubmenuContainer=function(){for(var A=_.Bj(this.submenuElement);A.firstChild;)A.removeChild(A.firstChild)};
_.d.onMenuBackTap=function(A){_.Bn(this.hostElement,"yt-submenu-closed");A.stopPropagation()};
_.d.onSubmenuClosed=function(A){_.Au(A)!==this.hostElement&&(this.covered=!1,_.Bn(this.hostElement,"yt-refit"),A.stopPropagation())};
_.d.onRetrieveLocation=function(A,Q){Q.hasComments&&(Q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),A.stopPropagation())};
_.d.shouldCloseOnNavigateEvent=function(A){if(!A)return!0;if(_.V(A,_.Hbj)||_.V(A,_.Crr)||_.V(A,_.IOL)||_.V(A,_.y_))return!1;var Q;return((Q=_.V(A==null?void 0:A.commandMetadata,_.KD))==null?0:Q.ignoreNavigation)?!1:!0};
_.d.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.d.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.d.refitAfterRender=function(){var A=this;_.mL(this,function(){_.Bn(A.hostElement,"yt-refit")})};
$N.prototype.refitAfterRender=$N.prototype.refitAfterRender;$N.prototype.onRetrieveLocation=$N.prototype.onRetrieveLocation;$N.prototype.onSubmenuClosed=$N.prototype.onSubmenuClosed;$N.prototype.onMenuBackTap=$N.prototype.onMenuBackTap;$N.prototype.onServiceRequestSentOrCompleted=$N.prototype.onServiceRequestSentOrCompleted;$N.prototype.onYtNavigate=$N.prototype.onYtNavigate;$N.prototype.onPopupOpened=$N.prototype.onPopupOpened;$N.prototype.onPopupClosed=$N.prototype.onPopupClosed;
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],$N.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],$N.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],$N.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],$N.prototype,"enableFocusFix",void 0);_.E([_.C(),_.c("design:type",Object)],$N.prototype,"covered",void 0);_.E([_.C({computed:"computeHideMenu(covered, data)"}),_.c("design:type",Object)],$N.prototype,"hideMenu",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.c("design:type",String)],$N.prototype,"menuStyle",void 0);
_.E([_.C({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.c("design:type",Object)],$N.prototype,"isCommentNotificationOnProfileCard",void 0);_.E([_.C(),_.c("design:type",Boolean)],$N.prototype,"isPopUpOpen",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],$N.prototype,"scrolledByTouch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],$N.prototype,"disableBackdropFilter",void 0);
_.E([_.V1("#sections"),_.c("design:type",HTMLElement)],$N.prototype,"sectionsElement",void 0);_.E([_.V1("#spinner"),_.c("design:type",HTMLElement)],$N.prototype,"spinnerElement",void 0);_.E([_.V1("#header"),_.c("design:type",HTMLElement)],$N.prototype,"headerElement",void 0);_.E([_.V1("#container"),_.c("design:type",HTMLElement)],$N.prototype,"JSC$20001_containerElement",void 0);_.E([_.V1("#submenu"),_.c("design:type",HTMLElement)],$N.prototype,"submenuElement",void 0);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$N.prototype,"onPopupClosed",null);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],$N.prototype,"onPopupOpened",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],$N.prototype,"onYtNavigate",null);
_.E([_.Kc("yt-service-request-completed"),_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],$N.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.Kc("yt-menu-back-tapped"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],$N.prototype,"onMenuBackTap",null);
_.E([_.Kc("yt-submenu-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],$N.prototype,"onSubmenuClosed",null);_.E([_.Kc("yt-retrieve-location"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],$N.prototype,"onRetrieveLocation",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$N.prototype,"refitAfterRender",null);
_.E([_.h({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],$N);
_.W($N,"ytd-multi-page-menu-renderer",function(){if(rZK!==void 0)return rZK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rZK=A},{mode:1});var aHF;var Na=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return A};
_.O(Na,_.q);_.d=Na.prototype;_.d.created=function(){this.showTooltips=!0};
_.d.computeAccessibility_=function(A){return this.get("accessibility.accessibilityData",A)||null};
_.d.onTap=function(){var A=_.Pn(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(A&&A.length===1&&A[0])_.pD(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var Q;if((Q=this.data)==null?0:Q.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var b;((b=this.data)==null?0:b.menuRequest)&&_.X5(this.hostElement,[this.data.menuRequest])}}};
_.d.handleTopbarMenuClosedAction=function(A){var Q,b;(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(A)===((Q=this.data)==null?void 0:(b=Q.icon)==null?void 0:b.iconType)&&this.toggleIconState(!1)};
_.d.toggleIconState=function(A){_.K("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=A)};
_.d.handleUpdateTopbarAvatarAction=function(A){var Q;A=(Q=_.V(A,LdO))==null?void 0:Q.avatarUrl;var b,f;Q=(b=this.data)==null?void 0:(f=b.avatar)==null?void 0:f.thumbnails;A&&Q&&(b={thumbnails:[Object.assign({},Q[0],{url:A})]},this.set("data.avatar",b))};
_.Qr.Object.defineProperties(Na.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Bj(this.hostElement).querySelector("#button")}}});
Na.prototype.onTap=Na.prototype.onTap;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Na.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],Na.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Plr.YtButtonBehavior),_.c("design:type",Object)],Na.prototype,"ytButtonBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Na.prototype,"data",void 0);
_.E([_.V1("yt-icon-button#button"),_.c("design:type",Object)],Na.prototype,"iconButton",void 0);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Na.prototype,"onTap",null);_.E([_.h({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Na);
_.W(Na,"ytd-topbar-menu-button-renderer",function(){if(aHF!==void 0)return aHF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return aHF=A},{mode:1});var T5x;var sD=function(){return _.q.apply(this,arguments)||this};
_.O(sD,_.q);sD.prototype.getSelected=function(){return this.reasons.selected};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],sD.prototype,"data",void 0);_.E([_.V1("#reasons"),_.c("design:type",Object)],sD.prototype,"reasons",void 0);_.E([_.h({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],sD);
_.W(sD,"ytd-ad-feedback-content",function(){if(T5x!==void 0)return T5x;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return T5x=A},{mode:1});var d2K;var m1=function(){return _.q.apply(this,arguments)||this};
_.O(m1,_.q);_.d=m1.prototype;_.d.onPopupOpened=function(){_.pD(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.d.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
_.d.computeCancelButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.cancelLabel}};
_.d.onConfirmTap=function(){var A=this.content.getSelected();A!==void 0&&(A=this.data.reasons[A].endpoint)&&(_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}}),_.pD(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.d.sendFeedbackSubmitToastAction=function(){var A;(A=this.data)!=null&&A.completionMessage&&_.pD(this.hostElement,"yt-open-popup-action",[_.fT(this.data.completionMessage),this])};
_.d.onCancelTap=function(){_.pD(this.hostElement,"yt-close-popup-action")};
m1.prototype.onPopupOpened=m1.prototype.onPopupOpened;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],m1.prototype,"data",void 0);_.E([_.V1("#content"),_.c("design:type",Object)],m1.prototype,"content",void 0);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],m1.prototype,"onPopupOpened",null);
_.E([_.h({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],m1);
_.W(m1,"ytd-ad-feedback-renderer",function(){if(d2K!==void 0)return d2K;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return d2K=A},{mode:1});var F07;var Aw=function(){return _.q.apply(this,arguments)||this};
_.O(Aw,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Aw.prototype,"data",void 0);_.E([_.h({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Aw);
_.W(Aw,"ytd-ad-info-dialog-content",function(){if(F07!==void 0)return F07;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return F07=A},{mode:1});var GAl;var QX=function(){return _.q.apply(this,arguments)||this};
_.O(QX,_.q);QX.prototype.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
QX.prototype.onConfirmTap=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
QX.prototype.computeShouldShowTitle=function(){var A;return!((A=this.data)==null||!A.title)};
QX.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
QX.prototype.onPopupClosed=QX.prototype.onPopupClosed;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],QX.prototype,"data",void 0);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],QX.prototype,"onPopupClosed",null);_.E([_.h({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],QX);
_.W(QX,"ytd-ad-info-dialog-renderer",function(){if(GAl!==void 0)return GAl;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return GAl=A},{mode:1});var B5l;var ba=function(){var A=_.q.apply(this,arguments)||this;A.actionButtonClass="action-button";A.dismissButtonId="dismiss-button";A.dialogDismiss=!0;return A};
_.O(ba,_.q);_.d=ba.prototype;_.d.computeInPlayer=function(A){return(A==null?void 0:A.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.d.computedLogo=function(){var A,Q;return this.isDarkTheme()?(A=this.data)==null?void 0:A.logoDark:(Q=this.data)==null?void 0:Q.logo};
_.d.computedHeaderImage=function(){var A,Q;return this.isDarkTheme()?(A=this.data)==null?void 0:A.headerImageDark:(Q=this.data)==null?void 0:Q.headerImage};
_.d.computeLogoIconId=function(){var A,Q,b,f=(A=this.computedLogo())==null?void 0:(Q=A.sources)==null?void 0:(b=Q[0])==null?void 0:b.height;return f&&f%31===0?"logo-icon-with-padding":"logo-icon"};
_.d.computeLogoIconHeight=function(){var A,Q,b,f=(A=this.computedLogo())==null?void 0:(Q=A.sources)==null?void 0:(b=Q[0])==null?void 0:b.height;return f&&f%31===0?"31":"24"};
_.d.onPopupClosed=function(){_.fJ().resolve(_.nC).dispose()};
_.d.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.d.onShow=function(){this.inPlayer&&_.JE(6)};
_.d.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++){var Q=_.V(this.data.impressionEndpoints[A],_.wF);Q&&this.ytComponentBehavior.resolveCommand(Q)}};
_.d.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.pD(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Qr.Object.defineProperties(ba.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!((A=this.data)==null||!A.headerImageDark)&&!((Q=this.data)==null||!Q.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.secondaryButton)}}});
ba.prototype.onPopupClosed=ba.prototype.onPopupClosed;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ba.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.NO.YtVisibilityBehavior),_.c("design:type",Object)],ba.prototype,"ytVisibilityBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ba.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],ba.prototype,"actionButtonClass",void 0);_.E([_.C(),_.c("design:type",Object)],ba.prototype,"dismissButtonId",void 0);_.E([_.C(),_.c("design:type",Object)],ba.prototype,"dialogDismiss",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],ba.prototype,"hasHeaderImage",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],ba.prototype,"hasPremiumButton",null);
_.E([_.C({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.c("design:type",Boolean)],ba.prototype,"inPlayer",void 0);_.E([_.V1("#dismiss-button"),_.c("design:type",HTMLElement)],ba.prototype,"dismissButton",void 0);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ba.prototype,"onPopupClosed",null);_.E([_.h({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],ba);
_.W(ba,"ytd-enforcement-message-view-model",function(){if(B5l!==void 0)return B5l;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return B5l=A},{mode:1});var pys;var PLx;var fQ=function(){var A=_.q.apply(this,arguments)||this;A.TEST_ONLY={immediateValidation:function(){A.immediateValidation()},
onValidationResponse:function(Q){A.onValidationResponse(Q)},
onGenerateHandleFromNameResponse:function(Q){A.onGenerateHandleFromNameResponse(Q)}};
return A};
_.O(fQ,_.q);_.d=fQ.prototype;_.d.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.d.validate=function(){this.immediateValidation()};
_.d.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.d.setHandleInputValue=function(A){this.handleDir=this.getHandleDir(A);this.handleInput.value=A;this.validationState={status:"PENDING"};this.immediateValidation()};
_.d.getHandleDir=function(A){var Q=A===""&&!1;return(Q=_.ok1.test.call(_.ok1,A))?"rtl":"ltr"};
_.d.onDataChanged=function(){var A,Q;this.handleDir=this.getHandleDir((Q=(A=this.data)==null?void 0:A.handle)!=null?Q:"");var b;this.validationState=((b=this.data)==null?0:b.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var f;((f=this.data)==null?0:f.validateOnInit)&&this.immediateValidation()};
_.d.stopPropagation=function(A){A.stopPropagation()};
_.d.onInput=function(){var A;this.handleDir=this.getHandleDir((A=this.handleInput.value)!=null?A:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.d.onFocusout=function(A){this.handleInput.contains(A.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.d.delayedValidation=function(){var A,Q;this.debouncedValidation((Q=(A=this.data)==null?void 0:A.validationDelayMs)!=null?Q:1E3)};
_.d.immediateValidation=function(){this.debouncedValidation(0)};
_.d.debouncedValidation=function(A){var Q=this;_.Yl(this,"debouncedValidation",function(){var b,f=Q.staticValidation((b=Q.handleInput.value)!=null?b:"");if(f!==void 0)Q.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:f};else{var a;if((a=Q.data)!=null&&a.validateChannelHandleCommand){Q.validationState={status:"LOADING"};var T;Q.ytComponentBehavior.resolveCommand(Q.data.validateChannelHandleCommand,{form:{handle:(T=Q.handleInput.value)!=null?T:""},commandController:{onSuccess:function(G,
p){Q.onValidationResponse(p)},
onServerError:function(G,p){Q.onValidationServerError(p)}}})}else Q.handleUnexpectedValidationError(new _.IO("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",Q.data))}},A)};
_.d.staticValidation=function(A){var Q;if(((Q=this.data)==null?void 0:Q.channelHandleStaticValidationParams)!==void 0){Q=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(A)&&Q.validValueRegexpErrorMessage!==void 0)return Q.validValueRegexpErrorMessage;if(Q.minLength!==void 0&&A.length<Q.minLength&&Q.minLengthErrorMessage!==void 0)return Q.minLengthErrorMessage;if(Q.maxLength!==void 0&&A.length>Q.maxLength&&Q.maxLengthErrorMessage!==void 0)return Q.maxLengthErrorMessage}};
_.d.onValidationResponse=function(A){var Q=_.V(A.result,MNN);Q===void 0?this.handleUnexpectedValidationError(new _.IO("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",A)):this.handleValidationResultRenderer(Q)};
_.d.onValidationServerError=function(A){this.handleUnexpectedValidationError(new _.IO("ValidateChannelHandle request failed.",A))};
_.d.handleValidationResultRenderer=function(A){if(A.handle===void 0)this.handleUnexpectedValidationError(new _.IO("ChannelHandleValidationResultRenderer does not contain handle.",A));else if(A.handle===this.handleInput.value)switch(A.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:A.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:A.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.IO("Unrecognized ChannelHandleValidationResult",A));break;default:_.x1(A.result)}};
_.d.handleUnexpectedValidationError=function(A){var Q;this.validationState={status:"UNKNOWN",handle:(Q=this.handleInput.value)!=null?Q:""};_.Wv(A)};
_.d.stopEventPropagation=function(A){A.stopPropagation()};
_.d.updateHandleOnChannelNameInputChange=function(A){if(!this.wasEdited){var Q,b;this.debouncedGenerateHandleFromName(A,(b=(Q=this.data)==null?void 0:Q.validationDelayMs)!=null?b:1E3)}};
_.d.debouncedGenerateHandleFromName=function(A,Q){var b=this;_.Yl(this,"debouncedGenerateHandleFromName",function(){var f;(f=b.data)!=null&&f.validateChannelHandleCommand?b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{name:A},commandController:{onSuccess:function(a,T){b.onGenerateHandleFromNameResponse(T)},
onServerError:function(a,T){_.Wv(new _.IO("Error calling GenerateHandleFromName",T))}}}):_.Wv(new _.IO("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",b.data))},Q)};
_.d.onGenerateHandleFromNameResponse=function(A){this.wasEdited||((A=_.V(A.result,lBx))?this.setHandleInputValue(A.handle):_.Wv(new _.IO("Invalid results when generate handle from name")))};
_.Qr.Object.defineProperties(fQ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var A;if(A=this.validationState)A=this.validationState,A=A.status==="OK"||A.status==="UNKNOWN";if(A)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.validationState)==null?void 0:A.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 A,Q=(A=this.channelHandleEntity)==null?void 0:A.handleEdit;this.handleDir=this.getHandleDir(Q!=null?Q:"");return Q}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var A,Q;if(((A=this.data)==null?void 0:(Q=A.channelHandleStaticValidationParams)==null?void 0:Q.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
fQ.prototype.stopEventPropagation=fQ.prototype.stopEventPropagation;fQ.prototype.onDataChanged=fQ.prototype.onDataChanged;fQ.prototype.applyHandleEdit=fQ.prototype.applyHandleEdit;fQ.prototype.onValueChanged=fQ.prototype.onValueChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],fQ.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],fQ.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fQ.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Boolean)],fQ.prototype,"wasEdited",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],fQ.prototype,"handleDir",void 0);_.E([_.V1("#handle-input"),_.c("design:type",Object)],fQ.prototype,"handleInput",void 0);_.E([_.C(),_.H("validationState"),_.c("design:type",Object),_.c("design:paramtypes",[])],fQ.prototype,"value",null);
_.E([_.iN("value"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],fQ.prototype,"onValueChanged",null);_.E([_.H("validationState"),_.c("design:type",Object),_.c("design:paramtypes",[])],fQ.prototype,"errorIndicator",null);_.E([_.C({reflectToAttribute:!0}),_.H("errorIndicator"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],fQ.prototype,"borderErrorIndicator",null);
_.E([_.C({selectorArgs:["data.channelHandleEntityKey"],selector:function(A,Q){return _.Me(A.entities,"channelHandle",Q)}}),
_.c("design:type",Object)],fQ.prototype,"channelHandleEntity",void 0);_.E([_.H("channelHandleEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],fQ.prototype,"handleEdit",null);_.E([_.iN("handleEdit"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],fQ.prototype,"applyHandleEdit",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],fQ.prototype,"onDataChanged",null);
_.E([_.H("data.channelHandleStaticValidationParams.validValueRegexp"),_.c("design:type",Object),_.c("design:paramtypes",[])],fQ.prototype,"validValueRegexp",null);_.E([_.Kc("yt-service-request-sent"),_.Kc("yt-service-request-completed"),_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],fQ.prototype,"stopEventPropagation",null);_.E([_.h({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],fQ);
_.W(fQ,"ytd-channel-handle-input-renderer",function(){if(PLx!==void 0)return PLx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return PLx=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var ad=function(){var A=_.q.apply(this,arguments)||this;A.data=null;A.errorMessage=null;A.isLoading=!0;A.hideContainer=!1;A.enableNewChannelCreationOnIdForAll=_.K("enable_new_channel_creation_for_id4all");A.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"};A.testOnly={setErrorMessage:function(Q){A.resetErrorState();
A.setErrorState(Q)}};
return A};
_.O(ad,_.q);_.d=ad.prototype;_.d.created=function(){this.logScreenVe()};
_.d.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")};
_.d.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var A;((A=this.zeroStepErrorMessageEntity)==null?0:A.value)&&this.set("errorMessage",_.sr(this.zeroStepErrorMessageEntity.value))};
_.d.onCreateTap=function(){var A=this;if(this.data&&this.data.channelCreationEndpoint){var Q,b;if(!((Q=this.data.createChannelButton)==null?0:(b=Q.buttonRenderer)==null?0:b.isDisabled)){var f;if((f=this.nameInput)!=null&&f.value){this.setLoadingState();var a,T;Q=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((T=this.handleInput)==null?void 0:T.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:Q,commandController:{onSuccess:function(G,p){A.onChannelCreationEndpointSuccess(p);A.obakeImageSource&&_.R4("channelCreatedWithObakeImage",{imageSourceType:A.obakeImageSource})},
onServerError:function(){A.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.d.endpointRequiresServiceRequestAction=function(A){return!!_.V(A,_.hb)||!!_.V(A,LdO)};
_.d.isNavigateAction=function(A){var Q;return!!_.V(A,_.pI)||!!_.V((Q=_.V(A,JXl))==null?void 0:Q.command,_.pI)};
_.d.isPlaylistAction=function(A){return!!_.V(A,_.xj)||!!_.V(A,_.yg)};
_.d.onChannelCreationEndpointSuccess=function(A){if(A.createChannelError){var Q;this.setErrorState((Q=A.createChannelError)==null?void 0:Q.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.K("enable_secondary_channel_creation_form")&&A.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(A.navigationEndpoint);if(A.actions){Q=_.F(A.actions);for(var b=Q.next();!b.done;b=Q.next())if(b=b.value,this.endpointRequiresServiceRequestAction(b)&&this.ytComponentBehavior.resolveCommand(b),
this.isNavigateAction(b)){var f=void 0;b=_.V((f=_.V(b,JXl))==null?void 0:f.command,_.pI);f=void 0;this.isPlaylistAction((f=b)==null?void 0:f.endpoint)&&(_.pD(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),f=void 0,this.ytComponentBehavior.resolveCommand((f=b)==null?void 0:f.endpoint))}}A.actions&&A.actions.some(function(a){var T;return _.V(a,_.pI)||_.V((T=_.V(a,JXl))==null?void 0:T.command,_.pI)})||_.pD(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.d.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.d.onCancelTap=function(){var A,Q,b;if(!((A=this.data)==null?0:(Q=A.cancelButton)==null?0:(b=Q.buttonRenderer)==null?0:b.isDisabled)){var f,a,T;A=(f=this.data)==null?void 0:(a=f.cancelButton)==null?void 0:(T=a.buttonRenderer)==null?void 0:T.command;if(!A||!_.V(A,_.oWC)){var G;this.nameInput&&((G=this.data)==null?0:G.name)&&(this.nameInput.value=this.data.name);var p;this.handleInput&&((p=this.data)==null?0:p.channelHandleInput)&&(this.handleInput.data=_.V(this.data.channelHandleInput,Kdq));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.d.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.d.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.d.onClearProfilePhotoTap=function(){var A,Q,b;((A=this.data)==null?0:(Q=A.clearProfilePhotoButton)==null?0:(b=Q.buttonRenderer)==null?0:b.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.d.onEditAvatarTap=function(){var A,Q,b;((A=this.data)==null?0:(Q=A.editAvatarButton)==null?0:(b=Q.buttonRenderer)==null?0:b.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.d.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)};
_.d.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var A;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((A=this.data)==null?0:A.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.d.setErrorState=function(A){this.resetErrorState();if(A)this.set("errorMessage",A);else{var Q;if((Q=this.zeroStepErrorMessageEntity)==null?0:Q.value)this.set("errorMessage",_.sr(this.zeroStepErrorMessageEntity.value));else{var b;((b=this.data)==null?0:b.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.d.fetchImageBlobWithAlr=function(A,Q){Q=Q===void 0?5:Q;var b=this,f,a,T,G,p;return _.B(function(P){switch(P.nextAddress){case 1:return P.yield(fetch(A,{method:"GET",mode:"cors"}),2);case 2:f=P.yieldResult;if(f.ok){P.jumpTo(3);break}if(Q===0)throw Error();a=b.addJitter(Math.pow(2,5-Q));return P.yield(new Promise(function(U){setTimeout(U,a*1E3)}),4);
case 4:return P.return(b.fetchImageBlobWithAlr(A,Q-1));case 3:if(!f.headers.get("content-type").split(";").some(function(U){return U.trim()==="text/plain"})){P.jumpTo(5);
break}T=b;G=T.fetchImageBlobWithAlr;return P.yield(f.text(),6);case 6:return P.return(G.call(T,P.yieldResult,Q-1));case 5:return P.yield(f.blob(),7);case 7:return p=P.yieldResult,P.return(p)}})};
_.d.addJitter=function(A){var Q=A*.3*Math.random();Math.random()>.5&&(Q*=-1);return A+Q};
_.d.openProfilePicturePicker=function(){var A=this,Q,b,f,a,T;return _.B(function(G){if(G.nextAddress==1){Q=A.data.scottyUploadUrl;if(!Q)return G.return();b=document.documentElement.hasAttribute("dark");f=document.body.style.colorScheme;b&&(document.body.style.colorScheme="dark");a=nHO(kfN(Oot(LIt(b?"dark":"light")),function(p){var P,U,L,M,l;return _.B(function(J){if(J.nextAddress==1)return P=_.yH(xAM(new ZC(p.photoUrl,!1)).build(),"alr","yes"),A.obakeImageSource=A.pictureChangeSourceToObakeImageSourceType(p.photoSource),
_.ML(J,2),A.setLoadingState(),J.yield(A.fetchImageBlobWithAlr(P),4);if(J.nextAddress!=2)return U=J.yieldResult,L=new FileReader,L.addEventListener("load",function(){var n,t,g,e,x,D;return _.B(function(w){if(w.nextAddress==1){if(U.size>15728640)return A.setErrorState((n=A.data)==null?void 0:n.imageSizeErrorMessage),_.Wv(Error("kl")),w.return();if(!L.result)return A.setErrorState((t=A.data)==null?void 0:t.genericImageLoadErrorMessage),_.Wv(Error("ll")),w.return();g=L.result;_.ML(w,2);return w.yield(yuM(U,
Q),4)}if(w.nextAddress!=2)return e=w.yieldResult,A.handleImageUpdatedAction(g,e),A.resetErrorState(),_.Z1(w,0);x=_.Vw(w);A.setErrorState((D=A.data)==null?void 0:D.uploadErrorMessage);if(x instanceof Error)_.en(x);else{var u=new _.IO(JSON.stringify(x));_.en(u)}_.Oi(w)})}),L.readAsDataURL(U),_.Z1(J,0);
M=_.Vw(J);A.setErrorState((l=A.data)==null?void 0:l.genericImageLoadErrorMessage);M instanceof Error?_.en(M):_.hq(new _.IO(JSON.stringify(M)));_.Oi(J)})}),function(){A.hideContainer=!1;
document.body.style.colorScheme=f});
_.ML(G,2);return G.yield(a.openPicker(),4)}if(G.nextAddress!=2)return _.Z1(G,0);_.Vw(G);A.setErrorState((T=A.data)==null?void 0:T.selectImageErrorMessage);_.Oi(G)})};
_.d.pictureChangeSourceToObakeImageSourceType=function(A){switch(A){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.d.logScreenVe=function(){_.Mk(_.IP(),124448)};
_.d.graftServerVe=function(){var A=_.hx(),Q,b,f=(Q=this.data)==null?void 0:(b=Q.loggingDirectives)==null?void 0:b.trackingParams;f&&A&&(this.channelCreationFormVe=_.IP().graftServerVe(f,A),A={visualElement:this.channelCreationFormVe},_.n0().reportShown(A))};
_.d.isNameChanged=function(A){var Q;return((Q=this.data)==null?void 0:Q.name)!==A};
_.d.isHandleChanged=function(A){var Q,b=_.V((Q=this.data)==null?void 0:Q.channelHandleInput,Kdq);return b&&A?b.handle!==A:!1};
_.d.handleImageUpdatedAction=function(A,Q){this.hideContainer=!1;this.previewDataUrl=A;this.encryptedBlobId=Q};
_.d.handleImageSelectionErrorAction=function(A){this.hideContainer=!1;this.setErrorState(A)};
_.d.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.d.showContainer=function(){this.hideContainer=!1};
_.d.maybeWipeZeroStepErrorMessage=function(){var A,Q=(A=this.data)==null?void 0:A.zeroStepErrorMessageEntityKey,b;Q&&((b=this.zeroStepErrorMessageEntity)==null?0:b.value)&&this.ytdReduxBehavior.dispatch(_.HL("stringEntity",Q,{key:Q,value:""}))};
_.Qr.Object.defineProperties(ad.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 A;return((A=this.photoThumbnail)==null?0:A.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 A;return!((A=this.data)==null||!A.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.descriptionInfo}}});
ad.prototype.dataChanged=ad.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ad.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],ad.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ad.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],ad.prototype,"errorMessage",void 0);
_.E([_.C(),_.c("design:type",Object)],ad.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",String)],ad.prototype,"previewDataUrl",void 0);_.E([_.C(),_.c("design:type",Number)],ad.prototype,"obakeImageSource",void 0);_.E([_.C(),_.c("design:type",Object)],ad.prototype,"hideContainer",void 0);_.E([_.V1("#title-input"),_.c("design:type",Object)],ad.prototype,"nameInput",void 0);_.E([_.V1("#handle-input"),_.c("design:type",Object)],ad.prototype,"handleInput",void 0);
_.E([_.C(),_.c("design:type",Boolean)],ad.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.E([_.C({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Sm6}),_.c("design:type",Object)],ad.prototype,"zeroStepErrorMessageEntity",void 0);_.E([_.H("data","data.isDefaultProfilePhoto","previewDataUrl"),_.c("design:type",Object),_.c("design:paramtypes",[])],ad.prototype,"photoThumbnail",null);
_.E([_.H("data","data.isDefaultProfilePhoto","photoThumbnail"),_.c("design:type",Object),_.c("design:paramtypes",[])],ad.prototype,"userSetPhotoThumbnailUrl",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ad.prototype,"hideProfilePhotoButtonLayer",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ad.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.E([_.I_("data","zeroStepErrorMessageEntity"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ad.prototype,"dataChanged",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.descriptionInfo","zeroStepErrorMessageEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],ad.prototype,"description",null);_.E([_.h({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],ad);
_.W(ad,"ytd-channel-creation-dialog-renderer",function(){if(pys!==void 0)return pys;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return pys=A},{mode:1});var XyF;var TC=function(){var A=_.q.apply(this,arguments)||this;A.isLoading=!1;A.isDisabled=!1;return A};
_.O(TC,_.q);TC.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
TC.prototype.updateDisabled=function(){var A;this.isDisabled=this.isLoading||((A=this.handleInput)==null?void 0:A.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
TC.prototype.onSaveClick=function(){var A=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var Q;((Q=this.data)==null?void 0:Q.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 b;if((b=A.data)==null?0:b.nextEndpoint){var f;A.ytComponentBehavior.resolveCommand((f=A.data)==null?void 0:f.nextEndpoint)}else A.isLoading=
!1,A.closeDialog()},
onServerError:function(){A.isLoading=!1;A.handleInput.validate();var b;A.errorMessage=(b=A.data)==null?void 0:b.errorMessage}}}))}};
TC.prototype.closeDialog=function(){_.pD(this.hostElement,"yt-close-popup-action",[this.is])};
TC.prototype.updateDisabled=TC.prototype.updateDisabled;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],TC.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],TC.prototype,"data",void 0);_.E([_.V1("#handle-input"),_.c("design:type",Object)],TC.prototype,"handleInput",void 0);_.E([_.iN("isLoading"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],TC.prototype,"updateDisabled",null);
_.E([_.h({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],TC);
_.W(TC,"ytd-channel-handle-edit-dialog-renderer",function(){if(XyF!==void 0)return XyF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return XyF=A},{mode:1});var SwK;var dH=function(){return _.q.apply(this,arguments)||this};
_.O(dH,_.q);dH.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],dH.prototype,"data",void 0);_.E([_.h({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],dH);
_.W(dH,"ytd-channel-switcher-footer-renderer",function(){if(SwK!==void 0)return SwK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return SwK=A},{mode:1});var U2N;var L0M;var Fn=function(){return _.q.apply(this,arguments)||this};
_.O(Fn,_.q);Fn.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Fn.prototype.onIronChange=Fn.prototype.onIronChange;_.E([_.C(),_.c("design:type",Object)],Fn.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.c("design:type",Function)],Fn.prototype,"onDontAskAgainChanged",void 0);_.E([_.V1("#checkbox"),_.c("design:type",Object)],Fn.prototype,"checkbox",void 0);_.E([_.Kc("iron-change"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Fn.prototype,"onIronChange",null);
_.E([_.h({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Fn);
_.W(Fn,"ytd-identity-prompt-footer-renderer",function(){if(L0M!==void 0)return L0M;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return L0M=A},{mode:1});var Pw=function(){var A=_.q.apply(this,arguments)||this;A.dontAskAgain=!1;A.showPopup=!1;A.boundDontAskAgainChanged=function(Q){A.dontAskAgainChanged(Q)};
A.boundOnAccountItemTap=function(Q){A.onAccountItemTap(Q)};
return A};
_.O(Pw,_.q);_.d=Pw.prototype;
_.d.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]]"}}}}}};
_.d.ready=function(){var A=this;_.Bj(this.hostElement).querySelector("#container").addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.d.dontAskAgainChanged=function(A){this.dontAskAgain=A};
_.d.onAccountItemTap=function(A){if(A){var Q={};this.dontAskAgain&&(Q={dont_ask_again:this.dontAskAgain});_.Yr(A,Q)}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.d.redirectOnlyAccount=function(A){A.sections&&A.sections.length>0&&(A=_.V(A.sections[0],_.kNp),(A==null?0:A.contents)&&(A==null?void 0:A.contents.length)<=1?(A=_.YQ(window.location.href),(A==null?0:A.next)&&_.KEi(A.next)?_.Yr(A.next):_.Yr("/")):this.showPopup=!0)};
Pw.prototype.dataChanged=Pw.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Pw.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!1}),_.c("design:type",Object)],Pw.prototype,"dontAskAgain",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Pw.prototype,"showPopup",void 0);_.E([_.C({reflectToAttribute:!1}),_.c("design:type",Object)],Pw.prototype,"boundDontAskAgainChanged",void 0);_.E([_.C({reflectToAttribute:!1}),_.c("design:type",Object)],Pw.prototype,"boundOnAccountItemTap",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Pw.prototype,"dataChanged",null);
_.E([_.h({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Pw);
_.W(Pw,"ytd-channel-switcher-renderer",function(){if(U2N!==void 0)return U2N;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return U2N=A},{mode:1});var M0r;var Xn=function(){return _.q.apply(this,arguments)||this};
_.O(Xn,_.q);_.Qr.Object.defineProperties(Xn.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.E([_.C(),_.c("design:type",Object)],Xn.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],Xn.prototype,"steps",null);_.E([_.h({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Xn);
_.W(Xn,"ytd-channel-transfer-stepper-renderer",function(){if(M0r!==void 0)return M0r;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return M0r=A},{mode:1});var lHK;var SS=function(){var A=_.q.apply(this,arguments)||this;A.data=null;A.isError=!1;A.isLoading=!1;return A};
_.O(SS,_.q);_.d=SS.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.d.computeProfileName=function(A){return A?A.givenNameValue+" "+A.familyNameValue:""};
_.d.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)};
_.d.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)};
SS.prototype.onYtServiceRequestError=SS.prototype.onYtServiceRequestError;SS.prototype.onYtServiceRequestSent=SS.prototype.onYtServiceRequestSent;SS.prototype.dataChanged=SS.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],SS.prototype,"data",void 0);
_.E([_.C({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.c("design:type",String)],SS.prototype,"profileName",void 0);_.E([_.C(),_.c("design:type",Object)],SS.prototype,"isError",void 0);_.E([_.C(),_.c("design:type",Object)],SS.prototype,"isLoading",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],SS.prototype,"dataChanged",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],SS.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],SS.prototype,"onYtServiceRequestError",null);_.E([_.h({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],SS);
_.W(SS,"ytd-channel-warm-welcome-cont-renderer",function(){if(lHK!==void 0)return lHK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return lHK=A},{mode:1});var K0x;var U5=function(){var A=_.q.apply(this,arguments)||this;A.data=null;return A};
_.O(U5,_.q);U5.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
U5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],U5.prototype,"data",void 0);_.E([_.h({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],U5);
_.W(U5,"ytd-channel-warm-welcome-renderer",function(){if(K0x!==void 0)return K0x;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return K0x=A},{mode:1});var iBl;var LQ=function(){return _.q.apply(this,arguments)||this};
_.O(LQ,_.q);_.Qr.Object.defineProperties(LQ.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.authorThumbnail)||{}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],LQ.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],LQ.prototype,"thumbnailDetails",null);_.E([_.h({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],LQ);
_.W(LQ,"ytd-comment-preview-renderer",function(){if(iBl!==void 0)return iBl;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return iBl=A},{mode:1});var J_q;var Mi=function(){return _.q.apply(this,arguments)||this};
_.O(Mi,_.q);Mi.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Qr.Object.defineProperties(Mi.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.submitButton}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Mi.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Mi.prototype,"submitButton",null);_.E([_.h({is:"ytd-notice-renderer",disableElementRegistration:!0})],Mi);
_.W(Mi,"ytd-notice-renderer",function(){if(J_q!==void 0)return J_q;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return J_q=A},{mode:1});var V0F;var la=function(){return _.q.apply(this,arguments)||this};
_.O(la,_.q);la.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],la.prototype,"data",void 0);_.E([_.h({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],la);
_.W(la,"ytd-preview-comment-dialog-content",function(){if(V0F!==void 0)return V0F;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return V0F=A},{mode:1});var OB7;var KQ=function(){return _.q.apply(this,arguments)||this};
_.O(KQ,_.q);KQ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
KQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],KQ.prototype,"data",void 0);_.E([_.h({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],KQ);
_.W(KQ,"ytd-preview-comment-dialog-renderer",function(){if(OB7!==void 0)return OB7;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return OB7=A},{mode:1});var nO7;var kAx=_.K("web_button_rework")&&_.Ep("BUTTON_REWORK")||_.K("web_button_rework_with_live"),ia=function(){var A=_.q.apply(this,arguments)||this;A.closeLabel=_.JQ("CLOSE");A.selectedAmountIndex=1;A.privacyCheckboxValue=!1;A.useAmsterdamStyle=kAx;A.amountPlaceholderIndex=-1;return A};
_.O(ia,_.q);_.d=ia.prototype;_.d.onAmountClick=function(A){this.selectedAmountIndex=_.Bj(this.hostElement).querySelector("#amounts").indexForElement(A.currentTarget)};
_.d.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.pD(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.d.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.pD(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.pD(this.hostElement,"yt-close-popup-action",[this.is]);var A;(A=_.BL())==null||A.getPlayerPromise().then(function(Q){Q.pauseVideo()})}};
_.d.donationCallback=function(A){A.success?(this.hostElement.hasAttribute("live-chat")&&A.response&&A.response.data&&A.response.data.actions&&_.pD(this.hostElement,"yt-live-chat-open-popup",[A.response.data.actions[0]]),_.pD(this.hostElement,"yt-close-popup-action",[this.is]),_.pD(this.hostElement,"yt-live-chat-close-buy-flow")):A.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(A.errorMessageRenderer)};
_.d.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Bj(this.hostElement).querySelector("#custom-amount-input").focus()};
_.d.updateConfirmationDialogTextWithAmount=function(A){var Q=this.getConfirmDialogRuns();Q&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(Q),"text"],this.getFormattedAmount(A))};
_.d.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.d.getAmountPlaceholderIndex=function(A){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=A.findIndex(function(Q){return Q.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.d.getFormattedAmount=function(A){var Q;return(new _.Z5(4,((Q=this.data)==null?void 0:Q.currencyCode)||"")).format(A)};
_.d.isAmountValid=function(A){if(A==="")return!1;A=Number(A)*1E6;var Q=this.get("minAmountMicros",this.data),b=this.get("maxAmountMicros",this.data);return Q&&A<Q||b&&A>b?!1:!0};
_.d.setInputError=function(){this.shouldShowValidationError?_.Bj(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Bj(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.d.setInitialCheckboxValue=function(){var A;this.privacyCheckboxValue=!((A=this.data)==null||!A.privacyCheckboxInitialState)};
_.d.updateCustomAmountInputFromBinding=function(A){this.customAmountInput=A.detail.value};
_.d.updatePrivacyCheckboxValueFromBinding=function(A){this.privacyCheckboxValue=A.detail.value};
_.Qr.Object.defineProperties(ia.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var A=this,Q,b;return((Q=this.data)==null?void 0:(b=Q.suggestedAmounts)==null?void 0:b.map(function(f,a){return{buttonRenderer:{style:A.selectedAmountIndex===a?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:f.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 A;return!((A=this.data)==null||!A.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 A=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(A&&this.amountMicros!==null)return Object.assign({},A,{ypcGetCartEndpoint:Object.assign({},A.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 A=this.get("confirmLargeAmount",this.data);if(A&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),A}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.get("donateButton.buttonRenderer",this.data);if(A)return Object.assign({},A,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
ia.prototype.setInitialCheckboxValue=ia.prototype.setInitialCheckboxValue;ia.prototype.setInputError=ia.prototype.setInputError;ia.prototype.setFocusOnCustomAmountInput=ia.prototype.setFocusOnCustomAmountInput;_.E([_.I(zRq),_.c("design:type",Object)],ia.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ia.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],ia.prototype,"closeLabel",void 0);_.E([_.C(),_.c("design:type",Object)],ia.prototype,"selectedAmountIndex",void 0);_.E([_.C(),_.c("design:type",String)],ia.prototype,"customAmountInput",void 0);_.E([_.C(),_.c("design:type",Object)],ia.prototype,"privacyCheckboxValue",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],ia.prototype,"useAmsterdamStyle",void 0);_.E([_.iN("customAmount"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ia.prototype,"setFocusOnCustomAmountInput",null);_.E([_.H("data","selectedAmountIndex"),_.c("design:type",Array),_.c("design:paramtypes",[])],ia.prototype,"suggestedAmountButtons",null);
_.E([_.H("data","selectedAmountIndex"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ia.prototype,"isCustomAmountSelected",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ia.prototype,"showPrivacyCheckbox",null);_.E([_.H("data","selectedAmountIndex","customAmount"),_.c("design:type",Object),_.c("design:paramtypes",[])],ia.prototype,"amountMicros",null);
_.E([_.H("isCustomAmountSelected","customAmountInput"),_.c("design:type",Object),_.c("design:paramtypes",[])],ia.prototype,"customAmount",null);_.E([_.H("customAmount"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ia.prototype,"shouldShowValidationError",null);_.E([_.H("customAmount"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ia.prototype,"isDonateButtonEnabled",null);
_.E([_.H("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.c("design:type",Object),_.c("design:paramtypes",[])],ia.prototype,"donateCommand",null);_.E([_.H("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.c("design:type",Object),_.c("design:paramtypes",[])],ia.prototype,"donateCommandWithConfirmation",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],ia.prototype,"largeDonationThreshold",null);
_.E([_.H("customAmount","donateCommand","amountMicros"),_.c("design:type",Object),_.c("design:paramtypes",[])],ia.prototype,"confirmLargeAmountCommand",null);_.E([_.H("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.c("design:type",Object),_.c("design:paramtypes",[])],ia.prototype,"donateButtonRenderer",null);_.E([_.iN("shouldShowValidationError"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ia.prototype,"setInputError",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ia.prototype,"setInitialCheckboxValue",null);_.E([_.h({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],ia);
_.W(ia,"ytd-donation-amount-picker-renderer",function(){if(nO7!==void 0)return nO7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return nO7=A},{mode:1});var IHM;var Jw=function(){return _.q.apply(this,arguments)||this};
_.O(Jw,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Jw.prototype,"ytComponentBehavior",void 0);_.E([_.C({}),_.c("design:type",Object)],Jw.prototype,"data",void 0);_.E([_.h({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Jw);
_.W(Jw,"ytd-donation-post-transaction-content",function(){if(IHM!==void 0)return IHM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return IHM=A},{mode:1});var HBN;var VX=function(){return _.q.apply(this,arguments)||this};
_.O(VX,_.q);VX.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.E([_.C({}),_.c("design:type",Object)],VX.prototype,"data",void 0);_.E([_.h({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],VX);
_.W(VX,"ytd-donation-post-transaction-renderer",function(){if(HBN!==void 0)return HBN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return HBN=A},{mode:1});var CLN;var qws;var O5=function(){return _.q.apply(this,arguments)||this};
_.O(O5,_.q);O5.prototype.computeIsStreamingProvider=function(A){return!!A.isStreamingShelf};
O5.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],O5.prototype,"data",void 0);_.E([_.C({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],O5.prototype,"isStreamingProvider",void 0);
_.E([_.h({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],O5);
_.W(O5,"ytd-media-provider-renderer",function(){if(qws!==void 0)return qws;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return qws=A},{mode:1});var oOO;var nQ=function(){return _.q.apply(this,arguments)||this};
_.O(nQ,_.q);nQ.prototype.observeLightsourcePalette=function(){var A,Q=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;Q&&_.vz(this.hostElement,Q)};
nQ.prototype.observeLightsourcePalette=nQ.prototype.observeLightsourcePalette;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],nQ.prototype,"data",void 0);
_.E([_.iN("data.vibrantsourceColorPaletteData"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nQ.prototype,"observeLightsourcePalette",null);_.E([_.h({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],nQ);
_.W(nQ,"ytd-streaming-pop-up-dialog",function(){if(oOO!==void 0)return oOO;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return oOO=A},{mode:1});var kV=function(){return _.q.apply(this,arguments)||this};
_.O(kV,_.q);kV.prototype.onPopupOpened_=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.fJ().resolve(_.de).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
kV.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
kV.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"}}}}};
kV.prototype.onPopupOpened_=kV.prototype.onPopupOpened_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.sM),_.c("design:type",Object)],kV.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kV.prototype,"data",void 0);
_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],kV.prototype,"onPopupOpened_",null);_.E([_.h({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],kV);
_.W(kV,"ytd-brandconnect-popup-renderer",function(){if(CLN!==void 0)return CLN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return CLN=A},{mode:1});var t0l;var Id=function(){return _.q.apply(this,arguments)||this};
_.O(Id,_.q);_.d=Id.prototype;_.d.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){for(var A=0;A<this.getOptionRenderers().length;A++)this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.d.updateSubmitButton=function(A){this.set("data.submitButton.buttonRenderer.isDisabled",!A)};
_.d.computeAlt=function(A){return _.mO(A)};
_.d.onDismissTap=function(){_.pD(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.getOptionRenderers=function(A){return(A=A||this.data)&&A.options?A.options.reduce(function(Q,b){b.checkboxSurveyOptionRenderer&&Q.push(b.checkboxSurveyOptionRenderer);return Q},[]):[]};
_.d.onOptionChange=function(A){var Q=this,b=!1;if(A.detail.checked)for(var f=this.getOptionRenderers().find(function(p){return p.value===A.detail.value}),a=this.getOptionRenderers(),T=0;T<a.length;T++){var G=a[T];
this.notifyPath("data.options."+T+".checkboxSurveyOptionRenderer.checked");G.checked&&((f==null?0:f.isExclusiveOption)?!G.isExclusiveOption:G.isExclusiveOption)?this.set("data.options."+T+".checkboxSurveyOptionRenderer.checked",!1):G.checked&&(b=!0)}else b=this.getOptionRenderers().some(function(p,P){Q.notifyPath("data.options."+P+".checkboxSurveyOptionRenderer.checked");return p.checked});
this.updateSubmitButton(b)};
_.d.onSubmitTap=function(){var A=this.getOptionRenderers().filter(function(T){return T.checked});
if(A.length!==0){var Q=A.map(function(T){return T.responseEndpoint});
A=[];for(var b=1;b<Q.length;b++){var f=void 0,a=(f=_.V(Q[b],_.WZ))==null?void 0:f.feedbackToken;a&&A.push(a)}Q=[Q[0]];A.length&&Q.push({extra_feedback_tokens:A});_.X5(this.hostElement,Q);_.pD(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);A=this.data&&this.data.submitActions||[];if(_.K("kevlar_command_handler_migration_killswitch"))_.ST(this.hostElement,A,this.hostElement);else for(A=_.F(A),Q=A.next();!Q.done;Q=A.next())this.ytComponentBehavior.resolveCommand(Q.value)}};
Id.prototype.onOptionChange=Id.prototype.onOptionChange;Id.prototype.dataChanged=Id.prototype.dataChanged;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],Id.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Id.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.E([_.I(FtK),_.c("design:type",Object)],Id.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Id.prototype,"data",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Id.prototype,"dataChanged",null);
_.E([_.Kc("ytd-checkbox-survey-option-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Id.prototype,"onOptionChange",null);_.E([_.h({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Id);
_.W(Id,"ytd-checkbox-survey-renderer",function(){if(t0l!==void 0)return t0l;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return t0l=A},{mode:1});var r_x;var jnx;var Hw=function(){return _.q.apply(this,arguments)||this};
_.O(Hw,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.E([_.I(d0n),_.c("design:type",Object)],Hw.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Hw.prototype,"data",void 0);_.E([_.h({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Hw);
_.W(Hw,"ytd-dismissal-reason-text-renderer",function(){if(jnx!==void 0)return jnx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return jnx=A},{mode:1});var RsO;var CQ=function(){return _.q.apply(this,arguments)||this};
_.O(CQ,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.E([_.I(d0n),_.c("design:type",Object)],CQ.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],CQ.prototype,"data",void 0);_.E([_.h({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],CQ);
_.W(CQ,"ytd-dismissal-reason-video-renderer",function(){if(RsO!==void 0)return RsO;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return RsO=A},{mode:1});var qi=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(qi,_.q);_.d=qi.prototype;_.d.created=function(){this.selectedFeedbackTokens=new px};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.d.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.d.onDismissalReasonSelected=function(A,Q){_.Bn(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(Q);this.hasReasonsSelected=!0};
_.d.onDismissalReasonDeselected=function(A,Q){_.Bn(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(Q);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.d.onCancelTap=function(){_.pD(this.hostElement,"yt-close-popup-action")};
_.d.onSubmitTap=function(){var A=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(A={feedback_tokens:A},_.fJ().resolve(_.de).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}));_.pD(this.hostElement,"yt-close-popup-action")};
qi.prototype.onDismissalReasonDeselected=qi.prototype.onDismissalReasonDeselected;qi.prototype.onDismissalReasonSelected=qi.prototype.onDismissalReasonSelected;qi.prototype.dataChanged=qi.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qi.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Boolean)],qi.prototype,"hasReasonsSelected",void 0);_.E([_.C(),_.c("design:type",px)],qi.prototype,"selectedFeedbackTokens",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],qi.prototype,"darkerDarkTheme",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],qi.prototype,"dataChanged",null);
_.E([_.Kc("yt-dismissal-reason-selected"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,String]),_.c("design:returntype")],qi.prototype,"onDismissalReasonSelected",null);_.E([_.Kc("yt-dismissal-reason-deselected"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,String]),_.c("design:returntype")],qi.prototype,"onDismissalReasonDeselected",null);_.E([_.h({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],qi);
_.W(qi,"ytd-dismissal-follow-up-renderer",function(){if(r_x!==void 0)return r_x;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return r_x=A},{mode:1});var gOt;var od=function(){return _.q.apply(this,arguments)||this};
_.O(od,_.q);_.d=od.prototype;_.d.onCheckedChange=function(){this.multiselect||_.Bn(this.hostElement,"yt-feedback-single-select-changed");_.Bj(this.hostElement).querySelector("#freeform").focus();_.Bn(this.hostElement,"yt-refit")};
_.d.showTextBox=function(A,Q){return A&&Q};
_.d.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))};
_.d.updateDataCheckedFromBinding=function(A){this.set("data.checked",A.detail.value)};
_.d.updateDataResultTextFromBinding=function(A){this.set("data.resultText",A.detail.value)};
od.prototype.dataChanged=od.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],od.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],od.prototype,"multiselect",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],od.prototype,"dataChanged",null);
_.E([_.h({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],od);
_.W(od,"ytd-feedback-option-renderer",function(){if(gOt!==void 0)return gOt;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return gOt=A},{mode:1});var esx;var tw=function(){return _.q.apply(this,arguments)||this};
_.O(tw,_.q);tw.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
tw.prototype.onSingleSelectCheckedChanged=function(A){A=_.Au(A);for(var Q=0;Q<this.data.options.length;Q++)if(A.data!==_.V(this.data.options[Q],a8q)){var b="data.options."+Q+".feedbackOptionRenderer.checked";this.notifyPath(b);this.set(b,!1)}};
tw.prototype.onSingleSelectCheckedChanged=tw.prototype.onSingleSelectCheckedChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tw.prototype,"data",void 0);
_.E([_.Kc("yt-feedback-single-select-changed"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],tw.prototype,"onSingleSelectCheckedChanged",null);_.E([_.h({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],tw);
_.W(tw,"ytd-feedback-question-renderer",function(){if(esx!==void 0)return esx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return esx=A},{mode:1});var hsN;var rH=function(){return _.q.apply(this,arguments)||this};
_.O(rH,_.q);rH.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
rH.prototype.getSelectedFeedbackResults=function(){for(var A={},Q=0;Q<this.data.questions.length;Q++)for(var b=_.V(this.data.questions[Q],f8t),f=0;f<b.options.length;f++){var a=_.V(b.options[f],a8q);a&&a.checked&&(A[a.optionKey]=a.resultText)}return A};
rH.prototype.onKeyUp=function(){var A=this;_.LE(_.j7,function(){_.Bn(A.hostElement,"yt-refit")});
_.j7.start()};
rH.prototype.submitSurvey=function(){var A=this.getSelectedFeedbackResults();Object.keys(A).length>0&&this.data.submitFeedbackEndpoint&&(A={survey_results:A,is_feedback_token_unencrypted:!0},_.fJ().resolve(_.de).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],rH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rH.prototype,"data",void 0);_.E([_.h({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],rH);
_.W(rH,"ytd-feedback-survey-renderer",function(){if(hsN!==void 0)return hsN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return hsN=A},{mode:1});var W0r;var vOq;var jS=function(){return _.q.apply(this,arguments)||this};
_.O(jS,_.q);jS.prototype.computeAlt=function(A){return _.mO(A)};
jS.prototype.submitResponse=function(){var A,Q;(A=this.data)!=null&&A.feedbackToken&&((Q=this.data)==null?void 0:Q.nextStageIndex)!==void 0&&(_.Pn(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Pn(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
jS.prototype.onClick=function(){this.submitResponse()};
jS.prototype.onClick=jS.prototype.onClick;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],jS.prototype,"vertical",void 0);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],jS.prototype,"onClick",null);
_.E([_.h({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],jS);
_.W(jS,"ytd-single-select-answer-option-renderer",function(){if(vOq!==void 0)return vOq;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return vOq=A},{mode:1});var EOK;var Rd=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return A};
_.O(Rd,_.q);Rd.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Rd.prototype.dataChanged=function(){var A,Q;this.vertical=((Q=(A=this.data)==null?void 0:A.answerOrientation)!=null?Q:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Rd.prototype.submitFeedback=function(A){var Q;((Q=this.data)==null?0:Q.responseEndpoint)&&A&&_.X5(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[A]}])};
Rd.prototype.dataChanged=Rd.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Rd.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],Rd.prototype,"eventForwardingBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Rd.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Rd.prototype,"vertical",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Rd.prototype,"darkerDarkTheme",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Rd.prototype,"dataChanged",null);_.E([_.h({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Rd);
_.W(Rd,"ytd-single-select-question-renderer",function(){if(EOK!==void 0)return EOK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return EOK=A},{mode:1});var gH=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return A};
_.O(gH,_.q);_.d=gH.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.jumpToStage(0)};
_.d.jumpToStage=function(A){var Q,b;if((Q=this.data)==null?0:(b=Q.stages)==null?0:b[A])this.currentStage=this.data.stages[A],this.refitAfterRender()};
_.d.computeAlt=function(A){return _.mO(A)};
_.d.computeSimpleMessage=function(A){var Q;return(Q=_.V(A,FDn))==null?void 0:Q.messageText};
_.d.computeHideDismiss=function(A){var Q;return(Q=_.V(A,RGF))==null?void 0:Q.hideParentDismissButton};
_.d.onDismissTap=function(){_.pD(this.hostElement,"yt-close-popup-action");_.V(this.currentStage,FDn)||this.data.dismissalEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.refitAfterRender=function(){var A=this;_.mL(this,function(){_.Bn(A.hostElement,"yt-refit")})};
gH.prototype.dataChanged=gH.prototype.dataChanged;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],gH.prototype,"eventForwardingBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],gH.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.I(FtK),_.c("design:type",Object)],gH.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gH.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],gH.prototype,"currentStage",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gH.prototype,"dataChanged",null);_.E([_.h({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],gH);
_.W(gH,"ytd-multi-stage-survey-renderer",function(){if(W0r!==void 0)return W0r;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return W0r=A},{mode:1});var x2N;var eS=function(){return _.q.apply(this,arguments)||this};
_.O(eS,_.q);eS.prototype.computeAlt=function(A){return _.mO(A)};
eS.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.fJ().resolve(_.de).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.pD(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.afs(!1)))};
eS.prototype.onTap=function(){this.vertical&&this.submitResponse()};
eS.prototype.onTap=eS.prototype.onTap;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],eS.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],eS.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],eS.prototype,"vertical",void 0);
_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],eS.prototype,"onTap",null);_.E([_.h({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],eS);
_.W(eS,"ytd-single-option-survey-option-renderer",function(){if(x2N!==void 0)return x2N;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return x2N=A},{mode:1});var c_d;var hw=function(){return _.q.apply(this,arguments)||this};
_.O(hw,_.q);_.d=hw.prototype;_.d.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){var A,Q;this.vertical=(((A=this.data)==null?void 0:(Q=A.surveyOrientation)==null?void 0:Q.type)||"HORIZONTAL")==="VERTICAL"};
_.d.computeAlt=function(A){return _.mO(A)};
_.d.onDismissTap=function(){_.pD(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.fJ().resolve(_.de).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.afs(!1))};
hw.prototype.dataChanged=hw.prototype.dataChanged;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],hw.prototype,"eventForwardingBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(FtK),_.c("design:type",Object)],hw.prototype,"ytdHatsSurveyBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],hw.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],hw.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],hw.prototype,"vertical",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],hw.prototype,"dataChanged",null);_.E([_.h({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],hw);
_.W(hw,"ytd-single-option-survey-renderer",function(){if(c_d!==void 0)return c_d;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return c_d=A},{mode:1});var zsr;var Ww=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(Ww,_.q);Ww.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ww.prototype.onDismissTap=function(){_.pD(this.hostElement,"yt-close-popup-action")};
Ww.prototype.onNavigate=function(){_.pD(this.hostElement,"yt-close-popup-action")};
Ww.prototype.onNavigate=Ww.prototype.onNavigate;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],Ww.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ww.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Ww.prototype,"darkerDarkTheme",void 0);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ww.prototype,"onNavigate",null);_.E([_.h({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Ww);
_.W(Ww,"ytd-survey-follow-up-renderer",function(){if(zsr!==void 0)return zsr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zsr=A},{mode:1});var wyK;var uod;var ZBx;var vw=function(){var A=_.q.apply(this,arguments)||this;A.polymer2="Element"in Polymer;return A};
_.O(vw,_.q);_.d=vw.prototype;_.d.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.d.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.d.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.d.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("minutes-changed",this.minutes))};
_.d.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("seconds-changed",this.seconds))};
_.d.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.d.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
vw.prototype.secondsChangedForBinding=vw.prototype.secondsChangedForBinding;vw.prototype.minutesChangedForBinding=vw.prototype.minutesChangedForBinding;vw.prototype.secondsChanged=vw.prototype.secondsChanged;_.E([_.C(),_.c("design:type",String)],vw.prototype,"minutes",void 0);_.E([_.C(),_.c("design:type",String)],vw.prototype,"seconds",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],vw.prototype,"polymer2",void 0);
_.E([_.V1("#seconds"),_.c("design:type",Object)],vw.prototype,"secondsEl",void 0);_.E([_.iN("seconds"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vw.prototype,"secondsChanged",null);_.E([_.iN("minutes"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vw.prototype,"minutesChangedForBinding",null);
_.E([_.iN("seconds"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],vw.prototype,"secondsChangedForBinding",null);_.E([_.Ec({is:"yt-timestamp-input",disableElementRegistration:!0})],vw);
_.W(vw,"yt-timestamp-input",function(){if(ZBx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;uod===void 0&&(uod=document.createElement("template"));var f=uod;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ZBx=A}A=ZBx;return A},{mode:2});var E5=function(){return _.q.apply(this,arguments)||this};
_.O(E5,_.q);_.d=E5.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20173_scroller.dialogElement=this.hostElement.parentNode};
_.d.dataChanged=function(){var A=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.p6().getPlayerPromise().then(function(Q){Q=Q.getCurrentTime();A.minutes=Math.floor(Q/60).toString();A.seconds=(Math.floor(Q)%60).toString()})};
_.d.onTapSubmit=function(A){A.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(A={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(A.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(A.minutes=this.minutes,A.seconds=this.seconds),_.fJ().resolve(_.de).resolveCommand(this.serviceEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.d.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.d.onYtServiceRequestCompleted=function(A,Q){Q=Q.actions;if(Array.isArray(Q))for(var b=0,f=Q.length;b<f;b++)_.V(Q[b],_.ju)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(Q[b]))};
_.d.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.d.toggleSubmitButton=function(A){this.set("submitButton.isDisabled",!A)};
_.d.handleInput=function(){var A=this.issueType,Q=this.affiliation,b=this.minutes,f=this.seconds;b=!this.showTimestamp||!!b&&!!f;this.toggleSubmitButton(!!this.descriptionText&&!!A&&!!Q&&b)};
_.d.computeServiceEndpoint=function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)};
_.d.computeSubmitButton=function(A){(A=this.get("submitButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.d.computeShowTimestamp=function(A){return!!A};
_.d.onValueChangedForIssueType=function(A){this.issueType=A.detail.value};
_.d.onValueChangedForAffiliation=function(A){this.affiliation=A.detail.value};
_.d.updateDescriptionTextFromBinding=function(A){this.descriptionText=A.detail.value};
_.d.updateFullNameTextFromBinding=function(A){this.fullNameText=A.detail.value};
_.d.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.d.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
E5.prototype.handleInput=E5.prototype.handleInput;E5.prototype.onYtServiceRequestError=E5.prototype.onYtServiceRequestError;E5.prototype.onYtServiceRequestCompleted=E5.prototype.onYtServiceRequestCompleted;E5.prototype.onYtServiceRequestSent=E5.prototype.onYtServiceRequestSent;E5.prototype.dataChanged=E5.prototype.dataChanged;_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],E5.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.E([_.V1("#scroller"),_.c("design:type",Object)],E5.prototype,"JSC$20173_scroller",void 0);_.E([_.V1("#description"),_.c("design:type",HTMLInputElement)],E5.prototype,"description",void 0);_.E([_.V1("#full-name"),_.c("design:type",Object)],E5.prototype,"fullName",void 0);_.E([_.C(),_.c("design:type",Object)],E5.prototype,"data",void 0);
_.E([_.C({computed:"computeShowTimestamp(data.timestampLabel)"}),_.c("design:type",Boolean)],E5.prototype,"showTimestamp",void 0);_.E([_.C({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.c("design:type",Object)],E5.prototype,"serviceEndpoint",void 0);_.E([_.C({computed:"computeSubmitButton(data)"}),_.c("design:type",Object)],E5.prototype,"submitButton",void 0);_.E([_.C(),_.c("design:type",String)],E5.prototype,"descriptionText",void 0);
_.E([_.C(),_.c("design:type",Number)],E5.prototype,"issueType",void 0);_.E([_.C(),_.c("design:type",Number)],E5.prototype,"affiliation",void 0);_.E([_.C(),_.c("design:type",String)],E5.prototype,"fullNameText",void 0);_.E([_.C(),_.c("design:type",String)],E5.prototype,"minutes",void 0);_.E([_.C(),_.c("design:type",String)],E5.prototype,"seconds",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],E5.prototype,"dataChanged",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],E5.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],E5.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],E5.prototype,"onYtServiceRequestError",null);_.E([_.iN("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],E5.prototype,"handleInput",null);_.E([_.h({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],E5);
_.W(E5,"ytd-legal-report-details-form-renderer",function(){if(wyK!==void 0)return wyK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return wyK=A},{mode:1});var y_x;var xV=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return A};
_.O(xV,_.q);xV.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
xV.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var A=this.formRenderer.getForm();A&&this.data.submitEndpoint&&(_.fJ().resolve(_.de).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},A,{element:this.hostElement})}),_.pD(this.hostElement,"yt-close-popup-action"))}};
xV.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.pD(this.hostElement,"yt-close-popup-action"))};
xV.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
xV.prototype.onPopupClosed=xV.prototype.onPopupClosed;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],xV.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],xV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);
_.E([_.V1("yt-form-renderer"),_.c("design:type",Object)],xV.prototype,"formRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],xV.prototype,"data",void 0);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],xV.prototype,"onPopupClosed",null);_.E([_.h({is:"ytd-form-popup-content",disableElementRegistration:!0})],xV);
_.W(xV,"ytd-form-popup-content",function(){if(y_x!==void 0)return y_x;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return y_x=A},{mode:1});var YwN;var cw=function(){return _.q.apply(this,arguments)||this};
_.O(cw,_.q);cw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cw.prototype.onPopupOpened=function(){_.Bn(this.hostElement,"yt-invalidate-popup-tabbables")};
cw.prototype.onYtServiceRequestCompleted=function(A,Q){Q.data&&Q.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Bn(this.hostElement,"yt-invalidate-popup-tabbables"))};
cw.prototype.onYtServiceRequestCompleted=cw.prototype.onYtServiceRequestCompleted;cw.prototype.onPopupOpened=cw.prototype.onPopupOpened;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],cw.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],cw.prototype,"data",void 0);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cw.prototype,"onPopupOpened",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],cw.prototype,"onYtServiceRequestCompleted",null);_.E([_.h({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],cw);
_.W(cw,"ytd-form-popup-renderer",function(){if(YwN!==void 0)return YwN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return YwN=A},{mode:1});var D2d;var zC=function(){var A=_.q.apply(this,arguments)||this;A.isLoading=!1;return A};
_.O(zC,_.q);_.d=zC.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");fyF(this.hostElement)};
_.d.onYtServiceRequestSent=function(){this.isLoading=!0};
_.d.onYtServiceRequestCompleted=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.d.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.ST(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.d.closePopupHandler=function(){this.fireOnCloseActions()};
_.d.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var A=this.get("data.headerImage.thumbnails");A&&(A=_.Pz(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")")}};
_.d.onYtNavigate=function(A){(A=_.Au(A))&&A.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
zC.prototype.onYtNavigate=zC.prototype.onYtNavigate;zC.prototype.onHeaderImageChanged=zC.prototype.onHeaderImageChanged;zC.prototype.closePopupHandler=zC.prototype.closePopupHandler;zC.prototype.onYtServiceRequestCompleted=zC.prototype.onYtServiceRequestCompleted;zC.prototype.onYtServiceRequestSent=zC.prototype.onYtServiceRequestSent;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],zC.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zC.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],zC.prototype,"isLoading",void 0);_.E([_.V1("#header"),_.c("design:type",HTMLDivElement)],zC.prototype,"header",void 0);_.E([_.V1("#confirm-button"),_.c("design:type",_.o3)],zC.prototype,"confirmButton",void 0);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],zC.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],zC.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],zC.prototype,"closePopupHandler",null);_.E([_.iN("data.headerImage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zC.prototype,"onHeaderImageChanged",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],zC.prototype,"onYtNavigate",null);
_.E([_.h({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],zC);
_.W(zC,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(D2d!==void 0)return D2d;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return D2d=A},{mode:1});var $2M;var wH=function(){var A=_.q.apply(this,arguments)||this;A.isLoading=!1;return A};
_.O(wH,_.q);_.d=wH.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);fyF(this.hostElement)};
_.d.onYtServiceRequestCompleted=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.d.onYtServiceRequestError=function(A){_.bp(this.hostElement,A.detail.error.message)};
_.d.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.d.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.pD(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.d.onDataChanged=function(){this.isLoading=!1;var A=this.get("data.headerImage.thumbnails");A&&(A=_.Pz(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")");A=_.WR();var Q=_.hx(),b=this.get("data.trackingParams");b&&Q&&A&&_.ui(A,Q,_.t8(b))};
_.Qr.Object.defineProperties(wH.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
wH.prototype.onDataChanged=wH.prototype.onDataChanged;wH.prototype.onDomChange=wH.prototype.onDomChange;wH.prototype.onYtServiceRequestError=wH.prototype.onYtServiceRequestError;wH.prototype.onYtServiceRequestCompleted=wH.prototype.onYtServiceRequestCompleted;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],wH.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],wH.prototype,"isLoading",void 0);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],wH.prototype,"hasDescription",null);_.E([_.V1("tp-yt-paper-dialog-scrollable"),_.c("design:type",Object)],wH.prototype,"scrollable",void 0);_.E([_.V1("#header"),_.c("design:type",HTMLElement)],wH.prototype,"header",void 0);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],wH.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],wH.prototype,"onYtServiceRequestError",null);
_.E([_.Kc("dom-change"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],wH.prototype,"onDomChange",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],wH.prototype,"onDataChanged",null);_.E([_.h({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],wH);
_.W(wH,"ytd-gaming-account-link-setting-renderer",function(){if($2M!==void 0)return $2M;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return $2M=A},{mode:1});var N5t;var snt;var ua=function(){var A=_.q.apply(this,arguments)||this;A.isHeader=!1;A.getEndpointForm=function(){return mJn(A.data)};
return A};
_.O(ua,_.q);_.d=ua.prototype;_.d.triggerHintActions=function(){var A=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var Q=_.Pn(A.hostElement,"yt-get-opened-popups-action");!(Q&&Q.length===1?Q[0]:[]).some(function(b){b=b.openPopupAction.popupType;return b==="SURVEY"||b==="MEALBAR"||b==="HINT"})&&A.data.hintActions&&A.guideOpened&&(_.ST(A.hostElement,A.data.hintActions,A.hostElement),A.data.hintActions=void 0)})};
_.d.getBadgeIconType=function(A){return A&&A.liveBroadcasting?"live":null};
_.d.onDown=function(){this.interaction.triggerDown()};
_.d.onUp=function(){this.interaction.triggerUp()};
_.d.onTap=function(A){if(this.data.serviceEndpoint){var Q;_.K("shorts_controller_retrieve_seedless_sequence_v2")&&((Q=_.V(this.data.serviceEndpoint,_.CT))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):s_q(this.data.serviceEndpoint,this);A.preventDefault()}else this.data.navigationEndpoint&&!_.TG(_.mW(A),this.hostElement,["A".toString()])&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.d.computeActive=function(A,Q){if(!A)return!1;var b=A.navigationEndpoint;A=A.serviceEndpoint;if(!b&&!A||!Q)return!1;if(b){A=(A=_.OY(Q))&&["subscriptions","filteredsubscriptions"].includes(A);if(_.V(b,_.nT)&&_.V(Q,_.nT)&&!A){var f=_.V(b,_.nT).browseId;Q=_.V(Q,_.nT).browseId;return f!==void 0&&Q!==void 0&&(f===Q||f==="VLWL"&&Q==="FEwatch_later"||f==="FEwatch_later"&&Q==="VLWL")}var a;b=(a=_.V(b.commandMetadata,_.KD))==null?void 0:a.url;Q=(f=_.V(Q.commandMetadata,_.KD))==null?void 0:f.url;return!(!b||
!Q||b!==Q&&b!==_.LJ(Q))}return this.isActiveShortsTab(A,Q)};
_.d.isActiveShortsTab=function(A,Q){Q=!!_.V(Q,_.CT)||!!_.V(Q,_.cV);return(!!_.V(A,_.CT)||!!_.V(A,_.cV))&&Q};
_.d.computeIsPrimary=function(A){return!!A};
_.Qr.Object.defineProperties(ua.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 A=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&A)return A}}});
ua.prototype.onTap=ua.prototype.onTap;ua.prototype.onUp=ua.prototype.onUp;ua.prototype.onDown=ua.prototype.onDown;ua.prototype.triggerHintActions=ua.prototype.triggerHintActions;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ua.prototype,"componentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ua.prototype,"rendererBehavior",void 0);_.E([_.I(_.du.YtTaskEmitterBehavior),_.c("design:type",Object)],ua.prototype,"taskEmitterBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],ua.prototype,"activeEndpoint",void 0);_.E([_.C(),_.c("design:type",Object)],ua.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],ua.prototype,"guideOpened",void 0);_.E([_.C(),_.c("design:type",String)],ua.prototype,"type",void 0);_.E([_.V1("yt-interaction"),_.c("design:type",Object)],ua.prototype,"interaction",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ua.prototype,"isHeader",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data","activeEndpoint"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ua.prototype,"active",null);_.E([_.C({reflectToAttribute:!0}),_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],ua.prototype,"isPrimary",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.count","data.presentationStyle","data.badges.*"),_.c("design:type",String),_.c("design:paramtypes",[])],ua.prototype,"lineEndStyle",null);
_.E([_.H("lineEndStyle"),_.c("design:type",Object),_.c("design:paramtypes",[])],ua.prototype,"ariaLabel",null);_.E([_.iN("data.hintActions","guideOpened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ua.prototype,"triggerHintActions",null);_.E([_.Kc("down"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ua.prototype,"onDown",null);
_.E([_.Kc("up"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ua.prototype,"onUp",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ua.prototype,"onTap",null);_.E([_.h({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],ua);
_.W(ua,"ytd-guide-entry-renderer",function(){if(snt!==void 0)return snt;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return snt=A},{mode:1});var Zt=function(){var A=_.q.apply(this,arguments)||this;A.userToggled=!1;return A};
_.O(Zt,_.q);_.d=Zt.prototype;_.d.getItemsPath=function(){return"data.expandableItems"};
_.d.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.d.onExpanderItemTapped=function(A){var Q=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.K("kevlar_guide_expandable_items_killswitch")&&_.mL(this,function(){_.Ng(Q.expandableItems)});
A.preventDefault()};
_.d.onCollapserItemTapped=function(A){var Q=this;this._setExpanded(!1);this.userToggled=!0;A.preventDefault();this.expandableItems&&!_.K("kevlar_guide_collapsible_items_killswitch")&&_.mL(this,function(){_.Dg(Q.hostElement)})};
_.d.observeActiveEndpoint=function(){for(var A=this.activeEndpoint,Q=this.data,b=this.expandableItems.children,f=0,a=b.length;f<a;f++)b[f].activeEndpoint=A;Q&&Q.autoExpandCommand&&A&&!this.userToggled&&(b=this.data.autoExpandCommand,Q=!(!_.V(b,_.nT)||!_.V(A,_.nT)||_.V(b,_.nT).browseId!==_.V(A,_.nT).browseId),A=this.get("commandMetadata.webCommandMetadata.url",A),b=this.get("commandMetadata.webCommandMetadata.url",b),Q=Q||!!(A&&b&&A.includes(b)),this._setExpanded(Q),Q&&this.ytLazyListBehavior.fillRemainingListItems())};
Zt.prototype.observeActiveEndpoint=Zt.prototype.observeActiveEndpoint;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],Zt.prototype,"ytLazyListBehavior",void 0);_.E([_.V1("#expandable-items"),_.c("design:type",HTMLElement)],Zt.prototype,"expandableItems",void 0);
_.E([_.C(),_.c("design:type",Object)],Zt.prototype,"data",void 0);_.E([_.C({readOnly:!0,reflectToAttribute:!0}),_.c("design:type",Boolean)],Zt.prototype,"expanded",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],Zt.prototype,"initialCount",void 0);_.E([_.C(),_.c("design:type",Object)],Zt.prototype,"activeEndpoint",void 0);_.E([_.iN("data","activeEndpoint","canShowMore"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Zt.prototype,"observeActiveEndpoint",null);
_.E([_.h({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Zt);
_.W(Zt,"ytd-guide-collapsible-entry-renderer",function(){if(N5t!==void 0)return N5t;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return N5t=A},{mode:_.UG("kevlar_poly_si_batch_j079")?1:2});var m2N;var AO7;var yX=function(){var A=_.q.apply(this,arguments)||this;A.allVideosCount=0;A.renderGuideEntry=!1;return A};
_.O(yX,_.q);yX.prototype.observeRenderEntry=function(){var A;this.renderGuideEntry=!((A=this.data)==null||!A.alwaysShow)||!!this.allVideosCount};
yX.prototype.observeRenderEntry=yX.prototype.observeRenderEntry;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],yX.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yX.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],yX.prototype,"activeEndpoint",void 0);_.E([_.C({selector:_.yYU}),_.c("design:type",Object)],yX.prototype,"allVideosCount",void 0);
_.E([_.C(),_.c("design:type",Object)],yX.prototype,"renderGuideEntry",void 0);_.E([_.I_("allVideosCount","data.alwaysShow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],yX.prototype,"observeRenderEntry",null);_.E([_.h({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],yX);
_.W(yX,"ytd-guide-downloads-entry-renderer",function(){if(AO7===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);AO7=A}A=AO7;return A},{mode:1});var YV=function(){var A=_.q.apply(this,arguments)||this;A.youtab=_.K("web_enable_youtab");A.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return A};
_.O(YV,_.q);_.d=YV.prototype;_.d.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]]"}}}}}};
_.d.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var A=this.sectionItems.children,Q=0,b=A.length;Q<b;Q++)A[Q].activeEndpoint=this.activeEndpoint}};
_.d.handleAddToGuideSectionAction=function(A){var Q=_.V(A,n3q);if(Q&&this.data&&(A=Q.items,Q=Q.handlerData,A&&Q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Q)>-1)){Q=0;for(var b=A.length;Q<b;Q++)A[Q].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,A[Q])}};
_.d.handleRemoveFromGuideSectionAction=function(A){var Q=_.V(A,k1M);Q&&this.data&&(A=Q.guideEntryId,Q=Q.handlerData,A&&Q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(Q)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(A,this.data.sectionItems),this.removeFromCollapsedSection(A,this.data.sectionItems)))};
_.d.removeFromExpandedSection=function(A,Q){A=this.getEntryIndexMatchingId(A,Q);A!==-1&&this.splice("data.sectionItems",A,1)};
_.d.removeFromCollapsedSection=function(A,Q){var b=Q.findIndex(function(f){return!!_.V(f,xOM)});
b&&b!==-1&&Q[b]&&_.V(Q[b],xOM)&&(Q=_.V(Q[b],xOM).expandableItems)&&(A=this.getEntryIndexMatchingId(A,Q),A!==-1&&this.splice("data.sectionItems."+b+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.d.getEntryIndexMatchingId=function(A,Q){var b=this;return Q.findIndex(function(f){return b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===A})};
YV.prototype.activeEndpointChanged=YV.prototype.activeEndpointChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],YV.prototype,"actionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("#section-items"),_.c("design:type",HTMLDivElement)],YV.prototype,"sectionItems",void 0);
_.E([_.V1("#header-entry"),_.c("design:type",Object)],YV.prototype,"headerEntry",void 0);_.E([_.C(),_.c("design:type",Object)],YV.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],YV.prototype,"activeEndpoint",void 0);_.E([_.C(),_.c("design:type",Object)],YV.prototype,"youtab",void 0);_.E([_.iN("activeEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YV.prototype,"activeEndpointChanged",null);
_.E([_.h({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],YV);
_.W(YV,"ytd-guide-collapsible-section-entry-renderer",function(){if(m2N===void 0){var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);m2N=A}A=m2N;return A},{mode:1});var QgN;var bfO;var Dt=function(){var A=_.q.apply(this,arguments)||this;A.modernTypography=_.K("web_modern_typography");A.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 A};
_.O(Dt,_.q);_.d=Dt.prototype;
_.d.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}}}}};
_.d.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var A=_.Pn(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);A&&A.length===1&&A[0]&&_.Pn(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.d.handleResetChannelUnreadCountCommand=function(A){var Q;(A=(Q=_.V(A,HWs))==null?void 0:Q.channelId)&&this.data&&this.data.items&&(Q=this.getPathToEntryMatchingId(A))&&(this.set(Q+".guideEntryRenderer.count",0),this.set(Q+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.d.handleResetSubscriptionsUnreadDotCommand=function(A){var Q,b=(Q=_.V(A,C77))==null?void 0:Q.targetId,f;b&&(f=this.data)!=null&&f.items&&(A=this.data.items.findIndex(function(a){var T;return((T=a.guideEntryRenderer)==null?void 0:T.targetId)===b}),A<0||this.set("data.items."+A+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.d.getPathToEntryMatchingId=function(A){if(this.data&&this.data.items){var Q=this.getEntryIndexMatchingId(A,this.data.items);if(Q>-1)return"data.items."+Q;for(var b=0;b<this.data.items.length;b++)if(Q=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[b]))if(Q=this.getEntryIndexMatchingId(A,Q),Q>-1)return"data.items."+b+".guideCollapsibleEntryRenderer.expandableItems."+Q}};
_.d.handleAddToGuideSectionAction=function(A){var Q=this;if(_.V(A,n3q)){var b=_.V(A,n3q).items;A=_.V(A,n3q).handlerData;var f,a;if(b&&A&&((f=this.data)==null?void 0:(a=f.handlerDatas)==null?void 0:a.indexOf(A))>-1){b=b.filter(function(G){return(G=Q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",G))&&!Q.isGuideItemPresent(G)});
var T;if(A==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((T=this.data)==null?0:T.items)&&(f=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),f>-1)){this.splice.apply(this,["data.items",f+1,0].concat(_.ri(b)));return}this.unshift.apply(this,["data.items"].concat(_.ri(b)))}}};
_.d.isGuideItemPresent=function(A){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(A,this.data.items)!==-1)return!0;var Q=this.data.items.find(function(b){return!!b.guideCollapsibleEntryRenderer});
if((Q==null?0:Q.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(A,Q.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.d.getEntryIndexMatchingId=function(A,Q){var b=this;return Q.findIndex(function(f){return b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===A})};
_.d.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(A,Q){var b=this;return Q.findIndex(function(f){return b.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===A})};
_.d.handleRemoveFromGuideSectionAction=function(A){if(_.V(A,k1M)){var Q=_.V(A,k1M).guideEntryId;A=_.V(A,k1M).handlerData;var b,f;Q&&A&&((b=this.data)==null?void 0:(f=b.handlerDatas)==null?void 0:f.indexOf(A))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(Q,this.data.items),this.removeFromCollapsedSection(Q,this.data.items))}};
_.d.removeFromExpandedSection=function(A,Q){A=this.getEntryIndexMatchingId(A,Q);A!==-1&&this.splice("data.items",A,1)};
_.d.removeFromCollapsedSection=function(A,Q){var b=Q.findIndex(function(f){return!!f.guideCollapsibleEntryRenderer});
b!==-1&&(Q=Q[b].guideCollapsibleEntryRenderer.expandableItems)&&(A=this.getEntryIndexMatchingId(A,Q),A!==-1&&this.splice("data.items."+b+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.d.activeEndpointChanged=function(){for(var A=_.Bj(this.hostElement).querySelector("#items").children,Q=0,b=A.length;Q<b;Q++)A[Q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.d.guideOpenedChanged=function(){for(var A=_.Bj(this.hostElement).querySelector("#items").children,Q=0,b=A.length;Q<b;Q++)A[Q].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Dt.prototype.guideOpenedChanged=Dt.prototype.guideOpenedChanged;Dt.prototype.activeEndpointChanged=Dt.prototype.activeEndpointChanged;Dt.prototype.persistentGuideChanged=Dt.prototype.persistentGuideChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Dt.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],Dt.prototype,"ytLazyListBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],Dt.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Dt.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Dt.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Dt.prototype,"modernTypography",void 0);_.E([_.C(),_.c("design:type",String)],Dt.prototype,"type",void 0);_.E([_.C({value:20}),_.c("design:type",Number)],Dt.prototype,"initialCount",void 0);_.E([_.C({value:10}),_.c("design:type",Number)],Dt.prototype,"targetFramerate",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],Dt.prototype,"autoFill",void 0);_.E([_.C({value:50}),_.c("design:type",Number)],Dt.prototype,"renderDelay",void 0);
_.E([_.iN("guidePersistentAndVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dt.prototype,"persistentGuideChanged",null);_.E([_.I_("activeEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dt.prototype,"activeEndpointChanged",null);_.E([_.I_("guideOpened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dt.prototype,"guideOpenedChanged",null);
_.E([_.h({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Dt);
_.W(Dt,"ytd-guide-section-renderer",function(){if(bfO!==void 0)return bfO;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return bfO=A},{mode:_.UG("kevlar_poly_si_batch_j073")?1:2});var fpM;var $V=function(){return _.q.apply(this,arguments)||this};
_.O($V,_.q);_.Qr.Object.defineProperties($V.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],$V.prototype,"rendererBehaviors",void 0);_.E([_.C(),_.c("design:type",Object)],$V.prototype,"data",void 0);_.E([_.C(),_.H("data.signInButton.buttonRenderer.style"),_.c("design:type",Object),_.c("design:paramtypes",[])],$V.prototype,"alignByText",null);_.E([_.h({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],$V);
_.W($V,"ytd-guide-signin-promo-renderer",function(){if(fpM===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);fpM=A}A=fpM;return A},{mode:1});var Ni=function(){var A=_.q.apply(this,arguments)||this;A.showFooter=!1;return A};
_.O(Ni,_.q);Ni.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}}}}};
Ni.prototype.attached=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1){Q=_.fJ().resolve(_.bu(_.yU));if(!Q)return b.jumpTo(0);Q.setGuideData(A.hostElement);return b.yield(0,3)}A.ytLazyListBehavior.initialCount=2;return b.return()})};
Ni.prototype.onMouseExit=function(){_.K("web_guide_hover_expansion")&&_.Pn(this.hostElement,"yt-guide-mouseleaved",[])};
Ni.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Ni.prototype.dataChanged=Ni.prototype.dataChanged;Ni.prototype.onMouseExit=Ni.prototype.onMouseExit;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Ni.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.BF.YtLazyListBehavior),_.c("design:type",Object)],Ni.prototype,"ytLazyListBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ni.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Ni.prototype,"showFooter",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],Ni.prototype,"autoFill",void 0);_.E([_.Kc("mouseleave"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ni.prototype,"onMouseExit",null);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ni.prototype,"dataChanged",null);_.E([_.h({is:"ytd-guide-renderer",disableElementRegistration:!0})],Ni);
_.W(Ni,"ytd-guide-renderer",function(){if(QgN!==void 0)return QgN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return QgN=A},{mode:_.UG("kevlar_poly_si_batch_j073")?1:2});var apO;var s5=function(){var A=_.q.apply(this,arguments)||this;A.systemIcons=_.K("kevlar_system_icons");A.frostedGlass=_.K("web_frosted_glass");A.getEndpointForm=function(){return mJn(A.data)};
return A};
_.O(s5,_.q);_.d=s5.prototype;_.d.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.d.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.mO(this.data.formattedTitle))};
_.d.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.d.onDown=function(){this.interaction.triggerDown()};
_.d.onUp=function(){this.interaction.triggerUp()};
_.d.onTap=function(A){if(this.data.serviceEndpoint){var Q;_.K("shorts_controller_retrieve_seedless_sequence_v2")&&((Q=_.V(this.data.serviceEndpoint,_.CT))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):s_q(this.data.serviceEndpoint,this);A.preventDefault()}else{var b;((b=this.data)==null?0:b.navigationEndpoint)&&!_.TG(_.mW(A),this.hostElement,["A".toString()])&&_.Bn(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.d.computeActive=function(A,Q){if(!A)return!1;var b=A.navigationEndpoint;A=A.serviceEndpoint;if(!b&&!A||!Q)return!1;if(b){A=_.V(b,_.nT);var f=_.V(Q,_.nT);if(A&&f)return A.browseId===f.browseId&&A.params===f.params;var a;b=(a=_.V(b.commandMetadata,_.KD))==null?void 0:a.url;var T;Q=(T=_.V(Q.commandMetadata,_.KD))==null?void 0:T.url;return!(!b||!Q||b!==Q&&b!==_.LJ(Q))}return this.isActiveShortsTab(A,Q)};
_.d.isActiveShortsTab=function(A,Q){Q=!!_.V(Q,_.CT)||!!_.V(Q,_.cV);return(!!_.V(A,_.CT)||!!_.V(A,_.cV))&&Q};
_.d.computeTitle=function(A,Q){return Q?"":_.mO(A)};
_.Qr.Object.defineProperties(s5.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
s5.prototype.onTap=s5.prototype.onTap;s5.prototype.onUp=s5.prototype.onUp;s5.prototype.onDown=s5.prototype.onDown;s5.prototype.onActiveStateChange=s5.prototype.onActiveStateChange;s5.prototype.dataChanged=s5.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],s5.prototype,"ytComponentBehavior",void 0);
_.E([_.I(_.Wp),_.c("design:type",Object)],s5.prototype,"ironButtonState",void 0);_.E([_.C(),_.c("design:type",Object)],s5.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],s5.prototype,"activeEndpoint",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],s5.prototype,"noLabels",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.c("design:type",Boolean)],s5.prototype,"isActive",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],s5.prototype,"systemIcons",void 0);_.E([_.V1("yt-interaction"),_.c("design:type",Object)],s5.prototype,"interaction",void 0);_.E([_.H("isActive"),_.c("design:type",Object),_.c("design:paramtypes",[])],s5.prototype,"ariaSelected",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],s5.prototype,"frostedGlass",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],s5.prototype,"dataChanged",null);_.E([_.iN("isActive"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],s5.prototype,"onActiveStateChange",null);_.E([_.Kc("down"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],s5.prototype,"onDown",null);
_.E([_.Kc("up"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],s5.prototype,"onUp",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],s5.prototype,"onTap",null);_.E([_.h({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],s5);
_.W(s5,"ytd-mini-guide-entry-renderer",function(){if(apO!==void 0)return apO;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return apO=A},{mode:_.UG("kevlar_poly_si_batch_j063")?1:2});var Tmx;var m3=function(){var A=_.q.apply(this,arguments)||this;A.allVideosCount=0;A.noLabels=_.K("kevlar_mini_guide_no_labels");A.frostedGlass=_.K("web_frosted_glass");return A};
_.O(m3,_.q);_.d=m3.prototype;_.d.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.d.onMouseEnter=function(){_.K("web_guide_hover_expansion")&&_.Pn(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.d.visibleChanged=function(){if(this.visible&&!this.data){var A=_.fJ().resolve(_.bu(_.yU));A&&A.setGuideData(this.hostElement)}};
_.d.dataChanged=function(){var A=[],Q;if((Q=this.data)!=null&&Q.items){Q=_.F(this.data.items);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var f=void 0;if((f=b.guideSectionRenderer)==null?0:f.items)for(f=void 0,b=_.F((f=b.guideSectionRenderer)==null?void 0:f.items),f=b.next();!f.done;f=b.next())if(f=f.value,f.guideEntryRenderer)f=f.guideEntryRenderer,f.isPrimary&&A.push({guideEntryRenderer:f});else if(f.guideCollapsibleSectionEntryRenderer){var a=void 0;((a=_.V(f.guideCollapsibleSectionEntryRenderer.headerEntry,
XU))==null?0:a.isPrimary)&&A.push({guideEntryRenderer:_.V(f.guideCollapsibleSectionEntryRenderer.headerEntry,XU)});if(f=f.guideCollapsibleSectionEntryRenderer.sectionItems)for(f=_.F(f),a=f.next();!a.done;a=f.next()){var T=a.value;a=_.V(T,cXt);var G=void 0;((G=_.V(T,XU))==null?0:G.isPrimary)?A.push({guideEntryRenderer:_.V(T,XU)}):a&&(T=void 0,_.V((T=a)==null?void 0:T.entryRenderer,XU)&&(a.alwaysShow||this.allVideosCount)&&A.push({guideEntryRenderer:_.V(a.entryRenderer,XU)}))}}}}this.miniGuideItems=
A};
_.d.activeEndpointChanged=function(){for(var A=this.items.children,Q=0;Q<A.length;Q++)A[Q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.d.registerWithViewTransitionManager=function(){var A=this;_.Hv(_.j7,function(){var Q=_.fJ().resolve(_.bu(_.Hg));if(Q&&Q.isAnyTransitionEnabled){var b={};Q.viewTransitionCoordinator.registerElement(A.hostElement,(b.slide="mini-guide-page-transition",b))}})};
m3.prototype.activeEndpointChanged=m3.prototype.activeEndpointChanged;m3.prototype.dataChanged=m3.prototype.dataChanged;m3.prototype.visibleChanged=m3.prototype.visibleChanged;m3.prototype.onMouseEnter=m3.prototype.onMouseEnter;_.E([_.I(_.cb),_.c("design:type",Object)],m3.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],m3.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],m3.prototype,"ytComponentBehavior",void 0);_.E([_.V1("#items"),_.c("design:type",Object)],m3.prototype,"items",void 0);_.E([_.C(),_.c("design:type",Object)],m3.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Boolean)],m3.prototype,"visible",void 0);_.E([_.C(),_.c("design:type",Object)],m3.prototype,"miniGuideItems",void 0);_.E([_.C({selector:_.yYU}),_.c("design:type",Object)],m3.prototype,"allVideosCount",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m3.prototype,"noLabels",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],m3.prototype,"frostedGlass",void 0);
_.E([_.Kc("mouseenter"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m3.prototype,"onMouseEnter",null);_.E([_.I_("visible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m3.prototype,"visibleChanged",null);_.E([_.I_("data","allVideosCount"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m3.prototype,"dataChanged",null);
_.E([_.I_("activeEndpoint"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],m3.prototype,"activeEndpointChanged",null);_.E([_.h({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],m3);
_.W(m3,"ytd-mini-guide-renderer",function(){if(Tmx===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);Tmx=A}A=Tmx;return A},{mode:1});var dnl;var Fnd=/^[\x00-\x7F]+$/,At=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(At,_.q);_.Qr.Object.defineProperties(At.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var A,Q=_.mO((A=this.data)==null?void 0:A.handle);if(Q)return _.sr("@"+Q)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.mO(this.displayHandle),Q,b=_.mO((Q=this.data)==null?void 0:Q.handleUrl);if(A&&b)return _.sr(b+A)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var A=_.mO(this.displayHandle);if(A&&!Fnd.test(A)){var Q;return(Q=this.data)==null?void 0:Q.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.mO(this.displayHandleUrl),Q,b=_.mO((Q=this.data)==null?void 0:Q.urlInfoText);if(A&&b)return _.sr(b+" "+A)}}});
_.E([_.C(),_.c("design:type",Object)],At.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],At.prototype,"displayHandle",null);_.E([_.H("displayHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],At.prototype,"displayHandleUrl",null);_.E([_.H("displayHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],At.prototype,"warningText",null);
_.E([_.H("displayHandleUrl"),_.c("design:type",Object),_.c("design:paramtypes",[])],At.prototype,"urlInfoTextWithUrl",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],At.prototype,"darkerDarkTheme",void 0);_.E([_.h({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],At);
_.W(At,"ytd-handles-claiming-confirm-dialog-content",function(){if(dnl!==void 0)return dnl;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return dnl=A},{mode:1});var G_x;var Qi=function(){var A=_.q.apply(this,arguments)||this;A.okButtonOverride={style:"mono",type:"outline",size:"M"};return A};
_.O(Qi,_.q);Qi.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Qi.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Qi.prototype,"okButtonOverride",void 0);_.E([_.C(),_.c("design:type",Object)],Qi.prototype,"data",void 0);_.E([_.h({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Qi);
_.W(Qi,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(G_x!==void 0)return G_x;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return G_x=A},{mode:1});var Bmx;var p7q=/^[\x00-\x7F]+$/,bx=function(){var A=_.q.apply(this,arguments)||this;A.isLoading=!1;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(bx,_.q);bx.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var A;this.selectedHandle=(A=this.handleInput)==null?void 0:A.value;this.onSelectedHandleChanged(this.selectedHandle);_.Pn(this.hostElement,"yt-refit-popups-action")}};
_.Qr.Object.defineProperties(bx.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.sr("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.sr(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!p7q.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bx.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],bx.prototype,"selectedHandle",void 0);_.E([_.C(),_.c("design:type",Object)],bx.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Function)],bx.prototype,"onSelectedHandleChanged",void 0);_.E([_.V1("#channel-handle-input"),_.c("design:type",Object)],bx.prototype,"handleInput",void 0);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],bx.prototype,"handleUrlPrefix",null);_.E([_.H("selectedHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],bx.prototype,"displayHandle",null);_.E([_.H("selectedHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],bx.prototype,"displayHandleUrl",null);_.E([_.H("selectedHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],bx.prototype,"warningText",null);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],bx.prototype,"darkerDarkTheme",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.E([_.h({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],bx);
_.W(bx,"ytd-handles-claiming-edit-dialog-content",function(){if(Bmx!==void 0)return Bmx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return Bmx=A},{mode:1});var PEs;var fr=function(){var A=_.q.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.selectButtonDisabled=!1;A.isLoading=!1;A.hasSelectedHandleEventListener=!1;A.selectedHandleChanged=function(Q){A.selectedHandle=Q};
return A};
_.O(fr,_.q);_.d=fr.prototype;_.d.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.d.onDataChanged=function(){var A,Q;this.selectedHandle=(Q=_.V((A=this.data)==null?void 0:A.inputField,Kdq))==null?void 0:Q.handle};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onCancel=function(){this.selectedHandle="";_.pD(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var Q;((Q=this.data)==null?void 0:Q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(b,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.bp(A.hostElement,_.mO(f.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var a;if((a=A.data)==null?0:a.onChannelUpdateSuccess){b=A.data.onChannelUpdateSuccess;var T,G;if(f=(T=_.V(b,_.ju))==null?void 0:(G=T.popup)==null?void 0:G.handlesClaimingConfirmDialogRenderer)f.handle=_.sr(A.selectedHandle);A.ytComponentBehavior.resolveCommand(b);_.pD(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){var b;A.content&&((b=A.content)==null?0:b.handleInput)&&A.content.handleInput.validate();A.isLoading=!1;_.bp(A.hostElement,_.JQ("TRY_AGAIN_LATER"))}}}))}};
_.d.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
fr.prototype.onDataChanged=fr.prototype.onDataChanged;fr.prototype.onSelectedHandleChanged=fr.prototype.onSelectedHandleChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],fr.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fr.prototype,"actionButtonOverride",void 0);_.E([_.C(),_.c("design:type",Object)],fr.prototype,"cancelButtonOverride",void 0);_.E([_.C(),_.c("design:type",Object)],fr.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",String)],fr.prototype,"selectedHandle",void 0);_.E([_.C(),_.c("design:type",Object)],fr.prototype,"selectButtonDisabled",void 0);_.E([_.C(),_.c("design:type",Object)],fr.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Object)],fr.prototype,"hasSelectedHandleEventListener",void 0);_.E([_.C(),_.c("design:type",Object)],fr.prototype,"handleInput",void 0);
_.E([_.iN("selectedHandle"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],fr.prototype,"onSelectedHandleChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],fr.prototype,"onDataChanged",null);_.E([_.V1("ytd-handles-claiming-edit-dialog-content"),_.c("design:type",Object)],fr.prototype,"content",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.h({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],fr);
_.W(fr,"ytd-handles-claiming-edit-dialog-renderer",function(){if(PEs!==void 0)return PEs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return PEs=A},{mode:1});var X7l;var av=function(){return _.q.apply(this,arguments)||this};
_.O(av,_.q);_.Qr.Object.defineProperties(av.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.handle){var Q;return _.sr("@"+_.mO((Q=this.data)==null?void 0:Q.handle))}}}});
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],av.prototype,"formattedHandle",null);_.E([_.C(),_.c("design:type",Object)],av.prototype,"data",void 0);_.E([_.h({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],av);
_.W(av,"ytd-handles-claiming-radio-option-renderer",function(){if(X7l!==void 0)return X7l;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return X7l=A},{mode:1});var SAr;var UnK=/^[\x00-\x7F]+$/,Tg=function(){var A=_.q.apply(this,arguments)||this;A.initialRadioIndex="-1";A.isLoading=!1;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.maybeSubmitFeedback=function(){A.feedbackSurveyRenderer.submitSurvey()};
return A};
_.O(Tg,_.q);Tg.prototype.updateSelectedHandleIndexFromBinding=function(A){this.selectedRadioIndex=+A.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(A)};
Tg.prototype.selectedHandleChanged=function(A){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var Q;this.selectedHandle=(Q=this.handleInput)==null?void 0:Q.value;this.onSelectedHandleChanged(A)}};
_.Qr.Object.defineProperties(Tg.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return this.ytRendererBehavior.getSimpleString((A=this.data)==null?void 0:A.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.sr("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.sr(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!UnK.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.E([_.C(),_.c("design:type",Object)],Tg.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Tg.prototype,"initialRadioIndex",void 0);_.E([_.C(),_.c("design:type",Number)],Tg.prototype,"selectedRadioIndex",void 0);_.E([_.C(),_.c("design:type",String)],Tg.prototype,"selectedHandle",void 0);_.E([_.C(),_.c("design:type",Object)],Tg.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Function)],Tg.prototype,"onSelectedHandleChanged",void 0);
_.E([_.C(),_.c("design:type",Function)],Tg.prototype,"onSelectedRadioIndexChanged",void 0);_.E([_.V1("#channel-handle-input"),_.c("design:type",Object)],Tg.prototype,"handleInput",void 0);_.E([_.V1("ytd-feedback-survey-renderer"),_.c("design:type",Object)],Tg.prototype,"feedbackSurveyRenderer",void 0);_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],Tg.prototype,"radioButtonLength",null);
_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],Tg.prototype,"handleUrlPrefix",null);_.E([_.H("selectedHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],Tg.prototype,"displayHandle",null);_.E([_.H("selectedHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],Tg.prototype,"displayHandleUrl",null);_.E([_.H("selectedHandle"),_.c("design:type",Object),_.c("design:paramtypes",[])],Tg.prototype,"warningText",null);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Tg.prototype,"darkerDarkTheme",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.E([_.h({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Tg);
_.W(Tg,"ytd-handles-claiming-select-dialog-content",function(){if(SAr!==void 0)return SAr;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return SAr=A},{mode:1});var LnN;var dU=function(){var A=_.q.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.initialRadioIndex="-1";A.selectButtonDisabled=!1;A.isLoading=!1;A.selectedRadioIndexChanged=function(Q){A.selectedRadioIndex=Number(Q.detail.value)};
A.selectedHandleChanged=function(Q){A.selectedHandle=Q.detail.value};
A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(dU,_.q);_.d=dU.prototype;_.d.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.d.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.d.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Pn(this.hostElement,"yt-refit-popups-action")};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.pD(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var Q;((Q=this.data)==null?void 0:Q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(b,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.bp(A.hostElement,_.mO(f.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var a;if((a=A.data)==null?0:a.onChannelUpdateSuccess){b=A.data.onChannelUpdateSuccess;f=_.V(b,_.ju);var T;if(f==null?0:(T=f.popup)==null?0:T.handlesClaimingConfirmDialogRenderer)f.popup.handlesClaimingConfirmDialogRenderer.handle=_.sr(A.selectedHandle);A.ytComponentBehavior.resolveCommand(b);_.pD(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){if(A.selectedRadioIndex===A.radioButtonLength){var b;A.content&&((b=A.content)==null?0:b.handleInput)&&A.content.handleInput.validate()}A.isLoading=!1;_.bp(A.hostElement,_.JQ("TRY_AGAIN_LATER"))}}}))}};
_.d.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var A,Q;this.selectedHandle=(A=this.content)==null?void 0:(Q=A.handleInput)==null?void 0:Q.value}else this.selectedRadioIndex>=0&&((A=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(A==null?void 0:A.handle):this.selectedHandle=void 0)};
_.d.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.d.getRadioItem=function(A){if(this.radioButtonLength>A&&A>=0)return _.V(this.data.radioButton[A],g3F)};
_.Qr.Object.defineProperties(dU.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}}});
dU.prototype.onSelectedHandleChanged=dU.prototype.onSelectedHandleChanged;dU.prototype.onSelectedHandleIndexChanged=dU.prototype.onSelectedHandleIndexChanged;dU.prototype.onDataChanged=dU.prototype.onDataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],dU.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],dU.prototype,"actionButtonOverride",void 0);_.E([_.C(),_.c("design:type",Object)],dU.prototype,"cancelButtonOverride",void 0);
_.E([_.C(),_.c("design:type",Object)],dU.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],dU.prototype,"initialRadioIndex",void 0);_.E([_.C(),_.c("design:type",Number)],dU.prototype,"selectedRadioIndex",void 0);_.E([_.C(),_.c("design:type",String)],dU.prototype,"selectedHandle",void 0);_.E([_.C(),_.c("design:type",Object)],dU.prototype,"selectButtonDisabled",void 0);_.E([_.C(),_.c("design:type",Object)],dU.prototype,"isLoading",void 0);
_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],dU.prototype,"radioButtonLength",null);_.E([_.V1("ytd-handles-claiming-select-dialog-content"),_.c("design:type",Object)],dU.prototype,"content",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],dU.prototype,"onDataChanged",null);
_.E([_.iN("selectedRadioIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],dU.prototype,"onSelectedHandleIndexChanged",null);_.E([_.iN("selectedHandle"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],dU.prototype,"onSelectedHandleChanged",null);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],dU.prototype,"darkerDarkTheme",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.h({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],dU);
_.W(dU,"ytd-handles-claiming-select-dialog-renderer",function(){if(LnN!==void 0)return LnN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return LnN=A},{mode:1});var MzM;var lpq;var Fa=function(){return _.q.apply(this,arguments)||this};
_.O(Fa,_.q);Fa.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Fa.prototype,"data",void 0);_.E([_.h({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Fa);
_.W(Fa,"ytd-hotkey-dialog-section-option-renderer",function(){if(lpq!==void 0)return lpq;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return lpq=A},{mode:1});var Kns;var Gg=function(){return _.q.apply(this,arguments)||this};
_.O(Gg,_.q);Gg.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Gg.prototype,"data",void 0);_.E([_.h({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Gg);
_.W(Gg,"ytd-hotkey-dialog-section-renderer",function(){if(Kns!==void 0)return Kns;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Kns=A},{mode:1});var B5=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(B5,_.q);B5.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],B5.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],B5.prototype,"darkerDarkTheme",void 0);_.E([_.h({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],B5);
_.W(B5,"ytd-hotkey-dialog-content",function(){if(MzM!==void 0)return MzM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return MzM=A},{mode:1});var ift;var pr=function(){return _.q.apply(this,arguments)||this};
_.O(pr,_.q);pr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A=document.querySelector("ytd-hotkey-dialog-content #scrollable");A&&(A.dialogElement=this.hostElement.parentElement)};
pr.prototype.onCloseTap=function(){_.pD(this.hostElement,"yt-close-popup-action")};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],pr.prototype,"data",void 0);_.E([_.h({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],pr);
_.W(pr,"ytd-hotkey-dialog-renderer",function(){if(ift!==void 0)return ift;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ift=A},{mode:1});var JON;var P5=function(){return _.q.apply(this,arguments)||this};
_.O(P5,_.q);P5.prototype.onYtServiceRequestError=function(){if(this.blocked){var A;var Q=(A=this.data)==null?void 0:A.defaultServiceEndpoint}else{var b;Q=(b=this.data)==null?void 0:b.toggledServiceEndpoint}var f;(Q=(f=_.V(Q,_.HUv))==null?void 0:f.onFailureAction)&&this.ytComponentBehavior.resolveCommand(Q);this.updateBlockState(!this.blocked)};
P5.prototype.onYtToggleButton=function(A){this.updateBlockState(A.detail.toggled)};
P5.prototype.updateBlockState=function(A){if(A!==this.blocked){var Q=this.blockedEntityKey;Q&&this.ytdReduxBehavior.dispatch(_.HL("blockStateEntity",Q,{key:Q,blocked:A}));this.set("data.isToggled",A)}};
_.Qr.Object.defineProperties(P5.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)}}});
P5.prototype.onYtToggleButton=P5.prototype.onYtToggleButton;P5.prototype.onYtServiceRequestError=P5.prototype.onYtServiceRequestError;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],P5.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],P5.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],P5.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],P5.prototype,"blockedEntityKey",void 0);
_.E([_.C({selectorArgs:["blockedEntityKey"],selector:function(A,Q){return _.Me(A.entities,"blockStateEntity",Q)}}),
_.c("design:type",Object)],P5.prototype,"blockStateEntity",void 0);_.E([_.H("data","blockStateEntity"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],P5.prototype,"blocked",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],P5.prototype,"onYtServiceRequestError",null);
_.E([_.Kc("yt-toggle-button"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],P5.prototype,"onYtToggleButton",null);_.E([_.h({is:"ytd-block-button",disableElementRegistration:!0})],P5);
_.W(P5,"ytd-block-button",function(){if(JON!==void 0)return JON;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return JON=A},
{mode:1});var Vzl;var Ofs;var Xa=function(){return _.q.apply(this,arguments)||this};
_.O(Xa,_.q);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Xa.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Xa.prototype,"data",void 0);_.E([_.h({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Xa);
_.W(Xa,"ytd-kids-blocklist-picker-item-renderer",function(){if(Ofs!==void 0)return Ofs;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Ofs=A},{mode:1});var Se=function(){return _.q.apply(this,arguments)||this};
_.O(Se,_.q);Se.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Se.prototype,"data",void 0);_.E([_.h({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Se);
_.W(Se,"ytd-kids-blocklist-picker-content",function(){if(Vzl!==void 0)return Vzl;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Vzl=
A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var n0O;var UK=function(){var A=_.q.apply(this,arguments)||this;A.hasAnyRequestSucceeded=!1;A.hasAnyRequestFailed=!1;A.numPendingRequests=0;return A};
_.O(UK,_.q);_.d=UK.prototype;_.d.attached=function(){this.hostElement.setAttribute("dialog","")};
_.d.onDoneButtonTap=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.d.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.d.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.d.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.d.onPopupClosed=function(A){var Q,b;if(((Q=A.detail)==null?void 0:(b=Q.popup)==null?void 0:b.is)==="tp-yt-paper-dialog"){var f;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((f=this.data)==null?0:f.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.fT(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
UK.prototype.onPopupClosed=UK.prototype.onPopupClosed;UK.prototype.onYtServiceRequestError=UK.prototype.onYtServiceRequestError;UK.prototype.onYtServiceRequestCompleted=UK.prototype.onYtServiceRequestCompleted;UK.prototype.onYtServiceRequestSent=UK.prototype.onYtServiceRequestSent;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],UK.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],UK.prototype,"data",void 0);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UK.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UK.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],UK.prototype,"onYtServiceRequestError",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],UK.prototype,"onPopupClosed",null);_.E([_.h({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],UK);
_.W(UK,"ytd-kids-blocklist-picker-renderer",function(){if(n0O!==void 0)return n0O;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return n0O=A},{mode:1});var k_M;var Ipt;var Lr=function(){return _.q.apply(this,arguments)||this};
_.O(Lr,_.q);Lr.prototype.setTip=function(A){var Q=this;this.data&&(this.tip=kTn(Oas.getInstance(),A,this.data),_.mL(this,function(){_.Bn(Q.hostElement,"yt-refit")}))};
Lr.prototype.clearTip=function(){this.tip=void 0};
Lr.prototype.computeHidden=function(A){return!A};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Lr.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.c("design:type",Boolean)],Lr.prototype,"hidden",void 0);_.E([_.C(),_.c("design:type",Object)],Lr.prototype,"tip",void 0);_.E([_.h({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Lr);
_.W(Lr,"ytd-menu-popup-tip-renderer",function(){if(Ipt!==void 0)return Ipt;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);
return Ipt=A},{mode:1});var HfO;var M9=function(){var A=_.q.apply(this,arguments)||this;A.useIcons=!1;A.systemIcons=_.K("kevlar_system_icons");A.useListItemStyles=_.K("web_list_item_style_for_menu_items");return A};
_.O(M9,_.q);_.d=M9.prototype;_.d.onFocus=function(){var A;(A=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.d.onTap=function(){var A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(A&&_.V(A,_.LD))this.componentBehavior.resolveCommand(A),this.updateToggledStateInEntity();else if(A){this.componentBehavior.resolveCommand(A)||_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}});var Q;((Q=_.V(A,_.li))==null?void 0:Q.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.d.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.d.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.d.updateToggledStateInEntity=function(){var A=this.data.toggleMenuServiceItemEntityKey,Q=!this.data.isToggled;A&&this.ytdReduxBehavior.dispatch(_.HL("toggleMenuServiceItemEntity",A,{key:A,isToggled:Q}))};
_.d.computeIcon=function(A,Q,b){return(A=A?b:Q)&&A.iconType?_.K0(A.iconType):""};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.isIconActive=function(A){return!_.K("toggle_menu_active_icon_killswitch")&&A};
_.Qr.Object.defineProperties(M9.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?0:A.isToggled)?(Q=this.data)==null?void 0:Q.toggledText:(b=this.data)==null?void 0:b.defaultText}}});
M9.prototype.toggledStateEntityChanged=M9.prototype.toggledStateEntityChanged;M9.prototype.onYtServiceRequestCompleted=M9.prototype.onYtServiceRequestCompleted;M9.prototype.onTap=M9.prototype.onTap;M9.prototype.onFocus=M9.prototype.onFocus;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],M9.prototype,"componentBehavior",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],M9.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],M9.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],M9.prototype,"useIcons",void 0);_.E([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.c("design:type",String)],M9.prototype,"icon",void 0);
_.E([_.C({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(A,Q){return _.Me(A.entities,"toggleMenuServiceItemEntity",Q)}}),
_.c("design:type",Object)],M9.prototype,"toggleMenuServiceItemEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],M9.prototype,"systemIcons",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],M9.prototype,"useListItemStyles",void 0);_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],M9.prototype,"onFocus",null);
_.E([_.H("data.isToggled"),_.c("design:type",Object),_.c("design:paramtypes",[])],M9.prototype,"toggleButtonText",null);_.E([_.Kc("tap"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],M9.prototype,"onTap",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],M9.prototype,"onYtServiceRequestCompleted",null);
_.E([_.iN("toggleMenuServiceItemEntity.isToggled","data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],M9.prototype,"toggledStateEntityChanged",null);_.E([_.h({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],M9);
_.W(M9,"ytd-toggle-menu-service-item-renderer",function(){if(HfO!==void 0)return HfO;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return HfO=A},{mode:1});var CE7;var lx=function(){return _.q.apply(this,arguments)||this};
_.O(lx,_.q);lx.prototype.onFocus=function(){var A;(A=_.Bj(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.Qr.Object.defineProperties(lx.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.hs(this.data.iconUrl)}}});
lx.prototype.onFocus=lx.prototype.onFocus;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lx.prototype,"rendererBehavior",void 0);_.E([_.I(_.kZ.YtEndpointBehavior),_.c("design:type",Object)],lx.prototype,"ytEndpointBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],lx.prototype,"data",void 0);_.E([_.Kc("focus"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lx.prototype,"onFocus",null);
_.E([_.H("data.iconUrl"),_.c("design:type",Object),_.c("design:paramtypes",[])],lx.prototype,"imageSource",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],lx);
_.W(lx,"ytd-menu-custom-icon-item-renderer",function(){if(CE7!==void 0)return CE7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return CE7=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});_.pE(_.us,"yt-list-item-view-model",{props:{data:_.Qf,isMenuItem:_.Qf,isCompact:_.Qf,onTap:_.Bz,trailingAccessory:_.Bz,hideSelectionTextChevron:_.Qf,disabled:_.Qf,inPopup:_.Qf,disableHorizontalPadding:_.Qf,isOverlay:_.Qf,isToggled:_.Qf,ariaLabel:_.Qf,ariaPressed:_.Qf}});var Kr=function(){var A=_.q.apply(this,arguments)||this;A.disableBackdropFilter=_.K("web_disable_backdrop_filter");return A};
_.O(Kr,_.q);_.d=Kr.prototype;
_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.d.computeAriaLabel=function(A){return A};
_.d.onPopupOpened=function(){this.items.selected=0;for(var A=_.F(_.Bj(this.items).children),Q=A.next();!Q.done;Q=A.next())Q.value.popupPositionTarget=this.positionTarget;if(A=this.popupTip||void 0)A.setTip(this.source||""),this.source=void 0;this.veData&&(A=_.WR())&&_.Y_(A,[this.veData])};
_.d.onPopupClosed=function(){var A=this.popupTip||void 0;A&&A.clearTip()};
_.d.onIronActivate=function(A){this.shouldPersist(A)||_.pD(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(A=_.WR())&&_.$_(A,this.veData)};
_.d.shouldPersist=function(A){var Q,b;if(((Q=A.detail)==null?void 0:Q.selected)===void 0||(b=this.data)==null||!b.items)return!1;var f,a;return!((a=(f=this.data.items[A.detail.selected])==null?void 0:f.toggleMenuServiceItemRenderer)==null||!a.persistentOnMenuPopup)};
_.d.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(A){return A.menuNavigationItemRenderer?!!A.menuNavigationItemRenderer.icon:A.menuServiceItemRenderer?!!A.menuServiceItemRenderer.icon:A.menuConditionalServiceItemRenderer?!!A.menuConditionalServiceItemRenderer.icon:A.menuConditionalNavigationItemRenderer?!!A.menuConditionalNavigationItemRenderer.icon:A.toggleMenuServiceItemRenderer?!!A.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Kr.prototype.onPopupClosed=Kr.prototype.onPopupClosed;Kr.prototype.onPopupOpened=Kr.prototype.onPopupOpened;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],Kr.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Kr.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Kr.prototype,"veData",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.c("design:type",String)],Kr.prototype,"ariaLabel",void 0);_.E([_.C({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],Kr.prototype,"useIcons",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Kr.prototype,"disableBackdropFilter",void 0);_.E([_.V1("#items"),_.c("design:type",Object)],Kr.prototype,"items",void 0);_.E([_.V1("ytd-menu-popup-tip-renderer"),_.c("design:type",Object)],Kr.prototype,"popupTip",void 0);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Kr.prototype,"onPopupOpened",null);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Kr.prototype,"onPopupClosed",null);_.E([_.h({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Kr);
_.W(Kr,"ytd-menu-popup-renderer",function(){if(k_M!==void 0)return k_M;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return k_M=A},{mode:1});var qAs;var o0M=_.aP(function(A){A=_.be(A,{icon:void 0});var Q=A.data;A=A.icon;var b=function(){return Q().iconBadgeText},f={},a=_.O4("yt-spec-icon-badge-shape",function(){a:switch(Q().iconBadgeType){case "notification":var T="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":T="yt-spec-icon-badge-shape--type-cart";break a;default:T=""}return T},function(){a:switch(Q().iconBadgeStyle){case "overlay":var T="yt-spec-icon-badge-shape--style-overlay";
break a;default:T=""}return T},(f["yt-spec-icon-badge-shape--text-size-small"]=function(){var T=b();
return!!((T==null?0:T.length)&&T.length>2)},f));
return _.X("yt-icon-badge-shape",null,_.X(_.S,{cond:A,then:function(T){return _.X("div",{class:a},_.X("div",{class:"yt-spec-icon-badge-shape__icon"},_.X(_.oY,{icon:T})),_.X(_.S,{cond:b,then:function(G){return _.X("div",{class:"yt-spec-icon-badge-shape__badge"},G)}}))}}))},"Gg");
o0M.idomCompat=!0;_.pE(o0M,"yt-icon-badge-shape",{props:{data:_.Qf,icon:_.Qf}});var ix=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};A.unseenCount=0;A.isOverlay=!1;return A};
_.O(ix,_.q);_.d=ix.prototype;_.d.attached=function(){var A=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(Q){A.onServiceWorkerMessage(Q)})};
_.d.onDataChanged=function(){this.isAttached&&!this.JSC$20304_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20304_lastData=this.data};
_.d.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.d.computeIcon=function(){var A,Q;return(A=this.data)==null?void 0:(Q=A.icon)==null?void 0:Q.iconType};
_.d.onServiceWorkerMessage=function(A){A.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.d.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.V(this.data.updateUnseenCountEndpoint,_.li)&&_.V(this.data.updateUnseenCountEndpoint,_.li).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.d.handleUpdateNotificationsUnseenCountAction=function(A){var Q=this;A=_.V(A,IBN);A!=null&&A.unseenCount&&A.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(A.unseenCount),_.j7.addLowPriorityJob(function(){Q.data.updateUnseenCountEndpoint&&Q.ytComponentBehavior.resolveCommand(Q.data.updateUnseenCountEndpoint)},A.timeoutMs))};
_.d.onClick=function(){_.Bn(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var A=_.Pn(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),Q=this.data.menuRequest;A&&A.length===1&&A[0]?_.pD(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.d.handleTopbarMenuClosedAction=function(A){A==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.d.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
_.d.sendUnseenCountRequest=function(A){var Q=this;_.Hv(_.j7,function(){Q.ytComponentBehavior.resolveCommand(A)})};
_.d.updateCountUI=function(A){this.set("unseenCount",A<9?A:"9+")};
_.Qr.Object.defineProperties(ix.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
ix.prototype.handleUpdateNotificationsUnseenCountAction=ix.prototype.handleUpdateNotificationsUnseenCountAction;ix.prototype.onDataChanged=ix.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ix.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.aE),_.c("design:type",Object)],ix.prototype,"ytdOpenPopupBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ix.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ix.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],ix.prototype,"unseenCount",void 0);_.E([_.C(),_.c("design:type",Object)],ix.prototype,"isOverlay",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],ix.prototype,"showTooltips",void 0);_.E([_.V1("yt-icon-button"),_.c("design:type",Object)],ix.prototype,"iconButton",void 0);
_.E([_.H("unseenCount"),_.c("design:type",Object),_.c("design:paramtypes",[])],ix.prototype,"showNotificationCount",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ix.prototype,"onDataChanged",null);_.E([_.Kc("yt-update-notifications-unseen-count-action"),_.c("design:type",Function),_.c("design:paramtypes",[Object]),_.c("design:returntype")],ix.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.E([_.h({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],ix);
_.W(ix,"ytd-notification-topbar-button-renderer",function(){if(qAs!==void 0)return qAs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return qAs=A},{mode:_.UG("kevlar_poly_si_batch_j025")?1:2});var tzs;var Jt=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return A};
_.O(Jt,_.q);Jt.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}}}}}};
Jt.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Jt.prototype.onDarkModeToggled=function(A){this.dark=A};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Jt.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Jt.prototype,"data",void 0);_.E([_.C({value:!0,reflectToAttribute:!0}),_.c("design:type",Boolean)],Jt.prototype,"dark",void 0);
_.E([_.h({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Jt);
_.W(Jt,"yt-pdg-buy-flow-header-renderer",function(){if(tzs!==void 0)return tzs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return tzs=A},{mode:1});var rOK;var jgK;var Vi=function(){var A=_.q.apply(this,arguments)||this;A.immediateValue=0;A.isDarkTheme=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(Vi,_.q);_.d=Vi.prototype;_.d.created=function(){_.ur.requestAvailability()};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.dataChanged=function(){var A=_.Bj(this.hostElement).querySelector("#color-slider");A.immediateValue&&this.updateSliderKnobAndGradientStyles(A.immediateValue);this.data.notches[0].knobColorArgb&&_.Uc(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.w6(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.vG("HTML_DIR")==="rtl"&&_.Bj(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.d.onSliderImmediateChange=function(){var A=_.Bj(this.hostElement).querySelector("#color-slider");A.dragging&&(A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue)),this.updateSliderAria())};
_.d.onSliderChange=function(){var A=_.Bj(this.hostElement).querySelector("#color-slider");A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue));this.updateSliderAria()};
_.d.updateSliderAria=function(){var A=_.Bj(this.hostElement).querySelector("#color-slider"),Q=_.Bj(this.hostElement).querySelector("#color-slider");Q=_.mO(this.data.notches[Q.immediateValue].tierValue);_.peA()&&_.Bn(this.hostElement,"iron-announce",{text:Q});A.setAttribute("aria-valuetext",Q)};
_.d.updateSuperThanksSelectedTierEntity=function(A){if(A!==this.immediateValue){var Q,b,f=this==null?void 0:(Q=this.data)==null?void 0:(b=Q.superThanksSelectedTierEntity)==null?void 0:b.key;f&&f.length>0&&this.ytdReduxBehavior.dispatch(_.HL("superThanksSelectedTierEntity",f,{key:f,index:A}))}};
_.d.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.updateSliderKnobAndGradientStyles=function(A){this.immediateValue=A;A=this.data.notches[A];if(A==null?0:A.knobColorArgb)var Q={"--ytd-pdg-color-slider-knob-color":_.w6(A.knobColorArgb)};(A==null?0:A.linearGradientCssStyle)&&Q!==null&&(Q=Object.assign({},Q,{"--ytd-pdg-color-slider-active-color":A==null?void 0:A.linearGradientCssStyle}));Q!==null&&_.Uc(this.hostElement,Q)};
Vi.prototype.onSliderChange=Vi.prototype.onSliderChange;Vi.prototype.onSliderImmediateChange=Vi.prototype.onSliderImmediateChange;Vi.prototype.dataChanged=Vi.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],Vi.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Vi.prototype,"immediateValue",void 0);_.E([_.C(),_.c("design:type",Number)],Vi.prototype,"maxMarkers",void 0);
_.E([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:UBn}),_.c("design:type",Object)],Vi.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Vi.prototype,"isDarkTheme",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Vi.prototype,"ytdReduxBehavior",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vi.prototype,"dataChanged",null);
_.E([_.Kc("immediate-value-change"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vi.prototype,"onSliderImmediateChange",null);_.E([_.Kc("change"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Vi.prototype,"onSliderChange",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Vi);
_.W(Vi,"ytd-pdg-color-slider-renderer",function(){if(jgK!==void 0)return jgK;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return jgK=A},{mode:1});var RWx;var g0K;var OK=null;
_.gn({is:"ytd-comment-input",_template:function(){if(g0K!==void 0)return g0K;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return g0K=A},
behaviors:[_.T5Y.YtHostElementBehavior,_.Hp,_.Y3.YtComponentBehavior,_.p3.YtRendererstamperBehavior,_.wPK.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 _.YZ}},
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",_.lN(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;_.Kn();this.focus()},
detached:function(){document.removeEventListener("tap",_.lN(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var Q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(Q,A);this.maybeUpdateTextDirection_();_.Bn(this.hostElement,"input")},
getInputRange_:function(){var A=_.ip();if(A){A=A.getBrowserRangeObject();for(var Q=A.commonAncestorContainer;Q;){if(Q===this.getEditableTextArea_())return A;Q=Q.parentNode}}A=this.getEditableTextArea_();A=_.cT(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,Q,b){(Q=this.emojiManager.createDocumentFragment(Q,!0,!1,b===void 0?!0:b))&&Q.childNodes.length!==0&&(A.collapsed||A.deleteContents(),b=Q.lastChild,A.insertNode(Q),_.xjp(b).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var A=_.ip();if(A){var Q=A.JSC$11233_getStartNode(),b=A.JSC$11233_getEndNode();if(A8F(Q)&&A8F(b)){var f=A.JSC$11233_getStartOffset(),a;if(_.lT&&Q.nodeType===Node.ELEMENT_NODE&&(a=_.xxp(Q)))_.cT(a,0).select();else{a=i5(Q)?Q:_.vl(Q,i5);var T=i5(b)?b:_.vl(b,i5);if(a||T)if(A.isCollapsed()){if(Q.nodeType===Node.TEXT_NODE){A=!0;f===Q.length&&(A=!1);if(OK==="end"||OK==="right")A=!1;Q=Q.parentNode;A=[].concat(_.ri(Q.parentNode.childNodes)).indexOf(Q)+(A?0:1);_.cT(Q.parentNode,
A).select()}}else a?a.previousSibling&&a.previousSibling.length>0?_.zd(b,A.JSC$11233_getEndOffset(),a.previousSibling,a.previousSibling.length-1).select():(Q=document.createTextNode("\u200b"),a.parentNode.insertBefore(Q,a),_.zd(b,A.JSC$11233_getEndOffset(),Q,0).select()):T&&(T.nextSibling&&T.nextSibling.length>0?_.zd(Q,A.JSC$11233_getStartOffset(),T.nextSibling,1).select():(b=document.createTextNode("\u200b"),T.parentNode.insertBefore(b,T.nextSibling),_.zd(Q,A.JSC$11233_getStartOffset(),b,b.length).select()));
OK=null}}else OK=null}else OK=null},
leftKeyPressed_:function(){OK="left"},
rightKeyPressed_:function(){OK="right"},
endKeyPressed_:function(){OK="end"},
maybeDeleteChip_:function(){var A=d7O(!0);if(A){var Q=_.ip(),b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();_.h2(b,Q,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=d7O(!1);if(A){var Q=_.ip(),b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();_.h2(b,Q,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var Q=_.ip();if(Q.isCollapsed()){var b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();var f=FXq(b,Q,!0);f&&(_.h2(b,Q,f,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var Q=_.ip();if(Q.isCollapsed()){var b=Q.JSC$11233_getStartNode();Q=Q.JSC$11233_getStartOffset();var f=FXq(b,Q,!1);f&&(_.h2(b,Q,f,f.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onContentClick:function(A){A.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(A){A.defaultPrevented||A.currentTarget.tagName==="YTD-COMMENT-INPUT"&&i5(A.target)&&A.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Bj(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Bj(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(A,Q){A=b0O(A,this.emojiManager,Q).cloneNode(!0);for(Q=A.firstChild;Q;)if(Q.nodeType!==1)Q=Q.nextSibling;else switch(Q.tagName){case "BR":var b=_.jE();_.Dxj(b,Q);Q=b.nextSibling;break;case "DIV":(b=Q.lastChild)&&Q.nextSibling&&_.hd(_.jE(),b);Q.previousSibling&&(Q.previousSibling.nodeType===1||Q.previousSibling.nodeType===3&&!Q.previousSibling.textContent.endsWith("\n"))&&_.eE(_.jE(),Q);b&&b.nodeName==="BR"&&_.im(b);b=Q;Q.hasChildNodes()?(Q=Q.firstChild,
_.$xL(b)):(Q=Q.nextSibling,_.im(b));break;default:Q=Q.nextSibling}return Geq(A)},
setTextAreaValue:function(A){A||(A="");var Q=this.getEditableFormattedString_();Q.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});Q.text=A},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();OK=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.cT(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.vG("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),Q=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",Q)}},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var Q=this.getInputRange_();Q&&(A=this.emojiInput.retrieveTextBeforeRange(Q))}this.insertText_(A,!0);this.updateCharCount_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){this.isEmojiButtonDisplayed&&(A.preventDefault(),A.stopImmediatePropagation(),A=A.clipboardData.getData("text/plain"),this.insertText_(A,!1,!1),_.Bn(this.hostElement,"input"))},
insertText_:function(A,Q,b){Q=Q===void 0?!1:Q;b=b===void 0?!0:b;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(Q&&this.emojiInput.offsetStartOfRangeBy(f,A.length),this.insertTextWithEmojis_(f,A,b),QPl(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,A),this.updateSuggestionOffset_(f)))}},
getSimpleString:_.mO,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computePlaceholderText_:function(A){return this.getSimpleString(A)},
computeEditableText_:function(A){return this.getSimpleString(A)},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(A,Q){A?this.fire("yt-autonav-pause-focus"):Q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var Q=this.getEditableTextArea_();[].concat(_.ri(A.dataTransfer.items)).forEach(function(b){b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(f){Q.appendChild(document.createTextNode(f))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.Bj(this.emojiInput).querySelector("#dropdown")){var Q=this.getEditableTextArea_().getBoundingClientRect().bottom,b=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(Q-b)+5;Q=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-Q;_.Bj(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.WE("yt-post"));return this.localStorage}});var nr=function(){var A=_.q.apply(this,arguments)||this;A.currentCommentOptionIndex=0;A.isEmojiPickerDisplayed=!1;A.emojiManager=_.YZ;A.isUgcEmpty=!1;A.userGeneratedCommentChangedHandler=function(){_.Bn(A.hostElement,"ytd-pdg-user-generated-comment-changed");A.isEmojiYtdCommentInputEnabled&&(A.isUgcEmpty=!A.ytdCommentInputEl.getTextAreaValue())};
A.pasteHandler=function(Q){Q.preventDefault();Q.stopImmediatePropagation();var b;if(Q=(b=Q.clipboardData)==null?void 0:b.getData("text/plain"))b=document.getSelection().getRangeAt(0),b.collapsed||b.deleteContents(),Q=document.createTextNode(Q),b.insertNode(Q),b.selectNodeContents(Q),b.collapse(!1),Q=window.getSelection(),Q.removeAllRanges(),Q.addRange(b)};
A.onDocumentClick=function(Q){if(A.isEmojiPickerDisplayed){var b,f,a;!(Q.target instanceof Node)||(b=Q.composedPath())!=null&&b.includes(A.editableTextEl)||(f=Q.composedPath())!=null&&f.includes(A.emojiButtonEl)||(a=Q.composedPath())!=null&&a.includes(A.emojiPickerEl)||(A.isEmojiPickerDisplayed=!1)}};
return A};
_.O(nr,_.q);_.d=nr.prototype;_.d.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.d.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.d.detached=function(){var A;(A=this.contentEl)==null||A.removeEventListener("input",this.userGeneratedCommentChangedHandler);var Q;(Q=this.contentEl)==null||Q.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.d.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.d.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var A;this.contentEl.textContent=this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.d.reloadEmojis=function(){this.emojiPickerEl&&_.V(this.emojiPicker,_.v4Y)&&this.emojiPickerEl.updateEmojiCategories()};
_.d.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Uc(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.d.handleBackgroundColorStyling=function(){var A;if((A=this.currentCommentOption)==null?0:A.commentBackgroundColorArgb){var Q;_.Uc(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.w6((Q=this.currentCommentOption)==null?void 0:Q.commentBackgroundColorArgb)})}else _.Uc(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.d.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var A;(A=this.contentEl)==null||A.focus()}};
_.d.onEditButtonClick=function(A){var Q=document.getSelection();Q&&this.contentEl&&(A.stopPropagation(),A.preventDefault(),Q.selectAllChildren(this.contentEl),Q.collapseToEnd())};
_.d.onContentDrop=function(A){var Q=this;if(A.dataTransfer){A=_.F(A.dataTransfer.items);for(var b=A.next();!b.done;b=A.next())b=b.value,b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(f){var a;(a=Q.contentEl)==null||a.appendChild(document.createTextNode(f))})}};
_.d.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.d.getUserGeneratedCommentText=function(){var A,Q=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(A=this.contentEl)==null?void 0:A.textContent;return Q?Q.trim():""};
_.d.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.d.onEmojiSelect=function(A){this.ytdCommentInputEl.onEmojiSelect(A)};
_.Qr.Object.defineProperties(nr.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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 A;return!((A=this.currentCommentOption)==null||!A.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(_.V((A=this.currentCommentOption)==null?void 0:A.chipRenderer,_.bY9)){var Q;return _.V((Q=this.currentCommentOption)==null?void 0:Q.chipRenderer,_.bY9)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var A,Q;return((A=this.data)==null?0:A.commentOptionRenderers)?_.V((Q=this.data)==null?void 0:Q.commentOptionRenderers[this.superThanksSelectedTierEntity.index],saM):void 0}var b,f;return((b=this.data)==null?0:b.commentOptionRenderers)?_.V((f=this.data)==null?void 0:f.commentOptionRenderers[this.currentCommentOptionIndex],saM):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.commentDialog,_.q3M))==null?void 0:Q.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.commentDialog,_.q3M))==null?void 0:Q.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=_.V((A=this.data)==null?void 0:A.commentDialog,_.q3M))==null?void 0:Q.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(Q=_.V((A=this.data)==null?void 0:A.commentDialog,_.q3M))==null?void 0:Q.emojiPicker;if(!_.V(b,_.v4Y)||!_.V(b,_.v4Y).categories)return!1;A=function(T){return T.emojiPickerCategoryRenderer?T.emojiPickerCategoryRenderer.emojiIds&&T.emojiPickerCategoryRenderer.emojiIds.length>0:T.emojiPickerUpsellCategoryRenderer?T.emojiPickerUpsellCategoryRenderer.emojis&&T.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var f,a;return((f=_.V(b,_.v4Y))==null?0:(a=f.categories)==null?0:a.find(A))?!0:!1}}});
nr.prototype.onEmojiSelect=nr.prototype.onEmojiSelect;nr.prototype.dataChanged=nr.prototype.dataChanged;nr.prototype.currentCommentOptionChanged=nr.prototype.currentCommentOptionChanged;_.E([_.I(_.cb),_.c("design:type",Object)],nr.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],nr.prototype,"rendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.V1("#content-dom-if"),_.c("design:type",_.hu)],nr.prototype,"contentDomIfEl",void 0);_.E([_.V1("#content-no-emojis"),_.c("design:type",HTMLElement)],nr.prototype,"contentEl",void 0);_.E([_.V1("#container"),_.c("design:type",HTMLElement)],nr.prototype,"containerEl",void 0);_.E([_.V1("#comment-chip-container"),_.c("design:type",HTMLElement)],nr.prototype,"paidCommentChipContainerEl",void 0);_.E([_.V1("#text-input"),_.c("design:type",HTMLElement)],nr.prototype,"editableTextEl",void 0);
_.E([_.V1("#emoji-button"),_.c("design:type",HTMLElement)],nr.prototype,"emojiButtonEl",void 0);_.E([_.V1("#emoji-picker > yt-emoji-picker-renderer"),_.c("design:type",Object)],nr.prototype,"emojiPickerEl",void 0);_.E([_.V1("#text-input > ytd-comment-input"),_.c("design:type",Object)],nr.prototype,"ytdCommentInputEl",void 0);_.E([_.C(),_.c("design:type",Object)],nr.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],nr.prototype,"currentCommentOptionIndex",void 0);
_.E([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:UBn}),_.c("design:type",Object)],nr.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.C(),_.c("design:type",Object)],nr.prototype,"isEmojiPickerDisplayed",void 0);_.E([_.C(),_.c("design:type",Object)],nr.prototype,"emojiManager",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],nr.prototype,"isUgcEmpty",void 0);
_.E([_.iN("currentCommentOption"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nr.prototype,"currentCommentOptionChanged",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],nr.prototype,"dataChanged",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nr.prototype,"isEmojiYtdCommentInputEnabled",null);
_.E([_.H("data.title"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"title",null);_.E([_.H("data.authorText"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"channelName",null);_.E([_.H("data.commentOptionRenderers","currentCommentOption"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nr.prototype,"shouldShowPaidCommentChipRenderer",null);
_.E([_.H("data.commentOptionRenderers","currentCommentOption"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"paidCommentChipRenderer",null);_.E([_.H("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"currentCommentOption",null);
_.E([_.H("data.defaultCommentText","superThanksSelectedTierEntity"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"commentText",null);_.E([_.H("data.placeholderText"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"placeholderText",null);_.E([_.H("data.commentDialog.commentDialogRenderer.editableText"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"editableText",null);
_.E([_.H("data.commentDialog.commentDialogRenderer.emojiButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"emojiButton",null);_.E([_.H("data.commentDialog.commentDialogRenderer.emojiPicker"),_.c("design:type",Object),_.c("design:paramtypes",[])],nr.prototype,"emojiPicker",null);
_.E([_.H("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],nr.prototype,"isEmojiButtonDisplayed",null);_.E([_.Kc("yt-emoji-select"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],nr.prototype,"onEmojiSelect",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],nr);
_.W(nr,"ytd-pdg-comment-preview-renderer",function(){if(RWx!==void 0)return RWx;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return RWx=A},{mode:2});var eWN;var k2=function(){var A=_.q.apply(this,arguments)||this;A.selected=!1;return A};
_.O(k2,_.q);_.d=k2.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.d.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.d.dataChanged=function(){this.data&&(_.pc(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Uc(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.w6(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.w6(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.d.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.d.onClick=function(){this.logClick()};
_.d.onKeyboardSelect=function(){_.Bn(this.hostElement,"tap");this.onClick()};
_.d.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
k2.prototype.onClick=k2.prototype.onClick;k2.prototype.selectedChanged=k2.prototype.selectedChanged;k2.prototype.dataChanged=k2.prototype.dataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],k2.prototype,"componentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Hp),_.c("design:type",Object)],k2.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.I(_.$l),_.c("design:type",Object)],k2.prototype,"ironSelectableBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],k2.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],k2.prototype,"shownThumbnail",void 0);_.E([_.C(),_.c("design:type",Object)],k2.prototype,"basePriceText",void 0);_.E([_.C(),_.c("design:type",Object)],k2.prototype,"purchaseCommand",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],k2.prototype,"selected",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],k2.prototype,"dataChanged",null);_.E([_.iN("selected"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],k2.prototype,"selectedChanged",null);_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],k2.prototype,"onClick",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],k2);
_.W(k2,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(eWN!==void 0)return eWN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return eWN=A},{mode:1});var Iv=function(){var A=_.q.apply(this,arguments)||this;A.selectedItemIndex=0;A.buyButtonDisabled=!1;return A};
_.O(Iv,_.q);_.d=Iv.prototype;
_.d.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]]"}}}}}};
_.d.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var A;var Q=(A=_.V(this.data.colorSlider,Nkl))==null?void 0:A.notches[this.selectedItemIndex].purchaseCommand}else{var b;Q=(b=_.V(this.data.selectableItemButtons[this.selectedItemIndex],A9l))==null?void 0:b.purchaseCommand}if(Q){A=_.V(Q,_.haL);A.productData||(A.productData={});var f;A.productData={pdgData:{commentMessageText:(f=this.commentPreviewRenderer)==null?void 0:f.getUserGeneratedCommentText()}};
_.Bn(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(Q)}}};
_.d.dataChanged=function(){if(this.data){_.YZ.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.id$(_.YZ,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.YZ.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var A;this.buyButtonDisabled=!((A=_.V(this.data.commentPreview,mOs))==null||!A.placeholderText);this.updatePriceSelectorStatus();var Q;if((Q=this.data)==null?0:Q.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;A=[];this.data.preloadImages&&(A=this.data.preloadImages);
A=A.map(function(b){return _.Pz(b.thumbnails,1920)});
A=_.F(A);for(Q=A.next();!Q.done;Q=A.next())(Q=Q.value)&&_.xy9(Q).thenCatch(function(){_.Wv(Error("ml"))})}};
_.d.superThanksSelectedTierEntityChanged=function(){var A;(this==null?void 0:(A=this.superThanksSelectedTierEntity)==null?void 0:A.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.d.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.d.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Bj(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Bj(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Bj(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Bj(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.d.closeBuyFlow=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.d.onUserGeneratedContentChanged=function(){var A;this.buyButtonDisabled=!((A=this.commentPreviewRenderer)==null?0:A.getUserGeneratedCommentText())};
_.d.updateSelectedItemIndexFromBinding=function(A){this.selectedItemIndex=A.detail.value};
_.Qr.Object.defineProperties(Iv.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disclaimerText)}}});
Iv.prototype.onUserGeneratedContentChanged=Iv.prototype.onUserGeneratedContentChanged;Iv.prototype.closeBuyFlow=Iv.prototype.closeBuyFlow;Iv.prototype.selectedItemIndexChanged=Iv.prototype.selectedItemIndexChanged;Iv.prototype.superThanksSelectedTierEntityChanged=Iv.prototype.superThanksSelectedTierEntityChanged;Iv.prototype.dataChanged=Iv.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Iv.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Iv.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Iv.prototype,"selectedItemIndex",void 0);_.E([_.C(),_.c("design:type",Boolean)],Iv.prototype,"isColorSlider",void 0);
_.E([_.C(),_.c("design:type",Object)],Iv.prototype,"buyButtonDisabled",void 0);_.E([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:UBn}),_.c("design:type",Object)],Iv.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.V1("ytd-pdg-comment-preview-renderer"),_.c("design:type",Object)],Iv.prototype,"commentPreviewRenderer",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Iv.prototype,"ytdReduxBehavior",void 0);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Iv.prototype,"dataChanged",null);_.E([_.iN("superThanksSelectedTierEntity"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Iv.prototype,"superThanksSelectedTierEntityChanged",null);_.E([_.iN("selectedItemIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Iv.prototype,"selectedItemIndexChanged",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Iv.prototype,"closeBuyFlow",null);_.E([_.Kc("ytd-pdg-user-generated-comment-changed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Iv.prototype,"onUserGeneratedContentChanged",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],Iv.prototype,"isDisclaimerTextShown",null);
_.E([_.h({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Iv);
_.W(Iv,"yt-super-vod-buy-flow-content-renderer",function(){if(rOK!==void 0)return rOK;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return rOK=A},{mode:1});var hWn;var H5=function(){var A=_.q.apply(this,arguments)||this;A.lottieAnimationRef={};return A};
_.O(H5,_.q);_.d=H5.prototype;_.d.created=function(){_.ur.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.lN(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.d.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Bn(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.d.detached=function(){this.autoCloseJobId&&_.j7.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.lN(this,this.onPopupIronOverlayOpened))};
_.d.dataChanged=function(){var A=this;this.data&&this.data.autoCloseDelay&&(_.pD(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.LE(_.j7,function(){A.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Uc(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.d.onDOMLoadedLottie=function(){var A=this,Q,b,f=Number((Q=this.data)==null?void 0:(b=Q.autoCloseDelay)==null?void 0:b.seconds)||0;this.fadeOutJobId=_.LE(_.j7,function(){A.lottiePlayerEl.classList.add("fadeout")},(f-.25)*1E3);
this.autoCloseJobId=_.LE(_.j7,function(){A.closePopup()},f*1E3)};
_.d.openPopup=function(){this.ironOverlayBehavior.open()};
_.d.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.pD(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.ST(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.fJ().resolve(_.de).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.j7.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.j7.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.d.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var A,Q;(A=this.lottieAnimationRef)==null||(Q=A.lottieEl)==null||Q.destroy();A=this.data.lottie;var b,f;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:A.url+"_"+Math.random(),path:A.url,autoplay:!0,loop:(f=(b=A.settings)==null?void 0:b.loop)!=null?f:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Qr.Object.defineProperties(H5.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var A,Q;return!!((A=this.data)==null?0:(Q=A.lottie)==null?0:Q.url)}}});
H5.prototype.maybeInitializeLottie=H5.prototype.maybeInitializeLottie;H5.prototype.dataChanged=H5.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],H5.prototype,"rendererBehavior",void 0);_.E([_.I(_.$t),_.c("design:type",Object)],H5.prototype,"ironOverlayBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],H5.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],H5.prototype,"lottiePlayerProps",void 0);
_.E([_.C(),_.c("design:type",Object)],H5.prototype,"lottieAnimationRef",void 0);_.E([_.V1("ytd-lottie-player"),_.c("design:type",HTMLElement)],H5.prototype,"lottiePlayerEl",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],H5.prototype,"dataChanged",null);_.E([_.H("data"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],H5.prototype,"hasLottieAnimation",null);
_.E([_.iN("data.lottie.url"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],H5.prototype,"maybeInitializeLottie",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],H5);
_.W(H5,"ytd-desktop-image-overlay-renderer",function(){if(hWn!==void 0)return hWn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return hWn=A},{mode:1});var WnN;var Cr=function(){return _.q.apply(this,arguments)||this};
_.O(Cr,_.q);_.d=Cr.prototype;_.d.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"}}}}};
_.d.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",_.lN(this,this.closePopup))};
_.d.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lN(this,this.closePopup))};
_.d.dataChanged=function(){_.Pn(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.V(this.data.header,$Od)&&(this.hasBackgroundBanner=!!_.V(this.data.header,$Od).backgroundBanner)};
_.d.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lN(this,this.closePopup))};
_.d.closePopup=function(){this.data&&this.data.onCloseCommand&&_.X5(this.hostElement,[this.data.onCloseCommand])};
Cr.prototype.handleBuyflowSelectionSubmitted=Cr.prototype.handleBuyflowSelectionSubmitted;Cr.prototype.dataChanged=Cr.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Cr.prototype,"data",void 0);
_.E([_.C({value:!0,reflectToAttribute:!0}),_.c("design:type",Boolean)],Cr.prototype,"hasBackgroundBanner",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Cr.prototype,"dataChanged",null);_.E([_.Kc("yt-pdg-buy-flow-selection-submitted"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Cr.prototype,"handleBuyflowSelectionSubmitted",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Cr);
_.W(Cr,"ytd-pdg-buy-flow-renderer",function(){if(WnN!==void 0)return WnN;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return WnN=A},{mode:1});var v0r;var q9=function(){var A=_.q.apply(this,arguments)||this;A.isOpen=!1;A.isPlaylistCreated=!1;return A};
_.O(q9,_.q);_.d=q9.prototype;_.d.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.d.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Bn(this.hostElement,"yt-refit")};
_.d.onCreateTap=function(){var A=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.X5(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(Q,b){if(!_.K("killswitch_ep_in_create_playlist_response")&&(b==null?0:b.actions))for(Q=_.F(b.actions),b=Q.next();!b.done;b=Q.next())b=b.value,_.V(b,_.hb)&&A.ytComponentBehavior.resolveCommand(b)}}]),this.isPlaylistCreated=!0)};
_.d.onKeydown=function(A){if(A.keyCode===13)this.onCreateTap()};
_.d.onServiceRequestCompleted=function(A){A.stopPropagation();_.pD(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.d.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
q9.prototype.onServiceRequestCompleted=q9.prototype.onServiceRequestCompleted;q9.prototype.onKeydown=q9.prototype.onKeydown;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],q9.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],q9.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],q9.prototype,"isOpen",void 0);
_.E([_.C(),_.c("design:type",Object)],q9.prototype,"isPlaylistCreated",void 0);_.E([_.C({value:{REQUIRED_LABEL:_.JQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.JQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.c("design:type",Object)],q9.prototype,"addToStrings",void 0);_.E([_.C({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.c("design:type",Array)],q9.prototype,"privacyBadge",void 0);
_.E([_.V1("#privacy-input"),_.c("design:type",Object)],q9.prototype,"privacyInput",void 0);_.E([_.V1("#name-input"),_.c("design:type",Object)],q9.prototype,"nameInput",void 0);_.E([_.Kc("keydown"),_.c("design:type",Function),_.c("design:paramtypes",[KeyboardEvent]),_.c("design:returntype")],q9.prototype,"onKeydown",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],q9.prototype,"onServiceRequestCompleted",null);
_.E([_.h({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],q9);
_.W(q9,"ytd-add-to-playlist-create-renderer",function(){if(v0r!==void 0)return v0r;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return v0r=A},{mode:1});var E0K;var xnx;var ov=function(){var A=_.q.apply(this,arguments)||this;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.O(ov,_.q);ov.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
ov.prototype.onCheckboxChange=function(A){var Q=this;this.data&&_.Yl(this,"yt-playlist-checkbox-changed",function(){var b=_.Au(A).checked?Q.data.addToPlaylistServiceEndpoint:Q.data.removeFromPlaylistServiceEndpoint;b&&_.fJ().resolve(_.de).resolveCommand(b,{form:{element:Q.hostElement}});_.K("dl_playlist_killswitch")||Q.transferState!=="TRANSFER_STATE_UNKNOWN"&&Q.transferState!=="TRANSFER_STATE_FAILED"&&Q.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:Q.data.playlistId,action:"ACTION_SYNC"}})},
100)};
ov.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
ov.prototype.dataChanged=ov.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ov.prototype,"data",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],ov.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ov.prototype,"ytComponentBehavior",void 0);_.E([_.V1("#checkbox"),_.c("design:type",HTMLInputElement)],ov.prototype,"checkbox",void 0);
_.E([_.C({selector:_.cO,selectorArgs:["data.playlistId"]}),_.c("design:type",String)],ov.prototype,"transferState",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ov.prototype,"dataChanged",null);_.E([_.h({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],ov);
_.W(ov,"ytd-playlist-add-to-option-renderer",function(){if(xnx!==void 0)return xnx;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xnx=A},{mode:1});_.dK(BFs);var cON=_.aP(function(A){var Q=A.data;return _.X("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.X("div",null,_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(b){return _.X("div",{class:"ytd-menu-title-renderer__subtitle"},_.X(_.Rb,{text:b}))}}))},"Hg"),zWr=_.K("web_enable_sink_ytd_menu_title_renderer")?cON:BFs,w7x=_.K("web_enable_sink_ytd_menu_title_renderer")?cON:_.ko(BFs);
cON.idomCompat=!0;_.K("web_enable_sink_ytd_menu_title_renderer")?_.pE(w7x,"ytd-menu-title-renderer",{props:{data:_.Qf}}):_.KE(zWr,"ytd-menu-title-renderer",{propNames:["data"]});var tt=function(){var A=_.q.apply(this,arguments)||this;A.addToStrings={ADD_TO_DROPDOWN_LABEL:_.JQ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};A.closeButtonAriaLabel=_.JQ("SBOX_INAPPROPRIATE_CANCEL");A.dialog=_.K("desktop_add_to_playlist_renderer_dialog_popup");return A};
_.O(tt,_.q);_.d=tt.prototype;_.d.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"}}}};
_.d.onPopupOpened=function(){_.Pj(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.d.onPopupClosed=function(){_.Pj(this.playlists,"scrollable",!1)};
_.d.computeAriaLabel=function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.F(this.data.actions);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.menuTitleRenderer)return _.mO(Q.menuTitleRenderer.title)}};
_.d.onTapClose=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Qr.Object.defineProperties(tt.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.F(this.data.actions);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.menuTitleRenderer)return Q.menuTitleRenderer}return!1}}});
tt.prototype.onPopupClosed=tt.prototype.onPopupClosed;tt.prototype.onPopupOpened=tt.prototype.onPopupOpened;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],tt.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],tt.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],tt.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],tt.prototype,"addToStrings",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.c("design:type",String)],tt.prototype,"ariaLabel",void 0);_.E([_.C(),_.c("design:type",String)],tt.prototype,"closeButtonAriaLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],tt.prototype,"dialog",void 0);
_.E([_.V1("#playlists"),_.c("design:type",HTMLElement)],tt.prototype,"playlists",void 0);_.E([_.V1("ytd-add-to-playlist-create-renderer"),_.c("design:type",Object)],tt.prototype,"createRenderer",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],tt.prototype,"menuTitleRenderer",null);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],tt.prototype,"onPopupOpened",null);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],tt.prototype,"onPopupClosed",null);_.E([_.h({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],tt);
_.W(tt,"ytd-add-to-playlist-renderer",function(){if(E0K!==void 0)return E0K;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return E0K=A},{mode:1});var ums;var rU=function(){var A=_.q.apply(this,arguments)||this;A.isPlaylistEditComplete=!1;A.isCollabEngagementDisabled=!1;A.closeButtonAriaLabel=_.JQ("SBOX_INAPPROPRIATE_CANCEL");A.saveButton={title:_.JQ("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"};A.onValueChanged=function(){A.updateSaveButtonState();A.computeCollabEngagementDisabled()};
return A};
_.O(rU,_.q);_.d=rU.prototype;_.d.attached=function(){this.JSC$20360_scroller&&(this.JSC$20360_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20360_scroller.attached&&typeof this.JSC$20360_scroller.attached==="function"&&this.JSC$20360_scroller.attached())};
_.d.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.d.onPopupClosed=function(){this.reset()};
_.d.close=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.d.onClickSave=function(){var A=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var Q=[];this.nameInput.value!==null&&Q.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&Q.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var b=Number(this.privacyInput.value);isNaN(b)||Q.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:b})}this.votingInput.value!==null&&(b=this.votingInput.value)&&Q.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:b});if(Q.length>0){var f;_.V((f=this.data)==null?void 0:f.updateSettingsEndpoint,_.xj).actions=Q;var a;if((a=this.data)==null?0:a.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){A.close()}}}),this.isPlaylistEditComplete=!0}}};
_.d.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
_.d.computeEditorData=function(A){var Q,b;return A==null?void 0:(Q=A.sections)==null?void 0:(b=Q[0])==null?void 0:b.playlistSettingsEditorCasualSectionRenderer};
_.d.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.d.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}}}}}};
_.d.computeAriaLabel=function(){var A,Q,b,f=(A=this.data)==null?void 0:(Q=A.sections)==null?void 0:(b=Q[0])==null?void 0:b.playlistSettingsEditorCasualSectionRenderer;return _.mO(f==null?void 0:f.title)};
_.d.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"}))};
_.d.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.d.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.d.isNameChanged=function(){var A,Q,b;return(((A=this.editorData)==null?void 0:(Q=A.name)==null?void 0:(b=Q.textInputFormFieldRenderer)==null?void 0:b.value)||"")!==(this.nameInput.value||"")};
_.d.isDescriptionChanged=function(){var A,Q,b;return(((A=this.editorData)==null?void 0:(Q=A.description)==null?void 0:(b=Q.textInputFormFieldRenderer)==null?void 0:b.value)||"")!==(this.descriptionInput.value||"")};
_.d.isPrivacyChanged=function(){var A,Q,b,f,a,T,G,p;return((G=(A=this.editorData)==null?void 0:(Q=A.privacy)==null?void 0:(b=Q.dropdownFormFieldRenderer)==null?void 0:(f=b.dropdown)==null?void 0:(a=f.dropdownRenderer)==null?void 0:(T=a.entries)==null?void 0:T.find(function(P){var U;return P==null?void 0:(U=P.privacyDropdownItemRenderer)==null?void 0:U.isSelected}))==null?void 0:(p=G.privacyDropdownItemRenderer)==null?void 0:p.int32Value)!==this.privacyInput.value};
_.d.isVotingChanged=function(){var A,Q,b,f,a,T,G,p;return((G=(A=this.editorData)==null?void 0:(Q=A.voting)==null?void 0:(b=Q.dropdownFormFieldRenderer)==null?void 0:(f=b.dropdown)==null?void 0:(a=f.dropdownRenderer)==null?void 0:(T=a.entries)==null?void 0:T.find(function(P){var U;return P==null?void 0:(U=P.privacyDropdownItemRenderer)==null?void 0:U.isSelected}))==null?void 0:(p=G.privacyDropdownItemRenderer)==null?void 0:p.int32Value)!==this.votingInput.value};
rU.prototype.onPopupClosed=rU.prototype.onPopupClosed;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],rU.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],rU.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],rU.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],rU.prototype,"data",void 0);_.E([_.C({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.c("design:type",Array)],rU.prototype,"privacyBadge",void 0);_.E([_.C({computed:"computeEditorData(data)"}),_.c("design:type",Object)],rU.prototype,"editorData",void 0);_.E([_.C(),_.c("design:type",Object)],rU.prototype,"isPlaylistEditComplete",void 0);_.E([_.C(),_.c("design:type",Object)],rU.prototype,"isCollabEngagementDisabled",void 0);
_.E([_.C({value:{REQUIRED_LABEL:_.JQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.JQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.c("design:type",Object)],rU.prototype,"addToStrings",void 0);_.E([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.c("design:type",String)],rU.prototype,"ariaLabel",void 0);_.E([_.C(),_.c("design:type",String)],rU.prototype,"closeButtonAriaLabel",void 0);
_.E([_.C(),_.c("design:type",Object)],rU.prototype,"saveButton",void 0);_.E([_.V1("#name-input"),_.c("design:type",Object)],rU.prototype,"nameInput",void 0);_.E([_.V1("#description-input"),_.c("design:type",Object)],rU.prototype,"descriptionInput",void 0);_.E([_.V1("#privacy-input"),_.c("design:type",Object)],rU.prototype,"privacyInput",void 0);_.E([_.V1("#voting-input"),_.c("design:type",Object)],rU.prototype,"votingInput",void 0);
_.E([_.V1("#scroller"),_.c("design:type",Object)],rU.prototype,"JSC$20360_scroller",void 0);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rU.prototype,"onPopupClosed",null);_.E([_.C(),_.c("design:type",Object)],rU.prototype,"onValueChanged",void 0);_.E([_.h({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],rU);
_.W(rU,"ytd-playlist-settings-editor-renderer",function(){if(ums===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);ums=A}A=ums;return A},{mode:1});var ZfN;_.xo("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var je=function(){return _.q.apply(this,arguments)||this};
_.O(je,_.q);_.d=je.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.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 A=this.get("data.nextButton.buttonRenderer.navigationEndpoint");A&&(this.nextNavigationEndpoint=A,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.d.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 A={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",A)}}};
_.d.onPopupOpened=function(A){A.detail!==this&&A.detail!==this.hostElement||!_.K("enable_premium_voluntary_pause")||_.pD(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.d.onNextButtonTap=function(){var A=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);A&&this.ytdOpenPopupBehavior.openPopup(A)};
_.d.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
je.prototype.onPopupOpened=je.prototype.onPopupOpened;je.prototype.onSelectedResponseIndexChange=je.prototype.onSelectedResponseIndexChange;je.prototype.dataChanged=je.prototype.dataChanged;_.E([_.I(_.aE),_.c("design:type",Object)],je.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],je.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],je.prototype,"selectedResponseIndex",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],je.prototype,"dataChanged",null);_.E([_.iN("selectedResponseIndex"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],je.prototype,"onSelectedResponseIndexChange",null);
_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],je.prototype,"onPopupOpened",null);_.E([_.h({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],je);
_.W(je,"ytd-red-cancel-survey-renderer",function(){if(ZfN!==void 0)return ZfN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ZfN=A},{mode:1});var yOd;var Rv=function(){var A=_.q.apply(this,arguments)||this;A.closeButtonAriaLabel=_.JQ("SBOX_INAPPROPRIATE_CANCEL");return A};
_.O(Rv,_.q);Rv.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Rv.prototype.onClickClose=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Rv.prototype,"rendererStamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Rv.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],Rv.prototype,"closeButtonAriaLabel",void 0);_.E([_.h({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Rv);
_.W(Rv,"ytd-search-filter-options-dialog-renderer",function(){if(yOd!==void 0)return yOd;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return yOd=A},{mode:1});var YAr;var X8q=function(){return function(A){A=A.availabilityType;return A===void 0||A==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||A==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var gU=function(){var A=_.q.apply(this,arguments)||this;A.qualityOptions=[];A.upsellOptions=[];A.showUpsellSection=!1;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.rememberSettingsChecked=!1;return A};
_.O(gU,_.q);_.d=gU.prototype;_.d.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}}}}};
_.d.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.d.updateQualityOptions=function(){if(this.formats===void 0)_.pD(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var A=[],Q=[];this.showUpsellSection=!1;for(var b=_.F(this.formats),f=b.next();!f.done;f=b.next())(f=f.value)&&(f.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?Q.push(f):A.push(f));A.length&&(this.qualityOptions=Pe7(A));Q.length&&(this.showUpsellSection=!0,this.upsellOptions=Pe7(Q))}};
_.d.updateRememberString=function(){if(this.downloadQualityPickerEntity)var A=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var Q;A=(Q=this.data)==null?void 0:Q.premiumRememberSettingString}else{var b;A=(b=this.data)==null?void 0:b.rememberSettingString}A=A===void 0?_.JQ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):A;this.rememberSettingsCheckboxRenderer={title:_.T7(A),disabled:!1}};
_.d.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Qr.Object.defineProperties(gU.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
gU.prototype.updateRememberString=gU.prototype.updateRememberString;gU.prototype.updateQualityOptions=gU.prototype.updateQualityOptions;gU.prototype.dataChanged=gU.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],gU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],gU.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gU.prototype,"data",void 0);
_.E([_.I(_.cb),_.c("design:type",Object)],gU.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Boolean)],gU.prototype,"selectedUpsellQuality",void 0);_.E([_.C({computed:"computeIcon_(data.premiumIcon)",value:""}),_.c("design:type",String)],gU.prototype,"premiumIcon",void 0);_.E([_.C({selector:F7N,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.c("design:type",Object)],gU.prototype,"downloadQualityPickerEntity",void 0);
_.E([_.C(),_.c("design:type",Array)],gU.prototype,"qualityOptions",void 0);_.E([_.C(),_.c("design:type",Array)],gU.prototype,"upsellOptions",void 0);_.E([_.C(),_.c("design:type",Object)],gU.prototype,"showUpsellSection",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],gU.prototype,"darkerDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],gU.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.E([_.V1("#remember-settings"),_.c("design:type",HTMLInputElement)],gU.prototype,"rememberSettingsCheckbox",void 0);_.E([_.C(),_.c("design:type",Object)],gU.prototype,"rememberSettingsChecked",void 0);_.E([_.C(),_.c("design:type",Function)],gU.prototype,"onRememberSettingsCheckedChanged",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gU.prototype,"dataChanged",null);
_.E([_.iN("downloadQualityPickerEntity"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gU.prototype,"updateQualityOptions",null);_.E([_.iN("selectedUpsellQuality"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],gU.prototype,"updateRememberString",null);_.E([_.h({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],gU);
_.W(gU,"ytd-download-quality-selector-content",function(){if(YAr!==void 0)return YAr;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return YAr=A},{mode:1});var Dn7;var ee=function(){var A=_.q.apply(this,arguments)||this;A.selectedUpsellQuality=!1;A.qualityOptions=[];A.darkerDarkTheme=_.K("web_darker_dark_theme");A.useUpsellDismissAlternate=_.K("use_not_now_dl_upsell_dismiss_cta");A.shouldShowAlternateUpsellDimiss=!1;A.rememberSettings=!1;A.rememberSettingsChecked=!1;A.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};A.rememberSettingsCheckedChanged=function(Q){A.rememberSettingsChecked=Q};
return A};
_.O(ee,_.q);_.d=ee.prototype;
_.d.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.T7(_.JQ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.T7(_.JQ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.T7(_.JQ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.T7(_.JQ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.d.updateQualityOptions=function(){this.formats===void 0?_.pD(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Pe7(this.formats)};
_.d.onQualityOptionsSelect=function(A){if(this.qualityOptions&&A){A!==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 Q=_.F(this.qualityOptions.entries()),b=Q.next();!b.done;b=
Q.next()){b=_.F(b.value);var f=b.next().value;b=b.next().value;var a=void 0,T=void 0;if(((a=b)==null?void 0:(T=a.settingsRadioOptionRenderer)==null?void 0:T.id)===A){this.selectedQualityIndex=f;A=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((A=this.formats[f])==null?void 0:A.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.d.onClickSubmit=function(){var A;if((A=this.downloadButtonRenderer)==null||!A.isDisabled){var Q,b;A=(b=(Q=this.data)==null?void 0:Q.onSubmitEndpoint)!=null?b:{};var f,a;if(this.formats&&(((f=_.V(A,_.n6))==null?0:f.videoId)||((a=_.V(A,_.ks))==null?0:a.playlistId))){var T,G,p,P,U,L;Q={formatType:(P=(T=this.formats)==null?void 0:(G=T[(p=this.selectedQualityIndex)!=null?p:0])==null?void 0:G.format)!=null?P:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(U=this.getOfflineEndpoint(A))==null?void 0:(L=U.actionParams)==null?void 0:L.settingsAction)};this.getOfflineEndpoint(A).actionParams=Q;this.ytComponentBehavior.resolveCommand(A)}_.pD(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.d.onClickUpsell=function(){var A;if((A=this.upsellButtonRenderer)==null||!A.isDisabled){var Q,b;A=(b=(Q=this.data)==null?void 0:Q.upsellEndpoint)!=null?b:{};this.ytComponentBehavior.resolveCommand(A);_.pD(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);Q="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var f,a,T,G;Q=(G=(f=this.formats)==null?void 0:(a=f[(T=this.selectedQualityIndex)!=null?T:0])==null?void 0:a.format)!=null?G:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:Q}})}};
_.d.onClickClose=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.d.getOfflineSettingsAction=function(A,Q){return A?Q===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":Q:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.d.getOfflineEndpoint=function(A){return _.V(A,_.n6)?_.V(A,_.n6):_.V(A,_.ks)};
_.Qr.Object.defineProperties(ee.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.T7(_.JQ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
ee.prototype.updateQualityOptions=ee.prototype.updateQualityOptions;ee.prototype.dataChanged=ee.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],ee.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ee.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Number)],ee.prototype,"selectedQualityIndex",void 0);_.E([_.C(),_.c("design:type",Object)],ee.prototype,"selectedUpsellQuality",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],ee.prototype,"ytdReduxBehavior",void 0);
_.E([_.C({selector:F7N,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.c("design:type",Object)],ee.prototype,"downloadQualityPickerEntity",void 0);_.E([_.C(),_.c("design:type",Array)],ee.prototype,"qualityOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ee.prototype,"darkerDarkTheme",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],ee.prototype,"useUpsellDismissAlternate",void 0);
_.E([_.C(),_.c("design:type",Object)],ee.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.E([_.C(),_.c("design:type",Object)],ee.prototype,"downloadButtonRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],ee.prototype,"upsellButtonRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],ee.prototype,"cancelButtonRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],ee.prototype,"upsellCancelButtonRenderer",void 0);_.E([_.C(),_.c("design:type",Object)],ee.prototype,"rememberSettings",void 0);
_.E([_.C(),_.c("design:type",Object)],ee.prototype,"rememberSettingsChecked",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ee.prototype,"dataChanged",null);_.E([_.iN("downloadQualityPickerEntity"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ee.prototype,"updateQualityOptions",null);_.E([_.h({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],ee);
_.W(ee,"ytd-download-quality-selector-renderer",function(){if(Dn7!==void 0)return Dn7;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Dn7=A},{mode:1});var $nn;var ht=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(ht,_.q);ht.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ht.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ht.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ht.prototype,"darkerDarkTheme",void 0);_.E([_.C({computed:"computeIcon_(data.infoIcon)"}),_.c("design:type",Object)],ht.prototype,"infoIcon",void 0);
_.E([_.C({computed:"computeIcon_(data.warningIcon)"}),_.c("design:type",Object)],ht.prototype,"warningIcon",void 0);_.E([_.h({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],ht);
_.W(ht,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if($nn!==void 0)return $nn;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return $nn=A},{mode:1});var Nms;var W5=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(W5,_.q);W5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
W5.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],W5.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],W5.prototype,"darkerDarkTheme",void 0);_.E([_.h({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],W5);
_.W(W5,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(Nms!==void 0)return Nms;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Nms=A},{mode:1});var sgN;var v5=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(v5,_.q);v5.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
v5.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"}}}}};
v5.prototype.onServiceRequestSentOrCompleted=function(A,Q){Q&&Q.actions&&Q.actions.length>0&&_.pD(this.hostElement,"yt-close-popup-action",[this.is])};
v5.prototype.onServiceRequestSentOrCompleted=v5.prototype.onServiceRequestSentOrCompleted;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],v5.prototype,"darkerDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],v5.prototype,"data",void 0);
_.E([_.Kc("yt-service-request-completed"),_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],v5.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.h({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],v5);
_.W(v5,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(sgN!==void 0)return sgN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return sgN=A},{mode:1});var mnK;var EK=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.submitButtonDisabled=!0;return A};
_.O(EK,_.q);_.d=EK.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.d.onDataChanged=function(){var A,Q,b;if(((A=this.data)==null?void 0:(Q=A.confirmButton)==null?void 0:(b=Q.buttonRenderer)==null?void 0:b.isDisabled)!==void 0){var f,a,T;this.submitButtonDisabled=(f=this.data)==null?void 0:(a=f.confirmButton)==null?void 0:(T=a.buttonRenderer)==null?void 0:T.isDisabled}};
_.d.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.d.updateSubmitButtonDisabledFromBinding=function(A){this.submitButtonDisabled=A.detail.value};
_.d.updateSubmitButtonDisabledFromConfirmCheckbox=function(A){this.submitButtonDisabled=!A.detail.value};
EK.prototype.onDataChanged=EK.prototype.onDataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],EK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],EK.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],EK.prototype,"darkerDarkTheme",void 0);
_.E([_.C(),_.c("design:type",Object)],EK.prototype,"submitButtonDisabled",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],EK.prototype,"onDataChanged",null);_.E([_.h({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],EK);
_.W(EK,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(mnK!==void 0)return mnK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return mnK=A},{mode:1});var AKx;var x2=function(){return _.q.apply(this,arguments)||this};
_.O(x2,_.q);_.Qr.Object.defineProperties(x2.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;return((A=this.data)==null?void 0:A.title)+" "+((Q=this.data)==null?void 0:Q.metadataPrimary)+" "+((b=this.data)==null?void 0:b.metadataSecondary)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],x2.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],x2.prototype,"data",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],x2.prototype,"ariaLabel",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],x2);
_.W(x2,"ytd-compact-product-list-item-renderer",function(){if(AKx!==void 0)return AKx;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return AKx=A},{mode:1});var QKO;var c5=function(){return _.q.apply(this,arguments)||this};
_.O(c5,_.q);c5.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]]"}}}}}};
_.Qr.Object.defineProperties(c5.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],c5.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],c5.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],c5);
_.W(c5,"ytd-compact-product-list-renderer",function(){if(QKO!==void 0)return QKO;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return QKO=A},{mode:1});var b9q;var zg=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(zg,_.q);_.d=zg.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.d.getBackgroundUrl=function(){var A=this.get("data.headerImage.thumbnails");return A?"url("+_.Pz(A,this.hostElement.clientWidth)+")":""};
_.d.onDataChanged=function(){var A=this.getBackgroundUrl();A&&(this.header.style.backgroundImage=A);A=_.WR();var Q=_.hx(),b=this.get("data.trackingParams");b&&Q&&A&&_.ui(A,Q,_.t8(b));A=_.F(this.hostElement.querySelectorAll("yt-img-shadow"));for(Q=A.next();!Q.done;Q=A.next())Q.value.onShow()};
_.d.onPopupClosed=function(A){_.Au(A).localName==="ytd-membership-post-cancel-renderer"&&_.pD(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
zg.prototype.onPopupClosed=zg.prototype.onPopupClosed;zg.prototype.onDataChanged=zg.prototype.onDataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],zg.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],zg.prototype,"darkerDarkTheme",void 0);
_.E([_.V1("#header"),_.c("design:type",HTMLDivElement)],zg.prototype,"header",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zg.prototype,"onDataChanged",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],zg.prototype,"onPopupClosed",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],zg);
_.W(zg,"ytd-membership-post-cancel-renderer",function(){if(b9q!==void 0)return b9q;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return b9q=A},{mode:1});var f9M;var wU=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(wU,_.q);wU.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
wU.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],wU.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],wU.prototype,"darkerDarkTheme",void 0);_.E([_.V1("ytd-feedback-survey-renderer"),_.c("design:type",Object)],wU.prototype,"feedbackSurveyRenderer",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],wU);
_.W(wU,"ytd-sponsorship-confirm-cancel-content",function(){if(f9M!==void 0)return f9M;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return f9M=A},{mode:1});var a9x;var ux=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.maybeSubmitFeedback=function(){A.content&&A.content.maybeSubmitFeedback()};
return A};
_.O(ux,_.q);_.d=ux.prototype;_.d.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.d.onYtPopupOpened=function(A,Q){Q===this&&this.data&&this.data.onOpenCommands&&_.ST(this.hostElement,this.data.onOpenCommands,this.hostElement);_.pD(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.d.onYtPopupClosed=function(A,Q){(Q&&Q.canceled===!0||Q&&Q.canceled===!1&&Q.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.ST(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestCompleted=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.d.onYtServiceRequestError=function(A){_.bp(this.hostElement,A.detail.error.message)};
_.d.onDataChanged=function(){if(this.isAttached){var A=this.backgroundUrl;A&&(_.Bj(this.hostElement).querySelector("#header").style.backgroundImage=A)}};
_.Qr.Object.defineProperties(ux.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return A?"url("+_.Pz(A,this.hostElement.clientWidth)+")":""}}});
ux.prototype.onDataChanged=ux.prototype.onDataChanged;ux.prototype.onYtServiceRequestError=ux.prototype.onYtServiceRequestError;ux.prototype.onYtServiceRequestCompleted=ux.prototype.onYtServiceRequestCompleted;ux.prototype.onYtPopupClosed=ux.prototype.onYtPopupClosed;ux.prototype.onYtPopupOpened=ux.prototype.onYtPopupOpened;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ux.prototype,"data",void 0);_.E([_.C({value:function(){return _.JQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.c("design:type",String)],ux.prototype,"closeButtonAriaLabel",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],ux.prototype,"darkerDarkTheme",void 0);_.E([_.V1("#scrollable"),_.c("design:type",Object)],ux.prototype,"scrollable",void 0);_.E([_.V1("ytd-sponsorship-confirm-cancel-content"),_.c("design:type",Object)],ux.prototype,"content",void 0);
_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],ux.prototype,"onYtPopupOpened",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],ux.prototype,"onYtPopupClosed",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ux.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],ux.prototype,"onYtServiceRequestError",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],ux.prototype,"onDataChanged",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ux);
_.W(ux,"ytd-sponsorship-confirm-cancel-renderer",function(){if(a9x!==void 0)return a9x;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return a9x=A},{mode:_.UG("kevlar_poly_si_batch_j081")?1:2});var TtM;var Zv=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(Zv,_.q);Zv.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Zv.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Zv.prototype,"darkerDarkTheme",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Zv);
_.W(Zv,"ytd-sponsorships-celebration-content",function(){if(TtM!==void 0)return TtM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return TtM=
A},{mode:1});var dEq;var Fix=_.sC(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),yi=function(){var A=_.q.apply(this,arguments)||this;A.scriptsAppended=!1;A.useFullWidthPrimaryButton=!1;A.buttonOverrides={type:"tonal",style:"overlay-dark"};return A};
_.O(yi,_.q);_.d=yi.prototype;_.d.dataChanged=function(){var A;this.useFullWidthPrimaryButton=!((A=this.data)==null||!A.useFullWidthPrimaryButton)};
_.d.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:_.K("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onDataChanged=function(){var A;(A=this.header)==null||A.style.setProperty("background-color",this.backgroundColor);if(A=this.headerImageUrl){var Q;(Q=this.header)==null||Q.style.setProperty("background-image",A)}Q=_.WR(4);A=_.hx(4);var b=this.get("data.trackingParams");if(b&&A&&Q){var f=_.t8(b);_.ui(Q,A,f);_.K("combine_ve_grafts")?_.IP().graftServerVe(b,A,4):_.ui(Q,A,f)}Q=_.F(this.hostElement.querySelectorAll("yt-img-shadow"));for(A=Q.next();!A.done;A=Q.next())A.value.onShow();if(Q=this.get("data.gtmId"))_.eN(Q,
_.vG("GL","")),this.setupConversionTracking()};
_.d.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("script");var Q=_.Ns(Fix.join(""));_.s$(A,Q);document.head.appendChild(A);A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
_.d.onPopupClosed=function(A){if(_.Au(A).localName==="ytd-sponsorships-celebration-renderer"){_.pD(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var Q;this.data&&((Q=this.data)==null?0:Q.dismissCommand)&&_.J8.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Qr.Object.defineProperties(yi.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.w6(A)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return A?"url("+_.Pz(A,this.hostElement.getBoundingClientRect().width)+")":""}}});
yi.prototype.onPopupClosed=yi.prototype.onPopupClosed;yi.prototype.onDataChanged=yi.prototype.onDataChanged;yi.prototype.dataChanged=yi.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],yi.prototype,"data",void 0);
_.E([_.V1("#header"),_.c("design:type",HTMLElement)],yi.prototype,"header",void 0);_.E([_.C(),_.c("design:type",Object)],yi.prototype,"scriptsAppended",void 0);_.E([_.C({type:Boolean,reflectToAttribute:!0}),_.c("design:type",Object)],yi.prototype,"useFullWidthPrimaryButton",void 0);_.E([_.C(),_.c("design:type",Object)],yi.prototype,"buttonOverrides",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],yi.prototype,"dataChanged",null);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],yi.prototype,"onDataChanged",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],yi.prototype,"onPopupClosed",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],yi);
_.W(yi,"ytd-sponsorships-celebration-renderer",function(){if(dEq!==void 0)return dEq;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return dEq=A},{mode:1});var GMs;var Y2=function(){var A=_.q.apply(this,arguments)||this;A.isToggleChecked=!1;return A};
_.O(Y2,_.q);Y2.prototype.onDataChanged=function(){var A;this.isToggleChecked=((A=this.data)==null?void 0:A.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
Y2.prototype.close=function(){var A;((A=this.data)==null?0:A.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
Y2.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var A,Q=_.V((A=this.data)==null?void 0:A.switchButton,Q3r);Q&&(this.isToggleChecked&&Q.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Q.switchOnInnertubeCommand),!this.isToggleChecked&&Q.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(Q.switchOffInnertubeCommand))};
Y2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Y2.prototype.onDataChanged=Y2.prototype.onDataChanged;_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Y2.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Y2.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],Y2.prototype,"isToggleChecked",void 0);_.E([_.C({value:_.JQ("CLOSE")}),_.c("design:type",String)],Y2.prototype,"closeButtonAriaLabel",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Y2.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],Y2);
_.W(Y2,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(GMs!==void 0)return GMs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return GMs=A},{mode:1});var BtN;var Dv=function(){return _.q.apply(this,arguments)||this};
_.O(Dv,_.q);_.d=Dv.prototype;_.d.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"}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.detached=function(){this.playerElement.stop()};
_.d.onYtServiceRequestCompleted=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.d.onYtServiceRequestError=function(A){_.bp(this.hostElement,A.detail.error.message)};
_.d.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.d.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.d.getTier=function(A,Q){return!A||!A.tiers||Q<0?null:_.V(A.tiers[Q],Tur)};
_.d.moreThanOne=function(A){return!!(A&&A.length>1)};
_.d.tierOverviewTap=function(A){var Q=this;this.selectedTier=A.model.index;_.mL(this,function(){_.Bn(Q.hostElement,"yt-refit")})};
_.d.computeSelectedClass=function(A,Q){return this.isSelected(A,Q)?"selected":""};
_.d.computeButtonAriaPressed=function(A,Q){return this.isSelected(A,Q)?"true":"false"};
_.d.isSelected=function(A,Q){return A===Q};
_.d.onDataChanged=function(){_.Bj(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Bj(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 A=_.F(this.hostElement.querySelectorAll("yt-img-shadow")),
Q=A.next();!Q.done;Q=A.next())Q.value.onShow();var b;this.set("selectedTier",(b=this.get("data.targetTierIndex"))!=null?b:0);var f;(A=(f=this.data)==null?void 0:f.onVisible)&&this.ytComponentBehavior.resolveCommand(A)};
_.d.initializeVe=function(A){var Q=_.WR(),b=_.hx(),f=this.get("data.trackingParams");b&&Q&&(this.screenLayer=4,Q=_.cG(_.UXe)(void 0,69877,{clientScreenNonce:Q,visualElement:b},void 0,void 0,void 0),_.Ev(Q,69877,4),b=_.hx(4),f&&b&&(f=_.t8(f),_.ui(Q,b,f),A&&(this.offerVideoVe=_.K6(74659),_.ui(Q,f,this.offerVideoVe))))};
_.d.setHeaderBackground=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Bj(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.w6(A);if(A=this.getHeaderImage())A=_.Pz(A,screen.width),_.Bj(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+A+")"};
_.d.getHeaderImage=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&A?A:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d.setupVideoPlayer=function(A){var Q=this,b,f,a,T;return _.B(function(G){if(G.nextAddress==1)return b=Q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),f=Q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.K("kevlar_player_update_killswitch")?Q.playerElement.update({args:{autoplay:b,video_id:A,player_params:f}}):Q.playerElement.loadVideoWithPlayerVars({autoplay:b,video_id:A,player_params:f}),
G.yield(Q.playerElement.getPlayerPromise(),2);a=G.yieldResult;a.addEventListener("onStateChange",function(p){Q.onPlayerStateChange(p)});
a.setScreenLayer(Q.screenLayer);(T=_.WR(4))&&Q.offerVideoVe&&_.yI(T,Q.offerVideoVe);b&&(Q.pauseOtherPlayers(),Q.playerElement.focusOnPlayer(),Q.playerElement.getPlayer().hideControls(),_.Hv(_.j7,function(){Q.fadeOutHeaderOverlay()},4E3));
_.Oi(G)})};
_.d.onPlayerStateChange=function(A){A===1?this.backgroundPlayerElement&&(A=this.backgroundPlayerElement.player_.getPlayerState(),A!==1&&A!==3||this.backgroundPlayerElement.pause()):A===0&&(_.Bj(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Bj(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.d.fadeOutHeaderOverlay=function(){_.Bj(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.d.onHeaderTap=function(){if(this.offerVideo){_.Bj(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var A;((A=this.playerElement.player_)==null?void 0:A.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(A=_.WR(4))&&this.offerVideoVe&&_.$_(A,this.offerVideoVe)}};
_.d.getBackgroundImageLayerClass=function(A){return A?"background-image-layer-with-video":""};
_.d.getHeaderClass=function(A){return A?"header-with-video":""};
_.d.getHeaderOverlayClass=function(A){return A?"header-overlay-with-video":""};
_.d.getTitleContainerClass=function(A,Q){return A?"title-container-with-video":Q?"title-container-without-video-flexible":"title-container-without-video"};
_.d.tierTitleDisplayStatus=function(A){return this.moreThanOne(A)?"hide":"show"};
_.d.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.fJ().resolve(_.zb).getPlayerElement():this.backgroundPlayerElement=_.BL();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var A=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=A===1||A===3;this.backgroundPlayerElement.pause()}};
_.d.isMiniplayerActive=function(){return _.fJ().resolve(_.zb).isMiniplayerActive()};
_.d.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("selected-tier-changed",this.selectedTier))};
Dv.prototype.selectedTierChangedForBinding=Dv.prototype.selectedTierChangedForBinding;Dv.prototype.onDataChanged=Dv.prototype.onDataChanged;Dv.prototype.onYtPopupClosed=Dv.prototype.onYtPopupClosed;Dv.prototype.onYtPopupOpened=Dv.prototype.onYtPopupOpened;Dv.prototype.onYtServiceRequestError=Dv.prototype.onYtServiceRequestError;Dv.prototype.onYtServiceRequestCompleted=Dv.prototype.onYtServiceRequestCompleted;
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Dv.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Dv.prototype,"data",void 0);_.E([_.C({value:0}),_.c("design:type",Number)],Dv.prototype,"selectedTier",void 0);
_.E([_.C({value:""}),_.c("design:type",String)],Dv.prototype,"offerVideo",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Dv.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.E([_.C({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.YC(this)}}),
_.c("design:type",String)],Dv.prototype,"playerId",void 0);_.E([_.V1("tp-yt-paper-dialog-scrollable"),_.c("design:type",Object)],Dv.prototype,"scrollable",void 0);_.E([_.V1("ytd-sponsorships-tier-renderer"),_.c("design:type",Object)],Dv.prototype,"tierRenderer",void 0);_.E([_.V1("#player"),_.c("design:type",Object)],Dv.prototype,"playerElement",void 0);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Dv.prototype,"onYtServiceRequestCompleted",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Dv.prototype,"onYtServiceRequestError",null);
_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dv.prototype,"onYtPopupOpened",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dv.prototype,"onYtPopupClosed",null);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dv.prototype,"onDataChanged",null);
_.E([_.iN("selectedTier"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Dv.prototype,"selectedTierChangedForBinding",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Dv);
_.W(Dv,"ytd-sponsorships-offer-renderer",function(){if(BtN!==void 0)return BtN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return BtN=A},{mode:_.UG("kevlar_poly_si_batch_j077")?1:2});var pgt;var $2=function(){var A=_.q.apply(this,arguments)||this;A.buttonOverrides={type:"filled",style:"mono"};return A};
_.O($2,_.q);$2.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}}}}}};
$2.prototype.backgroundColorChanged=function(){var A,Q,b,f=(Q=_.V((A=this.data)==null?void 0:A.content,dbl))==null?void 0:(b=Q.backgroundColor)==null?void 0:b.backgroundColor;f&&(A=_.zx(f),_.Bj(this.hostElement).querySelector("#banner").style.backgroundColor=A,_.Bj(this.hostElement).querySelector("#abstract-art").style.backgroundColor=A)};
$2.prototype.attached=function(){this.JSC$20446_scroller&&(this.JSC$20446_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20446_scroller.attached&&typeof this.JSC$20446_scroller.attached==="function"&&this.JSC$20446_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$2.prototype.backgroundColorChanged=$2.prototype.backgroundColorChanged;_.E([_.C(),_.c("design:type",Object)],$2.prototype,"data",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("#scroller"),_.c("design:type",Object)],$2.prototype,"JSC$20446_scroller",void 0);_.E([_.C(),_.c("design:type",Object)],$2.prototype,"buttonOverrides",void 0);
_.E([_.iN("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],$2.prototype,"backgroundColorChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],$2);
_.W($2,"ytd-sponsorships-promotion-celebration-renderer",function(){if(pgt!==void 0)return pgt;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return pgt=A},{mode:_.UG("kevlar_poly_si_batch_j077")?1:2});var PZK;var XgK;var N9=function(){return _.q.apply(this,arguments)||this};
_.O(N9,_.q);N9.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
N9.prototype.computeIsInitiallyChecked=function(A){return A===1};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],N9.prototype,"data",void 0);_.E([_.V1("#checkbox"),_.c("design:type",Object)],N9.prototype,"checkbox",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],N9);
_.W(N9,"ytd-subscription-toggle-option-renderer",function(){if(XgK!==void 0)return XgK;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return XgK=A},{mode:1});var sK=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return A};
_.O(sK,_.q);sK.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"}}}};
sK.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sK.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var A=_.Bj(this.hostElement).querySelector("#options").selected;A=this.data.options[A].subscriptionRadioOptionRenderer.serviceEndpoint;var Q=_.Bj(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");Q&&A&&A.modifyChannelNotificationPreferenceEndpoint&&(Q=Q.getValue())&&(A.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[Q]);_.fJ().resolve(_.de).resolveCommand(A,{form:{element:this.hostElement}});
_.pD(this.hostElement,"yt-close-popup-action")};
_.Qr.Object.defineProperties(sK.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var A=this.data.options,Q=0;Q<A.length;Q++){var b=A[Q].subscriptionRadioOptionRenderer;if(b&&b.selected)return Q}return null}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],sK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],sK.prototype,"eventForwardingBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],sK.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],sK.prototype,"darkerDarkTheme",void 0);_.E([_.H("data.options"),_.c("design:type",Object),_.c("design:paramtypes",[])],sK.prototype,"initialIndex",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],sK);
_.W(sK,"ytd-subscription-notification-options-renderer",function(){if(PZK!==void 0)return PZK;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return PZK=A},{mode:1});var SRs;var mz=function(){return _.q.apply(this,arguments)||this};
_.O(mz,_.q);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],mz.prototype,"data",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],mz);
_.W(mz,"ytd-tvfilm-offer-groups-renderer",function(){if(SRs!==void 0)return SRs;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return SRs=A},{mode:1});var UEN;var AG=function(){var A=_.q.apply(this,arguments)||this;A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(AG,_.q);_.d=AG.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.d.computeThumbnailClass=function(A){return A.thumbnailOverlays?A.isShow?"thumbnail-show":"thumbnail-movie":A.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.d.computeCommerceSectionClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.d.computeTitleClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.d.onDataChanged=function(){[].concat(_.ri(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(A){A.onShow()})};
AG.prototype.onDataChanged=AG.prototype.onDataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],AG.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],AG.prototype,"darkerDarkTheme",void 0);
_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],AG.prototype,"onDataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],AG);
_.W(AG,"ytd-ypc-offers-overlay-renderer",function(){if(UEN!==void 0)return UEN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return UEN=A},{mode:_.UG("kevlar_poly_si_batch_j028")?1:2});var LiF;var Mk7=function(){this.usedMethods=new Set};
Mk7.prototype.add=function(A){this.usedMethods.add(A)};
Mk7.prototype.reset=function(){this.usedMethods.clear()};var i9O=function(A,Q){this.query=A;this.previousSearchQuery=Q;this.id=l9N++;if(!Kix){Q=_.vG("SBOX_SETTINGS");A="https://"+((Q==null?void 0:Q.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var b=Q==null?void 0:Q.REQUEST_LANGUAGE;b&&(A+="&hl="+b);(b=Q==null?void 0:Q.REQUEST_DOMAIN)&&(A+="&gl="+b);A+="&client=youtube&gs_ri=youtube";(b=Q==null?void 0:Q.SUGG_EXP_ID)&&(A+="&sugexp="+encodeURIComponent(b));(b=Q==null?void 0:Q.PSUGGEST_TOKEN)&&(A+="&tok="+b);(Q=
Q==null?void 0:Q.SESSION_INDEX)&&(A+="&authuser="+Q);_.K("desktop_enable_visual_suggest")&&(A+="&h=180&w=320&ytvs=1");Kix=A}},JKx=function(A){var Q="q="+encodeURIComponent(A.query);
A.previousSearchQuery&&(Q+="&pq="+encodeURIComponent(A.previousSearchQuery));return Q},VkN=function(){var A=_.vG("SBOX_SETTINGS"),Q={};
if(A==null?0:A.SEND_VISITOR_DATA)Q["X-Goog-Visitor-Id"]=A==null?void 0:A.VISITOR_DATA;return Q},O9x=function(A){var Q=Kix;
Q+="&gs_id="+A.id.toString(36);Q+="&q="+encodeURIComponent(A.query);Q+="&cp="+A.query.length;A.previousSearchQuery&&(Q+="&pq="+encodeURIComponent(A.previousSearchQuery));(A=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(Q+="&video_id="+A);return Q},l9N=0,Kix="";var nIF=_.XA.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,kM7=_.XA.SEARCH_ENTITY_SUGGESTION_MOVIE,I9q=_.XA.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,H9t=_.XA.SEARCH_ENTITY_SUGGESTION_TV_SHOW,CZK=function(A,Q){this.text=A;this.bold=Q},qRx=function(A,Q,b){this.input=Q;
this.index=b;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=A[0];this.type=A[1];this.subtypes=A[2];var f;this.displayText=VW((f=A[3])==null?void 0:f.b);var a;this.ignoredPrefix=VW((a=A[3])==null?void 0:a.a);var T,G;this.hasNewVideo=((T=A[3])==null?void 0:(G=T.zam)==null?void 0:G.toString())==="true"?!0:!1;var p;this.visualSuggestUrl=(p=A[3])==null?void 0:p.zai;var P;this.entityType=VW((P=A[3])==null?void 0:P.zap);var U;this.entityName=VW((U=A[3])==null?void 0:U.zao);var L;Q=VW((L=
A[3])==null?void 0:L.zaf);var M;this.entityMid=(M=A[3])==null?void 0:M.zae;L=U7l(this.subtypes,this.entityMid);if(Q&&L){if(Q){M="";switch(L){case "YOUTUBE_ENTITY_TYPE_SONG":M=I9q;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":M=nIF;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":M=H9t;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":M=kM7}L=L==="YOUTUBE_ENTITY_TYPE_SONG"||L==="YOUTUBE_ENTITY_TYPE_ALBUM"?M+" \u2022  \u2022 "+Q:Q}else L="";this.entitySubtitle=L}var l;this.externalChannelId=(l=A[3])==null?void 0:l.zav;var J;
this.entityThumbnailAttributionUrl=(J=A[3])==null?void 0:J.zaq},tkr=function(A,Q){var b=[],f,a=(f=A.displayText)!=null?f:A.text;
(Q==null?0:Q.useEntityName)&&oIO(A)&&A.entityName&&(a=A.entityName);if(A.type===33)return b.push(new CZK(a,!1)),b;if(a.length>=A.input.length&&a.substring(0,A.input.length)===A.input)b.push(new CZK(A.input,!1)),b.push(new CZK(a.substring(A.input.length),!0));else{var T=new Set(A.input.split(/\s/)),G=a.split(/\s/);b=G.map(function(p,P){return new CZK(p.trim()+(P===G.length-1?"":" "),!T.has(p))})}return b},oIO=function(A){var Q=!!U7l(A.subtypes);
A=!!A.entityMid;return Q||A};var rKx=function(A){this.rawResponse=["",[],{}];this.suggestions=[];try{var Q=JSON.parse(LXx(A));if(typeof Q==="object"&&Q!==null)this.rawResponse=Q;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(f){console.log("Suggest: Failed to parse SuggestResponse!");return}var b=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(f,a){return new qRx(f,b,a)})};var jKr=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new Mk7;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20483_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},RI7,gIq=function(){RI7||(RI7=new jKr);
return RI7};
jKr.prototype.updateSuggestions=function(A){var Q=this;this.availableSuggestions.forEach(function(b){Q.previousSuggestions[b]=!0});
this.availableSuggestions=A.map(function(b){var f=b.type.toString();b.subtypes.length>0&&(f+="i"+b.subtypes.join("i"),f+="k"+b.suggestionSources.COMPLETE_SERVER.toString());return f})};
var eIs=function(A,Q){var b=Date.now();A.firstEditTime<0&&(A.firstEditTime=b);Q&&(A.lastQueryBuildTime=b);A.lastEditTime=b};
jKr.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20483_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var hIO=function(A){var Q="";A.availableSuggestions.forEach(function(a){delete A.previousSuggestions[a]});
for(var b=_.F(Object.keys(A.previousSuggestions)),f=b.next();!f.done;f=b.next())f=f.value,A.previousSuggestions[f]&&(Q+=(Q?"j":"")+f);return Q},Wid=function(A,Q){var b=[];
Q&&(b[1]=Q.toString());b[0]="youtube";b[7]=Date.now()-A.startTime;b[6]=A.sessionNumber;A.zeroPrefixSuggestionCount>=0&&(b[33]=A.zeroPrefixSuggestionCount);b[13]=A.outOfSyncResponseCount;if(A.availableSuggestions.length>0){for(var f=Q="",a=0,T=_.F(A.availableSuggestions),G=T.next();!G.done;G=T.next())G=G.value,G!==f&&(a>1&&(Q+="l"+a),Q+=(f?"j":"")+G,a=0,f=G),a+=1;a>1&&(Q+="l"+a);b[3]=Q}b[35]=hIO(A);A.selectedSuggestionIndex>=0&&(b[2]=A.selectedSuggestionIndex);var p;if(Q=(p=_.vG("SBOX_SETTINGS"))==
null?void 0:p.SUGG_EXP_ID)b[19]=A.normalize(Q),p=0,A.experimentTriggeredBeforeFinal&&(p|=1),A.experimentTriggeredFinal&&(p|=2),b[20]=p;b[26]=Array.from(A.inputMethodsTracker.usedMethods).join("j");if(A.JSC$20483_totalRoundTripTime>0){b[15]=A.JSC$20483_totalRoundTripTime;b[14]=A.maxRoundTripTime;p=[];for(a=Q=0;a<10;a++)f=A.roundTripTimeHistogram[a],f===0?Q++:(Q>1?p.push(a+"-"+f):Q===1?p.push("0j"+f):p.push(f.toString()),Q=0);p=p.join("j");b[16]=p}A.zeroPrefixRoundTripTime>0&&(b[36]=A.zeroPrefixRoundTripTime);
A.lastQueryBuildTime>0&&(b[18]=A.lastQueryBuildTime-A.startTime);A.firstEditTime>0&&(b[4]=A.firstEditTime-A.startTime);A.lastEditTime>0&&(b[5]=A.lastEditTime-A.startTime);return b.join(".")};
jKr.prototype.normalize=function(A){return A.replaceAll(".","-")};
var vIn=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var QL=function(){var A=_.q.apply(this,arguments)||this;A.microphoneSpinnerActive=!1;A.noAnimations=!1;A.boundExitClick=function(){A.onExitButtonClick()};
A.speechOverlayClassName="";A.isLevelAnimating=!1;A.playCloseDialogAudioFeedback=!0;A.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return A};
_.O(QL,_.q);_.d=QL.prototype;_.d.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.d.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=tyq()};
_.d.dataChanged=function(){this.logDialog()};
_.d.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var A;(A=this.manager.audioPlayer)!=null&&(A.JSC$19792_audioEnabled=!1)}this.manager.stop();(A=this.manager.audioPlayer)!=null&&(A.JSC$19792_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.d.handleSpeechQueryCompleteAction=function(A){var Q=A.navigationAction;Q&&(A.trackingParams&&_.IP().graftServerVe(A.trackingParams,this.dialogVe,5),_.Bn(this.hostElement,"yt-navigate",{endpoint:Q,tempData:this.getNavigationParams(Q),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.d.onExitButtonClick=function(){this.closeDialog()};
_.d.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var A;if((A=this.manager)!=null){var Q;(Q=A.audioPlayer)==null||Ti(Q,"failure");A.setState("microphone-off");A.stop()}}else(A=this.manager)==null||A.start()};
_.d.transcriptionChanged=function(){var A,Q;(((A=this.transcription)==null?0:A.low)||((Q=this.transcription)==null?0:Q.high))&&this.setState("transcribing",this.transcription)};
_.d.stateChanged=function(){this.setState(this.state,this.transcription)};
_.d.logDialog=function(){var A;(A=this.data)!=null&&A.trackingParams&&(A=_.IP(),_.Mk(A,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=A.graftServerVe(this.data.trackingParams,void 0,5))};
_.d.getNavigationParams=function(A){var Q={};if(_.K("web_yt_searchbox")){var b=gIq();b.inputMethodsTracker.add(6);b=Wid(b,15);Q.gs_l=b;var f;Q.oq=((f=_.V(A,_.kr))==null?void 0:f.query)||""}else if(A=window.ytvoicesearchloggingparams){if(A=A())Q.oq=A.oq,Q.gs_l=A.gs_l}else _.wN(Error("nl"));return Q};
_.d.closeDialog=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.d.setState=function(A,Q){if(this.data){var b=this.data,f={};switch(A){case "listening":f={headerText:b.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:b.microphoneButtonAriaLabel};break;case "timeout":f={headerText:b.promptHeader,microphoneState:"try-again",microphoneLabel:b.promptMicrophoneLabel,microphoneAriaLabel:b.promptMicrophoneLabel};break;case "microphone-off":f={headerText:b.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:b.promptMicrophoneLabel,
microphoneAriaLabel:b.promptMicrophoneLabel};break;case "transcribing":(Q==null?0:Q.low)||(Q==null?0:Q.high)?f={transcriptionLow:Q==null?void 0:Q.low,transcriptionHigh:Q==null?void 0:Q.high,microphoneState:"speaking",microphoneAriaLabel:b.microphoneButtonAriaLabel}:f={headerText:b.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:b.microphoneButtonAriaLabel};break;case "processing":f={headerText:b.loadingHeader,microphoneState:"processing",microphoneAriaLabel:b.microphoneButtonAriaLabel};
break;case "offline":f={headerText:b.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:b.connectionErrorMicrophoneLabel,microphoneAriaLabel:b.connectionErrorMicrophoneLabel};break;case "permission":f={headerText:b.permissionsHeader,bodyLine1:b.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:b.permissionsSubtext};break;case "permission-denied":f={headerText:b.disabledHeader,bodyLine1:b.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:b.disabledSubtext}}f.className=
A;this.speechOverlayState=f;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.d.setMicrophoneState=function(A){var Q=this.isLevelAnimating;this.isLevelAnimating=A==="speaking";!Q&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=A==="processing"&&!this.noAnimations};
_.d.setClass=function(A){this.speechOverlayClassName&&_.Pj(this.hostElement,this.speechOverlayClassName,!1);A&&(this.speechOverlayClassName=A,_.Pj(this.hostElement,A,!0))};
_.d.runLevelAnimation=function(){var A=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var Q=1+Math.random()*.75,b=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+b/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+Q+")");_.j7.addJob(function(){A.runLevelAnimation()},3,b)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
QL.prototype.stateChanged=QL.prototype.stateChanged;QL.prototype.transcriptionChanged=QL.prototype.transcriptionChanged;QL.prototype.onPopupClosed=QL.prototype.onPopupClosed;QL.prototype.dataChanged=QL.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],QL.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],QL.prototype,"rendererStamperBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],QL.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],QL.prototype,"eventForwardingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],QL.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],QL.prototype,"speechOverlayState",void 0);
_.E([_.C(),_.c("design:type",Object)],QL.prototype,"microphoneSpinnerActive",void 0);_.E([_.C({type:_.K("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.c("design:type",Object)],QL.prototype,"noAnimations",void 0);_.E([_.C({selector:function(A){var Q;return(Q=A.voiceSearch)==null?void 0:Q.transcription}}),
_.c("design:type",Object)],QL.prototype,"transcription",void 0);_.E([_.C({selector:function(A){var Q;return(Q=A.voiceSearch)==null?void 0:Q.overlay}}),
_.c("design:type",String)],QL.prototype,"state",void 0);_.E([_.C(),_.c("design:type",Object)],QL.prototype,"boundExitClick",void 0);_.E([_.V1("#microphone-levels"),_.c("design:type",HTMLElement)],QL.prototype,"level",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QL.prototype,"dataChanged",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QL.prototype,"onPopupClosed",null);
_.E([_.I_("transcription"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QL.prototype,"transcriptionChanged",null);_.E([_.I_("state"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],QL.prototype,"stateChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],QL);
_.W(QL,"ytd-voice-search-dialog-renderer",function(){if(LiF!==void 0)return LiF;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return LiF=A},{mode:1});var EIN;var bo=function(){var A=_.q.apply(this,arguments)||this;A.isOverlay=!1;A.hidden=!1;return A};
_.O(bo,_.q);_.d=bo.prototype;_.d.onPopupClosed=function(){this.toggleIconState(!1)};
_.d.computeIcon=function(){var A,Q,b;return(Q=_.V((A=this.data)==null?void 0:A.icon,Pzl))==null?void 0:(b=Q.icon)==null?void 0:b.iconType};
_.d.computeIconBadgeShape=function(){var A;return{iconBadgeType:"cart",iconBadgeText:(A=this.iconBadgeEntity)==null?void 0:A.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.d.onClick=function(){var A;(A=this.data)!=null&&A.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.d.computeHidden=function(A){return!A};
_.d.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
bo.prototype.onPopupClosed=bo.prototype.onPopupClosed;_.E([_.I(_.cb),_.c("design:type",Object)],bo.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],bo.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],bo.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],bo.prototype,"isOverlay",void 0);
_.E([_.C({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.c("design:type",Object)],bo.prototype,"hidden",void 0);_.E([_.C({selectorArgs:["data.iconBadgeEntityKey"],selector:function(A,Q){return _.Me(A.entities,"iconBadgeEntity",Q)}}),
_.c("design:type",Object)],bo.prototype,"iconBadgeEntity",void 0);_.E([_.V1("yt-icon-button"),_.c("design:type",HTMLButtonElement)],bo.prototype,"iconButton",void 0);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],bo.prototype,"onPopupClosed",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],bo);
_.W(bo,"ytd-icon-badge-topbar-button-renderer",function(){if(EIN!==void 0)return EIN;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return EIN=A},{mode:1});var xEN;var fy=function(){var A=_.q.apply(this,arguments)||this;A.premiumOptions=[];A.darkerDarkTheme=_.K("web_darker_dark_theme");return A};
_.O(fy,_.q);fy.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Qr.Object.defineProperties(fy.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],fy.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Array)],fy.prototype,"premiumOptions",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],fy.prototype,"darkerDarkTheme",void 0);_.E([_.H("premiumOptions"),_.c("design:type",Object),_.c("design:paramtypes",[])],fy.prototype,"hasPremiumOptions",null);
_.E([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],fy);
_.W(fy,"ytd-offline-promo-content",function(){if(xEN!==void 0)return xEN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return xEN=A},{mode:1});var cK7;var aG=function(){var A=_.q.apply(this,arguments)||this;A.premiumOptions=[];return A};
_.O(aG,_.q);aG.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A;this.premiumOptions=SGr((A=this.data)==null?void 0:A.formats)};
aG.prototype.onClickSubmit=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var A;(A=_.BL())==null||A.pause()};
aG.prototype.attached=function(){this.JSC$20503_scroller&&(this.JSC$20503_scroller.dialogElement=this.hostElement.parentNode)};
_.Qr.Object.defineProperties(aG.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
aG.prototype.dataChanged=aG.prototype.dataChanged;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],aG.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],aG.prototype,"data",void 0);
_.E([_.C({computed:"computeIcon_(data.headersIcon)",value:""}),_.c("design:type",String)],aG.prototype,"headersIcon",void 0);_.E([_.C(),_.c("design:type",Array)],aG.prototype,"premiumOptions",void 0);_.E([_.V1("#scroller"),_.c("design:type",Object)],aG.prototype,"JSC$20503_scroller",void 0);_.E([_.H("headersIcon"),_.c("design:type",Object),_.c("design:paramtypes",[])],aG.prototype,"showIcon",null);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],aG.prototype,"dataChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],aG);
_.W(aG,"ytd-offline-promo-renderer",function(){if(cK7!==void 0)return cK7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return cK7=A},{mode:1});var zIN;var TR=function(){var A=_.q.apply(this,arguments)||this;A.playbackPauseInterval=NaN;A.isLoading=!1;A.hasError=!1;A.dialogClass="";A.youtubeLabel=_.JQ("LOGO_ALT_LABEL",{},"YouTube Home");A.logoName="yt-logos-ext:yt-logo-updated";A.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return A};
_.O(TR,_.q);_.d=TR.prototype;_.d.onDataChange=function(){var A;if(this.showEOMV1Text=!((A=this.data)==null||!A.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.d.attached=function(){this.pausePlayer()};
_.d.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.d.handleLangSelect=function(A){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[A.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.d.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.d.handleSaveConsent=function(A){var Q=this;this.showLoadingSpinner();this.showLoadingSpinner();$Hs(_.V(A,X3l)).catch(function(b){_.Wv(new _.IO("Something went wrong when save consent "+(b.message?b.message:b)+"."));Q.hideLoadingSpinner();Q.showErrorMessage()})};
_.d.handleDisablePersonalization=function(A){var Q=this;this.showLoadingSpinner();NKO(_.V(A,P7N)).then(function(){Q.dialog.close();Q.resumePlayer()}).catch(function(b){_.Wv(new _.IO("Something went wrong when disable personalization "+(b.message?b.message:b)+"."));
Q.hideLoadingSpinner();Q.showErrorMessage()})};
_.d.showLoadingSpinner=function(){var A=this;this.showSpinnerJobId=_.j7.addLowPriorityJob(function(){A.isLoading=!0},500)};
_.d.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.j7.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.d.showErrorMessage=function(){var A=this;this.hasError=!0;_.j7.addLowPriorityJob(function(){A.hasError=!1},2E3)};
_.d.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.St(function(){try{var A=_.BL();A&&A.pause()}catch(Q){}},100))};
_.d.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var A=_.BL();A&&A.play()}catch(Q){}};
_.Qr.Object.defineProperties(TR.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var Q=["SHIELD","WARNING","BAR_CHART"],b=this.data.eomV1Text.essentialCookieMsg.items,f=0;f<Q.length&&f<b.length;f++)A.push({icon:Q[f],text:b[f]});return A}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var Q=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],b=this.data.eomV1Text.nonEssentialCookieMsg.items,f=0;f<Q.length&&f<b.length;f++)A.push({icon:Q[f],text:b[f]});return A}}});
TR.prototype.onDataChange=TR.prototype.onDataChange;_.E([_.C(),_.c("design:type",Object)],TR.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],TR.prototype,"showEOMV1Text",void 0);_.E([_.C(),_.c("design:type",Object)],TR.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Object)],TR.prototype,"hasError",void 0);_.E([_.C(),_.c("design:type",Number)],TR.prototype,"showSpinnerJobId",void 0);_.E([_.C(),_.c("design:type",Object)],TR.prototype,"dialogClass",void 0);
_.E([_.V1("#dialog"),_.c("design:type",Object)],TR.prototype,"dialog",void 0);_.E([_.V1("#cb-header"),_.c("design:type",HTMLElement)],TR.prototype,"header",void 0);_.E([_.V1("#lang-select"),_.c("design:type",HTMLElement)],TR.prototype,"langSelect",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],TR.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],TR.prototype,"ytComponentBehavior",void 0);
_.E([_.C(),_.c("design:type",String)],TR.prototype,"youtubeLabel",void 0);_.E([_.C(),_.c("design:type",Object)],TR.prototype,"logoName",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],TR.prototype,"onDataChange",null);_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],TR.prototype,"eomEssentialCookieMsgItems",null);
_.E([_.H("data"),_.c("design:type",Array),_.c("design:paramtypes",[])],TR.prototype,"eomNonEssentialCookieMsgItems",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],TR);
_.W(TR,"ytd-consent-bump-v2-lightbox",function(){if(zIN!==void 0)return zIN;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return zIN=A},{mode:1});var wg7;var dp=function(){return _.q.apply(this,arguments)||this};
_.O(dp,_.q);dp.prototype.ready=function(){if(!_.Oo()||INl)var A=!0;else INl=!0,A=!1;A||(A=document.querySelector("ytd-app"),A||(A=document.body),this.internalLightBox=_.Bj(A).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.E([_.C(),_.c("design:type",Object)],dp.prototype,"data",void 0);_.E([_.V1("#lightbox"),_.c("design:type",Object)],dp.prototype,"lightBox",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],dp);
_.W(dp,"ytd-consent-bump-v2-renderer",function(){if(wg7!==void 0)return wg7;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return wg7=A},{mode:1});var uqs;var Z9l;var yKt;var F3=function(){return _.q.apply(this,arguments)||this};
_.O(F3,_.q);_.d=F3.prototype;_.d.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&jbq(this.toastManager,this.toastType)};
_.d.open=function(A){this.toast&&(this.ephemeralAction&&_.fJ().resolve(_.rI).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=A!=null?A:0,this.toastManager.enqueue(this.toast,A)):this.toast.open())};
_.d.close=function(A){var Q;(Q=this.toast)==null||Q.close();this.toastManager&&A===1&&jbq(this.toastManager,A)};
_.d.refit=function(){var A;(A=this.toast)==null||A.refit()};
_.d.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var A;(A=this.toast)==null||A.close()}};
_.d.setVerticalOffset=function(A){this.toast&&(this.toast.verticalOffset=A,this.toast.fit())};
_.d.computeButtonClass_=function(A){return A?"toast-button":""};
_.d.computeText_=function(A){return _.mO(A)};
_.d.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sn("toast-opened-changed",this.toastOpened))};
_.d.updateToastOpenedFromBinding=function(A){this.toastOpened=A.detail.value};
_.Qr.Object.defineProperties(F3.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var A,Q,b=(A=this.data)==null?void 0:(Q=A.actionButton)==null?void 0:Q.buttonRenderer;return(b==null?void 0:b.command)||(b==null?void 0:b.serviceEndpoint)||(b==null?void 0:b.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 A=[],Q;((Q=this.data)==null?0:Q.responseText)&&A.push(_.mO(this.data.responseText));var b;((b=this.data)==null?0:b.subText)&&A.push(_.mO(this.data.subText));var f,a;if((f=this.data)==null?0:(a=f.actionButton)==null?0:a.buttonRenderer){var T,G;A.push(((T=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(G=T.accessibilityData)==null?void 0:G.label)||_.mO(this.data.actionButton.buttonRenderer.text))}return A.filter(function(p){return p}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var A,Q;return(Q=(A=this.toast)==null?void 0:A.opened)!=null?Q:!1}}});
F3.prototype.toastOpenedChangedForBinding=F3.prototype.toastOpenedChangedForBinding;F3.prototype.toastOpenedChanged=F3.prototype.toastOpenedChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],F3.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],F3.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],F3.prototype,"duration",void 0);
_.E([_.C(),_.c("design:type",Number)],F3.prototype,"toastType",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],F3.prototype,"useCloseButton",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],F3.prototype,"closeToastOnActionButtonClick",void 0);_.E([_.C({value:function(){return _.JQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.c("design:type",String)],F3.prototype,"closeButtonAriaLabel",void 0);_.E([_.C(),_.c("design:type",Boolean)],F3.prototype,"toastOpened",void 0);_.E([_.C(),_.c("design:type",Boolean)],F3.prototype,"hasOpened",void 0);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],F3.prototype,"command",null);_.E([_.H("labelText","command","duration"),_.c("design:type",Object),_.c("design:paramtypes",[])],F3.prototype,"ephemeralAction",null);
_.E([_.H("ephemeralAction"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],F3.prototype,"hasEphemeralAction",null);_.E([_.V1("#toast"),_.c("design:type",Object)],F3.prototype,"toast",void 0);_.E([_.C({value:function(){return{style:"call-to-action-inverse"}}}),
_.c("design:type",Object)],F3.prototype,"buttonOverrides",void 0);_.E([_.C({value:{style:"mono-inverse"}}),_.c("design:type",Object)],F3.prototype,"closeButtonOverrides",void 0);_.E([_.C({value:function(){return _.fJ().resolve(_.bu(_.Hu))}}),
_.c("design:type",Object)],F3.prototype,"toastManager",void 0);_.E([_.H("data.responseText","data.subText","data.actionButton"),_.c("design:type",Object),_.c("design:paramtypes",[])],F3.prototype,"labelText",null);_.E([_.iN("toastOpened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],F3.prototype,"toastOpenedChanged",null);
_.E([_.iN("toastOpened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],F3.prototype,"toastOpenedChangedForBinding",null);_.E([_.Ec({is:"yt-notification-action-renderer",disableElementRegistration:!0})],F3);
_.W(F3,"yt-notification-action-renderer",function(){if(yKt===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Z9l===void 0&&(Z9l=document.createElement("template"));var f=Z9l;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);yKt=A}A=yKt;return A},{mode:2});var GR=function(){var A=_.q.apply(this,arguments)||this;A.duration=4E3;A.downloadingCount=0;A.downloadedCount=0;A.downloadingOnlySmartDownloads=!1;A.sessionTotalDownloads=0;A.sessionDownloaded=0;A.previousSessionsDownloaded=0;A.totalDownloadPercentage=0;A.currentDownloadProgress=0;A.currentDownloadPercentage=0;A.isLeaderTab=!0;A.isFullScreen=!1;A.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};A.boundBeforeUnload=function(Q){A.isLeaderTab&&A.downloadingCount>0&&(Q.preventDefault(),
Q.returnValue=!0)};
return A};
_.O(GR,_.q);_.d=GR.prototype;
_.d.open=function(){this.updateDownloadState();if(this.data){var A=this.sessionDownloaded+1,Q=this.sessionTotalDownloads>1?_.JQ("VIDEOS_DOWNLOADING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+A+"/"+this.sessionTotalDownloads):_.JQ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(Q=this.sessionTotalDownloads>1?_.JQ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
A+"/"+this.sessionTotalDownloads):_.JQ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));A=this.isLeaderTab?_.JQ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.mO(this.data.responseText)!==Q||_.mO(this.data.subText)!==A)this.set("data.responseText",_.sr(Q)),this.set("data.subText",_.sr(A)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.d.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.d.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.d.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.d.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var A=this.downloadedCount-this.previousSessionsDownloaded;A<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-A);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.d.handleFullscreenChange=function(A){(this.isFullScreen=A)||this.updatePopup()};
GR.prototype.updateCurrentDownloadProgress=GR.prototype.updateCurrentDownloadProgress;GR.prototype.updatePopup=GR.prototype.updatePopup;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],GR.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],GR.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],GR.prototype,"actionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],GR.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],GR.prototype,"duration",void 0);_.E([_.C({selector:function(A){return _.ZY9(A.entities).length}}),
_.c("design:type",Object)],GR.prototype,"downloadingCount",void 0);_.E([_.C({selector:dW7}),_.c("design:type",Object)],GR.prototype,"downloadedCount",void 0);_.E([_.C({selector:function(A){var Q=_.ZY9(A.entities);return TGK(A.entities,Q)}}),
_.c("design:type",Object)],GR.prototype,"downloadingOnlySmartDownloads",void 0);_.E([_.C(),_.c("design:type",Object)],GR.prototype,"sessionTotalDownloads",void 0);_.E([_.C(),_.c("design:type",Object)],GR.prototype,"sessionDownloaded",void 0);_.E([_.C(),_.c("design:type",Object)],GR.prototype,"previousSessionsDownloaded",void 0);_.E([_.C(),_.c("design:type",Object)],GR.prototype,"totalDownloadPercentage",void 0);
_.E([_.C({selector:function(A){var Q;A=(Q=_.ZY9(A.entities))!=null?Q:[];return A.length>0?_.gjU(A.slice(-1)):0}}),
_.c("design:type",Object)],GR.prototype,"currentDownloadProgress",void 0);_.E([_.C(),_.c("design:type",Object)],GR.prototype,"currentDownloadPercentage",void 0);_.E([_.C({selector:_.Nli}),_.c("design:type",Object)],GR.prototype,"isLeaderTab",void 0);_.E([_.V1("yt-notification-action-renderer"),_.c("design:type",Object)],GR.prototype,"notificationActionRenderer",void 0);
_.E([_.I_("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],GR.prototype,"updatePopup",null);_.E([_.I_("currentDownloadProgress"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],GR.prototype,"updateCurrentDownloadProgress",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],GR);
_.W(GR,"ytd-video-download-toast-renderer",function(){if(uqs!==void 0)return uqs;var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return uqs=A},{mode:1});var YRN;var DEO;var Bs=function(){return _.q.apply(this,arguments)||this};
_.O(Bs,_.q);Bs.prototype.computeIsRedLogo=function(A,Q){!A&&Q&&(A=Q);return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
Bs.prototype.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Bs.prototype,"componentBehavior",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.c("design:type",Boolean)],Bs.prototype,"isRedLogo",void 0);_.E([_.C({computed:"computeLogoName(data)"}),_.c("design:type",String)],Bs.prototype,"logoName",void 0);_.E([_.C({value:{}}),_.c("design:type",Object)],Bs.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],Bs.prototype,"logoType",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-logo"})],Bs);
_.W(Bs,"ytd-logo",function(){if(DEO!==void 0)return DEO;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return DEO=A},{mode:_.UG("kevlar_poly_si_batch_j074")?1:2});var py=function(){var A=_.q.apply(this,arguments)||this;A.animationRef={};return A};
_.O(py,_.q);_.d=py.prototype;_.d.attached=function(){document.addEventListener("yt-navigate-finish",_.lN(this,this.logYoodle))};
_.d.detached=function(){document.removeEventListener("yt-navigate-finish",_.lN(this,this.logYoodle))};
_.d.logYoodle=function(){var A,Q;if((A=this.data)==null?0:(Q=A.loggingDirectives)==null?0:Q.trackingParams)this.ytRendererBehavior.markDirty(),_.IP().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.d.computeHideImg=function(A,Q){return!!A||!!Q};
_.d.computeHideYtdLogo=function(A,Q){return!A||!!Q};
_.d.computeHideLottie=function(A){return!A};
_.d.computeIsRedLogo=function(A){return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
_.d.renderLogoEntity=function(){var A=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),Q=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getLogoTitleText(this.data),f=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==A&&(this.url=A);this.animatedUrl!==Q&&(this.animatedUrl=Q);this.logoTitleText!==b&&(this.logoTitleText=b);this.lottieUrl!==f&&(this.lottieUrl=f,this.lottiePlayerProps=this.computeLottiePlayerProps(f))};
_.d.getSanitizedThumbnail=function(A){return A&&A.thumbnails?_.Nf4(A.thumbnails,122)||"":""};
_.d.getThumbnailUrl=function(A,Q){if(!Q)return"";var b,f;A=A?(b=Q.darkThemeLogo)==null?void 0:b.thumbnail:(f=Q.lightThemeLogo)==null?void 0:f.thumbnail;return this.getSanitizedThumbnail(A)};
_.d.getAnimatedThumbnailUrl=function(A,Q){return Q?this.getSanitizedThumbnail(A?Q.darkThemeAnimatedLogo:Q.lightThemeAnimatedLogo):""};
_.d.getLogoTitleText=function(A){if(A)return _.mO(A.tooltipText)};
_.d.computeLogoIcon=function(A,Q){if(Q){var b,f;return A?(b=Q.darkThemeLogo)==null?void 0:b.icon:(f=Q.lightThemeLogo)==null?void 0:f.icon}};
_.d.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.d.getLottieUrl=function(A,Q){var b,f,a,T;return A?Q==null?void 0:(b=Q.darkThemeLogo)==null?void 0:(f=b.lottieAnimation)==null?void 0:f.url:Q==null?void 0:(a=Q.lightThemeLogo)==null?void 0:(T=a.lottieAnimation)==null?void 0:T.url};
_.d.computeLottiePlayerProps=function(A){if(A){var Q;if((Q=this.animationRef)==null?0:Q.lottieEl){var b;(b=this.animationRef)==null||b.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:A,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.d.onLottieError=function(){this.data&&this.lottieUrl&&_.Bn(this.hostElement,"yoodle-error")};
_.d.onImgError=function(){this.data&&!this.lottieUrl&&_.Bn(this.hostElement,"yoodle-error")};
py.prototype.playAnimation=py.prototype.playAnimation;py.prototype.renderLogoEntity=py.prototype.renderLogoEntity;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],py.prototype,"data",void 0);_.E([_.C({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.c("design:type",Boolean)],py.prototype,"hideImg",void 0);
_.E([_.C({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.c("design:type",Boolean)],py.prototype,"hideYtdLogo",void 0);_.E([_.C({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.c("design:type",Boolean)],py.prototype,"hideLottie",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.c("design:type",Boolean)],py.prototype,"isRedLogo",void 0);
_.E([_.C(),_.c("design:type",Boolean)],py.prototype,"useDarkThemeYoodle",void 0);_.E([_.C(),_.c("design:type",String)],py.prototype,"url",void 0);_.E([_.C(),_.c("design:type",String)],py.prototype,"animatedUrl",void 0);_.E([_.C(),_.c("design:type",String)],py.prototype,"logoTitleText",void 0);_.E([_.C({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.c("design:type",Object)],py.prototype,"logoIcon",void 0);_.E([_.C(),_.c("design:type",Object)],py.prototype,"logoType",void 0);
_.E([_.C(),_.c("design:type",String)],py.prototype,"lottieUrl",void 0);_.E([_.C(),_.c("design:type",Object)],py.prototype,"lottiePlayerProps",void 0);_.E([_.C(),_.c("design:type",Object)],py.prototype,"animationRef",void 0);_.E([_.iN("data"),_.iN("useDarkThemeYoodle"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],py.prototype,"renderLogoEntity",null);
_.E([_.Kc("click"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],py.prototype,"playAnimation",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],py);
_.W(py,"ytd-yoodle-renderer",function(){if(YRN!==void 0)return YRN;var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return YRN=A},{mode:_.UG("kevlar_poly_si_batch_j074")?1:2});var $Es;var Nt7;var Ps=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return A};
_.O(Ps,_.q);_.d=Ps.prototype;_.d.onYoodleError=function(){_.K("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.d.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.d.computeTitle=function(A,Q,b){return b&&(Q==null?0:Q.tooltipText)?_.mO(Q.tooltipText):_.mO(A)};
_.d.computeAriaLabel=function(A,Q,b){return b&&(Q==null?0:Q.tooltipText)?_.mO(A):""};
_.d.computeShowYoodle=function(A,Q,b){return!A||!Q&&!!b&&!_.j2.isEmpty(b)};
_.d.onNavigateHomeAction=function(){if(_.K("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A;(A=_.Bj(this.hostElement).querySelector(".yt-simple-endpoint"))==null||A.click()}};
_.d.computeLogoHref=function(A,Q,b){var f;(b==null?0:b.onTapCommand)?f=this.componentBehavior.computeHref_(b.onTapCommand):A&&(f=this.componentBehavior.computeHref_(A));return f?f:Q};
_.d.computeCommand=function(A,Q){return(Q==null?void 0:Q.onTapCommand)||A};
_.d.getEndpointForm=function(){if(_.K("kevlar_topbar_disable_cache_only_home")){var A=_.fJ().resolve(_.u7),Q=MTO(A.getState())||"";A=_.r5y(A.getState())||"";return{disableCache:Q==="ytd-browse"&&A==="home"}}return{disableCache:!0}};
Ps.prototype.onYoodleError=Ps.prototype.onYoodleError;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Ps.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Ps.prototype,"componentBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],Ps.prototype,"ytdReduxBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Ps.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],Ps.prototype,"countryCode",void 0);_.E([_.C({selectorArgs:["data.overrideEntityKey"],selector:function(A,Q){return _.Me(A.entities,"logoEntity",Q)}}),
_.c("design:type",Object)],Ps.prototype,"logoEntity",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.c("design:type",Boolean)],Ps.prototype,"showYoodle",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Ps.prototype,"yoodleError",void 0);_.E([_.C({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.c("design:type",String)],Ps.prototype,"titleText",void 0);
_.E([_.C({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.c("design:type",String)],Ps.prototype,"ariaLabelText",void 0);_.E([_.C({value:"/"}),_.c("design:type",String)],Ps.prototype,"defaultEndpointUrl",void 0);_.E([_.C({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.c("design:type",String)],Ps.prototype,"endpointUrl",void 0);
_.E([_.C({computed:"computeCommand(data.endpoint, logoEntity)"}),_.c("design:type",String)],Ps.prototype,"command",void 0);_.E([_.C(),_.c("design:type",Object)],Ps.prototype,"logoType",void 0);_.E([_.C({}),_.c("design:type",Boolean)],Ps.prototype,"useDarkThemeYoodle",void 0);_.E([_.Kc("yoodle-error"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ps.prototype,"onYoodleError",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Ps);
_.W(Ps,"ytd-topbar-logo-renderer",function(){if(Nt7!==void 0)return Nt7;var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Nt7=A},{mode:_.UG("kevlar_poly_si_batch_j027")?1:2});var sKM=0;var mEN=_.XA.SEARCH_APPEND_LABEL,A6x=_.XA.SUGGESTION_NEW_VIDEOS_TEXT,QhN=_.XA.SUGGESTION_THUMBNAIL_LABEL,bld=_.XA.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,fP7=_.aP(function(A){function Q(oy){var ON,Sx;return _.B(function(UN){if(UN.nextAddress==1)return ON=new Request(oy),_.ML(UN,2),UN.yield(fetch(ON,{credentials:"include"}),4);if(UN.nextAddress!=2)return Ks(!0),_.Z1(UN,0);Sx=_.Vw(UN);_.Wv(Sx);_.Oi(UN)})}
var b=A.isHighlighted;var f=A.suggestion;var a=A.onClickCallback;var T=A.onHoverUpdateCallback;var G=A.labels;var p=A.queryBuilderFunction;var P=A.onRemoveCallback;var U=A.suggestionIndex;var L=A.generateUniqueId;var M=A.highlightedId;var l=A.useScrollMargin;var J=A.isKeyboardMode;var n=null,t=null,g=_.st("div"),e=_.st("span");A=_.F(_.pz(!1,void 0,"CgAMgc"));var x=A.next().value,D=A.next().value,w=_.mS("a",function(oy){oy&&_.rL(237477,oy,t,function(ON){t=ON})}),u=_.mS("button",function(oy){oy&&_.rL(237477,
oy,t,function(ON){t=ON})}),y=_.IY(function(oy){if((oy==null?void 0:oy.button)===2)return oy.preventDefault(),!1;
var ON=_.WR();ON&&n&&_.NB(ON,n,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Sx;a(oy,f().text,f().index,f().entityMid,oy==null?void 0:(Sx=oy.detail)==null?void 0:Sx.wasSelectedByKeyboard);return!1}),a9=function(){return f().type===35},pF=function(){return _.K("desktop_enable_single_suggestion_highlight")},Ub=function(){return _.GP("desktop_suggestions_panel_row_height")||0},Ob=function(){var oy;
return _.K("desktop_enable_new_video_metadata")&&((oy=f())==null?void 0:oy.hasNewVideo)===!0},I9=function(){return _.K("desktop_enable_visual_suggest")},iy=function(){return _.K("desktop_enable_entity_suggest")&&oIO(f())},wW=function(){return f().entitySubtitle},h4=function(){return pF()?(b==null?void 0:b())||bY()&&!(J==null?0:J()):(b==null?void 0:b())||bY()},SW=function(){var oy=_.vG("SBOX_SETTINGS");
return a9()&&!(oy==null?0:oy.HIDE_REMOVE_LINK)},r9=function(){return tkr(f(),{useEntityName:iy()})},PM,Nf=!((PM=_.fJ().resolve(_.bu(_.Af)))==null||!PM()),L$=function(){return a9()?_.K("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},UL=function(){return G==null?void 0:G().SUGGESTION_DISMISS_LABEL},HM=function(){return G==null?void 0:G().SUGGESTION_DISMISSED_LABEL};
A=_.F(_.pz(!1,void 0,"RcUcKd"));PM=A.next().value;var Ks=A.next().value;A=_.F(_.pz(!1,void 0,"yGR7je"));var Y1=A.next().value,dW=A.next().value,bY=Y1,OL=_.IY(function(){p(e.value.innerText);return!1}),iO=_.IY(function(oy){oy.preventDefault();
return!1}),Jv=_.IY(function(oy){var ON=f().text,Sx=_.vG("SBOX_SETTINGS"),UN="https://"+(Sx.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
UN+="&delq="+encodeURIComponent(ON);(ON=Sx==null?void 0:Sx.PSUGGEST_TOKEN)&&(UN+="&tok="+ON);(Sx=Sx==null?void 0:Sx.SESSION_INDEX)&&(UN+="&authuser="+Sx);Q(UN);oy.preventDefault();(oy=_.WR())&&t&&_.NB(oy,t,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");P(U==null?void 0:U());return!1}),zr=_.IY(function(){if(pF()&&(J==null?0:J()))return!1;
dW(!0);T(!0);return!1}),fN=_.IY(function(){dW(!1);
T(!1);return!1}),sL=_.IY(function(){D(!0);
return!1}),FL=_.IY(function(){D(!1);
return!1}),Qx=_.IY(function(oy){oy.preventDefault();
var ON;(oy=(ON=f().entityThumbnailAttributionUrl)!=null?ON:"")&&_.i_X(oy);return!1});
A=_.F(_.pz("",void 0,"k9uVge"));var Ls=A.next().value,k1=A.next().value;_.CH(function(){SW()&&k1(L==null?void 0:L(U==null?void 0:U()));g.value&&_.rL(12453,g.value,n,function(oy){n=oy})});
return _.X(_.S,{cond:PM,then:function(){var oy={};return _.X("div",{class:_.O4("ytSuggestionComponentRemovedText",(oy.ytSuggestionComponentLargerRemovedText=function(){return I9()},oy)),
style:function(){return Ub()>0?"height: "+Ub()+"px;":""},
role:"button"},HM)},
else:function(){var oy={},ON={};return _.X("div",{class:_.O4("ytSuggestionComponentSuggestion",(oy.ytSuggestionComponentSuggestionHover=function(){return!pF()},oy.ytSuggestionComponentHighlighted=h4,oy.ytSuggestionComponentPersonalizedSuggestion=a9,oy.ytSuggestionComponentMweb=!1,oy.ytSuggestionComponentLargerSuggestion=function(){return Ob()||I9()},oy.ytSuggestionComponentThumbnailSuggestion=function(){return I9()},oy.ytSuggestionComponentRoundedSuggestion=function(){return _.K("desktop_enable_scrollable_suggestions_panel")&&
_.K("desktop_enable_suggestions_panel_padding")},oy.ytSuggestionComponentThumbnailPadding=function(){return I9()&&!a9()},oy)),
style:function(){return Ub()>0?"height: "+Ub()+"px;":""},
role:"presentation","on:mousedown":y,"on:mouseover":zr,"on:mouseout":fN,el:g},_.X("div",{class:_.O4("ytSuggestionComponentText",(ON.ytSuggestionComponentScrollMargin=l,ON)),"aria-label":function(){return Ob()?f().text+" "+A6x:f().text},
id:function(){return L==null?void 0:L(U==null?void 0:U())},
"on:mousedown":y,role:"option"},_.X(_.S,{cond:function(){return f().type!==33},
then:function(){return _.X(_.oY,{icon:L$,className:"ytSuggestionComponentIcon"})}}),_.X("div",{class:"ytSuggestionComponentLeftContainer"},_.X("span",{el:e,
role:"button",tabindex:0},_.X(_.Op,{each:r9},function(Sx){return Sx.bold?_.X("span",{class:"ytSuggestionComponentBold"},Sx.text):_.X("span",null,Sx.text)})),_.X(_.S,{cond:function(){return iy()&&!!f().entitySubtitle||Ob()},
then:function(){return _.X("div",{class:"ytSuggestionComponentMetadataContainer"},_.X(_.S,{cond:function(){return iy()&&!!f().entitySubtitle},
then:function(){return _.X("div",{class:"ytSuggestionComponentEntitySubtitle"},wW)}}),_.X(_.S,{cond:function(){return Ob()},
then:function(){return _.X("div",{class:"ytSuggestionComponentNewVideoContainer"},_.X("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.X("div",{class:"ytSuggestionComponentNewVideoText"},A6x))}}))}}))),_.X("div",{class:"ytSuggestionComponentRightContainer"},_.X(_.S,{cond:function(){return I9()&&f().visualSuggestUrl!==void 0},
then:function(){var Sx={};return _.X("div",{class:"ytSuggestionComponentThumbnailContainer"},_.X("img",{"aria-label":QhN,class:_.O4("ytSuggestionComponentVisualSuggestThumbnail",(Sx.ytSuggestionComponentCircularFrame=function(){return iy()&&f().subtypes.includes(790)},Sx.ytSuggestionComponentEntitySuggestThumbnail=function(){return iy()},Sx)),
src:function(){return f().visualSuggestUrl}}),_.X(_.S,{cond:function(){return iy()&&!!f().entityThumbnailAttributionUrl},
then:function(){var UN={};return _.X("span",{title:bld,role:"tooltip"},_.X("div",{"on:mouseover":sL,"on:mouseout":FL,"on:mousedown":Qx,class:_.O4("ytSuggestionComponentThumbnailOverlay",(UN.ytSuggestionComponentThumbnailOverlayHidden=function(){return!x()},UN))},_.X(_.oY,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.X(_.I8,null,_.X(_.nH,{when:function(){return I9()&&SW()}},function(){var Sx={};
return _.X("button",{class:_.O4("ytSuggestionComponentRemoveLinkClearButton",(Sx.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Ls()&&Ls()===(M==null?void 0:M())},Sx.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!h4()},Sx)),
el:u,"on:mousedown":Jv,"aria-label":UL,id:function(){return Ls()}},_.X(_.oY,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.X(_.nH,{when:function(){return!(I9()&&f().visualSuggestUrl!==void 0)&&SW()}},function(){var Sx={};
return _.X("a",{class:_.O4("ytSuggestionComponentRemoveLink",(Sx.ytSuggestionComponentRemoveLinkDark=Nf,Sx.ytSuggestionComponentRemoveLinkSelected=function(){return Ls()&&Ls()===(M==null?void 0:M())},Sx)),
el:w,"on:mousedown":Jv,"aria-label":UL,tabindex:0,role:"button",id:function(){return Ls()}},UL)}),_.X(_.nH,{when:function(){return!1}},function(){return _.X("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":OL,"on:mousedown":iO,role:"button","aria-label":mEN},_.X(_.oY,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Ig");var aPM=_.sC(["//www.google.com/textinputassistant/","/","_tia.js"]),TaO=_.aP(function(){return _.X("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.X("button",{class:"ytdTextInputAssistantButton","on:click":_.IY(function(){gIq().inputMethodsTracker.add(3);var A,Q=(A=_.vG("SBOX_SETTINGS"))==null?void 0:A.REQUEST_LANGUAGE;if(Q)return _.uh(_.GH(aPM,14,Q)),!1})},_.X("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Jg");var dDn=function(){this.cache=new Map},FAN=function(A){for(var Q=_.F(A.cache.entries()),b=Q.next();!b.done;b=Q.next()){var f=_.F(b.value);
b=f.next().value;f=f.next().value;f.suggestions.some(function(a){return a.type===35})&&A.cache.delete(b)}};var Gud=_.XA.SEARCH,BaN=_.XA.SEARCH_CLEAR_LABEL,pxN=new _.TS("FAKE_SUGGEST_RESPONSE");_.pE(_.aP(function(A){function Q(){sL||(sL=setTimeout(function(){Qx()},1E3))}
function b(n$,K$,Rt){if(n$.trim()){fN=n$;_.e6("REFINEMENTS_TUPLE",void 0);Jv=!0;var oT;K$=Wid(Y1,K$);var lY=(oT=A.searchEndpoint)==null?void 0:oT.call(A);_.l3q(n$,K$,lY,L$.value.value,Rt);Qx();L$.value.value=n$;L$.value.blur();Y1.reset()}}
function f(n$){return _.B(function(K$){return K$.return(new Promise(function(Rt){var oT=new XMLHttpRequest;oT.open("GET",O9x(n$),!0);oT.withCredentials=!0;var lY=_.vG("SBOX_SETTINGS");(lY==null?0:lY.SEND_VISITOR_DATA)&&oT.setRequestHeader("X-Goog-Visitor-Id",lY==null?void 0:lY.VISITOR_DATA);oT.onload=function(){Rt(oT.responseText)};
oT.onerror=function(){_.Wv(Error("pl"));Rt(null)};
setTimeout(function(){oT.abort()},1E4);
oT.send(null)}))})}
function a(n$){var K$,Rt,oT,lY;return _.B(function(yE){switch(yE.nextAddress){case 1:return K$={credentials:"include",headers:VkN()},window.AbortController&&(Rt=new AbortController,setTimeout(function(){Rt.abort("ytsbox-suggest-timeout")},1E4),K$.signal=Rt.signal),_.ML(yE,2),yE.yield(fetch(O9x(n$),K$),4);
case 4:oT=yE.yieldResult.text();_.Z1(yE,3);break;case 2:return lY=_.Vw(yE),lY!=="ytsbox-abort-last"&&lY!=="ytsbox-suggest-timeout"&&_.Wv(lY),yE.return(null);case 3:return yE.return(oT)}})}
function T(n$){var K$,Rt,oT;return _.B(function(lY){switch(lY.nextAddress){case 1:if(K$=_.fJ().resolve(_.bu(pxN)))return lY.return(K$);Rt=Date.now();Q();return _.K("yt_searchbox_xhr")?lY.yield(f(n$),5):lY.yield(a(n$),4);case 4:oT=lY.yieldResult;lY.jumpTo(3);break;case 5:oT=lY.yieldResult;case 3:if(oT){sL&&(clearTimeout(sL),sL=null);var yE=Y1,fH=Rt,Wh=n$.query.length===0;fH=Date.now()-fH;Wh?yE.zeroPrefixRoundTripTime=fH:(yE.JSC$20483_totalRoundTripTime+=fH,yE.maxRoundTripTime=Math.max(yE.maxRoundTripTime,
fH),Wh=Math.floor(fH/100),Wh>=vIn.length?++yE.roundTripTimeHistogram[9]:++yE.roundTripTimeHistogram[vIn[Wh]])}return lY.return(oT)}})}
function G(n$){var K$,Rt,oT;return _.B(function(lY){if(lY.nextAddress==1)return(K$=Ks.cache.get(JKx(n$)))?lY.return(K$):lY.yield(T(n$),2);Rt=lY.yieldResult;if(Rt===null)return lY.return(null);oT=new rKx(Rt);n$.query.length===0&&oT.suggestions.length===0||Ks.cache.set(JKx(n$),oT);return lY.return(oT)})}
function p(n$){var K$,Rt;return _.B(function(oT){if(oT.nextAddress==1){zr=!1;var lY=fN;lY=_.ehf()==="search"?(_.EO(location.href,"search_query")||_.EO(location.href,"q"))===lY:!1;K$=new i9O(n$,lY?fN:null);return oT.yield(G(K$),2)}Rt=oT.yieldResult;if(Rt===null)return oT.return();K$.query.length===0&&(Y1.zeroPrefixSuggestionCount=Rt.suggestions.length);if(K$.id<=FL)return Y1.outOfSyncResponseCount++,oT.return();if(document.activeElement!==L$.value)return oT.return();FL=K$.id;var yE=Y1,fH=Rt.rawResponse[2]||
{};yE.experimentTriggeredBeforeFinal||(yE.experimentTriggeredBeforeFinal=yE.experimentTriggeredFinal);yE.experimentTriggeredFinal=!!fH.e;Y1.updateSuggestions(Rt.suggestions);g(-1);SW([]);Rt.suggestions!==J()&&aO(Rt.suggestions.length);n(Rt.suggestions);pF(Rt.suggestions.length>0&&Rt.suggestions[0].type===33);HM&&(HM.hidden=Rt.suggestions.length===0,a9()?(HM.style.minWidth="",yE=HM.style,fH=(lY=J()[0])==null?void 0:lY.ignoredPrefix,yE.marginLeft=(fH?Math.min(fH.length*6,UL.value.offsetWidth):0).toString()+
"px"):(HM.style.minWidth=UL.value.offsetWidth+"px",HM.style.marginLeft="0"),$m());_.Oi(oT)})}
function P(){if(!Jv)return!1;var n$=_.vG("REFINEMENTS_TUPLE");return n$?(n$=n$[1].map(function(K$,Rt){return new qRx([K$,0,[71]],L$.value.value,Rt)}),J()!==n$&&aO(n$.length),SW([]),n(n$),Y1.updateSuggestions(n$),Jv=!1,HM.hidden=n$.length===0,zr=n$.length>0,!0):!1}
function U(){var n$=L$.value.value;(typeof n$==="string"||n$ instanceof String)&&n$!==""?w(!0):w(!1)}
function L(){if(_.ehf()==="search"){var n$=window.location.href;try{var K$=_.EO(n$,"search_query")||_.EO(n$,"q")||""}catch(Rt){K$=""}K$&&(L$.value.value=K$,w(!0))}}
var M=_.F(_.pz([],void 0,"kGFAjf")),l=M.next().value;M=M.next().value;var J=l,n=M;l=_.F(_.pz(-1,void 0,"mLGL9e"));var t=l.next().value,g=l.next().value;l=_.F(_.pz(-1,void 0,"u2rYdc"));var e=l.next().value,x=l.next().value;l=_.F(_.pz(!1,void 0,"W9DFC"));var D=l.next().value,w=l.next().value;l=_.F(_.pz(!1,void 0,"Ip4dNc"));var u=l.next().value,y=l.next().value;M=_.F(_.pz(!1,void 0,"ZNKSQb"));l=M.next().value;M=M.next().value;var a9=l,pF=M;M=_.F(_.pz(!1,void 0,"JBrGLd"));l=M.next().value;var Ub=M.next().value;
M=_.F(_.pz(!1,void 0,"P2pD6e"));var Ob=M.next().value,I9=M.next().value;M=_.F(_.pz(1,void 0,"SjP20c"));var iy=M.next().value,wW=M.next().value;M=_.F(_.pz([],void 0,"h4dRaf"));var h4=M.next().value,SW=M.next().value;M=_.F(_.pz(!1,void 0,"TUTzaf"));var r9=M.next().value,PM=M.next().value;M=_.K("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Nf=_.st("yt-searchbox"),L$=_.st("input"),UL=_.st("div"),HM,Ks=
new dDn,Y1=gIq(),dW=_.fJ().resolve(_.bu(_.Af)),bY=function(){var n$;return((n$=A.forceDarkMode)==null?void 0:n$.call(A))||!(dW==null||!dW())},OL=function(){return _.K("desktop_enable_scrollable_suggestions_panel")},iO="i"+sKM++,Jv=!1,zr=!1,fN="",sL=null,FL=-1,Qx=function(){SW([]);
n([]);pF(!1);HM&&(HM.hidden=!0);sL&&(clearTimeout(sL),sL=null);g(-1)},Ls=function(n$,K$){n$.preventDefault();
PM(!0);HM&&(HM.hidden=!1);var Rt=t();n$=J();var oT=h4();K$=KXd(K$);Rt+=K$;for(Rt>=n$.length?Rt=-1:Rt<-1&&(Rt=n$.length-1);Rt!==-1&&(oT.includes(Rt)||Rt>=n$.length||Rt<0);)Rt+=K$,Rt>=n$.length&&(Rt=-1);g(Rt);t()>=0&&(L$.value.value=J()[t()].text,x(0),U(),n$=t(),oT=e(),(oT=document.getElementById(Fu[n$][oT]))&&OL()&&(n$===J().length-1?HM.scrollTop=HM.scrollHeight:oT.scrollIntoView({block:"nearest",inline:"start"})))},k1=_.IY(function(n$){if(!(n$.relatedTarget instanceof Element&&n$.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var K$;(K$=A.focusCallback)==null||K$.call(A,!0);P()||(zr?HM.hidden=!1:(_.Bn(Nf.value,"yt-autonav-pause-focus",{}),p(n$.target.value)))}}),oy=_.IY(function(n$){if(!(n$.relatedTarget instanceof Element&&n$.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var K$;(K$=A.focusCallback)==null||K$.call(A,!1);HM.scrollTop=0;HM.hidden=!0;_.Bn(Nf.value,"yt-autonav-pause-blur",{})}}),ON=function(n$){n$=KXd(n$);
var K$;((K$=Fu[t()])==null?0:K$[e()+n$])&&x(e()+n$)},Sx=_.IY(function(n$){var K$=n$.target;
switch(n$.keyCode){case 13:n$.preventDefault();var Rt;if((Rt=Fu[t()])==null?0:Rt[e()]){var oT;(oT=document.getElementById(Fu[t()][e()]))==null||oT.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}n$=n$.shiftKey?4:3;Rt=Y1;oT=t();Rt.selectedSuggestionIndex=oT;b(K$.value,n$);break;case 27:HM&&(HM.hidden=!0);break;case 40:Ls(n$,40);break;case 38:Ls(n$,38);break;case 39:ON(39);break;case 37:ON(37);break;case 229:Y1.inputMethodsTracker.add(4);break;default:Y1.inputMethodsTracker.add(1),
eIs(Y1)}return!1}),UN=_.IY(function(n$){p(n$.target.value);
U();OL()&&HM&&(HM.scrollTop=0);return!1}),k5=_.IY(function(){Y1.inputMethodsTracker.add(2);
eIs(Y1);return!1});
_.CH(function(){if(HM){Y1.reset();if(window.ResizeObserver){var n$=new ResizeObserver(function(){a9()||(HM.style.minWidth=UL.value.offsetWidth+"px")});
n$.observe(UL.value);(new ResizeObserver(function(){$m()})).observe(HM);
_.Cz(function(){n$.disconnect()})}L();
window.addEventListener("yt-navigate-finish",L);window.addEventListener("yt-focus-searchbox",function(){L$.value.focus()});
var K$;Ub((K$=_.vG("SBOX_SETTINGS"))==null?void 0:K$.HAS_ON_SCREEN_KEYBOARD)}else _.en(new _.IO("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var mE=_.IY(function(n$){n$.preventDefault();b(L$.value.value,12);return!1}),w9=_.IY(function(n$){n$.preventDefault();
var K$,Rt;(K$=L$)==null||(Rt=K$.value)==null||Rt.focus();var oT,lY;((oT=L$)==null?void 0:(lY=oT.value)==null?void 0:lY.value)!==""&&(L$.value.value="",L$.value.dispatchEvent(new Event("input")));return!1}),zn=_.IY(function(){var n$=lVN(L$.value.value,J().filter(function(K$){return K$.type!==35}).map(function(K$){return{label:K$.text}}));
_.pD(Nf.value,"yt-open-popup-action",[{openPopupAction:n$},document.body]);return!1}),wx=_.IY(function(){L$.value.focus();
return!1}),bn=function(n$,K$,Rt,oT,lY){Y1.selectedSuggestionIndex=Rt;
b(K$,lY?3:1,oT)},o8=function(n$){L$.value.value=n$;
L$.value.dispatchEvent(new Event("input"));Y1.inputMethodsTracker.add(5);eIs(Y1,!0)},Fu=[[]],jn=function(n$){var K$="searchbox-suggestion"+_.WX(_.EI);
Fu[n$].push(K$);return K$},aO=function(n$){if(J()){Fu=[[]];
for(var K$=0;K$<n$;K$++)Fu.push([])}},$m=function(){if(OL()){var n$=HM,K$=n$.scrollTop;
n$=n$.scrollHeight-n$.clientHeight;I9(K$>=n$);K$=Math.abs(n$-K$);K$<=40?wW(1-(40-K$)/40):wW(1)}},ai=function(){return"opacity: "+iy()*100+"%"},He=_.IY(function(){$m();
return!1}),We=_.IY(function(){PM(!1);
return!1}),uy,iY={},XK={},jd={},ns={};
return _.X("yt-searchbox",{class:_.O4("ytSearchboxComponentHost",(iY.ytSearchboxComponentMweb=!1,iY.ytSearchboxComponentDesktop=!0,iY["yt-searchbox-filled-query"]=function(){return D()},iY["ytd-masthead"]=function(){return!u()},iY.ytSearchboxComponentHostDark=bY,iY)),
role:"search",el:Nf,"client-ve-type":10349},_.X("div",{el:UL,"on:click":wx,class:_.O4("ytSearchboxComponentInputBox",(XK.ytSearchboxComponentInputBoxDark=bY,XK.ytSearchboxComponentInputBoxHasFocus=u,XK))},_.X("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":mE},_.X(_.S,{cond:u,then:function(){return _.X("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.X(_.oY,{icon:"SEARCH"}))}}),_.X("input",{el:L$,
class:_.O4("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":iO,"aria-expanded":!((uy=HM)==null?0:uy.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":oy,"on:focus":k1,"on:input":UN,"on:keydown":Sx,"on:paste":k5,placeholder:A.placeholderText,"aria-activedescendant":function(){var n$;return(n$=Fu[t()])==null?void 0:n$[e()]},
"aria-autocomplete":"list",role:"combobox"})),_.X(_.S,{cond:l,then:function(){return _.X("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.X(TaO,null))}}),_.X(_.S,{cond:D,
then:function(){return _.X("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.X("button",{class:"ytSearchboxComponentClearButton","on:click":w9,"aria-label":A.clearButtonAriaLabel||BaN},_.X(_.oY,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.X(_.jl,{model:{}})))}})),_.X("button",{class:_.O4("ytSearchboxComponentSearchButton",(jd.ytSearchboxComponentSearchButtonDark=bY,jd)),
"on:click":mE,"aria-label":Gud,title:A.placeholderText},_.X(_.oY,{icon:"SEARCH"})),_.X(_.S,{cond:function(){if(j_F()&&_.K("mweb_voice_search")&&A.voiceSearchButton)return A.voiceSearchButton()},
then:function(n$){var K$={};return _.X("div",{class:_.O4("ytSearchboxComponentVoiceSearchWrapper",(K$.ytSearchboxComponentHideVoiceSearchButton=function(){return D()},K$))},_.X(_.WL,{data:n$},{buttonRenderer:function(Rt){return _.X(_.QM,{data:Rt.data,
onButtonClickCallback:function(){}})}}))}}),_.X("div",{el:_.d_(function(n$){return void(HM=n$)}),
id:iO,class:_.O4("ytSearchboxComponentSuggestionsContainer",(ns.ytSearchboxComponentSuggestionsContainerDark=bY,ns["yt-searchbox-suggestions-container"]=!1,ns.ytSearchboxComponentSuggestionsContainerScrollable=OL(),ns.ytSearchboxComponentSuggestionsContainerAnimated=M,ns)),"on:scroll":He,"on:mousemove":We,role:"listbox",hidden:!0},_.X(_.Op,{each:J},function(n$,K$){return _.X(fP7,{suggestion:n$,isHighlighted:function(){return K$()===t()},
onClickCallback:bn,onHoverUpdateCallback:function(Rt){if(_.K("desktop_enable_single_suggestion_highlight")){var oT=K$();Rt&&(x(0),g(oT))}},
onRemoveCallback:function(Rt){FAN(Ks);Rt===void 0||Rt<0||h4().includes(Rt)||SW([].concat(_.ri(h4()),[Rt]))},
labels:A.labels,queryBuilderFunction:o8,suggestionIndex:K$,generateUniqueId:jn,highlightedId:function(){var Rt;return(Rt=Fu[t()])==null?void 0:Rt[e()]},
useScrollMargin:OL(),isKeyboardMode:r9})}),_.X(_.S,{cond:function(){return!a9()&&J().find(function(n$){return n$.type!==35})&&_.K("searchbox_reporting")},
then:function(){return _.X("button",{class:"ytSearchboxComponentReportButton","on:mousedown":zn},_.JQ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.X(_.S,{cond:function(){return!Ob()&&OL()},
then:function(){return _.X("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.X("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:ai}))}})))},"Kg"),"yt-searchbox",{props:{searchEndpoint:_.Qf,
placeholderText:_.Qf,labels:_.Qf,voiceSearchButton:_.Qf,focusCallback:_.Bz,clearButtonAriaLabel:_.Qf,forceDarkMode:_.Qf}});var X3=function(){var A=_.q.apply(this,arguments)||this;A.menuButtonTargetId="topbar-guide-menu";A.narrow=!1;A.menuStrings={BACK_ALT_LABEL:_.JQ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.JQ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.JQ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.JQ("SBOX_PLACEHOLDER",void 0,"Search")};A.pageDarkTheme=document.documentElement.hasAttribute("dark");A.watchPageScrollTop=0;A.theater=!1;A.fullscreen=!1;A.disableFrostedGlassDuringViewTransition=
!1;A.desktopUnifiedSearchPanelMode=_.K("desktop_enable_unified_search_panel");A.cinematicTheaterMode=_.K("web_cinematic_theater_mode");A.ytSearchboxFocused=!1;A.searchboxLabels=_.vG("SBOX_LABELS");A.topbarIsAboveChipbar=!1;A.isDarkThemeForced=!1;A.areGhostCardsHidden=!1;A.guideKeyboardToggle=!1;A.voiceSearchManager=tyq();A.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};A.setYtSearchboxFocused=function(Q){A.ytSearchboxFocused=
Q};
A.toggleFrostedGlassDuringViewTransition=function(Q){A.disableFrostedGlassDuringViewTransition=Q};
return A};
_.O(X3,_.q);_.d=X3.prototype;_.d.computeSimpleText=function(A){return _.mO(A)};
_.d.onDarkChanged=function(){for(var A=_.F(this.buttons||[]),Q=A.next();!Q.done;Q=A.next())Q.value.isOverlay=!!this.dark;A=_.F(this.buttonRenderers||[]);for(Q=A.next();!Q.done;Q=A.next())Q.value.overrides=this.computeButtonOverride()};
_.d.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.d.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var A=_.Yg(_.y2(),"aa");_.Pj(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||A||(this.isDarkThemeForced=this.dark=!0);this.logoType?(A=this.hostElement.querySelector("#masthead-logo"))&&(_.K("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.im(A)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.lN(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.lN(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.d.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.lN(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.lN(this,this.onSetTheaterModeEnabled))};
_.d.dataChanged=function(){var A=this.data;A&&(this.voiceEnabled=A.voiceSearchButton?tyq().isSupported():!1,_.lp1(_.rk(),this.menuButtonTargetId,this.guideButton),A.onReceivedActions&&A.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.ST(this.hostElement,A.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&A&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Pj(this.hostElement,"dark",!1),_.Pj(this.hostElement,"theater",!1),
(A=this.hostElement.querySelector("#masthead-logo"))&&(_.K("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.im(A))))};
_.d.computeCenterHidden=function(){var A;return this.data&&!((A=this.data.searchbox)==null?0:A.fusionSearchboxRenderer)};
_.d.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Pj(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.d.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.d.onWatchScroll=function(A){this.watchPageScrollTop=A.detail||0;this.updateMastheadBackgroundOpacity()};
_.d.onFullscreenChangeAction=function(A){A||(this.watchPageScrollTop=0);this.fullscreen=A;this.updateMastheadBackgroundOpacity()};
_.d.onSetTheaterModeEnabled=function(A){this.theater=A.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.d.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.d.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.d.setBackgroundOpacity=function(A){A=this.calculateBackgroundOpacity(A);this.background.style.opacity=""+A};
_.d.calculateBackgroundOpacity=function(A){var Q=this.theater&&this.cinematicTheaterMode?.6:0,b=this.hostElement.clientHeight/2;return Math.min(Math.max(A,0),b)/b*(1-Q)+Q};
_.d.shouldShowCinematicMastHead=function(){var A=_.K("kevlar_watch_grid")&&!_.K("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(A||this.pageDarkTheme)};
_.d.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.d.focusGuide=function(){this.guideButton.focus()};
_.d.onGuideToggleTap=function(){_.Bn(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.d.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.d.onGuideToggleHover=function(){_.Bn(this.hostElement,"yt-guide-hover")};
_.d.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.d.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.d.closeOnOutsideClickCondition=function(A){for(A=_.mW(A);A[0];){var Q=A.shift();if(Q instanceof Element&&Q.id==="kbd")return!1}return!0};
_.d.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.d.pausePlayer=function(){var A;(A=_.BL())==null||A.pause();this.pauseMiniplayer()};
_.d.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var A;(A=_.fJ().resolve(_.zb).getPlayerElement())==null||A.pause()}};
_.d.isMiniplayerActive=function(){return _.fJ().resolve(_.zb).isMiniplayerActive()};
_.d.updateNarrowFromBinding=function(A){this.narrow=A.detail.value};
_.d.onYtSendFeedbackAction=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.registerWithViewTransitionManager=function(){uGn(_.fJ().resolve(_.Hg),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Qr.Object.defineProperties(X3.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.K("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var A;return(A=this.data)==null?void 0:A.voiceSearchButton}}}});
X3.prototype.narrowChanged=X3.prototype.narrowChanged;X3.prototype.onWatchPageChange=X3.prototype.onWatchPageChange;X3.prototype.onRendererStamperFinished=X3.prototype.onRendererStamperFinished;X3.prototype.dataChanged=X3.prototype.dataChanged;X3.prototype.onDarkChanged=X3.prototype.onDarkChanged;_.E([_.I(_.eI),_.c("design:type",Object)],X3.prototype,"ironResizableBehavior",void 0);_.E([_.I(_.izl),_.c("design:type",Object)],X3.prototype,"ytdExpandableInputBehavior",void 0);
_.E([_.I(_.YX.YtdGuideStateAwareBehavior),_.c("design:type",Object)],X3.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],X3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.cb),_.c("design:type",Object)],X3.prototype,"ytdReduxBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],X3.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],X3.prototype,"narrow",void 0);_.E([_.C(),_.c("design:type",Object)],X3.prototype,"logoType",void 0);_.E([_.C(),_.c("design:type",Boolean)],X3.prototype,"voiceEnabled",void 0);
_.E([_.C(),_.c("design:type",Object)],X3.prototype,"menuStrings",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],X3.prototype,"dark",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X3.prototype,"pageDarkTheme",void 0);_.E([_.C(),_.c("design:type",Object)],X3.prototype,"watchPageScrollTop",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.vgb}),_.c("design:type",Boolean)],X3.prototype,"isWatchPage",void 0);
_.E([_.C({reflectToAttribute:!0,selector:_.EgX}),_.c("design:type",Boolean)],X3.prototype,"isShortsPage",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X3.prototype,"theater",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X3.prototype,"fullscreen",void 0);_.E([_.C({reflectToAttribute:!0,selector:_.w1J}),_.c("design:type",String)],X3.prototype,"frostedGlassMode",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],X3.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.E([_.C(),_.c("design:type",Object)],X3.prototype,"ytSearchboxFocused",void 0);_.E([_.Oc("#buttons > *"),_.c("design:type",Array)],X3.prototype,"buttons",void 0);_.E([_.Oc("ytd-button-renderer"),_.c("design:type",Array)],X3.prototype,"buttonRenderers",void 0);_.E([_.V1("#background"),_.c("design:type",HTMLDivElement)],X3.prototype,"background",void 0);
_.E([_.V1("#guide-button"),_.c("design:type",Object)],X3.prototype,"guideButton",void 0);_.E([_.V1("#logo"),_.c("design:type",Object)],X3.prototype,"logo",void 0);_.E([_.C({computed:"computeButtonOverride(dark)"}),_.c("design:type",Object)],X3.prototype,"buttonOverrides",void 0);_.E([_.I_("dark"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X3.prototype,"onDarkChanged",null);_.E([_.C({value:function(){return this.onVoiceTap.bind(this)}}),
_.c("design:type",Function)],X3.prototype,"boundOnTapVoiceButton",void 0);_.E([_.C(),_.c("design:type",Object)],X3.prototype,"topbarIsAboveChipbar",void 0);_.E([_.C(),_.c("design:type",String),_.c("design:paramtypes",[])],X3.prototype,"guideIcon",null);_.E([_.H("voiceEnabled"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],X3.prototype,"shouldShowVoiceSearchButton",null);_.E([_.H("data"),_.c("design:type",Object),_.c("design:paramtypes",[])],X3.prototype,"voiceSearchButton",null);
_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X3.prototype,"dataChanged",null);_.E([_.Kc("yt-rendererstamper-finished"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X3.prototype,"onRendererStamperFinished",null);_.E([_.I_("isWatchPage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X3.prototype,"onWatchPageChange",null);
_.E([_.I_("narrow"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],X3.prototype,"narrowChanged",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-masthead"})],X3);
_.W(X3,"ytd-masthead",function(){if($Es!==void 0)return $Es;var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return $Es=A},{mode:_.UG("kevlar_poly_si_batch_j036")?1:2});var Ps7;var Xxs={},SId={},UDq={},LAd={},MZr=(LAd.OFFLINE=(Xxs["publicytnetworkstatus-online"]="BACK_ONLINE",Xxs),LAd.ONLINE=(SId["publicytnetworkstatus-offline"]="OFFLINE",SId),LAd.BACK_ONLINE=(UDq["publicytnetworkstatus-offline"]="OFFLINE",UDq.TIMER_TRIGGER="ONLINE",UDq),LAd),SD=function(){var A=_.q.apply(this,arguments)||this;A.currentState="ONLINE";A.scheduledJobId=0;A.bannerString="";A.bannerVe=null;A.networkStatusManagerInstance=new _.uC;return A};
_.O(SD,_.q);_.d=SD.prototype;_.d.attached=function(){var A=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.d.detached=function(){var A=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.d.enterState=function(A){var Q=this;this.scheduledJobId&&_.j7.cancelJob(this.scheduledJobId);A==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):A==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.JQ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):A==="BACK_ONLINE"&&(this.bannerString=_.JQ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Hv(_.j7,function(){Q.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=A};
_.d.stateChangeHandler=function(A){(A=MZr[this.currentState][A])&&this.enterState(A)};
_.d.logVisibility=function(A){var Q=_.WR();this.createBannerVe(A);Q&&this.bannerVe&&(A?_.Y_(Q,[this.bannerVe]):_.DV(Q,[this.bannerVe]))};
_.d.createBannerVe=function(A){!this.bannerVe&&A&&(this.bannerVe=_.K6(37929),_.K2(_.IP(),this.bannerVe))};
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",String)],SD.prototype,"currentState",void 0);_.E([_.C(),_.c("design:type",Object)],SD.prototype,"scheduledJobId",void 0);_.E([_.C(),_.c("design:type",Object)],SD.prototype,"bannerString",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-network-status-banner"})],SD);
_.W(SD,"ytd-network-status-banner",function(){if(Ps7!==void 0)return Ps7;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return Ps7=
A},{mode:1});var lPt;var Ud=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};A.hidden=!0;A.frostedGlass=_.K("web_frosted_glass");return A};
_.O(Ud,_.q);Ud.prototype.computeHidden=function(A){return A&&A.status?!1:!0};
Ud.prototype.handleUpdatePermissionRoleCommand=function(A){if(A=_.V(A,_.a6L))if(A=_.V(A.renderer,_.f6L))this.data=A};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Ud.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],Ud.prototype,"componentBehavior",void 0);_.E([_.C({value:!0,computed:"computeHidden(data)"}),_.c("design:type",Object)],Ud.prototype,"hidden",void 0);_.E([_.C(),_.c("design:type",Object)],Ud.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],Ud.prototype,"frostedGlass",void 0);
_.E([_.h({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Ud);
_.W(Ud,"ytd-permission-role-bottom-bar-renderer",function(){if(lPt!==void 0)return lPt;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return lPt=A},{mode:1});var KAN;var ilM;var i0n={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Ly=function(){return _.q.apply(this,arguments)||this};
_.O(Ly,_.q);_.d=Ly.prototype;_.d.attached=function(){this.JSC$20586_scroller&&(this.JSC$20586_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20586_scroller.attached&&typeof this.JSC$20586_scroller.attached==="function"&&this.JSC$20586_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(b){b.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var A=_.Bj(this.hostElement);A.querySelector("tp-yt-paper-radio-group").selected="";var Q=A.querySelector("#reason-text");Q&&(Q.value="");A.querySelector("#description-text").value=""}};
_.d.canSubmit=function(A,Q){_.Bn(this.hostElement,"yt-invalidate-popup-tabbables");return!(A&&Q)};
_.d.onCancel=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.d.onSubmit=function(){var A=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(T){return T.active}).map(function(T){return T.innerText.trim()}),Q=this.hostElement.querySelector("tp-yt-paper-radio-group"),b=Q.selectedItem,f=b.name;
b=b.innerText.trim();var a=Q.querySelector("#reason-text");Q=void 0;a&&(Q=a.value);(a=this.descriptionText.value)&&(a=a.trim());J8x(this.data.searchQuery,A,f,b,a,Q);_.pD(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.d.sendFormSubmitToast=function(){var A=_.az(_.JQ("SBOX_INAPPROPRIATE_TOAST"));_.pD(this.hostElement,"yt-open-popup-action",[A,this])};
_.d.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(A){return A.active})};
_.d.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Ly.prototype.onIronSelect=Ly.prototype.onIronSelect;Ly.prototype.onIronChange=Ly.prototype.onIronChange;Ly.prototype.dataChanged=Ly.prototype.dataChanged;_.E([_.C(),_.c("design:type",Object)],Ly.prototype,"data",void 0);_.E([_.C({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.c("design:type",Boolean)],Ly.prototype,"submitDisabled",void 0);_.E([_.C(),_.c("design:type",Boolean)],Ly.prototype,"suggestionSelected",void 0);
_.E([_.C(),_.c("design:type",Boolean)],Ly.prototype,"catagorySelected",void 0);_.E([_.V1("#scroller"),_.c("design:type",Object)],Ly.prototype,"JSC$20586_scroller",void 0);_.E([_.V1("#description-text"),_.c("design:type",Object)],Ly.prototype,"descriptionText",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ly.prototype,"dataChanged",null);
_.E([_.Kc("iron-change"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ly.prototype,"onIronChange",null);_.E([_.Kc("iron-select"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ly.prototype,"onIronSelect",null);_.E([_.h({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Ly);
_.W(Ly,"ytd-search-suggestion-report-dialog",function(){if(ilM!==void 0)return ilM;var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);return ilM=A},{mode:1});var Mh=function(A){var Q=A.openPopupAction;var b=A.target;var f=A.container;var a=A.popupContainerConfig;var T=A.getElement;A=A.removeWhenClosed===void 0?!1:A.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=Q;this.target=b;this.container=f;this.popupContainerConfig=a;this.getElement=T;this.JSC$20592_popupConfig=this.popupContainerConfig.JSC$19727_popupConfig[this.openPopupAction.popupType];this.rendererName=(Q=this.getName())?_.tJJ(Q,G$x(this.popupContainerConfig,
Q)):"";_.K("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=A);this.createPopup()};
Mh.prototype.updatePopup=function(A){this.openPopupAction=A;this.JSC$20592_popupConfig=this.popupContainerConfig.JSC$19727_popupConfig[this.openPopupAction.popupType];J6x(this);_.K("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Mh.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var nxN=function(A,Q,b){(Q=Q&&A.JSC$20592_popupConfig.narrowProperties?A.JSC$20592_popupConfig.narrowProperties:A.JSC$20592_popupConfig.properties)&&b!==void 0&&(Q.isAriaModal=b);VZM(A,Q);A.isRtl()&&VZM(A,A.JSC$20592_popupConfig.rtlProperties);Ol7(A)};
Mh.prototype.createPopup=function(){var A=this.JSC$20592_popupConfig.component;if(this.popupContent=kuO(this,this.rendererName)){if(A){this.popup=kuO(this,A);var Q=this.popupContent;_.K("web_enable_wrapper_for_cow_component_in_popup")&&(Q=document.createElement("div"),Q.appendChild(this.popupContent));_.K("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20592_popupConfig.slotName&&Q.setAttribute("slot",this.JSC$20592_popupConfig.slotName);A=this.popup;var b=this.container.tagName.toLowerCase(),
f=_.Q1(Q);_.FGy(_.fc(A),_.dn(Q,b,f));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.K("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Bj(this.container).appendChild(this.popup)}};
var J6x=function(A){var Q,b,f=(Q=A.openPopupAction.accessibilityData)==null?void 0:(b=Q.accessibilityData)==null?void 0:b.label;f&&(A.popup.ariaLabel=f);var a;((a=A.popupContent.polymerController)!=null?a:A.popupContent).data=(0,_.j2.unsafeClone)(A.openPopupAction.popup[A.getName()]);A.popupContent.duration=IPq(A);A.popupContent.positionType=A.openPopupAction.position;var T=A.openPopupAction.properties;T&&Object.keys(T).forEach(function(G){A.popupContent[G]=T[G]})},VZM=function(A,Q){if(Q)for(var b=
_.F(Object.keys(Q)),f=b.next();!f.done;f=b.next())f=f.value,A.popup[f]=Q[f]},Ol7=function(A){if(A.openPopupAction.position){var Q=A.JSC$20592_popupConfig.positionalProperties&&A.JSC$20592_popupConfig.positionalProperties[A.openPopupAction.position],b=A.JSC$20592_popupConfig.rtlPositionalProperties&&A.JSC$20592_popupConfig.rtlPositionalProperties[A.openPopupAction.position];
Q=A.isRtl()&&b?b:Q;Q.shiftedHorizontalOffset&&(b=A.popup.style.display,A.popup.style.display="block",A.popupContent&&A.popup.positionTarget&&A.popupContent.clientWidth>A.popup.positionTarget.clientWidth&&(Q.horizontalOffset=A.popup.positionTarget.clientWidth/2-Q.shiftedHorizontalOffset),A.popup.style.display=b);VZM(A,Q)}},Hlt=function(A,Q){if(Q)for(var b=_.F(Object.keys(Q)),f=b.next();!f.done;f=b.next())f=f.value,A.popup.style[f]=Q[f]};
Mh.prototype.getName=function(){return _.R8(this.openPopupAction.popup,"renderer")||_.R8(this.openPopupAction.popup,"dialog")||_.R8(this.openPopupAction.popup,"model")||void 0};
var IPq=function(A){A=A.openPopupAction.durationHintMs;return A===0?A:Math.max(4E3,A||4E3)};
Mh.prototype.isRtl=function(){return _.vG("HTML_DIR")==="rtl"};
var kuO=function(A,Q){A=A.getElement(Q,A.target);A==null&&_.Wv(new _.IO("popup getElement returned null",Q));return A};var Cst={};
Cst.YtPopupContainerBehavior=[_.Y3.YtComponentBehavior,_.PJ.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_);_.F5(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Go(this.hostElement)},
closePopup:function(A){var Q=this.createCacheKey(void 0,A);this.popups_[Q]&&this.handleClosePopupAction_(void 0,A)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.j7.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.j7.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(A){A.opened&&A.keepBelowPlayer&&this.ensurePopupBelowPlayer(A)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var A in this.popups_){var Q=this.popups_[A];if(Q.popup.scrollAction==="refit"){var b=Q.popup.positionTarget.getBoundingClientRect(),f=Q.popup;b=b.top;var a=Q;if(!a.naturalHeight){a.popup.hidden=!1;a.popup.style.position="fixed";a.popup.style.top="0px";a.popup.style.left="0px";var T=a.popup.getBoundingClientRect();a.naturalHeight=T.bottom-T.top;a.popup.refit()}f.hidden=!(b>=a.naturalHeight+60);Q.popupContent.clientHeight===0&&Q.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(A){this.popupContainerConfig=A},
handleOpenPopupAction:function(A,Q){var b=A.openPopupAction,f=_.fJ().resolve(_.bu(_.Hu))&&b.popupType==="TOAST";f&&!b.uniqueId&&(b.uniqueId=_.$9());if(!_.K("popup_container_parent_target_killswitch")){var a;Q=(a=this.getParentTarget(Q))!=null?a:Q}var T=this.ensurePopup_(b,Q);return new _.M3(function(G){T.then(function(p){if(!p)return G();this.maybeCreateNarrowMediaQuery_();var P=this.createCacheKey(p.rendererName,p.openPopupAction.uniqueId);if(b.showOncePerUniqueId){if(this.shownPopupKeys_.has(P))return G();
this.shownPopupKeys_.add(P)}P=this.popups_[P];var U=!(!P||!P.openPopupAction.beReused);U=!!b.reusePopup||U;if(p.popup.opened&&!U){f&&!p.openPopupAction.replacePopup||this.handleClosePopupAction_(p.rendererName,p.openPopupAction.uniqueId);U=b.popupType==="DIALOG"&&!_.K("popup_container_dialog_reopen_killswitch");if(!f&&!U&&P&&P.target==Q&&!p.openPopupAction.replacePopup)return G();_.mL(p.popup,function(){this.completeOpenPopupAction_(b,Q,p);G()}.bind(this))}else p.popup.opened?p.updatePopup(b):this.completeOpenPopupAction_(b,
Q,p),G()}.bind(this))}.bind(this))},
getParentTarget:function(A){if(A&&A instanceof HTMLElement)for(var Q=_.F(Object.entries(this.popups_)),b=Q.next();!b.done;b=Q.next())if(b=_.F(b.value),b.next(),b=b.next().value,b.popup.tagName==="TP-YT-IRON-DROPDOWN"&&A.closest(b.rendererName))return b.target},
completeOpenPopupAction_:function(A,Q,b){b.updatePopup(A);A=this.narrowMediaQuery_.queryMatches;var f=this.isAriaModal;b.target=Q;var a;Q=((a=b.target.polymerController)!=null?a:b.target).popupPositionTarget||b.target;b.JSC$20592_popupConfig.targetContainer&&(Q=b.container);b.popup.positionTarget=Q;b.popupContent.positionTarget=Q;Ol7(b);b.JSC$20592_popupConfig.forceFocus&&(b.popupContent.style.outline="none");b.popupContent.tabIndex=-1;b.JSC$20592_popupConfig.narrowProperties&&(b.popup.style.position=
"static");b.JSC$20592_popupConfig.preventAutonav&&b.popup.setAttribute("prevent-autonav",!0);b.JSC$20592_popupConfig.forceCloseOnOutsideClick&&b.popup.setAttribute("force-close-on-outside-click",!0);nxN(b,A,f);Hlt(b,b.JSC$20592_popupConfig.styles);b.isRtl()&&Hlt(b,b.JSC$20592_popupConfig.rtlStyles);if(!b.openPopupAction.shouldStopParentSignal){var T;a=(T=b.target.polymerController)!=null?T:b.target;(b.popupContent.startForwardingEvents||b.popupContainerConfig.forwardingEnabledPopups.has(b.rendererName))&&
a.parentComponent!==b.popupContent&&b.popupContent!==b.target&&b.target!==document.body&&(b.popupContent.startForwardingEvents?b.popupContent.startForwardingEvents(b.popupContainerConfig.forwardedEvents,b.target):(b.JSC$20592_eventForwarder||(b.JSC$20592_eventForwarder=new _.Xw(b.popupContent)),b.JSC$20592_eventForwarder.start(b.popupContainerConfig.forwardedEvents,b.target)))}b=b.popup;b.addEventListener("iron-overlay-opened",_.lN(this,this.onPopupIronOverlayOpened_));b.addEventListener("iron-overlay-closed",
_.lN(this,this.onPopupIronOverlayClosed_));b.addEventListener("iron-overlay-canceled",_.lN(this,this.onPopupIronOverlayCanceled_));b.addEventListener("yt-refit",_.lN(this,this.refitPopup_));b.addEventListener("yt-invalidate-popup-tabbables",_.lN(this,this.handleInvalidatePopupTabbables_));b.open()},
getPopupDurationMs_:function(A){return A.durationHintMs===0?A.durationHintMs:Math.max(4E3,A.durationHintMs||4E3)},
handleClosePopupAction_:function(A,Q){var b=_.K("web_popup_cache_key_killswitch")||!!Q;if(A||b){var f=this.createCacheKey(A,Q);A=(A=this.popups_[f])&&A.popup}else A=_.zS1(_.Yt);if(A&&A.close){if(Q=_.fJ().resolve(_.bu(_.L3)))A.restoreFocusOnClose=Q.isKeyBoardInUse();A.close();this.removePopup_(A,f)}},
handleClosePopupCommand_:function(A){A.closePopupCommand&&A.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,A.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(A){var Q={},b;for(b in this.popups_)if(Q={key$jscomp$1183:Q.key$jscomp$1183},Q.key$jscomp$1183=b,!A||!A.some(function(T){return function(G){return G==T.key$jscomp$1183}}(Q))){var f=this.popups_[Q.key$jscomp$1183],a=f.popup;
_.fJ().resolve(_.bu(_.Hu))&&f.openPopupAction.popupType==="TOAST"||(a&&a.close&&a.close(),this.removePopup_(a,Q.key$jscomp$1183))}},
handleClosePopupsAction_:function(A){A.forEach(function(Q){var b=this.popups_[Q];b&&((b=b.popup)&&b.close&&b.close(),this.removePopup_(b,Q))}.bind(this))},
handleGetPopupOpenedAction_:function(A,Q){return(Q=this.createCacheKey(A,Q))&&this.popups_[Q]?this.popups_[A].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var A=[],Q;for(Q in this.popups_){var b=this.popups_[Q];b.popup.opened&&A.push(b)}return A},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(A,Q){_.K("ytpopup_disable_default_html_caching")&&A&&A.removeWhenClosed&&(_.Bj(this.hostElement).removeChild(A),Q&&this.popups_[Q]&&delete this.popups_[Q])},
shouldReusePopup_:function(A){return!(!A||!A.reusePopup)||!(!A||!A.beReused)},
ensurePopup_:function(A,Q){this.maybeCreateNarrowMediaQuery_();var b=_.R8(A.popup,"renderer")||_.R8(A.popup,"dialog")||_.R8(A.popup,"model");if(!b)return _.Ul();b=_.tJJ(b,G$x(this.popupContainerConfig,b));return _.Ul(this.getAndMaybeCreatePopup_(A,b,Q))},
getAndMaybeCreatePopup_:function(A,Q,b){var f=this.createCacheKey(Q,A.uniqueId);if(this.popups_[f])return this.popups_[f];A=new Mh({openPopupAction:A,target:b,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(Q)});return this.popups_[f]=A},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(A){return _.K("ytpopup_disable_default_html_caching")?A&&A.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",_.lN(this,this.openPopupQueryMatchesChanged_)),_.Bj(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(A){A=A.detail.value;for(var Q in this.popups_)nxN(this.popups_[Q],A)},
onPopupIronOverlayClosed_:function(A){var Q=A.currentTarget,b=_.CHi(Q);b=b.length>0?b[0]:Q;if(b.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){A.detail.popup=Q;A.detail.popupRenderer=b;var f,a={context:{openingElement:((f=this.popups_[(b==null?void 0:b.is)||""])==null?void 0:f.target)||void 0}};Object.assign(a,A.detail);var T;_.Bn((T=b.hostElement)!=null?T:b,"yt-popup-closed",a);Q.removeEventListener("yt-refit",_.lN(this,this.refitPopup_));Q.removeEventListener("yt-invalidate-popup-tabbables",
_.lN(this,this.handleInvalidatePopupTabbables_));Q.removeEventListener("iron-overlay-canceled",_.lN(this,this.onPopupIronOverlayCanceled_));Q.removeEventListener("iron-overlay-closed",_.lN(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(Q)}},
onPopupIronOverlayCanceled_:function(A,Q){var b=A.currentTarget,f=_.CHi(b);f=f.length>0?f[0]:b;if(f.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){var a;_.Bn((a=f.hostElement)!=null?a:f,"yt-popup-canceled",A.detail);a=Q?_.mW(Q):null;(!Q||["click","tap"].includes(Q.type))&&!b.hasAttribute("force-close-on-outside-click")&&b.positionTarget&&a&&a.includes(b.positionTarget)&&A.preventDefault();b.restoreFocusOnClose=_.Hp.keyboardEventMatchesKeys(Q,"esc")}},
onPopupIronOverlayOpened_:function(A){A=A.currentTarget;var Q=_.CHi(A);Q=Q.length>0?Q[0]:A;var b,f;_.Bn((b=Q.hostElement)!=null?b:Q,"yt-popup-opened",(f=Q.hostElement)!=null?f:Q);A.keepBelowPlayer&&(this.ensurePopupBelowPlayer(A,!0),this.dynamicallyPositionedElements_.add(A));b=_.fJ().resolve(_.bu(_.L3));f=!!Q.querySelector("#toast");b&&b.isKeyBoardInUse()&&!f&&(typeof Q.focusFirstItem==="function"?Q.focusFirstItem():(Q=_.EBy(A),Q.length&&Q[0].focus()));A.removeEventListener("iron-overlay-opened",
_.lN(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(A){A=A.currentTarget;A.refit&&A.refit()},
refitPopups_:function(){for(var A in this.popups_)this.popups_[A].refit()},
handleInvalidatePopupTabbables_:function(A){A=A.currentTarget;A.invalidateTabbables&&A.invalidateTabbables()},
createCacheKey:function(A,Q){return _.K("web_popup_cache_key_killswitch")?Q?A+"#"+Q:A:Q?"#"+Q:A},
openSheet:function(A,Q){var b=A==null?void 0:A.openPopupActionCommand;!b&&(A==null?0:A.viewModel)&&(b={openPopupAction:{popup:{sheetViewModel:A.viewModel},popupType:"CONTEXTUAL_SHEET"}});b&&this.handleOpenPopupAction(b,Q)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var A=this;return _.B(function(Q){return Q.return(A.handleGetOpenedPopupsAction_().filter(function(b){var f;return((f=b.openPopupAction)==null?void 0:f.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(A,Q,b){if(_.K("web_dialog_utils_killswitch")){var f=A==null?void 0:A.openPopupActionCommand,a=(b==null?0:b.ariaLabel)?{accessibilityData:{accessibilityData:{label:b.ariaLabel}}}:void 0;!f&&(A==null?0:A.viewModel)&&(f={openPopupAction:Object.assign({},{popup:{dialogViewModel:A.viewModel},popupType:(b==null?0:b.isModal)?"MODAL":"DIALOG"},a&&a)});f&&this.handleOpenPopupAction(f,Q)}else{if(a=A==null?void 0:A.viewModel){var T=b=b===void 0?{}:b;b=T.ariaLabel;a={popup:{dialogViewModel:a},
popupType:T.isModal?"MODAL":"DIALOG"};T={accessibilityData:{label:b}};b&&(a.accessibilityData=T);a={openPopupAction:a}}else a=void 0;if(a=(f=a)!=null?f:A==null?void 0:A.openPopupActionCommand)this.isAriaModal=_.K("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(a,Q)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var A=this;return _.B(function(Q){return Q.return(A.handleGetOpenedPopupsAction_().filter(function(b){var f;return((f=b.openPopupAction)==null?void 0:f.popupType)==="DIALOG"}).length>0)})}}];var qIN;var oxK;var tZ7=_.sC(["about:blank"]),lo=function(){var A=_.q.apply(this,arguments)||this;A.isMuted=!1;A.pageLoadTimeoutId=void 0;return A};
_.O(lo,_.q);_.d=lo.prototype;_.d.dataChanged=function(){var A=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var Q=this.data.url,b=_.Rx(Q);_.K("enable_yt_ata_iframe_authuser")?(b=_.Rx(Q),_.Zi(this.iframe,VMO(b))):_.Zi(this.iframe,b);this.pageLoadTimeoutId=_.Hv(_.Rc(),function(){return void A.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.aB({destination:window,iframe:this.iframe,origin:_.gqM(b.toString()),channelName:"ataiframe",onMessage:_.EP9(Sks,function(f){UOM(f.data)?(f=_.cd(f.data,1,_.Nx,_.aL()),f.length!==1?_.Wv(Error("ql")):(f=f[0],f===3?(A.isMuted=!0,A.logStateChanged({adMuteRequested:!0})):f===1&&A.close())):_.Wv(Error("rl"))}),
onEstablished:function(){A.cancelPageLoadTimeout();A.logStateChanged({pageLoadSucceeded:!0})}})}};
_.d.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Rc().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.d.logStateChanged=function(A){var Q;if((Q=this.data)==null?0:Q.trackingParams)A={adsClientData:{aboutThisAdData:A}},_.IP().stateChanged(this.data.trackingParams,A)};
_.d.close=function(){_.pD(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.handlesPopupClosed=function(A,Q){var b=this,f,a;return _.B(function(T){if(T.nextAddress==1)return _.vG("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.pD(b.hostElement,"on-about-this-ad-popup-closed",[b.isMuted,Q]),T.jumpTo(0)):A&&O0M(A)?T.yield(nzn(A),4):(b.isMuted&&_.pD(b.hostElement,"yt-mute-ad-action",[b.is,b]),T.jumpTo(0));if(f=T.yieldResult){var G=a=new _.gq(f),p=b.isMuted;G.getOptions().includes("onAboutThisAdPopupClosed")?_.$UN(G,"onAboutThisAdPopupClosed",{isMuted:p,layoutId:Q}):_.Q3("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Oi(T)})};
_.d.onPopupClosed=function(A){var Q=this,b,f;return _.B(function(a){b=_.GH(tZ7);_.Zi(Q.iframe,b);Q.cancelPageLoadTimeout();if(!Q.data)return a.jumpTo(0);Q.ytRendererBehavior.markDirty();f=A.detail.context.openingElement;return a.yield(Q.handlesPopupClosed(f,Q.data.layoutId),0)})};
_.d.detached=function(){this.cancelPageLoadTimeout()};
_.d.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lo.prototype.onPopupClosed=lo.prototype.onPopupClosed;lo.prototype.dataChanged=lo.prototype.dataChanged;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.E([_.V1("#iframe"),_.c("design:type",HTMLIFrameElement)],lo.prototype,"iframe",void 0);_.E([_.C(),_.c("design:type",Object)],lo.prototype,"data",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],lo.prototype,"dataChanged",null);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype",Promise)],lo.prototype,"onPopupClosed",null);_.E([_.Ec({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],lo);
_.W(lo,"yt-about-this-ad-renderer",function(){if(oxK===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;qIN===void 0&&(qIN=document.createElement("template"));var f=qIN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);oxK=A}A=oxK;return A},{mode:2});var r6N;var jh7;var Ky=function(A){var Q=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.maxFileSizeMB=A;Object.setPrototypeOf(this,Ky.prototype)};
_.O(Ky,Error);var RXx=function(A,Q){var b=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.minWidth=A;this.minHeight=Q;Object.setPrototypeOf(this,RXx.prototype)};
_.O(RXx,Error);var gxs=function(A){this.requirements=A;this.JSC$20620_maxFileSize=A.maxFileSizeMB*1024*1024},eXd=function(A,Q){if(Q.size>A.JSC$20620_maxFileSize)throw new Ky(A.requirements.maxFileSizeMB);
};var hXN=function(A,Q){this.canvas=A;this.imageEditorBuilder=Q};
hXN.prototype.addEventListeners=function(A){var Q=function(a){WAn(A,a)};
this.JSC$20626_mouseDownEvent=Q;var b=function(a){vxO(A,a)};
this.JSC$20626_mouseMoveEvent=b;var f=function(){ExM(A)};
this.JSC$20626_mouseUpEvent=f;this.canvas.addEventListener("mousedown",Q);this.canvas.addEventListener("mousemove",b);document.addEventListener("mouseup",f)};
hXN.prototype.removeEventListeners=function(){this.JSC$20626_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20626_mouseDownEvent);this.JSC$20626_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20626_mouseMoveEvent);this.JSC$20626_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20626_mouseUpEvent)};
var xDd=function(A,Q){A.removeEventListeners();return new Promise(function(b){var f=new Image;f.crossOrigin="anonymous";f.onload=function(){var a=A.imageEditorBuilder(A.canvas,f);A.addEventListeners(a);b(a)};
f.src=Q})},io=function(A,Q,b,f,a,T,G,p){this.canvas=A;
this.image=Q;this.requiredRatio=b;this.minImageCropDimension=f;this.minOutputImageResolution=a;this.component=T;this.styleFocusedCorner=p===void 0?!0:p;this.action=2;this.focusedCorner=this.resizeCorner=0;A=this.canvas.getContext("2d");if(!A)throw Error("sl");this.ctx=A;this.canvasMargin=G!=null?G:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;G=this.image;A=this.canvasInnerWidth/G.width;G.height*A>912&&(A=G.width/G.height*912/G.width);G=A;this.scaledImageWidth=this.canvas.width%2?
I3x(this.image.width*G):keO(this.image.width*G);this.scaledImageHeight=Math.round(this.image.height*G);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20629_overlayMarginBottom=this.JSC$20629_overlayMarginTop=this.canvasMargin;this.JSC$20629_overlayMarginRight=this.JSC$20629_overlayMarginLeft=this.horizontalMargin;this.JSC$20629_overlayWidth=this.scaledImageWidth;this.JSC$20629_overlayHeight=this.scaledImageHeight;
A=this.image.width/this.image.height;A>this.requiredRatio?(this.JSC$20629_overlayWidth=this.canvas.width%2?I3x(this.scaledImageHeight*this.requiredRatio):keO(this.scaledImageHeight*this.requiredRatio),this.JSC$20629_overlayMarginRight=this.JSC$20629_overlayMarginLeft=(this.canvas.width-this.JSC$20629_overlayWidth)/2):A<this.requiredRatio&&(this.JSC$20629_overlayHeight=this.canvas.height%2?I3x(this.scaledImageWidth/this.requiredRatio):keO(this.scaledImageWidth/this.requiredRatio),this.JSC$20629_overlayMarginBottom=
this.JSC$20629_overlayMarginTop=(this.canvas.height-this.JSC$20629_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*G,this.scaledImageWidth);c6d(this)};
io.prototype.getContext=function(){return this.ctx};
var WAn=function(A,Q){Q={x:Math.round(Q.pageX-A.canvas.getBoundingClientRect().left),y:Math.round(Q.pageY-A.canvas.getBoundingClientRect().top)};A.dragStart=Q;zXK(A,Q)!==0?(A.action=1,wxd(A,Q),A.resizeCorner=zXK(A,Q)):Q.x>A.JSC$20629_overlayMarginLeft&&Q.x<A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth&&Q.y>A.JSC$20629_overlayMarginTop&&Q.y<A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight&&(A.action=0)},uxt=function(A,Q){switch(Q){case 1:return{x:A.JSC$20629_overlayMarginLeft,
y:A.JSC$20629_overlayMarginTop};case 2:return{x:A.JSC$20629_overlayMarginLeft,y:A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight};case 3:return{x:A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth,y:A.JSC$20629_overlayMarginTop};case 4:return{x:A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth,y:A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight};default:throw Error("tl");}},y6d=function(A,Q){if(A.focusedCorner!==0){A.dragStart=uxt(A,A.focusedCorner);
A.action=1;A.resizeCorner=A.focusedCorner;var b=A.dragStart.x,f=A.dragStart.y;switch(Q){case 0:A.focusedCorner===1||A.focusedCorner===4?(b-=10,f-=10):(b-=10,f+=10);break;case 1:A.focusedCorner===1||A.focusedCorner===4?(b+=10,f+=10):(b+=10,f-=10);break;case 2:b=A.focusedCorner===1||A.focusedCorner===4?b-10:b+10;f-=10;break;case 3:b=A.focusedCorner===1||A.focusedCorner===4?b+10:b-10;f+=10;break;default:throw Error("ul");}ZlM(A,{x:b,y:f});c6d(A);A.action=2;A.dragStart=void 0}},vxO=function(A,Q){Q={x:Math.round(Q.pageX-
A.canvas.getBoundingClientRect().left),
y:Math.round(Q.pageY-A.canvas.getBoundingClientRect().top)};wxd(A,Q);switch(A.action){case 1:ZlM(A,Q);break;case 0:A.dragStart&&(A.JSC$20629_overlayMarginLeft=Math.max(A.horizontalMargin,Math.min(A.JSC$20629_overlayMarginLeft-(A.dragStart.x-Q.x),A.horizontalMargin+A.scaledImageWidth-A.JSC$20629_overlayWidth)),A.JSC$20629_overlayMarginRight=A.canvas.width-A.JSC$20629_overlayMarginLeft-A.JSC$20629_overlayWidth,A.JSC$20629_overlayMarginTop=Math.max(A.canvasMargin,Math.min(A.JSC$20629_overlayMarginTop-
(A.dragStart.y-Q.y),A.scaledImageHeight-A.JSC$20629_overlayHeight+A.canvasMargin)),A.JSC$20629_overlayMarginBottom=A.canvas.height-(A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight));break;default:return}c6d(A);A.dragStart=Q},ExM=function(A){A.action=2;
A.dragStart=void 0;document.body.style.cursor="auto"},wxd=function(A,Q){switch(zXK(A,Q)){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:A.action!==1&&(document.body.style.cursor="auto")}},zXK=function(A,Q){var b=A.JSC$20629_overlayMarginLeft-5,f=A.JSC$20629_overlayMarginTop-5,a=A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth-5;
A=A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight-5;return YIr(Q,{x:b,y:f})?1:YIr(Q,{x:a,y:f})?3:YIr(Q,{x:b,y:A})?2:YIr(Q,{x:a,y:A})?4:0},YIr=function(A,Q){return A.x>=Q.x&&A.x<=Q.x+10&&A.y>=Q.y&&A.y<=Q.y+10},ZlM=function(A,Q){if(A.dragStart)switch(A.resizeCorner){case 2:Math.abs((A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth-Q.x)/(Q.y-A.JSC$20629_overlayMarginTop))>=A.requiredRatio?DDd(A,Q.x):$Dr(A,Q.y);
break;case 1:Math.abs((A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth-Q.x)/(A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight-Q.y))>=A.requiredRatio?Nan(A,Q.x):$Dr(A,Q.y);break;case 4:Math.abs((Q.x-A.JSC$20629_overlayMarginLeft)/(Q.y-A.JSC$20629_overlayMarginTop))>=A.requiredRatio?DDd(A,Q.x):shd(A,Q.y);break;case 3:Math.abs((Q.x-A.JSC$20629_overlayMarginLeft)/(A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight-Q.y))>=A.requiredRatio?Nan(A,Q.x):shd(A,Q.y);break;default:throw Error("vl");
}},DDd=function(A,Q){var b=A.JSC$20629_overlayMarginTop;
A.JSC$20629_overlayMarginBottom=mDK(A,Q);A.JSC$20629_overlayHeight=A.canvas.height-A.JSC$20629_overlayMarginBottom-b;A.JSC$20629_overlayWidth=Math.round(A.JSC$20629_overlayHeight*A.requiredRatio);AAl(A)},Nan=function(A,Q){var b=A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight;
A.JSC$20629_overlayMarginTop=mDK(A,Q);A.JSC$20629_overlayHeight=b-A.JSC$20629_overlayMarginTop;A.JSC$20629_overlayWidth=Math.round(A.JSC$20629_overlayHeight*A.requiredRatio);AAl(A)},AAl=function(A){switch(A.resizeCorner){case 2:case 1:A.JSC$20629_overlayMarginLeft=A.canvas.width-A.JSC$20629_overlayMarginRight-A.JSC$20629_overlayWidth;
break;case 4:case 3:A.JSC$20629_overlayMarginRight=A.canvas.width-A.JSC$20629_overlayMarginLeft-A.JSC$20629_overlayWidth;break;default:throw Error("vl");}},$Dr=function(A,Q){var b=A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth;
A.JSC$20629_overlayMarginLeft=Qfr(A,Q);A.JSC$20629_overlayWidth=b-A.JSC$20629_overlayMarginLeft;A.JSC$20629_overlayHeight=Math.round(A.JSC$20629_overlayWidth/A.requiredRatio);bXs(A)},shd=function(A,Q){var b=A.JSC$20629_overlayMarginLeft;
A.JSC$20629_overlayMarginRight=Qfr(A,Q);A.JSC$20629_overlayWidth=A.canvas.width-A.JSC$20629_overlayMarginRight-b;A.JSC$20629_overlayHeight=Math.round(A.JSC$20629_overlayWidth/A.requiredRatio);bXs(A)},bXs=function(A){switch(A.resizeCorner){case 2:case 4:A.JSC$20629_overlayMarginBottom=A.canvas.height-A.JSC$20629_overlayMarginTop-A.JSC$20629_overlayHeight;
break;case 1:case 3:A.JSC$20629_overlayMarginTop=A.canvas.height-A.JSC$20629_overlayMarginBottom-A.JSC$20629_overlayHeight;break;default:throw Error("vl");}},mDK=function(A,Q){switch(A.resizeCorner){case 2:Q=A.canvas.height-(A.JSC$20629_overlayMarginTop+fAs(A,Q));
break;case 4:Q=A.canvas.height-(A.JSC$20629_overlayMarginTop+aAN(A,Q));break;case 1:Q=A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight-fAs(A,Q);break;case 3:Q=A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight-aAN(A,Q);break;default:throw Error("vl");}return Math.max(Q,A.canvasMargin)},fAs=function(A,Q){Q=A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth-Math.max(Q,A.horizontalMargin);
Q=Q<0?A.JSC$20629_overlayWidth:Math.max(Q,A.minOverlayWidth);return Math.round(Q/A.requiredRatio)},aAN=function(A,Q){Q=A.canvas.width-Math.max(A.canvas.width-Q,A.horizontalMargin)-A.JSC$20629_overlayMarginLeft;
Q=Q<0?A.JSC$20629_overlayWidth:Math.max(Q,A.minOverlayWidth);return Math.round(Q/A.requiredRatio)},Qfr=function(A,Q){switch(A.resizeCorner){case 2:Q=A.canvas.width-A.JSC$20629_overlayMarginRight-TDr(A,Q);
break;case 4:Q=A.canvas.width-A.JSC$20629_overlayMarginLeft-TDr(A,Q);break;case 1:Q=A.canvas.width-A.JSC$20629_overlayMarginRight-dmK(A,Q);break;case 3:Q=A.canvas.width-A.JSC$20629_overlayMarginLeft-dmK(A,Q);break;default:throw Error("vl");}return Math.max(Q,A.horizontalMargin)},TDr=function(A,Q){Q=A.canvas.height-Math.max(A.canvas.height-Q,A.canvasMargin)-A.JSC$20629_overlayMarginTop;
return Q<0?A.JSC$20629_overlayWidth:Math.max(Math.round(Q*A.requiredRatio),A.minOverlayWidth)},dmK=function(A,Q){Q=A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight-Math.max(Q,A.canvasMargin);
return Q<0?A.JSC$20629_overlayWidth:Math.max(Math.round(Q*A.requiredRatio),A.minOverlayWidth)},c6d=function(A){A.ctx.clearRect(0,0,A.canvas.width,A.canvas.height);
A.ctx.drawImage(A.image,0,0,A.image.width,A.image.height,A.horizontalMargin,A.canvasMargin,A.canvas.width-2*A.horizontalMargin,A.scaledImageHeight);A.ctx.fillStyle="rgba(0, 0, 0, 0.7)";A.ctx.fillRect(A.horizontalMargin,A.JSC$20629_overlayMarginTop,A.JSC$20629_overlayMarginLeft-A.horizontalMargin,A.JSC$20629_overlayHeight);A.ctx.fillRect(A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth,A.JSC$20629_overlayMarginTop,A.JSC$20629_overlayMarginRight-A.horizontalMargin,A.JSC$20629_overlayHeight);A.ctx.fillRect(A.horizontalMargin,
A.canvasMargin,A.scaledImageWidth,A.JSC$20629_overlayMarginTop-A.canvasMargin);A.ctx.fillRect(A.horizontalMargin,A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight,A.scaledImageWidth,A.JSC$20629_overlayMarginBottom-A.canvasMargin);A.drawOverlay();A.component&&_.Bn(A.component,"image-updated")};
io.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20629_overlayMarginLeft,this.JSC$20629_overlayMarginTop,this.JSC$20629_overlayWidth,this.JSC$20629_overlayHeight);FhN(this)};
var FhN=function(A){var Q=A.JSC$20629_overlayMarginLeft-5,b=A.JSC$20629_overlayMarginTop-5,f=A.JSC$20629_overlayMarginLeft+A.JSC$20629_overlayWidth-5,a=A.JSC$20629_overlayMarginTop+A.JSC$20629_overlayHeight-5;A.ctx.fillStyle="#FFF";A.ctx.fillRect(Q,b,10,10);A.ctx.strokeRect(Q,b,10,10);A.ctx.fillRect(f,b,10,10);A.ctx.strokeRect(f,b,10,10);A.ctx.fillRect(Q,a,10,10);A.ctx.strokeRect(Q,a,10,10);A.ctx.fillRect(f,a,10,10);A.ctx.strokeRect(f,a,10,10);if(A.focusedCorner!==0&&A.styleFocusedCorner){A.ctx.lineWidth=
4;A.ctx.strokeStyle="#3EA6FF";switch(A.focusedCorner){case 1:--Q;--b;break;case 2:--Q;b=a-1;break;case 3:Q=f-1;--b;break;case 4:Q=f-1;b=a-1;break;default:return}A.ctx.strokeRect(Q,b,12,12)}};
io.prototype.crop=function(A,Q){Q=Q===void 0?!0:Q;var b=this.image.width/this.scaledImageWidth,f=document.createElement("canvas"),a=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],T=this.JSC$20629_overlayWidth*b,G=this.JSC$20629_overlayHeight*b;f.width=Math.max(T,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);f.height=Math.max(G,a);A&&(f.width=Math.min(f.width,f.height),f.height=Math.min(f.width,f.height));
A=f.getContext("2d");if(!A)throw Error("jl");a=(this.JSC$20629_overlayMarginLeft-this.horizontalMargin)*b;b*=this.JSC$20629_overlayMarginTop-this.canvasMargin;Q||(A.fillStyle="white",A.fillRect(0,0,f.width,f.height));A.drawImage(this.image,a,b,T,G,0,0,f.width,f.height);return f};var G3t=function(A,Q,b,f,a){io.call(this,A,Q,b,f,void 0,a,8,!1)};
_.O(G3t,io);G3t.prototype.drawOverlay=function(){var A=this.getContext(),Q=this.JSC$20629_overlayWidth,b=this.JSC$20629_overlayHeight,f=this.JSC$20629_overlayMarginTop,a=this.JSC$20629_overlayMarginLeft;A.lineWidth=2;A.strokeStyle="#3EA6FF";A.beginPath();A.arc(a+Q/2,f+b/2,Q/2,0,2*Math.PI);A.stroke();A.strokeRect(a,f,Q,b);FhN(this)};
var BDx={maxFileSizeMB:15,minWidth:98,minHeight:98},pft=["image/png","image/jpeg","image/gif"],JG=function(){var A=_.q.apply(this,arguments)||this;A.fileSelectorFocusListener=null;A.errorMessage=null;A.isLoading=!0;A.hideContainer=!0;A.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return A};
_.O(JG,_.q);_.d=JG.prototype;_.d.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.d.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.d.computePlaylistThumbnail=function(A){return A==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.d.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.pD(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.d.setErrorState=function(A){this.resetErrorState();A&&(this.errorMessage=A)};
_.d.showPopup=function(){var A=this;this.hideContainer=!1;_.Hv(_.j7,function(){_.Bn(A.hostElement,"yt-refit")});
this.isLoading=!1};
_.d.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.d.closePopup=function(){this.resetFileSelector();_.pD(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onCancelTap=function(){this.isPlaylistThumbnail||_.pD(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.d.openFileSelector=function(){var A=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Hv(_.j7,function(){setTimeout(function(){if(!A.fileSelector.files||A.fileSelector.files.length===0)A.onCancelTap();A.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(Q){Q instanceof Error?_.en(Q):_.hq(new _.IO(JSON.stringify(Q)))}};
_.d.handleFileSelection=function(){var A=this,Q,b,f,a,T,G;return _.B(function(p){switch(p.nextAddress){case 1:_.ML(p,2);if(!A.fileSelector.files||!A.imageEditorCanvas)return A.onCancelTap(),p.return();Q=A.fileSelector.files[0];eXd(A.imageChecker,Q);_.ML(p,4);return p.yield(DJN(Q),6);case 6:A.mimeType=p.yieldResult;_.Z1(p,5,2);break;case 4:_.Vw(p,2),_.pD(A.hostElement,"yt-image-selection-error-action",[(b=A.data)==null?void 0:b.genericImageLoadErrorMessage]),A.onCancelTap();case 5:f=new FileReader;
f.addEventListener("load",function(){var P,U;return _.B(function(L){if(L.nextAddress==1){if(!f.result)return _.Wv(Error("ll")),L.return();P=f.result;U=new Image;U.src=P;U.onload=function(){try{var M=A.imageChecker;if(U.width<M.requirements.minWidth||U.height<M.requirements.minHeight)throw new RXx(M.requirements.minWidth,M.requirements.minHeight);}catch(J){if(J instanceof RXx){var l;_.pD(A.hostElement,"yt-image-selection-error-action",[(l=A.data)==null?void 0:l.imageDimensionErrorMessage]);A.logImageDimensionErrorVe()}else J instanceof
Error?_.en(J):(M=new _.IO(JSON.stringify(J)),_.en(M));A.onCancelTap()}A.showPopup()};
U.onerror=function(){var M;_.pD(A.hostElement,"yt-image-selection-error-action",[(M=A.data)==null?void 0:M.genericImageLoadErrorMessage]);A.onCancelTap()};
return L.yield(xDd(A.imageEditorCanvas,P),2)}A.imageEditor=L.yieldResult;A.updatePositionOfAllCorners();A.addEventListeners(A.imageEditor);_.Oi(L)})},!1);
f.readAsDataURL(Q);_.Z1(p,0);break;case 2:a=_.Vw(p),a instanceof Ky?_.pD(A.hostElement,"yt-image-selection-error-action",[(T=A.data)==null?void 0:T.imageSizeErrorMessage]):(a instanceof Error?_.en(a):_.hq(new _.IO(JSON.stringify(a))),_.pD(A.hostElement,"yt-image-selection-error-action",[(G=A.data)==null?void 0:G.genericImageLoadErrorMessage])),A.onCancelTap(),_.Oi(p)}})};
_.d.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var A=_.kz(_.IP(),{veType:232707,visualElement:_.K6(232707)});A&&(A={visualElement:A},_.n0().reportShown(A))}};
_.d.handleImageSelectionErrorAction=function(A){this.isPlaylistThumbnail&&_.quY(this.hostElement,A)};
_.d.convertToImageFormatBundle=function(A){var Q=this,b,f,a;return _.B(function(T){switch(T.nextAddress){case 1:return b=A.toDataURL(Q.outputMimeType,1),T.yield($JM(b),2);case 2:f=T.yieldResult;_.ML(T,3);eXd(Q.imageChecker,f);_.Z1(T,4);break;case 3:a=_.Vw(T);if(!(a instanceof Ky))throw a;_.Wv(new _.IO("Output size is bigger than input size for image",Q.mimeType,Q.outputMimeType,f.size));b=A.toDataURL("image/jpeg",.95);return T.yield($JM(b),6);case 6:f=T.yieldResult;case 4:return T.return({dataUrl:b,
imageFile:f})}})};
_.d.handleUploadImageToScottyCommand=function(A){var Q=this,b,f,a,T,G,p,P,U,L,M;return _.B(function(l){switch(l.nextAddress){case 1:if(!Q.imageEditor||!_.V(A,o3n))return l.return();b=_.V(A,o3n).scottyUploadUrl;if(!b){var J=new _.IO("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.en(J);return l.return()}_.ML(l,2);Q.setLoadingState();f=Q.imageEditor.crop(!1,!1);return l.yield(Q.convertToImageFormatBundle(f),4);case 4:return a=l.yieldResult,l.yield(yuM(a.imageFile,b),5);
case 5:T=l.yieldResult;((G=Q.data)==null?0:G.onUploadEndpoint)?(p=Q.buildUploadServiceEndpoint(T),Q.ytComponentBehavior.resolveCommand(p),P=_.V(p,_.xj),((U=P)==null?0:U.params)?Q.closePopup():Q.resetFileSelector()):(_.pD(Q.hostElement,"yt-image-updated-action",[a.dataUrl,T]),Q.closePopup());_.Z1(l,0);break;case 2:L=_.Vw(l),Q.setErrorState((M=Q.data)==null?void 0:M.uploadErrorMessage),L instanceof Error?_.en(L):(J=new _.IO(JSON.stringify(L)),_.en(J)),_.Oi(l)}})};
_.d.buildUploadServiceEndpoint=function(A){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",A),this.data.onUploadEndpoint):null};
_.d.dataChanged=function(){var A=this,Q;return _.B(function(b){if(b.nextAddress==1){if(!A.data||!A.canvasElement)return b.return();A.data.imageRatio&&A.data.minImageCropWidth||_.hq(new _.IO("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));Q=function(f,a){return A.data.imageType==="IMAGE_TYPE_AVATAR"?new G3t(f,a,A.data.imageRatio,[A.data.minImageCropWidth,A.data.minImageCropWidth/A.data.imageRatio],A.hostElement):new io(f,a,A.data.imageRatio,[A.data.minImageCropWidth,
A.data.minImageCropWidth/A.data.imageRatio],void 0,A.hostElement,8,!1)};
A.imageEditorCanvas=new hXN(A.canvasElement,Q);return A.data.url?b.yield(xDd(A.imageEditorCanvas,A.data.url),3):(A.hideContainer=!0,A.openFileSelector(),b.jumpTo(0))}A.imageEditor=b.yieldResult;A.showPopup();A.addEventListeners(A.imageEditor);_.Oi(b)})};
_.d.addEventListeners=function(A){this.removeEventListeners();var Q=function(a){WAn(A,a)};
this.JSC$20637_mouseDownEvent=Q;var b=function(a){vxO(A,a)};
this.JSC$20637_mouseMoveEvent=b;var f=function(){ExM(A)};
this.JSC$20637_mouseUpEvent=f;this.topLeftCorner.addEventListener("mousedown",Q);this.topLeftCorner.addEventListener("mousemove",b);this.topLeftCorner.addEventListener("mouseup",f);this.topRightCorner.addEventListener("mousedown",Q);this.topRightCorner.addEventListener("mousemove",b);this.topRightCorner.addEventListener("mouseup",f);this.bottomLeftCorner.addEventListener("mousedown",Q);this.bottomLeftCorner.addEventListener("mousemove",b);this.bottomLeftCorner.addEventListener("mouseup",f);this.bottomRightCorner.addEventListener("mousedown",
Q);this.bottomRightCorner.addEventListener("mousemove",b);this.bottomRightCorner.addEventListener("mouseup",f)};
_.d.removeEventListeners=function(){this.JSC$20637_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20637_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20637_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20637_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20637_mouseDownEvent));this.JSC$20637_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20637_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20637_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20637_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20637_mouseMoveEvent));this.JSC$20637_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20637_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20637_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20637_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20637_mouseUpEvent))};
_.d.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var A=document.activeElement;A&&A.shadowRoot&&A.shadowRoot.activeElement;)A=A.shadowRoot.activeElement;switch(A){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};
_.d.updatePositionOfCorner=function(A,Q){var b=A.y-Q.offsetHeight/2+4;Q.style.left=A.x-Q.offsetWidth/2+16+"px";Q.style.top=b+"px"};
_.d.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var A=_.F([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var b=uxt(this.imageEditor,Q.corner);this.updatePositionOfCorner(b,Q.div)}};
_.d.onLeft=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(y6d(this.imageEditor,0),this.updatePositionOfAllCorners(),A.preventDefault())};
_.d.onRight=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(y6d(this.imageEditor,1),this.updatePositionOfAllCorners(),A.preventDefault())};
_.d.onUp=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(y6d(this.imageEditor,2),this.updatePositionOfAllCorners(),A.preventDefault())};
_.d.onDown=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(y6d(this.imageEditor,3),this.updatePositionOfAllCorners(),A.preventDefault())};
_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Qr.Object.defineProperties(JG.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&pft.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var A,Q,b;((Q=this.data)==null?0:Q.imageRatio)&&((b=this.data)==null?0:b.minImageCropWidth)?A={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:A=BDx;return new gxs(A)}}});
JG.prototype.updatePositionOfAllCorners=JG.prototype.updatePositionOfAllCorners;JG.prototype.dataChanged=JG.prototype.dataChanged;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],JG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],JG.prototype,"ytComponentBehavior",void 0);_.E([_.I(_.Hp),_.c("design:type",Object)],JG.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.V1("#canvas"),_.c("design:type",HTMLCanvasElement)],JG.prototype,"canvasElement",void 0);_.E([_.V1("#file-selector"),_.c("design:type",HTMLInputElement)],JG.prototype,"fileSelector",void 0);_.E([_.V1("#top-left-corner"),_.c("design:type",HTMLDivElement)],JG.prototype,"topLeftCorner",void 0);_.E([_.V1("#top-right-corner"),_.c("design:type",HTMLDivElement)],JG.prototype,"topRightCorner",void 0);
_.E([_.V1("#bottom-left-corner"),_.c("design:type",HTMLDivElement)],JG.prototype,"bottomLeftCorner",void 0);_.E([_.V1("#bottom-right-corner"),_.c("design:type",HTMLDivElement)],JG.prototype,"bottomRightCorner",void 0);_.E([_.C(),_.c("design:type",Object)],JG.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],JG.prototype,"errorMessage",void 0);_.E([_.C(),_.c("design:type",Object)],JG.prototype,"isLoading",void 0);_.E([_.C(),_.c("design:type",Object)],JG.prototype,"hideContainer",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.c("design:type",Boolean)],JG.prototype,"isPlaylistThumbnail",void 0);_.E([_.I_("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],JG.prototype,"dataChanged",null);_.E([_.Kc("image-updated"),_.Kc("yt-refit"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],JG.prototype,"updatePositionOfAllCorners",null);
_.E([_.Ec({is:"yt-image-editor-renderer",disableElementRegistration:!0})],JG);
_.W(JG,"yt-image-editor-renderer",function(){if(jh7===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;r6N===void 0&&(r6N=document.createElement("template"));var f=r6N;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);jh7=A}A=jh7;return A},{mode:2});var PRn;var Xfl;var VL=function(){return _.q.apply(this,arguments)||this};
_.O(VL,_.q);VL.prototype.updateMinutesFromBinding=function(A){this.handleMinutesChanged&&this.handleMinutesChanged(A)};
VL.prototype.updateSecondsFromBinding=function(A){this.handleSecondsChanged&&this.handleSecondsChanged(A)};
VL.prototype.updateDescriptionFromBinding=function(A){this.handleDescriptionChanged&&this.handleDescriptionChanged(A)};
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],VL.prototype,"ytComponentBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],VL.prototype,"data",void 0);_.E([_.C(),_.c("design:type",String)],VL.prototype,"minutes",void 0);_.E([_.C(),_.c("design:type",String)],VL.prototype,"seconds",void 0);_.E([_.C(),_.c("design:type",String)],VL.prototype,"description",void 0);_.E([_.C(),_.c("design:type",Function)],VL.prototype,"handleMinutesChanged",void 0);
_.E([_.C(),_.c("design:type",Function)],VL.prototype,"handleSecondsChanged",void 0);_.E([_.C(),_.c("design:type",Function)],VL.prototype,"handleDescriptionChanged",void 0);_.E([_.C(),_.c("design:type",Number)],VL.prototype,"characterLimit",void 0);_.E([_.C(),_.c("design:type",Number)],VL.prototype,"textNumRows",void 0);_.E([_.Ec({is:"yt-report-details-form-content",disableElementRegistration:!0})],VL);
_.W(VL,"yt-report-details-form-content",function(){if(Xfl===void 0){var A=document.createElement("template");_.k(A,'\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>');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;PRn===void 0&&(PRn=document.createElement("template"));var f=PRn;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Xfl=A}A=Xfl;return A},{mode:2});var Sa7;var UmO;var Od=function(){var A=_.q.apply(this,arguments)||this;A.updateMinutesFromBinding=function(Q){A.minutes=Q.detail.value};
A.updateSecondsFromBinding=function(Q){A.seconds=Q.detail.value};
A.updateDescriptionFromBinding=function(Q){A.description=Q.detail.value};
return A};
_.O(Od,_.q);_.d=Od.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.d.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"}}}};
_.d.ready=function(){_.Bj(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.d.onSubmitYtAction=function(A){var Q=A.detail;Q.actionName==="yt-service-request"&&(Q=Q.args[1],Q.flagEndpoint&&(A.stopPropagation(),this.refireAction(Q)))};
_.d.refireAction=function(A){var Q={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(Q.vss_id=this.vssId);_.X5(this.hostElement,[A,Q]);this.submitDisabled=!0};
_.d.dataChanged=function(){var A=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var Q=_.BL();Q&&Q.getPlayerPromise().then(function(b){var f=b.getOption("cc","track")||b.getOption("captions","track");f&&(A.vssId=f.vss_id);b=b.getCurrentTime();A.minutes=Math.floor(b/60).toString();A.seconds=(Math.floor(b)%60).toString()})};
_.d.updateSubmitButtonState=function(){var A;((A=this.data)==null?0:A.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==="")};
_.d.onYtServiceRequestCompleted=function(){_.pD(this.hostElement,"yt-close-popup-action")};
_.d.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Qr.Object.defineProperties(Od.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.textNumRows)||4}}});
Od.prototype.onYtServiceRequestError=Od.prototype.onYtServiceRequestError;Od.prototype.onYtServiceRequestCompleted=Od.prototype.onYtServiceRequestCompleted;Od.prototype.updateSubmitButtonState=Od.prototype.updateSubmitButtonState;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);
_.E([_.C({observer:"dataChanged"}),_.c("design:type",Object)],Od.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Boolean)],Od.prototype,"submitDisabled",void 0);_.E([_.C(),_.c("design:type",String)],Od.prototype,"minutes",void 0);_.E([_.C(),_.c("design:type",String)],Od.prototype,"seconds",void 0);_.E([_.C(),_.c("design:type",String)],Od.prototype,"description",void 0);_.E([_.C(),_.c("design:type",String)],Od.prototype,"vssId",void 0);
_.E([_.C({value:_.vG("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.c("design:type",Boolean)],Od.prototype,"isMusic",void 0);_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],Od.prototype,"characterLimit",null);_.E([_.H("data"),_.c("design:type",Number),_.c("design:paramtypes",[])],Od.prototype,"textNumRows",null);
_.E([_.I_("minutes","seconds","description","submitDisabled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Od.prototype,"updateSubmitButtonState",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Od.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Od.prototype,"onYtServiceRequestError",null);_.E([_.Ec({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Od);
_.W(Od,"yt-report-details-form-renderer",function(){if(UmO===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Sa7===void 0&&(Sa7=document.createElement("template"));var f=Sa7;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);UmO=A}A=UmO;return A});var Lhs;var MXl;var lAs;var Khq;var ny=function(){return _.q.apply(this,arguments)||this};
_.O(ny,_.q);
ny.prototype.onCheckedChanged_=function(){if(this.data){var A=_.Bj(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.pD(this.hostElement,"yt-additional-detail-checkbox-update",[A]):this.data.identifier==="yt-hide-user-checkbox"?_.pD(this.hostElement,"yt-hide-user-checkbox-update",[A]):A&&this.data.enableCommand?_.pD(this.hostElement,"yt-modify-report-form-command",[_.V(this.data.enableCommand,hGN)]):!A&&this.data.disableCommand&&_.pD(this.hostElement,
"yt-modify-report-form-command",[_.V(this.data.enableCommand,hGN)])}};
ny.prototype.onLabelTap_=function(A){A.target.tagName!="A"&&(_.Bj(this.hostElement).querySelector("#checkbox").checked=!_.Bj(this.hostElement).querySelector("#checkbox").checked)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],ny.prototype,"data",void 0);_.E([_.Ec({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],ny);
_.W(ny,"yt-boolean-form-field-v2-renderer",function(){if(Khq===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;lAs===void 0&&(lAs=document.createElement("template"));var f=lAs;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Khq=A}A=Khq;return A});var kF=function(){var A=_.q.apply(this,arguments)||this;A.canShowAdditionalDetailCheckbox=!1;A.canShowCheckbox=!1;A.keepDropdownFocusedAfterSelection=!0;return A};
_.O(kF,_.q);kF.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],kF.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],kF.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.C(),_.c("design:type",Object)],kF.prototype,"canShowCheckbox",void 0);_.E([_.C(),_.c("design:type",Object)],kF.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.Ec({is:"yt-report-form-modal-content",disableElementRegistration:!0})],kF);
_.W(kF,"yt-report-form-modal-content",function(){if(MXl===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Lhs===void 0&&(Lhs=document.createElement("template"));var f=Lhs;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);MXl=A}A=MXl;return A},{mode:2});var iXl;var JAN;var IG=function(){var A=_.q.apply(this,arguments)||this;A.submitting=!1;A.submitButtonDisabled=!0;A.command=null;A.canShowCheckbox=!1;A.canShowAdditionalDetailCheckbox=!1;A.canShowNextButton=!1;A.additionalDetailCheckboxChecked=!1;A.refitJob=0;A.keepDropdownFocusedAfterSelection=!0;A.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 A};
_.O(IG,_.q);_.d=IG.prototype;_.d.created=function(){this.refitJob=0};
_.d.attached=function(){this.JSC$20660_scroller&&(this.JSC$20660_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20660_scroller.attached&&typeof this.JSC$20660_scroller.attached==="function"&&this.JSC$20660_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(A){A&&(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,A.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),A.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.d.onYtPopupOpened=function(){var A=_.BL();A&&A.getPlayerPromise().then(function(Q){Q.pauseVideo()})};
_.d.onYtNavigate=function(A){_.V(A.detail.endpoint,_.f7Y)&&(A.stopPropagation(),this.hideReportForm=!0)};
_.d.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.d.onYtServiceRequestCompleted=function(A,Q){var b=Q.actions;if(b){if(b.length===1&&_.V(b[0],_.LD)){var f;b=((f=_.V(b[0],_.LD))==null?void 0:f.commands)||[]}f=0;for(var a=b.length;f<a;f++)_.V(b[f],_.ju)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(b[f]))}if(Q.data&&(A=this.get("feedbackResponses",Q.data)))for(Q=0;Q<A.length;Q++)if(A[Q].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.d.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.d._onDescendantIronResize=function(A){A.stopPropagation();return!1};
_.d.handleReportFormEndpointUpdateAction=function(A){if(A.submitEndpoint){var Q=this.command=A.submitEndpoint;Q=_.V(Q,_.AVr);if(Q==null?0:Q.additionalDetailCheckboxChecked)Q.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else A.submitNavigationEndpoint?(this.command=A.submitNavigationEndpoint,this.toggleSubmitButton(!1)):A.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:A.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;A.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",A));this.refit()};
_.d.handleConfirmDialogCloseAction=function(A){A.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.d.submitButtonDisabledChanged=function(){var A=this.hostElement.parentElement;A&&A.invalidateTabbables&&A.invalidateTabbables()};
_.d.handleModifyReportFormCommand=function(A){A=this.get("action",A);A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:A==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:A==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.d.updateDialogStyling=function(){var A,Q,b,f,a,T=((a=(A=this.data)==null?void 0:(Q=A.optionsSupportedRenderers)==null?void 0:(b=Q.optionsRenderer)==null?void 0:(f=b.items)==null?void 0:f.length)!=null?a:0)<=2?0:240;_.Uc(this.hostElement,{"--yt-report-form-modal-renderer-min-width":T+"px"})};
_.d.toggleSubmitButton=function(A){this.submitButtonDisabled=!A;this.submitButtonDisabled=A};
_.d.computeSubmitButtonData=function(A,Q){var b={};_.V(Q,_.f7Y)?b.navigationEndpoint=Q:b.command=Q||void 0;A&&A.buttonRenderer&&_.j2.extend(b,A.buttonRenderer);return b};
_.d.computeNextButtonData=function(A,Q){var b={};if(!A||!A.buttonRenderer)return b;_.j2.extend(b,A.buttonRenderer);if(!Q)return b;if(_.V(Q,_.f7Y))b.navigationEndpoint=sbx(Q);else if(b.command=sbx(Q),A=_.V(b.command,_.AVr))A.legalCheckboxChecked=!0;return b};
_.d.computeShowNextButton=function(A,Q,b){return!!A&&Q&&b};
_.d.refit=function(){var A=this;this.refitJob||(this.refitJob=_.j7.addLowPriorityJob(function(){_.Bn(A.hostElement,"yt-refit");A.refitJob=0}))};
_.d.handleAdditionalDetailCheckboxUpdateAction=function(A){this.additionalDetailCheckboxChecked=A;_.V(this.command,_.AVr).additionalDetailCheckboxChecked=A};
_.Qr.Object.defineProperties(IG,{template:{configurable:!0,enumerable:!0,get:function(){if(JAN===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;iXl===void 0&&(iXl=document.createElement("template"));var f=iXl;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);JAN=A}A=JAN;return A}}});
IG.prototype.onYtServiceRequestError=IG.prototype.onYtServiceRequestError;IG.prototype.onYtServiceRequestCompleted=IG.prototype.onYtServiceRequestCompleted;IG.prototype.onYtServiceRequestSent=IG.prototype.onYtServiceRequestSent;IG.prototype.onYtNavigate=IG.prototype.onYtNavigate;IG.prototype.onYtPopupOpened=IG.prototype.onYtPopupOpened;_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],IG.prototype,"openPopupBehavior",void 0);
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],IG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],IG.prototype,"eventForwardingBehavior",void 0);_.E([_.I(_.eI),_.c("design:type",Object)],IG.prototype,"ironResizableBehavior",void 0);_.E([_.C({observer:"dataChanged"}),_.c("design:type",Object)],IG.prototype,"data",void 0);
_.E([_.C(),_.c("design:type",Object)],IG.prototype,"submitting",void 0);_.E([_.C({observer:"submitButtonDisabledChanged"}),_.c("design:type",Object)],IG.prototype,"submitButtonDisabled",void 0);_.E([_.C(),_.c("design:type",Object)],IG.prototype,"command",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],IG.prototype,"hideReportForm",void 0);_.E([_.C(),_.c("design:type",Object)],IG.prototype,"canShowCheckbox",void 0);
_.E([_.C(),_.c("design:type",Object)],IG.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.C(),_.c("design:type",Object)],IG.prototype,"canShowNextButton",void 0);_.E([_.C(),_.c("design:type",Object)],IG.prototype,"additionalDetailCheckboxChecked",void 0);_.E([_.C(),_.c("design:type",Object)],IG.prototype,"refitJob",void 0);_.E([_.C(),_.c("design:type",Object)],IG.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.V1("#scroller"),_.c("design:type",Object)],IG.prototype,"JSC$20660_scroller",void 0);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],IG.prototype,"onYtPopupOpened",null);_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],IG.prototype,"onYtNavigate",null);
_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],IG.prototype,"onYtServiceRequestSent",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],IG.prototype,"onYtServiceRequestCompleted",null);
_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],IG.prototype,"onYtServiceRequestError",null);_.E([_.Ec({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],IG);var VXq;var OXq;var Hs=function(){return _.q.apply(this,arguments)||this};
_.O(Hs,_.q);_.d=Hs.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.d.onVisible=function(){var A,Q;(Q=_.fJ().resolve(_.bu(_.rI)))==null||Q.enqueue({label:_.mO((A=this.data)==null?void 0:A.messageTitle),elementToFocus:this.hostElement})};
_.d.onThumbnailLoaded=function(){_.Bn(this.hostElement,"yt-refit")};
_.d.onDismissTap=function(){_.pD(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.d.computeAlternateIcon=function(A){return A?A==="BACKSTAGE_ARTWORK"?"backstage:artwork":A:null};
_.d.computeFontFamily=function(A){return A==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.d.computeBackgroundStyle=function(A,Q){if(A=this.computeBackgroundImage(A,Q))if(A=_.XS(A.thumbnails))return'background-image: url("'+A+'");'};
_.d.computeHasFullHeightImage=function(A){return!(!(A&&A.thumbnails&&A.thumbnails.length>0)||this.modern)};
_.d.isModernStyle=function(A){return A.style==="STYLE_MODERN"};
_.d.computeIcon=function(A,Q){if(A&&A.icon)return Q?A.iconDark:A.icon};
_.d.computeBackgroundImage=function(A,Q){if(A&&A.backgroundImage)return Q?A.backgroundImageDark:A.backgroundImage};
_.d.computeLogo=function(A,Q){if(A&&A.logo)return Q?A.logoDark:A.logo};
_.d.computeShouldShowModernIcon=function(A,Q){return A&&!!Q};
_.d.getLogoContainerClassName=function(A){return this.logoWithPadding(A)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.d.getLogoImageId=function(A){return this.logoWithPadding(A)?"mealbar-logo-with-padding":"mealbar-logo"};
_.d.logoWithPadding=function(A){var Q,b,f;return(A=(Q=this.computeLogo(A,this.isDarkTheme))==null?void 0:(b=Q.thumbnails)==null?void 0:(f=b[0])==null?void 0:f.height)&&A%31===0?!0:!1};
Hs.prototype.onThumbnailLoaded=Hs.prototype.onThumbnailLoaded;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.E([_.C({}),_.c("design:type",Object)],Hs.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.c("design:type",Boolean)],Hs.prototype,"modern",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Hs.prototype,"isDarkTheme",void 0);
_.E([_.C({computed:"computeIcon(data, isDarkTheme)"}),_.c("design:type",Object)],Hs.prototype,"icon",void 0);_.E([_.C({computed:"computeLogo(data, isDarkTheme)"}),_.c("design:type",Object)],Hs.prototype,"logo",void 0);_.E([_.C({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.c("design:type",Object)],Hs.prototype,"backgroundStyle",void 0);_.E([_.C({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.c("design:type",Object)],Hs.prototype,"alternateIcon",void 0);
_.E([_.C({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.c("design:type",Boolean)],Hs.prototype,"hasFullHeightImage",void 0);_.E([_.C({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.c("design:type",Boolean)],Hs.prototype,"useYoutubeSans",void 0);_.E([_.C({computed:"computeShouldShowModernIcon(modern, icon)"}),_.c("design:type",Boolean)],Hs.prototype,"shouldShowModernIcon",void 0);
_.E([_.Kc("yt-img-shadow-loaded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Hs.prototype,"onThumbnailLoaded",null);_.E([_.Ec({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Hs);
_.W(Hs,"yt-mealbar-promo-renderer",function(){if(OXq===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;VXq===void 0&&(VXq=document.createElement("template"));var f=VXq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);OXq=A}A=OXq;return A},{mode:2});var nax;var k3x;var Cy=function(){return _.q.apply(this,arguments)||this};
_.O(Cy,_.q);_.d=Cy.prototype;_.d.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]]"}}}}}};
_.d.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.acceptButton)};
_.d.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.d.observeImpressionEndpoints_=function(){var A=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.X5(A.hostElement,[Q])})};
_.d.onTap_=function(){_.pD(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Cy.prototype.observeImpressionEndpoints_=Cy.prototype.observeImpressionEndpoints_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],Cy.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Cy.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],Cy.prototype,"positionType",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.c("design:type",Boolean)],Cy.prototype,"hasButtons_",void 0);_.E([_.C({value:function(){return this.onTap_.bind(this)}}),
_.c("design:type",Function)],Cy.prototype,"boundOnTap_",void 0);_.E([_.C({value:{style:"mono-inverse"}}),_.c("design:type",Object)],Cy.prototype,"buttonOverride",void 0);_.E([_.iN("data.promoConfig.impressionEndpoints"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Cy.prototype,"observeImpressionEndpoints_",null);_.E([_.Ec({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Cy);
_.W(Cy,"yt-tooltip-renderer",function(){if(k3x===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;nax===void 0&&(nax=document.createElement("template"));var f=nax;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);k3x=A}A=k3x;return A},{mode:2});var IAK;var HXq;var CRM={},qaF=(CRM.WEB_REMIX="music.youtube.com",CRM),qh=function(){var A=_.q.apply(this,arguments)||this;A.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return A};
_.O(qh,_.q);_.d=qh.prototype;_.d.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.created=function(){this.embedHost_=qaF[_.vG("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.d.ready=function(){_.Bj(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.d.computeEmbedCode_=function(A,Q,b,f,a){if(!A)return"";var T=A.videoId,G=A.fullListId,p=[];A.attributionId&&p.push("si="+A.attributionId);f||p.push("controls=0");b&&Number(Q)>0&&p.push("start="+Q);G&&(T="videoseries",p.push("list="+G));b="https://"+(a?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+T;A.clipId&&(p.push("clip="+A.clipId),p.push("clipt="+A.clipTiming));Q=p.length>0?b+"?"+p.join("&amp;"):b;A.encryptedEmbedConfig&&p.push("embed_config="+JSON.stringify({enc:A.encryptedEmbedConfig}));
p=p.length>0?b+"?"+p.join("&amp;"):b;_.K("web_sharing_embed_preview_killswitch")?_.Bj(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(p,A.previewWidth||854,A.previewHeight||480):(_.gh(this.videoPreviewContainer),_.Bj(this.videoPreviewContainer).appendChild(this.buildIframeElement(p)));return this.getEmbedCode_(Q,A.width||560,A.height||315)};
_.d.buildIframeElement=function(A){var Q=document.createElement("iframe"),b,f;Q.width=""+((f=(b=this.data)==null?void 0:b.previewWidth)!=null?f:854);var a,T;Q.height=""+((T=(a=this.data)==null?void 0:a.previewHeight)!=null?T:480);_.TiC(Q,2,A);Q.title="YouTube video player";Q.frameBorder="0";Q.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";Q.referrerPolicy="strict-origin-when-cross-origin";Q.allowFullscreen=!0;return Q};
_.d.computeIsSquareAspectRatio_=function(A){return A.previewHeight&&A.previewWidth?A.previewHeight==A.previewWidth:!1};
_.d.computeShowEmbedOptions_=function(A){return!!A.enablePrivacyModeOptionLabel||!!A.showPlayerControlsOptionLabel};
_.d.getEmbedCode_=function(A,Q,b){return'<iframe width="'+Q+'" height="'+b+'" src="'+A+'" 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>'};
_.d.handleSignalActionCopyShareEmbedUrl_=function(){_.Bj(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.d.handleSetTimestamp_=function(A){this.startAtTimeStamp_=(this.startAtChecked_=A.isSet)?A.timestamp:0};
_.d.closePanel_=function(){_.pD(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.d.onEmbedCode_=function(){_.Bj(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.d.onYtPopupClosed_=function(){_.gh(_.Bj(this.hostElement).querySelector("#video-preview"))};
_.d.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.V(this.data.actionButtons[0],_.wE)&&this.ytRendererBehavior.logExplicitClick(_.V(this.data.actionButtons[0],_.wE))};
qh.prototype.onYtPopupClosed_=qh.prototype.onYtPopupClosed_;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],qh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],qh.prototype,"data",void 0);
_.E([_.C({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.c("design:type",String)],qh.prototype,"embedCode_",void 0);_.E([_.C({value:!0}),_.c("design:type",Boolean)],qh.prototype,"isPlayerControlsOptionChecked_",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],qh.prototype,"isPrivacyModeOptionChecked_",void 0);_.E([_.C({value:!1,notify:!0}),_.c("design:type",Boolean)],qh.prototype,"startAtChecked_",void 0);
_.E([_.C({value:0}),_.c("design:type",Number)],qh.prototype,"startAtTimeStamp_",void 0);_.E([_.C({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],qh.prototype,"isSquareAspectRatio_",void 0);_.E([_.V1("#video-preview"),_.c("design:type",HTMLElement)],qh.prototype,"videoPreviewContainer",void 0);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],qh.prototype,"onYtPopupClosed_",null);
_.E([_.Ec({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],qh);
_.W(qh,"yt-sharing-embed-renderer",function(){if(HXq===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;IAK===void 0&&(IAK=document.createElement("template"));var f=IAK;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);HXq=A}A=HXq;return A},{mode:2});var oas={};
oas.YtUnlimitedFamilyInterstitialBehavior=[_.n3.YtOpenPopupBehavior,_.PJ.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(A){A=_.pdL(_.Au(A),"yt-button-renderer");return A?A.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(A){this.dialogHistory_.push(A)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var A=this.popFromHistory();if(A){var Q={openPopupAction:{popupType:"DIALOG",popup:{}}};Q.openPopupAction.popup[A.renderer]=A.data;this.showingPreviousDialog_=!0;this.openPopup(Q)}},
handleOpenPopupAction_:function(A){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var Q=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(f){return!!A.openPopupAction.popup[f]}),b=this.getElementName_();
Q&&this.data&&(this.pushToHistory({renderer:b,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(A){if(A=_.V(A,pJn))this.loading=!0,_.pD(this.hostElement,"yt-open-create-family-dialog",[A,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var A=this.hostElement.nodeName.split("-").slice(1).map(function(Q){return""+Q[0].toUpperCase()+Q.slice(1).toLowerCase()}).join("");
return A[0].toLowerCase()+A.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var tXF;var rAn;var oG=function(){return _.q.apply(this,arguments)||this};
_.O(oG,_.q);_.d=oG.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.pD(this.hostElement,"yt-register-create-family-dialog");_.Bj(this.hostElement).querySelector("#thumbnail").onShow()};
_.d.fireOnCloseCommand_=function(){var A;((A=this.data)==null?0:A.onCloseCommand)&&_.ST(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.d.onYtServiceRequestSent_=function(A,Q){Q&&Q.endpoint&&_.V(Q.endpoint,_.li)||(this.loading=!0)};
_.d.onYtServiceRequestCompleted_=function(){var A=this.hostElement.parentElement;A.close&&A.close();this.loading=!1};
_.d.openPopupHandler_=function(A){if(A.detail==this){var Q;((Q=this.data)==null?0:Q.onOpenCommands)&&_.ST(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.d.closePopupHandler_=function(A,Q){this.fireOnCloseCommand_();if(Q&&Q.canceled===!0||Q&&Q.canceled===!1&&Q.confirmed===!1){var b;((b=this.data)==null?0:b.onDismissCommands)&&_.ST(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.d.dataChanged_=function(){this.loading=!1};
oG.prototype.dataChanged_=oG.prototype.dataChanged_;oG.prototype.closePopupHandler_=oG.prototype.closePopupHandler_;oG.prototype.openPopupHandler_=oG.prototype.openPopupHandler_;oG.prototype.onYtServiceRequestCompleted_=oG.prototype.onYtServiceRequestCompleted_;oG.prototype.onYtServiceRequestSent_=oG.prototype.onYtServiceRequestSent_;_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],oG.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(oas.YtUnlimitedFamilyInterstitialBehavior),_.c("design:type",Object)],oG.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],oG.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],oG.prototype,"loading",void 0);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],oG.prototype,"onYtServiceRequestSent_",null);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],oG.prototype,"onYtServiceRequestCompleted_",null);
_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],oG.prototype,"openPopupHandler_",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],oG.prototype,"closePopupHandler_",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],oG.prototype,"dataChanged_",null);
_.E([_.Ec({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],oG);
_.W(oG,"yt-unlimited-family-message-interstitial-renderer",function(){if(rAn===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;tXF===void 0&&(tXF=document.createElement("template"));var f=tXF;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);rAn=A}A=rAn;return A},{mode:2});var jfN;var RwN;var tG=function(){return _.q.apply(this,arguments)||this};
_.O(tG,_.q);tG.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"}}}};
tG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Bj(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(A){A.onShow()});
_.Bj(this.hostElement).querySelector("#main-thumbnail").onShow()};
tG.prototype.onButtonTap_=function(A){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(A)};
tG.prototype.computeMainThumbnailWidth_=function(A){return A&&A.length!==0?72:96};
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.E([_.I(oas.YtUnlimitedFamilyInterstitialBehavior),_.c("design:type",Object)],tG.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],tG.prototype,"data",void 0);
_.E([_.C({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.c("design:type",Number)],tG.prototype,"mainThumbnailWidth_",void 0);_.E([_.C({value:function(){return this.onButtonTap_.bind(this)}}),
_.c("design:type",Function)],tG.prototype,"boundButtonTap_",void 0);_.E([_.Ec({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],tG);
_.W(tG,"yt-unlimited-family-profile-interstitial-renderer",function(){if(RwN===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;jfN===void 0&&(jfN=document.createElement("template"));var f=jfN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);RwN=A}A=RwN;return A},{mode:2});var gaq;var ews;var rp=function(){var A=_.q.apply(this,arguments)||this;A.sliderAriaValueText_=null;A.selectedIndex_=0;A.messages={PAUSE_SLIDER:_.JQ("PAUSE_SLIDER",void 0,"Pause Duration")};return A};
_.O(rp,_.q);_.d=rp.prototype;_.d.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_]]"}}}}}};
_.d.onPopupOpened_=function(A){A.detail==this&&_.K("enable_premium_voluntary_pause")&&(_.pD(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.setDialogData=function(A){this.data=A;this.resetSlider_()};
_.d.dataChanged_=function(){this.data&&this.resetSlider_()};
_.d.onSubmitTap_=function(){if(this.data.confirmCommand){var A=this.data.confirmCommand;_.V(A,_.VqN)&&_.X5(this.hostElement,[A,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.d.onExitButtonTap_=function(){_.pD(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.d.closePopupHandler_=function(A,Q){(Q&&Q.canceled===!0||Q.canceled===!1&&Q.confirmed===!1)&&this.handleOnDismissCommands_()};
_.d.onSliderChange_=function(){this.selectedIndex_=_.Bj(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.d.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.d.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.d.resetSlider_=function(){if(this.data){var A=this.data.defaultEndOptionIndex||0,Q=_.Bj(this.hostElement).querySelector("#id-pause-slider");if(Q.immediateValue<A)for(;Q.immediateValue!=A;)Q.increment();else if(A<Q.immediateValue)for(;Q.immediateValue!=A;)Q.decrement();this.selectedIndex_=A;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.d.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.ST(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.d.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.ST(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestSent=function(){this.loading=!0};
_.d.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
rp.prototype.onYtServiceRequestCompleted=rp.prototype.onYtServiceRequestCompleted;rp.prototype.onYtServiceRequestSent=rp.prototype.onYtServiceRequestSent;rp.prototype.closePopupHandler_=rp.prototype.closePopupHandler_;rp.prototype.dataChanged_=rp.prototype.dataChanged_;rp.prototype.onPopupOpened_=rp.prototype.onPopupOpened_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],rp.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],rp.prototype,"loading",void 0);_.E([_.C(),_.c("design:type",Number)],rp.prototype,"selectIndexMax_",void 0);_.E([_.C(),_.c("design:type",Object)],rp.prototype,"selectedData_",void 0);
_.E([_.C(),_.c("design:type",Object)],rp.prototype,"sliderAriaValueText_",void 0);_.E([_.C({value:function(){return this.onSubmitTap_.bind(this)}}),
_.c("design:type",Function)],rp.prototype,"onButtonTap_",void 0);_.E([_.C({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.c("design:type",Function)],rp.prototype,"onSecondaryTap_",void 0);_.E([_.C(),_.c("design:type",Object)],rp.prototype,"messages",void 0);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],rp.prototype,"onPopupOpened_",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],rp.prototype,"dataChanged_",null);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],rp.prototype,"closePopupHandler_",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],rp.prototype,"onYtServiceRequestSent",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],rp.prototype,"onYtServiceRequestCompleted",null);_.E([_.Ec({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],rp);
_.W(rp,"yt-unplugged-pause-membership-dialog-renderer",function(){if(ews===void 0){var A=document.createElement("template");_.k(A,'\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>');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;gaq===void 0&&(gaq=document.createElement("template"));var f=gaq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ews=A}A=ews;return A},{mode:2});var hwN;var Whd;var jD=function(){return _.q.apply(this,arguments)||this};
_.O(jD,_.q);jD.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.cz("vcBalanceRenderer")}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],jD.prototype,"data",void 0);_.E([_.Ec({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],jD);
_.W(jD,"yt-vc-offer-layout-header-renderer",function(){if(Whd===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;hwN===void 0&&(hwN=document.createElement("template"));var f=hwN;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Whd=A}A=Whd;return A},{mode:2});var vaq;var Eas;var xmq;var cAF;var RG=function(){return _.q.apply(this,arguments)||this};
_.O(RG,_.q);RG.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Qr.Object.defineProperties(RG.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.erK.YtTappableItemBehavior),_.c("design:type",Object)],RG.prototype,"ytTappableItemBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],RG.prototype,"data",void 0);
_.E([_.C({reflectToAttribute:!0}),_.H("data.accessibilityText"),_.c("design:type",String),_.c("design:paramtypes",[])],RG.prototype,"ariaLabel",null);_.E([_.C({reflectToAttribute:!0}),_.H("data.style"),_.c("design:type",String),_.c("design:paramtypes",[])],RG.prototype,"vcOfferStyle",null);_.E([_.H("data.style","data.titleText"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],RG.prototype,"showTitleText",null);_.E([_.Ec({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],RG);
_.W(RG,"yt-vc-offer-renderer",function(){if(cAF===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;xmq===void 0&&(xmq=document.createElement("template"));var f=xmq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);cAF=A}A=cAF;return A},{mode:2});var gp=function(){return _.q.apply(this,arguments)||this};
_.O(gp,_.q);gp.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],gp.prototype,"data",void 0);_.E([_.Ec({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],gp);
_.W(gp,"yt-vc-offer-layout-renderer",function(){if(Eas===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;vaq===void 0&&(vaq=document.createElement("template"));var f=vaq;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);Eas=A}A=Eas;return A},{mode:2});var zw7;var wfq;var uBM;var ZXK;var eD=function(){return _.q.apply(this,arguments)||this};
_.O(eD,_.q);eD.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],eD.prototype,"data",void 0);_.E([_.Ec({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],eD);
_.W(eD,"yt-ypc-offers-modal-top-bar-renderer",function(){if(ZXK===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;uBM===void 0&&(uBM=document.createElement("template"));var f=uBM;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);ZXK=A}A=ZXK;return A},{mode:2});var hG=function(){return _.q.apply(this,arguments)||this};
_.O(hG,_.q);hG.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"}}}}};
hG.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
hG.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var A=this.scrollable;A.attached&&typeof A.attached==="function"&&A.attached()};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.V1("#scrollable"),_.c("design:type",Object)],hG.prototype,"scrollable",void 0);_.E([_.C(),_.c("design:type",Object)],hG.prototype,"data",void 0);_.E([_.Ec({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],hG);
_.W(hG,"yt-ypc-offers-modal-renderer",function(){if(wfq===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;zw7===void 0&&(zw7=document.createElement("template"));var f=zw7;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);wfq=A}A=wfq;return A},{mode:2});var yAr;var YaF;var Ws=function(){return _.q.apply(this,arguments)||this};
_.O(Ws,_.q);_.d=Ws.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Bj(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.d.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.pD(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.d.onYtPopupOpened_=function(A,Q){(Q==null?void 0:Q.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.ST(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.d.onYtPopupClosed_=function(A,Q){this.continueButtonTapped||Q&&(Q.canceled===!0||Q.canceled===!1&&Q.confirmed===!1)&&this.data.onDismissCommands&&_.ST(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestError_=function(A){this.set("showSpinner",!1);_.bp(this.hostElement,A.detail.error.message)};
_.d.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.K("enable_ypc_spinners")?_.pD(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Ws.prototype.onYtServiceRequestError_=Ws.prototype.onYtServiceRequestError_;Ws.prototype.onYtPopupClosed_=Ws.prototype.onYtPopupClosed_;Ws.prototype.onYtPopupOpened_=Ws.prototype.onYtPopupOpened_;Ws.prototype.onYtServiceRequestCompleted_=Ws.prototype.onYtServiceRequestCompleted_;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.C(),_.c("design:type",Object)],Ws.prototype,"data",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Ws.prototype,"showSpinner",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Ws.prototype,"continueButtonTapped",void 0);_.E([_.C({value:function(){return this.onContinueTapped_.bind(this)}}),
_.c("design:type",Function)],Ws.prototype,"bindOnContinueTapped_",void 0);_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ws.prototype,"onYtServiceRequestCompleted_",null);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],Ws.prototype,"onYtPopupOpened_",null);
_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],Ws.prototype,"onYtPopupClosed_",null);_.E([_.Kc("yt-service-request-error"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ws.prototype,"onYtServiceRequestError_",null);_.E([_.Ec({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Ws);
_.W(Ws,"yt-ypc-upgrade-dialog-renderer",function(){if(YaF===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;yAr===void 0&&(yAr=document.createElement("template"));var f=yAr;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);YaF=A}A=YaF;return A},{mode:2});var Dmt;var $mr;var vs=function(){return _.q.apply(this,arguments)||this};
_.O(vs,_.q);vs.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
vs.prototype.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.confirmButton)};
vs.prototype.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],vs.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],vs.prototype,"data",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],vs.prototype,"positionType",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.c("design:type",Boolean)],vs.prototype,"hasButtons_",void 0);_.E([_.C({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.c("design:type",Boolean)],vs.prototype,"style_",void 0);_.E([_.Ec({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],vs);
_.W(vs,"yt-bubble-hint-renderer",function(){if($mr===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Dmt===void 0&&(Dmt=document.createElement("template"));var f=Dmt;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);$mr=A}A=$mr;return A},{mode:2});var NDl;var sfq;var Ed=function(){var A=_.bh.apply(this,arguments)||this;A.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return A};
_.O(Ed,_.bh);_.d=Ed.prototype;_.d.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.d.attached=function(){var A=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){A.$.thumbnail.onShow();A.$["header-image"].onShow()})};
_.d.handleCheckBoxUpdateAction_=function(A){this.canShowCheckboxEnabledConfirmButton=A};
_.d.computeUseOverlayForSpinner_=function(A,Q){return!!A&&Q};
_.d.computeShowSpinner_=function(A,Q){return A||!!Q};
_.d.fireOnCloseActions_=function(){var A,Q=_.F(((A=this.data)==null?void 0:A.onClosedActions)||[]);for(A=Q.next();!A.done;A=Q.next())this.ytRendererBehavior.resolveCommand(A.value)};
_.d.fireOnOpenCommands_=function(A){var Q,b=(Q=this.data)==null?void 0:Q.onOpenCommands;if(b)for(A.stopImmediatePropagation(),A=_.F(b),Q=A.next();!Q.done;Q=A.next())this.ytRendererBehavior.resolveCommand(Q.value)};
_.d.fireOnDismissCommands_=function(A){var Q,b=(Q=this.data)==null?void 0:Q.onDismissCommands;if(b)for(A.stopImmediatePropagation(),A=_.F(b),Q=A.next();!Q.done;Q=A.next())this.ytRendererBehavior.resolveCommand(Q.value)};
_.d.openPopupHandler_=function(A){A.detail==this&&this.fireOnOpenCommands_(A)};
_.d.closePopupHandler_=function(A,Q){_.Pn(this,"yt-confirm-dialog-close-action",[Q]);this.fireOnCloseActions_();(Q&&Q.canceled===!0||Q&&Q.canceled===!1&&Q.confirmed===!1)&&this.fireOnDismissCommands_(A)};
_.d.onHeaderImageChanged_=function(){var A;((A=this.data)==null?0:A.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.d.computeHasHeaderImageWidth_=function(A){return A!=void 0};
_.d.computeHasLoadingMessage=function(A){return!!A};
_.d.onHeaderImageWidthChanged_=function(){var A,Q=(A=this.data)==null?void 0:A.headerImageWidth;if(Q){if(A=1.25*Q*2+Q,this.$.main.style.width=A+"px",Q=this.$.scroller.firstElementChild)Q.style.minWidth=A+"px"}else this.$.main.style.width="100%"};
_.d.onThumbnailChanged_=function(){var A;((A=this.data)==null?0:A.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")};
_.d.onYtNavigate_=function(A){A=_.Au(A);A instanceof Node&&_.pc(this.$["confirm-button"]).contains(A)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.d.computePrimaryIsCancel_=function(A){return A};
_.d.computeIsCancelButtonHidden_=function(A){return A.skipCancelButton||!A.cancelButton};
_.d.computeIsCheckboxHidden_=function(A){return!A.checkbox};
_.d.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.d.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.d.onYtServiceRequestCompleted_=function(){var A;((A=this.data)==null?0:A.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Qr.Object.defineProperties(Ed,{template:{configurable:!0,enumerable:!0,get:function(){if(sfq===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;NDl===void 0&&(NDl=document.createElement("template"));var f=NDl;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);sfq=A}A=sfq;return A}}});
Ed.prototype.onYtServiceRequestCompleted_=Ed.prototype.onYtServiceRequestCompleted_;Ed.prototype.onYtServiceRequestSent_=Ed.prototype.onYtServiceRequestSent_;Ed.prototype.onThumbnailLoaded_=Ed.prototype.onThumbnailLoaded_;Ed.prototype.onYtNavigate_=Ed.prototype.onYtNavigate_;Ed.prototype.onThumbnailChanged_=Ed.prototype.onThumbnailChanged_;Ed.prototype.onHeaderImageWidthChanged_=Ed.prototype.onHeaderImageWidthChanged_;Ed.prototype.onHeaderImageChanged_=Ed.prototype.onHeaderImageChanged_;
Ed.prototype.closePopupHandler_=Ed.prototype.closePopupHandler_;Ed.prototype.openPopupHandler_=Ed.prototype.openPopupHandler_;_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],Ed.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);
_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],Ed.prototype,"ytEventForwardingBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],Ed.prototype,"data",void 0);_.E([_.C({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.c("design:type",Boolean)],Ed.prototype,"primaryIsCancel",void 0);_.E([_.C({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.c("design:type",Boolean)],Ed.prototype,"isCancelButtonHidden",void 0);
_.E([_.C({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.c("design:type",Boolean)],Ed.prototype,"isCheckboxHidden",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],Ed.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.E([_.C({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.c("design:type",Boolean)],Ed.prototype,"useOverlayForSpinner_",void 0);
_.E([_.C({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.c("design:type",Boolean)],Ed.prototype,"showSpinner_",void 0);_.E([_.C({value:!1}),_.c("design:type",Boolean)],Ed.prototype,"isActionInProgress_",void 0);_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.c("design:type",Boolean)],Ed.prototype,"hasHeaderImageWidth_",void 0);
_.E([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.c("design:type",Boolean)],Ed.prototype,"hasLoadingMessage",void 0);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],Ed.prototype,"openPopupHandler_",null);_.E([_.Kc("yt-popup-closed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],Ed.prototype,"closePopupHandler_",null);
_.E([_.iN("data.headerImage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ed.prototype,"onHeaderImageChanged_",null);_.E([_.iN("data.headerImageWidth"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ed.prototype,"onHeaderImageWidthChanged_",null);_.E([_.iN("data.thumbnail"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ed.prototype,"onThumbnailChanged_",null);
_.E([_.Kc("yt-navigate"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],Ed.prototype,"onYtNavigate_",null);_.E([_.Kc("yt-img-shadow-loaded"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],Ed.prototype,"onThumbnailLoaded_",null);_.E([_.Kc("yt-service-request-sent"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.$o]),_.c("design:returntype")],Ed.prototype,"onYtServiceRequestSent_",null);
_.E([_.Kc("yt-service-request-completed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,_.a$]),_.c("design:returntype")],Ed.prototype,"onYtServiceRequestCompleted_",null);_.E([_.Ec({is:"yt-confirm-dialog-renderer",noInjection:!0})],Ed);var mmF;var A0x;var xF=function(){return _.q.apply(this,arguments)||this};
_.O(xF,_.q);xF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Bj(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
xF.prototype.computeConfirmButton_=function(A){var Q={text:A.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};A.confirmNavigationEndpoint?Q.navigationEndpoint=A.confirmNavigationEndpoint:A.confirmServiceEndpoint&&(Q.serviceEndpoint=A.confirmServiceEndpoint);return Q};
xF.prototype.computeShowTitle_=function(A){return!(A==null||!A.title)};
_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],xF.prototype,"data",void 0);_.E([_.C({computed:"computeShowTitle_(data)"}),_.c("design:type",Boolean)],xF.prototype,"showTitle",void 0);_.E([_.Ec({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],xF);
_.W(xF,"yt-fancy-dismissible-dialog-renderer",function(){if(A0x===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;mmF===void 0&&(mmF=document.createElement("template"));var f=mmF;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);A0x=A}A=A0x;return A});var Qq7;var bCN;var cs=function(){var A=_.q.apply(this,arguments)||this;A.spinnerActive=!1;return A};
_.O(cs,_.q);cs.prototype.created=function(){JyN(2201)};
cs.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
cs.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
cs.prototype.onIronOverlayClosed=cs.prototype.onIronOverlayClosed;cs.prototype.onIronOverlayOpened=cs.prototype.onIronOverlayOpened;_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.$t),_.c("design:type",Object)],cs.prototype,"tpYtIronOverlayBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],cs.prototype,"data",void 0);_.E([_.C(),_.c("design:type",Object)],cs.prototype,"spinnerActive",void 0);
_.E([_.Kc("iron-overlay-opened"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cs.prototype,"onIronOverlayOpened",null);_.E([_.Kc("iron-overlay-closed"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],cs.prototype,"onIronOverlayClosed",null);_.E([_.Ec({is:"yt-loading-renderer",disableElementRegistration:!0})],cs);
_.W(cs,"yt-loading-renderer",function(){if(bCN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Qq7===void 0&&(Qq7=document.createElement("template"));var f=Qq7;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);bCN=A}A=bCN;return A},{mode:2});var fMr;var aMF;var zR=function(){var A=_.q.apply(this,arguments)||this;A.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);A.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);A.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.O(zR,_.q);_.d=zR.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.d.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.d.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.d.openPopupHandler_=function(A){A.detail===this.hostElement&&this.hostElement.hidden&&_.pD(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.d.onDismissButtonTap_=function(){var A;this.closeOnDismissButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.pD(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.d.onAcceptButtonTap_=function(){var A;this.closeOnAcceptButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.pD(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.d.computeHasHeader_=function(A){return!!A.headerBackgroundImage};
_.d.computeLayoutStyle_=function(A){return A};
_.d.computePopupSize_=function(A){return A};
_.d.computeIconType_=function(A){return A.dialogIcon&&A.dialogIcon.iconType?A.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":A.dialogIcon.iconType:""};
_.d.computeIsLogo_=function(A){return!!A.dialogIcon&&!!A.dialogIcon.iconType&&(A.dialogIcon.iconType==="YOUTUBE_LOGO"||A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||A.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.d.computeHasCustomLogo=function(A){return!(A==null||!A.headerForegroundImage)};
_.d.computeCustomLogo=function(A,Q){if(A!=null&&A.headerForegroundImage)return A.headerForegroundImageDark?Q?A.headerForegroundImageDark:A.headerForegroundImage:A.headerForegroundImage};
_.d.computeHeaderBackgroundImage=function(A,Q){if(A!=null&&A.headerBackgroundImage)return Q&&(A==null?0:A.headerBackgroundImageDark)?A.headerBackgroundImageDark:A.headerBackgroundImage};
_.d.shouldShowIconContainer=function(A,Q){return A&&!Q};
_.d.shouldShowNonYouTubeIcon=function(A,Q){return!A&&!Q};
_.d.getLogoImageId=function(A){var Q,b,f;return(A=(Q=this.computeCustomLogo(A,this.isDarkTheme))==null?void 0:(b=Q.thumbnails)==null?void 0:(f=b[0])==null?void 0:f.height)&&A%31===0?"custom-logo-with-padding":"custom-logo"};
zR.prototype.openPopupHandler_=zR.prototype.openPopupHandler_;zR.prototype.dataChanged_=zR.prototype.dataChanged_;_.E([_.I(_.p3.YtRendererstamperBehavior),_.c("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.E([_.C(),_.c("design:type",Boolean)],zR.prototype,"isDarkTheme",void 0);
_.E([_.C({computed:"computeCustomLogo(data, isDarkTheme)"}),_.c("design:type",Object)],zR.prototype,"customLogo",void 0);_.E([_.C({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.c("design:type",Object)],zR.prototype,"headerBackgroundImage",void 0);_.E([_.C(),_.c("design:type",Object)],zR.prototype,"data",void 0);_.E([_.C({computed:"computeHasHeader_(data)"}),_.c("design:type",Boolean)],zR.prototype,"hasHeader",void 0);
_.E([_.C({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.c("design:type",Object)],zR.prototype,"layoutStyle",void 0);_.E([_.C({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.c("design:type",Object)],zR.prototype,"popupSize",void 0);_.E([_.C({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],zR.prototype,"hasLogo",void 0);
_.E([_.C({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.c("design:type",Boolean)],zR.prototype,"hasCustomLogo",void 0);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],zR.prototype,"dataChanged_",null);_.E([_.Kc("yt-popup-opened"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],zR.prototype,"openPopupHandler_",null);
_.E([_.Ec({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],zR);
_.W(zR,"yt-upsell-dialog-renderer",function(){if(aMF===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;fMr===void 0&&(fMr=document.createElement("template"));var f=fMr;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);aMF=A}A=aMF;return A},{mode:2});var Tft=_.aP(function(A){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.X(_.S,{cond:A.title,then:function(Q){return _.X("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},Q)}}))},"Lg"),dSs=_.aP(function(A){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.X(_.WL,{data:A.closeButton},{buttonViewModel:function(Q){return _.X("div",null,_.X(_.J9,{data:Q.data}))}}))},"Mg"),FYt=_.aP(function(A){var Q=
A.data;
return _.X(_.bd,null,_.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.X(_.S,{cond:function(){return!!Q().image&&!!Q().title},
then:function(){return _.X(_.aY,{data:function(){return Q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.X(_.S,{cond:function(){return Q().title},
then:function(b){return _.X("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},b)}}),_.X(_.S,{cond:function(){return Q().primaryGenre},
then:function(b){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},b)}}))),_.X(_.S,{cond:function(){var b=Q().description;
return b&&b.length<=150},
then:function(){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return Q().description}))}}))},"Ng"),GKs=_.aP(function(A){A=A.infoRows;
var Q=_.fJ().resolve(_.mh),b=_.K("enable_displaying_ppn");return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.X(_.Op,{each:A},function(f){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.X(_.S,{cond:function(){return f.label},
then:function(a){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},a)}}),_.X(_.S,{cond:function(){return f.attributedLabel},
then:function(a){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.X(_.Rb,{text:a,noPreWrap:!0}))}}),_.X(_.S,{cond:function(){return f.value},
then:function(a){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},a)}}),_.X(_.S,{cond:function(){return f.attributedValue},
then:function(a){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.X(_.Rb,{text:a,noPreWrap:!0}))}}))}),_.X(_.S,{cond:function(){return b&&Q.clientData.has("post_play_nonce")},
then:function(){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},Q.getData("post_play_nonce")))}}))},"Og"),Bfq=_.aP(function(A){var Q=A.data;
return _.X("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.X(Tft,{title:function(){return Q().dialogTitle}}),_.X(FYt,{data:Q}),_.X(_.S,{cond:function(){return Q().infoRow},
then:function(b){return _.X(GKs,{infoRows:b})}}),_.X(dSs,{closeButton:function(){return Q().closeButton}}))},"Pg");
Bfq.idomCompat=!0;_.pE(Bfq,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;return _.X("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.X(_.aY,{data:function(){return Q().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.X("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.X("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.X(_.S,{cond:function(){var b=Q().ytLogo;return b?b.iconType:null},
then:function(b){return _.X(_.oY,{icon:b,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.X("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.X("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.X(_.Rb,{text:function(){return Q().title}})),_.X("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.X(_.Rb,{text:function(){return Q().body}})),_.X("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.X(_.Rb,{text:function(){return Q().verifyStateText}}))),
_.X("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.X("div",null,_.X(_.WL,{data:function(){return Q().dismissButton}},{buttonViewModel:_.J9})),_.X("div",null,_.X(_.WL,{data:function(){return Q().linkParentButton}},{buttonViewModel:_.J9})))))},"Qg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Qf}});var pcx=_.aP(function(A){var Q=A.data;A=_.Q0(function(){return Q().agreements},[]);
return _.X("installment-agreements-view-model",{class:_.O4("ytInstallmentAgreementsViewModelHost")},_.X(_.Op,{each:A},function(b){return _.X("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.X("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.X(_.Rb,{text:b.label})),_.X("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.X(_.WL,{data:function(){return b.openButton}},{buttonViewModel:_.J9})))}))},"Rg");
pcx.idomCompat=!0;var Pln=_.aP(function(A){return _.X("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.X(_.Rb,{text:function(){return A.data().inviteMessage}})),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.X(_.Rb,{text:function(){return A.data().attributedAccountSectionHeaderText}})),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.X(_.WL,{data:function(){return A.data().accountAvatar}},{avatarViewModel:_.Wm}),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.X(_.Rb,{text:function(){return A.data().accountName}}),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.X(_.Rb,{text:function(){return A.data().handle}}))),_.X(_.WL,{data:function(){return A.data().trailingButton}},{buttonViewModel:_.J9})),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.X(_.Rb,{text:function(){return A.data().termsOfService}})))},"Sg");var Xc7=_.aP(function(A){var Q=_.F(_.CE(function(){var y,a9;return((y=A.data().createPlaylistDialogFormSchema)==null?0:(a9=y.initialValues)==null?0:a9.title)?A.data().createPlaylistDialogFormSchema.initialValues.title:""})),b=Q.next().value,f=Q.next().value;
Q=_.F(_.CE(function(){A.data();return!1}));
var a=Q.next().value,T=Q.next().value;Q=_.F(_.CE(function(){A.data();return!1}));
var G=Q.next().value,p=Q.next().value;Q=_.F(_.CE(function(){var y,a9;return(y=A.data().createPlaylistDialogFormSchema)==null?void 0:(a9=y.initialValues)==null?void 0:a9.visibility}));
var P=Q.next().value,U=Q.next().value;Q=_.F(_.CE(function(){A.data();return!1}));
var L=Q.next().value,M=Q.next().value;Q=_.F(_.CE(function(){var y,a9;return(y=A.data().createPlaylistDialogFormSchema)==null?void 0:(a9=y.initialValues)==null?void 0:a9.isCollaborative}));
var l=Q.next().value,J=Q.next().value,n=_.st("div");_.H_(function(){var y=n.value.querySelector("textarea");y&&(y.value=b())},"OCauEe");
_.tz(function(){var y;_.Jzt((y=A.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var a9=b();var pF=P(),Ub=l(),Ob=A.data();a9={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:a9,privacyStatus:pF,videoIds:Ob.videoIds,sourcePlaylistId:Ob.sourcePlaylistId,params:Ub?Ob.createPlaylistParamsCollaborationEnabled:Ob.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.fJ().resolve(_.de).resolveCommand(a9)},
isValid:function(){return a()&&!G()&&!L()}})});
var t=function(y){if(y!==void 0&&(f(y),!a()&&y.length>0&&T(!0),a())){var a9=H0M(A.data());if(a9){var pF=a9.minLength;a9=a9.maxLength;pF&&y.length<pF?p(!0):a9&&y.length>a9?p(!0):p(!1)}}},g=function(){var y=!(!l()||P()!=="PRIVATE");
M(y)},e=function(y){y!==void 0&&(U(y),g())},x=function(){if(L())return qGF(A.data())},D=function(){J(!l());
g()},w=function(){return{validate:function(y){if(a()){var a9=H0M(A.data());
if(a9){var pF=a9.minLength;a9=a9.translations;if(pF&&y.length<pF)return a9==null?void 0:a9.minLengthErrorMessage}}}}},u=function(){var y=H0M(A.data()),a9=y==null?void 0:y.maxLength,pF;
y=y==null?void 0:(pF=y.translations)==null?void 0:pF.maxLengthErrorMessage;if(a9&&y)return{maxChars:a9,errorMessage:y}};
return _.X("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.X("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:n},_.X(_.WL,{data:function(){return A.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.X(_.St7,{data:y.data,
text:b,onInput:t,validation:w,characterLimit:u})},
textFieldViewModel:function(y){return _.X(_.Xv7,{data:y.data,text:b,onInput:t,validation:w,characterLimit:u})}})),_.X("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.X(_.WL,{data:function(){return A.data().playlistVisibility}},{dropdownViewModel:function(y){return _.X(_.Ilx,{data:y.data,
onSelected:e,error:x})}})),_.X(_.S,{cond:function(){return!!A.data().playlistCollaborate},
then:function(){return _.X("div",null,_.X(_.WL,{data:function(){return A.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.X(_.xZp,{data:y.data,
onTap:D})}}))}}))},"Tg");var STx=_.aP(function(A){var Q=A.data;return _.X("upsell-offer-table-cell-content-view-model",null,_.X("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.X(_.I8,null,_.X(_.nH,{when:function(){return Q().iconType}},function(){return _.X("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.X(_.oY,{icon:function(){return Q().iconType.toString()}}))}),_.X(_.nH,{when:function(){return Q().title}},function(){return _.X(_.Rb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return Q().title}})}),_.X(_.nH,{when:function(){return Q().subtitle}},function(){return _.X(_.Rb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return Q().subtitle}})}),_.X(_.nH,{when:function(){return Q().infoText}},function(){return _.X(_.Rb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return Q().infoText}})}),_.X(_.nH,{when:function(){return Q().featureDescription}},function(){return _.X(_.Rb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return Q().featureDescription}})}),_.X(_.nH,{when:function(){return Q().note}},function(){return _.X(_.Rb,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return Q().note}})}))))},"Ug");
STx.idomCompat=!0;var USK=_.aP(function(A){var Q=A.data;return _.X("upsell-offer-table-cell-view-model",null,_.X("div",{class:_.O4("ytUpsellOfferTableCellViewModelCellWrapper",function(){return Q().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.X(_.WL,{data:function(){return Q().contents}},{upsellOfferTableCellContentViewModel:STx})))},"Vg");
USK.idomCompat=!0;var LYq=_.aP(function(A){var Q=A.data;var b=A.upsellTableIsFirstRow;var f=function(){return(b==null?0:b())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},a=function(){return(b==null?0:b())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.X("ytm-upsell-offer-table-row-view-model",null,_.X("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.X(_.WL,{data:function(){return Q().rowHeaderCell}},{upsellOfferTableCellViewModel:function(T){return _.X("div",{class:f},_.X(USK,{data:T.data}))}}),_.X(_.WL,{data:function(){return Q().contentCells}},{upsellOfferTableCellViewModel:function(T){return _.X("div",{class:a},_.X(USK,{data:T.data}))}})))},"Wg");
LYq.idomCompat=!0;var MHd=_.aP(function(A){var Q=A.data;return _.X("ytm-upsell-offer-table-view-model",null,_.X("div",{class:"ytUpsellOfferTableViewModelHost"},_.X("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.X(_.WL,{data:function(){return Q().rows}},{upsellOfferTableRowViewModel:function(b,f){return _.X(LYq,{data:b.data,
upsellTableIsFirstRow:function(){return f()===0}})}}))))},"Xg");
MHd.idomCompat=!0;var lMF=_.aP(function(A){var Q=_.Q0(A.noPadding,!1),b=function(){var T,G;return(G=(T=A.data().logo.accessibilityData)==null?void 0:T.label)!=null?G:""},f=function(){return A.data().offerTable},a={};
return _.X("upsell-view-model",{class:_.O4("ytUpsellViewModelHost",(a.ytUpsellViewModelHostNoPadding=function(){return Q()},a.ytUpsellViewModelHostWide=function(){return f()!==void 0},a))},_.X("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.X(_.S,{cond:function(){return _.mm(A.data().logo)},
then:function(T){return _.X(_.aY,{data:T,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:b})}})),_.X("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.X(_.Rb,{text:function(){return A.data().title}})),_.X("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.X(_.Op,{each:function(){var T;
return(T=A.data().subtitles)!=null?T:[]},
keyBy:"INDEX"},function(T){var G={};return _.X("div",{class:_.O4("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(G.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return f()!==void 0},G))},_.X(_.Rb,{text:T}))})),_.X("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.X(_.Op,{each:function(){var T;
return(T=A.data().benefitInfos)!=null?T:[]},
keyBy:"INDEX"},function(T){return _.X(_.S,{cond:function(){return T().info},
then:function(G){return _.X("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.X(_.oY,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.X(_.Rb,{text:G}))}})})),_.X(_.S,{cond:function(){return f()!==void 0},
then:function(){return _.X("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.X(MHd,{data:f}))}}),_.X("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.X(_.Op,{each:function(){var T;
return(T=A.data().legalInfos)!=null?T:[]},
keyBy:"INDEX"},function(T){var G={};return _.X("div",{class:_.O4("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(G.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return f()!==void 0},G))},_.X(_.Rb,{text:T}))})))},"Yg");var KYO=_.aP(function(A){var Q=A.data;A={};A=(A.ytMiniAppScoreChallengeViewModelScoreRadial=!0,A.ytMiniAppScoreChallengeViewModelDarkScoreRadial=oz7(),A);return _.X("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.X("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return Q().title}),_.X("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return Q().subtitle}),_.X("div",{class:_.nE(A)},_.X("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return Q().score})),_.X("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return Q().prompt}))},"Zg");var iCx=function(){this.store=_.m5();this.formId=""};
iCx.prototype.onInit=function(A){A.formId&&(this.formId=A.formId,this.store.dispatch(_.G7({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var J0t=_.aP(function(A){function Q(p){if(p&&(p=_.V(p,_.qI)))return Object.assign({},p,{isSelected:T()})}
var b=_.F(_.CE(function(){var p,P;return(P=(p=_.V(A.data().option,_.qI))==null?void 0:p.isSelected)!=null?P:!1})),f=b.next().value,a=b.next().value,T=f;
_.tz(function(){var p;_.Jzt((p=A.data().formSchema)==null?void 0:p.id,{onSubmit:function(){var P=_.fJ().resolve(_.de),U=!!A.data().selectedCommand,L=!!A.data().unselectedCommand;if(T()){if(U)var M=A.data().selectedCommand}else L&&(M=A.data().unselectedCommand);M=_.ue(M);Q(A.data().option)&&!M?(P="",!U&&L?P="selected ":U&&!L&&(P="unselected "),U=new _.IO("No "+P+"command found for SelectionListItemFormViewModel"),_.en(U)):M&&P.resolveCommand(M)},
isValid:function(){return!0}})});
var G=function(){a(!T())};
_.Cz(function(){var p,P,U=(p=A.data())==null?void 0:(P=p.formSchema)==null?void 0:P.id;U&&_.KRt()().delete(U)});
return _.X("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.X("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.X(_.Rb,{text:function(){return A.data().paragraph}})),_.X(_.S,{cond:function(){return Q(A.data().option)},
then:function(p){return _.X(_.us,{data:p,isCompact:!0,hideSelectionTextChevron:!0,onTap:G,disableHorizontalPadding:!0})}}))},"$g");var VHO=_.aP(function(A){var Q=A.data;var b=A.disablePadding;var f=A.className;var a=_.st("yt-dialog-header-view-model"),T=function(){var p=Q().imageBanner;a:switch(Q().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var P="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:P="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:p,style:P,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},G=function(){return Q().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.tz(function(){var p=function(){_.pD(a.value,"yt-refit-popups-action")},P;
(P=a.value)==null||P.addEventListener("image-loaded",p);_.Cz(function(){var U;(U=a.value)==null||U.removeEventListener("image-loaded",p)})});
A={};return _.X("yt-dialog-header-view-model",{el:a,class:_.O4(f,(A.ytDialogHeaderViewModelHost=!0,A.ytDialogHeaderViewModelHostDisablePadding=b,A))},_.X(_.S,{cond:function(){return Q().imageBanner},
then:function(){var p={};return _.X("div",{class:_.O4(f,(p.ytDialogHeaderViewModelBanner=!0,p.ytDialogHeaderViewModelBannerFullBleed=G,p)),style:_.qM({"max-height":function(){return Q().assetContainerMaxHeight!==void 0?Q().assetContainerMaxHeight+"px":void 0}})},_.X(_.Sv,{data:T,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.X(_.S,{cond:function(){return Q().headerBlock},
then:function(){return _.X("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.X(_.WL,{data:function(){return Q().headerBlock}},{contentPreviewImageViewModel:function(p){return _.X(_.Sv,{data:p.data,
notifyOnLoaded:!0})}}))}}),_.X(_.S,{cond:function(){return Q().customBanner},
then:function(p){return _.X("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.X(_.WL,{data:p},{avatarStackViewModel:_.xK}))}}),_.X(_.S,{cond:function(){return Q().headline},
then:function(p){return _.X("h2",null,_.X(_.Rb,{text:p,className:"ytDialogHeaderViewModelText"}))}}))},"ah");
VHO.idomCompat=!0;var OC7=_.aP(function(A){var Q=_.V6x(function(){return A.data().formId}),b=Q.onSubmit,f=Q.isValid;
return _.X("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.X(_.WL,{data:function(){return A.data().panelFooter}},{panelFooterViewModel:function(a){return _.X(_.Gh,{data:a.data,
disablePadding:!0,disablePrimaryButton:function(){return!f()},
onClickPrimaryButton:function(){b()}})}}))},"bh");var nDx=_.aP(function(A){var Q=function(){var b,f;return(f=(b=_.V(A.data().rendererContext,_.HV))==null?void 0:b.label)!=null?f:""};
return _.X("yt-dialog-image-content-view-model",{class:_.O4("ytDialogImageContentViewModelHost",A.className)},_.X(_.S,{cond:function(){return _.mm(A.data().image)},
then:function(b){return _.X(_.aY,{data:b,alt:Q,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.X(_.Rb,{text:function(){return A.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"ch");var HCq=_.aP(function(A){var Q=_.be(A,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),b=Q.elRefCallback;A=Q.iconWiz;var f=Q.assetWiz,a=Q.assetType,T=Q.titleWiz,G=Q.leadingActionHeaderWiz,p=Q.trailingActionHeaderWiz,P=Q.headerPosition,U=Q.contentWiz,L=Q.buttonLayout,M=Q.buttonStyle,l=Q.primaryButtonWiz,J=Q.secondaryButtonWiz,n=Q.contentAlignment,t=Q.isFullscreen,g=Q.width,e=Q.maxHeight,x=Q.isHeaderWizDefined,
D=Q.headerWiz,w=Q.isFooterWizDefined,u=Q.footerWiz;Q=_.st("dialog-layout",function(h4){b==null||b(h4)});
var y=f?function(){return f({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,a9=l?function(){var h4={};
return l({buttonOverrides:function(){return{style:(M==null?void 0:M())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.O4((h4["yt-spec-dialog-layout__dialog-layout-button"]=!0,h4["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(L==null?void 0:L())===0||(L==null?void 0:L())===2},h4))})}:void 0,pF=J?function(){var h4={};
return J({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.O4((h4["yt-spec-dialog-layout__dialog-layout-button"]=!0,h4["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(L==null?void 0:L())===0||(L==null?void 0:L())===2},h4))})}:void 0,Ub=function(){return(!!T||!!G||!!p)&&P()===0},Ob={},I9={},iy={},wW={};
return _.X("dialog-layout",{el:Q,class:_.O4((Ob["yt-spec-dialog-layout"]=!0,Ob["yt-spec-dialog-layout--dialog-layout-fullscreen"]=t,Ob["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!t()},Ob["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return e()===1},Ob["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(a==null?void 0:a())===1},Ob)),
style:function(){return(g==null?void 0:g())!==void 0?"width: "+g+"px;":""}},A?_.X("div",{class:_.O4((I9["yt-spec-dialog-layout__dialog-layout-icon"]=!0,I9["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!f&&P()===1},I9["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return n()===1},I9))},_.X(A,null)):null,_.X(_.S,{cond:x,
then:function(){return D?_.X("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.X(D,null)):null},
else:function(){return _.X(_.bd,null,_.X(_.S,{cond:Ub,then:function(){return _.X(kKO,{contentAlignment:n,LeadingActionHeader:G,TrailingActionHeader:p,Title:T,isAboveAsset:!!y})}}),y?_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.X(y,null)):null)}}),_.X("div",{class:_.O4((iy["yt-spec-dialog-layout__dialog-layout-container"]=!0,iy["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(n==null?void 0:n())===1},iy["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!T&&!D||!!y&&(P==null?void 0:P())===0},iy))},_.X(_.S,{cond:function(){return T&&!D&&(P==null?void 0:P())===1},
then:function(){return _.X(kKO,{contentAlignment:n,LeadingActionHeader:G,TrailingActionHeader:p,Title:T,isAboveAsset:!1})}}),U?_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.X(U,null))):null,_.X(_.S,{cond:w,
then:function(){return u?_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.X(u,null)):null}}),a9||pF?_.X(IMq,{footerClasses:_.O4((wW["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,wW["yt-spec-dialog-layout__dialog-layout-footer"]=!0,wW["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(L==null?void 0:L())===2},wW["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(L==null?void 0:L())===1},wW)),
PrimaryButton:a9,SecondaryButton:pF}):null))},"dh"),kKO=_.aP(function(A){var Q=_.be(A,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),b=Q.contentAlignment,f=Q.LeadingActionHeader;A=Q.Title;var a=Q.TrailingActionHeader,T=Q.isAboveAsset,G=Q.enableLeadingActionHeader;Q={};return _.X("div",{class:_.O4((Q["yt-spec-dialog-layout__dialog-header-container"]=!0,Q["yt-spec-dialog-layout__dialog-header"]=!0,Q["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=T,Q["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(b==null?void 0:b())===1&&G()},Q))},_.X(_.S,{cond:function(){return G()},
then:function(){return f?_.X("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.X(f,null)):null}}),A?_.X("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.X(A,null)):null,a?_.X("div",null,_.X(a,null)):null)},"eh"),IMq=_.aP(function(A){var Q=A.footerClasses;
var b=A.PrimaryButton;A=A.SecondaryButton;return _.X("div",{class:Q},A?_.X(A,null):null,b?_.X(b,null):null)},"fh");var Clr=_.aP(function(A){var Q=A.data;return _.X("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.X("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.X(_.WL,{data:function(){return Q().avatar}},{avatarViewModel:_.Wm})),_.X("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.Rb,{text:function(){return Q().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"gh");var qTl=_.aP(function(A){var Q=A.data;return _.X("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.X("div",{class:"ytAccessConfirmationViewModelContent"},_.X(_.WL,{data:function(){var b;return(b=Q().avatar)!=null?b:Q().dualAvatar}},{dualAvatarViewModel:function(b){return _.X(_.JUN,{data:b.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(b){return _.X(_.E9,{data:b.data})}}),_.X("h2",{class:"ytAccessConfirmationViewModelTitle"},_.X(_.Rb,{text:function(){return Q().title}})),_.X(_.Rb,{text:function(){return Q().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"hh");var oDn=_.aP(function(A){var Q=A.data;var b=void 0;A=_.F(_.CE(function(){var U;return((U=_.V(Q().content,_.vRN))==null?void 0:U.defaultSelectedKey)||""}));
var f=A.next().value,a=A.next().value,T,G=function(){a("");var U;(U=b)!=null&&U.store.dispatch(_.G7({type:"RESET_COMMAND_MAP"}))};
_.tz(function(){b=new iCx;window.addEventListener("yt-popup-closed",G)});
_.H_(function(){if(b&&T!==Q().formId&&(b.onInit(Q()),(T=Q().formId)&&f())){var U=b,L={key:f()};L.command&&U.store.dispatch(H7x(T,L.command))}},"k6b6Qe");
_.Cz(function(){window.removeEventListener("yt-popup-closed",G)});
var p=function(U,L,M){L.key&&M&&L.key!==f()&&(a(L.key),b&&L.command&&b.store.dispatch(H7x(M,L.command)))},P=function(){if(_.V(Q().content,_.vRN))return!(f==null?0:f())};
return _.X("yt-dialog-view-model",{class:_.O4("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.X(HCq,{headerWiz:function(){return _.X("span",{skip:!0},_.X(_.WL,{data:function(){return Q().header}},{dialogHeaderViewModel:function(U){return _.X(VHO,{data:U.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!Q().header},
contentWiz:function(){return _.X("span",{skip:!0},_.X(_.WL,{data:function(){return Q().customContent?Q().customContent:Q().content}},{basicContentViewModel:_.JMq,
createPlaylistDialogFormViewModel:Xc7,collaborativePlaylistInviteMessageViewModel:Pln,miniAppScoreChallengeViewModel:KYO,radioButtonGroupViewModel:function(U){var L=U.data;return _.X(_.Oux,{data:L,selectedKey:f,onSelected:p,groupName:function(){return L().formId}})},
selectionListItemFormViewModel:J0t,upsellViewModel:function(U){return _.X(lMF,{data:U.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Clr,installmentAgreementsViewModel:pcx,accessConfirmationViewModel:qTl,listViewModel:function(U){return _.X(_.DZy,{data:U.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:nDx}))},
footerWiz:function(){return _.X("span",{skip:!0},_.X(_.WL,{data:function(){return Q().footer}},{panelFooterViewModel:function(U){return _.X(_.Gh,{data:U.data,
disablePadding:!0,disablePrimaryButton:P})},
formPanelFooterViewModel:OC7,formFooterViewModel:function(U){return _.X(_.FSq,{data:U.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!Q().footer}}))},"ih");
oDn.idomCompat=!0;_.pE(oDn,"yt-dialog-view-model",{props:{data:_.Qf},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var tHK=_.aP(function(A){var Q=A.data;A={};return _.X("yt-panel-header-view-model",{class:_.O4("yt-panel-header-view-model-wiz",(A["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!Q().shouldHideDivider},A["yt-panel-header-view-model-wiz--compact"]=function(){return!!Q().subtitle},A))},_.X("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.X(_.S,{cond:function(){return Q().title},
then:function(b){return _.X(_.Rb,{text:b,className:"yt-panel-header-view-model-wiz__title"})}}),_.X(_.S,{cond:function(){return Q().subtitle},
then:function(b){return _.X(_.Rb,{text:b,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.X("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.X(_.WL,{data:function(){return Q().trailingButtons}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"jh");
tHK.idomCompat=!0;var r0q=_.aP(function(A){var Q=_.IY(function(T){var G;if((G=A.skipContentClick)==null?0:G.call(A))return!1;A.onContentWrapperClick(T);return!0}),b,f,a;
return _.X("div",{class:_.O4("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return A.isAnimating()?"transform: translateY("+A.currentY()+"px);transition: 0.2s":""}},(b=A.header)==null?void 0:b.call(A),_.X("div",{id:A.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.qM({"max-height":(0,_.cx)(A.maxHeightForContentWrapper)}),"on:scroll":RUM(A.onScroll),"on:touchmove":RUM(function(T){return void T.stopPropagation()})},_.X("div",{el:{onRender:A.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":Q},(f=A.body)==null?void 0:f.call(A))),(a=A.footer)==null?void 0:a.call(A))},"kh");
r0q.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var jqd=_.aP(function(A){var Q=_.Q0(A.leadingLabel),b=_.Q0(A.trailingLabel),f=_.Q0(A.footerButtonType),a=function(){return Q()||b()||A.hasPrimaryButton()||A.hasSecondaryButton()},T={},G=_.O4("yt-spec-bottom-sheet-layout__primary-button",(T["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return f()===0&&A.hasPrimaryButton()},T["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return f()===1&&A.hasPrimaryButton()},T["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return f()===2&&A.hasPrimaryButton()},T["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return f()===3&&A.hasPrimaryButton()},T));
T={};var p=_.O4("yt-spec-bottom-sheet-layout__secondary-button",(T["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return f()===1&&A.hasSecondaryButton()},T["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return f()===2&&A.hasSecondaryButton()},T["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return f()===3&&A.hasPrimaryButton()},T));
return _.X(_.S,{cond:A.hasFooterOverride,then:function(){var P;return _.X(_.bd,null,(P=A.footerOverride)==null?void 0:P.call(A))},
else:function(){return _.X(_.S,{cond:a,then:function(){return _.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.X(_.S,{cond:function(){return Q()||b()},
then:function(){var P={};return _.X("div",{class:_.O4("yt-spec-bottom-sheet-layout__footer-label-wrapper",(P["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!A.hasPrimaryButton()},P))},_.X(_.S,{cond:Q,
then:function(){return _.X("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},Q)}}),_.X(_.S,{cond:b,
then:function(){return _.X("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},b)}}))}}),_.X(_.S,{cond:function(){return A.hasPrimaryButton()||A.hasSecondaryButton()},
then:function(){var P={};return _.X("div",{class:_.O4("yt-spec-bottom-sheet-layout__footer-button-wrapper",(P["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.zXL,P))},_.X(_.S,{cond:function(){return A.hasSecondaryButton()&&f()!==0},
then:function(){var U;return _.X("div",{class:p},(U=A.secondaryButton)==null?void 0:U.call(A))}}),_.X(_.S,{cond:A.hasPrimaryButton,
then:function(){var U;return _.X("div",{class:G},(U=A.primaryButton)==null?void 0:U.call(A))}}))}}))}})}})},"lh");
jqd.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var R3n=_.aP(function(A){var Q=_.Q0(A.title),b=_.Q0(A.subtitle);return _.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:A.headerId,"on:touchstart":_.IY(function(f){var a;(a=A.touchstart)==null||a.call(A,f);return!1}),
"on:touchmove":_.IY(function(f){var a;(a=A.touchmove)==null||a.call(A,f);return!1}),
"on:touchend":_.IY(function(f){var a;(a=A.touchend)==null||a.call(A,f);return!1})},_.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.X(_.S,{cond:A.hasHeaderOverride,
then:function(){var f;return _.X(_.bd,null,(f=A.headerOverride)==null?void 0:f.call(A))},
else:function(){var f={};return _.X("div",{class:_.O4((f["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,f["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=Q,f))},_.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.X(_.S,{cond:Q,then:function(){return _.X(_.bd,null,_.X("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},Q),_.X(_.S,{cond:b,then:function(){return _.X("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
b)}}))}})),_.X(_.S,{cond:function(){return Q()&&A.hasActionHeader()},
then:function(){var a;return _.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(a=A.actionHeader)==null?void 0:a.call(A))}}))}}))},"mh");
R3n.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.aP(function(A){function Q(y){if(!e&&typeof MutationObserver!=="undefined"){var a9={childList:!0};"MutationObserver"in window&&(e=new MutationObserver(b.bind(void 0,y)),e.observe(y,a9))}}
function b(y){typeof e!=="undefined"&&(x["content-wrapper"]===void 0&&(x["content-wrapper"]=y.children[0].clientHeight),J(x["content-wrapper"]),l()>n()||t(l()))}
function f(){M(window.innerHeight);l()>n()||t(l());D.isFullScreen[0]()&&l()>n()?w().dispatch("Snap To Full Screen",{maxHeight:g()}):w().dispatch("Snap To Neutral Position",{maxHeight:n()})}
function a(y){document.body.style.overscrollBehavior="none";y.preventDefault();w().dispatch("Touch Start",{event:y})}
function T(y){y.preventDefault();w().dispatch("Touch Move",{event:y,contentScrollable:l()>n(),fullContentWrapperHeight:g(),contentWrapperHeight:n(),contentHeightMap:x,contentWrapperId:"content-wrapper",header:eUF(A),footer:eUF(A)})}
function G(){document.body.style.overscrollBehavior="";D.isFullScreen[0]()?D.currentY[0]()>=60?w().dispatch("Snap To Neutral Position",{maxHeight:n()}):w().dispatch("Snap To Full Screen",{maxHeight:g()}):D.currentY[0]()>=60?p():D.currentY[0]()<=-60&&l()>n()?w().dispatch("Snap To Full Screen",{maxHeight:g()}):w().dispatch("Snap To Neutral Position",{maxHeight:n()})}
function p(){w().dispatch("Close Sheet",{clientHeight:L(),maxHeight:0});setTimeout(function(){gz7()},250)}
var P=_.F(_.pz(window.innerHeight,void 0,"NWeFS")),U=P.next().value;P=P.next().value;var L=U,M=P;P=_.F(_.pz(0,void 0,"oxfm4"));U=P.next().value;P=P.next().value;var l=U,J=P;P=_.F(_.CE(function(){var y=eUF(A);return.6*L()-tMK(y)-r8s(y)}));
U=P.next().value;P=P.next().value;var n=U,t=P,g=function(){var y=eUF(A);return L()-tMK(y)-r8s(y)-24-24},e=null,x={},D={initialY:_.pz(0,void 0,"cYBE5c"),
currentY:_.pz(0,void 0,"RndqHc"),isAnimating:_.pz(!1,void 0,"vO9DVd"),isFullScreen:_.pz(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.CE(n)},w=function(){var y=null;return function(){if(!y){var a9={initialY:D.initialY[0](),currentY:D.currentY[0](),isAnimating:D.isAnimating[0](),isFullScreen:D.isFullScreen[0](),maxHeightForContentWrapper:D.maxHeightForContentWrapper[0]()};y=jPt(a9)}return y}}();
_.tz(function(){window.addEventListener("resize",f);w().subscribe(function(y){D.initialY[1](y.initialY);D.currentY[1](y.currentY);D.isAnimating[1](y.isAnimating);D.isFullScreen[1](y.isFullScreen);D.maxHeightForContentWrapper[1](y.maxHeightForContentWrapper)})});
_.Cz(function(){window.removeEventListener("resize",f);e&&(e.disconnect(),e=null)});
var u=_.O4({"bottom-sheet-content-without-icon":function(){var y;return!((y=A.shouldShowIcons)==null?0:y.call(A))}});
return _.X("bottom-sheet-layout",null,_.X(r0q,{contentWrapperId:"content-wrapper",isAnimating:function(){return D.isAnimating[0]()},
currentY:function(){return D.currentY[0]()},
maxHeightForContentWrapper:function(){return D.maxHeightForContentWrapper[0]()},
shouldShowIcons:A.shouldShowIcons,skipContentClick:A.skipContentClick,onScroll:function(){var y=document.getElementById("header-wrapper"),a9=document.getElementById("content-wrapper");if(y&&a9){var pF={};pF=(pF["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,pF["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,pF);y.className=a9.scrollTop>1?_.nE(pF):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:gz7,contentWrapperEl:function(y){Q(y);requestAnimationFrame(function(){b(y)})},
header:function(){return _.X(R3n,{touchstart:a,touchmove:T,touchend:G,title:A.headerTitle,subtitle:A.headerSubtitle,headerId:"header-wrapper",headerOverride:A.headerFn,hasHeaderOverride:A.hasHeaderFn,actionHeader:A.headerActionHeader,hasActionHeader:A.hasHeaderActionHeader})},
footer:function(){return _.X(jqd,{footerButtonType:A.footerButtonType,leadingLabel:A.footerLeadingLabel,trailingLabel:A.footerTrailingLabel,primaryButton:A.footerPrimaryButton,hasPrimaryButton:A.hasFooterPrimaryButton,secondaryButton:A.footerSecondaryButton,hasSecondaryButton:A.hasFooterSecondaryButton,footerOverride:A.footerFn,hasFooterOverride:A.hasFooterFn})},
body:function(){return _.X(_.S,{cond:A.hasContentFn,then:function(){var y;return _.X("div",{class:u},(y=A.contentFn)==null?void 0:y.call(A))}})}}))},"nh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var gDO=_.aP(function(A){var Q=_.fJ().resolve(_.j4);return _.X("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.IY(function(){return void Q.closeSheet()})},_.X(_.S,{cond:function(){return!!A.header},
then:function(){return _.X("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},A.header())}}),_.X(_.S,{cond:function(){return!!A.content},
then:function(){return _.X("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},A.content())}}),_.X(_.S,{cond:function(){return!!A.footer},
then:function(){return _.X("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},A.footer())}}))},"oh");
gDO.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var e3x=_.aP(function(A){A=A.data;var Q=_.st("yt-sheet-view-model",function(f){if(_.K("web_focus_first_element_sheet")||!_.K("sheet_focus_first_killswitch"))return f.addEventListener("focus",function(){jF7(f)}),function(){f.removeEventListener("focus",function(){jF7(f)})}}),b={};
return _.X("yt-sheet-view-model",{"on:mousedown":_.IY(function(f){_.K("sheet_focus_first_killswitch")||f.currentTarget!==f.target&&f.preventDefault()}),
"on:focus":_.IY(function(){_.K("sheet_focus_first_killswitch")||jF7(Q.value)}),
class:_.O4("yt-sheet-view-model-wiz",(b["yt-sheet-view-model-wiz--contextual"]=!0,b["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.K("web_disable_backdrop_filter"),b)),el:Q,tabindex:-1},_.X(_.S,{cond:A,then:function(f){return _.X(gDO,{header:function(){return _.X(_.WL,{data:function(){return f().header}},{panelHeaderViewModel:tHK})},
content:function(){return _.X(_.WL,{data:function(){return f().content}},{listViewModel:function(a){return _.X(_.DZy,{data:a.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:lMF,miniAppScoreChallengeViewModel:KYO})},
footer:function(){return _.X(_.WL,{data:function(){return f().footer}},{panelFooterViewModel:_.Gh})}})}}))},"ph");
e3x.idomCompat=!0;_.pE(e3x,"yt-sheet-view-model",{props:{data:_.Qf}});var WYK=_.aP(function(A){var Q=function(){var b;return(b=A.data().enableDebuggingFeatures)!=null?b:!1};
return _.X("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.X(_.Op,{each:function(){var b;return(b=A.data().stickers)!=null?b:[]}},function(b){return _.X(h3x,{data:function(){return b},
debugMode:Q})}))},"qh"),h3x=_.aP(function(A){var Q=_.be(A,{debugMode:!1}).debugMode,b=_.Q0(function(){var P;
return(P=A.data().region)==null?void 0:P.w},0),f=_.Q0(function(){var P;
return(P=A.data().region)==null?void 0:P.h},0),a=_.Q0(function(){var P;
return(P=A.data().region)==null?void 0:P.x},0),T=_.Q0(function(){var P;
return(P=A.data().region)==null?void 0:P.y},0),G=_.IY(function(){var P=A.data().onTap;
P&&_.D3(P)}),p={};
return _.X("div",{class:_.O4("ytStoriesStickerLayerViewModelSticker",(p.ytStoriesStickerLayerViewModelDebugMode=Q,p)),style:_.qM({width:function(){return 100*b()+"%"},
height:function(){return 100*f()+"%"},
left:function(){return 100*a()+"%"},
top:function(){return 100*T()+"%"},
"flex-direction":function(){return hUN(A.data().flexDirection)},
"justify-content":function(){return WXK(A.data().justifyContent)},
"align-items":function(){return vzO(A.data().alignItems)}}),
"on:click":G},_.X(_.WL,{data:function(){return A.data().button||A.data().toggleButton}},{buttonViewModel:function(P){return _.X(_.J9,{data:P.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(P){return _.X(_.eq,{data:P.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"rh");var EDx=_.aP(function(A){var Q=function(){return A.data()},b={},f=_.Q0(function(){return Q().backgroundColor},0),a=_.Q0(function(){return Q().actionButtons},[]),T=_.Q0(function(){return Q().stickerLayer},{}),G=function(){var P,U;
return{animationRef:b,animationConfig:{autoplay:!1,loop:!1,path:(U=(P=Q().foregroundAnimation)==null?void 0:P.url)!=null?U:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){A.navigateToNextItemOnLottieComplete()}}}},p=function(){var P,U,L,M,l,J,n,t;
return{animationConfig:{autoplay:(J=(P=Q().backgroundAnimation)==null?void 0:(U=P.settings)==null?void 0:U.autoplay)!=null?J:!1,loop:(n=(L=Q().backgroundAnimation)==null?void 0:(M=L.settings)==null?void 0:M.loop)!=null?n:!1,path:(t=(l=Q().backgroundAnimation)==null?void 0:l.url)!=null?t:"",name:"stories_item_background_animation"}}};
_.H_(function(){if(A.isVisible()){var P;(P=b.lottieEl)==null||P.play();A.animationRef()&&(A.animationRef().lottieEl=b.lottieEl)}else{var U;(U=b.lottieEl)==null||U.stop()}},"Cbnkwd");
return _.X("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.qM({"background-color":function(){return _.w6(f())+";"}})},_.X("div",{class:"ytStoriesItemViewModelAssetContent"},_.X(_.S,{cond:function(){return!!Q().backgroundAnimation},
then:function(){return _.X(_.X6,{data:p,animationName:function(){return p().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.X(_.S,{cond:function(){return!!Q().backgroundImage},
then:function(){return _.X(_.aY,{data:function(){return Q().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.X(_.S,{cond:function(){return!!Q().foregroundAnimation},
then:function(){return _.X(_.X6,{data:G,animationName:function(){return G().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.X(_.S,{cond:function(){return!!Q().foregroundImage},
then:function(){return _.X(_.aY,{data:function(){return Q().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.X("div",{class:"ytStoriesItemViewModelTopShadow"}),_.X(_.WL,{data:function(){return T()}},{storiesStickerLayerViewModel:WYK})),_.X("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.qM({"background-color":function(){return _.w6(f())}})},_.X("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.X(_.Op,{each:a},function(P){return _.X(vDr,{data:function(){return P},
pauseAutoNavigation:A.pauseAutoNavigation})}))))},"sh"),xSF={style:"overlay",
type:"outline"},vDr=_.aP(function(A){var Q={};return _.X("div",{class:_.O4("ytStoriesItemViewModelActionButton",(Q.ytStoriesItemViewModelStretchedActionButton=function(){return A.data().size==="STORIES_BUTTON_SIZE_STRETCH"},Q)),
"on:click":_.IY(A.pauseAutoNavigation)},_.X(_.WL,{data:function(){return A.data().button}},{buttonViewModel:function(b){return _.X(_.J9,{data:b.data,
buttonOverrides:xSF})}}))},"th");_.pE(_.aP(function(A){var Q=function(){var pF;return(pF=A.data().startIndex)!=null?pF:0},b=_.F(_.CE(Q)),f=b.next().value,a=b.next().value;
b=_.F(_.pz(!1,void 0,"O8yPf"));var T=b.next().value,G=b.next().value,p=function(){var pF;return(pF=A.data().storyItems)!=null?pF:[]},P={},U=function(){return A.data().dismissButton},L=function(){var pF;
return _.ue((pF=_.V(U(),_.jJ))==null?void 0:pF.onTap)},M=_.st("div"),l,J,n=!1,t=function(){var pF;
(pF=l)==null||pF.cancel();l=g(f()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});l.onfinish=function(){g(f()).style.width="100%";var Ub=_.V(p()[f()],uIK),Ob,I9;Ub!=null&&Ub.foregroundAnimation&&((Ub==null?0:(Ob=Ub.foregroundAnimation)==null?0:Ob.url)||(Ub==null?0:(I9=Ub.foregroundAnimation)==null?0:I9.payload))||(f()!==p().length-1?(a(f()+1),t()):L()&&_.Z3(L()))}},g=function(pF){return M.value.children[pF].children[0]},e=function(){for(var pF=0;pF<f();pF++)g(pF).style.width=
"100%"};
b=_.IY(function(){n||(T()?G(!1):(f()===p().length-1&&L()&&_.Z3(L()),g(f()).style.width="100%",f()!==p().length-1&&(a(f()+1),t())))});
var x=_.IY(function(){n||(T()?G(!1):(g(f()).style.width="0%",f()!==0?a(f()-1):a(f()),t()))}),D=function(){G(!0)},w=function(){g(f()).style.width="100%";
f()!==p().length-1?(a(f()+1),t()):L()&&_.Z3(L())},u=_.IY(function(){n=!1;
J=setTimeout(function(){G(!0);n=!0},300)}),y=_.IY(function(){clearTimeout(J);
n&&T()&&G(!1)});
_.H_(function(){if(T()){var pF;(pF=l)==null||pF.pause();var Ub;(Ub=P.lottieEl)==null||Ub.pause()}else{var Ob;(Ob=l)==null||Ob.play();var I9;(I9=P.lottieEl)==null||I9.play()}},"DIHTEd");
_.H_(function(){e();f()===Q()&&t()},"ze5F8b");
var a9=function(){var pF=L();pF&&_.Z3(pF)};
_.tz(function(){e();t();window.addEventListener("yt-popup-closed",a9)});
_.Cz(function(){clearTimeout(J);window.removeEventListener("yt-popup-closed",a9)});
return _.X("yt-stories-viewer-view-model",{class:_.O4("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.X("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.X("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":x,"on:mousedown":u,"on:mouseup":y,"on:mouseleave":y}),_.X("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":b,"on:mousedown":u,"on:mouseup":y,"on:mouseleave":y})),_.X("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.X(_.WL,{data:p},{storiesItemViewModel:function(pF,Ub){var Ob=pF.data;return _.X(_.S,{cond:function(){return Math.abs(Ub()-f())<=1},
then:function(){var I9={};return _.X("div",{class:_.O4("ytStoriesViewerViewModelStoryItem",(I9.ytStoriesViewerViewModelActiveStoryItem=function(){return Ub()===f()},I9))},_.X(EDx,{data:Ob,
pauseAutoNavigation:D,navigateToNextItemOnLottieComplete:w,isVisible:function(){return Ub()===f()},
animationRef:P}))}})}})),_.X("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:M},_.X(_.Op,{each:p},function(){return _.X("div",{class:"ytStoriesViewerViewModelProgressBar"},_.X("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.X("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.X(_.WL,{data:U},{buttonViewModel:_.J9})))},"uh"),"yt-stories-viewer-view-model",{props:{data:_.Qf}});_.pE(_.aP(function(A){var Q=A.data;var b=_.st("yt-gen-ai-feedback-form-view-model"),f=[];return _.X("yt-gen-ai-feedback-form-view-model",{el:b,class:"ytGenAiFeedbackFormViewModelHost"},_.X(_.Rb,{text:function(){return Q().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.X("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.X(_.WL,{data:function(){return Q().feedbackChips}},{toggleButtonViewModel:function(a){var T=a.data;
return _.X(_.eq,{data:T,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(G){var p=T();p=_.V(p,_.R$);p=_.V(p==null?void 0:p.defaultButtonViewModel,_.jJ).trackingParams;G?f.push(p):(G=f.indexOf(p),G>-1&&f.splice(G,1))}})}})),_.X(_.Rb,{text:function(){return Q().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.X("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.X(_.WL,{data:function(){return Q().submitButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){EzM(b.value,f,Q().uniqueId)}})}}),_.X(_.WL,{data:function(){return Q().moreFeedbackButton}},{buttonViewModel:function(a){return _.X(_.J9,{data:a.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"vh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Qf},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var wp=function(){return _.q.apply(this,arguments)||this};
_.O(wp,_.q);wp.prototype.created=function(){JyN(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(pmK);var A=_.fJ().resolve(_.syx);A&&(A.container=this.ytPopupContainerBehavior);if(A=_.fJ().resolve(_.j4))A.container=this.ytPopupContainerBehavior;if(A=_.fJ().resolve(_.RS)){var Q=this.ytPopupContainerBehavior;A.containerWasInjected?_.Wv(Error("dj")):A.container=Q}};
wp.prototype.ensurePopupBelowPlayer=function(A,Q){var b=_.fJ().resolve(_.bu(_.F7));if(!b||!b.isOnWatch()||!_.BL())return!1;b=b.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.HY().height>b+this.getPopupHeight(A,Q)?(A.style.top="auto",A.style.bottom="0px"):(A.style.top=b+"px",A.style.bottom="auto");return!0};
wp.prototype.getPopupHeight=function(A,Q){Q&&(A.cachedPopupHeight=0);if(!A.cachedPopupHeight){Q=0;var b=A.clientHeight,f=window.getComputedStyle(A);Q+=parseInt(f.marginTop,10);Q+=parseInt(f.marginBottom,10);A.cachedPopupHeight=b+Q}return A.cachedPopupHeight};
wp.prototype.getElement=function(A){return document.createElement(A)};
_.E([_.I(Cst.YtPopupContainerBehavior),_.c("design:type",Object)],wp.prototype,"ytPopupContainerBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],wp.prototype,"ytComponentBehavior",void 0);_.E([_.h({disableElementRegistration:!0,is:"ytd-popup-container"})],wp);
_.W(wp,"ytd-popup-container",function(){if(KAN!==void 0)return KAN;var A=document.createElement("template");_.k(A,"\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");A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);return KAN=A},{mode:1});var c0n;var z3s={};z3s.YtLogYpcFlowCommandsBehavior=[_.PJ.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(A){_.V(A,Bux)&&(A=_.V(A,Bux))&&(A.serializedTransactionFlowLoggingParams?_.CtY(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&_.mb("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&_.mb("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=A.serializedYpcPauseFlowLoggingParams)&&
_.mb("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams?(A=A.serializedYpcRefundFlowLoggingParams)&&fV7("YPC_EVENT_TYPE_START",A):A.serializedYpcDeactivateFlowLoggingParams?(A=A.serializedYpcDeactivateFlowLoggingParams)&&_.mb("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",A):A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(A=A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.mb("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",A))},
handleLogYpcFlowDismiss_:function(A){_.V(A,GWn)&&(A=_.V(A,GWn),A.serializedTransactionFlowLoggingParams?_.q9U(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&_.mb("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&_.mb("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=
A.serializedYpcPauseFlowLoggingParams)&&_.mb("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams&&(A=A.serializedYpcRefundFlowLoggingParams)&&fV7("YPC_EVENT_TYPE_CANCEL",A))}}];var wct={};wct.YtCancelRecurrenceBehavior=[_.Y3.YtComponentBehavior,_.xRj,{attached:function(){var A=this;fhd(this,function(Q,b){return A.ypcCancelRecurrenceHandler(Q,b)})},
ypcCancelRecurrenceHandler:function(A,Q){var b=this;if(!Q||!Q.ypcCancelRecurrenceEndpoint)return!1;if(!Q.ypcCancelRecurrenceEndpoint.params)return _.xQ(Error("wl")),!0;_.y3(this.hostElement);var f=_.s4.instance,a=_.fJ().resolve(_.bu(_.WY));f&&_.m4(f,Q)?_.Ay(f,Q).then(function(T){b.ypcCancelRecurrenceSuccess_(A,Q,{data:T})},function(T){b.ypcCancelRecurrenceFailure_(A,Q,T)}).thenCatch(function(){_.xQ(Error("xl"))}):a?a.requestDataForServiceEndpoint(Q).then(function(T){b.ypcCancelRecurrenceSuccess_(A,
Q,T)},function(T){b.ypcCancelRecurrenceFailure_(A,Q,T)}).thenCatch(function(){_.xQ(Error("xl"))}):_.xQ(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(A,Q,b){_.YB(this.hostElement);b.data||(b={data:b});b.data&&b.data.actions&&_.ST(this.hostElement,b.data.actions,this.hostElement);b.data.messageRenderer?T2x(Q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(Q=Q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.mb("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",Q);_.Bn(A,"yt-service-request-completed",b)},
ypcCancelRecurrenceFailure_:function(A,Q,b){_.YB(this.hostElement);T2x(Q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Bn(A,"yt-service-request-error",{error:b,params:[A,Q]})}}];var u$x=function(A,Q){_.A4.call(this,Q)};
_.O(u$x,EGt);var ZCN={};ZCN.YtCompleteTransactionBehavior=[_.Y3.YtComponentBehavior,_.xRj,{attached:function(){var A=this;fhd(this,function(Q,b){return A.ypcCompleteTransactionHandler(Q,b)})},
completeTransaction:function(A,Q){var b=this;Q={payments_payload:window.btoa(Q.integratorData),buybucket_params:A.data.buybucketParams,offer_params:A.data.offerParams};var f=_.fJ().resolve(_.WY),a=A.data.completeTransactionEndpoint,T=this.get("ypcCompleteTransactionEndpoint.actions",a);T&&_.ST(this.hostElement,T,this.hostElement);return(T=_.s4.instance)&&_.m4(T,a)?_.Ay(T,a,Q).then(function(G){return!G||(G==null?0:G.error)?(G=b.get("data.serializedTransactionFlowLoggingParams",A),_.gF(new OF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
G))):{data:G}}).then(function(G){return b.handleCompleteTransactionSuccess_(G,A)},function(){return b.handleCompleteTransactionFailure_(A)}):f.requestDataForServiceEndpoint(a,Q).then(function(G){return b.handleCompleteTransactionSuccess_(G,A)},function(){return b.handleCompleteTransactionFailure_(A)})},
handleCompleteTransactionSuccess_:function(A,Q){A.data||(A={data:A});if(A.data.messageRenderer)return _.gF(new u$x(A.data.messageRenderer));if(A.data.trackingParams){var b=_.WR(),f=_.hx();b&&f&&_.ui(b,f,_.t8(A.data.trackingParams))}Q=this.get("data.serializedTransactionFlowLoggingParams",Q);aV7(Q);return _.Ul(A)},
handleCompleteTransactionFailure_:function(A){A=this.get("data.serializedTransactionFlowLoggingParams",A);_.Nj("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A);return _.gF(new OF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))},
ypcCompleteTransactionHandler:function(A,Q){var b=this;if(!Q.ypcCompleteTransactionEndpoint)return!1;if(!Q.ypcCompleteTransactionEndpoint.transactionParams)return _.xQ(Error("zl")),!0;Q.ypcCompleteTransactionEndpoint&&Q.ypcCompleteTransactionEndpoint.gtmData&&_.hX(Q.ypcCompleteTransactionEndpoint.gtmData);var f=_.fJ().resolve(_.bu(_.WY));if(f){_.y3(this.hostElement);var a=_.s4.instance;a&&_.m4(a,Q)?_.Ay(a,Q).then(function(T){return!T||(T==null?0:T.error)?(T=b.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
Q),_.gF(new OF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",T))):{data:T}}).then(function(T){_.Bn(A,"yt-service-request-completed");
b.ypcCompleteTransactionSuccess_(Q,T)},function(){return b.ypcCompleteTransactionFailure_(Q)}):f.requestDataForServiceEndpoint(Q).then(function(T){_.Bn(A,"yt-service-request-completed");
b.ypcCompleteTransactionSuccess_(Q,T)},function(){return b.ypcCompleteTransactionFailure_(Q)})}return!0},
ypcCompleteTransactionSuccess_:function(A,Q){_.YB(this.hostElement);Q.data||(Q={data:Q});_.pD(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);Q.data.messageRenderer||Q.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(A):(_.hX('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",A));Q.data.actions&&(A=JuO(Q.data.actions),Q=VKx(Q.data.actions),A.length&&_.X5(this.hostElement,
A),Q.length&&_.ST(this.hostElement,Q,this.hostElement))},
ypcCompleteTransactionFailure_:function(A){_.YB(this.hostElement);_.pD(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",A,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(A,Q,b){if(Q=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",Q))Q={serializedTransactionFlowLoggingParams:Q},b&&(Q.errorType=b),_.R4(A,Q),_.go()}}];var y0K={};y0K.YtEndpointHandlerWithYpcBehavior=[_.xRj,_.PJ.YtActionHandlerBehavior,[{openWalletDialog:function(A,Q,b,f,a,T,G){var p=this,P=_.Qh();Q=Q.replace(/-/g,"+").replace(/_/g,"/");var U=_.nD().get("hl");_.zey(_.Tb(_.sY),Q,P.resolve,a,function(L){T&&T();P.reject(L)},U,function(L){return p.onServerBackendAnalyticEvent_(A,b,L)},this.onDialogClose_.bind(this),f,G);
return P.promise},
openFixFlowDialog:function(A,Q,b,f){A=A.replace(/-/g,"+").replace(/_/g,"/");_.Tb(_.sY).openFixFlowDialog(A,Q,b,f)},
onDialogClose_:function(){_.pD(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(A,Q,b){_.Bn(A,"yt-commerce-action-init-done");Q&&_.X5(this.hostElement,[Q,{backend_analytics:b}])}}],
_.n3.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(A,Q){A=this.get("data.nativeFlowEndpoint",Q);Q=this.get("data.fallbackEndpoint",Q);A?_.X5(this.hostElement,[A]):Q&&_.Bn(this.hostElement,"yt-navigate",{endpoint:Q})}}],
wct.YtCancelRecurrenceBehavior,ZCN.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 A=this;fhd(this,function(Q,b,f){return A.handleYPCEndpoint(Q,b,f)});
this.ypcRegisterActionMapJobId_=_.Hv(_.j7,function(){A.registerActionMap(A.buyFlowActionMap_)})},
detached:function(){var A=this;_.j7.cancelJob(this.ypcRegisterActionMapJobId_);_.Hv(_.j7,function(){A.unregisterActionMap(A.buyFlowActionMap_)})},
handleYPCEndpoint:function(A,Q,b){var f=Q.ypcGetCartEndpoint;if(f){_.eT("commerce_transaction");var a=f.gtmId;a&&_.eN(a);(f=f.gtmData)&&_.hX(f)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",Q)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(A,Q),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",Q)!=null?(this.handleYPCFixInstrumentEndpoint_(A,Q),!0):Q.ypcPauseSubscriptionCommand?(D7N(this.hostElement,A,Q,b),
!0):Q.ypcResumeSubscriptionCommand?(sPq(this.hostElement,A,Q),!0):Q.getPaymentInstrumentsParamsCommand?(Z0N(this.hostElement,A,Q),!0):Q.ypcHandleTransactionEndpoint?(w8t(this.hostElement,A,Q,b),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(A,Q){var b=this;_.hQ("ttcr",void 0,"commerce_transaction");Q=Q.ypcGetCartEndpoint;var f=Q.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,a=f.encryptedPurchaseParams,T=f.serializedTransactionFlowLoggingParams,G=f.serializedPaymentsClientParams,p=this.createGetCartResponseFromParams_(f,Q.offerParams,T);this.changeButtonState(A,!0);_.oH(this.openWalletDialog(A,a,f.ypcLogWalletAnalyticDataEndpoint,T,function(){b.changeButtonState(A,!1)},function(){b.changeButtonState(A,
!1)},G).then(function(P){return b.handleBuyFlowCompleteCallback_(A,p,P)},function(){return b.handleOnLoadError(p)}).then(function(P){return void b.handlePostPurchaseSuccess_(A,p,P)},function(P){return void b.handlePostPurchaseError_(P)}),function(){b.changeButtonState(A,!1);
A instanceof Element&&_.Bn(A,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(A,Q,b){var f=A.completeTransactionEndpoint,a=A.handleTransactionEndpoint;Q={data:{offerParams:window.btoa(Q),serializedTransactionFlowLoggingParams:b}};a?Q.data.handleTransactionEndpoint=a:Q.data.completeTransactionEndpoint=f;A.onCartDismissCommand&&(Q.data.onCartDismissCommand=A.onCartDismissCommand);return Q},
onGetCartServiceRequestCompleted_:function(A,Q){var b=this,f=A.target;if(Q&&Q.data&&Q.data.messageRenderer)_.YB(this.hostElement),this.handleMessageRenderer_(Q.data.messageRenderer),this.changeButtonState(f,!1);else{var a=this.get("data.encryptedPurchaseParams",Q),T=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",Q),G=this.get("data.ypcLogWalletAnalyticDataEndpoint",Q),p=this.get("data.serializedPaymentsClientParams",Q),P=this.getLoggingParams_(Q);if(P||a||T)A.stopPropagation(),_.hQ("ttcr",
void 0,"commerce_transaction"),a||_.YB(this.hostElement),this.changeButtonState(f,!1),T?_.pD(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.vG("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:T}}},this]):a&&(this.changeButtonState(f,!0),A=null,A=this.openWalletDialog(f,a,G,P,function(){_.YB(b.hostElement);b.changeButtonState(f,!1)},function(){_.YB(b.hostElement);
b.changeButtonState(f,!1)},p),_.oH(A.then(function(U){return b.handleBuyFlowCompleteCallback_(f,Q,U)},function(){return b.handleOnLoadError(Q)}).then(function(U){return b.handlePostPurchaseSuccess_(f,Q,U)},function(U){return b.handlePostPurchaseError_(U)}),function(){b.changeButtonState(f,!1);
_.Bn(f,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(A,Q){Q&&Q.endpoint&&Q.endpoint.ypcGetCartEndpoint&&!Q.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",Q.endpoint.ypcGetCartEndpoint)&&_.ST(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",Q.endpoint.ypcGetCartEndpoint)],A.target),_.y3(this.hostElement),this.changeButtonState(A.target,!0))},
onServiceRequestError_:function(A,Q){if(Q&&Q.params&&Q.params.length){Q=_.F(Q.params);for(var b=Q.next();!b.done;b=Q.next())if((b=b.value)&&b.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",b.ypcGetCartEndpoint)&&_.ST(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",b.ypcGetCartEndpoint)],A.target);_.YB(this.hostElement);this.changeButtonState(A.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(A,Q,b){var f=b.integratorData;return f==null||f===""||b.error!=null?(f=this.getLoggingParams_(Q),String(b.error)==="-1"?(Q.data.onCartDismissCommand&&_.ST(this.hostElement,[Q.data.onCartDismissCommand],A),_.gF(new OF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f,!0))):_.gF(new OF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f))):Q.data.handleTransactionEndpoint?upq(this.hostElement,Q.data.handleTransactionEndpoint,{payments_payload:f,funds_guarantee_callback_client_data:b.integratorClientCallbackData}):
this.completeTransaction(Q,b)},
handlePostPurchaseSuccess_:function(A,Q,b){Q=b.data;var f=!1,a,T;if(Q&&((a=Q.command)==null?0:(T=a.commandExecutorCommand)==null?0:T.commands)){var G,p;a=(G=Q.command)==null?void 0:(p=G.commandExecutorCommand)==null?void 0:p.commands;for(G=0;G<a.length;G++)if(_.V(a[G],_.i3M)){f=!0;break}}f||(Q&&Q.gtmDatas&&Q.gtmDatas.length?_.hX(Q.gtmDatas[0]):_.hX('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));b.data&&b.data.actions&&(Q=JuO(b.data.actions),b=VKx(b.data.actions),Q.length&&
_.X5(this.hostElement,Q),b.length&&_.ST(this.hostElement,b,A))},
handlePostPurchaseError_:function(A){A&&A.payload&&A.payload.isUserDismiss||_.en(Error("Bl"))},
handleOnLoadError:function(A){A=this.getLoggingParams_(A);return _.gF(new OF("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A))},
getLoggingParams_:function(A){return this.get("data.serializedTransactionFlowLoggingParams",A)},
handleMessageRenderer_:function(A){var Q=_.R8(A,"renderer"),b=_.vG("openPopupConfig");Q==="confirmDialogRenderer"&&b&&_.pD(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:b.popupTypeMap[Q],popup:A}},this])},
handleYPCFixInstrumentEndpoint_:function(A,Q){var b=this,f=Q.ypcFixInstrumentEndpoint;Q=f.encryptedFixInstrumentParameters;this.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(A,!0);this.openFixFlowDialog(Q,function(a,T){b.onFixFlowCompleteCallback_(f,a,T)},function(){return b.changeButtonState(A,!1)},function(){b.changeButtonState(A,!1);
b.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(A,Q,b){var f=_.zV("payments.business.integration.scenario.FixInstrument");if(Q==f.IntegratorCallbackType.ON_COMPLETE){Q="FIX_FOP_EVENT_TYPE_CANCEL";var a=null;b.error!=null?b.error!=f.OnCompleteCallbackError.USER_CANCELLED&&(_.ST(this.hostElement,[A.errorAction],this.hostElement),Q="FIX_FOP_EVENT_TYPE_FAILURE",a="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.ST(this.hostElement,[A.successAction],this.hostElement),Q="FIX_FOP_EVENT_TYPE_SUCCESS");_.ST(this.hostElement,[A.onFinishAction],
this.hostElement);this.logFixFopEvent_(A,Q,a)}},
logFixFopEvent_:function(A,Q,b){(A=A.serializedFixFopLoggingParams)?(Q={eventType:Q,serializedFixFopLoggingParams:A},b!=null&&(Q.errorType=b),_.R4("fixFopFlow",Q),_.go()):_.en(Error("Cl"))},
changeButtonState:function(A,Q){_.K("enable_ypc_spinners")&&A&&(A.is==="yt-button-renderer"||A.is==="ytd-button-renderer")&&(A.disabled=Q)}}];var YTF=function(A){this.JSC$32136_clientRoot=A;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Afl,"yt-feedback-dialog-requested":m7t,"yt-signal-action-help":QY7,"yt-signal-action-send-feedback":bEr,"yt-send-feedback-action":act,"yt-user-feedback-endpoint":T_t};_.Dl(_.Yk.getInstance(),this.feedbackCollectorActionMap,this.JSC$32136_clientRoot)},DSN;var $St=function(A){this.JSC$32141_clientRoot=A;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":dMs.bind(null,this.JSC$32141_clientRoot),"yt-signal-action-delete-all-downloads":GZO,"yt-signal-action-delete-download":B_t,"yt-signal-action-delete-playlist-download":Pcx,"yt-signal-action-install-pwa":lcx,"yt-signal-action-refresh-downloads":L4d,"yt-offline-video-endpoint":iEt,"yt-offline-playlist-endpoint":VlF,"yt-update-local-app-setting-command":nox,"yt-offline-orchestration-action-command":IcM,
"yt-signal-action-undo-delete-download":S4t,"yt-local-watch-history-command":q4x};_.Dl(_.Yk.getInstance(),this.downloadManagerActionMap,this.JSC$32141_clientRoot);_.g6.instance=new _.g6},NfM;var uo=function(){var A=_.q.apply(this,arguments)||this;A.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_"};A.remoteApi_=null;return A};
_.O(uo,_.q);_.d=uo.prototype;
_.d.ready=function(){_.K("polymer_enable_mdx")&&(PVN({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.K("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.K("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.K("enable_cast_short_lived_lounge_token")}),_.pu("yt-remote-connection-change",this.handleConnectionChange_,this),_.pu("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=KZN())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.d.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.d.handleConnectionChange_=function(A){(this.mdxConnected=A)?(A=U6t(),!A&&TnN()&&dJF()&&(A={key:"cast-selector-receiver",name:dJF()}),A=A.name):A=null;this.receiverName=A;_.AT(this.remoteApi_);(this.remoteApi_=KZN())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.d.handleReceiverAvailabilityChange_=function(){var A=SP7();TnN()&&_.i7("yt-remote-cast-available")&&A.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=A.length>0};
_.d.handleRemoteQueueChange_=function(){var A=this.currentVideoId_,Q=this.currentListId_,b=Cx(this.remoteApi_);this.currentVideoId_=b.videoId;this.currentListId_=b.listId;this.currentVideoId_&&_.pD(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.K("polymer_enable_mdx_queue")?this.currentListId_:null,A,Q])};
_.d.handleAddToQueueAction_=function(A){A=_.V(A,ZWl);this.remoteApi_&&(A.videoId?this.remoteApi_.addVideo(A.videoId):A.playlistId&&this.remoteApi_.addPlaylist(A.playlistId))};
_.d.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.d.handleInsertInQueueAction_=function(A){A=_.V(A,yX7);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$19631_insertVideo(A.videoId)};
_.d.handleRemoveFromQueueAction_=function(A){A=_.V(A,Ykl);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$19631_removeVideo(A.videoId)};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],uo.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C(),_.c("design:type",Object)],uo.prototype,"appId",void 0);_.E([_.C(),_.c("design:type",Boolean)],uo.prototype,"mdxConnected",void 0);_.E([_.C(),_.c("design:type",Boolean)],uo.prototype,"receiverAvailable",void 0);_.E([_.C(),_.c("design:type",Object)],uo.prototype,"receiverName",void 0);_.E([_.C(),_.c("design:type",Object)],uo.prototype,"currentVideoId_",void 0);
_.E([_.C(),_.c("design:type",Object)],uo.prototype,"currentListId_",void 0);_.E([_.Ec({is:"yt-mdx-manager",disableElementRegistration:!0})],uo);_.W(uo,"yt-mdx-manager",void 0,{mode:2});var sqF;var mSN;var ZI=function(){var A=_.q.apply(this,arguments)||this;A.APP_IDS={ytr:3,ytm:5};A.JSC$20852_timeoutId_=0;A.actionMap={"yt-open-create-family-dialog":"open"};return A};
_.O(ZI,_.q);_.d=ZI.prototype;_.d.created=function(){JyN(2200)};
_.d.detached=function(){this.observer_&&this.observer_.disconnect()};
_.d.open=function(A,Q){var b=this,f=A.serializedYpcFamilyCreateLoggingParams;this.JSC$20852_timeoutId_=setTimeout(this.abort_.bind(this,A.postFlowErrorEndpoint,f),3E4);Q&&(this.onReadyCallback_=Q);var a=_.Bj(this.hostElement).querySelector("#unicorn-iframe");f&&f&&bDt("ypcFamilyCreateFlowStarted",f);_.S0b("family_creation",function(){var T=_.zV("gapi.family_creation.render");_.zV("gapi.config.update")("iframes/family_creation/url",b.getFamilyCreationUrlWithUnicornParams_());var G=3;A.appId&&A.appId in
b.APP_IDS&&(G=b.APP_IDS[A.appId]);G={authUser:_.vG("SESSION_INDEX")||0,clientId:G,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.vG("HL"),initialflow:[4,5,6,7],m:b.isMobile?1:0,onFlowComplete:b.onUnicornFlowComplete_.bind(b,A.postFlowSuccessEndpoint,f),onError:b.onUnicornFlowError_.bind(b,A.postFlowErrorEndpoint,f),onReady:b.onUnicornFlowReady_.bind(b,A.referencePcidParams)};T(a,G)})};
_.d.close=function(){_.Bj(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.d.onUnicornFlowComplete_=function(A,Q){this.close();Q&&Q&&bDt("ypcFamilyCreateFlowSucceeded",Q);_.Bn(this.hostElement,"yt-navigate",{endpoint:A})};
_.d.onUnicornFlowError_=function(A,Q){this.close();Q&&bDt("ypcFamilyCreateFlowCancelled",Q);_.Bn(this.hostElement,"yt-navigate",{endpoint:A})};
_.d.onUnicornFlowReady_=function(A){var Q=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();A&&_.zV("gapi.family_creation.setConfig")(0,A);this.observer_=new MutationObserver(function(){_.Bj(Q.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Bj(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Bj(this.hostElement).querySelector("#dialog").open()};
_.d.getFamilyCreationUrlWithUnicornParams_=function(){return _.vG("YTR_FAMILY_CREATION_URL")};
_.d.getCurrentUrl_=function(){return document.location.href};
_.d.abort_=function(A,Q){this.clearTimeout_();this.onUnicornFlowError_(A,Q)};
_.d.clearTimeout_=function(){clearTimeout(this.JSC$20852_timeoutId_)};
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],ZI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],ZI.prototype,"isMobile",void 0);_.E([_.C(),_.c("design:type",Object)],ZI.prototype,"onReadyCallback_",void 0);_.E([_.C(),_.c("design:type",Object)],ZI.prototype,"observer_",void 0);_.E([_.Ec({is:"yt-create-family-dialog",disableElementRegistration:!0})],ZI);
_.W(ZI,"yt-create-family-dialog",function(){if(mSN===void 0){var A=document.createElement("template");_.k(A,'\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');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);var Q=A.content,b=Q.insertBefore;sqF===void 0&&(sqF=document.createElement("template"));var f=sqF;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);mSN=A}A=mSN;return A},{mode:2});var Anx;var QwN;var yL=function(){var A=_.q.apply(this,arguments)||this;A.STEP=1;A.BLOCK_ON=80;A.MIN_PROGESS=0;A.MAX_PROGESS=100;return A};
_.O(yL,_.q);_.d=yL.prototype;_.d.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.d.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));_.fJ().addProvider({provide:YP7,useValue:this})};
_.d.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.d.finish=function(){var A=this;this.progress=this.MAX_PROGESS;ooO(function(){A.progress==A.MAX_PROGESS&&(A.hostElement.hidden=!0)})};
_.d.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Qr.Object.defineProperties(yL.prototype,{progress:{configurable:!0,enumerable:!0,set:function(A){this.progress_=A;var Q="scaleX("+A/this.MAX_PROGESS+")",b=_.Bj(this.hostElement).querySelector("#progress").style;b.transform=Q;b.webkitTransform=Q;this.hostElement.setAttribute("aria-valuenow",String(A))},
get:function(){return this.progress_}}});
_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],yL.prototype,"ytComponentBehavior",void 0);_.E([_.Ec({is:"yt-page-navigation-progress",disableElementRegistration:!0})],yL);
_.W(yL,"yt-page-navigation-progress",function(){if(QwN===void 0){var A=document.createElement("template");_.k(A,'\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');A.content.insertBefore(_.z().content.cloneNode(!0),
A.content.firstChild);var Q=A.content,b=Q.insertBefore;Anx===void 0&&(Anx=document.createElement("template"));var f=Anx;b.call(Q,f.content.cloneNode(!0),A.content.firstChild);QwN=A}A=QwN;return A},{mode:2});var bdx={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"},faM={"font-size":"12px","font-style":"italic"},aaO={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Rvd=function(){return _.B(function(A){_.Oi(A)})};var TVK=_.aP(function(A){var Q=function(){return A.data().subtext},b={};
return _.X("snackbar-view-model",{class:_.O4("snackbarViewModelHost",A.className)},_.X("div",{class:_.O4("snackbarViewModelEngagementBarWrapper",A.className)},_.X(_.S,{cond:function(){return A.data().image},
then:function(f){return _.X(_.aY,{data:f,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.X(_.S,{cond:function(){return A.data().imageContent},
then:function(){return _.X("div",{class:"snackbarViewModelAvatarContainer"},_.X(_.WL,{data:function(){return A.data().imageContent}},{decoratedAvatarViewModel:_.E9}))}}),_.X("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.X("div",{class:_.O4((b.snackbarViewModelTitle=!0,b.snackbarViewModelTitleWithSubtext=Q,b))},_.X(_.Rb,{text:function(){return A.data().text}})),_.X(_.S,{cond:Q,
then:function(){return _.X("div",{class:"snackbarViewModelSubtext"},_.X(_.Rb,{text:function(){return Q()}}))}})),_.X(_.S,{cond:function(){return A.data().buttons},
then:function(){return _.X("div",{class:"snackbarViewModelButtonClassWrapper"},_.X(_.WL,{data:function(){return A.data().buttons}},{buttonViewModel:function(f){return _.X(_.J9,{data:f.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:A.target})}}))}})))},"wh");_.pE(_.aP(function(){function A(x,D,w){n(x);g(w);l("in");L(!0);Q(x,D);G=setTimeout(function(){b()},D)}
function Q(x,D){var w,u=(w=x.text)==null?void 0:w.content;x=_.wz(x.rendererContext);u&&(D={label:u,command:x,durationMs:D},_.fJ().resolve(_.rI).enqueue(D))}
function b(x){l("out");x&&clearTimeout(G)}
function f(){b(!0)}
function a(x){if(x){var D=x.snackbarViewModel,w=x.durationMs,u=x.target;w||(w=3E3);D&&(x=_.fJ().resolve(_.bu(_.Hu)))&&x.enqueue({isOpened:U,open:function(){A(D,w,u)},
close:b},0)}}
var T=_.mS("snackbar-container"),G=void 0,p=_.F(_.pz(!1,void 0,"jJ4tBf")),P=p.next().value;p=p.next().value;var U=P,L=p;P=_.F(_.pz("out",void 0,"M6Rbpb"));var M=P.next().value,l=P.next().value;P=_.F(_.pz(void 0,void 0,"aFswib"));var J=P.next().value,n=P.next().value;P=_.F(_.pz(void 0,void 0,"mlWWhb"));var t=P.next().value,g=P.next().value,e=_.IY(function(){if(M()==="out"){L(!1);n(void 0);g(void 0);var x=_.fJ().resolve(_.bu(_.Hu));x&&jbq(x,0)}});
_.tz(function(){var x=_.fJ().resolve(_.bu(_.nCN));x&&(x.showSnackbarFn=a,x.closeSnackbarFn=f)});
return _.X("snackbar-container",{class:"ytSnackbarContainerHost",el:T},_.X(_.S,{cond:function(){return U()&&!!J()},
then:function(){var x={};return _.X("div",{class:_.O4("ytSnackbarContainerSnackbarContainer",(x.ytSnackbarContainerMobile=!1,x.ytSnackbarContainerPivotBar=function(){var D;return!((D=_.fJ().resolve(_.bu(_.kXd)))==null||!D())},x.ytSnackbarContainerOpened=function(){return U()&&M()==="in"},x.ytSnackbarContainerClosed=function(){return U()&&M()==="out"},x)),
"on:animationend":e},_.X(TVK,{data:function(){return J()},
target:function(){return t()}}))}}))},"xh"),"snackbar-container");_.pE(_.NDj,"yt-tooltip");_.pE(_.aP(function(){var A=_.Zc(_.XQy);return _.X("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var Q;return(Q=A())==null?void 0:Q.announcement})},"yh"),"yt-ephemeral-actions");var sYF=new Map;var e2O=function(A,Q){var b=this;this.handleError=A;this.logEventInternal=Q;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){b.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
e2O.prototype.logError=function(A){this.handleError(A)};
e2O.prototype.logEvent=function(A,Q){switch(A){case "IDB_DATA_CORRUPTED":_.K("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",Q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",Q);break;case "IS_SUPPORTED_COMPLETED":_.K("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",Q);break;case "QUOTA_EXCEEDED":dRx(this,Q);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",Q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":A=Object.assign({},Q,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",A)}};
var dRx=function(A,Q){_.gI.getInstance().estimate().then(function(b){b=Object.assign({},Q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Ayd(b==null?void 0:b.usage),deviceStorageQuotaMbytes:Ayd(b==null?void 0:b.quota)});A.logEventInternal("idbQuotaExceeded",b)})};var F$O=_.aP(function(A){var Q=_.st("yt-draggable"),b=A.onDrag,f=A.onDragStart,a=A.onDragEnd,T=_.be(A,{allowClicks:!1,dragThreshold:5}),G=T.dragThreshold,p=T.allowClicks;A=T.children;T=T.className;var P=void 0,U=void 0,L=new _.gQ(0,0),M=!1;_.tz(function(){P=new _.cX(Q.value);U=new _.TL(J);l(P,U);if(p()){_.BO9(P,G());var t;(t=Q.value)==null||t.addEventListener("click",n,{capture:!0})}_.Cz(function(){var g;(g=P)==null||g.dispose();if(p()){var e;(e=Q.value)==null||e.removeEventListener("click",n,{capture:!0})}})});
var l=function(t,g){_.jM(t,"earlycancel",function(){p()&&(M=!1)});
_.jM(t,"start",function(e){f==null||f(e);e.defaultPrevented||p()&&(M=!0)});
_.jM(t,"beforedrag",function(e){P&&U&&(e.preventDefault(),L=new _.gQ(e.clientX-P.startX,e.clientY-P.startY),U.start())});
_.jM(t,"end",function(){g.stop();a==null||a();L=new _.gQ(0,0)})},J=function(){L&&b(L)},n=function(t){M&&(M=!1,t.stopPropagation(),t.preventDefault())};
return _.X("yt-draggable",{el:Q,class:_.O4("ytDraggableComponentHost",T)},A)},"zh");var GaF=_.aP(function(A){var Q=_.F(_.pz(0,void 0,"CvAwBd")),b=Q.next().value,f=Q.next().value;Q=function(a){var T={},G={};return _.X(F$O,{className:_.O4("ytdMiniplayerComponentResizer",(T.ytdMiniplayerComponentResizerDisabled=function(){return a===A.horizontalAlignment()||a===A.verticalAlignment()},T.ytdMiniplayerComponentResizerNorth=a==="north",T.ytdMiniplayerComponentResizerEast=a==="east",T.ytdMiniplayerComponentResizerSouth=a==="south",T.ytdMiniplayerComponentResizerWest=a==="west",T)),
onDragStart:function(){f(A.currentMiniplayerSize());if(A.onResizeStart)A.onResizeStart()},
onDrag:function(p){a!=="north"&&a!=="west"||p.scale(-1);var P;p=(P=a==="north"||a==="south")?p.y:p.x;var U=A.currentAspectRatio();P&&U>=1?p*=U:!P&&U<1&&(p/=U);P=p;A.onResize(b()+P)}},_.X("div",{class:_.O4("ytdMiniplayerComponentResizerCorner",(G.ytdMiniplayerComponentResizerNorthCorner=a==="north",G.ytdMiniplayerComponentResizerEastCorner=a==="east",G.ytdMiniplayerComponentResizerSouthCorner=a==="south",G.ytdMiniplayerComponentResizerWestCorner=a==="west",G))}))};
return _.X("div",{class:"ytdMiniplayerComponentResizers"},Q("north"),Q("east"),Q("south"),Q("west"))},"Ah");var BVF=16/9;_.pE(_.aP(function(){var A=_.st("ytd-miniplayer"),Q=_.F(_.pz(new _.iw(NaN,NaN),void 0,"GNXZTe")),b=Q.next().value,f=Q.next().value;Q=_.F(_.pz(!1,void 0,"XqI9xc"));var a=Q.next().value,T=Q.next().value;Q=_.F(_.pz(!1,void 0,"k3iLGe"));var G=Q.next().value,p=Q.next().value;Q=_.F(_.pz(!1,void 0,"ApjQ9b"));var P=Q.next().value,U=Q.next().value;Q=_.F(_.pz(!1,void 0,"PzlhGe"));var L=Q.next().value,M=Q.next().value;Q=_.F(_.pz(!1,void 0,"pm6fl"));var l=Q.next().value,J=Q.next().value;Q=_.F(_.pz(!1,void 0,
"xQrL1e"));var n=Q.next().value,t=Q.next().value;Q=_.F(_.pz(BVF,void 0,"NcrWZb"));var g=Q.next().value,e=Q.next().value,x=_.F(_.pz(!1,void 0,"e5rxBc"));Q=x.next().value;var D=x.next().value;x=_.F(_.pz(!1,void 0,"uZtCde"));var w=x.next().value,u=x.next().value;x=_.F(_.pz(void 0,void 0,"wKFvEe"));var y=x.next().value,a9=x.next().value;x=_.F(_.pz(_.vG("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var pF=x.next().value,Ub=x.next().value;x=_.F(_.pz("south",void 0,"QXcssb"));var Ob=x.next().value,
I9=x.next().value;x=_.F(_.pz(400,void 0,"Fr8gSb"));var iy=x.next().value,wW=x.next().value,h4=_.fJ().resolve(_.zb).miniplayerPropSignalMap[0],SW=h4.data,r9=h4.externalPlaylistData;x=h4.toastData;var PM=h4.playabilityStatus,Nf=h4.isReadyToResume,L$=h4.isDisabled,UL=h4.watchWhile,HM=h4.playerVe,Ks=h4.expandVe,Y1=h4.closeVe,dW=h4.readyToResumeVe,bY=h4.readyToResumeCloseVe,OL=h4.repositionVe,iO=h4.resizeVe;h4=_.F(_.CE(Nf));var Jv=h4.next().value,zr=h4.next().value,fN=!1,sL=!1,FL;_.tz(function(){f(_.HY());
A.value.addEventListener("animationend",function(w9){w9.target===A.value&&(J(!1),t(!1))});
dIO(A.value)});
_.N3("yt-window-resized",function(w9){w9&&f(w9)});
var Qx=function(){FL&&e(FL.getVideoAspectRatio())},Ls=function(){if(FL){var w9=FL.getPlayerState()===1;
Jv()&&w9&&zr(!1)}},k1=function(){var w9=Ks();
if(w9){var zn=_.WR(3);zn&&_.$_(zn,w9)}},oy=function(){var w9=Y1(),zn=bY();
w9&&_.$_(_.WR(3),w9);Nf()&&zn&&_.$_(_.WR(3),zn)};
_.N3("yt-activate-miniplayer",function(w9){var zn;return _.B(function(wx){if(wx.nextAddress==1)return a()?wx.return():wx.yield((zn=_.fJ().resolve(_.zb).getPlayerElement())==null?void 0:zn.getPlayerPromise(),2);FL=wx.yieldResult;if(!FL)return wx.return();!w()&&_.K("kevlar_watch_while_v2")&&(I9(w9&&!_.K("kevlar_watch_while_bottom_align")?"north":"south"),Ub(_.vG("HTML_DIR")==="rtl"?"west":"east"));var bn=FL;bn.addEventListener("onVideoDataChange",Qx);bn.addEventListener("onStateChange",Ls);bn.addEventListener("onExpandMiniplayer",
k1);bn.addEventListener("onCloseMiniplayer",oy);e(FL.getVideoAspectRatio());T(!0);Tzx()||J(!0);_.Oi(wx)})});
_.N3("yt-deactivate-miniplayer",function(w9){return _.B(function(zn){if(!a())return zn.return();T(!1);zr(!1);t(w9);M(!1);p(!1);if(FL){var wx=FL;wx.removeEventListener("onVideoDataChange",Qx);wx.removeEventListener("onStateChange",Ls);wx.removeEventListener("onExpandMiniplayer",k1);wx.removeEventListener("onCloseMiniplayer",oy)}Tzx()||J(!0);_.Oi(zn)})});
var ON=function(){return!(UL()&&_.K("kevlar_watch_while_modern"))},Sx=function(){var w9;
return!((w9=r9())==null||!w9.contents)},UN=function(){var w9=iy();
var zn=b();zn=Math.min(Math.min(zn.width,zn.height)-32,720);var wx=g(),bn=ON(),o8=Sx()&&G(),Fu=Math.min(w9,zn);w9=new _.iw(192,bn?116:192);wx=new _.iw(o8?BVF:wx,1);Fu=new _.iw(Fu,bn?Fu-76:Fu);Fu=wx.aspectRatio()>Fu.aspectRatio()?Fu.width/wx.width:Fu.height/wx.height;wx=wx.scale(Fu);w9.width<=wx.width&&w9.height<=wx.height||(w9=wx.aspectRatio()<=w9.aspectRatio()?w9.width/wx.width:w9.height/wx.height,wx.scale(w9),wx.width=Math.min(wx.width,zn),wx.height=Math.min(wx.height,zn));return new _.iw(wx.width,
_.vZ(192,wx.height+pLx(bn,o8),720))},k5=function(){var w9=UN(),zn=ON(),wx=Sx()&&G();
return new _.iw(w9.width,w9.height-pLx(zn,wx))},mE=function(){var w9=function(zn){zn.target===A.value&&L()&&(M(!1),A.value.removeEventListener("transitionend",w9))};
Tzx()||(A.value.addEventListener("transitionend",w9),M(!0));p(!G())};
_.H_(function(){var w9=HM(),zn=_.WR(3),wx=_.hx(3);if(zn&&wx&&w9){_.ui(zn,wx,w9);wx=OL();var bn=iO(),o8=Ks(),Fu=Y1(),jn=bY();o8&&Fu&&jn&&(_.ZV(zn,w9,[o8,Fu,jn]),_.Y_(zn,[o8,Fu]));wx&&bn&&_.ZV(zn,w9,[wx,bn])}},"Snz6Ld");
_.H_(function(){var w9=dW();if(w9){var zn=_.WR(0),wx=_.hx(0);zn&&wx&&(_.ui(zn,wx,w9),_.Y_(zn,[w9]))}},"X1FpHd");
h4={};return _.X("ytd-miniplayer",{el:A,class:_.O4("ytdMiniplayerComponentHost",(h4.ytdMiniplayerComponentVisible=function(){return a()||l()},h4.ytdMiniplayerComponentAnimatingSnap=P,h4.ytdMiniplayerComponentAnimatingPlaylistExpand=L,h4.ytdMiniplayerComponentAnimatingFade=l,h4),function(){if(l()){var w9=Ob();
var zn=a(),wx=n();w9=zn?w9==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":wx?w9==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":w9==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else w9="";return w9}),
style:_.qM({top:function(){return Ob()==="north"?"16px":""},
right:function(){return pF()==="east"?"16px":""},
bottom:function(){return Ob()==="south"?"16px":""},
left:function(){return pF()==="west"?"16px":""},
width:function(){return UN().width+"px"},
height:function(){return UN().height+"px"},
transform:function(){var w9=y();return w9?"translate("+w9.x+"px, "+w9.y+"px)":""}})},_.X("div",{class:"ytdMiniplayerComponentContent"},_.X(F$O,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(w9){var zn=BzM(pF(),Ob(),b(),UN(),y()),wx=k5();Math.abs(w9.clientY-(zn.y+wx.height))>15?(D(!0),w9=_.WR(3),zn=OL(),fN||(fN=!0,w9&&zn&&_.Y_(w9,[zn])),w9&&zn&&_.$_(w9,zn)):w9.preventDefault()},
onDrag:function(w9){a9(w9)},
onDragEnd:function(){var w9=Fml(BzM(pF(),Ob(),b(),UN(),y()),b(),UN()),zn=GGO(pF(),Ob(),b(),UN()),wx=GGO(w9.horizontalAlignment,w9.verticalAlignment,b(),UN());wx=new _.gQ(wx.x-zn.x,wx.y-zn.y);var bn;zn=zn.y+(((bn=y())==null?void 0:bn.y)||0)+UN().height/2;var o8=function(){pF()===w9.horizontalAlignment&&Ob()===w9.verticalAlignment||u(!0);Ub(w9.horizontalAlignment);I9(w9.verticalAlignment);a9(void 0)},Fu=function(jn){jn.target===A.value&&P()&&(U(!1),o8(),A.value.removeEventListener("transitionend",Fu))};
D(!1);Ob()==="south"&&zn>b().height?(o8(),_.fJ().resolve(_.zb).close()):(A.value.addEventListener("transitionend",Fu),U(!0),a9(wx))}},_.X(_.S,{cond:a,
then:function(){return _.X(_.gmq,{isDisabled:L$,playabilityStatus:PM,size:k5})}}),_.X(_.S,{cond:ON,
then:function(){return _.X(_.jDq,{isReadyToResume:Jv,data:SW,expanded:G,onExpandClick:mE,playlistData:r9})}}),_.X(_.S,{cond:Q,
then:function(){return _.X("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.X(_.S,{cond:function(){return Sx()&&G()||L()},
then:function(){return _.X(_.eHL,{className:"ytdMiniplayerComponentPlaylistPanel",data:r9,hideHeaderText:!0,withinMiniplayer:!0})}}),_.X("div",{class:"ytdMiniplayerComponentToast"},_.X(_.eZs,{toastData:x}))),_.X(GaF,{onResize:function(w9){wW(_.vZ(192,w9,720))},
onResizeStart:function(){var w9=_.WR(3),zn=iO();sL||(sL=!0,w9&&zn&&_.Y_(w9,[zn]));w9&&zn&&_.$_(w9,zn)},
currentAspectRatio:g,currentMiniplayerSize:iy,horizontalAlignment:pF,verticalAlignment:Ob}))},"Bh"),"ytd-miniplayer",{});var YF=function(){var A=_.q.apply(this,arguments)||this;A.tabGesturesIsActive=!1;A.deprecateFullerscreenUi=_.K("web_watch_fullerscreen_deprecation_ui");A.hasDelegation=!1;A.darkerDarkTheme=_.K("web_darker_dark_theme");A.isFrostedGlassInitialized=!1;A.frostedGlassExp=_.K("web_frosted_glass");A.mastheadHiddenFocusWithinKillswitch=_.K("web_masthead_hidden_focus_within_killswitch");A.clientOnlyWizTooltipsEnabled=_.K("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");A.scrollAtTop=
!0;A.guideScrollTop=0;A.isTheaterModeSession=_.Ep("START_IN_THEATER_MODE");A.iMaxTheaterMode=_.K("web_watch_imax_theater_mode");A.isFullWindowSession=_.Ep("START_IN_FULL_WINDOW_MODE");A.hasCreateFamilyDialog=!1;A.mastheadHeight=56;A.networkStatusManager=new _.uC;A.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"};A.dynamicActionMap={"yt-run-attestation-command":function(Q){var b=_.V9v.instance,f=_.V(Q,_.Jdr);return f?_.K("use_rta_manager_for_async")&&
Vcr()?BLd(b,f,Q.clickTrackingParams):GkN(b,f,Q.clickTrackingParams):_.gF(Error("li"))}};
A.isFrostedGlassDisabled=!1;A.isChannelOrPlaylistPage=!1;return A};
_.O(YF,_.q);_.d=YF.prototype;_.d.created=function(){var A=_.fJ();_.K("kevlar_clear_duplicate_pref_cookie")&&_.Hv(_.j7,function(){var Q=_.J$.get("PREF");Q&&!/f\d=/.test(Q)&&(Q=_.Br("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=Q?"PREF=null;domain="+Q+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.K("gzip_gel_with_worker")&&_.CNy();_.K("jspb_serialize_with_worker")&&Zkn();_.K("web_worker_availability_check")&&mMM();_.K("nwl_init_killswitch")||wtn().then(function(){_.j7.addLowPriorityJob(XjO)});
this.pageManagerAttachedPromise=_.Qh();this.ytdAppBehavior.loadDepsPromise=_.qY([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Ac(this.onThrottledScroll,200,this);_.K("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);h2l();WUd=!!_.zV("ytappsettings.initialized");rM=_.zV("ytappsettings.previousValue");i1M=_.zV("ytappsettings.previousSnapshotTime");WUd||(WUd=!0,Jxn());K5F();icx();_.e6("DEFERRED_DETACH",
_.K("kevlar_tuner_should_defer_detach"));_.e6("REUSE_COMPONENTS",!0);_.e6("STAMPER_STABLE_LIST",!0);_.e6("SCHEDULED_LAZY_LIST",!0);_.e6("openPopupConfig",Bwt);_.e6("useClickHandler",!0);_.K("kevlar_shell_cleanup")&&_.j7.addLowPriorityJob(Chr.bind(this,_.by.caches));_.Ep("IS_SHELL_LOAD")&&_.g2({shellStartupDurationMs:Math.round((0,_.f4)()-_.oF())});W4F(this.networkStatusManager);_.K("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",tlr(bdx)),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!",
tlr(faM)),console.log("%cVisit http://go/join-youtube-web to apply today.",tlr(aaO)));_.qoq(A.resolve(_.om),1E3)};
_.d.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var A=b1n();A&&!_.K("external_fullscreen_killswitch")&&document.addEventListener(A,this.setFullscreen.bind(this));(A=window.matchMedia("(prefers-color-scheme: dark)"))&&A.addEventListener&&A.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.d.attached=function(){var A=this;_.y2().processSignal("ci");_.K("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.RAJ?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Mr(_.R$9(),"SUCCESS");this.updateIconSet();_.F5(this.guideInnerContent,!1);_.rk().initVisibilityObserver();this.guideService.guideElement=this.guide;var Q=document.createElement("ytd-miniplayer"),b=_.Bj(this.hostElement).querySelector("#content");
_.Bj(this.hostElement).insertBefore(Q,b);_.y2().processSignal("ma");_.fJ().resolve(_.zb).init(Q);_.Ep("IS_SHELL_LOAD")&&(b=document.createElement("ytd-network-status-banner"),_.Bj(this.hostElement).insertBefore(b,Q));_.K("kevlar_right_click_on_lockups")&&_.Yt._onCaptureClick&&document.addEventListener("contextmenu",_.Yt._onCaptureClick.bind(_.Yt),!0);var f=function(){var a=_.F6("yt-page-navigation-progress");_.Bj(A.hostElement).appendChild(a)};
setTimeout(function(){_.y2().parkOrScheduleJob(f,0,"eocs",16)},0);
_.K("service_worker_push_enabled")&&_.Hv(_.j7,QFN);_.Dl(_.Yk.getInstance(),this.dynamicActionMap,this.hostElement);_.Bn(this.hostElement,"ytd-app-attached");_.y2().processSignal("aa");K7N(this.hostElement);_.Al("gapi.load",_.S0b);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Hv(_.j7,
function(){var a=document.createElement("ytd-video-preview");_.Bj(_.Bj(A.hostElement).querySelector("#video-preview")).appendChild(a)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Hv(_.j7,function(){goK();A.registerWithViewTransitionManager()});
if(_.Rz()&&this.isAppDarkTheme()!==_.r6())this.onDarkModeToggledAction();else Q=_.jL()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==Q&&(_.K("enable_dark_theme_only_on_shorts")?_.Yr(_.K("enable_dark_theme_only_on_shorts_control")?window.location.href:_.DR(window.location.href,{theme:"dark"})):_.Wv(new _.IO("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(S9n=new Xms(this.hostElement)),NfM=new $St(this.hostElement),DSN=new YTF(this.hostElement),jZx=new rSK(this.hostElement)};
_.d.getThemeSettingsToLog=function(){var A=_.jL()==="USER_INTERFACE_THEME_DARK";A=_.Rz()?_.r6()?"os-dark":"os-light":A?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:A,cookiesEnabled:_.Oo()}};
_.d.detached=function(){_.Go(this.guideInnerContent);_.j7.cancelJob(qv);qv=0;_.j7.cancelJob(te);te=0;_.x7F(lyq);lyq.length=0;UWK=_.FZU=null;_.rk().dispose();_.K("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.$k(_.Yk.getInstance(),S9n.playlistHandlerActionMap,S9n.JSC$31837_clientRoot);_.$k(_.Yk.getInstance(),NfM.downloadManagerActionMap,NfM.JSC$32141_clientRoot);_.$k(_.Yk.getInstance(),DSN.feedbackCollectorActionMap,DSN.JSC$32136_clientRoot);
for(var A=_.F(jZx.eventListeners),Q=A.next();!Q.done;Q=A.next()){var b=_.F(Q.value);Q=b.next().value;b=b.next().value;b=_.F(b);for(var f=b.next();!f.done;f=b.next()){var a=_.F(f.value);f=a.next().value;a=a.next().value;Q.removeEventListener(f,a)}}_.$k(_.Yk.getInstance(),jZx.autonavPauseActionMap,jZx.JSC$19814_clientRoot)};
_.d.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.nD().getFlag(186)};
_.d.computeIsInlinePreviewEnabled=function(A,Q,b){return!b&&_.kPx({miniplayerIsActive:A,miniplayerPlaybackState:Q})};
_.d.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.G7({type:"SET_FROSTED_GLASS_MODE",payload:!_.K("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"}))};
_.d.computeIsFrostedGlassDisabled=function(A,Q,b,f){return A||Q||b||f&&_.K("web_frosted_glass_disable_watch")};
_.d.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.K("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.d.computeIsHomePage=function(A,Q){if(!A||Q==null||!Q.endpoint)return!1;var b;return((b=_.V(Q.endpoint,_.nT))==null?void 0:b.browseId)==="FEwhat_to_watch"};
_.d.updateIsChannelOrPlaylistPage=function(){if(_.K("web_frosted_glass")){var A,Q,b=(Q=(A=_.fJ().resolve(_.bu(_.F7)))==null?void 0:A.getCurrentPage())==null?void 0:Q.pageSubtype;this.isChannelOrPlaylistPage=b?["channel","channels","playlist"].includes(b):!1}};
_.d.scheduleFrostedGlassInitialization=function(){var A=this;_.K("web_frosted_glass")&&_.y2().parkOrScheduleJob(function(){A.isFrostedGlassInitialized=!0},0,_.AD(["eocs",
"cr"]),300)};
_.d.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.XK1(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.G7({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.G7({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.d.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(qCx(!0))};
_.d.onYtSignalActionRequestPersistentStorage=function(){if(!_.K("request_persistent_storage_killswitch")){var A=_.fJ().resolve(_.SNO);A.cachedPersistStatePromise||(A.cachedPersistStatePromise=zSq())}};
_.d.handleYtChannelCreationFormEndpoints=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.d.handleShowEngagementPanelEndpoint=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.d.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(qCx(!1))};
_.d.initIconDefs=function(A,Q){var b=document.createElement("iron-iconset-svg");b.name=A;A=document.createElementNS("http://www.w3.org/2000/svg","svg");b.appendChild(A);A.appendChild(Q);document.body.appendChild(b);return b};
_.d.onWindowResized=function(){_.pD(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var A=_.nON.getInstance();A.documentWidth_=document.body.clientWidth;eQx(A)};
_.d.onWindowScrolled=function(){var A=_.fJ().resolve(_.F7).getCurrentPage();if(A!=null&&A.getScrollTop){var Q=this.ytdReduxBehavior,b=Q.dispatch;A=A.getScrollTop()<=0;b.call(Q,_.G7({type:"SET_SCROLL_AT_TOP",payload:A}))}};
_.d.guideIsVisibleButNotPersistentSelectorChanged=function(){var A=_.fJ().resolve(_.F7).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=A.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"),
A.setScrollTop(this.guideScrollTop));_.Pn(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.d.getCurrentPageScrollableElementType=function(){var A=_.fJ().resolve(_.F7).getCurrentPage();if(A&&A.getPageScrollingElement())return A.getPageScrollingElement().nodeName};
_.d.observeGuideVisibility=function(){var A=_.nON.getInstance(),Q=this.miniGuideVisible;A.guidePersistentAndVisible_=this.guidePersistentAndVisible;A.miniGuideVisible_=Q;eQx(A)};
_.d.handleEduDismissAction=function(A){A&&A.eduDismissAction&&(_.pD(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.K09.getInstance(),_.dk.set(A.eduDismissAction.key+"-dismissed",!0))};
_.d.handleEduImpressionAction=function(A){if(A&&A.eduImpressionAction){var Q=_.K09.getInstance();A=A.eduImpressionAction.key;Q.JSC$12895_eduDisplayedThisLoad_[_.lHL[A].setKey||A]=!0;_.dk.set(A+"-impression",parseInt(_.dk.get(A+"-impression")||0,10)+1)}};
_.d.onYtSignalActionConfirmMentionsEdu=function(){_.pD(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.B3.getInstance();_.G1.set("edu-dismissed",!0)};
_.d.onYtSignalActionRecordMentionsEduImpression=function(){_.B3.getInstance();var A=_.G1.set,Q=parseInt(_.G1.get("edu-impressions"),10);A.call(_.G1,"edu-impressions",(isFinite(Q)?Q:0)+1)};
_.d.onYtPageManagerAttached=function(A){var Q;((Q=_.Au(A))==null?void 0:Q.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.d.onInvokeInstrumentManagerAction=function(A,Q){abl(Q,A)};
_.d.updateIconSet=function(){var A=this.hostElement.querySelector("#masthead");if(A){var Q=_.pc(A),b=Q.querySelector("g#yt-logo-updated");b&&(A=document.createElementNS("http://www.w3.org/2000/svg","defs"),A.appendChild(b.cloneNode(!0)),(Q=Q.querySelector("g#yt-logo-red-updated"))&&A.appendChild(Q.cloneNode(!0)),this.initIconDefs("yt-logos-ext",A))}};
_.d.updateMastheadData=function(){var A=this,Q,b,f,a,T;return _.B(function(G){if(G.nextAddress==1){Q=A.data;b=A.hostElement.querySelector("#masthead");if(!b)return G.return();_.mL(A,function(){b.data=A.topbarData});
if(!A.get("response.topbar",Q)||A.get("response.topbar.responseContext.maxAgeSeconds",Q)===0)return G.jumpTo(0);if(f=_.fJ().resolve(_.Bu))return G.yield(f(),6);a=_.fJ().resolve(_.La);return G.yield(a.put("service:topbar:fallback",new _.M6({innertubeResponse:A.get("response.topbar",Q)})),0)}return(T=G.yieldResult)?G.yield(T.put("service:topbar:fallback",new _.M6({innertubeResponse:A.get("response.topbar",Q)})),0):G.jumpTo(0)})};
_.d.computeTopbarData=function(A){if(!A)return null;var Q;return this.isShortsPage&&this.topbarData&&!_.V((Q=A.response)==null?void 0:Q.topbar,jar)?this.topbarData:A.response&&"topbar"in A.response?_.V(A.response.topbar,jar)||null:null};
_.d.onSetTheaterModeEnabled=function(A,Q){this.isTheaterModeSession=Q.enabled;this.setTheaterModeStyles(Q.enabled)};
_.d.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.d.onDarkModeToggledAction=function(){var A=_.LJ(window.location.href);if(!_.KZb(A)){(A=!!_.YQ(window.location.href).themeRefresh)&&_.Wv(new _.IO("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!A){Jxn();A={themeRefresh:1};var Q=_.fJ().resolve(_.F7);if(Q.isOnWatch()){var b,f;Q=((b=Q.getPlayerFromWatch())==null?void 0:(f=b.getPlayer())==null?void 0:f.getCurrentTime())||0;Q>=1&&(A.time_continue=Math.floor(Q))}_.Oo()||_.jL()!=="USER_INTERFACE_THEME_DARK"||(A.theme="dark");_.Yr(_.DR(window.location.href,
A))}_.K("web_appshell_refresh_trigger")&&_.by.caches&&this.refreshAppShellResponse();b=_.yr(window.location.href);_.iV(_.fJ().resolve(_.JC),_.fD(b,"theme"))}};
_.d.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.d.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.d.onPlayerFullscreen=function(A){_.aF();this.playerFullscreen=A};
_.d.setRestrictedMode=function(A){var Q=_.nD();_.k_(0,58,A);Q.save();_.fJ().resolve(_.tX).reload()};
_.d.onPageChanged=function(A){A.detail.newPageType==="ytd-watch-flexy"||A.detail.newPageType==="ytd-watch-fixie"||A.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.gy("WEB_PAGE_TYPE_WATCH")):A.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.gy("WEB_PAGE_TYPE_SHORTS")):A.detail.newPageType==="ytd-browse"&&A.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.gy("WEB_PAGE_TYPE_MINI_APP")):_.K("web_frosted_glass")&&A.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.gy("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.gy("WEB_PAGE_TYPE_UNKNOWN"));A.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.d.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.d.onGuideToggleTap=function(){_.Bn(this.hostElement,"yt-guide-toggle")};
_.d.onGuideToggleHover=function(){_.Bn(this.hostElement,"yt-guide-hover")};
_.d.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d.setMastheadTheme=function(){var A=_.pc(this.hostElement).querySelector("#masthead");A&&(A.dark=A.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),A.isDarkThemeForced=!1)};
_.d.onRequestPanelModeChange=function(A,Q){this.hideHeaderShadow=Q.mode!=="seamed"};
_.d.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.d.onDrawerIronSelect=function(A){_.Au(A).id==="guide"&&this.processDrawerIronSelect()};
_.d.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var A="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(A="opened"));_.Bn(this.hostElement,"yt-autonav-pause-guide-"+A)};
_.d.onAddElementToApp=function(A){_.Bj(this.hostElement).appendChild(A.detail)};
_.d.onThrottledScroll=function(){var A=_.fJ().resolve(_.F7).getCurrentPage();A&&(this.scrollAtTop=A.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.d.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.d.setFullscreen=function(){if(_.K("external_fullscreen")||!this.isWatchPage){var A=_.K("kevlar_fullerscreen_root_only_killswitch")?!!_.aF():!!_.aF()&&_.aF()===document.documentElement;A=(this.isWatchPage||_.K("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(A||this.isFullWindowSession);this.fullscreen!==A&&((this.fullscreen=A)&&_.Pn(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.QK().dispatch(_.b8r(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.pD(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.d.setFullscreenLoggingForShorts=function(A){var Q,b,f;return _.B(function(a){if(a.nextAddress==1)return a.yield((Q=_.BL())==null?void 0:Q.getPlayerPromise(),2);b=a.yieldResult;(f=b)==null||f.setAppFullscreen(A);_.Oi(a)})};
_.d.updateMastheadCssHeight=function(){var A=this.mastheadHeight;this.fullscreen&&(A=0);_.Uc(this.hostElement,{"--ytd-masthead-height":A+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.d.updateNetworkStatusBannerDisplayStatus=function(){var A="unset";this.fullscreen&&(A="none");_.Uc(this.hostElement,{"--ytd-network-status-banner-display":A})};
_.d.updateNetworkStatusBannerCssHeight=function(){var A="unset";this.fullscreen&&(A="0px");_.Uc(this.hostElement,{"--ytd-network-status-banner-max-height":A})};
_.d.updateScrollAndMasthead=function(A,Q,b,f){this.iMaxTheaterMode||(f=!1);var a=_.fJ().resolve(_.F7).getCurrentPage();A||Q||f?(document.body.classList.add("no-scroll"),a.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.lN(this,this.onScroll)),a.setScrollTop(0),_.Uc(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.NG()+"px"})):b?_.Bn(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Bn(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
a.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.lN(this,this.onScroll)));this.mastheadHidden=A||Q||b;this.updateMastheadCssHeight();_.K("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.d.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.d.onYtNavigateAction=function(A){A=this.get("navigateAction.endpoint",A);_.Bn(this.hostElement,"yt-navigate",{endpoint:A})};
_.d.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var A=document.createElement("yt-create-family-dialog");_.Bj(this.hostElement).appendChild(A);this.hasCreateFamilyDialog=!0}};
_.d.onSetPushNotificationsEnabledCommand=function(A){var Q=this,b=_.V(A,rXt);b&&typeof b.enabled==="boolean"&&(Notification.permission!=="granted"?$Wr().then(function(){Notification.permission==="granted"?(gfd(!b.enabled).then(W7F),b.successAction&&_.X5(Q.hostElement,[b.successAction])):b.failureAction&&_.X5(Q.hostElement,[b.failureAction])}):(gfd(!b.enabled).then(W7F),b.successAction&&_.X5(this.hostElement,[b.successAction])))};
_.d.onYtSignalActionEnableChromeNotifications=function(){NGN(!0)};
_.d.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.V(this.topbarData.hotkeyDialog,eGO)}}})};
_.d.onYtSignalActionShowKeyboardShortcutDialog=function(){_.pD(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.d.onYtEndpointChangeHandler=function(A,Q){var b=_.Tb(_.oa);b.pendingPrefetchJob_&&(Q=!(!Q||Q.autonav!="1"),b.pendingPrefetchJob_.resolve(A&&_.GTJ(A)?_.B8f(A,Q):""),b.pendingPrefetchJob_=null);_.pD(this.hostElement,"yt-pause-active-page-context");_.pD(this.hostElement,"ytd-log-youthere-nav");_.pD(this.hostElement,"yt-prepare-page-dispose")};
_.d.handleCommandWithCommandHandler=function(A,Q){_.J8.instance.resolveCommand(A,{form:{element:Q}})};
_.d.onYtTimedCommand=function(A){var Q=this;A=_.V(A,JXl);var b=A.command;b&&_.hy(_.j7,function(){var f=_.V(b,_.x8p);f?(_.J8.instance.resolveCommand(b),Q.maybeLogGetAnswerRequestTick(f)):_.ST(Q.hostElement,[b],Q.hostElement)},A.timeoutMs||0)};
_.d.maybeLogGetAnswerRequestTick=function(A){A&&A.isFirstRequest&&(_.eT("search_overview_answer"),_.hQ("so_rq",void 0,"search_overview_answer"))};
_.d.onYtSignalActionSkipNavigation=function(){var A=_.fJ().resolve(_.F7).getCurrentPage();_.Ng(A)};
_.d.onYtSignalActionCopyDebugData=function(){Sl7()};
_.d.handleEntityUpdateCommand=function(A){_.V4(_.V(A,_.EHL).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.d.logFlowLoggingEventCommand=function(A){if(A=_.V(A,_.NaX))if(A.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var Q=A.flowEventNamespace,b=A.flowEventType,f=A.flowType;f&&Q&&b&&_.QSy(_.lB(Q,b,A.flowEventMetadata),f)}else{Q=_.iB();b=A.flowEventNamespace;f=A.flowEventType;var a=A.flowType;a&&b&&f&&_.KT(Q,_.lB(b,f,A.flowEventMetadata),a,A.flowNonce)}};
_.d.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.d.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.d.onTouchStart=function(){var A=_.jN();_.WR()&&_.NM(A.JSC$13122_screenManager,{visualElement:A.ve})};
_.d.handleSelectLanguageCommand=function(A){if(A=_.V(A,qkx).hl){var Q=_.nD();Q.set("hl",A);Q.save();_.fJ().resolve(_.tX).reload()}};
_.d.handleConfirmDialogEndpoint=function(A){(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A)};
_.d.handleOpenPopupNavigationEndpoints=function(A,Q){_.K("web_button_rework")&&(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A,Q)};
_.d.handleSaveCommandToSessionStorage=function(A){if(A=_.V(A,_.Hwr)){var Q=A.key;Q&&A.command&&window.sessionStorage.setItem(Q,JSON.stringify(A.command))}};
_.d.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(A){A&&A.active&&A.active.postMessage({type:"refresh_shell"})}).catch(function(A){A.name!=="SecurityError"&&_.en(A)})};
_.d.onDeviceThemeChanged=function(){var A=_.r6();_.k_(_.nD(),185,A);_.nD().save()};
_.d.handleYtRegisterPromoCommand=function(A){if(_.V(A,tNx)){var Q=_.fJ().resolve(_.F7).getCurrentPage()||this.hostElement;cCl().registerPromoCommand(_.V(A,tNx),Q)}};
_.d.onYtNavigateHomeAction=function(){if(!_.K("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A,Q,b,f,a=(f=(A=this.topbarData)==null?void 0:(Q=A.logo)==null?void 0:(b=Q.topbarLogoRenderer)==null?void 0:b.endpoint)!=null?f:_.IR;this.ytComponentBehavior.resolveCommand(a)}};
_.d.onYtLocationCollectionCommand=function(A){jYr(_.V(A,w3N))};
_.d.onYtGetLocationCommand=function(A){nlr(_.V(A,zGd),this)};
_.d.updateRenderGuideFromBinding=function(A){this.renderGuide=A.detail.value};
_.d.updateGuidePersistentAndVisibleFromBinding=function(A){this.guidePersistentAndVisible=A.detail.value};
_.d.updateMiniGuideVisibleFromBinding=function(A){this.miniGuideVisible=A.detail.value};
_.d.onThemeSelected=function(A,Q){var b=_.nD(),f=A||Q?A:_.r6(),a=(f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.KZb(_.LJ(window.location.href));_.k_(0,165,A);_.k_(0,174,Q);b.save();a&&_.pD(this.hostElement,"yt-dark-mode-toggled-action",[f]);_.pD(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.getCurrentTheme=function(){return _.Rz()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.jL()};
_.d.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.d.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.d.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.d.handleShowConsentPrimitive=function(A){var Q=this,b,f;return _.B(function(a){if(a.nextAddress==1){try{b=(f=_.BL())==null?void 0:f.getPlayerPromise()}catch(T){}return a.yield(N_K(A,b),2)}_.pD(Q.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Oi(a)})};
_.d.handleSelectActiveIdentityEndpointInternal=function(A){_.Zk();A=_.V(A,_.b2v);if(A!=null&&A.supportedTokens){A=_.F(A.supportedTokens);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.accountSigninToken&&_.Yr(Q.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.d.handleUpdatePermissionRoleCommand=function(A){if(A=_.V(A,_.a6L)){var Q;this.hasDelegation=!((Q=_.V(A.renderer,_.f6L))==null||!Q.status)}};
_.d.registerWithViewTransitionManager=function(){var A=_.fJ().resolve(_.bu(_.Hg));if(A){var Q,b=(Q=this.guide)==null?void 0:Q.querySelector("#scrim"),f;Q=(f=this.guide)==null?void 0:f.querySelector("#contentContainer");b&&Q&&A.isAnyTransitionEnabled&&(f={},A.viewTransitionCoordinator.registerElement(b,(f.slide="app-drawer-scrim-page-transition",f["lockup-to-watch"]="app-drawer-scrim-page-transition",f["learning-journey"]="app-drawer-scrim-page-transition",f)),b={},A.viewTransitionCoordinator.registerElement(Q,
(b.slide="app-drawer-container-page-transition",b["lockup-to-watch"]="app-drawer-container-page-transition",b["learning-journey"]="app-drawer-container-page-transition",b)))}};
_.Qr.Object.defineProperties(YF.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.K("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Qr.Object.defineProperties(YF,{template:{configurable:!0,enumerable:!0,get:function(){if(c0n===void 0){var A=document.createElement("template");_.k(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
A.content.insertBefore(_.z().content.cloneNode(!0),A.content.firstChild);c0n=A}A=c0n;return A}}});
YF.prototype.onOpenHotkeyDialog=YF.prototype.onOpenHotkeyDialog;YF.prototype.setFullscreen=YF.prototype.setFullscreen;YF.prototype.onAddElementToApp=YF.prototype.onAddElementToApp;YF.prototype.onDrawerIronSelect=YF.prototype.onDrawerIronSelect;YF.prototype.onGuideOpenButtonHover=YF.prototype.onGuideOpenButtonHover;YF.prototype.onRequestPanelModeChange=YF.prototype.onRequestPanelModeChange;YF.prototype.onPageDataUpdated=YF.prototype.onPageDataUpdated;YF.prototype.onPageChanged=YF.prototype.onPageChanged;
YF.prototype.onSetTheaterModeEnabled=YF.prototype.onSetTheaterModeEnabled;YF.prototype.updateMastheadData=YF.prototype.updateMastheadData;YF.prototype.onYtPageManagerAttached=YF.prototype.onYtPageManagerAttached;YF.prototype.observeGuideVisibility=YF.prototype.observeGuideVisibility;YF.prototype.guideIsVisibleButNotPersistentSelectorChanged=YF.prototype.guideIsVisibleButNotPersistentSelectorChanged;YF.prototype.isInlinePreviewEnabledChanged=YF.prototype.isInlinePreviewEnabledChanged;
YF.prototype.isWatchPageChanged=YF.prototype.isWatchPageChanged;YF.prototype.dispatchFrostedGlassMode=YF.prototype.dispatchFrostedGlassMode;_.E([_.I(_.cb),_.c("design:type",Object)],YF.prototype,"ytdReduxBehavior",void 0);_.E([_.I(_.q0.YtEventForwardingBehavior),_.c("design:type",Object)],YF.prototype,"ytEventForwardingBehavior",void 0);_.E([_.I(_.n3.YtOpenPopupBehavior),_.c("design:type",Object)],YF.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.I(_.PJ.YtActionHandlerBehavior),_.c("design:type",Object)],YF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.I({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Yk.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.K("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(A){this.actionRouter_.handleAction(A.detail)}}),
_.c("design:type",Object)],YF.prototype,"ytActionRouterBehavior",void 0);_.E([_.I(D6O.YtdAppBehavior),_.c("design:type",Object)],YF.prototype,"ytdAppBehavior",void 0);_.E([_.I(_.kZ.YtEndpointBehavior),_.c("design:type",Object)],YF.prototype,"ytEndpointBehavior",void 0);_.E([_.I(y0K.YtEndpointHandlerWithYpcBehavior),_.c("design:type",Object)],YF.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.E([_.I(z3s.YtLogYpcFlowCommandsBehavior),_.c("design:type",Object)],YF.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.E([_.I(_.Z.YtRendererBehavior),_.c("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.E([_.I(_.Y3.YtComponentBehavior),_.c("design:type",Object)],YF.prototype,"ytComponentBehavior",void 0);_.E([_.C({selector:_.dzM}),_.c("design:type",Object)],YF.prototype,"tabGesturesIsActive",void 0);_.E([_.C(),_.c("design:type",Boolean)],YF.prototype,"renderGuide",void 0);
_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"guidePersistentAndVisible",void 0);_.E([_.C({selector:_.TYM}),_.c("design:type",Boolean)],YF.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"standalone",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"miniGuideVisible",void 0);
_.E([_.C({selector:_.z5C}),_.c("design:type",Number)],YF.prototype,"miniplayerPlaybackState",void 0);_.E([_.C({selector:_.WO,reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"miniplayerIsActive",void 0);_.E([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.c("design:type",Boolean)],YF.prototype,"isInlinePreviewEnabled",void 0);_.E([_.C(),_.c("design:type",Boolean)],YF.prototype,"isInlinePreviewDisabled",void 0);
_.E([_.C({reflectToAttribute:!0,value:function(){return _.Ep("START_IN_FULL_WINDOW_MODE")}}),
_.c("design:type",Boolean)],YF.prototype,"mastheadHidden",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"playerFullscreen",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YF.prototype,"deprecateFullerscreenUi",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"fullscreen",void 0);_.E([_.C({value:!1,reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"hideHeaderShadow",void 0);
_.E([_.C({value:{GUIDE_ALT_LABEL:_.JQ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.c("design:type",Object)],YF.prototype,"menuStrings",void 0);_.E([_.C({computed:"computeTopbarData(data)"}),_.c("design:type",Object)],YF.prototype,"topbarData",void 0);_.E([_.C({selector:_.vgb}),_.c("design:type",Boolean)],YF.prototype,"isWatchPage",void 0);_.E([_.C({selector:_.EgX,reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"isShortsPage",void 0);_.E([_.C({selector:function(A){return _.vO(A)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.c("design:type",Boolean)],YF.prototype,"isMiniAppPage",void 0);_.E([_.C({selector:function(A){return _.vO(A)==="WEB_PAGE_TYPE_BROWSE"}}),
_.c("design:type",Boolean)],YF.prototype,"isBrowsePage",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Boolean)],YF.prototype,"scrolling",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YF.prototype,"hasDelegation",void 0);_.E([_.C({reflectToAttribute:!0,value:!1}),_.c("design:type",Boolean)],YF.prototype,"guideScrolledByTouch",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YF.prototype,"darkerDarkTheme",void 0);
_.E([_.C(),_.c("design:type",Object)],YF.prototype,"isFrostedGlassInitialized",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YF.prototype,"frostedGlassExp",void 0);_.E([_.C({selector:function(A){return A.ui.chipBarIsSticky}}),
_.c("design:type",Boolean)],YF.prototype,"chipBarIsSticky",void 0);_.E([_.C({computed:"computeIsHomePage(isBrowsePage, data)"}),_.c("design:type",Boolean)],YF.prototype,"isHomePage",void 0);_.E([_.C({reflectToAttribute:!0}),_.c("design:type",Object)],YF.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.E([_.C(),_.c("design:type",Object)],YF.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.E([_.lW("guide"),_.c("design:type",Object)],YF.prototype,"guide",void 0);
_.E([_.lW("guide-service"),_.c("design:type",epd)],YF.prototype,"guideService",void 0);_.E([_.lW("guide-inner-content"),_.c("design:type",HTMLDivElement)],YF.prototype,"guideInnerContent",void 0);_.E([_.C({selector:_.w1J}),_.c("design:type",String)],YF.prototype,"frostedGlassMode",void 0);
_.E([_.iN("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"dispatchFrostedGlassMode",null);_.E([_.C({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.c("design:type",Object)],YF.prototype,"isFrostedGlassDisabled",void 0);
_.E([_.iN("isWatchPage"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"isWatchPageChanged",null);_.E([_.H("isHomePage","chipBarIsSticky"),_.c("design:type",Boolean),_.c("design:paramtypes",[])],YF.prototype,"applyFrostedGlassToChipBar",null);_.E([_.C(),_.c("design:type",Object)],YF.prototype,"isChannelOrPlaylistPage",void 0);
_.E([_.I_("isInlinePreviewEnabled"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"isInlinePreviewEnabledChanged",null);_.E([_.iN("guideIsVisibleButNotPersistent"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.E([_.iN("guidePersistentAndVisible","miniGuideVisible"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"observeGuideVisibility",null);_.E([_.Kc("attached"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],YF.prototype,"onYtPageManagerAttached",null);_.E([_.iN("data"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype",Promise)],YF.prototype,"updateMastheadData",null);
_.E([_.Kc("yt-set-theater-mode-enabled"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent,Object]),_.c("design:returntype")],YF.prototype,"onSetTheaterModeEnabled",null);_.E([_.Kc("yt-page-type-changed"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],YF.prototype,"onPageChanged",null);_.E([_.Kc("yt-page-data-updated"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"onPageDataUpdated",null);
_.E([_.Kc("yt-request-panel-mode-change"),_.c("design:type",Function),_.c("design:paramtypes",[Event,Object]),_.c("design:returntype")],YF.prototype,"onRequestPanelModeChange",null);_.E([_.Kc("yt-guide-hover"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"onGuideOpenButtonHover",null);_.E([_.Kc("app-drawer-transitioned"),_.c("design:type",Function),_.c("design:paramtypes",[Event]),_.c("design:returntype")],YF.prototype,"onDrawerIronSelect",null);
_.E([_.Kc("yt-add-element-to-app"),_.c("design:type",Function),_.c("design:paramtypes",[CustomEvent]),_.c("design:returntype")],YF.prototype,"onAddElementToApp",null);_.E([_.Kc("yt-set-fullerscreen-styles"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"setFullscreen",null);_.E([_.Kc("yt-open-hotkey-dialog"),_.c("design:type",Function),_.c("design:paramtypes",[]),_.c("design:returntype")],YF.prototype,"onOpenHotkeyDialog",null);
_.E([_.h({is:"ytd-app"})],YF);_.y2().processSignal("eor");
_.jY();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
